| 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 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 // scrolling). | 256 // scrolling). |
| 257 virtual LayoutUnit scrollLeft() const; | 257 virtual LayoutUnit scrollLeft() const; |
| 258 virtual LayoutUnit scrollTop() const; | 258 virtual LayoutUnit scrollTop() const; |
| 259 virtual LayoutUnit scrollWidth() const; | 259 virtual LayoutUnit scrollWidth() const; |
| 260 virtual LayoutUnit scrollHeight() const; | 260 virtual LayoutUnit scrollHeight() const; |
| 261 int pixelSnappedScrollWidth() const; | 261 int pixelSnappedScrollWidth() const; |
| 262 int pixelSnappedScrollHeight() const; | 262 int pixelSnappedScrollHeight() const; |
| 263 virtual void setScrollLeft(LayoutUnit); | 263 virtual void setScrollLeft(LayoutUnit); |
| 264 virtual void setScrollTop(LayoutUnit); | 264 virtual void setScrollTop(LayoutUnit); |
| 265 | 265 |
| 266 void scrollToOffset(const IntSize&); | 266 void scrollToOffset(const DoubleSize&); |
| 267 void scrollByRecursively(const IntSize& delta, ScrollOffsetClamping = Scroll
OffsetUnclamped); | 267 void scrollByRecursively(const DoubleSize& delta, ScrollOffsetClamping = Scr
ollOffsetUnclamped); |
| 268 void scrollRectToVisible(const LayoutRect&, const ScrollAlignment& alignX, c
onst ScrollAlignment& alignY); | 268 void scrollRectToVisible(const LayoutRect&, const ScrollAlignment& alignX, c
onst ScrollAlignment& alignY); |
| 269 | 269 |
| 270 virtual LayoutUnit marginTop() const override { return m_marginBox.top(); } | 270 virtual LayoutUnit marginTop() const override { return m_marginBox.top(); } |
| 271 virtual LayoutUnit marginBottom() const override { return m_marginBox.bottom
(); } | 271 virtual LayoutUnit marginBottom() const override { return m_marginBox.bottom
(); } |
| 272 virtual LayoutUnit marginLeft() const override { return m_marginBox.left();
} | 272 virtual LayoutUnit marginLeft() const override { return m_marginBox.left();
} |
| 273 virtual LayoutUnit marginRight() const override { return m_marginBox.right()
; } | 273 virtual LayoutUnit marginRight() const override { return m_marginBox.right()
; } |
| 274 void setMarginTop(LayoutUnit margin) { m_marginBox.setTop(margin); } | 274 void setMarginTop(LayoutUnit margin) { m_marginBox.setTop(margin); } |
| 275 void setMarginBottom(LayoutUnit margin) { m_marginBox.setBottom(margin); } | 275 void setMarginBottom(LayoutUnit margin) { m_marginBox.setBottom(margin); } |
| 276 void setMarginLeft(LayoutUnit margin) { m_marginBox.setLeft(margin); } | 276 void setMarginLeft(LayoutUnit margin) { m_marginBox.setLeft(margin); } |
| 277 void setMarginRight(LayoutUnit margin) { m_marginBox.setRight(margin); } | 277 void setMarginRight(LayoutUnit margin) { m_marginBox.setRight(margin); } |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 if (UNLIKELY(inlineBoxWrapper() != 0)) | 767 if (UNLIKELY(inlineBoxWrapper() != 0)) |
| 768 deleteLineBoxWrapper(); | 768 deleteLineBoxWrapper(); |
| 769 } | 769 } |
| 770 | 770 |
| 771 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 771 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
| 772 } | 772 } |
| 773 | 773 |
| 774 } // namespace blink | 774 } // namespace blink |
| 775 | 775 |
| 776 #endif // RenderBox_h | 776 #endif // RenderBox_h |
| OLD | NEW |