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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/non-text-link-invalidation-optimization.html

Issue 1363913004: [Reland] Invalidate whitespace text on text color changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/paint/invalidation/non-text-link-invalidation-optimization-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/paint/invalidation/non-text-link-invalidation-optimization.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/non-text-link-invalidation-optimization.html b/third_party/WebKit/LayoutTests/paint/invalidation/non-text-link-invalidation-optimization.html
new file mode 100644
index 0000000000000000000000000000000000000000..151014385ac07d94491a87e776f4d626889e160b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/non-text-link-invalidation-optimization.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<style>
+ div {
+ display: block;
+ width: 450px;
+ height: 100px;
+ color: red;
+ }
+ div:hover {
+ color: green;
+ text-decoration: underline;
+ }
+</style>
+
+<!-- Ensure the optimization in https://src.chromium.org/viewvc/blink?view=rev&revision=152046 doesn't break. -->
+<div id="div">
+This test <img src="resources/bluesquare.png" width="10px" height="10px"> passes if <span>only</span> text is invalidated and <img src="resources/bluesquare.png" width="10px" height="10px"> no <img src="resources/bluesquare.png" width="10px" height="10px"> images.
+</div>
+
+<script>
+onload = runRepaintTest;
+function repaintTest() {
+ if (window.eventSender);
+ eventSender.mouseMoveTo(div.offsetLeft + 5, div.offsetTop + 5);
+ finishRepaintTest();
+}
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/paint/invalidation/non-text-link-invalidation-optimization-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698