| 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 11 matching lines...) Expand all Loading... |
| 22 * You should have received a copy of the GNU Library General Public License | 22 * You should have received a copy of the GNU Library General Public License |
| 23 * along with this library; see the file COPYING.LIB. If not, write to | 23 * along with this library; see the file COPYING.LIB. If not, write to |
| 24 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 24 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 25 * Boston, MA 02110-1301, USA. | 25 * Boston, MA 02110-1301, USA. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #include "config.h" | 28 #include "config.h" |
| 29 | 29 |
| 30 #include "core/rendering/svg/RenderSVGShape.h" | 30 #include "core/rendering/svg/RenderSVGShape.h" |
| 31 | 31 |
| 32 #include "core/platform/graphics/GraphicsContextStateSaver.h" | |
| 33 #include "core/rendering/GraphicsContextAnnotator.h" | 32 #include "core/rendering/GraphicsContextAnnotator.h" |
| 34 #include "core/rendering/HitTestRequest.h" | 33 #include "core/rendering/HitTestRequest.h" |
| 35 #include "core/rendering/LayoutRectRecorder.h" | 34 #include "core/rendering/LayoutRectRecorder.h" |
| 36 #include "core/rendering/LayoutRepainter.h" | 35 #include "core/rendering/LayoutRepainter.h" |
| 37 #include "core/rendering/PointerEventsHitRules.h" | 36 #include "core/rendering/PointerEventsHitRules.h" |
| 38 #include "core/rendering/svg/RenderSVGResourceMarker.h" | 37 #include "core/rendering/svg/RenderSVGResourceMarker.h" |
| 39 #include "core/rendering/svg/RenderSVGResourceSolidColor.h" | 38 #include "core/rendering/svg/RenderSVGResourceSolidColor.h" |
| 40 #include "core/rendering/svg/SVGPathData.h" | 39 #include "core/rendering/svg/SVGPathData.h" |
| 41 #include "core/rendering/svg/SVGRenderingContext.h" | 40 #include "core/rendering/svg/SVGRenderingContext.h" |
| 42 #include "core/rendering/svg/SVGResources.h" | 41 #include "core/rendering/svg/SVGResources.h" |
| 43 #include "core/rendering/svg/SVGResourcesCache.h" | 42 #include "core/rendering/svg/SVGResourcesCache.h" |
| 44 #include "core/svg/SVGGraphicsElement.h" | 43 #include "core/svg/SVGGraphicsElement.h" |
| 45 #include "platform/geometry/FloatPoint.h" | 44 #include "platform/geometry/FloatPoint.h" |
| 45 #include "platform/graphics/GraphicsContextStateSaver.h" |
| 46 #include "wtf/MathExtras.h" | 46 #include "wtf/MathExtras.h" |
| 47 | 47 |
| 48 namespace WebCore { | 48 namespace WebCore { |
| 49 | 49 |
| 50 RenderSVGShape::RenderSVGShape(SVGGraphicsElement* node) | 50 RenderSVGShape::RenderSVGShape(SVGGraphicsElement* node) |
| 51 : RenderSVGModelObject(node) | 51 : RenderSVGModelObject(node) |
| 52 , m_needsBoundariesUpdate(false) // Default is false, the cached rects are e
mpty from the beginning. | 52 , m_needsBoundariesUpdate(false) // Default is false, the cached rects are e
mpty from the beginning. |
| 53 , m_needsShapeUpdate(true) // Default is true, so we grab a Path object once
from SVGGraphicsElement. | 53 , m_needsShapeUpdate(true) // Default is true, so we grab a Path object once
from SVGGraphicsElement. |
| 54 , m_needsTransformUpdate(true) // Default is true, so we grab a AffineTransf
orm object once from SVGGraphicsElement. | 54 , m_needsTransformUpdate(true) // Default is true, so we grab a AffineTransf
orm object once from SVGGraphicsElement. |
| 55 { | 55 { |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 return; | 466 return; |
| 467 | 467 |
| 468 ASSERT(m_path); | 468 ASSERT(m_path); |
| 469 | 469 |
| 470 SVGMarkerData markerData(m_markerPositions); | 470 SVGMarkerData markerData(m_markerPositions); |
| 471 m_path->apply(&markerData, SVGMarkerData::updateFromPathElement); | 471 m_path->apply(&markerData, SVGMarkerData::updateFromPathElement); |
| 472 markerData.pathIsDone(); | 472 markerData.pathIsDone(); |
| 473 } | 473 } |
| 474 | 474 |
| 475 } | 475 } |
| OLD | NEW |