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

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

Issue 1330433003: [Line Layout API] Add textStartOffset to LineLayoutText (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ignore previous patch, review hypnotoad 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
« no previous file with comments | « Source/core/layout/LayoutText.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/api/LineLayoutText.h
diff --git a/Source/core/layout/api/LineLayoutText.h b/Source/core/layout/api/LineLayoutText.h
index bc884cb22e8090c6d433eb4d4d74d11b6b4f24bb..ba5efd0284d81d6c1e5b7439bf7d2e69ce966c41 100644
--- a/Source/core/layout/api/LineLayoutText.h
+++ b/Source/core/layout/api/LineLayoutText.h
@@ -122,6 +122,11 @@ public:
return toText()->selectionStartEnd(spos, epos);
}
+ unsigned textStartOffset() const
+ {
+ return toText()->textStartOffset();
+ }
+
private:
LayoutText* toText() { return toLayoutText(layoutObject()); }
const LayoutText* toText() const { return toLayoutText(layoutObject()); }
« no previous file with comments | « Source/core/layout/LayoutText.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698