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

Side by Side Diff: Source/core/rendering/svg/SVGRenderSupport.cpp

Issue 34273002: Remove UnusedParam.h (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 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 22 matching lines...) Expand all
33 #include "core/rendering/svg/RenderSVGResourceClipper.h" 33 #include "core/rendering/svg/RenderSVGResourceClipper.h"
34 #include "core/rendering/svg/RenderSVGResourceFilter.h" 34 #include "core/rendering/svg/RenderSVGResourceFilter.h"
35 #include "core/rendering/svg/RenderSVGResourceMasker.h" 35 #include "core/rendering/svg/RenderSVGResourceMasker.h"
36 #include "core/rendering/svg/RenderSVGRoot.h" 36 #include "core/rendering/svg/RenderSVGRoot.h"
37 #include "core/rendering/svg/RenderSVGText.h" 37 #include "core/rendering/svg/RenderSVGText.h"
38 #include "core/rendering/svg/RenderSVGViewportContainer.h" 38 #include "core/rendering/svg/RenderSVGViewportContainer.h"
39 #include "core/rendering/svg/SVGResources.h" 39 #include "core/rendering/svg/SVGResources.h"
40 #include "core/rendering/svg/SVGResourcesCache.h" 40 #include "core/rendering/svg/SVGResourcesCache.h"
41 #include "core/svg/SVGElement.h" 41 #include "core/svg/SVGElement.h"
42 #include "platform/geometry/TransformState.h" 42 #include "platform/geometry/TransformState.h"
43 #include "wtf/UnusedParam.h"
44 43
45 namespace WebCore { 44 namespace WebCore {
46 45
47 LayoutRect SVGRenderSupport::clippedOverflowRectForRepaint(const RenderObject* o bject, const RenderLayerModelObject* repaintContainer) 46 LayoutRect SVGRenderSupport::clippedOverflowRectForRepaint(const RenderObject* o bject, const RenderLayerModelObject* repaintContainer)
48 { 47 {
49 // Return early for any cases where we don't actually paint 48 // Return early for any cases where we don't actually paint
50 if (object->style()->visibility() != VISIBLE && !object->enclosingLayer()->h asVisibleContent()) 49 if (object->style()->visibility() != VISIBLE && !object->enclosingLayer()->h asVisibleContent())
51 return LayoutRect(); 50 return LayoutRect();
52 51
53 // Pass our local paint rect to computeRectForRepaint() which will 52 // Pass our local paint rect to computeRectForRepaint() which will
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 405
407 bool SVGRenderSupport::isEmptySVGInlineText(const RenderObject* object) 406 bool SVGRenderSupport::isEmptySVGInlineText(const RenderObject* object)
408 { 407 {
409 // RenderSVGInlineText performs whitespace filtering in order to support xml :space 408 // RenderSVGInlineText performs whitespace filtering in order to support xml :space
410 // (http://www.w3.org/TR/SVG/struct.html#LangSpaceAttrs), and can end up wit h an empty string 409 // (http://www.w3.org/TR/SVG/struct.html#LangSpaceAttrs), and can end up wit h an empty string
411 // even when its original constructor argument is non-empty. 410 // even when its original constructor argument is non-empty.
412 return object->isSVGInlineText() && toRenderSVGInlineText(object)->hasEmptyT ext(); 411 return object->isSVGInlineText() && toRenderSVGInlineText(object)->hasEmptyT ext();
413 } 412 }
414 413
415 } 414 }
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/SVGInlineTextBox.cpp ('k') | Source/core/rendering/svg/SVGTextLayoutEngineSpacing.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698