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

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

Issue 2569013006: Changed EOverflow to an enum class and renamed its members (Closed)
Patch Set: Rebase Created 4 years 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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 SVGResourcesCache::cachedResourcesForLayoutObject(object); 367 SVGResourcesCache::cachedResourcesForLayoutObject(object);
368 if (resources) 368 if (resources)
369 resources->layoutIfNeeded(); 369 resources->layoutIfNeeded();
370 } 370 }
371 371
372 bool SVGLayoutSupport::isOverflowHidden(const LayoutObject* object) { 372 bool SVGLayoutSupport::isOverflowHidden(const LayoutObject* object) {
373 // LayoutSVGRoot should never query for overflow state - it should always clip 373 // LayoutSVGRoot should never query for overflow state - it should always clip
374 // itself to the initial viewport size. 374 // itself to the initial viewport size.
375 ASSERT(!object->isDocumentElement()); 375 ASSERT(!object->isDocumentElement());
376 376
377 return object->style()->overflowX() == OverflowHidden || 377 return object->style()->overflowX() == EOverflow::Hidden ||
378 object->style()->overflowX() == OverflowScroll; 378 object->style()->overflowX() == EOverflow::Scroll;
379 } 379 }
380 380
381 void SVGLayoutSupport::adjustVisualRectWithResources( 381 void SVGLayoutSupport::adjustVisualRectWithResources(
382 const LayoutObject* layoutObject, 382 const LayoutObject* layoutObject,
383 FloatRect& visualRect) { 383 FloatRect& visualRect) {
384 ASSERT(layoutObject); 384 ASSERT(layoutObject);
385 385
386 SVGResources* resources = 386 SVGResources* resources =
387 SVGResourcesCache::cachedResourcesForLayoutObject(layoutObject); 387 SVGResourcesCache::cachedResourcesForLayoutObject(layoutObject);
388 if (!resources) 388 if (!resources)
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp ('k') | third_party/WebKit/Source/core/page/SpatialNavigation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698