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

Side by Side Diff: Source/core/rendering/RenderImage.h

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (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/RenderIFrame.h ('k') | Source/core/rendering/RenderImage.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2006 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2006 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 virtual RenderBox* embeddedContentBox() const override final; 72 virtual RenderBox* embeddedContentBox() const override final;
73 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub le& intrinsicRatio) const override final; 73 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub le& intrinsicRatio) const override final;
74 74
75 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) override; 75 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) override;
76 76
77 virtual void paint(const PaintInfo&, const LayoutPoint&) override final; 77 virtual void paint(const PaintInfo&, const LayoutPoint&) override final;
78 78
79 virtual void layout() override; 79 virtual void layout() override;
80 virtual bool updateImageLoadingPriorities() override final; 80 virtual bool updateImageLoadingPriorities() override final;
81 81
82 virtual bool isOfType(RenderObjectType type) const override { return type == RenderObjectRenderImage || RenderReplaced::isOfType(type); } 82 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectRenderImage || RenderReplaced::isOfType(type); }
83 83
84 private: 84 private:
85 virtual const char* renderName() const override { return "RenderImage"; } 85 virtual const char* renderName() const override { return "RenderImage"; }
86 86
87 virtual bool isImage() const override { return true; } 87 virtual bool isImage() const override { return true; }
88 88
89 virtual void paintReplaced(const PaintInfo&, const LayoutPoint&) override; 89 virtual void paintReplaced(const PaintInfo&, const LayoutPoint&) override;
90 90
91 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect, unsigned maxDepthToTest) const override final; 91 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect, unsigned maxDepthToTest) const override final;
92 virtual bool computeBackgroundIsKnownToBeObscured() override final; 92 virtual bool computeBackgroundIsKnownToBeObscured() override final;
(...skipping 14 matching lines...) Expand all
107 107
108 // Text to display as long as the image isn't available. 108 // Text to display as long as the image isn't available.
109 OwnPtr<RenderImageResource> m_imageResource; 109 OwnPtr<RenderImageResource> m_imageResource;
110 bool m_didIncrementVisuallyNonEmptyPixelCount; 110 bool m_didIncrementVisuallyNonEmptyPixelCount;
111 bool m_isGeneratedContent; 111 bool m_isGeneratedContent;
112 float m_imageDevicePixelRatio; 112 float m_imageDevicePixelRatio;
113 113
114 friend class RenderImageScaleObserver; 114 friend class RenderImageScaleObserver;
115 }; 115 };
116 116
117 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderImage, isRenderImage()); 117 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(RenderImage, isRenderImage());
118 118
119 } // namespace blink 119 } // namespace blink
120 120
121 #endif // RenderImage_h 121 #endif // RenderImage_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderIFrame.h ('k') | Source/core/rendering/RenderImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698