Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r222168 - Always update display: contents styles in RenderTreeU…
…pdater. https://bugs.webkit.org/show_bug.cgi?id=177065 Patch by Emilio Cobos Álvarez <emilio@crisal.io> on 2017-09-18 Reviewed by Antti Koivisto. Source/WebCore: Otherwise we keep an old style around, making following style updates wrong. Test: fast/css/display-contents-style-update.html * style/RenderTreeUpdater.cpp: (WebCore::RenderTreeUpdater::updateElementRenderer): LayoutTests: * fast/css/display-contents-style-update-expected.html: Added. * fast/css/display-contents-style-update.html: Added.
- Loading branch information
1 parent
d429380
commit 736a33d
Showing
6 changed files
with
47 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
LayoutTests/editing/execCommand/justify-right-then-indent-with-problematic-body-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
Pass. | ||
WebKit didn't Crash. | ||
|
4 changes: 4 additions & 0 deletions
4
LayoutTests/fast/css/display-contents-style-update-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<!doctype html> | ||
<div style="color: green;"> | ||
Passes if the text is green and there's no border. | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!doctype html> | ||
<div id="contents" style="display: contents; color: green; border: 10px solid red;"> | ||
<div> | ||
Passes if the text is green and there's no border. | ||
</div> | ||
</div> | ||
<script> | ||
document.body.offsetTop; | ||
|
||
let contents = document.getElementById("contents"); | ||
|
||
contents.style.color = "red"; | ||
document.body.offsetTop; | ||
contents.style.color = "green"; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters