Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / css / CSSStyleSheet.cpp
index f3b5367..6add0d9 100644 (file)
@@ -21,9 +21,9 @@
 #include "config.h"
 #include "core/css/CSSStyleSheet.h"
 
-#include "bindings/v8/ExceptionState.h"
-#include "bindings/v8/V8Binding.h"
-#include "bindings/v8/V8PerIsolateData.h"
+#include "bindings/core/v8/ExceptionState.h"
+#include "bindings/core/v8/V8Binding.h"
+#include "bindings/core/v8/V8PerIsolateData.h"
 #include "core/HTMLNames.h"
 #include "core/SVGNames.h"
 #include "core/css/CSSCharsetRule.h"
@@ -43,7 +43,7 @@
 #include "platform/weborigin/SecurityOrigin.h"
 #include "wtf/text/StringBuilder.h"
 
-namespace WebCore {
+namespace blink {
 
 class StyleSheetCSSRuleList FINAL : public CSSRuleList {
 public:
@@ -74,7 +74,7 @@ private:
     RawPtrWillBeMember<CSSStyleSheet> m_styleSheet;
 };
 
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
 static bool isAcceptableCSSStyleSheetParent(Node* parentNode)
 {
     // Only these nodes can be parents of StyleSheets, and they need to call
@@ -123,6 +123,7 @@ CSSStyleSheet::CSSStyleSheet(PassRefPtrWillBeRawPtr<StyleSheetContents> contents
     , m_startPosition(TextPosition::minimumPosition())
     , m_loadCompleted(false)
 {
+    ScriptWrappable::init(this);
     m_contents->registerClient(this);
 }
 
@@ -135,6 +136,7 @@ CSSStyleSheet::CSSStyleSheet(PassRefPtrWillBeRawPtr<StyleSheetContents> contents
     , m_startPosition(startPosition)
     , m_loadCompleted(false)
 {
+    ScriptWrappable::init(this);
     ASSERT(isAcceptableCSSStyleSheetParent(ownerNode));
     m_contents->registerClient(this);
 }