| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Rob Buis <buis@kde.org> | 2 * Copyright (C) 2007, 2008 Rob Buis <buis@kde.org> |
| 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@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 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 7 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 LayoutObject* candidateLayoutObject; | 59 LayoutObject* candidateLayoutObject; |
| 60 float candidateDistance; | 60 float candidateDistance; |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 FloatRect SVGLayoutSupport::localOverflowRectForPaintInvalidation(const LayoutOb
ject& object) | 63 FloatRect SVGLayoutSupport::localOverflowRectForPaintInvalidation(const LayoutOb
ject& object) |
| 64 { | 64 { |
| 65 // This doesn't apply to LayoutSVGRoot. Use LayoutSVGRoot::localOverflowRect
ForPaintInvalidation() instead. | 65 // This doesn't apply to LayoutSVGRoot. Use LayoutSVGRoot::localOverflowRect
ForPaintInvalidation() instead. |
| 66 ASSERT(!object.isSVGRoot()); | 66 ASSERT(!object.isSVGRoot()); |
| 67 | 67 |
| 68 // Return early for any cases where we don't actually paint | 68 // Return early for any cases where we don't actually paint |
| 69 if (object.styleRef().visibility() != VISIBLE && !object.enclosingLayer()->h
asVisibleContent()) | 69 if (object.styleRef().visibility() != EVisibility::Visible && !object.enclos
ingLayer()->hasVisibleContent()) |
| 70 return FloatRect(); | 70 return FloatRect(); |
| 71 | 71 |
| 72 FloatRect paintInvalidationRect = object.paintInvalidationRectInLocalSVGCoor
dinates(); | 72 FloatRect paintInvalidationRect = object.paintInvalidationRectInLocalSVGCoor
dinates(); |
| 73 if (int outlineOutset = object.styleRef().outlineOutsetExtent()) | 73 if (int outlineOutset = object.styleRef().outlineOutsetExtent()) |
| 74 paintInvalidationRect.inflate(outlineOutset); | 74 paintInvalidationRect.inflate(outlineOutset); |
| 75 return paintInvalidationRect; | 75 return paintInvalidationRect; |
| 76 } | 76 } |
| 77 | 77 |
| 78 LayoutRect SVGLayoutSupport::clippedOverflowRectForPaintInvalidation(const Layou
tObject& object, const LayoutBoxModelObject& paintInvalidationContainer) | 78 LayoutRect SVGLayoutSupport::clippedOverflowRectForPaintInvalidation(const Layou
tObject& object, const LayoutBoxModelObject& paintInvalidationContainer) |
| 79 { | 79 { |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 | 577 |
| 578 return closestText; | 578 return closestText; |
| 579 } | 579 } |
| 580 | 580 |
| 581 LayoutObject* SVGLayoutSupport::findClosestLayoutSVGText(LayoutObject* layoutObj
ect, const FloatPoint& point) | 581 LayoutObject* SVGLayoutSupport::findClosestLayoutSVGText(LayoutObject* layoutObj
ect, const FloatPoint& point) |
| 582 { | 582 { |
| 583 return searchTreeForFindClosestLayoutSVGText(layoutObject, point).candidateL
ayoutObject; | 583 return searchTreeForFindClosestLayoutSVGText(layoutObject, point).candidateL
ayoutObject; |
| 584 } | 584 } |
| 585 | 585 |
| 586 } // namespace blink | 586 } // namespace blink |
| OLD | NEW |