Changeset 201393 in webkit
- Timestamp:
- May 25, 2016, 12:04:47 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r201375 r201393 1 2016-05-25 Antti Koivisto <antti@apple.com> 2 3 Shadow DOM: RenderTreePosition should determine if element has display:contents from new style 4 https://bugs.webkit.org/show_bug.cgi?id=158072 5 6 Reviewed by Darin Adler. 7 8 * fast/shadow-dom/slot-crash.html: Added. 9 1 10 2016-05-25 Chris Dumez <cdumez@apple.com> 2 11 -
trunk/Source/WebCore/ChangeLog
r201390 r201393 1 2016-05-25 Antti Koivisto <antti@apple.com> 2 3 Shadow DOM: RenderTreePosition miscomputed when display:contents value changes 4 https://bugs.webkit.org/show_bug.cgi?id=158072 5 rdar://problem/25766333 6 7 Reviewed by Darin Adler. 8 9 Test: fast/shadow-dom/slot-crash.html 10 11 * style/RenderTreePosition.h: 12 (WebCore::RenderTreePosition::invalidateNextSibling): 13 14 Add unconditional invalidation function. 15 16 * style/RenderTreeUpdater.cpp: 17 (WebCore::RenderTreeUpdater::updateElementRenderer): 18 19 With display:contents rendering siblings may be found from the subtree and the existing cached 20 position may become invalid. 21 If the display:contents value changes invalidate the current render tree position. 22 1 23 2016-05-25 Brady Eidson <beidson@apple.com> 2 24 -
trunk/Source/WebCore/style/RenderTreePosition.h
r190983 r201393 60 60 61 61 void computeNextSibling(const Node&); 62 void invalidateNextSibling() { m_hasValidNextSibling = false; } 62 63 void invalidateNextSibling(const RenderObject&); 63 64 -
trunk/Source/WebCore/style/RenderTreeUpdater.cpp
r200381 r201393 246 246 247 247 bool hasDisplayContest = update.style && update.style->display() == CONTENTS; 248 element.setHasDisplayContents(hasDisplayContest); 248 if (hasDisplayContest != element.hasDisplayContents()) { 249 element.setHasDisplayContents(hasDisplayContest); 250 // Render tree position needs to be recomputed as rendering siblings may be found from the display:contents subtree. 251 renderTreePosition().invalidateNextSibling(); 252 } 249 253 250 254 bool shouldCreateNewRenderer = !element.renderer() && update.style && !hasDisplayContest;
Note:
See TracChangeset
for help on using the changeset viewer.