| 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 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 , m_readyState(Complete) | 439 , m_readyState(Complete) |
| 440 , m_isParsing(false) | 440 , m_isParsing(false) |
| 441 , m_gotoAnchorNeededAfterStylesheetsLoad(false) | 441 , m_gotoAnchorNeededAfterStylesheetsLoad(false) |
| 442 , m_containsValidityStyleRules(false) | 442 , m_containsValidityStyleRules(false) |
| 443 , m_updateFocusAppearanceRestoresSelection(false) | 443 , m_updateFocusAppearanceRestoresSelection(false) |
| 444 , m_containsPlugins(false) | 444 , m_containsPlugins(false) |
| 445 , m_ignoreDestructiveWriteCount(0) | 445 , m_ignoreDestructiveWriteCount(0) |
| 446 , m_titleSetExplicitly(false) | 446 , m_titleSetExplicitly(false) |
| 447 , m_markers(adoptPtrWillBeNoop(new DocumentMarkerController)) | 447 , m_markers(adoptPtrWillBeNoop(new DocumentMarkerController)) |
| 448 , m_updateFocusAppearanceTimer(this, &Document::updateFocusAppearanceTimerFi
red) | 448 , m_updateFocusAppearanceTimer(this, &Document::updateFocusAppearanceTimerFi
red) |
| 449 , m_cssTarget(0) | 449 , m_cssTarget(nullptr) |
| 450 , m_loadEventProgress(LoadEventNotRun) | 450 , m_loadEventProgress(LoadEventNotRun) |
| 451 , m_startTime(currentTime()) | 451 , m_startTime(currentTime()) |
| 452 , m_scriptRunner(ScriptRunner::create(this)) | 452 , m_scriptRunner(ScriptRunner::create(this)) |
| 453 , m_xmlVersion("1.0") | 453 , m_xmlVersion("1.0") |
| 454 , m_xmlStandalone(StandaloneUnspecified) | 454 , m_xmlStandalone(StandaloneUnspecified) |
| 455 , m_hasXMLDeclaration(0) | 455 , m_hasXMLDeclaration(0) |
| 456 , m_designMode(inherit) | 456 , m_designMode(inherit) |
| 457 , m_hasAnnotatedRegions(false) | 457 , m_hasAnnotatedRegions(false) |
| 458 , m_annotatedRegionsDirty(false) | 458 , m_annotatedRegionsDirty(false) |
| 459 , m_useSecureKeyboardEntryWhenActive(false) | 459 , m_useSecureKeyboardEntryWhenActive(false) |
| (...skipping 3214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3674 if (!focusChangeBlocked && frameHost()) | 3674 if (!focusChangeBlocked && frameHost()) |
| 3675 frameHost()->chrome().focusedNodeChanged(m_focusedElement.get()); | 3675 frameHost()->chrome().focusedNodeChanged(m_focusedElement.get()); |
| 3676 | 3676 |
| 3677 SetFocusedElementDone: | 3677 SetFocusedElementDone: |
| 3678 updateRenderTreeIfNeeded(); | 3678 updateRenderTreeIfNeeded(); |
| 3679 if (LocalFrame* frame = this->frame()) | 3679 if (LocalFrame* frame = this->frame()) |
| 3680 frame->selection().didChangeFocus(); | 3680 frame->selection().didChangeFocus(); |
| 3681 return !focusChangeBlocked; | 3681 return !focusChangeBlocked; |
| 3682 } | 3682 } |
| 3683 | 3683 |
| 3684 void Document::setCSSTarget(Element* n) | 3684 void Document::setCSSTarget(Element* newTarget) |
| 3685 { | 3685 { |
| 3686 if (m_cssTarget) | 3686 if (m_cssTarget) |
| 3687 m_cssTarget->didAffectSelector(AffectedSelectorTarget); | 3687 m_cssTarget->didAffectSelector(AffectedSelectorTarget); |
| 3688 m_cssTarget = n; | 3688 m_cssTarget = newTarget; |
| 3689 if (n) | 3689 if (m_cssTarget) |
| 3690 n->didAffectSelector(AffectedSelectorTarget); | 3690 m_cssTarget->didAffectSelector(AffectedSelectorTarget); |
| 3691 } | 3691 } |
| 3692 | 3692 |
| 3693 void Document::registerNodeList(const LiveNodeListBase* list) | 3693 void Document::registerNodeList(const LiveNodeListBase* list) |
| 3694 { | 3694 { |
| 3695 #if ENABLE(OILPAN) | 3695 #if ENABLE(OILPAN) |
| 3696 m_nodeLists[list->invalidationType()].add(list); | 3696 m_nodeLists[list->invalidationType()].add(list); |
| 3697 #else | 3697 #else |
| 3698 m_nodeListCounts[list->invalidationType()]++; | 3698 m_nodeListCounts[list->invalidationType()]++; |
| 3699 #endif | 3699 #endif |
| 3700 if (list->isRootedAtDocument()) | 3700 if (list->isRootedAtDocument()) |
| (...skipping 2072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5773 visitor->trace(m_importsController); | 5773 visitor->trace(m_importsController); |
| 5774 visitor->trace(m_docType); | 5774 visitor->trace(m_docType); |
| 5775 visitor->trace(m_implementation); | 5775 visitor->trace(m_implementation); |
| 5776 visitor->trace(m_autofocusElement); | 5776 visitor->trace(m_autofocusElement); |
| 5777 visitor->trace(m_focusedElement); | 5777 visitor->trace(m_focusedElement); |
| 5778 visitor->trace(m_hoverNode); | 5778 visitor->trace(m_hoverNode); |
| 5779 visitor->trace(m_activeHoverElement); | 5779 visitor->trace(m_activeHoverElement); |
| 5780 visitor->trace(m_documentElement); | 5780 visitor->trace(m_documentElement); |
| 5781 visitor->trace(m_titleElement); | 5781 visitor->trace(m_titleElement); |
| 5782 visitor->trace(m_markers); | 5782 visitor->trace(m_markers); |
| 5783 visitor->trace(m_cssTarget); |
| 5783 visitor->trace(m_currentScriptStack); | 5784 visitor->trace(m_currentScriptStack); |
| 5784 visitor->trace(m_scriptRunner); | 5785 visitor->trace(m_scriptRunner); |
| 5785 visitor->trace(m_transformSourceDocument); | 5786 visitor->trace(m_transformSourceDocument); |
| 5786 visitor->trace(m_listsInvalidatedAtDocument); | 5787 visitor->trace(m_listsInvalidatedAtDocument); |
| 5787 #if ENABLE(OILPAN) | 5788 #if ENABLE(OILPAN) |
| 5788 for (int i = 0; i < numNodeListInvalidationTypes; ++i) | 5789 for (int i = 0; i < numNodeListInvalidationTypes; ++i) |
| 5789 visitor->trace(m_nodeLists[i]); | 5790 visitor->trace(m_nodeLists[i]); |
| 5790 #endif | 5791 #endif |
| 5791 visitor->trace(m_cssCanvasElements); | 5792 visitor->trace(m_cssCanvasElements); |
| 5792 visitor->trace(m_topLayerElements); | 5793 visitor->trace(m_topLayerElements); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 5812 visitor->trace(m_compositorPendingAnimations); | 5813 visitor->trace(m_compositorPendingAnimations); |
| 5813 visitor->trace(m_contextDocument); | 5814 visitor->trace(m_contextDocument); |
| 5814 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); | 5815 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); |
| 5815 DocumentSupplementable::trace(visitor); | 5816 DocumentSupplementable::trace(visitor); |
| 5816 TreeScope::trace(visitor); | 5817 TreeScope::trace(visitor); |
| 5817 ContainerNode::trace(visitor); | 5818 ContainerNode::trace(visitor); |
| 5818 ExecutionContext::trace(visitor); | 5819 ExecutionContext::trace(visitor); |
| 5819 } | 5820 } |
| 5820 | 5821 |
| 5821 } // namespace WebCore | 5822 } // namespace WebCore |
| OLD | NEW |