Chromium Code Reviews| 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, 2011 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. |
| 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 144 void moveAllToFloatInfoMap(LayoutBoxToFloatInfoMap&); | 144 void moveAllToFloatInfoMap(LayoutBoxToFloatInfoMap&); |
| 145 FloatingObject* add(PassOwnPtr<FloatingObject>); | 145 FloatingObject* add(PassOwnPtr<FloatingObject>); |
| 146 void remove(FloatingObject*); | 146 void remove(FloatingObject*); |
| 147 void addPlacedObject(FloatingObject&); | 147 void addPlacedObject(FloatingObject&); |
| 148 void removePlacedObject(FloatingObject&); | 148 void removePlacedObject(FloatingObject&); |
| 149 void setHorizontalWritingMode(bool b = true) { m_horizontalWritingMode = b; } | 149 void setHorizontalWritingMode(bool b = true) { m_horizontalWritingMode = b; } |
| 150 | 150 |
| 151 bool hasLeftObjects() const { return m_leftObjectsCount > 0; } | 151 bool hasLeftObjects() const { return m_leftObjectsCount > 0; } |
| 152 bool hasRightObjects() const { return m_rightObjectsCount > 0; } | 152 bool hasRightObjects() const { return m_rightObjectsCount > 0; } |
| 153 const FloatingObjectSet& set() const { return m_set; } | 153 const FloatingObjectSet& set() const { return m_set; } |
| 154 FloatingObjectSet& set() { return m_set; } | |
|
wkorman
2016/02/02 22:02:35
Perhaps name this mutableSet() to more explicitly
Xianzhu
2016/02/02 22:47:12
Good point. Done.
| |
| 154 void clearLineBoxTreePointers(); | 155 void clearLineBoxTreePointers(); |
| 155 | 156 |
| 156 LayoutUnit logicalLeftOffset(LayoutUnit fixedOffset, LayoutUnit logicalTop, LayoutUnit logicalHeight); | 157 LayoutUnit logicalLeftOffset(LayoutUnit fixedOffset, LayoutUnit logicalTop, LayoutUnit logicalHeight); |
| 157 LayoutUnit logicalRightOffset(LayoutUnit fixedOffset, LayoutUnit logicalTop, LayoutUnit logicalHeight); | 158 LayoutUnit logicalRightOffset(LayoutUnit fixedOffset, LayoutUnit logicalTop, LayoutUnit logicalHeight); |
| 158 | 159 |
| 159 LayoutUnit logicalLeftOffsetForPositioningFloat(LayoutUnit fixedOffset, Layo utUnit logicalTop, LayoutUnit* heightRemaining); | 160 LayoutUnit logicalLeftOffsetForPositioningFloat(LayoutUnit fixedOffset, Layo utUnit logicalTop, LayoutUnit* heightRemaining); |
| 160 LayoutUnit logicalRightOffsetForPositioningFloat(LayoutUnit fixedOffset, Lay outUnit logicalTop, LayoutUnit* heightRemaining); | 161 LayoutUnit logicalRightOffsetForPositioningFloat(LayoutUnit fixedOffset, Lay outUnit logicalTop, LayoutUnit* heightRemaining); |
| 161 LayoutUnit findNextFloatLogicalBottomBelow(LayoutUnit logicalHeight); | 162 LayoutUnit findNextFloatLogicalBottomBelow(LayoutUnit logicalHeight); |
| 162 LayoutUnit findNextFloatLogicalBottomBelowForBlock(LayoutUnit logicalHeight) ; | 163 LayoutUnit findNextFloatLogicalBottomBelowForBlock(LayoutUnit logicalHeight) ; |
| 163 | 164 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 203 static String string(const LayoutUnit value); | 204 static String string(const LayoutUnit value); |
| 204 }; | 205 }; |
| 205 template<> struct ValueToString<FloatingObject*> { | 206 template<> struct ValueToString<FloatingObject*> { |
| 206 static String string(const FloatingObject*); | 207 static String string(const FloatingObject*); |
| 207 }; | 208 }; |
| 208 #endif | 209 #endif |
| 209 | 210 |
| 210 } // namespace blink | 211 } // namespace blink |
| 211 | 212 |
| 212 #endif // FloatingObjects_h | 213 #endif // FloatingObjects_h |
| OLD | NEW |