OLD | NEW |
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 |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "core/layout/LayoutAnalyzer.h" | 30 #include "core/layout/LayoutAnalyzer.h" |
31 #include "core/layout/LayoutImageResource.h" | 31 #include "core/layout/LayoutImageResource.h" |
32 #include "core/layout/PointerEventsHitRules.h" | 32 #include "core/layout/PointerEventsHitRules.h" |
33 #include "core/layout/svg/LayoutSVGResourceContainer.h" | 33 #include "core/layout/svg/LayoutSVGResourceContainer.h" |
34 #include "core/layout/svg/SVGLayoutSupport.h" | 34 #include "core/layout/svg/SVGLayoutSupport.h" |
35 #include "core/layout/svg/SVGResources.h" | 35 #include "core/layout/svg/SVGResources.h" |
36 #include "core/layout/svg/SVGResourcesCache.h" | 36 #include "core/layout/svg/SVGResourcesCache.h" |
37 #include "core/paint/SVGImagePainter.h" | 37 #include "core/paint/SVGImagePainter.h" |
38 #include "core/svg/SVGImageElement.h" | 38 #include "core/svg/SVGImageElement.h" |
39 #include "platform/LengthFunctions.h" | 39 #include "platform/LengthFunctions.h" |
40 #include "third_party/skia/include/core/SkPicture.h" | 40 #include "platform/graphics/paint/PaintRecord.h" |
41 | 41 |
42 namespace blink { | 42 namespace blink { |
43 | 43 |
44 LayoutSVGImage::LayoutSVGImage(SVGImageElement* impl) | 44 LayoutSVGImage::LayoutSVGImage(SVGImageElement* impl) |
45 : LayoutSVGModelObject(impl), | 45 : LayoutSVGModelObject(impl), |
46 m_needsBoundariesUpdate(true), | 46 m_needsBoundariesUpdate(true), |
47 m_needsTransformUpdate(true), | 47 m_needsTransformUpdate(true), |
48 m_imageResource(LayoutImageResource::create()) { | 48 m_imageResource(LayoutImageResource::create()) { |
49 m_imageResource->initialize(this); | 49 m_imageResource->initialize(this); |
50 } | 50 } |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 203 |
204 void LayoutSVGImage::addOutlineRects(Vector<LayoutRect>& rects, | 204 void LayoutSVGImage::addOutlineRects(Vector<LayoutRect>& rects, |
205 const LayoutPoint&, | 205 const LayoutPoint&, |
206 IncludeBlockVisualOverflowOrNot) const { | 206 IncludeBlockVisualOverflowOrNot) const { |
207 // this is called from paint() after the localTransform has already been | 207 // this is called from paint() after the localTransform has already been |
208 // applied | 208 // applied |
209 rects.push_back(LayoutRect(visualRectInLocalSVGCoordinates())); | 209 rects.push_back(LayoutRect(visualRectInLocalSVGCoordinates())); |
210 } | 210 } |
211 | 211 |
212 } // namespace blink | 212 } // namespace blink |
OLD | NEW |