DescriptionDon'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
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190246
Patch Set 1 #
Messages
Total messages: 5 (1 generated)
|