| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef LineLayoutItem_h | 5 #ifndef LineLayoutItem_h |
| 6 #define LineLayoutItem_h | 6 #define LineLayoutItem_h |
| 7 | 7 |
| 8 #include "core/layout/LayoutObject.h" | 8 #include "core/layout/LayoutObject.h" |
| 9 #include "core/layout/LayoutObjectInlines.h" | 9 #include "core/layout/LayoutObjectInlines.h" |
| 10 | 10 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 bool preservesNewline() const | 167 bool preservesNewline() const |
| 168 { | 168 { |
| 169 return m_layoutObject->preservesNewline(); | 169 return m_layoutObject->preservesNewline(); |
| 170 } | 170 } |
| 171 | 171 |
| 172 unsigned length() const | 172 unsigned length() const |
| 173 { | 173 { |
| 174 return m_layoutObject->length(); | 174 return m_layoutObject->length(); |
| 175 } | 175 } |
| 176 | 176 |
| 177 void dirtyLinesFromChangedChild(LineLayoutItem item) const | 177 void dirtyLinesFromChangedChild(LineLayoutItem item, MarkingBehavior marking
Behaviour = MarkContainerChain) const |
| 178 { | 178 { |
| 179 m_layoutObject->dirtyLinesFromChangedChild(item.layoutObject()); | 179 m_layoutObject->dirtyLinesFromChangedChild(item.layoutObject(), markingB
ehaviour); |
| 180 } | 180 } |
| 181 | 181 |
| 182 bool ancestorLineBoxDirty() const | 182 bool ancestorLineBoxDirty() const |
| 183 { | 183 { |
| 184 return m_layoutObject->ancestorLineBoxDirty(); | 184 return m_layoutObject->ancestorLineBoxDirty(); |
| 185 } | 185 } |
| 186 | 186 |
| 187 // TODO(dgrogan/eae): Remove this method and replace every call with an ||. | 187 // TODO(dgrogan/eae): Remove this method and replace every call with an ||. |
| 188 bool isFloatingOrOutOfFlowPositioned() const | 188 bool isFloatingOrOutOfFlowPositioned() const |
| 189 { | 189 { |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 | 496 |
| 497 template <> | 497 template <> |
| 498 struct HashTraits<blink::LineLayoutItem> : SimpleClassHashTraits<blink::LineLayo
utItem> { | 498 struct HashTraits<blink::LineLayoutItem> : SimpleClassHashTraits<blink::LineLayo
utItem> { |
| 499 STATIC_ONLY(HashTraits); | 499 STATIC_ONLY(HashTraits); |
| 500 }; | 500 }; |
| 501 | 501 |
| 502 } // namespace WTF | 502 } // namespace WTF |
| 503 | 503 |
| 504 | 504 |
| 505 #endif // LineLayoutItem_h | 505 #endif // LineLayoutItem_h |
| OLD | NEW |