Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp

Issue 1973083002: Use element id's for animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 1575 matching lines...) Expand 10 before | Expand all | Expand 10 after
1633 m_scrollableArea->m_rebuildVerticalScrollbarLayer = true; 1634 m_scrollableArea->m_rebuildVerticalScrollbarLayer = true;
1634 1635
1635 if (!scrollbar->isCustomScrollbar()) 1636 if (!scrollbar->isCustomScrollbar())
1636 m_scrollableArea->willRemoveScrollbar(*scrollbar, orientation); 1637 m_scrollableArea->willRemoveScrollbar(*scrollbar, orientation);
1637 1638
1638 toFrameView(scrollbar->parent())->removeChild(scrollbar.get()); 1639 toFrameView(scrollbar->parent())->removeChild(scrollbar.get());
1639 scrollbar->disconnectFromScrollableArea(); 1640 scrollbar->disconnectFromScrollableArea();
1640 scrollbar = nullptr; 1641 scrollbar = nullptr;
1641 } 1642 }
1642 1643
1644 uint64_t PaintLayerScrollableArea::id() const
1645 {
1646 return DOMNodeIds::idForNode(box().node());
1647 }
1648
1643 DEFINE_TRACE(PaintLayerScrollableArea::ScrollbarManager) 1649 DEFINE_TRACE(PaintLayerScrollableArea::ScrollbarManager)
1644 { 1650 {
1645 visitor->trace(m_scrollableArea); 1651 visitor->trace(m_scrollableArea);
1646 visitor->trace(m_hBar); 1652 visitor->trace(m_hBar);
1647 visitor->trace(m_vBar); 1653 visitor->trace(m_vBar);
1648 } 1654 }
1649 1655
1650 int PaintLayerScrollableArea::PreventRelayoutScope::s_count = 0; 1656 int PaintLayerScrollableArea::PreventRelayoutScope::s_count = 0;
1651 SubtreeLayoutScope* PaintLayerScrollableArea::PreventRelayoutScope::s_layoutScop e = nullptr; 1657 SubtreeLayoutScope* PaintLayerScrollableArea::PreventRelayoutScope::s_layoutScop e = nullptr;
1652 bool PaintLayerScrollableArea::PreventRelayoutScope::s_relayoutNeeded = false; 1658 bool PaintLayerScrollableArea::PreventRelayoutScope::s_relayoutNeeded = false;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
1737 1743
1738 void PaintLayerScrollableArea::DelayScrollPositionClampScope::clampScrollableAre as() 1744 void PaintLayerScrollableArea::DelayScrollPositionClampScope::clampScrollableAre as()
1739 { 1745 {
1740 for (auto& scrollableArea : *s_needsClamp) 1746 for (auto& scrollableArea : *s_needsClamp)
1741 scrollableArea->clampScrollPositionsAfterLayout(); 1747 scrollableArea->clampScrollPositionsAfterLayout();
1742 delete s_needsClamp; 1748 delete s_needsClamp;
1743 s_needsClamp = nullptr; 1749 s_needsClamp = nullptr;
1744 } 1750 }
1745 1751
1746 } // namespace blink 1752 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698