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 * 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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 418 virtual LayoutUnit scrollTop() const; | 418 virtual LayoutUnit scrollTop() const; |
| 419 virtual LayoutUnit scrollWidth() const; | 419 virtual LayoutUnit scrollWidth() const; |
| 420 virtual LayoutUnit scrollHeight() const; | 420 virtual LayoutUnit scrollHeight() const; |
| 421 int pixelSnappedScrollWidth() const; | 421 int pixelSnappedScrollWidth() const; |
| 422 int pixelSnappedScrollHeight() const; | 422 int pixelSnappedScrollHeight() const; |
| 423 virtual void setScrollLeft(LayoutUnit); | 423 virtual void setScrollLeft(LayoutUnit); |
| 424 virtual void setScrollTop(LayoutUnit); | 424 virtual void setScrollTop(LayoutUnit); |
| 425 | 425 |
| 426 void scrollToOffset(const DoubleSize&, ScrollBehavior = ScrollBehaviorInstan t); | 426 void scrollToOffset(const DoubleSize&, ScrollBehavior = ScrollBehaviorInstan t); |
| 427 void scrollByRecursively(const DoubleSize& delta, ScrollOffsetClamping = Scr ollOffsetUnclamped); | 427 void scrollByRecursively(const DoubleSize& delta, ScrollOffsetClamping = Scr ollOffsetUnclamped); |
| 428 void scrollRectToVisible(const LayoutRect&, const ScrollAlignment& alignX, c onst ScrollAlignment& alignY, ScrollType = ProgrammaticScroll); | 428 void scrollRectToVisible(const LayoutRect&, const ScrollAlignment& alignX, c onst ScrollAlignment& alignY, ScrollType = ProgrammaticScroll, bool scrollVisual Viewport = true); |
|
bokan
2015/10/30 16:08:55
I think this param should be called something like
ymalik
2015/11/01 00:02:24
Done.
| |
| 429 | 429 |
| 430 LayoutRectOutsets marginBoxOutsets() const override { return m_marginBoxOuts ets; } | 430 LayoutRectOutsets marginBoxOutsets() const override { return m_marginBoxOuts ets; } |
| 431 LayoutUnit marginTop() const override { return m_marginBoxOutsets.top(); } | 431 LayoutUnit marginTop() const override { return m_marginBoxOutsets.top(); } |
| 432 LayoutUnit marginBottom() const override { return m_marginBoxOutsets.bottom( ); } | 432 LayoutUnit marginBottom() const override { return m_marginBoxOutsets.bottom( ); } |
| 433 LayoutUnit marginLeft() const override { return m_marginBoxOutsets.left(); } | 433 LayoutUnit marginLeft() const override { return m_marginBoxOutsets.left(); } |
| 434 LayoutUnit marginRight() const override { return m_marginBoxOutsets.right(); } | 434 LayoutUnit marginRight() const override { return m_marginBoxOutsets.right(); } |
| 435 void setMarginTop(LayoutUnit margin) { m_marginBoxOutsets.setTop(margin); } | 435 void setMarginTop(LayoutUnit margin) { m_marginBoxOutsets.setTop(margin); } |
| 436 void setMarginBottom(LayoutUnit margin) { m_marginBoxOutsets.setBottom(margi n); } | 436 void setMarginBottom(LayoutUnit margin) { m_marginBoxOutsets.setBottom(margi n); } |
| 437 void setMarginLeft(LayoutUnit margin) { m_marginBoxOutsets.setLeft(margin); } | 437 void setMarginLeft(LayoutUnit margin) { m_marginBoxOutsets.setLeft(margin); } |
| 438 void setMarginRight(LayoutUnit margin) { m_marginBoxOutsets.setRight(margin) ; } | 438 void setMarginRight(LayoutUnit margin) { m_marginBoxOutsets.setRight(margin) ; } |
| (...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1055 if (UNLIKELY(inlineBoxWrapper() != nullptr)) | 1055 if (UNLIKELY(inlineBoxWrapper() != nullptr)) |
| 1056 deleteLineBoxWrapper(); | 1056 deleteLineBoxWrapper(); |
| 1057 } | 1057 } |
| 1058 | 1058 |
| 1059 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 1059 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
| 1060 } | 1060 } |
| 1061 | 1061 |
| 1062 } // namespace blink | 1062 } // namespace blink |
| 1063 | 1063 |
| 1064 #endif // LayoutBox_h | 1064 #endif // LayoutBox_h |
| OLD | NEW |