| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. |
| 3 * | 3 * |
| 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
| 5 * | 5 * |
| 6 * Other contributors: | 6 * Other contributors: |
| 7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
| 8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
| 9 * Christian Biesinger <cbiesinger@gmail.com> | 9 * Christian Biesinger <cbiesinger@gmail.com> |
| 10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 * deletingthe provisions above and replace them with the notice and | 38 * deletingthe provisions above and replace them with the notice and |
| 39 * other provisions required by the MPL or the GPL, as the case may be. | 39 * other provisions required by the MPL or the GPL, as the case may be. |
| 40 * If you do not delete the provisions above, a recipient may use your | 40 * If you do not delete the provisions above, a recipient may use your |
| 41 * version of this file under any of the LGPL, the MPL or the GPL. | 41 * version of this file under any of the LGPL, the MPL or the GPL. |
| 42 */ | 42 */ |
| 43 | 43 |
| 44 #include "core/paint/PaintLayerScrollableArea.h" | 44 #include "core/paint/PaintLayerScrollableArea.h" |
| 45 | 45 |
| 46 #include "core/css/PseudoStyleRequest.h" | 46 #include "core/css/PseudoStyleRequest.h" |
| 47 #include "core/dom/AXObjectCache.h" | 47 #include "core/dom/AXObjectCache.h" |
| 48 #include "core/dom/DOMNodeIds.h" |
| 48 #include "core/dom/Node.h" | 49 #include "core/dom/Node.h" |
| 49 #include "core/dom/shadow/ShadowRoot.h" | 50 #include "core/dom/shadow/ShadowRoot.h" |
| 50 #include "core/editing/FrameSelection.h" | 51 #include "core/editing/FrameSelection.h" |
| 51 #include "core/frame/FrameHost.h" | 52 #include "core/frame/FrameHost.h" |
| 52 #include "core/frame/FrameView.h" | 53 #include "core/frame/FrameView.h" |
| 53 #include "core/frame/LocalFrame.h" | 54 #include "core/frame/LocalFrame.h" |
| 54 #include "core/frame/Settings.h" | 55 #include "core/frame/Settings.h" |
| 55 #include "core/html/HTMLFrameOwnerElement.h" | 56 #include "core/html/HTMLFrameOwnerElement.h" |
| 56 #include "core/input/EventHandler.h" | 57 #include "core/input/EventHandler.h" |
| 57 #include "core/layout/LayoutFlexibleBox.h" | 58 #include "core/layout/LayoutFlexibleBox.h" |
| (...skipping 1574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1632 m_scrollableArea->m_rebuildVerticalScrollbarLayer = true; | 1633 m_scrollableArea->m_rebuildVerticalScrollbarLayer = true; |
| 1633 | 1634 |
| 1634 if (!scrollbar->isCustomScrollbar()) | 1635 if (!scrollbar->isCustomScrollbar()) |
| 1635 m_scrollableArea->willRemoveScrollbar(*scrollbar, orientation); | 1636 m_scrollableArea->willRemoveScrollbar(*scrollbar, orientation); |
| 1636 | 1637 |
| 1637 toFrameView(scrollbar->parent())->removeChild(scrollbar.get()); | 1638 toFrameView(scrollbar->parent())->removeChild(scrollbar.get()); |
| 1638 scrollbar->disconnectFromScrollableArea(); | 1639 scrollbar->disconnectFromScrollableArea(); |
| 1639 scrollbar = nullptr; | 1640 scrollbar = nullptr; |
| 1640 } | 1641 } |
| 1641 | 1642 |
| 1643 uint64_t PaintLayerScrollableArea::id() const |
| 1644 { |
| 1645 return DOMNodeIds::idForNode(box().node()); |
| 1646 } |
| 1647 |
| 1642 DEFINE_TRACE(PaintLayerScrollableArea::ScrollbarManager) | 1648 DEFINE_TRACE(PaintLayerScrollableArea::ScrollbarManager) |
| 1643 { | 1649 { |
| 1644 visitor->trace(m_scrollableArea); | 1650 visitor->trace(m_scrollableArea); |
| 1645 visitor->trace(m_hBar); | 1651 visitor->trace(m_hBar); |
| 1646 visitor->trace(m_vBar); | 1652 visitor->trace(m_vBar); |
| 1647 } | 1653 } |
| 1648 | 1654 |
| 1649 int PaintLayerScrollableArea::PreventRelayoutScope::s_count = 0; | 1655 int PaintLayerScrollableArea::PreventRelayoutScope::s_count = 0; |
| 1650 SubtreeLayoutScope* PaintLayerScrollableArea::PreventRelayoutScope::s_layoutScop
e = nullptr; | 1656 SubtreeLayoutScope* PaintLayerScrollableArea::PreventRelayoutScope::s_layoutScop
e = nullptr; |
| 1651 bool PaintLayerScrollableArea::PreventRelayoutScope::s_relayoutNeeded = false; | 1657 bool PaintLayerScrollableArea::PreventRelayoutScope::s_relayoutNeeded = false; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1736 | 1742 |
| 1737 void PaintLayerScrollableArea::DelayScrollPositionClampScope::clampScrollableAre
as() | 1743 void PaintLayerScrollableArea::DelayScrollPositionClampScope::clampScrollableAre
as() |
| 1738 { | 1744 { |
| 1739 for (auto& scrollableArea : *s_needsClamp) | 1745 for (auto& scrollableArea : *s_needsClamp) |
| 1740 scrollableArea->clampScrollPositionsAfterLayout(); | 1746 scrollableArea->clampScrollPositionsAfterLayout(); |
| 1741 delete s_needsClamp; | 1747 delete s_needsClamp; |
| 1742 s_needsClamp = nullptr; | 1748 s_needsClamp = nullptr; |
| 1743 } | 1749 } |
| 1744 | 1750 |
| 1745 } // namespace blink | 1751 } // namespace blink |
| OLD | NEW |