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

Side by Side Diff: third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 Reconstruct, 65 Reconstruct,
66 Reset, 66 Reset,
67 Additive 67 Additive
68 }; 68 };
69 69
70 class StyleSheetChange { 70 class StyleSheetChange {
71 STACK_ALLOCATED(); 71 STACK_ALLOCATED();
72 public: 72 public:
73 StyleResolverUpdateType styleResolverUpdateType; 73 StyleResolverUpdateType styleResolverUpdateType;
74 bool requiresFullStyleRecalc; 74 bool requiresFullStyleRecalc;
75 WillBeHeapVector<RawPtrWillBeMember<const StyleRuleFontFace>> fontFaceRu lesToRemove; 75 HeapVector<Member<const StyleRuleFontFace>> fontFaceRulesToRemove;
76 76
77 StyleSheetChange() 77 StyleSheetChange()
78 : styleResolverUpdateType(Reconstruct) 78 : styleResolverUpdateType(Reconstruct)
79 , requiresFullStyleRecalc(true) { } 79 , requiresFullStyleRecalc(true) { }
80 }; 80 };
81 81
82 void analyzeStyleSheetChange(StyleResolverUpdateMode, const StyleSheetCollec tion&, StyleSheetChange&); 82 void analyzeStyleSheetChange(StyleResolverUpdateMode, const StyleSheetCollec tion&, StyleSheetChange&);
83 83
84 private: 84 private:
85 static StyleResolverUpdateType compareStyleSheets(const WillBeHeapVector<Ref PtrWillBeMember<CSSStyleSheet>>& oldStyleSheets, const WillBeHeapVector<RefPtrWi llBeMember<CSSStyleSheet>>& newStylesheets, WillBeHeapVector<RawPtrWillBeMember< StyleSheetContents>>& addedSheets); 85 static StyleResolverUpdateType compareStyleSheets(const HeapVector<Member<CS SStyleSheet>>& oldStyleSheets, const HeapVector<Member<CSSStyleSheet>>& newStyle sheets, HeapVector<Member<StyleSheetContents>>& addedSheets);
86 bool activeLoadingStyleSheetLoaded(const WillBeHeapVector<RefPtrWillBeMember <CSSStyleSheet>>& newStyleSheets); 86 bool activeLoadingStyleSheetLoaded(const HeapVector<Member<CSSStyleSheet>>& newStyleSheets);
87 87
88 friend class TreeScopeStyleSheetCollectionTest; 88 friend class TreeScopeStyleSheetCollectionTest;
89 89
90 protected: 90 protected:
91 RawPtrWillBeMember<TreeScope> m_treeScope; 91 Member<TreeScope> m_treeScope;
92 bool m_hadActiveLoadingStylesheet; 92 bool m_hadActiveLoadingStylesheet;
93 93
94 DocumentOrderedList m_styleSheetCandidateNodes; 94 DocumentOrderedList m_styleSheetCandidateNodes;
95 }; 95 };
96 96
97 } // namespace blink 97 } // namespace blink
98 98
99 #endif 99 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698