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

Side by Side Diff: sky/engine/core/dom/Document.h

Issue 796713002: Turn StyleSharing to 11. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 String markup; 226 String markup;
227 }; 227 };
228 void getTransitionElementData(Vector<TransitionElementData>&); 228 void getTransitionElementData(Vector<TransitionElementData>&);
229 229
230 StyleResolver* styleResolver() const; 230 StyleResolver* styleResolver() const;
231 StyleResolver& ensureStyleResolver() const; 231 StyleResolver& ensureStyleResolver() const;
232 232
233 bool isRenderingReady() const { return haveImportsLoaded(); } 233 bool isRenderingReady() const { return haveImportsLoaded(); }
234 bool isScriptExecutionReady() const { return isRenderingReady(); } 234 bool isScriptExecutionReady() const { return isRenderingReady(); }
235 235
236 // This is a DOM function.
237 StyleSheetList* styleSheets();
238
239 StyleEngine* styleEngine() { return m_styleEngine.get(); } 236 StyleEngine* styleEngine() { return m_styleEngine.get(); }
240 237
241 // Called when one or more stylesheets in the document may have been added, removed, or changed. 238 // Called when one or more stylesheets in the document may have been added, removed, or changed.
242 void styleResolverChanged(); 239 void styleResolverChanged();
243 240
244 // FIXME: Switch all callers of styleResolverChanged to these or better ones and then make them 241 // FIXME: Switch all callers of styleResolverChanged to these or better ones and then make them
245 // do something smarter. 242 // do something smarter.
246 void removedStyleSheet(CSSStyleSheet*); 243 void removedStyleSheet(CSSStyleSheet*);
247 void addedStyleSheet(CSSStyleSheet*) { styleResolverChanged(); } 244 void addedStyleSheet(CSSStyleSheet*) { styleResolverChanged(); }
248 void modifiedStyleSheet(CSSStyleSheet*); 245 void modifiedStyleSheet(CSSStyleSheet*);
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 UserActionElementSet m_userActionElements; 709 UserActionElementSet m_userActionElements;
713 710
714 typedef HashSet<RawPtr<Range> > AttachedRangeSet; 711 typedef HashSet<RawPtr<Range> > AttachedRangeSet;
715 AttachedRangeSet m_ranges; 712 AttachedRangeSet m_ranges;
716 713
717 unsigned short m_listenerTypes; 714 unsigned short m_listenerTypes;
718 715
719 MutationObserverOptions m_mutationObserverTypes; 716 MutationObserverOptions m_mutationObserverTypes;
720 717
721 OwnPtr<StyleEngine> m_styleEngine; 718 OwnPtr<StyleEngine> m_styleEngine;
722 RefPtr<StyleSheetList> m_styleSheetList;
723 719
724 TextLinkColors m_textLinkColors; 720 TextLinkColors m_textLinkColors;
725 721
726 ReadyState m_readyState; 722 ReadyState m_readyState;
727 bool m_isParsing; 723 bool m_isParsing;
728 724
729 bool m_containsValidityStyleRules; 725 bool m_containsValidityStyleRules;
730 726
731 String m_title; 727 String m_title;
732 String m_rawTitle; 728 String m_rawTitle;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 Node* eventTargetNodeForDocument(Document*); 818 Node* eventTargetNodeForDocument(Document*);
823 819
824 } // namespace blink 820 } // namespace blink
825 821
826 #ifndef NDEBUG 822 #ifndef NDEBUG
827 // Outside the WebCore namespace for ease of invocation from gdb. 823 // Outside the WebCore namespace for ease of invocation from gdb.
828 void showLiveDocumentInstances(); 824 void showLiveDocumentInstances();
829 #endif 825 #endif
830 826
831 #endif // SKY_ENGINE_CORE_DOM_DOCUMENT_H_ 827 #endif // SKY_ENGINE_CORE_DOM_DOCUMENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698