Changeset 107029 in webkit


Ignore:
Timestamp:
Feb 7, 2012 7:26:18 PM (12 years ago)
Author:
kling@webkit.org
Message:

REGRESSION(r106668-r106889): Chromium page cycler tests (Intl2) performance regressions.
<http://webkit.org/b/78068>

Reviewed by Ryosuke Niwa.

Create CSS_IDENT values for attribute styles in the document's CSSValuePool.
This regressed in r106756 and I suspect it'll fix up the cycler regression.

  • dom/StyledElement.cpp:

(WebCore::StyledElement::addCSSProperty):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r107027 r107029  
     12012-02-07  Andreas Kling  <awesomekling@apple.com>
     2
     3        REGRESSION(r106668-r106889): Chromium page cycler tests (Intl2) performance regressions.
     4        <http://webkit.org/b/78068>
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        Create CSS_IDENT values for attribute styles in the document's CSSValuePool.
     9        This regressed in r106756 and I suspect it'll fix up the cycler regression.
     10
     11        * dom/StyledElement.cpp:
     12        (WebCore::StyledElement::addCSSProperty):
     13
    1142012-02-07  Noel Gordon  <noel.gordon@gmail.com>
    215
  • trunk/Source/WebCore/dom/StyledElement.cpp

    r106863 r107029  
    3030#include "CSSStyleSheet.h"
    3131#include "CSSValueKeywords.h"
     32#include "CSSValuePool.h"
    3233#include "Color.h"
    3334#include "ClassList.h"
     
    143144}
    144145
    145 void StyledElement::addCSSProperty(int id, int value)
    146 {
    147     ensureAttributeStyle()->setProperty(id, value);
     146void StyledElement::addCSSProperty(int propertyID, int identifier)
     147{
     148    ensureAttributeStyle()->setProperty(CSSProperty(propertyID, document()->cssValuePool()->createIdentifierValue(identifier)));
    148149}
    149150
Note: See TracChangeset for help on using the changeset viewer.