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

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

Issue 298913002: Revert of Refactor avoidsFloats() to reflect CSS2.1 spec more clearly (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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/RenderFieldset.h ('k') | no next file » | 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) 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 270
271 protected: 271 protected:
272 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE; 272 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE;
273 virtual void simplifiedNormalFlowLayout() OVERRIDE; 273 virtual void simplifiedNormalFlowLayout() OVERRIDE;
274 274
275 private: 275 private:
276 virtual const char* renderName() const OVERRIDE { return "RenderTable"; } 276 virtual const char* renderName() const OVERRIDE { return "RenderTable"; }
277 277
278 virtual bool isTable() const OVERRIDE { return true; } 278 virtual bool isTable() const OVERRIDE { return true; }
279 279
280 virtual bool avoidsFloats() const OVERRIDE { return true; }
281
280 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE; 282 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE;
281 virtual void paintObject(PaintInfo&, const LayoutPoint&) OVERRIDE; 283 virtual void paintObject(PaintInfo&, const LayoutPoint&) OVERRIDE;
282 virtual void paintBoxDecorations(PaintInfo&, const LayoutPoint&) OVERRIDE; 284 virtual void paintBoxDecorations(PaintInfo&, const LayoutPoint&) OVERRIDE;
283 virtual void paintMask(PaintInfo&, const LayoutPoint&) OVERRIDE; 285 virtual void paintMask(PaintInfo&, const LayoutPoint&) OVERRIDE;
284 virtual void layout() OVERRIDE; 286 virtual void layout() OVERRIDE;
285 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidth) const OVERRIDE; 287 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidth) const OVERRIDE;
286 virtual void computePreferredLogicalWidths() OVERRIDE; 288 virtual void computePreferredLogicalWidths() OVERRIDE;
287 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE; 289 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE;
288 290
289 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const OVERRIDE; 291 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const OVERRIDE;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 if (m_firstBody) 361 if (m_firstBody)
360 return m_firstBody; 362 return m_firstBody;
361 return m_foot; 363 return m_foot;
362 } 364 }
363 365
364 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTable, isTable()); 366 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTable, isTable());
365 367
366 } // namespace WebCore 368 } // namespace WebCore
367 369
368 #endif // RenderTable_h 370 #endif // RenderTable_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderFieldset.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698