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

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

Issue 23516012: Rename StyleSheetCollections to StyleEngine. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/resolver/StyleResolver.cpp ('k') | Source/core/dom/Document.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) 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 class ScriptRunner; 139 class ScriptRunner;
140 class ScriptableDocumentParser; 140 class ScriptableDocumentParser;
141 class ScriptedAnimationController; 141 class ScriptedAnimationController;
142 class SecurityOrigin; 142 class SecurityOrigin;
143 class SegmentedString; 143 class SegmentedString;
144 class SelectorQueryCache; 144 class SelectorQueryCache;
145 class SerializedScriptValue; 145 class SerializedScriptValue;
146 class Settings; 146 class Settings;
147 class StyleResolver; 147 class StyleResolver;
148 class StyleSheet; 148 class StyleSheet;
149 class StyleSheetCollections; 149 class StyleEngine;
150 class StyleSheetContents; 150 class StyleSheetContents;
151 class StyleSheetList; 151 class StyleSheetList;
152 class Text; 152 class Text;
153 class TextAutosizer; 153 class TextAutosizer;
154 class TextResourceDecoder; 154 class TextResourceDecoder;
155 class Touch; 155 class Touch;
156 class TouchList; 156 class TouchList;
157 class TransformSource; 157 class TransformSource;
158 class TreeWalker; 158 class TreeWalker;
159 class VisitedLinkState; 159 class VisitedLinkState;
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 } 434 }
435 435
436 void notifyRemovePendingSheetIfNeeded(); 436 void notifyRemovePendingSheetIfNeeded();
437 437
438 bool haveStylesheetsLoaded() const; 438 bool haveStylesheetsLoaded() const;
439 bool haveStylesheetsAndImportsLoaded() const { return haveImportsLoaded() && haveStylesheetsLoaded(); } 439 bool haveStylesheetsAndImportsLoaded() const { return haveImportsLoaded() && haveStylesheetsLoaded(); }
440 440
441 // This is a DOM function. 441 // This is a DOM function.
442 StyleSheetList* styleSheets(); 442 StyleSheetList* styleSheets();
443 443
444 StyleSheetCollections* styleSheetCollections() { return m_styleSheetCollecti ons.get(); } 444 StyleEngine* styleEngine() { return m_StyleEngine.get(); }
445 445
446 bool gotoAnchorNeededAfterStylesheetsLoad() { return m_gotoAnchorNeededAfter StylesheetsLoad; } 446 bool gotoAnchorNeededAfterStylesheetsLoad() { return m_gotoAnchorNeededAfter StylesheetsLoad; }
447 void setGotoAnchorNeededAfterStylesheetsLoad(bool b) { m_gotoAnchorNeededAft erStylesheetsLoad = b; } 447 void setGotoAnchorNeededAfterStylesheetsLoad(bool b) { m_gotoAnchorNeededAft erStylesheetsLoad = b; }
448 448
449 // Called when one or more stylesheets in the document may have been added, removed, or changed. 449 // Called when one or more stylesheets in the document may have been added, removed, or changed.
450 void styleResolverChanged(StyleResolverUpdateType, StyleResolverUpdateMode = FullStyleUpdate); 450 void styleResolverChanged(StyleResolverUpdateType, StyleResolverUpdateMode = FullStyleUpdate);
451 451
452 // FIXME: Switch all callers of styleResolverChanged to these or better ones and then make them 452 // FIXME: Switch all callers of styleResolverChanged to these or better ones and then make them
453 // do something smarter. 453 // do something smarter.
454 void removedStyleSheet(StyleSheet*, StyleResolverUpdateType type = RecalcSty leDeferred) { styleResolverChanged(type); } 454 void removedStyleSheet(StyleSheet*, StyleResolverUpdateType type = RecalcSty leDeferred) { styleResolverChanged(type); }
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
1222 uint64_t m_domTreeVersion; 1222 uint64_t m_domTreeVersion;
1223 static uint64_t s_globalTreeVersion; 1223 static uint64_t s_globalTreeVersion;
1224 1224
1225 HashSet<NodeIterator*> m_nodeIterators; 1225 HashSet<NodeIterator*> m_nodeIterators;
1226 HashSet<Range*> m_ranges; 1226 HashSet<Range*> m_ranges;
1227 1227
1228 unsigned short m_listenerTypes; 1228 unsigned short m_listenerTypes;
1229 1229
1230 MutationObserverOptions m_mutationObserverTypes; 1230 MutationObserverOptions m_mutationObserverTypes;
1231 1231
1232 OwnPtr<StyleSheetCollections> m_styleSheetCollections; 1232 OwnPtr<StyleEngine> m_StyleEngine;
1233 RefPtr<StyleSheetList> m_styleSheetList; 1233 RefPtr<StyleSheetList> m_styleSheetList;
1234 1234
1235 OwnPtr<FormController> m_formController; 1235 OwnPtr<FormController> m_formController;
1236 1236
1237 TextLinkColors m_textLinkColors; 1237 TextLinkColors m_textLinkColors;
1238 OwnPtr<VisitedLinkState> m_visitedLinkState; 1238 OwnPtr<VisitedLinkState> m_visitedLinkState;
1239 1239
1240 bool m_loadingSheet; 1240 bool m_loadingSheet;
1241 bool m_visuallyOrdered; 1241 bool m_visuallyOrdered;
1242 ReadyState m_readyState; 1242 ReadyState m_readyState;
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
1444 inline bool Node::isDocumentNode() const 1444 inline bool Node::isDocumentNode() const
1445 { 1445 {
1446 return this == documentInternal(); 1446 return this == documentInternal();
1447 } 1447 }
1448 1448
1449 Node* eventTargetNodeForDocument(Document*); 1449 Node* eventTargetNodeForDocument(Document*);
1450 1450
1451 } // namespace WebCore 1451 } // namespace WebCore
1452 1452
1453 #endif // Document_h 1453 #endif // Document_h
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleResolver.cpp ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698