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, 2007, 2008, 2009 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2007, 2008, 2009 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. | 5 * Copyright (C) 2009 Google, Inc. |
6 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
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 12 matching lines...) Expand all Loading... |
23 | 23 |
24 #include "config.h" | 24 #include "config.h" |
25 | 25 |
26 #include "core/rendering/svg/RenderSVGRoot.h" | 26 #include "core/rendering/svg/RenderSVGRoot.h" |
27 | 27 |
28 #include "core/page/Chrome.h" | 28 #include "core/page/Chrome.h" |
29 #include "core/page/ChromeClient.h" | 29 #include "core/page/ChromeClient.h" |
30 #include "core/page/Frame.h" | 30 #include "core/page/Frame.h" |
31 #include "core/page/Page.h" | 31 #include "core/page/Page.h" |
32 #include "core/platform/graphics/GraphicsContext.h" | 32 #include "core/platform/graphics/GraphicsContext.h" |
33 #include "core/platform/graphics/transforms/TransformState.h" | |
34 #include "core/rendering/HitTestResult.h" | 33 #include "core/rendering/HitTestResult.h" |
35 #include "core/rendering/LayoutRepainter.h" | 34 #include "core/rendering/LayoutRepainter.h" |
36 #include "core/rendering/RenderPart.h" | 35 #include "core/rendering/RenderPart.h" |
37 #include "core/rendering/RenderView.h" | 36 #include "core/rendering/RenderView.h" |
38 #include "core/rendering/svg/RenderSVGContainer.h" | |
39 #include "core/rendering/svg/RenderSVGResource.h" | |
40 #include "core/rendering/svg/RenderSVGResourceContainer.h" | 37 #include "core/rendering/svg/RenderSVGResourceContainer.h" |
41 #include "core/rendering/svg/RenderSVGResourceFilter.h" | |
42 #include "core/rendering/svg/SVGRenderingContext.h" | 38 #include "core/rendering/svg/SVGRenderingContext.h" |
43 #include "core/rendering/svg/SVGResources.h" | 39 #include "core/rendering/svg/SVGResources.h" |
44 #include "core/rendering/svg/SVGResourcesCache.h" | 40 #include "core/rendering/svg/SVGResourcesCache.h" |
45 #include "core/svg/SVGLength.h" | |
46 #include "core/svg/SVGSVGElement.h" | 41 #include "core/svg/SVGSVGElement.h" |
47 #include "core/svg/SVGStyledElement.h" | 42 #include "core/svg/SVGStyledElement.h" |
48 #include "core/svg/SVGViewSpec.h" | |
49 | 43 |
50 using namespace std; | 44 using namespace std; |
51 | 45 |
52 namespace WebCore { | 46 namespace WebCore { |
53 | 47 |
54 RenderSVGRoot::RenderSVGRoot(SVGStyledElement* node) | 48 RenderSVGRoot::RenderSVGRoot(SVGStyledElement* node) |
55 : RenderReplaced(node) | 49 : RenderReplaced(node) |
56 , m_objectBoundingBoxValid(false) | 50 , m_objectBoundingBoxValid(false) |
57 , m_isLayoutSizeChanged(false) | 51 , m_isLayoutSizeChanged(false) |
58 , m_needsBoundariesOrTransformUpdate(true) | 52 , m_needsBoundariesOrTransformUpdate(true) |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 { | 488 { |
495 RenderObject* svgRoot = resource->parent(); | 489 RenderObject* svgRoot = resource->parent(); |
496 while (svgRoot && !svgRoot->isSVGRoot()) | 490 while (svgRoot && !svgRoot->isSVGRoot()) |
497 svgRoot = svgRoot->parent(); | 491 svgRoot = svgRoot->parent(); |
498 if (!svgRoot) | 492 if (!svgRoot) |
499 return; | 493 return; |
500 toRenderSVGRoot(svgRoot)->m_resourcesNeedingToInvalidateClients.add(resource
); | 494 toRenderSVGRoot(svgRoot)->m_resourcesNeedingToInvalidateClients.add(resource
); |
501 } | 495 } |
502 | 496 |
503 } | 497 } |
OLD | NEW |