| OLD | NEW |
| 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 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 690 } else { | 690 } else { |
| 691 positioningAreaSize = pixelSnappedIntSize(paintRect.size() - LayoutS
ize(left + right, top + bottom), paintRect.location()); | 691 positioningAreaSize = pixelSnappedIntSize(paintRect.size() - LayoutS
ize(left + right, top + bottom), paintRect.location()); |
| 692 } | 692 } |
| 693 } else { | 693 } else { |
| 694 geometry.setHasNonLocalGeometry(); | 694 geometry.setHasNonLocalGeometry(); |
| 695 | 695 |
| 696 IntRect viewportRect = pixelSnappedIntRect(obj.viewRect()); | 696 IntRect viewportRect = pixelSnappedIntRect(obj.viewRect()); |
| 697 if (fixedBackgroundPaintsInLocalCoordinates(obj)) | 697 if (fixedBackgroundPaintsInLocalCoordinates(obj)) |
| 698 viewportRect.setLocation(IntPoint()); | 698 viewportRect.setLocation(IntPoint()); |
| 699 else if (FrameView* frameView = obj.view()->frameView()) | 699 else if (FrameView* frameView = obj.view()->frameView()) |
| 700 viewportRect.setLocation(IntPoint(frameView->scrollOffsetForFixedPos
ition())); | 700 viewportRect.setLocation(IntPoint(frameView->scrollOffsetForViewport
ConstrainedObjects())); |
| 701 | 701 |
| 702 if (paintContainer) { | 702 if (paintContainer) { |
| 703 IntPoint absoluteContainerOffset = roundedIntPoint(paintContainer->l
ocalToAbsolute(FloatPoint())); | 703 IntPoint absoluteContainerOffset = roundedIntPoint(paintContainer->l
ocalToAbsolute(FloatPoint())); |
| 704 viewportRect.moveBy(-absoluteContainerOffset); | 704 viewportRect.moveBy(-absoluteContainerOffset); |
| 705 } | 705 } |
| 706 | 706 |
| 707 geometry.setDestRect(pixelSnappedIntRect(viewportRect)); | 707 geometry.setDestRect(pixelSnappedIntRect(viewportRect)); |
| 708 positioningAreaSize = geometry.destRect().size(); | 708 positioningAreaSize = geometry.destRect().size(); |
| 709 } | 709 } |
| 710 | 710 |
| (...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2171 | 2171 |
| 2172 FloatPoint secondQuad[4]; | 2172 FloatPoint secondQuad[4]; |
| 2173 secondQuad[0] = quad[0]; | 2173 secondQuad[0] = quad[0]; |
| 2174 secondQuad[1] = FloatPoint(quad[0].x() - r1 * cx, quad[0].y() - r1 * cy); | 2174 secondQuad[1] = FloatPoint(quad[0].x() - r1 * cx, quad[0].y() - r1 * cy); |
| 2175 secondQuad[2] = quad[2]; | 2175 secondQuad[2] = quad[2]; |
| 2176 secondQuad[3] = quad[3]; | 2176 secondQuad[3] = quad[3]; |
| 2177 graphicsContext->clipPolygon(4, secondQuad, !secondEdgeMatches); | 2177 graphicsContext->clipPolygon(4, secondQuad, !secondEdgeMatches); |
| 2178 } | 2178 } |
| 2179 | 2179 |
| 2180 } // namespace blink | 2180 } // namespace blink |
| OLD | NEW |