| 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 1791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1802 // If it were painted in the foreground phase, it would move with the scroll
ed | 1802 // If it were painted in the foreground phase, it would move with the scroll
ed |
| 1803 // content. When not composited scrolling, the outline is painted in the | 1803 // content. When not composited scrolling, the outline is painted in the |
| 1804 // foreground phase. Since scrolled contents are moved by repainting in this | 1804 // foreground phase. Since scrolled contents are moved by repainting in this |
| 1805 // case, the outline won't get 'dragged along'. | 1805 // case, the outline won't get 'dragged along'. |
| 1806 bool shouldPaintOutline = isSelfPaintingLayer && !isPaintingOverlayScrollbar
s | 1806 bool shouldPaintOutline = isSelfPaintingLayer && !isPaintingOverlayScrollbar
s |
| 1807 && ((isPaintingScrollingContent && isPaintingCompositedBackground) | 1807 && ((isPaintingScrollingContent && isPaintingCompositedBackground) |
| 1808 || (!isPaintingScrollingContent && isPaintingCompositedForeground)); | 1808 || (!isPaintingScrollingContent && isPaintingCompositedForeground)); |
| 1809 bool shouldPaintContent = m_hasVisibleContent && isSelfPaintingLayer && !isP
aintingOverlayScrollbars; | 1809 bool shouldPaintContent = m_hasVisibleContent && isSelfPaintingLayer && !isP
aintingOverlayScrollbars; |
| 1810 | 1810 |
| 1811 float deviceScaleFactor = WebCore::deviceScaleFactor(renderer()->frame()); | 1811 float deviceScaleFactor = WebCore::deviceScaleFactor(renderer()->frame()); |
| 1812 context->setUseHighResMarkers(deviceScaleFactor > 1.5f); | 1812 context->setDeviceScaleFactor(deviceScaleFactor); |
| 1813 | 1813 |
| 1814 GraphicsContext* transparencyLayerContext = context; | 1814 GraphicsContext* transparencyLayerContext = context; |
| 1815 | 1815 |
| 1816 if (paintFlags & PaintLayerPaintingRootBackgroundOnly && !renderer()->isRend
erView() && !renderer()->isDocumentElement()) | 1816 if (paintFlags & PaintLayerPaintingRootBackgroundOnly && !renderer()->isRend
erView() && !renderer()->isDocumentElement()) |
| 1817 return; | 1817 return; |
| 1818 | 1818 |
| 1819 // Ensure our lists are up-to-date. | 1819 // Ensure our lists are up-to-date. |
| 1820 m_stackingNode->updateLayerListsIfNeeded(); | 1820 m_stackingNode->updateLayerListsIfNeeded(); |
| 1821 | 1821 |
| 1822 LayoutPoint offsetFromRoot; | 1822 LayoutPoint offsetFromRoot; |
| (...skipping 1963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3786 } | 3786 } |
| 3787 } | 3787 } |
| 3788 | 3788 |
| 3789 void showLayerTree(const WebCore::RenderObject* renderer) | 3789 void showLayerTree(const WebCore::RenderObject* renderer) |
| 3790 { | 3790 { |
| 3791 if (!renderer) | 3791 if (!renderer) |
| 3792 return; | 3792 return; |
| 3793 showLayerTree(renderer->enclosingLayer()); | 3793 showLayerTree(renderer->enclosingLayer()); |
| 3794 } | 3794 } |
| 3795 #endif | 3795 #endif |
| OLD | NEW |