| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 { | 46 { |
| 47 } | 47 } |
| 48 | 48 |
| 49 bool RenderSVGModelObject::isChildAllowed(RenderObject* child, RenderStyle*) con
st | 49 bool RenderSVGModelObject::isChildAllowed(RenderObject* child, RenderStyle*) con
st |
| 50 { | 50 { |
| 51 return child->isSVG() && !(child->isSVGInline() || child->isSVGInlineText())
; | 51 return child->isSVG() && !(child->isSVGInline() || child->isSVGInlineText())
; |
| 52 } | 52 } |
| 53 | 53 |
| 54 LayoutRect RenderSVGModelObject::clippedOverflowRectForPaintInvalidation(const R
enderLayerModelObject* paintInvalidationContainer, const PaintInvalidationState*
paintInvalidationState) const | 54 LayoutRect RenderSVGModelObject::clippedOverflowRectForPaintInvalidation(const R
enderLayerModelObject* paintInvalidationContainer, const PaintInvalidationState*
paintInvalidationState) const |
| 55 { | 55 { |
| 56 return SVGRenderSupport::clippedOverflowRectForRepaint(this, paintInvalidati
onContainer, paintInvalidationState); | 56 return SVGRenderSupport::clippedOverflowRectForPaintInvalidation(this, paint
InvalidationContainer, paintInvalidationState); |
| 57 } | 57 } |
| 58 | 58 |
| 59 void RenderSVGModelObject::computeFloatRectForPaintInvalidation(const RenderLaye
rModelObject* paintInvalidationContainer, FloatRect& paintInvalidationRect, bool
fixed, const PaintInvalidationState* paintInvalidationState) const | 59 void RenderSVGModelObject::computeFloatRectForPaintInvalidation(const RenderLaye
rModelObject* paintInvalidationContainer, FloatRect& paintInvalidationRect, bool
fixed, const PaintInvalidationState* paintInvalidationState) const |
| 60 { | 60 { |
| 61 SVGRenderSupport::computeFloatRectForRepaint(this, paintInvalidationContaine
r, paintInvalidationRect, fixed, paintInvalidationState); | 61 SVGRenderSupport::computeFloatRectForPaintInvalidation(this, paintInvalidati
onContainer, paintInvalidationRect, fixed, paintInvalidationState); |
| 62 } | 62 } |
| 63 | 63 |
| 64 void RenderSVGModelObject::mapLocalToContainer(const RenderLayerModelObject* rep
aintContainer, TransformState& transformState, MapCoordinatesFlags, bool* wasFix
ed, const PaintInvalidationState* paintInvalidationState) const | 64 void RenderSVGModelObject::mapLocalToContainer(const RenderLayerModelObject* pai
ntInvalidationContainer, TransformState& transformState, MapCoordinatesFlags, bo
ol* wasFixed, const PaintInvalidationState* paintInvalidationState) const |
| 65 { | 65 { |
| 66 SVGRenderSupport::mapLocalToContainer(this, repaintContainer, transformState
, wasFixed, paintInvalidationState); | 66 SVGRenderSupport::mapLocalToContainer(this, paintInvalidationContainer, tran
sformState, wasFixed, paintInvalidationState); |
| 67 } | 67 } |
| 68 | 68 |
| 69 const RenderObject* RenderSVGModelObject::pushMappingToContainer(const RenderLay
erModelObject* ancestorToStopAt, RenderGeometryMap& geometryMap) const | 69 const RenderObject* RenderSVGModelObject::pushMappingToContainer(const RenderLay
erModelObject* ancestorToStopAt, RenderGeometryMap& geometryMap) const |
| 70 { | 70 { |
| 71 return SVGRenderSupport::pushMappingToContainer(this, ancestorToStopAt, geom
etryMap); | 71 return SVGRenderSupport::pushMappingToContainer(this, ancestorToStopAt, geom
etryMap); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void RenderSVGModelObject::absoluteRects(Vector<IntRect>& rects, const LayoutPoi
nt& accumulatedOffset) const | 74 void RenderSVGModelObject::absoluteRects(Vector<IntRect>& rects, const LayoutPoi
nt& accumulatedOffset) const |
| 75 { | 75 { |
| 76 IntRect rect = enclosingIntRect(strokeBoundingBox()); | 76 IntRect rect = enclosingIntRect(strokeBoundingBox()); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 // If we are set to do a full paint invalidation that means the RenderView w
ill be | 152 // If we are set to do a full paint invalidation that means the RenderView w
ill be |
| 153 // issue paint invalidations. We can then skip issuing of paint invalidation
s for the child | 153 // issue paint invalidations. We can then skip issuing of paint invalidation
s for the child |
| 154 // renderers as they'll be covered by the RenderView. | 154 // renderers as they'll be covered by the RenderView. |
| 155 if (view()->doingFullPaintInvalidation()) | 155 if (view()->doingFullPaintInvalidation()) |
| 156 return; | 156 return; |
| 157 | 157 |
| 158 RenderObject::invalidatePaintIfNeeded(paintInvalidationState.paintInvalidati
onContainer(), oldPaintInvalidationRect, oldPositionFromPaintInvalidationContain
er, paintInvalidationState); | 158 RenderObject::invalidatePaintIfNeeded(paintInvalidationState.paintInvalidati
onContainer(), oldPaintInvalidationRect, oldPositionFromPaintInvalidationContain
er, paintInvalidationState); |
| 159 } | 159 } |
| 160 | 160 |
| 161 } // namespace blink | 161 } // namespace blink |
| OLD | NEW |