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

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

Issue 969973002: Revert Renderer.LayoutMs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« 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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 552
553 DECLARE_VIRTUAL_TRACE(); 553 DECLARE_VIRTUAL_TRACE();
554 void notifyPageThatContentAreaWillPaint() const; 554 void notifyPageThatContentAreaWillPaint() const;
555 FrameView* parentFrameView() const; 555 FrameView* parentFrameView() const;
556 556
557 void calculateOverhangAreasForPainting(IntRect& horizontalOverhangRect, IntR ect& verticalOverhangRect); 557 void calculateOverhangAreasForPainting(IntRect& horizontalOverhangRect, IntR ect& verticalOverhangRect);
558 558
559 // Returns the scrollable area for the frame. 559 // Returns the scrollable area for the frame.
560 ScrollableArea* scrollableArea(); 560 ScrollableArea* scrollableArea();
561 561
562 void lineLayoutTime(double ms);
563
564 int viewportWidth() const; 562 int viewportWidth() const;
565 563
566 protected: 564 protected:
567 // Scroll the content via the compositor. 565 // Scroll the content via the compositor.
568 bool scrollContentsFastPath(const IntSize& scrollDelta); 566 bool scrollContentsFastPath(const IntSize& scrollDelta);
569 567
570 // Scroll the content by invalidating everything. 568 // Scroll the content by invalidating everything.
571 void scrollContentsSlowPath(const IntRect& updateRect); 569 void scrollContentsSlowPath(const IntRect& updateRect);
572 570
573 bool isVerticalDocument() const; 571 bool isVerticalDocument() const;
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 bool m_scrollbarsSuppressed; 828 bool m_scrollbarsSuppressed;
831 829
832 FloatSize m_elasticOverscroll; 830 FloatSize m_elasticOverscroll;
833 831
834 bool m_inUpdateScrollbars; 832 bool m_inUpdateScrollbars;
835 833
836 IntPoint m_panScrollIconPoint; 834 IntPoint m_panScrollIconPoint;
837 bool m_shouldDrawPanScrollIcon; 835 bool m_shouldDrawPanScrollIcon;
838 836
839 bool m_clipsRepaints; 837 bool m_clipsRepaints;
840
841 double m_lineLayoutMs;
842 }; 838 };
843 839
844 inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) 840 inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count)
845 { 841 {
846 if (m_isVisuallyNonEmpty) 842 if (m_isVisuallyNonEmpty)
847 return; 843 return;
848 m_visuallyNonEmptyCharacterCount += count; 844 m_visuallyNonEmptyCharacterCount += count;
849 // Use a threshold value to prevent very small amounts of visible content fr om triggering didFirstVisuallyNonEmptyLayout. 845 // Use a threshold value to prevent very small amounts of visible content fr om triggering didFirstVisuallyNonEmptyLayout.
850 // The first few hundred characters rarely contain the interesting content o f the page. 846 // The first few hundred characters rarely contain the interesting content o f the page.
851 static const unsigned visualCharacterThreshold = 200; 847 static const unsigned visualCharacterThreshold = 200;
(...skipping 10 matching lines...) Expand all
862 static const unsigned visualPixelThreshold = 32 * 32; 858 static const unsigned visualPixelThreshold = 32 * 32;
863 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 859 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
864 setIsVisuallyNonEmpty(); 860 setIsVisuallyNonEmpty();
865 } 861 }
866 862
867 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 863 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
868 864
869 } // namespace blink 865 } // namespace blink
870 866
871 #endif // FrameView_h 867 #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