Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp

Issue 1537133002: Renaming: distinguish ancestor, container and paintInvalidationContainer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SelectionInvalidation
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 } else { 267 } else {
268 clipRects.reset(LayoutRect(LayoutRect::infiniteIntRect())); 268 clipRects.reset(LayoutRect(LayoutRect::infiniteIntRect()));
269 } 269 }
270 270
271 adjustClipRectsForChildren(m_layoutObject, clipRects); 271 adjustClipRectsForChildren(m_layoutObject, clipRects);
272 272
273 if ((m_layoutObject.hasOverflowClip() && shouldRespectOverflowClip(context)) || m_layoutObject.hasClip() || m_layoutObject.style()->containsPaint()) { 273 if ((m_layoutObject.hasOverflowClip() && shouldRespectOverflowClip(context)) || m_layoutObject.hasClip() || m_layoutObject.style()->containsPaint()) {
274 // This offset cannot use convertToLayerCoords, because sometimes our ro otLayer may be across 274 // This offset cannot use convertToLayerCoords, because sometimes our ro otLayer may be across
275 // some transformed layer boundary, for example, in the PaintLayerCompos itor overlapMap, where 275 // some transformed layer boundary, for example, in the PaintLayerCompos itor overlapMap, where
276 // clipRects are needed in view space. 276 // clipRects are needed in view space.
277 applyClipRects(context, m_layoutObject, roundedLayoutPoint(m_layoutObjec t.localToContainerPoint(FloatPoint(), context.rootLayer->layoutObject())), clipR ects); 277 applyClipRects(context, m_layoutObject, roundedLayoutPoint(m_layoutObjec t.localToAncestorPoint(FloatPoint(), context.rootLayer->layoutObject())), clipRe cts);
278 } 278 }
279 } 279 }
280 280
281 static ClipRect backgroundClipRectForPosition(const ClipRects& parentRects, EPos ition position) 281 static ClipRect backgroundClipRectForPosition(const ClipRects& parentRects, EPos ition position)
282 { 282 {
283 if (position == FixedPosition) 283 if (position == FixedPosition)
284 return parentRects.fixedClipRect(); 284 return parentRects.fixedClipRect();
285 285
286 if (position == AbsolutePosition) 286 if (position == AbsolutePosition)
287 return parentRects.posClipRect(); 287 return parentRects.posClipRect();
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 334
335 ClipRects* PaintLayerClipper::paintingClipRects(const PaintLayer* rootLayer, Sho uldRespectOverflowClip respectOverflowClip, const LayoutSize& subpixelAccumulati on) const 335 ClipRects* PaintLayerClipper::paintingClipRects(const PaintLayer* rootLayer, Sho uldRespectOverflowClip respectOverflowClip, const LayoutSize& subpixelAccumulati on) const
336 { 336 {
337 ClipRectsContext context(rootLayer, PaintingClipRects, IgnoreOverlayScrollba rSize, subpixelAccumulation); 337 ClipRectsContext context(rootLayer, PaintingClipRects, IgnoreOverlayScrollba rSize, subpixelAccumulation);
338 if (respectOverflowClip == IgnoreOverflowClip) 338 if (respectOverflowClip == IgnoreOverflowClip)
339 context.setIgnoreOverflowClip(); 339 context.setIgnoreOverflowClip();
340 return getClipRects(context); 340 return getClipRects(context);
341 } 341 }
342 342
343 } // namespace blink 343 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.cpp ('k') | third_party/WebKit/Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698