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

Unified Diff: third_party/WebKit/Source/core/editing/InlineBoxTraversal.h

Issue 2943053002: Introduce Find{Left,Right}BidiRun() and utilize in AdjustInlineBoxPositionForTextDirection() (Closed)
Patch Set: 2017-06-16T13:52:56 Created 3 years, 6 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 | « no previous file | third_party/WebKit/Source/core/editing/InlineBoxTraversal.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/InlineBoxTraversal.h
diff --git a/third_party/WebKit/Source/core/editing/InlineBoxTraversal.h b/third_party/WebKit/Source/core/editing/InlineBoxTraversal.h
index e7c1b374b93619b863212381c6f4f1a827e18bc1..1c56972fb3bd387ab9ee556933e53c4c49db2bff 100644
--- a/third_party/WebKit/Source/core/editing/InlineBoxTraversal.h
+++ b/third_party/WebKit/Source/core/editing/InlineBoxTraversal.h
@@ -18,6 +18,12 @@ class InlineBoxTraversal final {
public:
// TODO(yosin): We should take |bidi_level| from |InlineBox::BidiLevel()|,
// once all call sites satisfy it.
+
+ // Returns |InlineBox| which is less than or equal to |bidi_level| of
+ // left/right of specified |InlineBox|.
+ static InlineBox* FindLeftBidiRun(const InlineBox&, unsigned bidi_level);
+ static InlineBox* FindRightBidiRun(const InlineBox&, unsigned bidi_level);
+
// Find left boundary variations
static InlineBox* FindLeftBoundaryOfBidiRunIgnoringLineBreak(
const InlineBox&,
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/InlineBoxTraversal.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698