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

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

Issue 2009353003: Add a hack to set shouldPaint to true for force-composited iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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-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.html
diff --git a/third_party/WebKit/LayoutTests/compositing/iframes/floating-self-painting-frame.html b/third_party/WebKit/LayoutTests/compositing/iframes/floating-self-painting-frame.html
new file mode 100644
index 0000000000000000000000000000000000000000..2742575b5668cba30fb17c8439544a213b5eca93
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/compositing/iframes/floating-self-painting-frame.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<style>
+ iframe {
+ float: left;
+ height: 100%;
+ width: 100%;
+ }
+</style>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<iframe id="target" name="content" srcdoc="<div style='width: 300px; height:400px; background: blue'></div>" style="height: 119px;"></iframe>
+<script>
+if (window.internals)
+ window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
+onload = function() {
+ runAfterLayoutAndPaint(function() {
+ target.style.height = "600px";
+ }, true);
+}
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/compositing/iframes/floating-self-painting-frame-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698