| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 // Note that Type uses bits so you can use FloatLeftRight as a mask to query
for both left and right. | 46 // Note that Type uses bits so you can use FloatLeftRight as a mask to query
for both left and right. |
| 47 enum Type { FloatLeft = 1, FloatRight = 2, FloatLeftRight = 3 }; | 47 enum Type { FloatLeft = 1, FloatRight = 2, FloatLeftRight = 3 }; |
| 48 | 48 |
| 49 static PassOwnPtr<FloatingObject> create(LayoutBox*); | 49 static PassOwnPtr<FloatingObject> create(LayoutBox*); |
| 50 | 50 |
| 51 PassOwnPtr<FloatingObject> copyToNewContainer(LayoutSize, bool shouldPaint =
false, bool isDescendant = false) const; | 51 PassOwnPtr<FloatingObject> copyToNewContainer(LayoutSize, bool shouldPaint =
false, bool isDescendant = false) const; |
| 52 | 52 |
| 53 PassOwnPtr<FloatingObject> unsafeClone() const; | 53 PassOwnPtr<FloatingObject> unsafeClone() const; |
| 54 | 54 |
| 55 Type type() const { return static_cast<Type>(m_type); } | 55 Type getType() const { return static_cast<Type>(m_type); } |
| 56 LayoutBox* layoutObject() const { return m_layoutObject; } | 56 LayoutBox* layoutObject() const { return m_layoutObject; } |
| 57 | 57 |
| 58 bool isPlaced() const { return m_isPlaced; } | 58 bool isPlaced() const { return m_isPlaced; } |
| 59 void setIsPlaced(bool placed = true) { m_isPlaced = placed; } | 59 void setIsPlaced(bool placed = true) { m_isPlaced = placed; } |
| 60 | 60 |
| 61 LayoutUnit x() const { ASSERT(isPlaced()); return m_frameRect.x(); } | 61 LayoutUnit x() const { ASSERT(isPlaced()); return m_frameRect.x(); } |
| 62 LayoutUnit maxX() const { ASSERT(isPlaced()); return m_frameRect.maxX(); } | 62 LayoutUnit maxX() const { ASSERT(isPlaced()); return m_frameRect.maxX(); } |
| 63 LayoutUnit y() const { ASSERT(isPlaced()); return m_frameRect.y(); } | 63 LayoutUnit y() const { ASSERT(isPlaced()); return m_frameRect.y(); } |
| 64 LayoutUnit maxY() const { ASSERT(isPlaced()); return m_frameRect.maxY(); } | 64 LayoutUnit maxY() const { ASSERT(isPlaced()); return m_frameRect.maxY(); } |
| 65 LayoutUnit width() const { return m_frameRect.width(); } | 65 LayoutUnit width() const { return m_frameRect.width(); } |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 static String toString(const LayoutUnit value); | 204 static String toString(const LayoutUnit value); |
| 205 }; | 205 }; |
| 206 template<> struct ValueToString<FloatingObject*> { | 206 template<> struct ValueToString<FloatingObject*> { |
| 207 static String toString(const FloatingObject*); | 207 static String toString(const FloatingObject*); |
| 208 }; | 208 }; |
| 209 #endif | 209 #endif |
| 210 | 210 |
| 211 } // namespace blink | 211 } // namespace blink |
| 212 | 212 |
| 213 #endif // FloatingObjects_h | 213 #endif // FloatingObjects_h |
| OLD | NEW |