OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 class VisiblePosition; | 42 class VisiblePosition; |
43 | 43 |
44 class RenderedPosition { | 44 class RenderedPosition { |
45 public: | 45 public: |
46 RenderedPosition(); | 46 RenderedPosition(); |
47 explicit RenderedPosition(const VisiblePosition&); | 47 explicit RenderedPosition(const VisiblePosition&); |
48 explicit RenderedPosition(const Position&, EAffinity); | 48 explicit RenderedPosition(const Position&, EAffinity); |
49 bool isEquivalent(const RenderedPosition&) const; | 49 bool isEquivalent(const RenderedPosition&) const; |
50 | 50 |
51 bool isNull() const { return !m_renderer; } | 51 bool isNull() const { return !m_renderer; } |
52 RootInlineBox* rootBox() { return m_inlineBox ? m_inlineBox->root() : 0; } | 52 RootInlineBox* rootBox() { return m_inlineBox ? &m_inlineBox->root() : 0; } |
53 | 53 |
54 unsigned char bidiLevelOnLeft() const; | 54 unsigned char bidiLevelOnLeft() const; |
55 unsigned char bidiLevelOnRight() const; | 55 unsigned char bidiLevelOnRight() const; |
56 RenderedPosition leftBoundaryOfBidiRun(unsigned char bidiLevelOfRun); | 56 RenderedPosition leftBoundaryOfBidiRun(unsigned char bidiLevelOfRun); |
57 RenderedPosition rightBoundaryOfBidiRun(unsigned char bidiLevelOfRun); | 57 RenderedPosition rightBoundaryOfBidiRun(unsigned char bidiLevelOfRun); |
58 | 58 |
59 enum ShouldMatchBidiLevel { MatchBidiLevel, IgnoreBidiLevel }; | 59 enum ShouldMatchBidiLevel { MatchBidiLevel, IgnoreBidiLevel }; |
60 bool atLeftBoundaryOfBidiRun() const { return atLeftBoundaryOfBidiRun(Ignore
BidiLevel, 0); } | 60 bool atLeftBoundaryOfBidiRun() const { return atLeftBoundaryOfBidiRun(Ignore
BidiLevel, 0); } |
61 bool atRightBoundaryOfBidiRun() const { return atRightBoundaryOfBidiRun(Igno
reBidiLevel, 0); } | 61 bool atRightBoundaryOfBidiRun() const { return atRightBoundaryOfBidiRun(Igno
reBidiLevel, 0); } |
62 // The following two functions return true only if the current position is a
t the end of the bidi run | 62 // The following two functions return true only if the current position is a
t the end of the bidi run |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 , m_prevLeafChild(uncachedInlineBox()) | 107 , m_prevLeafChild(uncachedInlineBox()) |
108 , m_nextLeafChild(uncachedInlineBox()) | 108 , m_nextLeafChild(uncachedInlineBox()) |
109 { | 109 { |
110 } | 110 } |
111 | 111 |
112 bool renderObjectContainsPosition(RenderObject*, const Position&); | 112 bool renderObjectContainsPosition(RenderObject*, const Position&); |
113 | 113 |
114 }; | 114 }; |
115 | 115 |
116 #endif // RenderedPosition_h | 116 #endif // RenderedPosition_h |
OLD | NEW |