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

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

Issue 1907213002: Refactor OverlayScrollbarSizeRelevancy into OverlayScrollbarClipBehavior (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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 3229 matching lines...) Expand 10 before | Expand all | Expand 10 after
3240 m_scrollAnchor.clear(); 3240 m_scrollAnchor.clear();
3241 } 3241 }
3242 3242
3243 void FrameView::windowResizerRectChanged() 3243 void FrameView::windowResizerRectChanged()
3244 { 3244 {
3245 updateScrollbars(); 3245 updateScrollbars();
3246 } 3246 }
3247 3247
3248 bool FrameView::hasOverlayScrollbars() const 3248 bool FrameView::hasOverlayScrollbars() const
3249 { 3249 {
3250
3251 return (m_horizontalScrollbar && m_horizontalScrollbar->isOverlayScrollbar() ) 3250 return (m_horizontalScrollbar && m_horizontalScrollbar->isOverlayScrollbar() )
3252 || (m_verticalScrollbar && m_verticalScrollbar->isOverlayScrollbar()); 3251 || (m_verticalScrollbar && m_verticalScrollbar->isOverlayScrollbar());
3253 } 3252 }
3254 3253
3255 void FrameView::computeScrollbarExistence(bool& newHasHorizontalScrollbar, bool& newHasVerticalScrollbar, const IntSize& docSize, ComputeScrollbarExistenceOptio n option) const 3254 void FrameView::computeScrollbarExistence(bool& newHasHorizontalScrollbar, bool& newHasVerticalScrollbar, const IntSize& docSize, ComputeScrollbarExistenceOptio n option) const
3256 { 3255 {
3257 bool hasHorizontalScrollbar = m_horizontalScrollbar; 3256 bool hasHorizontalScrollbar = m_horizontalScrollbar;
3258 bool hasVerticalScrollbar = m_verticalScrollbar; 3257 bool hasVerticalScrollbar = m_verticalScrollbar;
3259 3258
3260 newHasHorizontalScrollbar = hasHorizontalScrollbar; 3259 newHasHorizontalScrollbar = hasHorizontalScrollbar;
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
4060 return m_hiddenForThrottling && m_crossOriginForThrottling; 4059 return m_hiddenForThrottling && m_crossOriginForThrottling;
4061 } 4060 }
4062 4061
4063 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const 4062 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const
4064 { 4063 {
4065 ASSERT(layoutView()); 4064 ASSERT(layoutView());
4066 return *layoutView(); 4065 return *layoutView();
4067 } 4066 }
4068 4067
4069 } // namespace blink 4068 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698