| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * | 4 * |
| 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
| 6 * | 6 * |
| 7 * Other contributors: | 7 * Other contributors: |
| 8 * Robert O'Callahan <roc+@cs.cmu.edu> | 8 * Robert O'Callahan <roc+@cs.cmu.edu> |
| 9 * David Baron <dbaron@fas.harvard.edu> | 9 * David Baron <dbaron@fas.harvard.edu> |
| 10 * Christian Biesinger <cbiesinger@gmail.com> | 10 * Christian Biesinger <cbiesinger@gmail.com> |
| (...skipping 1925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1936 | 1936 |
| 1937 const TopDocumentRootScrollerController& controller = | 1937 const TopDocumentRootScrollerController& controller = |
| 1938 GetLayoutBox()->GetDocument().GetPage()->GlobalRootScrollerController(); | 1938 GetLayoutBox()->GetDocument().GetPage()->GlobalRootScrollerController(); |
| 1939 | 1939 |
| 1940 return RootScrollerUtil::ScrollableAreaForRootScroller( | 1940 return RootScrollerUtil::ScrollableAreaForRootScroller( |
| 1941 controller.GlobalRootScroller()) == this; | 1941 controller.GlobalRootScroller()) == this; |
| 1942 } | 1942 } |
| 1943 | 1943 |
| 1944 bool PaintLayerScrollableArea::ScheduleAnimation() { | 1944 bool PaintLayerScrollableArea::ScheduleAnimation() { |
| 1945 if (PlatformChromeClient* client = GetChromeClient()) { | 1945 if (PlatformChromeClient* client = GetChromeClient()) { |
| 1946 client->ScheduleAnimation(Box().GetFrame()); | 1946 client->ScheduleAnimation(Box().GetFrame()->View()); |
| 1947 return true; | 1947 return true; |
| 1948 } | 1948 } |
| 1949 return false; | 1949 return false; |
| 1950 } | 1950 } |
| 1951 | 1951 |
| 1952 void PaintLayerScrollableArea::ResetRebuildScrollbarLayerFlags() { | 1952 void PaintLayerScrollableArea::ResetRebuildScrollbarLayerFlags() { |
| 1953 rebuild_horizontal_scrollbar_layer_ = false; | 1953 rebuild_horizontal_scrollbar_layer_ = false; |
| 1954 rebuild_vertical_scrollbar_layer_ = false; | 1954 rebuild_vertical_scrollbar_layer_ = false; |
| 1955 } | 1955 } |
| 1956 | 1956 |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2177 | 2177 |
| 2178 void PaintLayerScrollableArea::DelayScrollOffsetClampScope:: | 2178 void PaintLayerScrollableArea::DelayScrollOffsetClampScope:: |
| 2179 ClampScrollableAreas() { | 2179 ClampScrollableAreas() { |
| 2180 for (auto& scrollable_area : *needs_clamp_) | 2180 for (auto& scrollable_area : *needs_clamp_) |
| 2181 scrollable_area->ClampScrollOffsetAfterOverflowChange(); | 2181 scrollable_area->ClampScrollOffsetAfterOverflowChange(); |
| 2182 delete needs_clamp_; | 2182 delete needs_clamp_; |
| 2183 needs_clamp_ = nullptr; | 2183 needs_clamp_ = nullptr; |
| 2184 } | 2184 } |
| 2185 | 2185 |
| 2186 } // namespace blink | 2186 } // namespace blink |
| OLD | NEW |