Changeset 102479 in webkit


Ignore:
Timestamp:
Dec 9, 2011 3:23:23 PM (12 years ago)
Author:
tony@chromium.org
Message:

REGRESSION(102234): 2-3% layout regression
https://bugs.webkit.org/show_bug.cgi?id=74141

Reviewed by David Hyatt.

Don't allocate a RuleSet when there are no regions.

  • css/CSSStyleSelector.cpp:

(WebCore::CSSStyleSelector::initForRegionStyling):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r102478 r102479  
     12011-12-09  Tony Chang  <tony@chromium.org>
     2
     3        REGRESSION(102234): 2-3% layout regression
     4        https://bugs.webkit.org/show_bug.cgi?id=74141
     5
     6        Reviewed by David Hyatt.
     7
     8        Don't allocate a RuleSet when there are no regions.
     9
     10        * css/CSSStyleSelector.cpp:
     11        (WebCore::CSSStyleSelector::initForRegionStyling):
     12
    1132011-12-09  Anders Carlsson  <andersca@apple.com>
    214
  • trunk/Source/WebCore/css/CSSStyleSelector.cpp

    r102311 r102479  
    860860{
    861861    setRegionForStyling(region);
     862
     863    if (!region)
     864        return;
     865
    862866    // Mark that the set of rules comes from region styling since we need to filter
    863867    // the properties that can be applied.
    864868    m_regionRules = adoptPtr(new RuleSet(true));
    865 
    866     if (!region)
    867         return;
    868869
    869870    // From all the region style rules, select those that apply to the specified region.
Note: See TracChangeset for help on using the changeset viewer.