| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights |
| 3 * reserved. | 3 * 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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 adjustClipRectsForChildren(layoutObject, clipRects); | 405 adjustClipRectsForChildren(layoutObject, clipRects); |
| 406 | 406 |
| 407 if (shouldClipOverflow(context) || layoutObject.hasClip() || | 407 if (shouldClipOverflow(context) || layoutObject.hasClip() || |
| 408 (layoutObject.isSVGRoot() && | 408 (layoutObject.isSVGRoot() && |
| 409 toLayoutSVGRoot(&layoutObject)->shouldApplyViewportClip())) { | 409 toLayoutSVGRoot(&layoutObject)->shouldApplyViewportClip())) { |
| 410 // This offset cannot use convertToLayerCoords, because sometimes our | 410 // This offset cannot use convertToLayerCoords, because sometimes our |
| 411 // rootLayer may be across some transformed layer boundary, for example, in | 411 // rootLayer may be across some transformed layer boundary, for example, in |
| 412 // the PaintLayerCompositor overlapMap, where clipRects are needed in view | 412 // the PaintLayerCompositor overlapMap, where clipRects are needed in view |
| 413 // space. | 413 // space. |
| 414 applyClipRects(context, layoutObject, | 414 applyClipRects(context, layoutObject, |
| 415 roundedLayoutPoint(layoutObject.localToAncestorPoint( | 415 LayoutPoint(layoutObject.localToAncestorPoint( |
| 416 FloatPoint(), context.rootLayer->layoutObject())), | 416 FloatPoint(), context.rootLayer->layoutObject())), |
| 417 clipRects); | 417 clipRects); |
| 418 } | 418 } |
| 419 } | 419 } |
| 420 | 420 |
| 421 static ClipRect backgroundClipRectForPosition(const ClipRects& parentRects, | 421 static ClipRect backgroundClipRectForPosition(const ClipRects& parentRects, |
| 422 EPosition position) { | 422 EPosition position) { |
| 423 if (position == FixedPosition) | 423 if (position == FixedPosition) |
| 424 return parentRects.fixedClipRect(); | 424 return parentRects.fixedClipRect(); |
| 425 | 425 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 const LayoutSize& subpixelAccumulation) const { | 551 const LayoutSize& subpixelAccumulation) const { |
| 552 DCHECK(!m_geometryMapper); | 552 DCHECK(!m_geometryMapper); |
| 553 ClipRectsContext context(rootLayer, PaintingClipRects, | 553 ClipRectsContext context(rootLayer, PaintingClipRects, |
| 554 IgnoreOverlayScrollbarSize, subpixelAccumulation); | 554 IgnoreOverlayScrollbarSize, subpixelAccumulation); |
| 555 if (respectOverflowClip == IgnoreOverflowClip) | 555 if (respectOverflowClip == IgnoreOverflowClip) |
| 556 context.setIgnoreOverflowClip(); | 556 context.setIgnoreOverflowClip(); |
| 557 return getClipRects(context); | 557 return getClipRects(context); |
| 558 } | 558 } |
| 559 | 559 |
| 560 } // namespace blink | 560 } // namespace blink |
| OLD | NEW |