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

Side by Side Diff: Source/core/inspector/InspectorCSSAgent.h

Issue 311123002: Revert "DevTools: matched styles respect :visited/:link pseudo classes" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 172
173 InspectorStyleSheet* bindStyleSheet(CSSStyleSheet*); 173 InspectorStyleSheet* bindStyleSheet(CSSStyleSheet*);
174 String unbindStyleSheet(InspectorStyleSheet*); 174 String unbindStyleSheet(InspectorStyleSheet*);
175 InspectorStyleSheet* viaInspectorStyleSheet(Document*, bool createIfAbsent); 175 InspectorStyleSheet* viaInspectorStyleSheet(Document*, bool createIfAbsent);
176 InspectorStyleSheet* assertInspectorStyleSheetForId(ErrorString*, const Stri ng&); 176 InspectorStyleSheet* assertInspectorStyleSheetForId(ErrorString*, const Stri ng&);
177 InspectorStyleSheetBase* assertStyleSheetForId(ErrorString*, const String&); 177 InspectorStyleSheetBase* assertStyleSheetForId(ErrorString*, const String&);
178 TypeBuilder::CSS::StyleSheetOrigin::Enum detectOrigin(CSSStyleSheet* pageSty leSheet, Document* ownerDocument); 178 TypeBuilder::CSS::StyleSheetOrigin::Enum detectOrigin(CSSStyleSheet* pageSty leSheet, Document* ownerDocument);
179 bool styleSheetEditInProgress() const { return m_styleSheetsPendingMutation || m_styleDeclarationPendingMutation || m_isSettingStyleSheetText; } 179 bool styleSheetEditInProgress() const { return m_styleSheetsPendingMutation || m_styleDeclarationPendingMutation || m_isSettingStyleSheetText; }
180 180
181 PassRefPtr<TypeBuilder::CSS::CSSRule> buildObjectForRule(CSSStyleRule*); 181 PassRefPtr<TypeBuilder::CSS::CSSRule> buildObjectForRule(CSSStyleRule*);
182 EInsideLink linkStateForElement(Element*); 182 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::RuleMatch> > buildArrayForMa tchedRuleList(CSSRuleList*, Element*);
183 PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::RuleMatch> > buildArrayForMa tchedRuleList(CSSRuleList*, Element*, bool);
184 PassRefPtr<TypeBuilder::CSS::CSSStyle> buildObjectForAttributesStyle(Element *); 183 PassRefPtr<TypeBuilder::CSS::CSSStyle> buildObjectForAttributesStyle(Element *);
185 184
186 // InspectorDOMAgent::DOMListener implementation 185 // InspectorDOMAgent::DOMListener implementation
187 virtual void didRemoveDocument(Document*) OVERRIDE; 186 virtual void didRemoveDocument(Document*) OVERRIDE;
188 virtual void didRemoveDOMNode(Node*) OVERRIDE; 187 virtual void didRemoveDOMNode(Node*) OVERRIDE;
189 virtual void didModifyDOMAttr(Element*) OVERRIDE; 188 virtual void didModifyDOMAttr(Element*) OVERRIDE;
190 189
191 // InspectorStyleSheet::Listener implementation 190 // InspectorStyleSheet::Listener implementation
192 virtual void styleSheetChanged(InspectorStyleSheetBase*) OVERRIDE; 191 virtual void styleSheetChanged(InspectorStyleSheetBase*) OVERRIDE;
193 virtual void willReparseStyleSheet() OVERRIDE; 192 virtual void willReparseStyleSheet() OVERRIDE;
(...skipping 26 matching lines...) Expand all
220 bool m_isSettingStyleSheetText; 219 bool m_isSettingStyleSheetText;
221 220
222 friend class EnableResourceClient; 221 friend class EnableResourceClient;
223 friend class StyleSheetBinder; 222 friend class StyleSheetBinder;
224 }; 223 };
225 224
226 225
227 } // namespace WebCore 226 } // namespace WebCore
228 227
229 #endif // !defined(InspectorCSSAgent_h) 228 #endif // !defined(InspectorCSSAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698