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

Side by Side Diff: Source/core/rendering/RenderTable.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, 2010 Apple Inc. All rights reserv ed. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2010 Apple Inc. All rights reserv ed.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 void subtractCaptionRect(LayoutRect&) const; 280 void subtractCaptionRect(LayoutRect&) const;
281 void recalcCollapsedBorders(); 281 void recalcCollapsedBorders();
282 282
283 protected: 283 protected:
284 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE; 284 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE;
285 virtual void simplifiedNormalFlowLayout() OVERRIDE; 285 virtual void simplifiedNormalFlowLayout() OVERRIDE;
286 286
287 private: 287 private:
288 virtual const char* renderName() const OVERRIDE { return "RenderTable"; } 288 virtual const char* renderName() const OVERRIDE { return "RenderTable"; }
289 289
290 virtual bool isTable() const OVERRIDE { return true; } 290 virtual bool isOfType(RenderObjectType type) const OVERRIDE { return type == RenderObjectTable || RenderBlock::isOfType(type); }
291 291
292 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE; 292 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE;
293 virtual void paintObject(PaintInfo&, const LayoutPoint&) OVERRIDE; 293 virtual void paintObject(PaintInfo&, const LayoutPoint&) OVERRIDE;
294 virtual void layout() OVERRIDE; 294 virtual void layout() OVERRIDE;
295 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidth) const OVERRIDE; 295 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidth) const OVERRIDE;
296 virtual void computePreferredLogicalWidths() OVERRIDE; 296 virtual void computePreferredLogicalWidths() OVERRIDE;
297 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE; 297 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE;
298 298
299 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const OVERRIDE; 299 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const OVERRIDE;
300 virtual int firstLineBoxBaseline() const OVERRIDE; 300 virtual int firstLineBoxBaseline() const OVERRIDE;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 if (m_firstBody) 363 if (m_firstBody)
364 return m_firstBody; 364 return m_firstBody;
365 return m_foot; 365 return m_foot;
366 } 366 }
367 367
368 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTable, isTable()); 368 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTable, isTable());
369 369
370 } // namespace blink 370 } // namespace blink
371 371
372 #endif // RenderTable_h 372 #endif // RenderTable_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698