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: Source/core/frame/FrameView.h

Issue 908453003: Blink changes to record interest rects for http://w3c.github.io/frame-timing/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update LayoutTests for new properties Created 5 years, 7 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 | « Source/core/frame/Frame.cpp ('k') | 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 21 matching lines...) Expand all
32 #include "core/paint/PaintPhase.h" 32 #include "core/paint/PaintPhase.h"
33 #include "platform/RuntimeEnabledFeatures.h" 33 #include "platform/RuntimeEnabledFeatures.h"
34 #include "platform/Widget.h" 34 #include "platform/Widget.h"
35 #include "platform/geometry/IntRect.h" 35 #include "platform/geometry/IntRect.h"
36 #include "platform/geometry/LayoutRect.h" 36 #include "platform/geometry/LayoutRect.h"
37 #include "platform/graphics/Color.h" 37 #include "platform/graphics/Color.h"
38 #include "platform/scroll/ScrollTypes.h" 38 #include "platform/scroll/ScrollTypes.h"
39 #include "platform/scroll/ScrollableArea.h" 39 #include "platform/scroll/ScrollableArea.h"
40 #include "platform/scroll/Scrollbar.h" 40 #include "platform/scroll/Scrollbar.h"
41 #include "public/platform/WebDisplayMode.h" 41 #include "public/platform/WebDisplayMode.h"
42 #include "public/platform/WebRect.h"
42 #include "wtf/Forward.h" 43 #include "wtf/Forward.h"
43 #include "wtf/HashSet.h" 44 #include "wtf/HashSet.h"
44 #include "wtf/OwnPtr.h" 45 #include "wtf/OwnPtr.h"
45 #include "wtf/TemporaryChange.h" 46 #include "wtf/TemporaryChange.h"
46 #include "wtf/text/WTFString.h" 47 #include "wtf/text/WTFString.h"
47 48
48 namespace blink { 49 namespace blink {
49 50
50 class AXObjectCache; 51 class AXObjectCache;
51 class DocumentLifecycle; 52 class DocumentLifecycle;
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 ScrollingCoordinator* scrollingCoordinator(); 719 ScrollingCoordinator* scrollingCoordinator();
719 720
720 void prepareLayoutAnalyzer(); 721 void prepareLayoutAnalyzer();
721 PassRefPtr<TracedValue> analyzerCounters(); 722 PassRefPtr<TracedValue> analyzerCounters();
722 723
723 // LayoutObject for the viewport-defining element (see Document::viewportDef iningElement). 724 // LayoutObject for the viewport-defining element (see Document::viewportDef iningElement).
724 LayoutObject* viewportLayoutObject(); 725 LayoutObject* viewportLayoutObject();
725 726
726 void collectAnnotatedRegions(LayoutObject&, Vector<AnnotatedRegionValue>&); 727 void collectAnnotatedRegions(LayoutObject&, Vector<AnnotatedRegionValue>&);
727 728
729 typedef WTF::HashMap <const GraphicsLayer*, Vector<std::pair<int64_t, WebRec t>>> GraphicsLayerFrameTimingRequests;
730 void updateFrameTimingRequestsIfNeeded();
731 void collectFrameTimingRequests(GraphicsLayerFrameTimingRequests&);
732 void collectFrameTimingRequestsRecursive(GraphicsLayerFrameTimingRequests&);
733
728 LayoutSize m_size; 734 LayoutSize m_size;
729 735
730 typedef HashSet<RefPtr<LayoutEmbeddedObject>> EmbeddedObjectSet; 736 typedef HashSet<RefPtr<LayoutEmbeddedObject>> EmbeddedObjectSet;
731 EmbeddedObjectSet m_partUpdateSet; 737 EmbeddedObjectSet m_partUpdateSet;
732 738
733 // FIXME: These are just "children" of the FrameView and should be RefPtrWil lBeMember<Widget> instead. 739 // FIXME: These are just "children" of the FrameView and should be RefPtrWil lBeMember<Widget> instead.
734 HashSet<RefPtr<LayoutPart>> m_parts; 740 HashSet<RefPtr<LayoutPart>> m_parts;
735 741
736 // The RefPtr cycle between LocalFrame and FrameView is broken 742 // The RefPtr cycle between LocalFrame and FrameView is broken
737 // when a LocalFrame is detached by FrameLoader::detachFromParent(). 743 // when a LocalFrame is detached by FrameLoader::detachFromParent().
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 static const unsigned visualPixelThreshold = 32 * 32; 889 static const unsigned visualPixelThreshold = 32 * 32;
884 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 890 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
885 setIsVisuallyNonEmpty(); 891 setIsVisuallyNonEmpty();
886 } 892 }
887 893
888 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 894 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
889 895
890 } // namespace blink 896 } // namespace blink
891 897
892 #endif // FrameView_h 898 #endif // FrameView_h
OLDNEW
« no previous file with comments | « Source/core/frame/Frame.cpp ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698