| 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 #include "core/layout/LayoutText.h" |
| 10 | 11 |
| 11 #include "platform/LayoutUnit.h" | 12 #include "platform/LayoutUnit.h" |
| 12 #include "wtf/Allocator.h" | 13 #include "wtf/Allocator.h" |
| 13 #include "wtf/HashTableDeletedValueType.h" | 14 #include "wtf/HashTableDeletedValueType.h" |
| 14 | 15 |
| 15 namespace blink { | 16 namespace blink { |
| 16 | 17 |
| 17 class ComputedStyle; | 18 class ComputedStyle; |
| 18 class Document; | 19 class Document; |
| 19 class HitTestRequest; | 20 class HitTestRequest; |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 bool isTableCell() const | 310 bool isTableCell() const |
| 310 { | 311 { |
| 311 return m_layoutObject->isTableCell(); | 312 return m_layoutObject->isTableCell(); |
| 312 } | 313 } |
| 313 | 314 |
| 314 bool isText() const | 315 bool isText() const |
| 315 { | 316 { |
| 316 return m_layoutObject->isText(); | 317 return m_layoutObject->isText(); |
| 317 } | 318 } |
| 318 | 319 |
| 320 bool isEmptyText() const |
| 321 { |
| 322 return isText() && toLayoutText(m_layoutObject)->text().isEmpty(); |
| 323 } |
| 324 |
| 319 bool hasLayer() const | 325 bool hasLayer() const |
| 320 { | 326 { |
| 321 return m_layoutObject->hasLayer(); | 327 return m_layoutObject->hasLayer(); |
| 322 } | 328 } |
| 323 | 329 |
| 324 bool selfNeedsLayout() const | 330 bool selfNeedsLayout() const |
| 325 { | 331 { |
| 326 return m_layoutObject->selfNeedsLayout(); | 332 return m_layoutObject->selfNeedsLayout(); |
| 327 } | 333 } |
| 328 | 334 |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 | 506 |
| 501 template <> | 507 template <> |
| 502 struct HashTraits<blink::LineLayoutItem> : SimpleClassHashTraits<blink::LineLayo
utItem> { | 508 struct HashTraits<blink::LineLayoutItem> : SimpleClassHashTraits<blink::LineLayo
utItem> { |
| 503 STATIC_ONLY(HashTraits); | 509 STATIC_ONLY(HashTraits); |
| 504 }; | 510 }; |
| 505 | 511 |
| 506 } // namespace WTF | 512 } // namespace WTF |
| 507 | 513 |
| 508 | 514 |
| 509 #endif // LineLayoutItem_h | 515 #endif // LineLayoutItem_h |
| OLD | NEW |