| 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 3123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3134 { | 3134 { |
| 3135 Page* page = this->page(); | 3135 Page* page = this->page(); |
| 3136 if (!page) | 3136 if (!page) |
| 3137 return false; | 3137 return false; |
| 3138 if (!page->focusController().isActive() || !page->focusController().isFocuse
d()) | 3138 if (!page->focusController().isActive() || !page->focusController().isFocuse
d()) |
| 3139 return false; | 3139 return false; |
| 3140 Frame* focusedFrame = page->focusController().focusedFrame(); | 3140 Frame* focusedFrame = page->focusController().focusedFrame(); |
| 3141 return focusedFrame && focusedFrame == frame(); | 3141 return focusedFrame && focusedFrame == frame(); |
| 3142 } | 3142 } |
| 3143 | 3143 |
| 3144 void Document::clearWeakMembers(Visitor* visitor) | |
| 3145 { | |
| 3146 } | |
| 3147 | |
| 3148 v8::Handle<v8::Object> Document::wrap(v8::Handle<v8::Object> creationContext, v8
::Isolate* isolate) | 3144 v8::Handle<v8::Object> Document::wrap(v8::Handle<v8::Object> creationContext, v8
::Isolate* isolate) |
| 3149 { | 3145 { |
| 3150 ASSERT(!DOMDataStore::containsWrapperNonTemplate(this, isolate)); | 3146 ASSERT(!DOMDataStore::containsWrapperNonTemplate(this, isolate)); |
| 3151 | 3147 |
| 3152 const WrapperTypeInfo* wrapperType = wrapperTypeInfo(); | 3148 const WrapperTypeInfo* wrapperType = wrapperTypeInfo(); |
| 3153 | 3149 |
| 3154 if (frame() && frame()->script().initializeMainWorld()) { | 3150 if (frame() && frame()->script().initializeMainWorld()) { |
| 3155 // initializeMainWorld may have created a wrapper for the object, retry
from the start. | 3151 // initializeMainWorld may have created a wrapper for the object, retry
from the start. |
| 3156 v8::Handle<v8::Object> wrapper = DOMDataStore::getWrapperNonTemplate(thi
s, isolate); | 3152 v8::Handle<v8::Object> wrapper = DOMDataStore::getWrapperNonTemplate(thi
s, isolate); |
| 3157 if (!wrapper.IsEmpty()) | 3153 if (!wrapper.IsEmpty()) |
| (...skipping 20 matching lines...) Expand all Loading... |
| 3178 using namespace blink; | 3174 using namespace blink; |
| 3179 void showLiveDocumentInstances() | 3175 void showLiveDocumentInstances() |
| 3180 { | 3176 { |
| 3181 WeakDocumentSet& set = liveDocumentSet(); | 3177 WeakDocumentSet& set = liveDocumentSet(); |
| 3182 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 3178 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 3183 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { | 3179 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { |
| 3184 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); | 3180 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); |
| 3185 } | 3181 } |
| 3186 } | 3182 } |
| 3187 #endif | 3183 #endif |
| OLD | NEW |