Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp

Issue 2181953004: Changed ComputedStyle's EVisibility to be an enum class and fixed naming (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_move_computedstyle_around
Patch Set: Rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698