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

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

Issue 287383004: Use arrow operator for iterators instead of asterisk-parentheses-dot (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after
1115 for (Vector<Document*>::iterator it = documents.begin(); it != documents.end (); ++it) 1115 for (Vector<Document*>::iterator it = documents.begin(); it != documents.end (); ++it)
1116 collectAllDocumentStyleSheets(*it, cssStyleSheets); 1116 collectAllDocumentStyleSheets(*it, cssStyleSheets);
1117 for (Vector<CSSStyleSheet*>::iterator it = cssStyleSheets.begin(); it != css StyleSheets.end(); ++it) 1117 for (Vector<CSSStyleSheet*>::iterator it = cssStyleSheets.begin(); it != css StyleSheets.end(); ++it)
1118 result.append(bindStyleSheet(*it)); 1118 result.append(bindStyleSheet(*it));
1119 } 1119 }
1120 1120
1121 void InspectorCSSAgent::collectAllDocumentStyleSheets(Document* document, Vector <CSSStyleSheet*>& result) 1121 void InspectorCSSAgent::collectAllDocumentStyleSheets(Document* document, Vector <CSSStyleSheet*>& result)
1122 { 1122 {
1123 const WillBeHeapVector<RefPtrWillBeMember<StyleSheet> > activeStyleSheets = document->styleEngine()->activeStyleSheetsForInspector(); 1123 const WillBeHeapVector<RefPtrWillBeMember<StyleSheet> > activeStyleSheets = document->styleEngine()->activeStyleSheetsForInspector();
1124 for (WillBeHeapVector<RefPtrWillBeMember<StyleSheet> >::const_iterator it = activeStyleSheets.begin(); it != activeStyleSheets.end(); ++it) { 1124 for (WillBeHeapVector<RefPtrWillBeMember<StyleSheet> >::const_iterator it = activeStyleSheets.begin(); it != activeStyleSheets.end(); ++it) {
1125 StyleSheet* styleSheet = (*it).get(); 1125 StyleSheet* styleSheet = it->get();
1126 if (styleSheet->isCSSStyleSheet()) 1126 if (styleSheet->isCSSStyleSheet())
1127 collectStyleSheets(toCSSStyleSheet(styleSheet), result); 1127 collectStyleSheets(toCSSStyleSheet(styleSheet), result);
1128 } 1128 }
1129 } 1129 }
1130 1130
1131 void InspectorCSSAgent::collectStyleSheets(CSSStyleSheet* styleSheet, Vector<CSS StyleSheet*>& result) 1131 void InspectorCSSAgent::collectStyleSheets(CSSStyleSheet* styleSheet, Vector<CSS StyleSheet*>& result)
1132 { 1132 {
1133 result.append(styleSheet); 1133 result.append(styleSheet);
1134 for (unsigned i = 0, size = styleSheet->length(); i < size; ++i) { 1134 for (unsigned i = 0, size = styleSheet->length(); i < size; ++i) {
1135 CSSRule* rule = styleSheet->item(i); 1135 CSSRule* rule = styleSheet->item(i);
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
1387 documentsToChange.add(element->ownerDocument()); 1387 documentsToChange.add(element->ownerDocument());
1388 } 1388 }
1389 1389
1390 m_nodeIdToForcedPseudoState.clear(); 1390 m_nodeIdToForcedPseudoState.clear();
1391 for (HashSet<Document*>::iterator it = documentsToChange.begin(), end = docu mentsToChange.end(); it != end; ++it) 1391 for (HashSet<Document*>::iterator it = documentsToChange.begin(), end = docu mentsToChange.end(); it != end; ++it)
1392 (*it)->setNeedsStyleRecalc(SubtreeStyleChange); 1392 (*it)->setNeedsStyleRecalc(SubtreeStyleChange);
1393 } 1393 }
1394 1394
1395 } // namespace WebCore 1395 } // namespace WebCore
1396 1396
OLDNEW
« no previous file with comments | « Source/core/html/forms/FormController.cpp ('k') | Source/core/page/scrolling/ScrollingCoordinator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698