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

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

Issue 2383113003: Refactor ScrollableArea::setScrollPosition. (Closed)
Patch Set: Created 4 years, 2 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) 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 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 private: 757 private:
758 AutoReset<bool> m_scope; 758 AutoReset<bool> m_scope;
759 }; 759 };
760 760
761 // Only for LayoutPart to traverse into sub frames during paint invalidation. 761 // Only for LayoutPart to traverse into sub frames during paint invalidation.
762 void invalidateTreeIfNeeded(const PaintInvalidationState&); 762 void invalidateTreeIfNeeded(const PaintInvalidationState&);
763 763
764 private: 764 private:
765 explicit FrameView(LocalFrame*); 765 explicit FrameView(LocalFrame*);
766 766
767 void setScrollOffset(const DoublePoint&, ScrollType) override; 767 void updateScrollPosition(const DoublePoint&, ScrollType) override;
768 768
769 void updateLifecyclePhasesInternal( 769 void updateLifecyclePhasesInternal(
770 DocumentLifecycle::LifecycleState targetState); 770 DocumentLifecycle::LifecycleState targetState);
771 771
772 void invalidateTreeIfNeededRecursive(); 772 void invalidateTreeIfNeededRecursive();
773 void scrollContentsIfNeededRecursive(); 773 void scrollContentsIfNeededRecursive();
774 void updateStyleAndLayoutIfNeededRecursive(); 774 void updateStyleAndLayoutIfNeededRecursive();
775 void updatePaintProperties(); 775 void updatePaintProperties();
776 void synchronizedPaint(); 776 void synchronizedPaint();
777 void synchronizedPaintRecursively(GraphicsLayer*); 777 void synchronizedPaintRecursively(GraphicsLayer*);
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
1087 widget.isFrameView()); 1087 widget.isFrameView());
1088 DEFINE_TYPE_CASTS(FrameView, 1088 DEFINE_TYPE_CASTS(FrameView,
1089 ScrollableArea, 1089 ScrollableArea,
1090 scrollableArea, 1090 scrollableArea,
1091 scrollableArea->isFrameView(), 1091 scrollableArea->isFrameView(),
1092 scrollableArea.isFrameView()); 1092 scrollableArea.isFrameView());
1093 1093
1094 } // namespace blink 1094 } // namespace blink
1095 1095
1096 #endif // FrameView_h 1096 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698