Don't allocate Strings in FontDescription().

Creation of the 'locale' String in the FontDescription constructor accounts
for 14% of the time spent in StyleResolver::styleForElement in the test-
case html5-full-render.html.

Changes in this patch:

 * Let locale default-initialize, and instead produce "en" on demand.
 * Use AtomicString instead of String. The locale is already stored on
   LayoutStyle as an AtomicString, so we might as well use that.

R=eae@chromium.org
BUG=438069

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

git-svn-id: svn://svn.chromium.org/blink/trunk@190246 bbb929c8-8fbe-4397-9dbb-9b2b20218538
4 files changed
tree: 6286f014e6053d2928a9780e97302a300a9c9751
  1. third_party/