| 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. All r
ights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights reserved. |
| 7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 | 176 |
| 177 // The following six functions are used when the render tree hierarchy chang
es to make sure layers get | 177 // The following six functions are used when the render tree hierarchy chang
es to make sure layers get |
| 178 // properly added and removed. Since containership can be implemented by an
y subclass, and since a hierarchy | 178 // properly added and removed. Since containership can be implemented by an
y subclass, and since a hierarchy |
| 179 // can contain a mixture of boxes and other object types, these functions ne
ed to be in the base class. | 179 // can contain a mixture of boxes and other object types, these functions ne
ed to be in the base class. |
| 180 Layer* enclosingLayer() const; | 180 Layer* enclosingLayer() const; |
| 181 void addLayers(Layer* parentLayer); | 181 void addLayers(Layer* parentLayer); |
| 182 void removeLayers(Layer* parentLayer); | 182 void removeLayers(Layer* parentLayer); |
| 183 void moveLayers(Layer* oldParent, Layer* newParent); | 183 void moveLayers(Layer* oldParent, Layer* newParent); |
| 184 Layer* findNextLayer(Layer* parentLayer, LayoutObject* startPoint, bool chec
kParent = true); | 184 Layer* findNextLayer(Layer* parentLayer, LayoutObject* startPoint, bool chec
kParent = true); |
| 185 | 185 |
| 186 // Scrolling is a RenderBox concept, however some code just cares about recu
rsively scrolling our enclosing ScrollableArea(s). | 186 // Scrolling is a LayoutBox concept, however some code just cares about recu
rsively scrolling our enclosing ScrollableArea(s). |
| 187 bool scrollRectToVisible(const LayoutRect&, const ScrollAlignment& alignX =
ScrollAlignment::alignCenterIfNeeded, const ScrollAlignment& alignY = ScrollAlig
nment::alignCenterIfNeeded); | 187 bool scrollRectToVisible(const LayoutRect&, const ScrollAlignment& alignX =
ScrollAlignment::alignCenterIfNeeded, const ScrollAlignment& alignY = ScrollAlig
nment::alignCenterIfNeeded); |
| 188 | 188 |
| 189 // Convenience function for getting to the nearest enclosing box of a Layout
Object. | 189 // Convenience function for getting to the nearest enclosing box of a Layout
Object. |
| 190 RenderBox* enclosingBox() const; | 190 LayoutBox* enclosingBox() const; |
| 191 LayoutBoxModelObject* enclosingBoxModelObject() const; | 191 LayoutBoxModelObject* enclosingBoxModelObject() const; |
| 192 | 192 |
| 193 RenderBox* enclosingScrollableBox() const; | 193 LayoutBox* enclosingScrollableBox() const; |
| 194 | 194 |
| 195 // Function to return our enclosing flow thread if we are contained inside o
ne. This | 195 // Function to return our enclosing flow thread if we are contained inside o
ne. This |
| 196 // function follows the containing block chain. | 196 // function follows the containing block chain. |
| 197 LayoutFlowThread* flowThreadContainingBlock() const | 197 LayoutFlowThread* flowThreadContainingBlock() const |
| 198 { | 198 { |
| 199 if (flowThreadState() == NotInsideFlowThread) | 199 if (flowThreadState() == NotInsideFlowThread) |
| 200 return 0; | 200 return 0; |
| 201 return locateFlowThreadContainingBlock(); | 201 return locateFlowThreadContainingBlock(); |
| 202 } | 202 } |
| 203 | 203 |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 | 382 |
| 383 virtual bool isInlineBlockOrInlineTable() const { return false; } | 383 virtual bool isInlineBlockOrInlineTable() const { return false; } |
| 384 virtual bool isLayoutBoxModelObject() const { return false; } | 384 virtual bool isLayoutBoxModelObject() const { return false; } |
| 385 virtual bool isRenderBlock() const { return false; } | 385 virtual bool isRenderBlock() const { return false; } |
| 386 virtual bool isRenderBlockFlow() const { return false; } | 386 virtual bool isRenderBlockFlow() const { return false; } |
| 387 virtual bool isLayoutFlowThread() const { return false; } | 387 virtual bool isLayoutFlowThread() const { return false; } |
| 388 virtual bool isRenderInline() const { return false; } | 388 virtual bool isRenderInline() const { return false; } |
| 389 virtual bool isLayoutPart() const { return false; } | 389 virtual bool isLayoutPart() const { return false; } |
| 390 | 390 |
| 391 bool isDocumentElement() const { return document().documentElement() == m_no
de; } | 391 bool isDocumentElement() const { return document().documentElement() == m_no
de; } |
| 392 // isBody is called from RenderBox::styleWillChange and is thus quite hot. | 392 // isBody is called from LayoutBox::styleWillChange and is thus quite hot. |
| 393 bool isBody() const { return node() && node()->hasTagName(HTMLNames::bodyTag
); } | 393 bool isBody() const { return node() && node()->hasTagName(HTMLNames::bodyTag
); } |
| 394 bool isHR() const; | 394 bool isHR() const; |
| 395 bool isLegend() const; | 395 bool isLegend() const; |
| 396 | 396 |
| 397 bool isTablePart() const { return isTableCell() || isLayoutTableCol() || isT
ableCaption() || isTableRow() || isTableSection(); } | 397 bool isTablePart() const { return isTableCell() || isLayoutTableCol() || isT
ableCaption() || isTableRow() || isTableSection(); } |
| 398 | 398 |
| 399 inline bool isBeforeContent() const; | 399 inline bool isBeforeContent() const; |
| 400 inline bool isAfterContent() const; | 400 inline bool isAfterContent() const; |
| 401 inline bool isBeforeOrAfterContent() const; | 401 inline bool isBeforeOrAfterContent() const; |
| 402 static inline bool isAfterContent(const LayoutObject* obj) { return obj && o
bj->isAfterContent(); } | 402 static inline bool isAfterContent(const LayoutObject* obj) { return obj && o
bj->isAfterContent(); } |
| (...skipping 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1633 void showTree(const blink::LayoutObject*); | 1633 void showTree(const blink::LayoutObject*); |
| 1634 void showLineTree(const blink::LayoutObject*); | 1634 void showLineTree(const blink::LayoutObject*); |
| 1635 void showRenderTree(const blink::LayoutObject* object1); | 1635 void showRenderTree(const blink::LayoutObject* object1); |
| 1636 // We don't make object2 an optional parameter so that showRenderTree | 1636 // We don't make object2 an optional parameter so that showRenderTree |
| 1637 // can be called from gdb easily. | 1637 // can be called from gdb easily. |
| 1638 void showRenderTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 1638 void showRenderTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
| 1639 | 1639 |
| 1640 #endif | 1640 #endif |
| 1641 | 1641 |
| 1642 #endif // LayoutObject_h | 1642 #endif // LayoutObject_h |
| OLD | NEW |