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

Unified Diff: third_party/WebKit/Source/core/layout/line/AbstractInlineTextBox.cpp

Issue 2169273004: Switch all LayoutTests to use new accessibility relative bounding box API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix absolute bounds in AXInlineTextBox::elementRect Created 4 years, 5 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/Source/core/layout/line/AbstractInlineTextBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/line/AbstractInlineTextBox.cpp b/third_party/WebKit/Source/core/layout/line/AbstractInlineTextBox.cpp
index 5315569c8d8dde2ef373376f670a4bf14cf5260e..421b0056d4c1e4697ac36c0b79a87c402d1579bc 100644
--- a/third_party/WebKit/Source/core/layout/line/AbstractInlineTextBox.cpp
+++ b/third_party/WebKit/Source/core/layout/line/AbstractInlineTextBox.cpp
@@ -93,7 +93,15 @@ PassRefPtr<AbstractInlineTextBox> AbstractInlineTextBox::nextInlineTextBox() con
return getOrCreate(m_lineLayoutItem, m_inlineTextBox->nextTextBox());
}
-LayoutRect AbstractInlineTextBox::bounds() const
+LayoutRect AbstractInlineTextBox::localBounds() const
+{
+ if (!m_inlineTextBox || !m_lineLayoutItem)
+ return LayoutRect();
+
+ return m_inlineTextBox->calculateBoundaries();
+}
+
+LayoutRect AbstractInlineTextBox::absoluteBounds() const
{
if (!m_inlineTextBox || !m_lineLayoutItem)
return LayoutRect();

Powered by Google App Engine
This is Rietveld 408576698