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

Unified Diff: Source/WebCore/inspector/front-end/AuditRules.js

Issue 6893091: Merge 84909 - 2011-04-26 Pavel Feldman <pfeldman@google.com> Web Inspector: New Style is... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/WebCore/inspector/front-end/CSSStyleModel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/inspector/front-end/AuditRules.js
===================================================================
--- Source/WebCore/inspector/front-end/AuditRules.js (revision 85172)
+++ Source/WebCore/inspector/front-end/AuditRules.js (working copy)
@@ -763,6 +763,11 @@
function externalStylesheetsReceived(root, inlineStyleNodeIds, nodeIds)
{
+ if (!nodeIds) {
+ callback(null);
+ return;
+ }
+
var externalStylesheetNodeIds = nodeIds;
var result = null;
if (inlineStyleNodeIds.length || externalStylesheetNodeIds.length) {
@@ -781,6 +786,11 @@
function inlineStylesReceived(root, nodeIds)
{
+ if (!nodeIds) {
+ callback(null);
+ return;
+ }
+
WebInspector.domAgent.querySelectorAll(root.id, "body link[rel~='stylesheet'][href]", externalStylesheetsReceived.bind(null, root, nodeIds));
}
@@ -825,6 +835,11 @@
function cssBeforeInlineReceived(lateStyleIds, nodeIds)
{
+ if (!nodeIds) {
+ callback(null);
+ return;
+ }
+
var cssBeforeInlineCount = nodeIds.length;
var result = null;
if (lateStyleIds.length || cssBeforeInlineCount) {
@@ -842,6 +857,11 @@
function lateStylesReceived(root, nodeIds)
{
+ if (!nodeIds) {
+ callback(null);
+ return;
+ }
+
WebInspector.domAgent.querySelectorAll(root.id, "head link[rel~='stylesheet'][href] ~ script:not([src])", cssBeforeInlineReceived.bind(null, nodeIds));
}
« no previous file with comments | « no previous file | Source/WebCore/inspector/front-end/CSSStyleModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698