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

Side by Side Diff: Source/core/frame/FrameView.h

Issue 191693002: Delay scrollContents until the next paint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/frame/FrameView.cpp » ('j') | Source/core/rendering/RenderLayer.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 Copyright (C) 1997 Martin Jones (mjones@kde.org) 2 Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 (C) 1998 Waldo Bastian (bastian@kde.org) 3 (C) 1998 Waldo Bastian (bastian@kde.org)
4 (C) 1998, 1999 Torben Weis (weis@kde.org) 4 (C) 1998, 1999 Torben Weis (weis@kde.org)
5 (C) 1999 Lars Knoll (knoll@kde.org) 5 (C) 1999 Lars Knoll (knoll@kde.org)
6 (C) 1999 Antti Koivisto (koivisto@kde.org) 6 (C) 1999 Antti Koivisto (koivisto@kde.org)
7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 virtual IntRect windowResizerRect() const OVERRIDE; 139 virtual IntRect windowResizerRect() const OVERRIDE;
140 140
141 virtual float visibleContentScaleFactor() const OVERRIDE { return m_visibleC ontentScaleFactor; } 141 virtual float visibleContentScaleFactor() const OVERRIDE { return m_visibleC ontentScaleFactor; }
142 void setVisibleContentScaleFactor(float); 142 void setVisibleContentScaleFactor(float);
143 143
144 virtual float inputEventsScaleFactor() const OVERRIDE; 144 virtual float inputEventsScaleFactor() const OVERRIDE;
145 virtual IntSize inputEventsOffsetForEmulation() const OVERRIDE; 145 virtual IntSize inputEventsOffsetForEmulation() const OVERRIDE;
146 void setInputEventsTransformForEmulation(const IntSize&, float); 146 void setInputEventsTransformForEmulation(const IntSize&, float);
147 147
148 virtual void setScrollPosition(const IntPoint&) OVERRIDE; 148 virtual void setScrollPosition(const IntPoint&) OVERRIDE;
149 virtual void invalidateFixedElementsBeforeScrolling(const IntSize&, const In tRect&);
149 virtual void repaintFixedElementsAfterScrolling() OVERRIDE; 150 virtual void repaintFixedElementsAfterScrolling() OVERRIDE;
abarth-chromium 2014/03/08 06:54:52 OVERRIDE?
ykyyip 2014/03/11 01:59:39 Done.
150 virtual void updateFixedElementsAfterScrolling() OVERRIDE; 151 virtual void updateFixedElementsAfterScrolling() OVERRIDE;
151 virtual bool shouldRubberBandInDirection(ScrollDirection) const OVERRIDE; 152 virtual bool shouldRubberBandInDirection(ScrollDirection) const OVERRIDE;
152 virtual bool isRubberBandInProgress() const OVERRIDE; 153 virtual bool isRubberBandInProgress() const OVERRIDE;
153 void setScrollPositionNonProgrammatically(const IntPoint&); 154 void setScrollPositionNonProgrammatically(const IntPoint&);
154 155
155 // This is different than visibleContentRect() in that it ignores negative ( or overly positive) 156 // This is different than visibleContentRect() in that it ignores negative ( or overly positive)
156 // offsets from rubber-banding, and it takes zooming into account. 157 // offsets from rubber-banding, and it takes zooming into account.
157 LayoutRect viewportConstrainedVisibleContentRect() const; 158 LayoutRect viewportConstrainedVisibleContentRect() const;
158 void viewportConstrainedVisibleContentSizeChanged(bool widthChanged, bool he ightChanged); 159 void viewportConstrainedVisibleContentSizeChanged(bool widthChanged, bool he ightChanged);
159 160
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 m_view->setCanRepaintDuringPerformLayout(m_originalValue); 547 m_view->setCanRepaintDuringPerformLayout(m_originalValue);
547 } 548 }
548 private: 549 private:
549 FrameView* m_view; 550 FrameView* m_view;
550 bool m_originalValue; 551 bool m_originalValue;
551 }; 552 };
552 553
553 } // namespace WebCore 554 } // namespace WebCore
554 555
555 #endif // FrameView_h 556 #endif // FrameView_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/FrameView.cpp » ('j') | Source/core/rendering/RenderLayer.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698