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

Side by Side Diff: Source/core/dom/DocumentStyleSheetCollection.h

Issue 17827004: Include disabled stylesheets in document.styleSheets. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Changed expected result for mac Created 7 years, 5 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 void setUsesRemUnit(bool b) { m_usesRemUnits = b; } 101 void setUsesRemUnit(bool b) { m_usesRemUnits = b; }
102 102
103 void combineCSSFeatureFlags(); 103 void combineCSSFeatureFlags();
104 void resetCSSFeatureFlags(); 104 void resetCSSFeatureFlags();
105 105
106 void reportMemoryUsage(MemoryObjectInfo*) const; 106 void reportMemoryUsage(MemoryObjectInfo*) const;
107 107
108 private: 108 private:
109 DocumentStyleSheetCollection(Document*); 109 DocumentStyleSheetCollection(Document*);
110 110
111 void collectActiveStyleSheets(Vector<RefPtr<StyleSheet> >&); 111 void collectStyleSheets(Vector<RefPtr<StyleSheet> >& styleSheets, Vector<Ref Ptr<CSSStyleSheet> >& activeSheets);
112 enum StyleResolverUpdateType { 112 enum StyleResolverUpdateType {
113 Reconstruct, 113 Reconstruct,
114 Reset, 114 Reset,
115 Additive 115 Additive
116 }; 116 };
117 void analyzeStyleSheetChange(StyleResolverUpdateMode, const Vector<RefPtr<CS SStyleSheet> >& newStylesheets, StyleResolverUpdateType&, bool& requiresFullStyl eRecalc); 117 void analyzeStyleSheetChange(StyleResolverUpdateMode, const Vector<RefPtr<CS SStyleSheet> >& newStylesheets, StyleResolverUpdateType&, bool& requiresFullStyl eRecalc);
118 118
119 Document* m_document; 119 Document* m_document;
120 120
121 Vector<RefPtr<StyleSheet> > m_styleSheetsForStyleSheetList; 121 Vector<RefPtr<StyleSheet> > m_styleSheetsForStyleSheetList;
(...skipping 28 matching lines...) Expand all
150 bool m_usesFirstLetterRules; 150 bool m_usesFirstLetterRules;
151 bool m_usesBeforeAfterRules; 151 bool m_usesBeforeAfterRules;
152 bool m_usesBeforeAfterRulesOverride; 152 bool m_usesBeforeAfterRulesOverride;
153 bool m_usesRemUnits; 153 bool m_usesRemUnits;
154 }; 154 };
155 155
156 } 156 }
157 157
158 #endif 158 #endif
159 159
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698