| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 : candidateLayoutObject(layoutObject), candidateDistance(distance) {} | 54 : candidateLayoutObject(layoutObject), candidateDistance(distance) {} |
| 55 LayoutObject* candidateLayoutObject; | 55 LayoutObject* candidateLayoutObject; |
| 56 float candidateDistance; | 56 float candidateDistance; |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 FloatRect SVGLayoutSupport::localVisualRect(const LayoutObject& object) { | 59 FloatRect SVGLayoutSupport::localVisualRect(const LayoutObject& object) { |
| 60 // For LayoutSVGRoot, use LayoutSVGRoot::localVisualRect() instead. | 60 // For LayoutSVGRoot, use LayoutSVGRoot::localVisualRect() instead. |
| 61 DCHECK(!object.isSVGRoot()); | 61 DCHECK(!object.isSVGRoot()); |
| 62 | 62 |
| 63 // Return early for any cases where we don't actually paint | 63 // Return early for any cases where we don't actually paint |
| 64 if (object.styleRef().visibility() != EVisibility::Visible && | 64 if (object.styleRef().visibility() != EVisibility::kVisible && |
| 65 !object.enclosingLayer()->hasVisibleContent()) | 65 !object.enclosingLayer()->hasVisibleContent()) |
| 66 return FloatRect(); | 66 return FloatRect(); |
| 67 | 67 |
| 68 FloatRect visualRect = object.visualRectInLocalSVGCoordinates(); | 68 FloatRect visualRect = object.visualRectInLocalSVGCoordinates(); |
| 69 if (int outlineOutset = object.styleRef().outlineOutsetExtent()) | 69 if (int outlineOutset = object.styleRef().outlineOutsetExtent()) |
| 70 visualRect.inflate(outlineOutset); | 70 visualRect.inflate(outlineOutset); |
| 71 return visualRect; | 71 return visualRect; |
| 72 } | 72 } |
| 73 | 73 |
| 74 LayoutRect SVGLayoutSupport::visualRectInAncestorSpace( | 74 LayoutRect SVGLayoutSupport::visualRectInAncestorSpace( |
| (...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 } | 609 } |
| 610 | 610 |
| 611 LayoutObject* SVGLayoutSupport::findClosestLayoutSVGText( | 611 LayoutObject* SVGLayoutSupport::findClosestLayoutSVGText( |
| 612 LayoutObject* layoutObject, | 612 LayoutObject* layoutObject, |
| 613 const FloatPoint& point) { | 613 const FloatPoint& point) { |
| 614 return searchTreeForFindClosestLayoutSVGText(layoutObject, point) | 614 return searchTreeForFindClosestLayoutSVGText(layoutObject, point) |
| 615 .candidateLayoutObject; | 615 .candidateLayoutObject; |
| 616 } | 616 } |
| 617 | 617 |
| 618 } // namespace blink | 618 } // namespace blink |
| OLD | NEW |