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