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

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

Issue 2039363003: FirstMeaningfulPaint UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ready for review Created 4 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
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 14 matching lines...) Expand all
25 #ifndef FrameView_h 25 #ifndef FrameView_h
26 #define FrameView_h 26 #define FrameView_h
27 27
28 #include "core/CoreExport.h" 28 #include "core/CoreExport.h"
29 #include "core/dom/DocumentLifecycle.h" 29 #include "core/dom/DocumentLifecycle.h"
30 #include "core/frame/FrameViewAutoSizeInfo.h" 30 #include "core/frame/FrameViewAutoSizeInfo.h"
31 #include "core/frame/LayoutSubtreeRootList.h" 31 #include "core/frame/LayoutSubtreeRootList.h"
32 #include "core/frame/RootFrameViewport.h" 32 #include "core/frame/RootFrameViewport.h"
33 #include "core/layout/ScrollAnchor.h" 33 #include "core/layout/ScrollAnchor.h"
34 #include "core/layout/api/LayoutViewItem.h" 34 #include "core/layout/api/LayoutViewItem.h"
35 #include "core/paint/FirstMeaningfulPaintDetector.h"
35 #include "core/paint/PaintInvalidationCapableScrollableArea.h" 36 #include "core/paint/PaintInvalidationCapableScrollableArea.h"
36 #include "core/paint/PaintPhase.h" 37 #include "core/paint/PaintPhase.h"
37 #include "platform/RuntimeEnabledFeatures.h" 38 #include "platform/RuntimeEnabledFeatures.h"
38 #include "platform/Widget.h" 39 #include "platform/Widget.h"
39 #include "platform/geometry/IntRect.h" 40 #include "platform/geometry/IntRect.h"
40 #include "platform/geometry/LayoutRect.h" 41 #include "platform/geometry/LayoutRect.h"
41 #include "platform/graphics/Color.h" 42 #include "platform/graphics/Color.h"
42 #include "platform/graphics/paint/ClipPaintPropertyNode.h" 43 #include "platform/graphics/paint/ClipPaintPropertyNode.h"
43 #include "platform/graphics/paint/EffectPaintPropertyNode.h" 44 #include "platform/graphics/paint/EffectPaintPropertyNode.h"
44 #include "platform/graphics/paint/TransformPaintPropertyNode.h" 45 #include "platform/graphics/paint/TransformPaintPropertyNode.h"
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 void updateLifecycleToCompositingCleanPlusScrolling(); 256 void updateLifecycleToCompositingCleanPlusScrolling();
256 257
257 // Computes only the style and layout lifecycle stages. 258 // Computes only the style and layout lifecycle stages.
258 // After calling this method, all frames will be in a lifecycle state >= Lay outClean (unless throttling is allowed). 259 // After calling this method, all frames will be in a lifecycle state >= Lay outClean (unless throttling is allowed).
259 void updateLifecycleToLayoutClean(); 260 void updateLifecycleToLayoutClean();
260 261
261 void scheduleVisualUpdateForPaintInvalidationIfNeeded(); 262 void scheduleVisualUpdateForPaintInvalidationIfNeeded();
262 263
263 bool invalidateViewportConstrainedObjects(); 264 bool invalidateViewportConstrainedObjects();
264 265
266 void incrementLayoutObjectCount() { m_layoutObjectCounter.increment(); }
265 void incrementVisuallyNonEmptyCharacterCount(unsigned); 267 void incrementVisuallyNonEmptyCharacterCount(unsigned);
266 void incrementVisuallyNonEmptyPixelCount(const IntSize&); 268 void incrementVisuallyNonEmptyPixelCount(const IntSize&);
267 bool isVisuallyNonEmpty() const { return m_isVisuallyNonEmpty; } 269 bool isVisuallyNonEmpty() const { return m_isVisuallyNonEmpty; }
268 void setIsVisuallyNonEmpty() { m_isVisuallyNonEmpty = true; } 270 void setIsVisuallyNonEmpty() { m_isVisuallyNonEmpty = true; }
269 void enableAutoSizeMode(const IntSize& minSize, const IntSize& maxSize); 271 void enableAutoSizeMode(const IntSize& minSize, const IntSize& maxSize);
270 void disableAutoSizeMode(); 272 void disableAutoSizeMode();
271 273
272 void forceLayoutForPagination(const FloatSize& pageSize, const FloatSize& or iginalPageSize, float maximumShrinkFactor); 274 void forceLayoutForPagination(const FloatSize& pageSize, const FloatSize& or iginalPageSize, float maximumShrinkFactor);
273 275
274 enum UrlFragmentBehavior { 276 enum UrlFragmentBehavior {
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 float m_lastZoomFactor; 826 float m_lastZoomFactor;
825 827
826 AtomicString m_mediaType; 828 AtomicString m_mediaType;
827 AtomicString m_mediaTypeWhenNotPrinting; 829 AtomicString m_mediaTypeWhenNotPrinting;
828 830
829 bool m_safeToPropagateScrollToParent; 831 bool m_safeToPropagateScrollToParent;
830 832
831 unsigned m_visuallyNonEmptyCharacterCount; 833 unsigned m_visuallyNonEmptyCharacterCount;
832 unsigned m_visuallyNonEmptyPixelCount; 834 unsigned m_visuallyNonEmptyPixelCount;
833 bool m_isVisuallyNonEmpty; 835 bool m_isVisuallyNonEmpty;
836 FirstMeaningfulPaintDetector::LayoutObjectCounter m_layoutObjectCounter;
834 837
835 Member<Node> m_fragmentAnchor; 838 Member<Node> m_fragmentAnchor;
836 839
837 // layoutObject to hold our custom scroll corner. 840 // layoutObject to hold our custom scroll corner.
838 LayoutScrollbarPart* m_scrollCorner; 841 LayoutScrollbarPart* m_scrollCorner;
839 842
840 Member<ScrollableAreaSet> m_scrollableAreas; 843 Member<ScrollableAreaSet> m_scrollableAreas;
841 Member<ScrollableAreaSet> m_animatingScrollableAreas; 844 Member<ScrollableAreaSet> m_animatingScrollableAreas;
842 std::unique_ptr<ResizerAreaSet> m_resizerAreas; 845 std::unique_ptr<ResizerAreaSet> m_resizerAreas;
843 std::unique_ptr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects; 846 std::unique_ptr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 967 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
965 setIsVisuallyNonEmpty(); 968 setIsVisuallyNonEmpty();
966 } 969 }
967 970
968 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 971 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
969 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF rameView(), scrollableArea.isFrameView()); 972 DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isF rameView(), scrollableArea.isFrameView());
970 973
971 } // namespace blink 974 } // namespace blink
972 975
973 #endif // FrameView_h 976 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698