Changeset 153608 in webkit


Ignore:
Timestamp:
Aug 1, 2013 2:25:33 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

REGRESSION (Safari 6 - ToT): Incorrectly assumes that RenderStyle data can be shared
https://bugs.webkit.org/show_bug.cgi?id=113058

Source/WebCore:

Before sharing CSS properties with an element in the cache, we need to
check that the new element is suitable for this, just like we check
elements before inserting them into the cache.

Patch by Morten Stenshorne <mstensho@opera.com> on 2013-08-01
Reviewed by Andreas Kling.

Test: fast/css/identical-logical-height-decl.html

  • css/StyleResolver.cpp:

(WebCore::StyleResolver::applyMatchedProperties):

LayoutTests:

Patch by Morten Stenshorne <mstensho@opera.com> on 2013-08-01
Reviewed by Andreas Kling.

  • fast/css/identical-logical-height-decl-expected.html: Added.
  • fast/css/identical-logical-height-decl.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r153606 r153608  
     12013-08-01  Morten Stenshorne  <mstensho@opera.com>
     2
     3        REGRESSION (Safari 6 - ToT): Incorrectly assumes that RenderStyle data can be shared
     4        https://bugs.webkit.org/show_bug.cgi?id=113058
     5
     6        Reviewed by Andreas Kling.
     7
     8        * fast/css/identical-logical-height-decl-expected.html: Added.
     9        * fast/css/identical-logical-height-decl.html: Added.
     10
    1112013-08-01  Simon Fraser  <simon.fraser@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r153607 r153608  
     12013-08-01  Morten Stenshorne  <mstensho@opera.com>
     2
     3        REGRESSION (Safari 6 - ToT): Incorrectly assumes that RenderStyle data can be shared
     4        https://bugs.webkit.org/show_bug.cgi?id=113058
     5
     6        Before sharing CSS properties with an element in the cache, we need to
     7        check that the new element is suitable for this, just like we check
     8        elements before inserting them into the cache.
     9
     10        Reviewed by Andreas Kling.
     11
     12        Test: fast/css/identical-logical-height-decl.html
     13
     14        * css/StyleResolver.cpp:
     15        (WebCore::StyleResolver::applyMatchedProperties):
     16
    1172013-08-01  Mark Lam  <mark.lam@apple.com>
    218
  • trunk/Source/WebCore/css/StyleResolver.cpp

    r153105 r153608  
    18471847    bool applyInheritedOnly = false;
    18481848    const MatchedPropertiesCacheItem* cacheItem = 0;
    1849     if (cacheHash && (cacheItem = findFromMatchedPropertiesCache(cacheHash, matchResult))) {
     1849    if (cacheHash && (cacheItem = findFromMatchedPropertiesCache(cacheHash, matchResult))
     1850        && isCacheableInMatchedPropertiesCache(element, state.style(), state.parentStyle())) {
    18501851        // We can build up the style by copying non-inherited properties from an earlier style object built using the same exact
    18511852        // style declarations. We then only need to apply the inherited properties, if any, as their values can depend on the
Note: See TracChangeset for help on using the changeset viewer.