OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |