forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rebuild the SVGResources for <pattern> after changing SVGResource
Since we reassociate the SVGResource synchronously, we need to also make sure that the associated SVGResources object is updated, else it could end up pointing to the old <pattern> LayoutObject. Bug: 845040 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: I026b46abcd510485ddfe33622cb5f5aa1bab9610 Reviewed-on: https://chromium-review.googlesource.com/1065779 Reviewed-by: Stephen Chenney <schenney@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#560300}
- Loading branch information
Fredrik Söderquist
authored and
Commit Bot
committed
May 21, 2018
1 parent
2baea13
commit 20d5cc2
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
third_party/WebKit/LayoutTests/svg/custom/pattern-inherit-remove-and-reattach-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,2 @@ | ||
<!DOCTYPE html> | ||
<div style="width: 100px; height: 100px; background-color: green"></div> |
21 changes: 21 additions & 0 deletions
21
third_party/WebKit/LayoutTests/svg/custom/pattern-inherit-remove-and-reattach.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,21 @@ | ||
<!DOCTYPE html> | ||
<svg> | ||
<defs> | ||
<pattern width="100" height="100" id="ref_pattern1" patternUnits="userSpaceOnUse"> | ||
<rect width="100" height="100" fill="red"/> | ||
</pattern> | ||
<pattern href="#ref_pattern1" id="pattern1"></pattern> | ||
</defs> | ||
<rect width="100" height="100" fill="url(#pattern1) green"/> | ||
</svg> | ||
<script> | ||
document.addEventListener("DOMContentLoaded", function() { | ||
document.documentElement.offsetTop; | ||
|
||
let ref_pattern1 = document.getElementById("ref_pattern1"); | ||
ref_pattern1.style.display = "inline-block"; | ||
|
||
let pattern1 = document.getElementById("pattern1"); | ||
pattern1.removeAttribute('href'); | ||
}, false); | ||
</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