Web Inspector: TypeError: Cannot read property 'styleSheetId' of undefined in tests.
authorpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 7 Oct 2011 16:33:00 +0000 (16:33 +0000)
committerpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 7 Oct 2011 16:33:00 +0000 (16:33 +0000)
https://bugs.webkit.org/show_bug.cgi?id=69634

Reviewed by Yury Semikhatsky.

* inspector/front-end/CSSStyleModel.js:
(WebInspector.CSSStyleDeclaration.prototype.insertPropertyAt):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@96945 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/inspector/front-end/CSSStyleModel.js

index 90a431b..0e9d72a 100644 (file)
@@ -1,3 +1,13 @@
+2011-10-07  Pavel Feldman  <pfeldman@google.com>
+
+        Web Inspector: TypeError: Cannot read property 'styleSheetId' of undefined in tests.
+        https://bugs.webkit.org/show_bug.cgi?id=69634
+
+        Reviewed by Yury Semikhatsky.
+
+        * inspector/front-end/CSSStyleModel.js:
+        (WebInspector.CSSStyleDeclaration.prototype.insertPropertyAt):
+
 2011-10-06  Andreas Kling  <kling@webkit.org>
 
         Shrink BorderValue.
index df313d2..01a8741 100644 (file)
@@ -407,7 +407,7 @@ WebInspector.CSSStyleDeclaration.prototype = {
             }
         }
 
-        CSSAgent.setPropertyText(this.id, index, name + ": " + value + ";", false, callback.bind(null, userCallback));
+        CSSAgent.setPropertyText(this.id, index, name + ": " + value + ";", false, callback.bind(this, userCallback));
     },
 
     appendProperty: function(name, value, userCallback)