OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2009, Google Inc. All rights reserved. | 2 * Copyright (c) 2009, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "core/rendering/svg/SVGResourcesCache.h" | 37 #include "core/rendering/svg/SVGResourcesCache.h" |
38 #include "core/svg/SVGGraphicsElement.h" | 38 #include "core/svg/SVGGraphicsElement.h" |
39 | 39 |
40 namespace WebCore { | 40 namespace WebCore { |
41 | 41 |
42 RenderSVGModelObject::RenderSVGModelObject(SVGElement* node) | 42 RenderSVGModelObject::RenderSVGModelObject(SVGElement* node) |
43 : RenderObject(node) | 43 : RenderObject(node) |
44 { | 44 { |
45 } | 45 } |
46 | 46 |
47 bool RenderSVGModelObject::isChildAllowed(RenderObject* child, RenderStyle*) con
st | |
48 { | |
49 return child->isSVG() && !(child->isSVGInline() || child->isSVGInlineText())
; | |
50 } | |
51 | |
52 LayoutRect RenderSVGModelObject::clippedOverflowRectForRepaint(const RenderLayer
ModelObject* repaintContainer) const | 47 LayoutRect RenderSVGModelObject::clippedOverflowRectForRepaint(const RenderLayer
ModelObject* repaintContainer) const |
53 { | 48 { |
54 return SVGRenderSupport::clippedOverflowRectForRepaint(this, repaintContaine
r); | 49 return SVGRenderSupport::clippedOverflowRectForRepaint(this, repaintContaine
r); |
55 } | 50 } |
56 | 51 |
57 void RenderSVGModelObject::computeFloatRectForRepaint(const RenderLayerModelObje
ct* repaintContainer, FloatRect& repaintRect, bool fixed) const | 52 void RenderSVGModelObject::computeFloatRectForRepaint(const RenderLayerModelObje
ct* repaintContainer, FloatRect& repaintRect, bool fixed) const |
58 { | 53 { |
59 SVGRenderSupport::computeFloatRectForRepaint(this, repaintContainer, repaint
Rect, fixed); | 54 SVGRenderSupport::computeFloatRectForRepaint(this, repaintContainer, repaint
Rect, fixed); |
60 } | 55 } |
61 | 56 |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 if (!isGraphicsElement(renderer)) | 195 if (!isGraphicsElement(renderer)) |
201 return false; | 196 return false; |
202 AffineTransform ctm; | 197 AffineTransform ctm; |
203 SVGGraphicsElement* svgElement = toSVGGraphicsElement(renderer->node()); | 198 SVGGraphicsElement* svgElement = toSVGGraphicsElement(renderer->node()); |
204 getElementCTM(svgElement, ctm); | 199 getElementCTM(svgElement, ctm); |
205 ASSERT(svgElement->renderer()); | 200 ASSERT(svgElement->renderer()); |
206 return rect.contains(ctm.mapRect(svgElement->renderer()->repaintRectInLocalC
oordinates())); | 201 return rect.contains(ctm.mapRect(svgElement->renderer()->repaintRectInLocalC
oordinates())); |
207 } | 202 } |
208 | 203 |
209 } // namespace WebCore | 204 } // namespace WebCore |
OLD | NEW |