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 2285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |