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

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

Issue 2491703004: Replace roundedLayoutPoint with LayoutPoint (Closed)
Patch Set: Created 4 years, 1 month 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 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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp ('k') | third_party/WebKit/Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698