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

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

Issue 2614883007: Change computed style enums to be prefixed with 'k'. (Closed)
Patch Set: Rebase on ToT. Created 3 years, 11 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 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 const LayoutPoint& localLayoutPoint = LayoutPoint(localPoint); 195 const LayoutPoint& localLayoutPoint = LayoutPoint(localPoint);
196 updateHitTestResult(result, localLayoutPoint); 196 updateHitTestResult(result, localLayoutPoint);
197 if (result.addNodeToListBasedTestResult( 197 if (result.addNodeToListBasedTestResult(
198 child->node(), localLayoutPoint) == StopHitTesting) 198 child->node(), localLayoutPoint) == StopHitTesting)
199 return true; 199 return true;
200 } 200 }
201 } 201 }
202 202
203 // pointer-events: bounding-box makes it possible for containers to be direct 203 // pointer-events: bounding-box makes it possible for containers to be direct
204 // targets. 204 // targets.
205 if (style()->pointerEvents() == EPointerEvents::BoundingBox) { 205 if (style()->pointerEvents() == EPointerEvents::kBoundingBox) {
206 // Check for a valid bounding box because it will be invalid for empty 206 // Check for a valid bounding box because it will be invalid for empty
207 // containers. 207 // containers.
208 if (isObjectBoundingBoxValid() && 208 if (isObjectBoundingBoxValid() &&
209 objectBoundingBox().contains(localPoint)) { 209 objectBoundingBox().contains(localPoint)) {
210 const LayoutPoint& localLayoutPoint = LayoutPoint(localPoint); 210 const LayoutPoint& localLayoutPoint = LayoutPoint(localPoint);
211 updateHitTestResult(result, localLayoutPoint); 211 updateHitTestResult(result, localLayoutPoint);
212 if (result.addNodeToListBasedTestResult(element(), localLayoutPoint) == 212 if (result.addNodeToListBasedTestResult(element(), localLayoutPoint) ==
213 StopHitTesting) 213 StopHitTesting)
214 return true; 214 return true;
215 } 215 }
216 } 216 }
217 // 16.4: "If there are no graphics elements whose relevant graphics content is 217 // 16.4: "If there are no graphics elements whose relevant graphics content is
218 // under the pointer (i.e., there is no target element), the event is not 218 // under the pointer (i.e., there is no target element), the event is not
219 // dispatched." 219 // dispatched."
220 return false; 220 return false;
221 } 221 }
222 222
223 SVGTransformChange LayoutSVGContainer::calculateLocalTransform() { 223 SVGTransformChange LayoutSVGContainer::calculateLocalTransform() {
224 return SVGTransformChange::None; 224 return SVGTransformChange::None;
225 } 225 }
226 226
227 } // namespace blink 227 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698