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

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

Issue 1295053002: Move dispatchDidFirstVisuallyNonEmptyLayout into WebViewImpl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: simpler. 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
« no previous file with comments | « no previous file | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »
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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 void updateAllLifecyclePhases(); 226 void updateAllLifecyclePhases();
227 227
228 // Computes the style, layout and compositing lifecycle stages if needed. Af ter calling this method, all frames wil lbe in a lifecycle 228 // Computes the style, layout and compositing lifecycle stages if needed. Af ter calling this method, all frames wil lbe in a lifecycle
229 // state >= CompositingClean, and scrolling has been updated. 229 // state >= CompositingClean, and scrolling has been updated.
230 void updateLifecycleToCompositingCleanPlusScrolling(); 230 void updateLifecycleToCompositingCleanPlusScrolling();
231 231
232 bool invalidateViewportConstrainedObjects(); 232 bool invalidateViewportConstrainedObjects();
233 233
234 void incrementVisuallyNonEmptyCharacterCount(unsigned); 234 void incrementVisuallyNonEmptyCharacterCount(unsigned);
235 void incrementVisuallyNonEmptyPixelCount(const IntSize&); 235 void incrementVisuallyNonEmptyPixelCount(const IntSize&);
236 bool isVisuallyNonEmpty() const { return m_isVisuallyNonEmpty; }
236 void setIsVisuallyNonEmpty() { m_isVisuallyNonEmpty = true; } 237 void setIsVisuallyNonEmpty() { m_isVisuallyNonEmpty = true; }
237 void enableAutoSizeMode(const IntSize& minSize, const IntSize& maxSize); 238 void enableAutoSizeMode(const IntSize& minSize, const IntSize& maxSize);
238 void disableAutoSizeMode(); 239 void disableAutoSizeMode();
239 240
240 void forceLayoutForPagination(const FloatSize& pageSize, const FloatSize& or iginalPageSize, float maximumShrinkFactor); 241 void forceLayoutForPagination(const FloatSize& pageSize, const FloatSize& or iginalPageSize, float maximumShrinkFactor);
241 242
242 enum UrlFragmentBehavior { 243 enum UrlFragmentBehavior {
243 UrlFragmentScroll, 244 UrlFragmentScroll,
244 UrlFragmentDontScroll 245 UrlFragmentDontScroll
245 }; 246 };
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 771
771 // In frame coordinates. 772 // In frame coordinates.
772 Vector<IntRect> m_trackedPaintInvalidationRects; 773 Vector<IntRect> m_trackedPaintInvalidationRects;
773 774
774 RefPtrWillBeMember<Node> m_nodeToDraw; 775 RefPtrWillBeMember<Node> m_nodeToDraw;
775 bool m_isPainting; 776 bool m_isPainting;
776 777
777 unsigned m_visuallyNonEmptyCharacterCount; 778 unsigned m_visuallyNonEmptyCharacterCount;
778 unsigned m_visuallyNonEmptyPixelCount; 779 unsigned m_visuallyNonEmptyPixelCount;
779 bool m_isVisuallyNonEmpty; 780 bool m_isVisuallyNonEmpty;
780 bool m_firstVisuallyNonEmptyLayoutCallbackPending;
781 781
782 RefPtrWillBeMember<Node> m_scrollAnchor; 782 RefPtrWillBeMember<Node> m_scrollAnchor;
783 783
784 // layoutObject to hold our custom scroll corner. 784 // layoutObject to hold our custom scroll corner.
785 LayoutScrollbarPart* m_scrollCorner; 785 LayoutScrollbarPart* m_scrollCorner;
786 786
787 OwnPtrWillBeMember<ScrollableAreaSet> m_scrollableAreas; 787 OwnPtrWillBeMember<ScrollableAreaSet> m_scrollableAreas;
788 OwnPtrWillBeMember<ScrollableAreaSet> m_animatingScrollableAreas; 788 OwnPtrWillBeMember<ScrollableAreaSet> m_animatingScrollableAreas;
789 OwnPtr<ResizerAreaSet> m_resizerAreas; 789 OwnPtr<ResizerAreaSet> m_resizerAreas;
790 OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects; 790 OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 static const unsigned visualPixelThreshold = 32 * 32; 864 static const unsigned visualPixelThreshold = 32 * 32;
865 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 865 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
866 setIsVisuallyNonEmpty(); 866 setIsVisuallyNonEmpty();
867 } 867 }
868 868
869 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 869 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
870 870
871 } // namespace blink 871 } // namespace blink
872 872
873 #endif // FrameView_h 873 #endif // FrameView_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698