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

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

Issue 2408333004: Move persistent gesture state to Document, add DocumentUserGestureToken (Closed)
Patch Set: Switch back to checkign context->isDocument() Created 4 years, 2 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 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 &Document::updateFocusAppearanceTimerFired), 460 &Document::updateFocusAppearanceTimerFired),
461 m_cssTarget(nullptr), 461 m_cssTarget(nullptr),
462 m_loadEventProgress(LoadEventNotRun), 462 m_loadEventProgress(LoadEventNotRun),
463 m_startTime(currentTime()), 463 m_startTime(currentTime()),
464 m_scriptRunner(ScriptRunner::create(this)), 464 m_scriptRunner(ScriptRunner::create(this)),
465 m_xmlVersion("1.0"), 465 m_xmlVersion("1.0"),
466 m_xmlStandalone(StandaloneUnspecified), 466 m_xmlStandalone(StandaloneUnspecified),
467 m_hasXMLDeclaration(0), 467 m_hasXMLDeclaration(0),
468 m_designMode(false), 468 m_designMode(false),
469 m_isRunningExecCommand(false), 469 m_isRunningExecCommand(false),
470 m_hasReceivedUserGesture(false),
470 m_hasAnnotatedRegions(false), 471 m_hasAnnotatedRegions(false),
471 m_annotatedRegionsDirty(false), 472 m_annotatedRegionsDirty(false),
472 m_useSecureKeyboardEntryWhenActive(false), 473 m_useSecureKeyboardEntryWhenActive(false),
473 m_documentClasses(documentClasses), 474 m_documentClasses(documentClasses),
474 m_isViewSource(false), 475 m_isViewSource(false),
475 m_sawElementsInKnownNamespaces(false), 476 m_sawElementsInKnownNamespaces(false),
476 m_isSrcdocDocument(false), 477 m_isSrcdocDocument(false),
477 m_isMobileDocument(false), 478 m_isMobileDocument(false),
478 m_layoutView(0), 479 m_layoutView(0),
479 m_contextDocument(initializer.contextDocument()), 480 m_contextDocument(initializer.contextDocument()),
(...skipping 5931 matching lines...) Expand 10 before | Expand all | Expand 10 after
6411 } 6412 }
6412 6413
6413 void showLiveDocumentInstances() { 6414 void showLiveDocumentInstances() {
6414 WeakDocumentSet& set = liveDocumentSet(); 6415 WeakDocumentSet& set = liveDocumentSet();
6415 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6416 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6416 for (Document* document : set) 6417 for (Document* document : set)
6417 fprintf(stderr, "- Document %p URL: %s\n", document, 6418 fprintf(stderr, "- Document %p URL: %s\n", document,
6418 document->url().getString().utf8().data()); 6419 document->url().getString().utf8().data());
6419 } 6420 }
6420 #endif 6421 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698