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

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

Issue 2316533004: Don't include headers from the layout API from other headers needlessly. (Closed)
Patch Set: The runway sure is slippery today. Created 4 years, 3 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/LayoutBlockFlow.h"
10 #include "core/layout/api/LayoutBoxItem.h"
9 #include "core/layout/line/InlineTextBox.h" 11 #include "core/layout/line/InlineTextBox.h"
10 #include "core/paint/PaintLayerScrollableArea.h" 12 #include "core/paint/PaintLayerScrollableArea.h"
11 #include "platform/Histogram.h" 13 #include "platform/Histogram.h"
12 14
13 namespace blink { 15 namespace blink {
14 16
15 using Corner = ScrollAnchor::Corner; 17 using Corner = ScrollAnchor::Corner;
16 18
17 ScrollAnchor::ScrollAnchor() 19 ScrollAnchor::ScrollAnchor()
18 : m_anchorObject(nullptr) 20 : m_anchorObject(nullptr)
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 return m_anchorObject == layoutObject; 289 return m_anchorObject == layoutObject;
288 } 290 }
289 291
290 void ScrollAnchor::notifyRemoved(LayoutObject* layoutObject) 292 void ScrollAnchor::notifyRemoved(LayoutObject* layoutObject)
291 { 293 {
292 if (m_anchorObject == layoutObject) 294 if (m_anchorObject == layoutObject)
293 clear(); 295 clear();
294 } 296 }
295 297
296 } // namespace blink 298 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698