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

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

Issue 2334313002: [Layout API] Use ownerLayoutItem() in scrollableAreaBoundingBox() (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/api/LayoutBoxItem.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2285 matching lines...) Expand 10 before | Expand all | Expand 10 after
2296 2296
2297 void FrameView::scrollbarVisibilityChanged() 2297 void FrameView::scrollbarVisibilityChanged()
2298 { 2298 {
2299 LayoutViewItem viewItem = layoutViewItem(); 2299 LayoutViewItem viewItem = layoutViewItem();
2300 if (!viewItem.isNull()) 2300 if (!viewItem.isNull())
2301 viewItem.clearHitTestCache(); 2301 viewItem.clearHitTestCache();
2302 } 2302 }
2303 2303
2304 IntRect FrameView::scrollableAreaBoundingBox() const 2304 IntRect FrameView::scrollableAreaBoundingBox() const
2305 { 2305 {
2306 LayoutPart* ownerLayoutObject = frame().ownerLayoutObject(); 2306 LayoutPartItem ownerLayoutItem = frame().ownerLayoutItem();
2307 if (!ownerLayoutObject) 2307 if (ownerLayoutItem.isNull())
2308 return frameRect(); 2308 return frameRect();
2309 2309
2310 return ownerLayoutObject->absoluteContentQuad().enclosingBoundingBox(); 2310 return ownerLayoutItem.absoluteContentQuad().enclosingBoundingBox();
2311 } 2311 }
2312 2312
2313 2313
2314 bool FrameView::isScrollable() 2314 bool FrameView::isScrollable()
2315 { 2315 {
2316 return getScrollingReasons() == Scrollable; 2316 return getScrollingReasons() == Scrollable;
2317 } 2317 }
2318 2318
2319 bool FrameView::isProgrammaticallyScrollable() 2319 bool FrameView::isProgrammaticallyScrollable()
2320 { 2320 {
(...skipping 2032 matching lines...) Expand 10 before | Expand all | Expand 10 after
4353 } 4353 }
4354 4354
4355 bool FrameView::canThrottleRendering() const 4355 bool FrameView::canThrottleRendering() const
4356 { 4356 {
4357 if (!RuntimeEnabledFeatures::renderingPipelineThrottlingEnabled()) 4357 if (!RuntimeEnabledFeatures::renderingPipelineThrottlingEnabled())
4358 return false; 4358 return false;
4359 return m_subtreeThrottled || (m_hiddenForThrottling && m_crossOriginForThrot tling); 4359 return m_subtreeThrottled || (m_hiddenForThrottling && m_crossOriginForThrot tling);
4360 } 4360 }
4361 4361
4362 } // namespace blink 4362 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/api/LayoutBoxItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698