| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 #include "sky/engine/core/dom/NodeRenderStyle.h" | 59 #include "sky/engine/core/dom/NodeRenderStyle.h" |
| 60 #include "sky/engine/core/dom/NodeRenderingTraversal.h" | 60 #include "sky/engine/core/dom/NodeRenderingTraversal.h" |
| 61 #include "sky/engine/core/dom/NodeTraversal.h" | 61 #include "sky/engine/core/dom/NodeTraversal.h" |
| 62 #include "sky/engine/core/dom/NodeWithIndex.h" | 62 #include "sky/engine/core/dom/NodeWithIndex.h" |
| 63 #include "sky/engine/core/dom/RequestAnimationFrameCallback.h" | 63 #include "sky/engine/core/dom/RequestAnimationFrameCallback.h" |
| 64 #include "sky/engine/core/dom/ScriptedAnimationController.h" | 64 #include "sky/engine/core/dom/ScriptedAnimationController.h" |
| 65 #include "sky/engine/core/dom/SelectorQuery.h" | 65 #include "sky/engine/core/dom/SelectorQuery.h" |
| 66 #include "sky/engine/core/dom/StaticNodeList.h" | 66 #include "sky/engine/core/dom/StaticNodeList.h" |
| 67 #include "sky/engine/core/dom/StyleEngine.h" | 67 #include "sky/engine/core/dom/StyleEngine.h" |
| 68 #include "sky/engine/core/dom/Text.h" | 68 #include "sky/engine/core/dom/Text.h" |
| 69 #include "sky/engine/core/dom/custom2/new_custom_element_registry.h" | 69 #include "sky/engine/core/dom/custom/custom_element_registry.h" |
| 70 #include "sky/engine/core/dom/shadow/ElementShadow.h" | 70 #include "sky/engine/core/dom/shadow/ElementShadow.h" |
| 71 #include "sky/engine/core/dom/shadow/ShadowRoot.h" | 71 #include "sky/engine/core/dom/shadow/ShadowRoot.h" |
| 72 #include "sky/engine/core/editing/FrameSelection.h" | 72 #include "sky/engine/core/editing/FrameSelection.h" |
| 73 #include "sky/engine/core/editing/SpellChecker.h" | 73 #include "sky/engine/core/editing/SpellChecker.h" |
| 74 #include "sky/engine/core/events/Event.h" | 74 #include "sky/engine/core/events/Event.h" |
| 75 #include "sky/engine/core/events/EventListener.h" | 75 #include "sky/engine/core/events/EventListener.h" |
| 76 #include "sky/engine/core/events/HashChangeEvent.h" | 76 #include "sky/engine/core/events/HashChangeEvent.h" |
| 77 #include "sky/engine/core/events/PageTransitionEvent.h" | 77 #include "sky/engine/core/events/PageTransitionEvent.h" |
| 78 #include "sky/engine/core/events/ScopedEventQueue.h" | 78 #include "sky/engine/core/events/ScopedEventQueue.h" |
| 79 #include "sky/engine/core/fetch/ResourceFetcher.h" | 79 #include "sky/engine/core/fetch/ResourceFetcher.h" |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 , m_elementRegistry(initializer.elementRegistry()) | 252 , m_elementRegistry(initializer.elementRegistry()) |
| 253 , m_elementDataCacheClearTimer(this, &Document::elementDataCacheClearTimerFi
red) | 253 , m_elementDataCacheClearTimer(this, &Document::elementDataCacheClearTimerFi
red) |
| 254 , m_timeline(AnimationTimeline::create(this)) | 254 , m_timeline(AnimationTimeline::create(this)) |
| 255 , m_templateDocumentHost(nullptr) | 255 , m_templateDocumentHost(nullptr) |
| 256 , m_hasViewportUnits(false) | 256 , m_hasViewportUnits(false) |
| 257 , m_styleRecalcElementCounter(0) | 257 , m_styleRecalcElementCounter(0) |
| 258 { | 258 { |
| 259 setClient(this); | 259 setClient(this); |
| 260 | 260 |
| 261 if (!m_elementRegistry) | 261 if (!m_elementRegistry) |
| 262 m_elementRegistry = NewCustomElementRegistry::Create(); | 262 m_elementRegistry = CustomElementRegistry::Create(); |
| 263 | 263 |
| 264 m_fetcher = ResourceFetcher::create(this); | 264 m_fetcher = ResourceFetcher::create(this); |
| 265 | 265 |
| 266 // We depend on the url getting immediately set in subframes, but we | 266 // We depend on the url getting immediately set in subframes, but we |
| 267 // also depend on the url NOT getting immediately set in opened windows. | 267 // also depend on the url NOT getting immediately set in opened windows. |
| 268 // See fast/dom/early-frame-url.html | 268 // See fast/dom/early-frame-url.html |
| 269 // and fast/dom/location-new-window-no-crash.html, respectively. | 269 // and fast/dom/location-new-window-no-crash.html, respectively. |
| 270 // FIXME: Can/should we unify this behavior? | 270 // FIXME: Can/should we unify this behavior? |
| 271 if (initializer.shouldSetURL()) | 271 if (initializer.shouldSetURL()) |
| 272 setURL(initializer.url()); | 272 setURL(initializer.url()); |
| (...skipping 1942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2215 using namespace blink; | 2215 using namespace blink; |
| 2216 void showLiveDocumentInstances() | 2216 void showLiveDocumentInstances() |
| 2217 { | 2217 { |
| 2218 WeakDocumentSet& set = liveDocumentSet(); | 2218 WeakDocumentSet& set = liveDocumentSet(); |
| 2219 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 2219 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 2220 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { | 2220 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { |
| 2221 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); | 2221 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); |
| 2222 } | 2222 } |
| 2223 } | 2223 } |
| 2224 #endif | 2224 #endif |
| OLD | NEW |