| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Apple Computer, Inc. | 2 * Copyright (C) 2006 Apple Computer, Inc. |
| 3 * Copyright (C) 2009 Google, Inc. | 3 * Copyright (C) 2009 Google, Inc. |
| 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 if (updateCachedBoundariesInParents) | 152 if (updateCachedBoundariesInParents) |
| 153 RenderSVGBlock::setNeedsBoundariesUpdate(); | 153 RenderSVGBlock::setNeedsBoundariesUpdate(); |
| 154 | 154 |
| 155 // Invalidate all resources of this client if our layout changed. | 155 // Invalidate all resources of this client if our layout changed. |
| 156 if (layoutChanged) | 156 if (layoutChanged) |
| 157 SVGResourcesCache::clientLayoutChanged(this); | 157 SVGResourcesCache::clientLayoutChanged(this); |
| 158 | 158 |
| 159 repainter.repaintAfterLayout(); | 159 repainter.repaintAfterLayout(); |
| 160 } | 160 } |
| 161 | 161 |
| 162 void RenderSVGForeignObject::computeRectForRepaint(const RenderLayerModelObject*
repaintContainer, | 162 void RenderSVGForeignObject::adjustRectToRepaintBackingCoords(const RenderLayerM
odelObject* repaintContainer, |
| 163 LayoutRect& rect, bool fixed) const | 163 LayoutRect& rect, bool fixed) const |
| 164 { | 164 { |
| 165 FloatRect r(rect); | 165 FloatRect r(rect); |
| 166 SVGRenderSupport::computeFloatRectForRepaint(this, repaintContainer, r, fixe
d); | 166 SVGRenderSupport::computeFloatRectForRepaint(this, repaintContainer, r, fixe
d); |
| 167 rect = enclosingLayoutRect(r); | 167 rect = enclosingLayoutRect(r); |
| 168 } | 168 } |
| 169 | 169 |
| 170 bool RenderSVGForeignObject::nodeAtFloatPoint(const HitTestRequest& request, Hit
TestResult& result, const FloatPoint& pointInParent, HitTestAction hitTestAction
) | 170 bool RenderSVGForeignObject::nodeAtFloatPoint(const HitTestRequest& request, Hit
TestResult& result, const FloatPoint& pointInParent, HitTestAction hitTestAction
) |
| 171 { | 171 { |
| 172 // Embedded content is drawn in the foreground phase. | 172 // Embedded content is drawn in the foreground phase. |
| 173 if (hitTestAction != HitTestForeground) | 173 if (hitTestAction != HitTestForeground) |
| 174 return false; | 174 return false; |
| 175 | 175 |
| 176 FloatPoint localPoint = localTransform().inverse().mapPoint(pointInParent); | 176 FloatPoint localPoint = localTransform().inverse().mapPoint(pointInParent); |
| 177 | 177 |
| 178 // Early exit if local point is not contained in clipped viewport area | 178 // Early exit if local point is not contained in clipped viewport area |
| 179 if (SVGRenderSupport::isOverflowHidden(this) && !m_viewport.contains(localPo
int)) | 179 if (SVGRenderSupport::isOverflowHidden(this) && !m_viewport.contains(localPo
int)) |
| 180 return false; | 180 return false; |
| 181 | 181 |
| 182 // FOs establish a stacking context, so we need to hit-test all layers. | 182 // FOs establish a stacking context, so we need to hit-test all layers. |
| 183 HitTestLocation hitTestLocation(roundedLayoutPoint(localPoint)); | 183 HitTestLocation hitTestLocation(roundedLayoutPoint(localPoint)); |
| 184 return RenderBlock::nodeAtPoint(request, result, hitTestLocation, LayoutPoin
t(), HitTestForeground) | 184 return RenderBlock::nodeAtPoint(request, result, hitTestLocation, LayoutPoin
t(), HitTestForeground) |
| 185 || RenderBlock::nodeAtPoint(request, result, hitTestLocation, LayoutPoin
t(), HitTestFloat) | 185 || RenderBlock::nodeAtPoint(request, result, hitTestLocation, LayoutPoin
t(), HitTestFloat) |
| 186 || RenderBlock::nodeAtPoint(request, result, hitTestLocation, LayoutPoin
t(), HitTestChildBlockBackgrounds); | 186 || RenderBlock::nodeAtPoint(request, result, hitTestLocation, LayoutPoin
t(), HitTestChildBlockBackgrounds); |
| 187 } | 187 } |
| 188 | 188 |
| 189 } | 189 } |
| OLD | NEW |