| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2007, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2007, 2008 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
| 5 * Copyright (C) 2009 Google, Inc. All rights reserved. | 5 * Copyright (C) 2009 Google, Inc. All rights reserved. |
| 6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 return; | 143 return; |
| 144 if (parent()) | 144 if (parent()) |
| 145 parent()->descendantIsolationRequirementsChanged(state); | 145 parent()->descendantIsolationRequirementsChanged(state); |
| 146 } | 146 } |
| 147 | 147 |
| 148 void LayoutSVGContainer::paint(const PaintInfo& paintInfo, const LayoutPoint&) | 148 void LayoutSVGContainer::paint(const PaintInfo& paintInfo, const LayoutPoint&) |
| 149 { | 149 { |
| 150 SVGContainerPainter(*this).paint(paintInfo); | 150 SVGContainerPainter(*this).paint(paintInfo); |
| 151 } | 151 } |
| 152 | 152 |
| 153 void LayoutSVGContainer::addFocusRingRects(Vector<LayoutRect>& rects, const Layo
utPoint&) const | 153 void LayoutSVGContainer::addOutlineRects(Vector<LayoutRect>& rects, const Layout
Point&) const |
| 154 { | 154 { |
| 155 LayoutRect contentRect = LayoutRect(paintInvalidationRectInLocalCoordinates(
)); | 155 LayoutRect contentRect = LayoutRect(paintInvalidationRectInLocalCoordinates(
)); |
| 156 if (!contentRect.isEmpty()) | 156 if (!contentRect.isEmpty()) |
| 157 rects.append(contentRect); | 157 rects.append(contentRect); |
| 158 } | 158 } |
| 159 | 159 |
| 160 void LayoutSVGContainer::updateCachedBoundaries() | 160 void LayoutSVGContainer::updateCachedBoundaries() |
| 161 { | 161 { |
| 162 SVGLayoutSupport::computeContainerBoundingBoxes(this, m_objectBoundingBox, m
_objectBoundingBoxValid, m_strokeBoundingBox, m_paintInvalidationBoundingBox); | 162 SVGLayoutSupport::computeContainerBoundingBoxes(this, m_objectBoundingBox, m
_objectBoundingBoxValid, m_strokeBoundingBox, m_paintInvalidationBoundingBox); |
| 163 SVGLayoutSupport::intersectPaintInvalidationRectWithResources(this, m_paintI
nvalidationBoundingBox); | 163 SVGLayoutSupport::intersectPaintInvalidationRectWithResources(this, m_paintI
nvalidationBoundingBox); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 190 updateHitTestResult(result, localLayoutPoint); | 190 updateHitTestResult(result, localLayoutPoint); |
| 191 if (!result.addNodeToListBasedTestResult(element(), localLayoutPoint
)) | 191 if (!result.addNodeToListBasedTestResult(element(), localLayoutPoint
)) |
| 192 return true; | 192 return true; |
| 193 } | 193 } |
| 194 } | 194 } |
| 195 // 16.4: "If there are no graphics elements whose relevant graphics content
is under the pointer (i.e., there is no target element), the event is not dispat
ched." | 195 // 16.4: "If there are no graphics elements whose relevant graphics content
is under the pointer (i.e., there is no target element), the event is not dispat
ched." |
| 196 return false; | 196 return false; |
| 197 } | 197 } |
| 198 | 198 |
| 199 } | 199 } |
| OLD | NEW |