OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 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 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
821 m_scrollableArea = nullptr; | 821 m_scrollableArea = nullptr; |
822 } | 822 } |
823 | 823 |
824 bool RenderLayer::hasOverflowControls() const | 824 bool RenderLayer::hasOverflowControls() const |
825 { | 825 { |
826 return m_scrollableArea && m_scrollableArea->hasScrollbar(); | 826 return m_scrollableArea && m_scrollableArea->hasScrollbar(); |
827 } | 827 } |
828 | 828 |
829 void RenderLayer::paint(GraphicsContext* context, const LayoutRect& damageRect,
RenderObject* paintingRoot) | 829 void RenderLayer::paint(GraphicsContext* context, const LayoutRect& damageRect,
RenderObject* paintingRoot) |
830 { | 830 { |
| 831 TRACE_EVENT0("blink", "RenderLayer::paint"); |
831 LayerPaintingInfo paintingInfo(this, enclosingIntRect(damageRect), LayoutSiz
e(), paintingRoot); | 832 LayerPaintingInfo paintingInfo(this, enclosingIntRect(damageRect), LayoutSiz
e(), paintingRoot); |
832 paintLayer(context, paintingInfo, PaintContent); | 833 paintLayer(context, paintingInfo, PaintContent); |
833 } | 834 } |
834 | 835 |
835 void RenderLayer::paintOverlayScrollbars(GraphicsContext* context, const LayoutR
ect& damageRect, RenderObject* paintingRoot) | 836 void RenderLayer::paintOverlayScrollbars(GraphicsContext* context, const LayoutR
ect& damageRect, RenderObject* paintingRoot) |
836 { | 837 { |
837 if (!m_containsDirtyOverlayScrollbars) | 838 if (!m_containsDirtyOverlayScrollbars) |
838 return; | 839 return; |
839 | 840 |
840 LayerPaintingInfo paintingInfo(this, enclosingIntRect(damageRect), LayoutSiz
e(), paintingRoot); | 841 LayerPaintingInfo paintingInfo(this, enclosingIntRect(damageRect), LayoutSiz
e(), paintingRoot); |
(...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1941 } | 1942 } |
1942 } | 1943 } |
1943 | 1944 |
1944 void showLayerTree(const blink::RenderObject* renderer) | 1945 void showLayerTree(const blink::RenderObject* renderer) |
1945 { | 1946 { |
1946 if (!renderer) | 1947 if (!renderer) |
1947 return; | 1948 return; |
1948 showLayerTree(renderer->enclosingLayer()); | 1949 showLayerTree(renderer->enclosingLayer()); |
1949 } | 1950 } |
1950 #endif | 1951 #endif |
OLD | NEW |