Extend WidthCache to include glyph overflow bounds

Extend the font WidthCache to always compute and cache the glyph bounding box,
regardless of whether the glyphOverflow parameter is supplied. This ensures that
subsequent calls can always be served from the cache and as such the cache can
now also be used for text measurements where the bounding box of the glyphs is
required. 

BUG=347186
R=dominik.rottsches@intel.com

Review URL: https://codereview.chromium.org/285343002

git-svn-id: svn://svn.chromium.org/blink/trunk@174230 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix build with gcc 4.8 and C++11 support enabled

Fix build with gcc 4.8 and C++11 support enabled. The build was failing because
of a naming conflict between CheckedState enum in wtf/CheckedArithmetic.h and
the CheckedState value in ThemeTypes.h's ControlState enum.

This CL renames ThemeTypes.h's ControlState enum values to end with
"ControlState" instead of "State" to reduce the risk of naming conflicts.

Review URL: https://codereview.chromium.org/289163003

git-svn-id: svn://svn.chromium.org/blink/trunk@174231 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Decrease call sites of GetCurrentContext

People tend to use a "current" context when they don't know what context they should use. This leads to cross-world leakage, so I'm verifying if those call sites are correct or not one by one. In the verification process, I'm decreasing the number of the call sites of GetCurrentContext.

This CL just replaces GetCurrentContext with other equivalent alternatives. This CL doesn't change any behavior.

BUG=357144

Review URL: https://codereview.chromium.org/287003009

git-svn-id: svn://svn.chromium.org/blink/trunk@174232 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix for recording canvas crash with cache

Essentially, the cache should only be enabled if the canvas/context is *not* a recording canvas/context.

BUG=372110

Review URL: https://codereview.chromium.org/281313002

git-svn-id: svn://svn.chromium.org/blink/trunk@174233 bbb929c8-8fbe-4397-9dbb-9b2b20218538