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

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

Issue 2265113002: More const LayoutObject references in SVGLayoutSupport (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2007, 2008 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. All rights reserved. 5 * Copyright (C) 2009 Google, Inc. All rights reserved.
6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 element()->setNeedsResizeObserverUpdate(); 170 element()->setNeedsResizeObserverUpdate();
171 } 171 }
172 172
173 bool LayoutSVGContainer::nodeAtFloatPoint(HitTestResult& result, const FloatPoin t& pointInParent, HitTestAction hitTestAction) 173 bool LayoutSVGContainer::nodeAtFloatPoint(HitTestResult& result, const FloatPoin t& pointInParent, HitTestAction hitTestAction)
174 { 174 {
175 // Give LayoutSVGViewportContainer a chance to apply its viewport clip 175 // Give LayoutSVGViewportContainer a chance to apply its viewport clip
176 if (!pointIsInsideViewportClip(pointInParent)) 176 if (!pointIsInsideViewportClip(pointInParent))
177 return false; 177 return false;
178 178
179 FloatPoint localPoint; 179 FloatPoint localPoint;
180 if (!SVGLayoutSupport::transformToUserSpaceAndCheckClipping(this, localToSVG ParentTransform(), pointInParent, localPoint)) 180 if (!SVGLayoutSupport::transformToUserSpaceAndCheckClipping(*this, localToSV GParentTransform(), pointInParent, localPoint))
181 return false; 181 return false;
182 182
183 for (LayoutObject* child = lastChild(); child; child = child->previousSiblin g()) { 183 for (LayoutObject* child = lastChild(); child; child = child->previousSiblin g()) {
184 if (child->nodeAtFloatPoint(result, localPoint, hitTestAction)) { 184 if (child->nodeAtFloatPoint(result, localPoint, hitTestAction)) {
185 const LayoutPoint& localLayoutPoint = roundedLayoutPoint(localPoint) ; 185 const LayoutPoint& localLayoutPoint = roundedLayoutPoint(localPoint) ;
186 updateHitTestResult(result, localLayoutPoint); 186 updateHitTestResult(result, localLayoutPoint);
187 if (result.addNodeToListBasedTestResult(child->node(), localLayoutPo int) == StopHitTesting) 187 if (result.addNodeToListBasedTestResult(child->node(), localLayoutPo int) == StopHitTesting)
188 return true; 188 return true;
189 } 189 }
190 } 190 }
(...skipping 11 matching lines...) Expand all
202 // 16.4: "If there are no graphics elements whose relevant graphics content is under the pointer (i.e., there is no target element), the event is not dispat ched." 202 // 16.4: "If there are no graphics elements whose relevant graphics content is under the pointer (i.e., there is no target element), the event is not dispat ched."
203 return false; 203 return false;
204 } 204 }
205 205
206 SVGTransformChange LayoutSVGContainer::calculateLocalTransform() 206 SVGTransformChange LayoutSVGContainer::calculateLocalTransform()
207 { 207 {
208 return SVGTransformChange::None; 208 return SVGTransformChange::None;
209 } 209 }
210 210
211 } // namespace blink 211 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698