| 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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 LineLayoutItem previousInPreOrder(const LayoutObject* stayWithin) const | 383 LineLayoutItem previousInPreOrder(const LayoutObject* stayWithin) const |
| 384 { | 384 { |
| 385 return LineLayoutItem(m_layoutObject->previousInPreOrder(stayWithin)); | 385 return LineLayoutItem(m_layoutObject->previousInPreOrder(stayWithin)); |
| 386 } | 386 } |
| 387 | 387 |
| 388 FloatQuad localToAbsoluteQuad(const FloatQuad& quad, MapCoordinatesFlags mod
e = 0, bool* wasFixed = nullptr) const | 388 FloatQuad localToAbsoluteQuad(const FloatQuad& quad, MapCoordinatesFlags mod
e = 0, bool* wasFixed = nullptr) const |
| 389 { | 389 { |
| 390 return m_layoutObject->localToAbsoluteQuad(quad, mode, wasFixed); | 390 return m_layoutObject->localToAbsoluteQuad(quad, mode, wasFixed); |
| 391 } | 391 } |
| 392 | 392 |
| 393 int previousOffset(int current) const | |
| 394 { | |
| 395 return m_layoutObject->previousOffset(current); | |
| 396 } | |
| 397 | |
| 398 int nextOffset(int current) const | |
| 399 { | |
| 400 return m_layoutObject->nextOffset(current); | |
| 401 } | |
| 402 | |
| 403 FloatPoint localToAbsolute(const FloatPoint& localPoint = FloatPoint(), MapC
oordinatesFlags flags = 0) const | 393 FloatPoint localToAbsolute(const FloatPoint& localPoint = FloatPoint(), MapC
oordinatesFlags flags = 0) const |
| 404 { | 394 { |
| 405 return m_layoutObject->localToAbsolute(localPoint, flags); | 395 return m_layoutObject->localToAbsolute(localPoint, flags); |
| 406 } | 396 } |
| 407 | 397 |
| 408 bool hasOverflowClip() const | 398 bool hasOverflowClip() const |
| 409 { | 399 { |
| 410 return m_layoutObject->hasOverflowClip(); | 400 return m_layoutObject->hasOverflowClip(); |
| 411 } | 401 } |
| 412 | 402 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 | 481 |
| 492 template <> | 482 template <> |
| 493 struct HashTraits<blink::LineLayoutItem> : SimpleClassHashTraits<blink::LineLayo
utItem> { | 483 struct HashTraits<blink::LineLayoutItem> : SimpleClassHashTraits<blink::LineLayo
utItem> { |
| 494 STATIC_ONLY(HashTraits); | 484 STATIC_ONLY(HashTraits); |
| 495 }; | 485 }; |
| 496 | 486 |
| 497 } // namespace WTF | 487 } // namespace WTF |
| 498 | 488 |
| 499 | 489 |
| 500 #endif // LineLayoutItem_h | 490 #endif // LineLayoutItem_h |
| OLD | NEW |