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

Side by Side Diff: Source/core/css/CSSStyleSheet.h

Issue 196653006: Optimize StyleSheetContents::checkLoaded by keeping track of completed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments. Created 6 years, 9 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 | « no previous file | Source/core/css/CSSStyleSheet.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 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 CSSStyleSheet(PassRefPtrWillBeRawPtr<StyleSheetContents>, CSSImportRule* own erRule); 122 CSSStyleSheet(PassRefPtrWillBeRawPtr<StyleSheetContents>, CSSImportRule* own erRule);
123 CSSStyleSheet(PassRefPtrWillBeRawPtr<StyleSheetContents>, Node* ownerNode, b ool isInlineStylesheet, const TextPosition& startPosition); 123 CSSStyleSheet(PassRefPtrWillBeRawPtr<StyleSheetContents>, Node* ownerNode, b ool isInlineStylesheet, const TextPosition& startPosition);
124 124
125 virtual bool isCSSStyleSheet() const OVERRIDE { return true; } 125 virtual bool isCSSStyleSheet() const OVERRIDE { return true; }
126 virtual String type() const OVERRIDE { return "text/css"; } 126 virtual String type() const OVERRIDE { return "text/css"; }
127 127
128 void reattachChildRuleCSSOMWrappers(); 128 void reattachChildRuleCSSOMWrappers();
129 129
130 bool canAccessRules() const; 130 bool canAccessRules() const;
131 131
132 void setLoadCompleted(bool);
133
132 RefPtrWillBeMember<StyleSheetContents> m_contents; 134 RefPtrWillBeMember<StyleSheetContents> m_contents;
133 bool m_isInlineStylesheet; 135 bool m_isInlineStylesheet;
134 bool m_isDisabled; 136 bool m_isDisabled;
135 String m_title; 137 String m_title;
136 RefPtrWillBeMember<MediaQuerySet> m_mediaQueries; 138 RefPtrWillBeMember<MediaQuerySet> m_mediaQueries;
137 139
138 Node* m_ownerNode; 140 Node* m_ownerNode;
139 RawPtrWillBeMember<CSSRule> m_ownerRule; 141 RawPtrWillBeMember<CSSRule> m_ownerRule;
140 142
141 TextPosition m_startPosition; 143 TextPosition m_startPosition;
(...skipping 21 matching lines...) Expand all
163 { 165 {
164 if (m_styleSheet) 166 if (m_styleSheet)
165 m_styleSheet->didMutateRules(); 167 m_styleSheet->didMutateRules();
166 } 168 }
167 169
168 DEFINE_TYPE_CASTS(CSSStyleSheet, StyleSheet, sheet, sheet->isCSSStyleSheet(), sh eet.isCSSStyleSheet()); 170 DEFINE_TYPE_CASTS(CSSStyleSheet, StyleSheet, sheet, sheet->isCSSStyleSheet(), sh eet.isCSSStyleSheet());
169 171
170 } // namespace 172 } // namespace
171 173
172 #endif 174 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/CSSStyleSheet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698