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

Side by Side Diff: sky/engine/core/dom/Document.cpp

Issue 713073003: remove updateTouchEventTargetRectsIfNeeded (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: moar Created 6 years, 1 month 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 #include "core/editing/FrameSelection.h" 81 #include "core/editing/FrameSelection.h"
82 #include "core/editing/SpellChecker.h" 82 #include "core/editing/SpellChecker.h"
83 #include "core/editing/markup.h" 83 #include "core/editing/markup.h"
84 #include "core/events/Event.h" 84 #include "core/events/Event.h"
85 #include "core/events/EventFactory.h" 85 #include "core/events/EventFactory.h"
86 #include "core/events/EventListener.h" 86 #include "core/events/EventListener.h"
87 #include "core/events/HashChangeEvent.h" 87 #include "core/events/HashChangeEvent.h"
88 #include "core/events/PageTransitionEvent.h" 88 #include "core/events/PageTransitionEvent.h"
89 #include "core/events/ScopedEventQueue.h" 89 #include "core/events/ScopedEventQueue.h"
90 #include "core/fetch/ResourceFetcher.h" 90 #include "core/fetch/ResourceFetcher.h"
91 #include "core/frame/EventHandlerRegistry.h"
92 #include "core/frame/FrameConsole.h" 91 #include "core/frame/FrameConsole.h"
93 #include "core/frame/FrameHost.h" 92 #include "core/frame/FrameHost.h"
94 #include "core/frame/FrameView.h" 93 #include "core/frame/FrameView.h"
95 #include "core/frame/History.h" 94 #include "core/frame/History.h"
96 #include "core/frame/LocalDOMWindow.h" 95 #include "core/frame/LocalDOMWindow.h"
97 #include "core/frame/LocalFrame.h" 96 #include "core/frame/LocalFrame.h"
98 #include "core/frame/Settings.h" 97 #include "core/frame/Settings.h"
99 #include "core/html/HTMLAnchorElement.h" 98 #include "core/html/HTMLAnchorElement.h"
100 #include "core/html/HTMLCanvasElement.h" 99 #include "core/html/HTMLCanvasElement.h"
101 #include "core/html/HTMLDocument.h" 100 #include "core/html/HTMLDocument.h"
(...skipping 1274 matching lines...) Expand 10 before | Expand all | Expand 10 after
1376 m_hoverNode = nullptr; 1375 m_hoverNode = nullptr;
1377 m_focusedElement = nullptr; 1376 m_focusedElement = nullptr;
1378 m_activeHoverElement = nullptr; 1377 m_activeHoverElement = nullptr;
1379 m_autofocusElement = nullptr; 1378 m_autofocusElement = nullptr;
1380 1379
1381 m_renderView = 0; 1380 m_renderView = 0;
1382 ContainerNode::detach(context); 1381 ContainerNode::detach(context);
1383 1382
1384 m_styleEngine->didDetach(); 1383 m_styleEngine->didDetach();
1385 1384
1386 frameHost()->eventHandlerRegistry().documentDetached(*this);
1387
1388 // This is required, as our LocalFrame might delete itself as soon as it det aches 1385 // This is required, as our LocalFrame might delete itself as soon as it det aches
1389 // us. However, this violates Node::detach() semantics, as it's never 1386 // us. However, this violates Node::detach() semantics, as it's never
1390 // possible to re-attach. Eventually Document::detach() should be renamed, 1387 // possible to re-attach. Eventually Document::detach() should be renamed,
1391 // or this setting of the frame to 0 could be made explicit in each of the 1388 // or this setting of the frame to 0 could be made explicit in each of the
1392 // callers of Document::detach(). 1389 // callers of Document::detach().
1393 m_frame = 0; 1390 m_frame = 0;
1394 1391
1395 if (m_mediaQueryMatcher) 1392 if (m_mediaQueryMatcher)
1396 m_mediaQueryMatcher->documentDetached(); 1393 m_mediaQueryMatcher->documentDetached();
1397 1394
(...skipping 1604 matching lines...) Expand 10 before | Expand all | Expand 10 after
3002 using namespace blink; 2999 using namespace blink;
3003 void showLiveDocumentInstances() 3000 void showLiveDocumentInstances()
3004 { 3001 {
3005 WeakDocumentSet& set = liveDocumentSet(); 3002 WeakDocumentSet& set = liveDocumentSet();
3006 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 3003 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
3007 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) { 3004 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) {
3008 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());
3009 } 3006 }
3010 } 3007 }
3011 #endif 3008 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698