| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2009 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
| 5 * | 5 * |
| 6 * Other contributors: | 6 * Other contributors: |
| 7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
| 8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
| 9 * Christian Biesinger <cbiesinger@web.de> | 9 * Christian Biesinger <cbiesinger@web.de> |
| 10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 void dirtyZOrderLists(); | 381 void dirtyZOrderLists(); |
| 382 void dirtyStackingContextZOrderLists(); | 382 void dirtyStackingContextZOrderLists(); |
| 383 void updateZOrderLists(); | 383 void updateZOrderLists(); |
| 384 Vector<RenderLayer*>* posZOrderList() const { return m_posZOrderList; } | 384 Vector<RenderLayer*>* posZOrderList() const { return m_posZOrderList; } |
| 385 Vector<RenderLayer*>* negZOrderList() const { return m_negZOrderList; } | 385 Vector<RenderLayer*>* negZOrderList() const { return m_negZOrderList; } |
| 386 | 386 |
| 387 void dirtyNormalFlowList(); | 387 void dirtyNormalFlowList(); |
| 388 void updateNormalFlowList(); | 388 void updateNormalFlowList(); |
| 389 Vector<RenderLayer*>* normalFlowList() const { return m_normalFlowList; } | 389 Vector<RenderLayer*>* normalFlowList() const { return m_normalFlowList; } |
| 390 | 390 |
| 391 // FIXME: We should ASSERT(!m_visibleContentStatusDirty) here, but see https
://bugs.webkit.org/show_bug.cgi?id=71044 | |
| 392 // ditto for hasVisibleDescendant(), see https://bugs.webkit.org/show_bug.cg
i?id=71277 | 391 // ditto for hasVisibleDescendant(), see https://bugs.webkit.org/show_bug.cg
i?id=71277 |
| 393 bool hasVisibleContent() const { return m_hasVisibleContent; } | 392 bool hasVisibleContent() const { return m_hasVisibleContent; } |
| 394 bool hasVisibleDescendant() const { return m_hasVisibleDescendant; } | 393 bool hasVisibleDescendant() const { return m_hasVisibleDescendant; } |
| 395 void setHasVisibleContent(bool); | 394 void setHasVisibleContent(bool); |
| 396 void dirtyVisibleContentStatus(); | 395 void dirtyVisibleContentStatus(); |
| 397 | 396 |
| 398 // Gets the nearest enclosing positioned ancestor layer (also includes | 397 // Gets the nearest enclosing positioned ancestor layer (also includes |
| 399 // the <html> layer and the root layer). | 398 // the <html> layer and the root layer). |
| 400 RenderLayer* enclosingPositionedAncestor() const; | 399 RenderLayer* enclosingPositionedAncestor() const; |
| 401 | 400 |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 void setNextSibling(RenderLayer* next) { m_next = next; } | 556 void setNextSibling(RenderLayer* next) { m_next = next; } |
| 558 void setPreviousSibling(RenderLayer* prev) { m_previous = prev; } | 557 void setPreviousSibling(RenderLayer* prev) { m_previous = prev; } |
| 559 void setParent(RenderLayer* parent); | 558 void setParent(RenderLayer* parent); |
| 560 void setFirstChild(RenderLayer* first) { m_first = first; } | 559 void setFirstChild(RenderLayer* first) { m_first = first; } |
| 561 void setLastChild(RenderLayer* last) { m_last = last; } | 560 void setLastChild(RenderLayer* last) { m_last = last; } |
| 562 | 561 |
| 563 LayoutPoint renderBoxLocation() const { return renderer()->isBox() ? toRende
rBox(renderer())->location() : LayoutPoint(); } | 562 LayoutPoint renderBoxLocation() const { return renderer()->isBox() ? toRende
rBox(renderer())->location() : LayoutPoint(); } |
| 564 LayoutUnit renderBoxX() const { return renderBoxLocation().x(); } | 563 LayoutUnit renderBoxX() const { return renderBoxLocation().x(); } |
| 565 LayoutUnit renderBoxY() const { return renderBoxLocation().y(); } | 564 LayoutUnit renderBoxY() const { return renderBoxLocation().y(); } |
| 566 | 565 |
| 567 void collectLayers(bool includeHiddenLayers, Vector<RenderLayer*>*&, Vector<
RenderLayer*>*&); | 566 void collectLayers(Vector<RenderLayer*>*&, Vector<RenderLayer*>*&); |
| 568 | 567 |
| 569 void updateLayerListsIfNeeded(); | 568 void updateLayerListsIfNeeded(); |
| 570 void updateCompositingAndLayerListsIfNeeded(); | 569 void updateCompositingAndLayerListsIfNeeded(); |
| 571 | 570 |
| 572 void paintLayer(RenderLayer* rootLayer, GraphicsContext*, const LayoutRect&
paintDirtyRect, | 571 void paintLayer(RenderLayer* rootLayer, GraphicsContext*, const LayoutRect&
paintDirtyRect, |
| 573 PaintBehavior, RenderObject* paintingRoot, RenderRegion* = 0
, OverlapTestRequestMap* = 0, | 572 PaintBehavior, RenderObject* paintingRoot, RenderRegion* = 0
, OverlapTestRequestMap* = 0, |
| 574 PaintLayerFlags = 0); | 573 PaintLayerFlags = 0); |
| 575 void paintList(Vector<RenderLayer*>*, RenderLayer* rootLayer, GraphicsContex
t* p, | 574 void paintList(Vector<RenderLayer*>*, RenderLayer* rootLayer, GraphicsContex
t* p, |
| 576 const LayoutRect& paintDirtyRect, PaintBehavior, | 575 const LayoutRect& paintDirtyRect, PaintBehavior, |
| 577 RenderObject* paintingRoot, RenderRegion*, OverlapTestRequest
Map*, | 576 RenderObject* paintingRoot, RenderRegion*, OverlapTestRequest
Map*, |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 846 | 845 |
| 847 } // namespace WebCore | 846 } // namespace WebCore |
| 848 | 847 |
| 849 #ifndef NDEBUG | 848 #ifndef NDEBUG |
| 850 // Outside the WebCore namespace for ease of invocation from gdb. | 849 // Outside the WebCore namespace for ease of invocation from gdb. |
| 851 void showLayerTree(const WebCore::RenderLayer*); | 850 void showLayerTree(const WebCore::RenderLayer*); |
| 852 void showLayerTree(const WebCore::RenderObject*); | 851 void showLayerTree(const WebCore::RenderObject*); |
| 853 #endif | 852 #endif |
| 854 | 853 |
| 855 #endif // RenderLayer_h | 854 #endif // RenderLayer_h |
| OLD | NEW |