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

Unified Diff: third_party/WebKit/LayoutTests/fast/text/ipa-tone-letters.html

Issue 1922223003: Change linesBoundingBox to return LayoutRect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: third_party/WebKit/LayoutTests/fast/text/ipa-tone-letters.html
diff --git a/third_party/WebKit/LayoutTests/fast/text/ipa-tone-letters.html b/third_party/WebKit/LayoutTests/fast/text/ipa-tone-letters.html
index 088d0f9e8767ff4676bfb52437ec35469d4908f8..db867076ebb2e41cfa4c1c3352a0e1f9ee71e589 100644
--- a/third_party/WebKit/LayoutTests/fast/text/ipa-tone-letters.html
+++ b/third_party/WebKit/LayoutTests/fast/text/ipa-tone-letters.html
@@ -5,10 +5,10 @@ function testString(s)
{
var fast = document.getElementById("fastPath");
fast.firstChild.data = s;
- var fastWidth = fast.offsetWidth;
+ var fastWidth = fast.getBoundingClientRect().width;
var slow = document.getElementById("slowPath");
slow.firstChild.data = s;
- var slowWidth = slow.offsetWidth;
+ var slowWidth = slow.getBoundingClientRect().width;
return fastWidth == slowWidth;
}

Powered by Google App Engine
This is Rietveld 408576698