| 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 26 matching lines...) Expand all Loading... |
| 37 { | 37 { |
| 38 } | 38 } |
| 39 | 39 |
| 40 LineLayoutItem() : m_layoutObject(0) { } | 40 LineLayoutItem() : m_layoutObject(0) { } |
| 41 | 41 |
| 42 // TODO(pilgrim): Remove this. It's only here to make things compile before | 42 // TODO(pilgrim): Remove this. It's only here to make things compile before |
| 43 // switching all of core/layout/line to using the API. | 43 // switching all of core/layout/line to using the API. |
| 44 // https://crbug.com/499321 | 44 // https://crbug.com/499321 |
| 45 operator LayoutObject*() const { return m_layoutObject; } | 45 operator LayoutObject*() const { return m_layoutObject; } |
| 46 | 46 |
| 47 // TODO(dgrogan): Remove this when we replace the operator above with Unspec
ifiedBoolType. |
| 48 bool isNull() const |
| 49 { |
| 50 return !m_layoutObject; |
| 51 } |
| 52 |
| 47 bool isEqual(const LayoutObject* layoutObject) const | 53 bool isEqual(const LayoutObject* layoutObject) const |
| 48 { | 54 { |
| 49 return m_layoutObject == layoutObject; | 55 return m_layoutObject == layoutObject; |
| 50 } | 56 } |
| 51 | 57 |
| 52 String debugName() const | 58 String debugName() const |
| 53 { | 59 { |
| 54 return m_layoutObject->debugName(); | 60 return m_layoutObject->debugName(); |
| 55 } | 61 } |
| 56 | 62 |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 bool isSVGInline() const | 268 bool isSVGInline() const |
| 263 { | 269 { |
| 264 return m_layoutObject->isSVGInline(); | 270 return m_layoutObject->isSVGInline(); |
| 265 } | 271 } |
| 266 | 272 |
| 267 bool isSVGInlineText() const | 273 bool isSVGInlineText() const |
| 268 { | 274 { |
| 269 return m_layoutObject->isSVGInlineText(); | 275 return m_layoutObject->isSVGInlineText(); |
| 270 } | 276 } |
| 271 | 277 |
| 278 bool isSVGText() const |
| 279 { |
| 280 return m_layoutObject->isSVGText(); |
| 281 } |
| 282 |
| 272 bool isSVGTextPath() const | 283 bool isSVGTextPath() const |
| 273 { | 284 { |
| 274 return m_layoutObject->isSVGTextPath(); | 285 return m_layoutObject->isSVGTextPath(); |
| 275 } | 286 } |
| 276 | 287 |
| 277 bool isTableCell() const | 288 bool isTableCell() const |
| 278 { | 289 { |
| 279 return m_layoutObject->isTableCell(); | 290 return m_layoutObject->isTableCell(); |
| 280 } | 291 } |
| 281 | 292 |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 | 417 |
| 407 private: | 418 private: |
| 408 LayoutObject* m_layoutObject; | 419 LayoutObject* m_layoutObject; |
| 409 | 420 |
| 410 friend class LineLayoutAPIShim; | 421 friend class LineLayoutAPIShim; |
| 411 }; | 422 }; |
| 412 | 423 |
| 413 } // namespace blink | 424 } // namespace blink |
| 414 | 425 |
| 415 #endif // LineLayoutItem_h | 426 #endif // LineLayoutItem_h |
| OLD | NEW |