| OLD | NEW |
| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 StyleColor fallbackColor; | 133 StyleColor fallbackColor; |
| 134 if (requiresStroke && !RenderSVGResource::strokePaintingResource(this, style
(), fallbackColor)) | 134 if (requiresStroke && !RenderSVGResource::strokePaintingResource(this, style
(), fallbackColor)) |
| 135 return false; | 135 return false; |
| 136 | 136 |
| 137 return shapeDependentStrokeContains(point); | 137 return shapeDependentStrokeContains(point); |
| 138 } | 138 } |
| 139 | 139 |
| 140 void RenderSVGShape::layout() | 140 void RenderSVGShape::layout() |
| 141 { | 141 { |
| 142 StackStats::LayoutCheckPoint layoutCheckPoint; | |
| 143 LayoutRepainter repainter(*this, SVGRenderSupport::checkForSVGRepaintDuringL
ayout(this) && selfNeedsLayout()); | 142 LayoutRepainter repainter(*this, SVGRenderSupport::checkForSVGRepaintDuringL
ayout(this) && selfNeedsLayout()); |
| 144 SVGGraphicsElement* element = toSVGGraphicsElement(node()); | 143 SVGGraphicsElement* element = toSVGGraphicsElement(node()); |
| 145 | 144 |
| 146 bool updateCachedBoundariesInParents = false; | 145 bool updateCachedBoundariesInParents = false; |
| 147 | 146 |
| 148 if (m_needsShapeUpdate || m_needsBoundariesUpdate) { | 147 if (m_needsShapeUpdate || m_needsBoundariesUpdate) { |
| 149 updateShapeFromElement(); | 148 updateShapeFromElement(); |
| 150 m_needsShapeUpdate = false; | 149 m_needsShapeUpdate = false; |
| 151 updateRepaintBoundingBox(); | 150 updateRepaintBoundingBox(); |
| 152 m_needsBoundariesUpdate = false; | 151 m_needsBoundariesUpdate = false; |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 return; | 458 return; |
| 460 | 459 |
| 461 ASSERT(m_path); | 460 ASSERT(m_path); |
| 462 | 461 |
| 463 SVGMarkerData markerData(m_markerPositions); | 462 SVGMarkerData markerData(m_markerPositions); |
| 464 m_path->apply(&markerData, SVGMarkerData::updateFromPathElement); | 463 m_path->apply(&markerData, SVGMarkerData::updateFromPathElement); |
| 465 markerData.pathIsDone(); | 464 markerData.pathIsDone(); |
| 466 } | 465 } |
| 467 | 466 |
| 468 } | 467 } |
| OLD | NEW |