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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp

Issue 2757533002: Fix overflow:overlay scrollbar width for paint. (Closed)
Patch Set: Created 3 years, 9 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) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2007, 2008, 2009 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2007, 2008, 2009 Rob Buis <buis@kde.org>
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 Google, Inc. 5 * Copyright (C) 2009 Google, Inc.
6 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 223
224 LayoutRect LayoutSVGRoot::visualOverflowRect() const { 224 LayoutRect LayoutSVGRoot::visualOverflowRect() const {
225 LayoutRect rect = LayoutReplaced::selfVisualOverflowRect(); 225 LayoutRect rect = LayoutReplaced::selfVisualOverflowRect();
226 if (!shouldApplyViewportClip()) 226 if (!shouldApplyViewportClip())
227 rect.unite(contentsVisualOverflowRect()); 227 rect.unite(contentsVisualOverflowRect());
228 return rect; 228 return rect;
229 } 229 }
230 230
231 LayoutRect LayoutSVGRoot::overflowClipRect(const LayoutPoint& location, 231 LayoutRect LayoutSVGRoot::overflowClipRect(const LayoutPoint& location,
232 OverlayScrollbarClipBehavior) const { 232 OverlayScrollbarClipBehavior) const {
233 return LayoutRect(pixelSnappedIntRect( 233 return LayoutRect(pixelSnappedIntRect(LayoutReplaced::overflowClipRect(
234 LayoutReplaced::overflowClipRect(location, IgnoreOverlayScrollbarSize))); 234 location, IgnorePlatformOverlayScrollbarSize)));
235 } 235 }
236 236
237 void LayoutSVGRoot::paintReplaced(const PaintInfo& paintInfo, 237 void LayoutSVGRoot::paintReplaced(const PaintInfo& paintInfo,
238 const LayoutPoint& paintOffset) const { 238 const LayoutPoint& paintOffset) const {
239 SVGRootPainter(*this).paintReplaced(paintInfo, paintOffset); 239 SVGRootPainter(*this).paintReplaced(paintInfo, paintOffset);
240 } 240 }
241 241
242 void LayoutSVGRoot::willBeDestroyed() { 242 void LayoutSVGRoot::willBeDestroyed() {
243 SVGResourcesCache::clientDestroyed(this); 243 SVGResourcesCache::clientDestroyed(this);
244 LayoutReplaced::willBeDestroyed(); 244 LayoutReplaced::willBeDestroyed();
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 if (result.addNodeToListBasedTestResult(node(), locationInContainer, 484 if (result.addNodeToListBasedTestResult(node(), locationInContainer,
485 boundsRect) == StopHitTesting) 485 boundsRect) == StopHitTesting)
486 return true; 486 return true;
487 } 487 }
488 } 488 }
489 489
490 return false; 490 return false;
491 } 491 }
492 492
493 } // namespace blink 493 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.h ('k') | third_party/WebKit/Source/core/paint/ClipRectsCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698