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

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

Issue 22572005: Remove all uses of the ASCIILiteral class. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rm it from wtf Created 7 years, 4 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 } 104 }
105 } 105 }
106 106
107 private: 107 private:
108 CSSStyleSheetToInspectorStyleSheet& m_cssStyleSheetToInspectorStyleSheet; 108 CSSStyleSheetToInspectorStyleSheet& m_cssStyleSheetToInspectorStyleSheet;
109 Vector<CSSStyleSheet*>& m_result; 109 Vector<CSSStyleSheet*>& m_result;
110 }; 110 };
111 111
112 static unsigned computePseudoClassMask(JSONArray* pseudoClassArray) 112 static unsigned computePseudoClassMask(JSONArray* pseudoClassArray)
113 { 113 {
114 DEFINE_STATIC_LOCAL(String, active, (ASCIILiteral("active"))); 114 DEFINE_STATIC_LOCAL(String, active, ("active"));
115 DEFINE_STATIC_LOCAL(String, hover, (ASCIILiteral("hover"))); 115 DEFINE_STATIC_LOCAL(String, hover, ("hover"));
116 DEFINE_STATIC_LOCAL(String, focus, (ASCIILiteral("focus"))); 116 DEFINE_STATIC_LOCAL(String, focus, ("focus"));
117 DEFINE_STATIC_LOCAL(String, visited, (ASCIILiteral("visited"))); 117 DEFINE_STATIC_LOCAL(String, visited, ("visited"));
118 if (!pseudoClassArray || !pseudoClassArray->length()) 118 if (!pseudoClassArray || !pseudoClassArray->length())
119 return PseudoNone; 119 return PseudoNone;
120 120
121 unsigned result = PseudoNone; 121 unsigned result = PseudoNone;
122 for (size_t i = 0; i < pseudoClassArray->length(); ++i) { 122 for (size_t i = 0; i < pseudoClassArray->length(); ++i) {
123 RefPtr<JSONValue> pseudoClassValue = pseudoClassArray->get(i); 123 RefPtr<JSONValue> pseudoClassValue = pseudoClassArray->get(i);
124 String pseudoClass; 124 String pseudoClass;
125 bool success = pseudoClassValue->asString(&pseudoClass); 125 bool success = pseudoClassValue->asString(&pseudoClass);
126 if (!success) 126 if (!success)
127 continue; 127 continue;
(...skipping 1578 matching lines...) Expand 10 before | Expand all | Expand 10 after
1706 documentsToChange.add(element->ownerDocument()); 1706 documentsToChange.add(element->ownerDocument());
1707 } 1707 }
1708 1708
1709 m_nodeIdToForcedPseudoState.clear(); 1709 m_nodeIdToForcedPseudoState.clear();
1710 for (HashSet<Document*>::iterator it = documentsToChange.begin(), end = docu mentsToChange.end(); it != end; ++it) 1710 for (HashSet<Document*>::iterator it = documentsToChange.begin(), end = docu mentsToChange.end(); it != end; ++it)
1711 (*it)->setNeedsStyleRecalc(); 1711 (*it)->setNeedsStyleRecalc();
1712 } 1712 }
1713 1713
1714 } // namespace WebCore 1714 } // namespace WebCore
1715 1715
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorApplicationCacheAgent.cpp ('k') | Source/core/inspector/InspectorIndexedDBAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698