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

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

Issue 18551004: Miscellaneous cleanup to reduce number of includes in platform/graphics/ Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 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) 2006 Alexander Kellett <lypanov@kde.org> 2 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org>
3 * Copyright (C) 2006 Apple Computer, Inc. 3 * Copyright (C) 2006 Apple Computer, Inc.
4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> 4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
5 * Copyright (C) 2007, 2008, 2009 Rob Buis <buis@kde.org> 5 * Copyright (C) 2007, 2008, 2009 Rob Buis <buis@kde.org>
6 * Copyright (C) 2009 Google, Inc. 6 * Copyright (C) 2009 Google, Inc.
7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
8 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> 8 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com>
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Library General Public 11 * modify it under the terms of the GNU Library General Public
12 * License as published by the Free Software Foundation; either 12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version. 13 * version 2 of the License, or (at your option) any later version.
14 * 14 *
15 * This library is distributed in the hope that it will be useful, 15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Library General Public License for more details. 18 * Library General Public License for more details.
19 * 19 *
20 * You should have received a copy of the GNU Library General Public License 20 * You should have received a copy of the GNU Library General Public License
21 * along with this library; see the file COPYING.LIB. If not, write to 21 * along with this library; see the file COPYING.LIB. If not, write to
22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23 * Boston, MA 02110-1301, USA. 23 * Boston, MA 02110-1301, USA.
24 */ 24 */
25 25
26 #include "config.h" 26 #include "config.h"
27 27
28 #include "core/rendering/svg/RenderSVGImage.h" 28 #include "core/rendering/svg/RenderSVGImage.h"
29 29
30 #include "core/platform/graphics/GraphicsContextAnnotation.h"
30 #include "core/platform/graphics/GraphicsContextStateSaver.h" 31 #include "core/platform/graphics/GraphicsContextStateSaver.h"
31 #include "core/rendering/ImageQualityController.h" 32 #include "core/rendering/ImageQualityController.h"
32 #include "core/rendering/LayoutRepainter.h" 33 #include "core/rendering/LayoutRepainter.h"
33 #include "core/rendering/PointerEventsHitRules.h" 34 #include "core/rendering/PointerEventsHitRules.h"
34 #include "core/rendering/RenderImageResource.h" 35 #include "core/rendering/RenderImageResource.h"
35 #include "core/rendering/svg/RenderSVGResource.h" 36 #include "core/rendering/svg/RenderSVGResource.h"
36 #include "core/rendering/svg/SVGRenderingContext.h" 37 #include "core/rendering/svg/SVGRenderingContext.h"
37 #include "core/rendering/svg/SVGResources.h" 38 #include "core/rendering/svg/SVGResources.h"
38 #include "core/rendering/svg/SVGResourcesCache.h" 39 #include "core/rendering/svg/SVGResourcesCache.h"
39 #include "core/svg/SVGImageElement.h" 40 #include "core/svg/SVGImageElement.h"
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 225
225 void RenderSVGImage::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint &, const RenderLayerModelObject*) 226 void RenderSVGImage::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint &, const RenderLayerModelObject*)
226 { 227 {
227 // this is called from paint() after the localTransform has already been app lied 228 // this is called from paint() after the localTransform has already been app lied
228 IntRect contentRect = enclosingIntRect(repaintRectInLocalCoordinates()); 229 IntRect contentRect = enclosingIntRect(repaintRectInLocalCoordinates());
229 if (!contentRect.isEmpty()) 230 if (!contentRect.isEmpty())
230 rects.append(contentRect); 231 rects.append(contentRect);
231 } 232 }
232 233
233 } // namespace WebCore 234 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGContainer.cpp ('k') | Source/core/rendering/svg/RenderSVGPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698