Title: [179017] trunk/Source/WebCore
- Revision
- 179017
- Author
- cdu...@apple.com
- Date
- 2015-01-23 12:01:50 -0800 (Fri, 23 Jan 2015)
Log Message
Leverage CSSValuePool's font family cache in CSSComputedStyleDeclaration
https://bugs.webkit.org/show_bug.cgi?id=140829
Reviewed by Andreas Kling.
Leverage CSSValuePool's font family cache in CSSComputedStyleDeclaration
by calling CSSValuePool::createFontFamilyValue() to create the font
family CSSPrimitiveValue instead of cssValuePool().createValue().
* css/CSSComputedStyleDeclaration.cpp:
(WebCore::valueForFamily):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (179016 => 179017)
--- trunk/Source/WebCore/ChangeLog 2015-01-23 19:57:02 UTC (rev 179016)
+++ trunk/Source/WebCore/ChangeLog 2015-01-23 20:01:50 UTC (rev 179017)
@@ -1,3 +1,17 @@
+2015-01-23 Chris Dumez <cdu...@apple.com>
+
+ Leverage CSSValuePool's font family cache in CSSComputedStyleDeclaration
+ https://bugs.webkit.org/show_bug.cgi?id=140829
+
+ Reviewed by Andreas Kling.
+
+ Leverage CSSValuePool's font family cache in CSSComputedStyleDeclaration
+ by calling CSSValuePool::createFontFamilyValue() to create the font
+ family CSSPrimitiveValue instead of cssValuePool().createValue().
+
+ * css/CSSComputedStyleDeclaration.cpp:
+ (WebCore::valueForFamily):
+
2015-01-23 Timothy Horton <timothy_hor...@apple.com>
QLPreviewMenuItem popovers don't close when the page scrolls
Modified: trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp (179016 => 179017)
--- trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp 2015-01-23 19:57:02 UTC (rev 179016)
+++ trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp 2015-01-23 20:01:50 UTC (rev 179017)
@@ -1333,7 +1333,7 @@
{
if (CSSValueID familyIdentifier = identifierForFamily(family))
return cssValuePool().createIdentifierValue(familyIdentifier);
- return cssValuePool().createValue(family.string(), CSSPrimitiveValue::CSS_STRING);
+ return cssValuePool().createFontFamilyValue(family);
}
static Ref<CSSValue> renderTextDecorationFlagsToCSSValue(int textDecoration)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes