| 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 4009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4020 for (size_t i = 0; i < layerFragments.size(); ++i) { | 4020 for (size_t i = 0; i < layerFragments.size(); ++i) { |
| 4021 const LayerFragment& fragment = layerFragments.at(i); | 4021 const LayerFragment& fragment = layerFragments.at(i); |
| 4022 if (!fragment.shouldPaintContent || fragment.foregroundRect.isEmpty()) | 4022 if (!fragment.shouldPaintContent || fragment.foregroundRect.isEmpty()) |
| 4023 continue; | 4023 continue; |
| 4024 | 4024 |
| 4025 if (shouldClip) | 4025 if (shouldClip) |
| 4026 clipToRect(localPaintingInfo.rootLayer, context, localPaintingInfo.p
aintDirtyRect, fragment.foregroundRect); | 4026 clipToRect(localPaintingInfo.rootLayer, context, localPaintingInfo.p
aintDirtyRect, fragment.foregroundRect); |
| 4027 | 4027 |
| 4028 PaintInfo paintInfo(context, pixelSnappedIntRect(fragment.foregroundRect
.rect()), phase, paintBehavior, paintingRootForRenderer, localPaintingInfo.regio
n, 0, 0, localPaintingInfo.rootLayer->renderer()); | 4028 PaintInfo paintInfo(context, pixelSnappedIntRect(fragment.foregroundRect
.rect()), phase, paintBehavior, paintingRootForRenderer, localPaintingInfo.regio
n, 0, 0, localPaintingInfo.rootLayer->renderer()); |
| 4029 if (phase == PaintPhaseForeground) | 4029 if (phase == PaintPhaseForeground) |
| 4030 paintInfo.overlapTestRequests = localPaintingInfo.overlapTestRequest
s; | 4030 paintInfo.setOverlapTestRequests(localPaintingInfo.overlapTestReques
ts); |
| 4031 renderer()->paint(paintInfo, toPoint(fragment.layerBounds.location() - r
enderBoxLocation() + localPaintingInfo.subPixelAccumulation)); | 4031 renderer()->paint(paintInfo, toPoint(fragment.layerBounds.location() - r
enderBoxLocation() + localPaintingInfo.subPixelAccumulation)); |
| 4032 | 4032 |
| 4033 if (shouldClip) | 4033 if (shouldClip) |
| 4034 restoreClip(context, localPaintingInfo.paintDirtyRect, fragment.fore
groundRect); | 4034 restoreClip(context, localPaintingInfo.paintDirtyRect, fragment.fore
groundRect); |
| 4035 } | 4035 } |
| 4036 } | 4036 } |
| 4037 | 4037 |
| 4038 void RenderLayer::paintOutlineForFragments(const LayerFragments& layerFragments,
GraphicsContext* context, const LayerPaintingInfo& localPaintingInfo, | 4038 void RenderLayer::paintOutlineForFragments(const LayerFragments& layerFragments,
GraphicsContext* context, const LayerPaintingInfo& localPaintingInfo, |
| 4039 PaintBehavior paintBehavior, RenderObject* paintingRootForRenderer) | 4039 PaintBehavior paintBehavior, RenderObject* paintingRootForRenderer) |
| 4040 { | 4040 { |
| (...skipping 2316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6357 } | 6357 } |
| 6358 } | 6358 } |
| 6359 | 6359 |
| 6360 void showLayerTree(const WebCore::RenderObject* renderer) | 6360 void showLayerTree(const WebCore::RenderObject* renderer) |
| 6361 { | 6361 { |
| 6362 if (!renderer) | 6362 if (!renderer) |
| 6363 return; | 6363 return; |
| 6364 showLayerTree(renderer->enclosingLayer()); | 6364 showLayerTree(renderer->enclosingLayer()); |
| 6365 } | 6365 } |
| 6366 #endif | 6366 #endif |
| OLD | NEW |