| 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 , m_referrerPolicy(ReferrerPolicyDefault) | 313 , m_referrerPolicy(ReferrerPolicyDefault) |
| 314 , m_directionSetOnDocumentElement(false) | 314 , m_directionSetOnDocumentElement(false) |
| 315 , m_registrationContext(initializer.registrationContext(this)) | 315 , m_registrationContext(initializer.registrationContext(this)) |
| 316 , m_elementDataCacheClearTimer(this, &Document::elementDataCacheClearTimerFi
red) | 316 , m_elementDataCacheClearTimer(this, &Document::elementDataCacheClearTimerFi
red) |
| 317 , m_timeline(AnimationTimeline::create(this)) | 317 , m_timeline(AnimationTimeline::create(this)) |
| 318 , m_templateDocumentHost(nullptr) | 318 , m_templateDocumentHost(nullptr) |
| 319 , m_hasViewportUnits(false) | 319 , m_hasViewportUnits(false) |
| 320 , m_styleRecalcElementCounter(0) | 320 , m_styleRecalcElementCounter(0) |
| 321 { | 321 { |
| 322 setClient(this); | 322 setClient(this); |
| 323 ScriptWrappable::init(this); | |
| 324 | 323 |
| 325 m_fetcher = ResourceFetcher::create(this); | 324 m_fetcher = ResourceFetcher::create(this); |
| 326 | 325 |
| 327 // We depend on the url getting immediately set in subframes, but we | 326 // We depend on the url getting immediately set in subframes, but we |
| 328 // also depend on the url NOT getting immediately set in opened windows. | 327 // also depend on the url NOT getting immediately set in opened windows. |
| 329 // See fast/dom/early-frame-url.html | 328 // See fast/dom/early-frame-url.html |
| 330 // and fast/dom/location-new-window-no-crash.html, respectively. | 329 // and fast/dom/location-new-window-no-crash.html, respectively. |
| 331 // FIXME: Can/should we unify this behavior? | 330 // FIXME: Can/should we unify this behavior? |
| 332 if (initializer.shouldSetURL()) | 331 if (initializer.shouldSetURL()) |
| 333 setURL(initializer.url()); | 332 setURL(initializer.url()); |
| (...skipping 2666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3000 using namespace blink; | 2999 using namespace blink; |
| 3001 void showLiveDocumentInstances() | 3000 void showLiveDocumentInstances() |
| 3002 { | 3001 { |
| 3003 WeakDocumentSet& set = liveDocumentSet(); | 3002 WeakDocumentSet& set = liveDocumentSet(); |
| 3004 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 3003 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 3005 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { | 3004 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { |
| 3006 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); | 3005 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); |
| 3007 } | 3006 } |
| 3008 } | 3007 } |
| 3009 #endif | 3008 #endif |
| OLD | NEW |