|
1 /* |
|
2 * This file is part of the WebKit project. |
|
3 * |
|
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
|
5 * |
|
6 * This library is free software; you can redistribute it and/or |
|
7 * modify it under the terms of the GNU Library General Public |
|
8 * License as published by the Free Software Foundation; either |
|
9 * version 2 of the License, or (at your option) any later version. |
|
10 * |
|
11 * This library is distributed in the hope that it will be useful, |
|
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
14 * Library General Public License for more details. |
|
15 * |
|
16 * You should have received a copy of the GNU Library General Public License |
|
17 * along with this library; see the file COPYING.LIB. If not, write to |
|
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
|
19 * Boston, MA 02110-1301, USA. |
|
20 * |
|
21 */ |
|
22 |
|
23 #include "config.h" |
|
24 |
|
25 #if ENABLE(SVG) |
|
26 #include "RenderSVGHiddenContainer.h" |
|
27 |
|
28 #include "RenderPath.h" |
|
29 #include "SVGStyledElement.h" |
|
30 |
|
31 namespace WebCore { |
|
32 |
|
33 RenderSVGHiddenContainer::RenderSVGHiddenContainer(SVGStyledElement* element) |
|
34 : RenderSVGContainer(element) |
|
35 { |
|
36 } |
|
37 |
|
38 void RenderSVGHiddenContainer::layout() |
|
39 { |
|
40 ASSERT(needsLayout()); |
|
41 SVGRenderSupport::layoutChildren(this, selfNeedsLayout()); |
|
42 setNeedsLayout(false); |
|
43 } |
|
44 |
|
45 void RenderSVGHiddenContainer::paint(PaintInfo&, int, int) |
|
46 { |
|
47 // This subtree does not paint. |
|
48 } |
|
49 |
|
50 IntRect RenderSVGHiddenContainer::clippedOverflowRectForRepaint(RenderBoxModelObject* /*repaintContainer*/) |
|
51 { |
|
52 return IntRect(); |
|
53 } |
|
54 |
|
55 void RenderSVGHiddenContainer::absoluteQuads(Vector<FloatQuad>&) |
|
56 { |
|
57 // This subtree does not take up space or paint |
|
58 } |
|
59 |
|
60 bool RenderSVGHiddenContainer::nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const FloatPoint&, HitTestAction) |
|
61 { |
|
62 return false; |
|
63 } |
|
64 |
|
65 FloatRect RenderSVGHiddenContainer::objectBoundingBox() const |
|
66 { |
|
67 return FloatRect(); |
|
68 } |
|
69 |
|
70 FloatRect RenderSVGHiddenContainer::repaintRectInLocalCoordinates() const |
|
71 { |
|
72 return FloatRect(); |
|
73 } |
|
74 |
|
75 } |
|
76 |
|
77 #endif // ENABLE(SVG) |