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

Side by Side Diff: third_party/WebKit/Source/core/layout/ScrollAnchor.cpp

Issue 2015583003: Remove assorted unnecessary includes in core/layout/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 // 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 "core/layout/ScrollAnchor.h" 5 #include "core/layout/ScrollAnchor.h"
6 6
7 #include "core/frame/FrameView.h" 7 #include "core/frame/FrameView.h"
8 #include "core/frame/UseCounter.h" 8 #include "core/frame/UseCounter.h"
9 #include "core/layout/LayoutView.h"
10 #include "core/layout/line/InlineTextBox.h" 9 #include "core/layout/line/InlineTextBox.h"
11 #include "core/paint/PaintLayerScrollableArea.h" 10 #include "core/paint/PaintLayerScrollableArea.h"
12 #include "platform/Histogram.h" 11 #include "platform/Histogram.h"
13 12
14 namespace blink { 13 namespace blink {
15 14
16 using Corner = ScrollAnchor::Corner; 15 using Corner = ScrollAnchor::Corner;
17 16
18 ScrollAnchor::ScrollAnchor(ScrollableArea* scroller) 17 ScrollAnchor::ScrollAnchor(ScrollableArea* scroller)
19 : m_scroller(scroller) 18 : m_scroller(scroller)
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 294
296 void ScrollAnchor::notifyRemoved(LayoutObject* layoutObject) 295 void ScrollAnchor::notifyRemoved(LayoutObject* layoutObject)
297 { 296 {
298 if (m_current.m_anchorObject == layoutObject) 297 if (m_current.m_anchorObject == layoutObject)
299 m_current.clear(); 298 m_current.clear();
300 if (m_lastAdjusted.m_anchorObject == layoutObject) 299 if (m_lastAdjusted.m_anchorObject == layoutObject)
301 m_lastAdjusted.clear(); 300 m_lastAdjusted.clear();
302 } 301 }
303 302
304 } // namespace blink 303 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698