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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/first-line-hover-001.html

Issue 1473363003: Invalidate first line display item clients when first line style changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some modifications were not saved to README.md in the previous patch Created 5 years 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: third_party/WebKit/LayoutTests/fast/css/first-line-hover-001.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/first-line-hover-001.html b/third_party/WebKit/LayoutTests/fast/css/first-line-hover-001.html
index 5e7c9097b854f9a26815009eab665844bd186299..0b1ed0ede15ec2b9a36a16d4cfed19af22058c81 100644
--- a/third_party/WebKit/LayoutTests/fast/css/first-line-hover-001.html
+++ b/third_party/WebKit/LayoutTests/fast/css/first-line-hover-001.html
@@ -9,11 +9,11 @@
<p>This text should have a green background when hovered.</p>
</div>
</div>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
<script>
-document.body.offsetTop; // Force layout. The mouse is not tracked before first layout.
-
-if (window.eventSender)
+runAfterLayoutAndPaint(function() {
+ if (window.eventSender)
eventSender.mouseMoveTo(100, 100); // Hover.
-
-document.body.offsetTop; // Update layout for the hovered state.
+ document.body.offsetTop; // Update layout for the hovered state.
+}, true);
</script>

Powered by Google App Engine
This is Rietveld 408576698