| OLD | NEW |
| (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 |
| OLD | NEW |