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

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

Issue 613783002: Smaller vtbls in RenderObject (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: RenderObject: Cut down vtbls a bit Created 6 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 * (C) 1997 Torben Weis (weis@kde.org) 3 * (C) 1997 Torben Weis (weis@kde.org)
4 * (C) 1998 Waldo Bastian (bastian@kde.org) 4 * (C) 1998 Waldo Bastian (bastian@kde.org)
5 * (C) 1999 Lars Knoll (knoll@kde.org) 5 * (C) 1999 Lars Knoll (knoll@kde.org)
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) 6 * (C) 1999 Antti Koivisto (koivisto@kde.org)
7 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved.
8 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 const BorderValue& borderAdjoiningCellStartBorder(const RenderTableCell*) co nst; 79 const BorderValue& borderAdjoiningCellStartBorder(const RenderTableCell*) co nst;
80 const BorderValue& borderAdjoiningCellEndBorder(const RenderTableCell*) cons t; 80 const BorderValue& borderAdjoiningCellEndBorder(const RenderTableCell*) cons t;
81 const BorderValue& borderAdjoiningCellBefore(const RenderTableCell*) const; 81 const BorderValue& borderAdjoiningCellBefore(const RenderTableCell*) const;
82 const BorderValue& borderAdjoiningCellAfter(const RenderTableCell*) const; 82 const BorderValue& borderAdjoiningCellAfter(const RenderTableCell*) const;
83 83
84 private: 84 private:
85 virtual RenderObjectChildList* virtualChildren() OVERRIDE { return children( ); } 85 virtual RenderObjectChildList* virtualChildren() OVERRIDE { return children( ); }
86 virtual const RenderObjectChildList* virtualChildren() const OVERRIDE { retu rn children(); } 86 virtual const RenderObjectChildList* virtualChildren() const OVERRIDE { retu rn children(); }
87 87
88 virtual const char* renderName() const OVERRIDE { return "RenderTableCol"; } 88 virtual const char* renderName() const OVERRIDE { return "RenderTableCol"; }
89 virtual bool isRenderTableCol() const OVERRIDE { return true; } 89 virtual bool isOfType(RenderObjectType type) const OVERRIDE { return type == RenderObjectRenderTableCol || RenderBox::isOfType(type); }
90 virtual void updateFromElement() OVERRIDE; 90 virtual void updateFromElement() OVERRIDE;
91 virtual void computePreferredLogicalWidths() OVERRIDE { ASSERT_NOT_REACHED() ; } 91 virtual void computePreferredLogicalWidths() OVERRIDE { ASSERT_NOT_REACHED() ; }
92 92
93 virtual void insertedIntoTree() OVERRIDE; 93 virtual void insertedIntoTree() OVERRIDE;
94 virtual void willBeRemovedFromTree() OVERRIDE; 94 virtual void willBeRemovedFromTree() OVERRIDE;
95 95
96 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE; 96 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE;
97 virtual bool canHaveChildren() const OVERRIDE; 97 virtual bool canHaveChildren() const OVERRIDE;
98 virtual LayerType layerTypeRequired() const OVERRIDE { return NoLayer; } 98 virtual LayerType layerTypeRequired() const OVERRIDE { return NoLayer; }
99 99
100 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayer ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons t OVERRIDE; 100 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayer ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons t OVERRIDE;
101 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) OVERRIDE; 101 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) OVERRIDE;
102 102
103 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE; 103 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE;
104 104
105 RenderTable* table() const; 105 RenderTable* table() const;
106 106
107 RenderObjectChildList m_children; 107 RenderObjectChildList m_children;
108 unsigned m_span; 108 unsigned m_span;
109 }; 109 };
110 110
111 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableCol, isRenderTableCol()); 111 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableCol, isRenderTableCol());
112 112
113 } 113 }
114 114
115 #endif 115 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698