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

Unified Diff: third_party/WebKit/Source/core/layout/api/LineLayoutText.h

Issue 1417203006: [Line Layout API] Convert QueryData and descendants to line layout API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/api/LineLayoutText.h
diff --git a/third_party/WebKit/Source/core/layout/api/LineLayoutText.h b/third_party/WebKit/Source/core/layout/api/LineLayoutText.h
index ba5efd0284d81d6c1e5b7439bf7d2e69ce966c41..b4468698e701e78e4202d5cdb8cbbe55586ef609 100644
--- a/third_party/WebKit/Source/core/layout/api/LineLayoutText.h
+++ b/third_party/WebKit/Source/core/layout/api/LineLayoutText.h
@@ -27,6 +27,11 @@ public:
LineLayoutText() { }
+ InlineTextBox* firstTextBox() const
+ {
+ return toText()->firstTextBox();
+ }
+
void extractTextBox(InlineTextBox* inlineTextBox)
{
toText()->extractTextBox(inlineTextBox);
@@ -87,6 +92,11 @@ public:
return toText()->textLength();
}
+ unsigned resolvedTextLength() const
+ {
+ return toText()->resolvedTextLength();
+ }
+
const String& text() const
{
return toText()->text();

Powered by Google App Engine
This is Rietveld 408576698