Changeset 222168 in webkit
- Timestamp:
- Sep 18, 2017 11:26:57 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r222167 r222168 1 2017-09-18 Emilio Cobos Álvarez <emilio@crisal.io> 2 3 Always update display: contents styles in RenderTreeUpdater. 4 https://bugs.webkit.org/show_bug.cgi?id=177065 5 6 Reviewed by Antti Koivisto. 7 8 * fast/css/display-contents-style-update-expected.html: Added. 9 * fast/css/display-contents-style-update.html: Added. 10 1 11 2017-09-18 Antti Koivisto <antti@apple.com> 2 12 -
trunk/LayoutTests/editing/execCommand/justify-right-then-indent-with-problematic-body-expected.txt
r217599 r222168 1 1 Pass. 2 2 WebKit didn't Crash. 3 -
trunk/Source/WebCore/ChangeLog
r222167 r222168 1 2017-09-18 Emilio Cobos Álvarez <emilio@crisal.io> 2 3 Always update display: contents styles in RenderTreeUpdater. 4 https://bugs.webkit.org/show_bug.cgi?id=177065 5 6 Reviewed by Antti Koivisto. 7 8 Otherwise we keep an old style around, making following style updates wrong. 9 10 Test: fast/css/display-contents-style-update.html 11 12 * style/RenderTreeUpdater.cpp: 13 (WebCore::RenderTreeUpdater::updateElementRenderer): 14 1 15 2017-09-18 Antti Koivisto <antti@apple.com> 2 16 -
trunk/Source/WebCore/style/RenderTreeUpdater.cpp
r222129 r222168 315 315 316 316 bool hasDisplayContents = update.style->display() == CONTENTS; 317 if (hasDisplayContents != element.hasDisplayContents()) { 318 if (!hasDisplayContents) 319 element.resetComputedStyle(); 320 else 321 element.storeDisplayContentsStyle(RenderStyle::clonePtr(*update.style)); 322 } 317 if (hasDisplayContents) 318 element.storeDisplayContentsStyle(RenderStyle::clonePtr(*update.style)); 319 else 320 element.resetComputedStyle(); 323 321 324 322 bool shouldCreateNewRenderer = !element.renderer() && !hasDisplayContents;
Note: See TracChangeset
for help on using the changeset viewer.