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

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2561973002: Changed EOverflowAnchor to an enum class and renamed its members (Closed)
Patch Set: Created 4 years 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 /* 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 947 matching lines...) Expand 10 before | Expand all | Expand 10 after
958 lifecycle().advanceTo(DocumentLifecycle::StyleClean); 958 lifecycle().advanceTo(DocumentLifecycle::StyleClean);
959 959
960 if (shouldPerformScrollAnchoring()) 960 if (shouldPerformScrollAnchoring())
961 m_scrollAnchor.notifyBeforeLayout(); 961 m_scrollAnchor.notifyBeforeLayout();
962 } 962 }
963 963
964 bool FrameView::shouldPerformScrollAnchoring() const { 964 bool FrameView::shouldPerformScrollAnchoring() const {
965 return RuntimeEnabledFeatures::scrollAnchoringEnabled() && 965 return RuntimeEnabledFeatures::scrollAnchoringEnabled() &&
966 !RuntimeEnabledFeatures::rootLayerScrollingEnabled() && 966 !RuntimeEnabledFeatures::rootLayerScrollingEnabled() &&
967 m_scrollAnchor.hasScroller() && 967 m_scrollAnchor.hasScroller() &&
968 layoutBox()->style()->overflowAnchor() != AnchorNone && 968 layoutBox()->style()->overflowAnchor() != EOverflowAnchor::None &&
969 !m_frame->document()->finishingOrIsPrinting(); 969 !m_frame->document()->finishingOrIsPrinting();
970 } 970 }
971 971
972 static inline void layoutFromRootObject(LayoutObject& root) { 972 static inline void layoutFromRootObject(LayoutObject& root) {
973 LayoutState layoutState(root); 973 LayoutState layoutState(root);
974 root.layout(); 974 root.layout();
975 } 975 }
976 976
977 void FrameView::prepareLayoutAnalyzer() { 977 void FrameView::prepareLayoutAnalyzer() {
978 bool isTracing = false; 978 bool isTracing = false;
(...skipping 3696 matching lines...) Expand 10 before | Expand all | Expand 10 after
4675 DCHECK(m_frame->isMainFrame()); 4675 DCHECK(m_frame->isMainFrame());
4676 return m_initialViewportSize.width(); 4676 return m_initialViewportSize.width();
4677 } 4677 }
4678 4678
4679 int FrameView::initialViewportHeight() const { 4679 int FrameView::initialViewportHeight() const {
4680 DCHECK(m_frame->isMainFrame()); 4680 DCHECK(m_frame->isMainFrame());
4681 return m_initialViewportSize.height(); 4681 return m_initialViewportSize.height();
4682 } 4682 }
4683 4683
4684 } // namespace blink 4684 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/layout/ScrollAnchor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698