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 | 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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 m_importsController(this, initializer.importsController()), | 413 m_importsController(this, initializer.importsController()), |
414 m_contextFeatures(ContextFeatures::defaultSwitch()), | 414 m_contextFeatures(ContextFeatures::defaultSwitch()), |
415 m_wellFormed(false), | 415 m_wellFormed(false), |
416 m_implementation(this, nullptr), | 416 m_implementation(this, nullptr), |
417 m_printing(NotPrinting), | 417 m_printing(NotPrinting), |
418 m_paginatedForScreen(false), | 418 m_paginatedForScreen(false), |
419 m_compatibilityMode(NoQuirksMode), | 419 m_compatibilityMode(NoQuirksMode), |
420 m_compatibilityModeLocked(false), | 420 m_compatibilityModeLocked(false), |
421 m_hasAutofocused(false), | 421 m_hasAutofocused(false), |
422 m_clearFocusedElementTimer( | 422 m_clearFocusedElementTimer( |
423 TaskRunnerHelper::get(TaskType::Internal, this), | 423 TaskRunnerHelper::get(TaskType::InternalTimer, this), |
424 this, | 424 this, |
425 &Document::clearFocusedElementTimerFired), | 425 &Document::clearFocusedElementTimerFired), |
426 m_domTreeVersion(++s_globalTreeVersion), | 426 m_domTreeVersion(++s_globalTreeVersion), |
427 m_styleVersion(0), | 427 m_styleVersion(0), |
428 m_listenerTypes(0), | 428 m_listenerTypes(0), |
429 m_mutationObserverTypes(0), | 429 m_mutationObserverTypes(0), |
430 m_styleEngine(this, nullptr), | 430 m_styleEngine(this, nullptr), |
431 m_styleSheetList(this, nullptr), | 431 m_styleSheetList(this, nullptr), |
432 m_visitedLinkState(VisitedLinkState::create(*this)), | 432 m_visitedLinkState(VisitedLinkState::create(*this)), |
433 m_visuallyOrdered(false), | 433 m_visuallyOrdered(false), |
434 m_readyState(Complete), | 434 m_readyState(Complete), |
435 m_parsingState(FinishedParsing), | 435 m_parsingState(FinishedParsing), |
436 m_gotoAnchorNeededAfterStylesheetsLoad(false), | 436 m_gotoAnchorNeededAfterStylesheetsLoad(false), |
437 m_containsValidityStyleRules(false), | 437 m_containsValidityStyleRules(false), |
438 m_containsPlugins(false), | 438 m_containsPlugins(false), |
439 m_updateFocusAppearanceSelectionBahavior(SelectionBehaviorOnFocus::Reset), | 439 m_updateFocusAppearanceSelectionBahavior(SelectionBehaviorOnFocus::Reset), |
440 m_ignoreDestructiveWriteCount(0), | 440 m_ignoreDestructiveWriteCount(0), |
441 m_throwOnDynamicMarkupInsertionCount(0), | 441 m_throwOnDynamicMarkupInsertionCount(0), |
442 m_markers(new DocumentMarkerController(*this)), | 442 m_markers(new DocumentMarkerController(*this)), |
443 m_updateFocusAppearanceTimer( | 443 m_updateFocusAppearanceTimer( |
444 TaskRunnerHelper::get(TaskType::Internal, this), | 444 TaskRunnerHelper::get(TaskType::InternalTimer, this), |
445 this, | 445 this, |
446 &Document::updateFocusAppearanceTimerFired), | 446 &Document::updateFocusAppearanceTimerFired), |
447 m_cssTarget(nullptr), | 447 m_cssTarget(nullptr), |
448 m_loadEventProgress(LoadEventNotRun), | 448 m_loadEventProgress(LoadEventNotRun), |
449 m_startTime(currentTime()), | 449 m_startTime(currentTime()), |
450 m_scriptRunner(ScriptRunner::create(this)), | 450 m_scriptRunner(ScriptRunner::create(this)), |
451 m_xmlVersion("1.0"), | 451 m_xmlVersion("1.0"), |
452 m_xmlStandalone(StandaloneUnspecified), | 452 m_xmlStandalone(StandaloneUnspecified), |
453 m_hasXMLDeclaration(0), | 453 m_hasXMLDeclaration(0), |
454 m_designMode(false), | 454 m_designMode(false), |
455 m_isRunningExecCommand(false), | 455 m_isRunningExecCommand(false), |
456 m_hasReceivedUserGesture(false), | 456 m_hasReceivedUserGesture(false), |
457 m_hasAnnotatedRegions(false), | 457 m_hasAnnotatedRegions(false), |
458 m_annotatedRegionsDirty(false), | 458 m_annotatedRegionsDirty(false), |
459 m_documentClasses(documentClasses), | 459 m_documentClasses(documentClasses), |
460 m_isViewSource(false), | 460 m_isViewSource(false), |
461 m_sawElementsInKnownNamespaces(false), | 461 m_sawElementsInKnownNamespaces(false), |
462 m_isSrcdocDocument(false), | 462 m_isSrcdocDocument(false), |
463 m_isMobileDocument(false), | 463 m_isMobileDocument(false), |
464 m_layoutView(0), | 464 m_layoutView(0), |
465 m_contextDocument(initializer.contextDocument()), | 465 m_contextDocument(initializer.contextDocument()), |
466 m_hasFullscreenSupplement(false), | 466 m_hasFullscreenSupplement(false), |
467 m_loadEventDelayCount(0), | 467 m_loadEventDelayCount(0), |
468 m_loadEventDelayTimer(TaskRunnerHelper::get(TaskType::Networking, this), | 468 m_loadEventDelayTimer(TaskRunnerHelper::get(TaskType::Networking, this), |
469 this, | 469 this, |
470 &Document::loadEventDelayTimerFired), | 470 &Document::loadEventDelayTimerFired), |
471 m_pluginLoadingTimer(TaskRunnerHelper::get(TaskType::Internal, this), | 471 m_pluginLoadingTimer( |
472 this, | 472 TaskRunnerHelper::get(TaskType::InternalLoading, this), |
473 &Document::pluginLoadingTimerFired), | 473 this, |
| 474 &Document::pluginLoadingTimerFired), |
474 m_documentTiming(*this), | 475 m_documentTiming(*this), |
475 m_writeRecursionIsTooDeep(false), | 476 m_writeRecursionIsTooDeep(false), |
476 m_writeRecursionDepth(0), | 477 m_writeRecursionDepth(0), |
477 m_registrationContext(initializer.registrationContext(this)), | 478 m_registrationContext(initializer.registrationContext(this)), |
478 m_elementDataCacheClearTimer( | 479 m_elementDataCacheClearTimer( |
479 TaskRunnerHelper::get(TaskType::Internal, this), | 480 TaskRunnerHelper::get(TaskType::InternalTimer, this), |
480 this, | 481 this, |
481 &Document::elementDataCacheClearTimerFired), | 482 &Document::elementDataCacheClearTimerFired), |
482 m_timeline(DocumentTimeline::create(this)), | 483 m_timeline(DocumentTimeline::create(this)), |
483 m_compositorPendingAnimations(new CompositorPendingAnimations()), | 484 m_compositorPendingAnimations(new CompositorPendingAnimations()), |
484 m_templateDocumentHost(nullptr), | 485 m_templateDocumentHost(nullptr), |
485 m_didAssociateFormControlsTimer( | 486 m_didAssociateFormControlsTimer( |
486 TaskRunnerHelper::get(TaskType::Internal, this), | 487 TaskRunnerHelper::get(TaskType::InternalLoading, this), |
487 this, | 488 this, |
488 &Document::didAssociateFormControlsTimerFired), | 489 &Document::didAssociateFormControlsTimerFired), |
489 m_timers(TaskRunnerHelper::get(TaskType::Timer, this)->clone()), | 490 m_timers(TaskRunnerHelper::get(TaskType::Timer, this)->clone()), |
490 m_hasViewportUnits(false), | 491 m_hasViewportUnits(false), |
491 m_parserSyncPolicy(AllowAsynchronousParsing), | 492 m_parserSyncPolicy(AllowAsynchronousParsing), |
492 m_nodeCount(0), | 493 m_nodeCount(0), |
493 m_wouldLoadReason(Created), | 494 m_wouldLoadReason(Created), |
494 m_passwordCount(0) { | 495 m_passwordCount(0) { |
495 if (m_frame) { | 496 if (m_frame) { |
496 DCHECK(m_frame->page()); | 497 DCHECK(m_frame->page()); |
(...skipping 3849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4346 OriginAccessEntry::AllowRegisterableDomains)); | 4347 OriginAccessEntry::AllowRegisterableDomains)); |
4347 } | 4348 } |
4348 return *m_accessEntryFromURL; | 4349 return *m_accessEntryFromURL; |
4349 } | 4350 } |
4350 | 4351 |
4351 void Document::sendSensitiveInputVisibility() { | 4352 void Document::sendSensitiveInputVisibility() { |
4352 if (m_sensitiveInputVisibilityTask.isActive()) | 4353 if (m_sensitiveInputVisibilityTask.isActive()) |
4353 return; | 4354 return; |
4354 | 4355 |
4355 m_sensitiveInputVisibilityTask = | 4356 m_sensitiveInputVisibilityTask = |
4356 TaskRunnerHelper::get(TaskType::Internal, this) | 4357 TaskRunnerHelper::get(TaskType::InternalLoading, this) |
4357 ->postCancellableTask( | 4358 ->postCancellableTask( |
4358 BLINK_FROM_HERE, | 4359 BLINK_FROM_HERE, |
4359 WTF::bind(&Document::sendSensitiveInputVisibilityInternal, | 4360 WTF::bind(&Document::sendSensitiveInputVisibilityInternal, |
4360 wrapWeakPersistent(this))); | 4361 wrapWeakPersistent(this))); |
4361 } | 4362 } |
4362 | 4363 |
4363 void Document::sendSensitiveInputVisibilityInternal() { | 4364 void Document::sendSensitiveInputVisibilityInternal() { |
4364 if (!frame()) | 4365 if (!frame()) |
4365 return; | 4366 return; |
4366 | 4367 |
(...skipping 2222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6589 } | 6590 } |
6590 | 6591 |
6591 void showLiveDocumentInstances() { | 6592 void showLiveDocumentInstances() { |
6592 WeakDocumentSet& set = liveDocumentSet(); | 6593 WeakDocumentSet& set = liveDocumentSet(); |
6593 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6594 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6594 for (Document* document : set) | 6595 for (Document* document : set) |
6595 fprintf(stderr, "- Document %p URL: %s\n", document, | 6596 fprintf(stderr, "- Document %p URL: %s\n", document, |
6596 document->url().getString().utf8().data()); | 6597 document->url().getString().utf8().data()); |
6597 } | 6598 } |
6598 #endif | 6599 #endif |
OLD | NEW |