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

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

Issue 2729683002: Handle resize in PaintPropertyTreeBuilder::updateForObjectSizeAndLocation() (Closed)
Patch Set: Fix a typo (ScrollbarWithChange -> ScrollbarWidthChange) Created 3 years, 9 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 2601 matching lines...) Expand 10 before | Expand all | Expand 10 after
2612 return !!m_frame->document(); 2612 return !!m_frame->document();
2613 } 2613 }
2614 2614
2615 void FrameView::scrollbarVisibilityChanged() { 2615 void FrameView::scrollbarVisibilityChanged() {
2616 updateScrollbarEnabledState(); 2616 updateScrollbarEnabledState();
2617 LayoutViewItem viewItem = layoutViewItem(); 2617 LayoutViewItem viewItem = layoutViewItem();
2618 if (!viewItem.isNull()) 2618 if (!viewItem.isNull())
2619 viewItem.clearHitTestCache(); 2619 viewItem.clearHitTestCache();
2620 } 2620 }
2621 2621
2622 void FrameView::scrollbarFrameRectChanged() {
2623 setNeedsPaintPropertyUpdate();
2624 }
2625
2622 IntRect FrameView::scrollableAreaBoundingBox() const { 2626 IntRect FrameView::scrollableAreaBoundingBox() const {
2623 LayoutPartItem ownerLayoutItem = frame().ownerLayoutItem(); 2627 LayoutPartItem ownerLayoutItem = frame().ownerLayoutItem();
2624 if (ownerLayoutItem.isNull()) 2628 if (ownerLayoutItem.isNull())
2625 return frameRect(); 2629 return frameRect();
2626 2630
2627 return ownerLayoutItem.absoluteContentQuad(TraverseDocumentBoundaries) 2631 return ownerLayoutItem.absoluteContentQuad(TraverseDocumentBoundaries)
2628 .enclosingBoundingBox(); 2632 .enclosingBoundingBox();
2629 } 2633 }
2630 2634
2631 bool FrameView::isScrollable() const { 2635 bool FrameView::isScrollable() const {
(...skipping 2619 matching lines...) Expand 10 before | Expand all | Expand 10 after
5251 void FrameView::setAnimationHost( 5255 void FrameView::setAnimationHost(
5252 std::unique_ptr<CompositorAnimationHost> host) { 5256 std::unique_ptr<CompositorAnimationHost> host) {
5253 m_animationHost = std::move(host); 5257 m_animationHost = std::move(host);
5254 } 5258 }
5255 5259
5256 LayoutUnit FrameView::caretWidth() const { 5260 LayoutUnit FrameView::caretWidth() const {
5257 return LayoutUnit(getHostWindow()->windowToViewportScalar(1)); 5261 return LayoutUnit(getHostWindow()->windowToViewportScalar(1));
5258 } 5262 }
5259 5263
5260 } // namespace blink 5264 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.h ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698