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

Unified Diff: Source/core/layout/LayoutObjectChildList.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/layout/LayoutObject.cpp ('k') | Source/core/layout/LayoutObjectChildList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutObjectChildList.h
diff --git a/Source/core/rendering/RenderObjectChildList.h b/Source/core/layout/LayoutObjectChildList.h
similarity index 71%
rename from Source/core/rendering/RenderObjectChildList.h
rename to Source/core/layout/LayoutObjectChildList.h
index 0d4a85f5610a187858d8809071c08243f22c6912..cbc640bab7b8d5cb58ad551470c88da84bbb9cda 100644
--- a/Source/core/rendering/RenderObjectChildList.h
+++ b/Source/core/layout/LayoutObjectChildList.h
@@ -23,49 +23,49 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef RenderObjectChildList_h
-#define RenderObjectChildList_h
+#ifndef LayoutObjectChildList_h
+#define LayoutObjectChildList_h
#include "platform/heap/Handle.h"
#include "wtf/Forward.h"
namespace blink {
-class RenderObject;
+class LayoutObject;
-class RenderObjectChildList {
+class LayoutObjectChildList {
DISALLOW_ALLOCATION();
public:
- RenderObjectChildList()
+ LayoutObjectChildList()
: m_firstChild(nullptr)
, m_lastChild(nullptr)
{
}
- RenderObject* firstChild() const { return m_firstChild; }
- RenderObject* lastChild() const { return m_lastChild; }
+ LayoutObject* firstChild() const { return m_firstChild; }
+ LayoutObject* lastChild() const { return m_lastChild; }
// FIXME: Temporary while RenderBox still exists. Eventually this will just happen during insert/append/remove methods on the child list, and nobody
// will need to manipulate firstChild or lastChild directly.
- void setFirstChild(RenderObject* child) { m_firstChild = child; }
- void setLastChild(RenderObject* child) { m_lastChild = child; }
+ void setFirstChild(LayoutObject* child) { m_firstChild = child; }
+ void setLastChild(LayoutObject* child) { m_lastChild = child; }
void destroyLeftoverChildren();
- RenderObject* removeChildNode(RenderObject* owner, RenderObject*, bool notifyRenderer = true);
- void insertChildNode(RenderObject* owner, RenderObject* newChild, RenderObject* beforeChild, bool notifyRenderer = true);
- void appendChildNode(RenderObject* owner, RenderObject* newChild, bool notifyRenderer = true)
+ LayoutObject* removeChildNode(LayoutObject* owner, LayoutObject*, bool notifyRenderer = true);
+ void insertChildNode(LayoutObject* owner, LayoutObject* newChild, LayoutObject* beforeChild, bool notifyRenderer = true);
+ void appendChildNode(LayoutObject* owner, LayoutObject* newChild, bool notifyRenderer = true)
{
insertChildNode(owner, newChild, 0, notifyRenderer);
}
private:
- void invalidatePaintOnRemoval(const RenderObject& oldChild);
+ void invalidatePaintOnRemoval(const LayoutObject& oldChild);
- RenderObject* m_firstChild;
- RenderObject* m_lastChild;
+ LayoutObject* m_firstChild;
+ LayoutObject* m_lastChild;
};
} // namespace blink
-#endif // RenderObjectChildList_h
+#endif // LayoutObjectChildList_h
« no previous file with comments | « Source/core/layout/LayoutObject.cpp ('k') | Source/core/layout/LayoutObjectChildList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698