| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
| 4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000 Dirk Mueller <mueller@kde.org> | 5 * 2000 Dirk Mueller <mueller@kde.org> |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 9 * Copyright (C) 2009 Google Inc. All rights reserved. | 9 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 984 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 995 document->clearResizedForViewportUnits(); | 995 document->clearResizedForViewportUnits(); |
| 996 | 996 |
| 997 if (shouldPerformScrollAnchoring()) | 997 if (shouldPerformScrollAnchoring()) |
| 998 m_scrollAnchor.notifyBeforeLayout(); | 998 m_scrollAnchor.notifyBeforeLayout(); |
| 999 } | 999 } |
| 1000 | 1000 |
| 1001 bool FrameView::shouldPerformScrollAnchoring() const { | 1001 bool FrameView::shouldPerformScrollAnchoring() const { |
| 1002 return RuntimeEnabledFeatures::scrollAnchoringEnabled() && | 1002 return RuntimeEnabledFeatures::scrollAnchoringEnabled() && |
| 1003 !RuntimeEnabledFeatures::rootLayerScrollingEnabled() && | 1003 !RuntimeEnabledFeatures::rootLayerScrollingEnabled() && |
| 1004 m_scrollAnchor.hasScroller() && | 1004 m_scrollAnchor.hasScroller() && |
| 1005 layoutBox()->style()->overflowAnchor() != EOverflowAnchor::None && | 1005 layoutBox()->style()->overflowAnchor() != EOverflowAnchor::kNone && |
| 1006 !m_frame->document()->finishingOrIsPrinting(); | 1006 !m_frame->document()->finishingOrIsPrinting(); |
| 1007 } | 1007 } |
| 1008 | 1008 |
| 1009 static inline void layoutFromRootObject(LayoutObject& root) { | 1009 static inline void layoutFromRootObject(LayoutObject& root) { |
| 1010 LayoutState layoutState(root); | 1010 LayoutState layoutState(root); |
| 1011 root.layout(); | 1011 root.layout(); |
| 1012 } | 1012 } |
| 1013 | 1013 |
| 1014 void FrameView::prepareLayoutAnalyzer() { | 1014 void FrameView::prepareLayoutAnalyzer() { |
| 1015 bool isTracing = false; | 1015 bool isTracing = false; |
| (...skipping 4045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5061 std::unique_ptr<CompositorAnimationTimeline> timeline) { | 5061 std::unique_ptr<CompositorAnimationTimeline> timeline) { |
| 5062 m_animationTimeline = std::move(timeline); | 5062 m_animationTimeline = std::move(timeline); |
| 5063 } | 5063 } |
| 5064 | 5064 |
| 5065 void FrameView::setAnimationHost( | 5065 void FrameView::setAnimationHost( |
| 5066 std::unique_ptr<CompositorAnimationHost> host) { | 5066 std::unique_ptr<CompositorAnimationHost> host) { |
| 5067 m_animationHost = std::move(host); | 5067 m_animationHost = std::move(host); |
| 5068 } | 5068 } |
| 5069 | 5069 |
| 5070 } // namespace blink | 5070 } // namespace blink |
| OLD | NEW |