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

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

Issue 2413693002: Rename DOM.getLayoutTreeNodes to CSS.getLayoutTreeAndStyles (Closed)
Patch Set: Created 4 years, 2 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
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 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after
1325 InspectorStyleSheetBase* inspectorStyleSheet = 1325 InspectorStyleSheetBase* inspectorStyleSheet =
1326 assertStyleSheetForId(errorString, edit->getStyleSheetId()); 1326 assertStyleSheetForId(errorString, edit->getStyleSheetId());
1327 if (!inspectorStyleSheet) { 1327 if (!inspectorStyleSheet) {
1328 *errorString = 1328 *errorString =
1329 String::format("StyleSheet not found for edit #%d of %d", i + 1, n); 1329 String::format("StyleSheet not found for edit #%d of %d", i + 1, n);
1330 return false; 1330 return false;
1331 } 1331 }
1332 1332
1333 SourceRange range; 1333 SourceRange range;
1334 if (!jsonRangeToSourceRange(errorString, inspectorStyleSheet, 1334 if (!jsonRangeToSourceRange(errorString, inspectorStyleSheet,
1335 edit->getRange(), &range)) 1335 edit->getRange().get(), &range))
1336 return false; 1336 return false;
1337 1337
1338 if (inspectorStyleSheet->isInlineStyle()) { 1338 if (inspectorStyleSheet->isInlineStyle()) {
1339 InspectorStyleSheetForInlineStyle* inlineStyleSheet = 1339 InspectorStyleSheetForInlineStyle* inlineStyleSheet =
1340 static_cast<InspectorStyleSheetForInlineStyle*>(inspectorStyleSheet); 1340 static_cast<InspectorStyleSheetForInlineStyle*>(inspectorStyleSheet);
1341 SetElementStyleAction* action = 1341 SetElementStyleAction* action =
1342 new SetElementStyleAction(inlineStyleSheet, edit->getText()); 1342 new SetElementStyleAction(inlineStyleSheet, edit->getText());
1343 actions->append(action); 1343 actions->append(action);
1344 } else { 1344 } else {
1345 ModifyRuleAction* action = new ModifyRuleAction( 1345 ModifyRuleAction* action = new ModifyRuleAction(
(...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after
2300 visitor->trace(m_idToInspectorStyleSheetForInlineStyle); 2300 visitor->trace(m_idToInspectorStyleSheetForInlineStyle);
2301 visitor->trace(m_cssStyleSheetToInspectorStyleSheet); 2301 visitor->trace(m_cssStyleSheetToInspectorStyleSheet);
2302 visitor->trace(m_documentToCSSStyleSheets); 2302 visitor->trace(m_documentToCSSStyleSheets);
2303 visitor->trace(m_invalidatedDocuments); 2303 visitor->trace(m_invalidatedDocuments);
2304 visitor->trace(m_nodeToInspectorStyleSheet); 2304 visitor->trace(m_nodeToInspectorStyleSheet);
2305 visitor->trace(m_inspectorUserAgentStyleSheet); 2305 visitor->trace(m_inspectorUserAgentStyleSheet);
2306 InspectorBaseAgent::trace(visitor); 2306 InspectorBaseAgent::trace(visitor);
2307 } 2307 }
2308 2308
2309 } // namespace blink 2309 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698