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

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

Issue 1332233002: Invalidate whitespace text on text color changes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: TextOrColorChanged -> TextDecorationOrColorChanged 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
Index: LayoutTests/paint/invalidation/non-text-link-invalidation-optimization.html
diff --git a/LayoutTests/paint/invalidation/non-text-link-invalidation-optimization.html b/LayoutTests/paint/invalidation/non-text-link-invalidation-optimization.html
new file mode 100644
index 0000000000000000000000000000000000000000..151014385ac07d94491a87e776f4d626889e160b
--- /dev/null
+++ b/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>

Powered by Google App Engine
This is Rietveld 408576698