Changed WritingMode to an enum class and renamed its members

Changed WritingMode to an enum class and gave it an unsigned underlying
type. Also renamed its members to match the CSS keywords they
represent (although these names are not as self-documenting as they
were previously, so pre-work in crrev.com/2595833002 replaced as many
callsites as possible with helper functions with more descriptive
names).

Changing it to an enum class enforces better namespacing and code
practices. Adding the unsigned underlying type is pre-work for when the
class is eventually stored as an enum bitfield (it would be done in this
patch, except a presubmit warning already exists that prevents that. The
presubmit warning needs to be updated before that change can occur.)

This is also pre-work to allow WritingMode to be used by generated
fields in ComputedStyleBase.

BUG=628043

Review-Url: https://codereview.chromium.org/2591373003
Cr-Commit-Position: refs/heads/master@{#440343}
15 files changed