| 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 3600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3611 // the outline is painted in the background phase during composited scrollin
g. | 3611 // the outline is painted in the background phase during composited scrollin
g. |
| 3612 // If it were painted in the foreground phase, it would move with the scroll
ed | 3612 // If it were painted in the foreground phase, it would move with the scroll
ed |
| 3613 // content. When not composited scrolling, the outline is painted in the | 3613 // content. When not composited scrolling, the outline is painted in the |
| 3614 // foreground phase. Since scrolled contents are moved by repainting in this | 3614 // foreground phase. Since scrolled contents are moved by repainting in this |
| 3615 // case, the outline won't get 'dragged along'. | 3615 // case, the outline won't get 'dragged along'. |
| 3616 bool shouldPaintOutline = isSelfPaintingLayer && !isPaintingOverlayScrollbar
s | 3616 bool shouldPaintOutline = isSelfPaintingLayer && !isPaintingOverlayScrollbar
s |
| 3617 && ((isPaintingScrollingContent && isPaintingCompositedBackground) | 3617 && ((isPaintingScrollingContent && isPaintingCompositedBackground) |
| 3618 || (!isPaintingScrollingContent && isPaintingCompositedForeground)); | 3618 || (!isPaintingScrollingContent && isPaintingCompositedForeground)); |
| 3619 bool shouldPaintContent = m_hasVisibleContent && isSelfPaintingLayer && !isP
aintingOverlayScrollbars; | 3619 bool shouldPaintContent = m_hasVisibleContent && isSelfPaintingLayer && !isP
aintingOverlayScrollbars; |
| 3620 | 3620 |
| 3621 float deviceScaleFactor = WebCore::deviceScaleFactor(renderer()->frame()); |
| 3622 context->setUseHighResMarkers(deviceScaleFactor > 1.5f); |
| 3623 |
| 3621 GraphicsContext* transparencyLayerContext = context; | 3624 GraphicsContext* transparencyLayerContext = context; |
| 3622 | 3625 |
| 3623 if (localPaintFlags & PaintLayerPaintingRootBackgroundOnly && !renderer()->i
sRenderView() && !renderer()->isRoot()) | 3626 if (localPaintFlags & PaintLayerPaintingRootBackgroundOnly && !renderer()->i
sRenderView() && !renderer()->isRoot()) |
| 3624 return; | 3627 return; |
| 3625 | 3628 |
| 3626 // Ensure our lists are up-to-date. | 3629 // Ensure our lists are up-to-date. |
| 3627 updateLayerListsIfNeeded(); | 3630 updateLayerListsIfNeeded(); |
| 3628 | 3631 |
| 3629 LayoutPoint offsetFromRoot; | 3632 LayoutPoint offsetFromRoot; |
| 3630 convertToLayerCoords(paintingInfo.rootLayer, offsetFromRoot); | 3633 convertToLayerCoords(paintingInfo.rootLayer, offsetFromRoot); |
| (...skipping 2735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6366 } | 6369 } |
| 6367 } | 6370 } |
| 6368 | 6371 |
| 6369 void showLayerTree(const WebCore::RenderObject* renderer) | 6372 void showLayerTree(const WebCore::RenderObject* renderer) |
| 6370 { | 6373 { |
| 6371 if (!renderer) | 6374 if (!renderer) |
| 6372 return; | 6375 return; |
| 6373 showLayerTree(renderer->enclosingLayer()); | 6376 showLayerTree(renderer->enclosingLayer()); |
| 6374 } | 6377 } |
| 6375 #endif | 6378 #endif |
| OLD | NEW |