| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
| 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
| 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
| (...skipping 5778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5789 | 5789 |
| 5790 const WrapperTypeInfo* wrapperType = wrapperTypeInfo(); | 5790 const WrapperTypeInfo* wrapperType = wrapperTypeInfo(); |
| 5791 | 5791 |
| 5792 if (frame() && frame()->script().initializeMainWorld()) { | 5792 if (frame() && frame()->script().initializeMainWorld()) { |
| 5793 // initializeMainWorld may have created a wrapper for the object, retry
from the start. | 5793 // initializeMainWorld may have created a wrapper for the object, retry
from the start. |
| 5794 v8::Local<v8::Object> wrapper = DOMDataStore::getWrapper(this, isolate); | 5794 v8::Local<v8::Object> wrapper = DOMDataStore::getWrapper(this, isolate); |
| 5795 if (!wrapper.IsEmpty()) | 5795 if (!wrapper.IsEmpty()) |
| 5796 return wrapper; | 5796 return wrapper; |
| 5797 } | 5797 } |
| 5798 | 5798 |
| 5799 v8::Local<v8::Object> wrapper = V8DOMWrapper::createWrapper(isolate, creatio
nContext, wrapperType, this); | 5799 v8::Local<v8::Object> wrapper = V8DOMWrapper::createWrapper(isolate, creatio
nContext, wrapperType); |
| 5800 if (UNLIKELY(wrapper.IsEmpty())) | 5800 if (UNLIKELY(wrapper.IsEmpty())) |
| 5801 return wrapper; | 5801 return wrapper; |
| 5802 | 5802 |
| 5803 wrapperType->installConditionallyEnabledProperties(wrapper, isolate); | 5803 wrapperType->installConditionallyEnabledProperties(wrapper, isolate); |
| 5804 return associateWithWrapper(isolate, wrapperType, wrapper); | 5804 return associateWithWrapper(isolate, wrapperType, wrapper); |
| 5805 } | 5805 } |
| 5806 | 5806 |
| 5807 v8::Local<v8::Object> Document::associateWithWrapper(v8::Isolate* isolate, const
WrapperTypeInfo* wrapperType, v8::Local<v8::Object> wrapper) | 5807 v8::Local<v8::Object> Document::associateWithWrapper(v8::Isolate* isolate, const
WrapperTypeInfo* wrapperType, v8::Local<v8::Object> wrapper) |
| 5808 { | 5808 { |
| 5809 wrapper = V8DOMWrapper::associateObjectWithWrapper(isolate, this, wrapperTyp
e, wrapper); | 5809 wrapper = V8DOMWrapper::associateObjectWithWrapper(isolate, this, wrapperTyp
e, wrapper); |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5952 #ifndef NDEBUG | 5952 #ifndef NDEBUG |
| 5953 using namespace blink; | 5953 using namespace blink; |
| 5954 void showLiveDocumentInstances() | 5954 void showLiveDocumentInstances() |
| 5955 { | 5955 { |
| 5956 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 5956 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
| 5957 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5957 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 5958 for (Document* document : set) | 5958 for (Document* document : set) |
| 5959 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 5959 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
| 5960 } | 5960 } |
| 5961 #endif | 5961 #endif |
| OLD | NEW |