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

Side by Side Diff: Source/core/paint/BoxPainter.cpp

Issue 1162623007: Removed redundant rect methods on FrameView (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/paint/BoxPainter.h" 6 #include "core/paint/BoxPainter.h"
7 7
8 #include "core/HTMLNames.h" 8 #include "core/HTMLNames.h"
9 #include "core/frame/Settings.h" 9 #include "core/frame/Settings.h"
10 #include "core/html/HTMLFrameOwnerElement.h" 10 #include "core/html/HTMLFrameOwnerElement.h"
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 } else { 735 } else {
736 positioningAreaSize = pixelSnappedIntSize(paintRect.size() - LayoutS ize(left + right, top + bottom), paintRect.location()); 736 positioningAreaSize = pixelSnappedIntSize(paintRect.size() - LayoutS ize(left + right, top + bottom), paintRect.location());
737 } 737 }
738 } else { 738 } else {
739 geometry.setHasNonLocalGeometry(); 739 geometry.setHasNonLocalGeometry();
740 740
741 IntRect viewportRect = pixelSnappedIntRect(obj.viewRect()); 741 IntRect viewportRect = pixelSnappedIntRect(obj.viewRect());
742 if (fixedBackgroundPaintsInLocalCoordinates(obj)) 742 if (fixedBackgroundPaintsInLocalCoordinates(obj))
743 viewportRect.setLocation(IntPoint()); 743 viewportRect.setLocation(IntPoint());
744 else if (FrameView* frameView = obj.view()->frameView()) 744 else if (FrameView* frameView = obj.view()->frameView())
745 viewportRect.setLocation(IntPoint(frameView->scrollOffsetForViewport ConstrainedObjects())); 745 viewportRect.setLocation(frameView->scrollPosition());
746 746
747 if (paintContainer) { 747 if (paintContainer) {
748 IntPoint absoluteContainerOffset = roundedIntPoint(paintContainer->l ocalToAbsolute(FloatPoint())); 748 IntPoint absoluteContainerOffset = roundedIntPoint(paintContainer->l ocalToAbsolute(FloatPoint()));
749 viewportRect.moveBy(-absoluteContainerOffset); 749 viewportRect.moveBy(-absoluteContainerOffset);
750 } 750 }
751 751
752 geometry.setDestRect(viewportRect); 752 geometry.setDestRect(viewportRect);
753 positioningAreaSize = geometry.destRect().size(); 753 positioningAreaSize = geometry.destRect().size();
754 } 754 }
755 755
(...skipping 1542 matching lines...) Expand 10 before | Expand all | Expand 10 after
2298 2298
2299 FloatPoint secondQuad[4]; 2299 FloatPoint secondQuad[4];
2300 secondQuad[0] = quad[0]; 2300 secondQuad[0] = quad[0];
2301 secondQuad[1] = FloatPoint(quad[0].x() - r1 * cx, quad[0].y() - r1 * cy); 2301 secondQuad[1] = FloatPoint(quad[0].x() - r1 * cx, quad[0].y() - r1 * cy);
2302 secondQuad[2] = quad[2]; 2302 secondQuad[2] = quad[2];
2303 secondQuad[3] = quad[3]; 2303 secondQuad[3] = quad[3];
2304 graphicsContext->clipPolygon(4, secondQuad, !secondEdgeMatches); 2304 graphicsContext->clipPolygon(4, secondQuad, !secondEdgeMatches);
2305 } 2305 }
2306 2306
2307 } // namespace blink 2307 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp ('k') | Source/core/paint/DeprecatedPaintLayerClipper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698