Title: [132559] branches/chromium/1307/Source/WebCore
- Revision
- 132559
- Author
- [email protected]
- Date
- 2012-10-25 19:37:44 -0700 (Thu, 25 Oct 2012)
Log Message
Revert 132288 - Shrink immutable ElementAttributeData and StylePropertySet by one pointer each.
<http://webkit.org/b/100123>
Reviewed by Anders Carlsson.
Remove one pointer of unintentional padding in the immutable versions of these objects.
583kB progression on Membuster3.
* css/StylePropertySet.cpp:
(WebCore::immutableStylePropertySetSize):
* dom/ElementAttributeData.cpp:
(WebCore::immutableElementAttributeDataSize):
[email protected]
Review URL: https://codereview.chromium.org/11293004
Modified Paths
Diff
Modified: branches/chromium/1307/Source/WebCore/css/StylePropertySet.cpp (132558 => 132559)
--- branches/chromium/1307/Source/WebCore/css/StylePropertySet.cpp 2012-10-26 02:34:12 UTC (rev 132558)
+++ branches/chromium/1307/Source/WebCore/css/StylePropertySet.cpp 2012-10-26 02:37:44 UTC (rev 132559)
@@ -53,7 +53,7 @@
static size_t immutableStylePropertySetSize(unsigned count)
{
- return sizeof(StylePropertySet) + sizeof(CSSProperty) * count;
+ return sizeof(ImmutableStylePropertySet) + sizeof(CSSProperty) * count;
}
PassRefPtr<StylePropertySet> StylePropertySet::createImmutable(const CSSProperty* properties, unsigned count, CSSParserMode cssParserMode)
Modified: branches/chromium/1307/Source/WebCore/dom/ElementAttributeData.cpp (132558 => 132559)
--- branches/chromium/1307/Source/WebCore/dom/ElementAttributeData.cpp 2012-10-26 02:34:12 UTC (rev 132558)
+++ branches/chromium/1307/Source/WebCore/dom/ElementAttributeData.cpp 2012-10-26 02:37:44 UTC (rev 132559)
@@ -37,7 +37,7 @@
static size_t immutableElementAttributeDataSize(unsigned count)
{
- return sizeof(ElementAttributeData) + sizeof(Attribute) * count;
+ return sizeof(ImmutableElementAttributeData) + sizeof(Attribute) * count;
}
PassRefPtr<ElementAttributeData> ElementAttributeData::createImmutable(const Vector<Attribute>& attributes)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes