OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. |
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
4 * | 4 * |
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
6 * | 6 * |
7 * Other contributors: | 7 * Other contributors: |
8 * Robert O'Callahan <roc+@cs.cmu.edu> | 8 * Robert O'Callahan <roc+@cs.cmu.edu> |
9 * David Baron <dbaron@fas.harvard.edu> | 9 * David Baron <dbaron@fas.harvard.edu> |
10 * Christian Biesinger <cbiesinger@web.de> | 10 * Christian Biesinger <cbiesinger@web.de> |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 bool scrollsWithViewport() const; | 375 bool scrollsWithViewport() const; |
376 bool scrollsWithRespectTo(const RenderLayer*) const; | 376 bool scrollsWithRespectTo(const RenderLayer*) const; |
377 | 377 |
378 void addLayerHitTestRects(LayerHitTestRects&) const; | 378 void addLayerHitTestRects(LayerHitTestRects&) const; |
379 | 379 |
380 // Compute rects only for this layer | 380 // Compute rects only for this layer |
381 void computeSelfHitTestRects(LayerHitTestRects&) const; | 381 void computeSelfHitTestRects(LayerHitTestRects&) const; |
382 | 382 |
383 // FIXME: This should probably return a ScrollableArea but a lot of internal
methods are mistakenly exposed. | 383 // FIXME: This should probably return a ScrollableArea but a lot of internal
methods are mistakenly exposed. |
384 RenderLayerScrollableArea* scrollableArea() const { return m_scrollableArea.
get(); } | 384 RenderLayerScrollableArea* scrollableArea() const { return m_scrollableArea.
get(); } |
385 RenderLayerRepainter& repainter() { return m_repainter; } | 385 RenderLayerRepainter& paintInvalidator() { return m_repainter; } |
386 RenderLayerClipper& clipper() { return m_clipper; } | 386 RenderLayerClipper& clipper() { return m_clipper; } |
387 const RenderLayerClipper& clipper() const { return m_clipper; } | 387 const RenderLayerClipper& clipper() const { return m_clipper; } |
388 | 388 |
389 inline bool isPositionedContainer() const | 389 inline bool isPositionedContainer() const |
390 { | 390 { |
391 // FIXME: This is not in sync with containingBlock. | 391 // FIXME: This is not in sync with containingBlock. |
392 // RenderObject::canContainFixedPositionedObject() should probably be us
ed | 392 // RenderObject::canContainFixedPositionedObject() should probably be us
ed |
393 // instead. | 393 // instead. |
394 RenderLayerModelObject* layerRenderer = renderer(); | 394 RenderLayerModelObject* layerRenderer = renderer(); |
395 return isRootLayer() || layerRenderer->isPositioned() || hasTransform(); | 395 return isRootLayer() || layerRenderer->isPositioned() || hasTransform(); |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 | 746 |
747 } // namespace blink | 747 } // namespace blink |
748 | 748 |
749 #ifndef NDEBUG | 749 #ifndef NDEBUG |
750 // Outside the WebCore namespace for ease of invocation from gdb. | 750 // Outside the WebCore namespace for ease of invocation from gdb. |
751 void showLayerTree(const blink::RenderLayer*); | 751 void showLayerTree(const blink::RenderLayer*); |
752 void showLayerTree(const blink::RenderObject*); | 752 void showLayerTree(const blink::RenderObject*); |
753 #endif | 753 #endif |
754 | 754 |
755 #endif // RenderLayer_h | 755 #endif // RenderLayer_h |
OLD | NEW |