| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> | 2 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> |
| 3 * Copyright (C) 2006 Apple Computer, Inc. | 3 * Copyright (C) 2006 Apple Computer, Inc. |
| 4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 5 * Copyright (C) 2007, 2008, 2009 Rob Buis <buis@kde.org> | 5 * Copyright (C) 2007, 2008, 2009 Rob Buis <buis@kde.org> |
| 6 * Copyright (C) 2009 Google, Inc. | 6 * Copyright (C) 2009 Google, Inc. |
| 7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
| 8 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> | 8 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 return false; | 183 return false; |
| 184 | 184 |
| 185 PointerEventsHitRules hitRules(PointerEventsHitRules::SVG_IMAGE_HITTESTING,
request, style()->pointerEvents()); | 185 PointerEventsHitRules hitRules(PointerEventsHitRules::SVG_IMAGE_HITTESTING,
request, style()->pointerEvents()); |
| 186 bool isVisible = (style()->visibility() == VISIBLE); | 186 bool isVisible = (style()->visibility() == VISIBLE); |
| 187 if (isVisible || !hitRules.requireVisible) { | 187 if (isVisible || !hitRules.requireVisible) { |
| 188 FloatPoint localPoint = localToParentTransform().inverse().mapPoint(poin
tInParent); | 188 FloatPoint localPoint = localToParentTransform().inverse().mapPoint(poin
tInParent); |
| 189 | 189 |
| 190 if (!SVGRenderSupport::pointInClippingArea(this, localPoint)) | 190 if (!SVGRenderSupport::pointInClippingArea(this, localPoint)) |
| 191 return false; | 191 return false; |
| 192 | 192 |
| 193 if (hitRules.canHitFill) { | 193 if (hitRules.canHitFill || hitRules.canHitBoundingBox) { |
| 194 if (m_objectBoundingBox.contains(localPoint)) { | 194 if (m_objectBoundingBox.contains(localPoint)) { |
| 195 updateHitTestResult(result, roundedLayoutPoint(localPoint)); | 195 updateHitTestResult(result, roundedLayoutPoint(localPoint)); |
| 196 return true; | 196 return true; |
| 197 } | 197 } |
| 198 } | 198 } |
| 199 } | 199 } |
| 200 | 200 |
| 201 return false; | 201 return false; |
| 202 } | 202 } |
| 203 | 203 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 223 | 223 |
| 224 void RenderSVGImage::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint
&, const RenderLayerModelObject*) | 224 void RenderSVGImage::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint
&, const RenderLayerModelObject*) |
| 225 { | 225 { |
| 226 // this is called from paint() after the localTransform has already been app
lied | 226 // this is called from paint() after the localTransform has already been app
lied |
| 227 IntRect contentRect = enclosingIntRect(repaintRectInLocalCoordinates()); | 227 IntRect contentRect = enclosingIntRect(repaintRectInLocalCoordinates()); |
| 228 if (!contentRect.isEmpty()) | 228 if (!contentRect.isEmpty()) |
| 229 rects.append(contentRect); | 229 rects.append(contentRect); |
| 230 } | 230 } |
| 231 | 231 |
| 232 } // namespace WebCore | 232 } // namespace WebCore |
| OLD | NEW |