Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: Source/core/dom/Document.cpp

Issue 206603002: Add EventHandlerRegistry (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Just the registry. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 #include "core/dom/ContextFeatures.h" 64 #include "core/dom/ContextFeatures.h"
65 #include "core/dom/DOMImplementation.h" 65 #include "core/dom/DOMImplementation.h"
66 #include "core/dom/DocumentFragment.h" 66 #include "core/dom/DocumentFragment.h"
67 #include "core/dom/DocumentLifecycleNotifier.h" 67 #include "core/dom/DocumentLifecycleNotifier.h"
68 #include "core/dom/DocumentLifecycleObserver.h" 68 #include "core/dom/DocumentLifecycleObserver.h"
69 #include "core/dom/DocumentMarkerController.h" 69 #include "core/dom/DocumentMarkerController.h"
70 #include "core/dom/DocumentType.h" 70 #include "core/dom/DocumentType.h"
71 #include "core/dom/Element.h" 71 #include "core/dom/Element.h"
72 #include "core/dom/ElementDataCache.h" 72 #include "core/dom/ElementDataCache.h"
73 #include "core/dom/ElementTraversal.h" 73 #include "core/dom/ElementTraversal.h"
74 #include "core/dom/EventHandlerRegistry.h"
74 #include "core/dom/ExceptionCode.h" 75 #include "core/dom/ExceptionCode.h"
75 #include "core/dom/ExecutionContextTask.h" 76 #include "core/dom/ExecutionContextTask.h"
76 #include "core/dom/MainThreadTaskRunner.h" 77 #include "core/dom/MainThreadTaskRunner.h"
77 #include "core/dom/MutationObserver.h" 78 #include "core/dom/MutationObserver.h"
78 #include "core/dom/NodeChildRemovalTracker.h" 79 #include "core/dom/NodeChildRemovalTracker.h"
79 #include "core/dom/NodeFilter.h" 80 #include "core/dom/NodeFilter.h"
80 #include "core/dom/NodeIterator.h" 81 #include "core/dom/NodeIterator.h"
81 #include "core/dom/NodeRareData.h" 82 #include "core/dom/NodeRareData.h"
82 #include "core/dom/NodeRenderStyle.h" 83 #include "core/dom/NodeRenderStyle.h"
83 #include "core/dom/NodeRenderingTraversal.h" 84 #include "core/dom/NodeRenderingTraversal.h"
(...skipping 2001 matching lines...) Expand 10 before | Expand all | Expand 10 after
2085 m_renderView->setStyle(StyleResolver::styleForDocument(*this)); 2086 m_renderView->setStyle(StyleResolver::styleForDocument(*this));
2086 view()->updateCompositingLayersAfterStyleChange(); 2087 view()->updateCompositingLayersAfterStyleChange();
2087 2088
2088 ContainerNode::attach(context); 2089 ContainerNode::attach(context);
2089 2090
2090 // FastTextAutosizer can't update render view info while the Document is det ached, so update now in case anything changed. 2091 // FastTextAutosizer can't update render view info while the Document is det ached, so update now in case anything changed.
2091 if (FastTextAutosizer* textAutosizer = fastTextAutosizer()) 2092 if (FastTextAutosizer* textAutosizer = fastTextAutosizer())
2092 textAutosizer->updatePageInfo(); 2093 textAutosizer->updatePageInfo();
2093 2094
2094 m_lifecycle.advanceTo(DocumentLifecycle::StyleClean); 2095 m_lifecycle.advanceTo(DocumentLifecycle::StyleClean);
2096 lifecycleNotifier().notifyDocumentWasAttached();
abarth-chromium 2014/04/11 19:08:01 What is it appropriate to do this work during Docu
Sami 2014/04/15 18:31:52 Turns out I was a little confused about a document
2095 } 2097 }
2096 2098
2097 void Document::detach(const AttachContext& context) 2099 void Document::detach(const AttachContext& context)
2098 { 2100 {
2099 ASSERT(isActive()); 2101 ASSERT(isActive());
2100 m_lifecycle.advanceTo(DocumentLifecycle::Stopping); 2102 m_lifecycle.advanceTo(DocumentLifecycle::Stopping);
2101 2103
2102 if (page()) 2104 if (page())
2103 page()->documentDetached(this); 2105 page()->documentDetached(this);
2104 InspectorInstrumentation::documentDetached(this); 2106 InspectorInstrumentation::documentDetached(this);
(...skipping 3409 matching lines...) Expand 10 before | Expand all | Expand 10 after
5514 (*it)->invalidateCache(attrName); 5516 (*it)->invalidateCache(attrName);
5515 } 5517 }
5516 5518
5517 void Document::trace(Visitor* visitor) 5519 void Document::trace(Visitor* visitor)
5518 { 5520 {
5519 Supplementable<Document>::trace(visitor); 5521 Supplementable<Document>::trace(visitor);
5520 ContainerNode::trace(visitor); 5522 ContainerNode::trace(visitor);
5521 } 5523 }
5522 5524
5523 } // namespace WebCore 5525 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698