| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |