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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.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) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2008 Rob Buis <buis@kde.org>
4 * Copyright (C) 2005, 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2005, 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 Google, Inc. 5 * Copyright (C) 2009 Google, Inc.
6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
8 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com> 8 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com>
9 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org> 9 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org>
10 * Copyright (C) 2011 University of Szeged 10 * Copyright (C) 2011 University of Szeged
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 259
260 FloatPoint localPoint; 260 FloatPoint localPoint;
261 if (!SVGLayoutSupport::transformToUserSpaceAndCheckClipping( 261 if (!SVGLayoutSupport::transformToUserSpaceAndCheckClipping(
262 *this, localToSVGParentTransform(), pointInParent, localPoint)) 262 *this, localToSVGParentTransform(), pointInParent, localPoint))
263 return false; 263 return false;
264 264
265 PointerEventsHitRules hitRules(PointerEventsHitRules::SVG_GEOMETRY_HITTESTING, 265 PointerEventsHitRules hitRules(PointerEventsHitRules::SVG_GEOMETRY_HITTESTING,
266 result.hitTestRequest(), 266 result.hitTestRequest(),
267 style()->pointerEvents()); 267 style()->pointerEvents());
268 if (nodeAtFloatPointInternal(result.hitTestRequest(), localPoint, hitRules)) { 268 if (nodeAtFloatPointInternal(result.hitTestRequest(), localPoint, hitRules)) {
269 const LayoutPoint& localLayoutPoint = roundedLayoutPoint(localPoint); 269 const LayoutPoint& localLayoutPoint = LayoutPoint(localPoint);
270 updateHitTestResult(result, localLayoutPoint); 270 updateHitTestResult(result, localLayoutPoint);
271 if (result.addNodeToListBasedTestResult(element(), localLayoutPoint) == 271 if (result.addNodeToListBasedTestResult(element(), localLayoutPoint) ==
272 StopHitTesting) 272 StopHitTesting)
273 return true; 273 return true;
274 } 274 }
275 275
276 return false; 276 return false;
277 } 277 }
278 278
279 bool LayoutSVGShape::nodeAtFloatPointInternal(const HitTestRequest& request, 279 bool LayoutSVGShape::nodeAtFloatPointInternal(const HitTestRequest& request,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 return lengthContext.valueForLength(style()->svgStyle().strokeWidth()); 331 return lengthContext.valueForLength(style()->svgStyle().strokeWidth());
332 } 332 }
333 333
334 LayoutSVGShapeRareData& LayoutSVGShape::ensureRareData() const { 334 LayoutSVGShapeRareData& LayoutSVGShape::ensureRareData() const {
335 if (!m_rareData) 335 if (!m_rareData)
336 m_rareData = wrapUnique(new LayoutSVGShapeRareData()); 336 m_rareData = wrapUnique(new LayoutSVGShapeRareData());
337 return *m_rareData.get(); 337 return *m_rareData.get();
338 } 338 }
339 339
340 } // namespace blink 340 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698