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

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

Issue 2836813002: Move ScrollbarManager from core to platform and use as Scrollbar parent (Closed)
Patch Set: Created 3 years, 8 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "core/paint/ScrollbarManager.h"
6
7 namespace blink {
8
9 ScrollbarManager::ScrollbarManager(ScrollableArea& scrollable_area)
10 : scrollable_area_(&scrollable_area),
11 h_bar_is_attached_(0),
12 v_bar_is_attached_(0) {}
13
14 DEFINE_TRACE(ScrollbarManager) {
15 visitor->Trace(scrollable_area_);
16 visitor->Trace(h_bar_);
17 visitor->Trace(v_bar_);
18 }
19
20 void ScrollbarManager::Dispose() {
21 h_bar_is_attached_ = v_bar_is_attached_ = 0;
22 DestroyScrollbar(kHorizontalScrollbar);
23 DestroyScrollbar(kVerticalScrollbar);
24 }
25
26 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/ScrollbarManager.h ('k') | third_party/WebKit/Source/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698