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: Include -> Exclude 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 3236 matching lines...) Expand 10 before | Expand all | Expand 10 after
3247 m_scrollAnchor.clear(); 3247 m_scrollAnchor.clear();
3248 } 3248 }
3249 3249
3250 void FrameView::windowResizerRectChanged() 3250 void FrameView::windowResizerRectChanged()
3251 { 3251 {
3252 updateScrollbars(); 3252 updateScrollbars();
3253 } 3253 }
3254 3254
3255 bool FrameView::hasOverlayScrollbars() const 3255 bool FrameView::hasOverlayScrollbars() const
3256 { 3256 {
3257
3258 return (m_horizontalScrollbar && m_horizontalScrollbar->isOverlayScrollbar() ) 3257 return (m_horizontalScrollbar && m_horizontalScrollbar->isOverlayScrollbar() )
3259 || (m_verticalScrollbar && m_verticalScrollbar->isOverlayScrollbar()); 3258 || (m_verticalScrollbar && m_verticalScrollbar->isOverlayScrollbar());
3260 } 3259 }
3261 3260
3262 void FrameView::computeScrollbarExistence(bool& newHasHorizontalScrollbar, bool& newHasVerticalScrollbar, const IntSize& docSize, ComputeScrollbarExistenceOptio n option) const 3261 void FrameView::computeScrollbarExistence(bool& newHasHorizontalScrollbar, bool& newHasVerticalScrollbar, const IntSize& docSize, ComputeScrollbarExistenceOptio n option) const
3263 { 3262 {
3264 bool hasHorizontalScrollbar = m_horizontalScrollbar; 3263 bool hasHorizontalScrollbar = m_horizontalScrollbar;
3265 bool hasVerticalScrollbar = m_verticalScrollbar; 3264 bool hasVerticalScrollbar = m_verticalScrollbar;
3266 3265
3267 newHasHorizontalScrollbar = hasHorizontalScrollbar; 3266 newHasHorizontalScrollbar = hasHorizontalScrollbar;
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
4067 return m_hiddenForThrottling && m_crossOriginForThrottling; 4066 return m_hiddenForThrottling && m_crossOriginForThrottling;
4068 } 4067 }
4069 4068
4070 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const 4069 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const
4071 { 4070 {
4072 ASSERT(layoutView()); 4071 ASSERT(layoutView());
4073 return *layoutView(); 4072 return *layoutView();
4074 } 4073 }
4075 4074
4076 } // namespace blink 4075 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698