Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Unified Diff: third_party/WebKit/LayoutTests/compositing/iframes/floating-self-painting-frame-complex.html

Issue 2654843004: Fix shouldPaint issue when a composited floating iframe becomes non-self-painting (Closed)
Patch Set: Rename setAncestorShouldPaintFloatingObject to updateAncestorShouldPaintFloatingObject Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/compositing/iframes/floating-self-painting-frame-complex-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/compositing/iframes/floating-self-painting-frame-complex.html
diff --git a/third_party/WebKit/LayoutTests/compositing/iframes/floating-self-painting-frame-complex.html b/third_party/WebKit/LayoutTests/compositing/iframes/floating-self-painting-frame-complex.html
new file mode 100644
index 0000000000000000000000000000000000000000..2a32bc7c56635ecae172626e098154defce8bdac
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/compositing/iframes/floating-self-painting-frame-complex.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<!-- This is similar to floating-self-painting-frame.html, but contains multiple
+containing blocks and sibling blocks in which the floating objects overhangs
+and intrudes. Tests shouldPaint flag is set on at most one ancestor containing
+block. Passes if no crash (on display items with duplicated ids because the
+iframe would be painted multiple times). -->
+<style>div {height: 100px; background-color: white;}</style>
+<div>
+ <div>
+ <div>
+ <iframe id="target" style="float: left; width: 400px; height: 100px"
+ srcdoc="<div style='width: 300px; height:400px; background: blue'></div>"></iframe>
+ <div></div>
+ <div></div>
+ </div>
+ </div>
+</div>
+<script>
+if (window.internals)
+ window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
+runAfterLayoutAndPaint(function() {
+ target.style.height = "500px";
+}, true);
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/compositing/iframes/floating-self-painting-frame-complex-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698