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-2013 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003-2013 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 * Copyright (C) 2013 Google Inc. All rights reserved. | 7 * Copyright (C) 2013 Google Inc. All rights reserved. |
8 * | 8 * |
9 * Redistribution and use in source and binary forms, with or without | 9 * Redistribution and use in source and binary forms, with or without |
10 * modification, are permitted provided that the following conditions are | 10 * modification, are permitted provided that the following conditions are |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 bool containsFloats() const { return m_floatingObjects && !m_floatingObjects
->set().isEmpty(); } | 151 bool containsFloats() const { return m_floatingObjects && !m_floatingObjects
->set().isEmpty(); } |
152 bool containsFloat(LayoutBox*) const; | 152 bool containsFloat(LayoutBox*) const; |
153 | 153 |
154 void removeFloatingObjects(); | 154 void removeFloatingObjects(); |
155 | 155 |
156 void addChild(LayoutObject* newChild, LayoutObject* beforeChild = nullptr) o
verride; | 156 void addChild(LayoutObject* newChild, LayoutObject* beforeChild = nullptr) o
verride; |
157 void removeChild(LayoutObject*) override; | 157 void removeChild(LayoutObject*) override; |
158 | 158 |
159 void moveAllChildrenIncludingFloatsTo(LayoutBlock* toBlock, bool fullRemoveI
nsert); | 159 void moveAllChildrenIncludingFloatsTo(LayoutBlock* toBlock, bool fullRemoveI
nsert); |
160 | 160 |
| 161 void childBecameFloatingOrOutOfFlow(LayoutBox* child); |
| 162 |
161 bool generatesLineBoxesForInlineChild(LayoutObject*); | 163 bool generatesLineBoxesForInlineChild(LayoutObject*); |
162 | 164 |
163 LayoutUnit logicalTopForFloat(const FloatingObject& floatingObject) const {
return isHorizontalWritingMode() ? floatingObject.y() : floatingObject.x(); } | 165 LayoutUnit logicalTopForFloat(const FloatingObject& floatingObject) const {
return isHorizontalWritingMode() ? floatingObject.y() : floatingObject.x(); } |
164 LayoutUnit logicalBottomForFloat(const FloatingObject& floatingObject) const
{ return isHorizontalWritingMode() ? floatingObject.maxY() : floatingObject.max
X(); } | 166 LayoutUnit logicalBottomForFloat(const FloatingObject& floatingObject) const
{ return isHorizontalWritingMode() ? floatingObject.maxY() : floatingObject.max
X(); } |
165 LayoutUnit logicalLeftForFloat(const FloatingObject& floatingObject) const {
return isHorizontalWritingMode() ? floatingObject.x() : floatingObject.y(); } | 167 LayoutUnit logicalLeftForFloat(const FloatingObject& floatingObject) const {
return isHorizontalWritingMode() ? floatingObject.x() : floatingObject.y(); } |
166 LayoutUnit logicalRightForFloat(const FloatingObject& floatingObject) const
{ return isHorizontalWritingMode() ? floatingObject.maxX() : floatingObject.maxY
(); } | 168 LayoutUnit logicalRightForFloat(const FloatingObject& floatingObject) const
{ return isHorizontalWritingMode() ? floatingObject.maxX() : floatingObject.maxY
(); } |
167 LayoutUnit logicalWidthForFloat(const FloatingObject& floatingObject) const
{ return isHorizontalWritingMode() ? floatingObject.width() : floatingObject.hei
ght(); } | 169 LayoutUnit logicalWidthForFloat(const FloatingObject& floatingObject) const
{ return isHorizontalWritingMode() ? floatingObject.width() : floatingObject.hei
ght(); } |
168 | 170 |
169 void setLogicalTopForFloat(FloatingObject& floatingObject, LayoutUnit logica
lTop) | 171 void setLogicalTopForFloat(FloatingObject& floatingObject, LayoutUnit logica
lTop) |
170 { | 172 { |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 | 635 |
634 // END METHODS DEFINED IN LayoutBlockFlowLine | 636 // END METHODS DEFINED IN LayoutBlockFlowLine |
635 | 637 |
636 }; | 638 }; |
637 | 639 |
638 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); | 640 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); |
639 | 641 |
640 } // namespace blink | 642 } // namespace blink |
641 | 643 |
642 #endif // LayoutBlockFlow_h | 644 #endif // LayoutBlockFlow_h |
OLD | NEW |