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

Side by Side Diff: Source/core/layout/LayoutBox.cpp

Issue 1287413002: Fix paint invalidation rect tracking within composited scrolling layers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 if (!hasOverflowClip()) 739 if (!hasOverflowClip())
740 return false; 740 return false;
741 741
742 bool hasScrollableOverflow = hasScrollableOverflowX() || hasScrollableOverfl owY(); 742 bool hasScrollableOverflow = hasScrollableOverflowX() || hasScrollableOverfl owY();
743 if (scrollsOverflow() && hasScrollableOverflow) 743 if (scrollsOverflow() && hasScrollableOverflow)
744 return true; 744 return true;
745 745
746 return node && node->hasEditableStyle(); 746 return node && node->hasEditableStyle();
747 } 747 }
748 748
749 bool LayoutBox::usesCompositedScrolling() const
750 {
751 return hasOverflowClip() && hasLayer() && layer()->scrollableArea()->usesCom positedScrolling();
752 }
753
754 void LayoutBox::autoscroll(const IntPoint& positionInRootFrame) 749 void LayoutBox::autoscroll(const IntPoint& positionInRootFrame)
755 { 750 {
756 LocalFrame* frame = this->frame(); 751 LocalFrame* frame = this->frame();
757 if (!frame) 752 if (!frame)
758 return; 753 return;
759 754
760 FrameView* frameView = frame->view(); 755 FrameView* frameView = frame->view();
761 if (!frameView) 756 if (!frameView)
762 return; 757 return;
763 758
(...skipping 3978 matching lines...) Expand 10 before | Expand all | Expand 10 after
4742 StyleImage* borderImage = style()->borderImage().image(); 4737 StyleImage* borderImage = style()->borderImage().image();
4743 return borderImage && borderImage->canRender(*this, style()->effectiveZoom() ) && borderImage->isLoaded(); 4738 return borderImage && borderImage->canRender(*this, style()->effectiveZoom() ) && borderImage->isLoaded();
4744 } 4739 }
4745 4740
4746 ShapeOutsideInfo* LayoutBox::shapeOutsideInfo() const 4741 ShapeOutsideInfo* LayoutBox::shapeOutsideInfo() const
4747 { 4742 {
4748 return ShapeOutsideInfo::isEnabledFor(*this) ? ShapeOutsideInfo::info(*this) : nullptr; 4743 return ShapeOutsideInfo::isEnabledFor(*this) ? ShapeOutsideInfo::info(*this) : nullptr;
4749 } 4744 }
4750 4745
4751 } // namespace blink 4746 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698