| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
| 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. |
| 7 * All rights reserved. | 7 * All rights reserved. |
| 8 * Copyright (C) 2009 Google Inc. All rights reserved. | 8 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 void assertSubtreeIsLaidOut() const { | 319 void assertSubtreeIsLaidOut() const { |
| 320 for (const LayoutObject* layoutObject = this; layoutObject; | 320 for (const LayoutObject* layoutObject = this; layoutObject; |
| 321 layoutObject = layoutObject->nextInPreOrder()) | 321 layoutObject = layoutObject->nextInPreOrder()) |
| 322 layoutObject->assertLaidOut(); | 322 layoutObject->assertLaidOut(); |
| 323 } | 323 } |
| 324 | 324 |
| 325 void assertClearedPaintInvalidationFlags() const { | 325 void assertClearedPaintInvalidationFlags() const { |
| 326 #ifndef NDEBUG | 326 #ifndef NDEBUG |
| 327 if (paintInvalidationStateIsDirty()) { | 327 if (paintInvalidationStateIsDirty()) { |
| 328 showLayoutTreeForThis(); | 328 showLayoutTreeForThis(); |
| 329 ASSERT_NOT_REACHED(); | 329 NOTREACHED(); |
| 330 } | 330 } |
| 331 #endif | 331 #endif |
| 332 } | 332 } |
| 333 | 333 |
| 334 void assertSubtreeClearedPaintInvalidationFlags() const { | 334 void assertSubtreeClearedPaintInvalidationFlags() const { |
| 335 for (const LayoutObject* layoutObject = this; layoutObject; | 335 for (const LayoutObject* layoutObject = this; layoutObject; |
| 336 layoutObject = layoutObject->nextInPreOrder()) | 336 layoutObject = layoutObject->nextInPreOrder()) |
| 337 layoutObject->assertClearedPaintInvalidationFlags(); | 337 layoutObject->assertClearedPaintInvalidationFlags(); |
| 338 } | 338 } |
| 339 | 339 |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 | 596 |
| 597 void setIsInsideFlowThreadIncludingDescendants(bool); | 597 void setIsInsideFlowThreadIncludingDescendants(bool); |
| 598 | 598 |
| 599 bool isInsideFlowThread() const { return m_bitfields.isInsideFlowThread(); } | 599 bool isInsideFlowThread() const { return m_bitfields.isInsideFlowThread(); } |
| 600 void setIsInsideFlowThread(bool insideFlowThread) { | 600 void setIsInsideFlowThread(bool insideFlowThread) { |
| 601 m_bitfields.setIsInsideFlowThread(insideFlowThread); | 601 m_bitfields.setIsInsideFlowThread(insideFlowThread); |
| 602 } | 602 } |
| 603 | 603 |
| 604 // FIXME: Until all SVG layoutObjects can be subclasses of | 604 // FIXME: Until all SVG layoutObjects can be subclasses of |
| 605 // LayoutSVGModelObject we have to add SVG layoutObject methods to | 605 // LayoutSVGModelObject we have to add SVG layoutObject methods to |
| 606 // LayoutObject with an ASSERT_NOT_REACHED() default implementation. | 606 // LayoutObject with an NOTREACHED() default implementation. |
| 607 bool isSVG() const { return isOfType(LayoutObjectSVG); } | 607 bool isSVG() const { return isOfType(LayoutObjectSVG); } |
| 608 bool isSVGRoot() const { return isOfType(LayoutObjectSVGRoot); } | 608 bool isSVGRoot() const { return isOfType(LayoutObjectSVGRoot); } |
| 609 bool isSVGChild() const { return isSVG() && !isSVGRoot(); } | 609 bool isSVGChild() const { return isSVG() && !isSVGRoot(); } |
| 610 bool isSVGContainer() const { return isOfType(LayoutObjectSVGContainer); } | 610 bool isSVGContainer() const { return isOfType(LayoutObjectSVGContainer); } |
| 611 bool isSVGTransformableContainer() const { | 611 bool isSVGTransformableContainer() const { |
| 612 return isOfType(LayoutObjectSVGTransformableContainer); | 612 return isOfType(LayoutObjectSVGTransformableContainer); |
| 613 } | 613 } |
| 614 bool isSVGViewportContainer() const { | 614 bool isSVGViewportContainer() const { |
| 615 return isOfType(LayoutObjectSVGViewportContainer); | 615 return isOfType(LayoutObjectSVGViewportContainer); |
| 616 } | 616 } |
| (...skipping 2167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2784 CORE_EXPORT void showLineTree(const blink::LayoutObject*); | 2784 CORE_EXPORT void showLineTree(const blink::LayoutObject*); |
| 2785 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); | 2785 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); |
| 2786 // We don't make object2 an optional parameter so that showLayoutTree | 2786 // We don't make object2 an optional parameter so that showLayoutTree |
| 2787 // can be called from gdb easily. | 2787 // can be called from gdb easily. |
| 2788 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, | 2788 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, |
| 2789 const blink::LayoutObject* object2); | 2789 const blink::LayoutObject* object2); |
| 2790 | 2790 |
| 2791 #endif | 2791 #endif |
| 2792 | 2792 |
| 2793 #endif // LayoutObject_h | 2793 #endif // LayoutObject_h |
| OLD | NEW |