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

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

Issue 1085033003: Introduce InspectorIdentifiers<> and use it to assign/lookup LocalFrame and DocumentLoader (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removed explicit instantiation, we seem to be doing fine without it Created 5 years, 8 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 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after
1295 } 1295 }
1296 } 1296 }
1297 } 1297 }
1298 1298
1299 InspectorStyleSheet* InspectorCSSAgent::bindStyleSheet(CSSStyleSheet* styleSheet ) 1299 InspectorStyleSheet* InspectorCSSAgent::bindStyleSheet(CSSStyleSheet* styleSheet )
1300 { 1300 {
1301 RefPtrWillBeRawPtr<InspectorStyleSheet> inspectorStyleSheet = m_cssStyleShee tToInspectorStyleSheet.get(styleSheet); 1301 RefPtrWillBeRawPtr<InspectorStyleSheet> inspectorStyleSheet = m_cssStyleShee tToInspectorStyleSheet.get(styleSheet);
1302 if (!inspectorStyleSheet) { 1302 if (!inspectorStyleSheet) {
1303 String id = String::number(m_lastStyleSheetId++); 1303 String id = String::number(m_lastStyleSheetId++);
1304 Document* document = styleSheet->ownerDocument(); 1304 Document* document = styleSheet->ownerDocument();
1305 inspectorStyleSheet = InspectorStyleSheet::create(m_pageAgent, m_resourc eAgent, id, styleSheet, detectOrigin(styleSheet, document), InspectorDOMAgent::d ocumentURLString(document), this); 1305 inspectorStyleSheet = InspectorStyleSheet::create(m_resourceAgent, id, s tyleSheet, detectOrigin(styleSheet, document), InspectorDOMAgent::documentURLStr ing(document), this);
1306 m_idToInspectorStyleSheet.set(id, inspectorStyleSheet); 1306 m_idToInspectorStyleSheet.set(id, inspectorStyleSheet);
1307 m_cssStyleSheetToInspectorStyleSheet.set(styleSheet, inspectorStyleSheet ); 1307 m_cssStyleSheetToInspectorStyleSheet.set(styleSheet, inspectorStyleSheet );
1308 if (m_creatingViaInspectorStyleSheet) 1308 if (m_creatingViaInspectorStyleSheet)
1309 m_documentToViaInspectorStyleSheet.add(document, inspectorStyleSheet ); 1309 m_documentToViaInspectorStyleSheet.add(document, inspectorStyleSheet );
1310 } 1310 }
1311 return inspectorStyleSheet.get(); 1311 return inspectorStyleSheet.get();
1312 } 1312 }
1313 1313
1314 String InspectorCSSAgent::unbindStyleSheet(InspectorStyleSheet* inspectorStyleSh eet) 1314 String InspectorCSSAgent::unbindStyleSheet(InspectorStyleSheet* inspectorStyleSh eet)
1315 { 1315 {
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
1562 visitor->trace(m_invalidatedDocuments); 1562 visitor->trace(m_invalidatedDocuments);
1563 visitor->trace(m_nodeToInspectorStyleSheet); 1563 visitor->trace(m_nodeToInspectorStyleSheet);
1564 visitor->trace(m_documentToViaInspectorStyleSheet); 1564 visitor->trace(m_documentToViaInspectorStyleSheet);
1565 #endif 1565 #endif
1566 visitor->trace(m_inspectorUserAgentStyleSheet); 1566 visitor->trace(m_inspectorUserAgentStyleSheet);
1567 InspectorBaseAgent::trace(visitor); 1567 InspectorBaseAgent::trace(visitor);
1568 } 1568 }
1569 1569
1570 } // namespace blink 1570 } // namespace blink
1571 1571
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698