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

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

Issue 22909005: Remove unneeded const on updateOffsetIfNeeded method. (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
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 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after
1186 // the outermost float on that line has a shape-outside, the inline 1186 // the outermost float on that line has a shape-outside, the inline
1187 // content that butts up against that float must be positioned using 1187 // content that butts up against that float must be positioned using
1188 // the contours of the shape, not the margin box of the float. 1188 // the contours of the shape, not the margin box of the float.
1189 // We save the last float encountered so that the offset can be 1189 // We save the last float encountered so that the offset can be
1190 // computed correctly by the code using this adapter. 1190 // computed correctly by the code using this adapter.
1191 const FloatingObject* lastFloat() const { return m_last; } 1191 const FloatingObject* lastFloat() const { return m_last; }
1192 1192
1193 LayoutUnit getHeightRemaining() const; 1193 LayoutUnit getHeightRemaining() const;
1194 1194
1195 private: 1195 private:
1196 bool updateOffsetIfNeeded(const FloatingObject*) const; 1196 bool updateOffsetIfNeeded(const FloatingObject*);
1197 1197
1198 const RenderBlock* m_renderer; 1198 const RenderBlock* m_renderer;
1199 int m_lowValue; 1199 int m_lowValue;
1200 int m_highValue; 1200 int m_highValue;
1201 LayoutUnit& m_offset; 1201 LayoutUnit& m_offset;
1202 const FloatingObject* m_last; 1202 const FloatingObject* m_last;
1203 const FloatingObject* m_floatForHeight; 1203 const FloatingObject* m_floatForHeight;
1204 }; 1204 };
1205 1205
1206 void createFloatingObjects(); 1206 void createFloatingObjects();
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1339 static String string(const int value); 1339 static String string(const int value);
1340 }; 1340 };
1341 template<> struct ValueToString<RenderBlock::FloatingObject*> { 1341 template<> struct ValueToString<RenderBlock::FloatingObject*> {
1342 static String string(const RenderBlock::FloatingObject*); 1342 static String string(const RenderBlock::FloatingObject*);
1343 }; 1343 };
1344 #endif 1344 #endif
1345 1345
1346 } // namespace WebCore 1346 } // namespace WebCore
1347 1347
1348 #endif // RenderBlock_h 1348 #endif // RenderBlock_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderBlock.cpp » ('j') | Source/core/rendering/RenderBlock.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698