Changeset 217477 in webkit


Ignore:
Timestamp:
May 25, 2017 11:46:27 PM (7 years ago)
Author:
commit-queue@webkit.org
Message:

Don't reset m_hasDisplayContents on ElementRareData::resetComputedStyle.
https://bugs.webkit.org/show_bug.cgi?id=172503

Patch by Emilio Cobos Álvarez <ecobos@igalia.com> on 2017-05-25
Reviewed by Antti Koivisto.

Source/WebCore:

We use that bit of information to determine whether we need to tear
down the renderers of a display: contents subtree, so better for it to
not change until the render tree is updated.

In practice, we may want to remove that bit and use ElementRareData's
RenderStyle instead (keeping it around as appropriate), to ensure they
don't go out of sync, but that's out of scope of this patch for now.

Tests: imported/w3c/web-platform-tests/css/css-display-3

  • dom/ElementRareData.h:

(WebCore::ElementRareData::resetComputedStyle):

LayoutTests:

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r217476 r217477  
     12017-05-25  Emilio Cobos Álvarez  <ecobos@igalia.com>
     2
     3        Don't reset m_hasDisplayContents on ElementRareData::resetComputedStyle.
     4        https://bugs.webkit.org/show_bug.cgi?id=172503
     5
     6        Reviewed by Antti Koivisto.
     7
     8        * TestExpectations:
     9
    1102017-05-25  Sam Weinig  <sam@webkit.org>
    211
  • trunk/LayoutTests/TestExpectations

    r217473 r217477  
    11601160webkit.org/b/157477 imported/w3c/web-platform-tests/css/css-display-3/display-contents-dynamic-before-after-first-letter-001.html [ ImageOnlyFailure ]
    11611161webkit.org/b/157477 imported/w3c/web-platform-tests/css/css-display-3/display-contents-dynamic-before-after-001.html [ ImageOnlyFailure ]
    1162 webkit.org/b/157477 imported/w3c/web-platform-tests/css/css-display-3/display-contents-dynamic-flex-001-none.html [ ImageOnlyFailure ]
    11631162webkit.org/b/157477 imported/w3c/web-platform-tests/css/css-display-3/display-contents-dynamic-table-002-none.html [ ImageOnlyFailure ]
    11641163webkit.org/b/157477 imported/w3c/web-platform-tests/css/css-display-3/display-contents-flex-003.html [ ImageOnlyFailure ]
     
    11781177webkit.org/b/157477 imported/w3c/web-platform-tests/css/css-display-3/display-contents-dynamic-table-001-none.html [ ImageOnlyFailure ]
    11791178webkit.org/b/157477 imported/w3c/web-platform-tests/css/css-display-3/display-contents-state-change-001.html [ ImageOnlyFailure ]
    1180 
    1181 webkit.org/b/172503 imported/w3c/web-platform-tests/css/css-display-3/display-contents-dynamic-flex-002-inline.html [ Skip ]
    1182 webkit.org/b/172503 imported/w3c/web-platform-tests/css/css-display-3/display-contents-dynamic-flex-003-inline.html [ Skip ]
    1183 webkit.org/b/172503 imported/w3c/web-platform-tests/css/css-display-3/display-contents-dynamic-list-001-inline.html [ Skip ]
    1184 webkit.org/b/172503 imported/w3c/web-platform-tests/css/css-display-3/display-contents-dynamic-list-001-none.html [ Skip ]
    1185 webkit.org/b/172503 imported/w3c/web-platform-tests/css/css-display-3/display-contents-dynamic-multicol-001-inline.html [ Skip ]
    1186 webkit.org/b/172503 imported/w3c/web-platform-tests/css/css-display-3/display-contents-replaced-001.html [ Skip ]
     1179webkit.org/b/157477 imported/w3c/web-platform-tests/css/css-display-3/display-contents-dynamic-flex-002-inline.html [ ImageOnlyFailure ]
     1180webkit.org/b/157477 imported/w3c/web-platform-tests/css/css-display-3/display-contents-dynamic-flex-003-inline.html [ ImageOnlyFailure ]
     1181webkit.org/b/157477 imported/w3c/web-platform-tests/css/css-display-3/display-contents-dynamic-list-001-inline.html [ ImageOnlyFailure ]
     1182webkit.org/b/157477 imported/w3c/web-platform-tests/css/css-display-3/display-contents-dynamic-list-001-none.html [ ImageOnlyFailure ]
     1183
     1184webkit.org/b/172596 imported/w3c/web-platform-tests/css/css-display-3/display-contents-replaced-001.html [ Skip ]
    11871185
    11881186### END OF display: contents failures
     
    13751373webkit.org/b/172378 imported/blink/fast/frames/freed-frame.html [ Skip ]
    13761374webkit.org/b/172378 imported/blink/printing/print-document-without-documentElement-crash.html [ Skip ]
    1377 
    1378 webkit.org/b/172514 imported/w3c/web-platform-tests/innerText/getter.html [ Skip ]
  • trunk/Source/WebCore/ChangeLog

    r217476 r217477  
     12017-05-25  Emilio Cobos Álvarez  <ecobos@igalia.com>
     2
     3        Don't reset m_hasDisplayContents on ElementRareData::resetComputedStyle.
     4        https://bugs.webkit.org/show_bug.cgi?id=172503
     5
     6        Reviewed by Antti Koivisto.
     7
     8        We use that bit of information to determine whether we need to tear
     9        down the renderers of a display: contents subtree, so better for it to
     10        not change until the render tree is updated.
     11
     12        In practice, we may want to remove that bit and use ElementRareData's
     13        RenderStyle instead (keeping it around as appropriate), to ensure they
     14        don't go out of sync, but that's out of scope of this patch for now.
     15
     16        Tests: imported/w3c/web-platform-tests/css/css-display-3
     17
     18        * dom/ElementRareData.h:
     19        (WebCore::ElementRareData::resetComputedStyle):
     20
    1212017-05-25  Sam Weinig  <sam@webkit.org>
    222
  • trunk/Source/WebCore/dom/ElementRareData.h

    r214290 r217477  
    215215{
    216216    m_computedStyle = nullptr;
    217     m_hasDisplayContents = false;
    218217}
    219218
Note: See TracChangeset for help on using the changeset viewer.