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

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

Issue 22854008: Remove redundant use of inline keyword in FloatingObject methods. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 | « no previous file | 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 cloneObject->m_isPlaced = m_isPlaced; 704 cloneObject->m_isPlaced = m_isPlaced;
705 return cloneObject; 705 return cloneObject;
706 } 706 }
707 707
708 Type type() const { return static_cast<Type>(m_type); } 708 Type type() const { return static_cast<Type>(m_type); }
709 RenderBox* renderer() const { return m_renderer; } 709 RenderBox* renderer() const { return m_renderer; }
710 710
711 bool isPlaced() const { return m_isPlaced; } 711 bool isPlaced() const { return m_isPlaced; }
712 void setIsPlaced(bool placed = true) { m_isPlaced = placed; } 712 void setIsPlaced(bool placed = true) { m_isPlaced = placed; }
713 713
714 inline LayoutUnit x() const { ASSERT(isPlaced()); return m_frameRect.x() ; } 714 LayoutUnit x() const { ASSERT(isPlaced()); return m_frameRect.x(); }
715 inline LayoutUnit maxX() const { ASSERT(isPlaced()); return m_frameRect. maxX(); } 715 LayoutUnit maxX() const { ASSERT(isPlaced()); return m_frameRect.maxX(); }
716 inline LayoutUnit y() const { ASSERT(isPlaced()); return m_frameRect.y() ; } 716 LayoutUnit y() const { ASSERT(isPlaced()); return m_frameRect.y(); }
717 inline LayoutUnit maxY() const { ASSERT(isPlaced()); return m_frameRect. maxY(); } 717 LayoutUnit maxY() const { ASSERT(isPlaced()); return m_frameRect.maxY(); }
718 inline LayoutUnit width() const { return m_frameRect.width(); } 718 LayoutUnit width() const { return m_frameRect.width(); }
719 inline LayoutUnit height() const { return m_frameRect.height(); } 719 LayoutUnit height() const { return m_frameRect.height(); }
720 720
721 void setX(LayoutUnit x) { ASSERT(!isInPlacedTree()); m_frameRect.setX(x) ; } 721 void setX(LayoutUnit x) { ASSERT(!isInPlacedTree()); m_frameRect.setX(x) ; }
722 void setY(LayoutUnit y) { ASSERT(!isInPlacedTree()); m_frameRect.setY(y) ; } 722 void setY(LayoutUnit y) { ASSERT(!isInPlacedTree()); m_frameRect.setY(y) ; }
723 void setWidth(LayoutUnit width) { ASSERT(!isInPlacedTree()); m_frameRect .setWidth(width); } 723 void setWidth(LayoutUnit width) { ASSERT(!isInPlacedTree()); m_frameRect .setWidth(width); }
724 void setHeight(LayoutUnit height) { ASSERT(!isInPlacedTree()); m_frameRe ct.setHeight(height); } 724 void setHeight(LayoutUnit height) { ASSERT(!isInPlacedTree()); m_frameRe ct.setHeight(height); }
725 725
726 const LayoutRect& frameRect() const { ASSERT(isPlaced()); return m_frame Rect; } 726 const LayoutRect& frameRect() const { ASSERT(isPlaced()); return m_frame Rect; }
727 void setFrameRect(const LayoutRect& frameRect) { ASSERT(!isInPlacedTree( )); m_frameRect = frameRect; } 727 void setFrameRect(const LayoutRect& frameRect) { ASSERT(!isInPlacedTree( )); m_frameRect = frameRect; }
728 728
729 int paginationStrut() const { return m_paginationStrut; } 729 int paginationStrut() const { return m_paginationStrut; }
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
1347 static String string(const int value); 1347 static String string(const int value);
1348 }; 1348 };
1349 template<> struct ValueToString<RenderBlock::FloatingObject*> { 1349 template<> struct ValueToString<RenderBlock::FloatingObject*> {
1350 static String string(const RenderBlock::FloatingObject*); 1350 static String string(const RenderBlock::FloatingObject*);
1351 }; 1351 };
1352 #endif 1352 #endif
1353 1353
1354 } // namespace WebCore 1354 } // namespace WebCore
1355 1355
1356 #endif // RenderBlock_h 1356 #endif // RenderBlock_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698