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

Side by Side Diff: Source/core/svg/graphics/SVGImage.h

Issue 926193003: Move rendering/RenderBox to layout/LayoutBox. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderView.cpp ('k') | Source/core/svg/graphics/SVGImage.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org>
3 * Copyright (C) 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2009 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 18 matching lines...) Expand all
29 29
30 #include "platform/graphics/Image.h" 30 #include "platform/graphics/Image.h"
31 #include "platform/graphics/paint/DisplayItemClient.h" 31 #include "platform/graphics/paint/DisplayItemClient.h"
32 #include "platform/heap/Handle.h" 32 #include "platform/heap/Handle.h"
33 #include "platform/weborigin/KURL.h" 33 #include "platform/weborigin/KURL.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class FrameView; 37 class FrameView;
38 class Page; 38 class Page;
39 class RenderBox; 39 class LayoutBox;
40 class SVGImageChromeClient; 40 class SVGImageChromeClient;
41 class SVGImageForContainer; 41 class SVGImageForContainer;
42 42
43 class SVGImage final : public Image { 43 class SVGImage final : public Image {
44 public: 44 public:
45 static PassRefPtr<SVGImage> create(ImageObserver* observer) 45 static PassRefPtr<SVGImage> create(ImageObserver* observer)
46 { 46 {
47 return adoptRef(new SVGImage(observer)); 47 return adoptRef(new SVGImage(observer));
48 } 48 }
49 49
50 static bool isInSVGImage(const Node*); 50 static bool isInSVGImage(const Node*);
51 51
52 RenderBox* embeddedContentBox() const; 52 LayoutBox* embeddedContentBox() const;
53 53
54 virtual bool isSVGImage() const override { return true; } 54 virtual bool isSVGImage() const override { return true; }
55 virtual IntSize size() const override { return m_intrinsicSize; } 55 virtual IntSize size() const override { return m_intrinsicSize; }
56 void setURL(const KURL& url) { m_url = url; } 56 void setURL(const KURL& url) { m_url = url; }
57 57
58 virtual bool currentFrameHasSingleSecurityOrigin() const override; 58 virtual bool currentFrameHasSingleSecurityOrigin() const override;
59 59
60 virtual void startAnimation(CatchUpAnimation = CatchUp) override; 60 virtual void startAnimation(CatchUpAnimation = CatchUp) override;
61 virtual void stopAnimation() override; 61 virtual void stopAnimation() override;
62 virtual void resetAnimation() override; 62 virtual void resetAnimation() override;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 m_image->setImageObserver(m_observer); 124 m_image->setImageObserver(m_observer);
125 } 125 }
126 private: 126 private:
127 Image* m_image; 127 Image* m_image;
128 ImageObserver* m_observer; 128 ImageObserver* m_observer;
129 }; 129 };
130 130
131 } 131 }
132 132
133 #endif // SVGImage_h 133 #endif // SVGImage_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderView.cpp ('k') | Source/core/svg/graphics/SVGImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698