Changeset 167716 in webkit


Ignore:
Timestamp:
Apr 23, 2014 11:39:57 AM (10 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

Patch by Morten Stenshorne <mstensho@opera.com> on 2014-04-23
Reviewed by David Hyatt.

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.

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

  • css/StyleResolver.cpp:

(WebCore::StyleResolver::applyMatchedProperties):

LayoutTests:

  • 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

    r167710 r167716  
     12014-04-23  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 David Hyatt.
     7
     8        * fast/css/identical-logical-height-decl-expected.html: Added.
     9        * fast/css/identical-logical-height-decl.html: Added.
     10
    1112014-04-23  Lorenzo Tilve  <ltilve@igalia.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r167715 r167716  
     12014-04-23  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 David Hyatt.
     7
     8        Before sharing CSS properties with an element in the cache, we need to
     9        check that the new element is suitable for this, just like we check
     10        elements before inserting them into the cache.
     11
     12        Test: fast/css/identical-logical-height-decl.html
     13
     14        * css/StyleResolver.cpp:
     15        (WebCore::StyleResolver::applyMatchedProperties):
     16
    1172014-04-23  Commit Queue  <commit-queue@webkit.org>
    218
  • trunk/Source/WebCore/css/StyleResolver.cpp

    r167571 r167716  
    16381638    bool applyInheritedOnly = false;
    16391639    const MatchedPropertiesCacheItem* cacheItem = 0;
    1640     if (cacheHash && (cacheItem = findFromMatchedPropertiesCache(cacheHash, matchResult))) {
     1640    if (cacheHash && (cacheItem = findFromMatchedPropertiesCache(cacheHash, matchResult))
     1641        && isCacheableInMatchedPropertiesCache(element, state.style(), state.parentStyle())) {
    16411642        // We can build up the style by copying non-inherited properties from an earlier style object built using the same exact
    16421643        // 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.