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

Unified Diff: Source/core/layout/LayoutTableCol.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/LayoutTableCell.cpp ('k') | Source/core/layout/LayoutTableCol.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutTableCol.h
diff --git a/Source/core/layout/LayoutTableCol.h b/Source/core/layout/LayoutTableCol.h
index bdf57714c3ea66e1aafd2c243cda867eba0d61e3..24ea5581b052d67d94b2d282cf3393b03c2a39b8 100644
--- a/Source/core/layout/LayoutTableCol.h
+++ b/Source/core/layout/LayoutTableCol.h
@@ -37,14 +37,14 @@ class LayoutTableCol final : public RenderBox {
public:
explicit LayoutTableCol(Element*);
- RenderObject* firstChild() const { ASSERT(children() == virtualChildren()); return children()->firstChild(); }
+ LayoutObject* firstChild() const { ASSERT(children() == virtualChildren()); return children()->firstChild(); }
// If you have a LayoutTableCol, use firstChild or lastChild instead.
void slowFirstChild() const = delete;
void slowLastChild() const = delete;
- const RenderObjectChildList* children() const { return &m_children; }
- RenderObjectChildList* children() { return &m_children; }
+ const LayoutObjectChildList* children() const { return &m_children; }
+ LayoutObjectChildList* children() { return &m_children; }
void clearPreferredLogicalWidthsDirtyBits();
@@ -79,18 +79,18 @@ public:
const BorderValue& borderAdjoiningCellAfter(const LayoutTableCell*) const;
private:
- virtual RenderObjectChildList* virtualChildren() override { return children(); }
- virtual const RenderObjectChildList* virtualChildren() const override { return children(); }
+ virtual LayoutObjectChildList* virtualChildren() override { return children(); }
+ virtual const LayoutObjectChildList* virtualChildren() const override { return children(); }
virtual const char* renderName() const override { return "LayoutTableCol"; }
- virtual bool isOfType(RenderObjectType type) const override { return type == RenderObjectLayoutTableCol || RenderBox::isOfType(type); }
+ virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectLayoutTableCol || RenderBox::isOfType(type); }
virtual void updateFromElement() override;
virtual void computePreferredLogicalWidths() override { ASSERT_NOT_REACHED(); }
virtual void insertedIntoTree() override;
virtual void willBeRemovedFromTree() override;
- virtual bool isChildAllowed(RenderObject*, const RenderStyle&) const override;
+ virtual bool isChildAllowed(LayoutObject*, const RenderStyle&) const override;
virtual bool canHaveChildren() const override;
virtual LayerType layerTypeRequired() const override { return NoLayer; }
@@ -101,11 +101,11 @@ private:
LayoutTable* table() const;
- RenderObjectChildList m_children;
+ LayoutObjectChildList m_children;
unsigned m_span;
};
-DEFINE_RENDER_OBJECT_TYPE_CASTS(LayoutTableCol, isLayoutTableCol());
+DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableCol, isLayoutTableCol());
}
« no previous file with comments | « Source/core/layout/LayoutTableCell.cpp ('k') | Source/core/layout/LayoutTableCol.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698