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

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

Issue 2706193003: FrameView: Remove redundant tree walk when unthrottling display:none frames (Closed)
Patch Set: Enums ftw Created 3 years, 10 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 | third_party/WebKit/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 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
8 reserved. 8 reserved.
9 9
10 This library is free software; you can redistribute it and/or 10 This library is free software; you can redistribute it and/or
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after
1021 LayoutObject* viewportLayoutObject() const; 1021 LayoutObject* viewportLayoutObject() const;
1022 1022
1023 void collectAnnotatedRegions(LayoutObject&, 1023 void collectAnnotatedRegions(LayoutObject&,
1024 Vector<AnnotatedRegionValue>&) const; 1024 Vector<AnnotatedRegionValue>&) const;
1025 1025
1026 template <typename Function> 1026 template <typename Function>
1027 void forAllNonThrottledFrameViews(const Function&); 1027 void forAllNonThrottledFrameViews(const Function&);
1028 1028
1029 void updateViewportIntersectionsForSubtree( 1029 void updateViewportIntersectionsForSubtree(
1030 DocumentLifecycle::LifecycleState targetState); 1030 DocumentLifecycle::LifecycleState targetState);
1031 void updateRenderThrottlingStatus(bool hidden, 1031
1032 bool subtreeThrottled, 1032 enum ForceThrottlingInvalidationBehavior {
1033 bool forceThrottlingInvalidation = false); 1033 DontForceThrottlingInvalidation,
1034 ForceThrottlingInvalidation
1035 };
1036 enum NotifyChildrenBehavior { DontNotifyChildren, NotifyChildren };
1037 void updateRenderThrottlingStatus(
1038 bool hidden,
1039 bool subtreeThrottled,
1040 ForceThrottlingInvalidationBehavior = DontForceThrottlingInvalidation,
1041 NotifyChildrenBehavior = NotifyChildren);
1034 void notifyResizeObservers(); 1042 void notifyResizeObservers();
1035 1043
1036 // PaintInvalidationCapableScrollableArea 1044 // PaintInvalidationCapableScrollableArea
1037 LayoutScrollbarPart* resizer() const override { return nullptr; } 1045 LayoutScrollbarPart* resizer() const override { return nullptr; }
1038 1046
1039 bool checkLayoutInvalidationIsAllowed() const; 1047 bool checkLayoutInvalidationIsAllowed() const;
1040 1048
1041 PaintController* paintController() { return m_paintController.get(); } 1049 PaintController* paintController() { return m_paintController.get(); }
1042 1050
1043 LayoutSize m_size; 1051 LayoutSize m_size;
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1251 widget.isFrameView()); 1259 widget.isFrameView());
1252 DEFINE_TYPE_CASTS(FrameView, 1260 DEFINE_TYPE_CASTS(FrameView,
1253 ScrollableArea, 1261 ScrollableArea,
1254 scrollableArea, 1262 scrollableArea,
1255 scrollableArea->isFrameView(), 1263 scrollableArea->isFrameView(),
1256 scrollableArea.isFrameView()); 1264 scrollableArea.isFrameView());
1257 1265
1258 } // namespace blink 1266 } // namespace blink
1259 1267
1260 #endif // FrameView_h 1268 #endif // FrameView_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698