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

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

Issue 1300393003: Attempt scroll restoration anytime viewport size changes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix minor bug 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
« no previous file with comments | « no previous file | Source/core/frame/FrameView.cpp » ('j') | Source/core/frame/FrameView.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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 Page* page() const; 97 Page* page() const;
98 98
99 LayoutView* layoutView() const; 99 LayoutView* layoutView() const;
100 100
101 void setCanHaveScrollbars(bool); 101 void setCanHaveScrollbars(bool);
102 102
103 PassRefPtrWillBeRawPtr<Scrollbar> createScrollbar(ScrollbarOrientation); 103 PassRefPtrWillBeRawPtr<Scrollbar> createScrollbar(ScrollbarOrientation);
104 104
105 void setContentsSize(const IntSize&); 105 void setContentsSize(const IntSize&);
106 IntPoint clampOffsetAtScale(const IntPoint& offset, float scale) const;
skobes 2015/08/24 18:50:24 Yay, removing code from FrameView :)
107 106
108 void layout(); 107 void layout();
109 bool didFirstLayout() const; 108 bool didFirstLayout() const;
110 void scheduleRelayout(); 109 void scheduleRelayout();
111 void scheduleRelayoutOfSubtree(LayoutObject*); 110 void scheduleRelayoutOfSubtree(LayoutObject*);
112 bool layoutPending() const; 111 bool layoutPending() const;
113 bool isInPerformLayout() const; 112 bool isInPerformLayout() const;
114 113
115 void clearLayoutSubtreeRoot(const LayoutObject&); 114 void clearLayoutSubtreeRoot(const LayoutObject&);
116 int layoutCount() const { return m_layoutCount; } 115 int layoutCount() const { return m_layoutCount; }
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 static const unsigned visualPixelThreshold = 32 * 32; 863 static const unsigned visualPixelThreshold = 32 * 32;
865 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 864 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
866 setIsVisuallyNonEmpty(); 865 setIsVisuallyNonEmpty();
867 } 866 }
868 867
869 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 868 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
870 869
871 } // namespace blink 870 } // namespace blink
872 871
873 #endif // FrameView_h 872 #endif // FrameView_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/FrameView.cpp » ('j') | Source/core/frame/FrameView.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698