| 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 * Copyright (C) 2003, 2006, 2007, 2009 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 2006, 2007, 2009 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2010 Google Inc. All rights reserved. | 5 * Copyright (C) 2010 Google Inc. All rights 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 // Populates StickyPositionConstraints, setting the sticky box rect, | 148 // Populates StickyPositionConstraints, setting the sticky box rect, |
| 149 // containing block rect and updating the constraint offsets according to the | 149 // containing block rect and updating the constraint offsets according to the |
| 150 // available space. | 150 // available space. |
| 151 FloatRect computeStickyConstrainingRect() const; | 151 FloatRect computeStickyConstrainingRect() const; |
| 152 void updateStickyPositionConstraints() const; | 152 void updateStickyPositionConstraints() const; |
| 153 LayoutSize stickyPositionOffset() const; | 153 LayoutSize stickyPositionOffset() const; |
| 154 | 154 |
| 155 LayoutSize offsetForInFlowPosition() const; | 155 LayoutSize offsetForInFlowPosition() const; |
| 156 | 156 |
| 157 // IE extensions. Used to calculate offsetWidth/Height. Overridden by inlines | 157 // IE extensions. Used to calculate offsetWidth/Height. Overridden by inlines |
| 158 // (LayoutInline) to return the remaining width on a given line (and the heigh
t | 158 // (LayoutInline) to return the remaining width on a given line (and the |
| 159 // of a single line). | 159 // height of a single line). |
| 160 virtual LayoutUnit offsetLeft(const Element*) const; | 160 virtual LayoutUnit offsetLeft(const Element*) const; |
| 161 virtual LayoutUnit offsetTop(const Element*) const; | 161 virtual LayoutUnit offsetTop(const Element*) const; |
| 162 virtual LayoutUnit offsetWidth() const = 0; | 162 virtual LayoutUnit offsetWidth() const = 0; |
| 163 virtual LayoutUnit offsetHeight() const = 0; | 163 virtual LayoutUnit offsetHeight() const = 0; |
| 164 | 164 |
| 165 int pixelSnappedOffsetLeft(const Element* parent) const { | 165 int pixelSnappedOffsetLeft(const Element* parent) const { |
| 166 return roundToInt(offsetLeft(parent)); | 166 return roundToInt(offsetLeft(parent)); |
| 167 } | 167 } |
| 168 int pixelSnappedOffsetTop(const Element* parent) const { | 168 int pixelSnappedOffsetTop(const Element* parent) const { |
| 169 return roundToInt(offsetTop(parent)); | 169 return roundToInt(offsetTop(parent)); |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 std::unique_ptr<PaintLayer> m_layer; | 512 std::unique_ptr<PaintLayer> m_layer; |
| 513 | 513 |
| 514 std::unique_ptr<LayoutBoxModelObjectRareData> m_rareData; | 514 std::unique_ptr<LayoutBoxModelObjectRareData> m_rareData; |
| 515 }; | 515 }; |
| 516 | 516 |
| 517 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject()); | 517 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject()); |
| 518 | 518 |
| 519 } // namespace blink | 519 } // namespace blink |
| 520 | 520 |
| 521 #endif // LayoutBoxModelObject_h | 521 #endif // LayoutBoxModelObject_h |
| OLD | NEW |