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

Side by Side Diff: third_party/WebKit/Source/core/editing/InlineBoxTraversal.h

Issue 2942523003: Introduce Find{Left,Right}BoundaryOfBidiRun() and variations (Closed)
Patch Set: 2017-06-15T12:30:33 Pass Bidi level to FindBoundary 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef InlineBoxTraversal_h
6 #define InlineBoxTraversal_h
7
8 #include "platform/wtf/Allocator.h"
9
10 namespace blink {
11
12 class InlineBox;
13
14 // This class provides common traveral functions on list of |InlineBox|.
15 class InlineBoxTraversal final {
16 STATIC_ONLY(InlineBoxTraversal);
17
18 public:
19 // TODO(yosin): We should take |bidi_level| from |InlineBox::BidiLevel()|,
20 // once all call sites satisfy it.
21 // Find left boundary variations
22 static InlineBox* FindLeftBoundaryOfBidiRunIgnoringLineBreak(
23 const InlineBox&,
24 unsigned bidi_level);
25 static InlineBox* FindLeftBoundaryOfEntireBidiRun(const InlineBox&,
26 unsigned bidi_level);
27 static InlineBox* FindLeftBoundaryOfEntireBidiRunIgnoringLineBreak(
28 const InlineBox&,
29 unsigned bidi_level);
30
31 // Find right boundary variations
32 static InlineBox* FindRightBoundaryOfBidiRunIgnoringLineBreak(
33 const InlineBox&,
34 unsigned bidi_level);
35 static InlineBox* FindRightBoundaryOfEntireBidiRun(const InlineBox&,
36 unsigned bidi_level);
37 static InlineBox* FindRightBoundaryOfEntireBidiRunIgnoringLineBreak(
38 const InlineBox&,
39 unsigned bidi_level);
40 };
41
42 } // namespace blink
43
44 #endif // InlineBoxTraversal_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/BUILD.gn ('k') | third_party/WebKit/Source/core/editing/InlineBoxTraversal.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698