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

Side by Side Diff: Source/core/frame/TopControls.cpp

Issue 952813002: InlinedVisitor: Migrate frame to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "TopControls.h" 6 #include "TopControls.h"
7 7
8 #include "core/frame/FrameHost.h" 8 #include "core/frame/FrameHost.h"
9 #include "core/page/Chrome.h" 9 #include "core/page/Chrome.h"
10 #include "core/page/ChromeClient.h" 10 #include "core/page/ChromeClient.h"
(...skipping 10 matching lines...) Expand all
21 , m_accumulatedScrollDelta(0) 21 , m_accumulatedScrollDelta(0)
22 , m_shrinkViewport(false) 22 , m_shrinkViewport(false)
23 , m_permittedState(WebTopControlsBoth) 23 , m_permittedState(WebTopControlsBoth)
24 { 24 {
25 } 25 }
26 26
27 TopControls::~TopControls() 27 TopControls::~TopControls()
28 { 28 {
29 } 29 }
30 30
31 void TopControls::trace(Visitor* visitor) 31 DEFINE_TRACE(TopControls)
32 { 32 {
33 visitor->trace(m_frameHost); 33 visitor->trace(m_frameHost);
34 } 34 }
35 35
36 void TopControls::scrollBegin() 36 void TopControls::scrollBegin()
37 { 37 {
38 resetBaseline(); 38 resetBaseline();
39 } 39 }
40 40
41 FloatSize TopControls::scrollBy(FloatSize pendingDelta) 41 FloatSize TopControls::scrollBy(FloatSize pendingDelta)
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 { 97 {
98 if (m_height == height && m_shrinkViewport == shrinkViewport) 98 if (m_height == height && m_shrinkViewport == shrinkViewport)
99 return; 99 return;
100 100
101 m_height = height; 101 m_height = height;
102 m_shrinkViewport = shrinkViewport; 102 m_shrinkViewport = shrinkViewport;
103 m_frameHost->chrome().client().didUpdateTopControls(); 103 m_frameHost->chrome().client().didUpdateTopControls();
104 } 104 }
105 105
106 } // namespace blink 106 } // namespace blink
OLDNEW
« Source/core/frame/DOMWindow.h ('K') | « Source/core/frame/TopControls.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698