| 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 2507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2518 | 2518 |
| 2519 MutationObserver::cleanSlotChangeList(*this); | 2519 MutationObserver::cleanSlotChangeList(*this); |
| 2520 | 2520 |
| 2521 m_hoverNode = nullptr; | 2521 m_hoverNode = nullptr; |
| 2522 m_activeHoverElement = nullptr; | 2522 m_activeHoverElement = nullptr; |
| 2523 m_autofocusElement = nullptr; | 2523 m_autofocusElement = nullptr; |
| 2524 | 2524 |
| 2525 if (m_focusedElement.get()) { | 2525 if (m_focusedElement.get()) { |
| 2526 Element* oldFocusedElement = m_focusedElement; | 2526 Element* oldFocusedElement = m_focusedElement; |
| 2527 m_focusedElement = nullptr; | 2527 m_focusedElement = nullptr; |
| 2528 if (frameHost()) | 2528 if (page()) |
| 2529 frameHost()->chromeClient().focusedNodeChanged(oldFocusedElement, | 2529 page()->chromeClient().focusedNodeChanged(oldFocusedElement, nullptr); |
| 2530 nullptr); | |
| 2531 } | 2530 } |
| 2532 m_sequentialFocusNavigationStartingPoint = nullptr; | 2531 m_sequentialFocusNavigationStartingPoint = nullptr; |
| 2533 | 2532 |
| 2534 if (this == &axObjectCacheOwner()) | 2533 if (this == &axObjectCacheOwner()) |
| 2535 clearAXObjectCache(); | 2534 clearAXObjectCache(); |
| 2536 | 2535 |
| 2537 m_layoutView = nullptr; | 2536 m_layoutView = nullptr; |
| 2538 ContainerNode::detachLayoutTree(); | 2537 ContainerNode::detachLayoutTree(); |
| 2539 | 2538 |
| 2540 if (this != &axObjectCacheOwner()) { | 2539 if (this != &axObjectCacheOwner()) { |
| (...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3567 viewportMetaEnabled) | 3566 viewportMetaEnabled) |
| 3568 appliedViewportDescription = m_legacyViewportDescription; | 3567 appliedViewportDescription = m_legacyViewportDescription; |
| 3569 if (shouldOverrideLegacyDescription(m_viewportDescription.type)) | 3568 if (shouldOverrideLegacyDescription(m_viewportDescription.type)) |
| 3570 appliedViewportDescription = m_viewportDescription; | 3569 appliedViewportDescription = m_viewportDescription; |
| 3571 | 3570 |
| 3572 return appliedViewportDescription; | 3571 return appliedViewportDescription; |
| 3573 } | 3572 } |
| 3574 | 3573 |
| 3575 void Document::updateViewportDescription() { | 3574 void Document::updateViewportDescription() { |
| 3576 if (frame() && frame()->isMainFrame()) { | 3575 if (frame() && frame()->isMainFrame()) { |
| 3577 frameHost()->chromeClient().dispatchViewportPropertiesDidChange( | 3576 page()->chromeClient().dispatchViewportPropertiesDidChange( |
| 3578 viewportDescription()); | 3577 viewportDescription()); |
| 3579 } | 3578 } |
| 3580 } | 3579 } |
| 3581 | 3580 |
| 3582 String Document::outgoingReferrer() const { | 3581 String Document::outgoingReferrer() const { |
| 3583 if (getSecurityOrigin()->isUnique()) { | 3582 if (getSecurityOrigin()->isUnique()) { |
| 3584 // Return |no-referrer|. | 3583 // Return |no-referrer|. |
| 3585 return String(); | 3584 return String(); |
| 3586 } | 3585 } |
| 3587 | 3586 |
| (...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4132 } | 4131 } |
| 4133 | 4132 |
| 4134 if (!focusChangeBlocked && m_focusedElement) { | 4133 if (!focusChangeBlocked && m_focusedElement) { |
| 4135 // Create the AXObject cache in a focus change because Chromium relies on | 4134 // Create the AXObject cache in a focus change because Chromium relies on |
| 4136 // it. | 4135 // it. |
| 4137 if (AXObjectCache* cache = axObjectCache()) | 4136 if (AXObjectCache* cache = axObjectCache()) |
| 4138 cache->handleFocusedUIElementChanged(oldFocusedElement, | 4137 cache->handleFocusedUIElementChanged(oldFocusedElement, |
| 4139 newFocusedElement); | 4138 newFocusedElement); |
| 4140 } | 4139 } |
| 4141 | 4140 |
| 4142 if (!focusChangeBlocked && frameHost()) | 4141 if (!focusChangeBlocked && page()) { |
| 4143 frameHost()->chromeClient().focusedNodeChanged(oldFocusedElement, | 4142 page()->chromeClient().focusedNodeChanged(oldFocusedElement, |
| 4144 m_focusedElement.get()); | 4143 m_focusedElement.get()); |
| 4144 } |
| 4145 | 4145 |
| 4146 SetFocusedElementDone: | 4146 SetFocusedElementDone: |
| 4147 updateStyleAndLayoutTree(); | 4147 updateStyleAndLayoutTree(); |
| 4148 if (LocalFrame* frame = this->frame()) | 4148 if (LocalFrame* frame = this->frame()) |
| 4149 frame->selection().didChangeFocus(); | 4149 frame->selection().didChangeFocus(); |
| 4150 return !focusChangeBlocked; | 4150 return !focusChangeBlocked; |
| 4151 } | 4151 } |
| 4152 | 4152 |
| 4153 void Document::clearFocusedElement() { | 4153 void Document::clearFocusedElement() { |
| 4154 setFocusedElement(nullptr, FocusParams(SelectionBehaviorOnFocus::None, | 4154 setFocusedElement(nullptr, FocusParams(SelectionBehaviorOnFocus::None, |
| (...skipping 2506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6661 } | 6661 } |
| 6662 | 6662 |
| 6663 void showLiveDocumentInstances() { | 6663 void showLiveDocumentInstances() { |
| 6664 WeakDocumentSet& set = liveDocumentSet(); | 6664 WeakDocumentSet& set = liveDocumentSet(); |
| 6665 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6665 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6666 for (blink::Document* document : set) | 6666 for (blink::Document* document : set) |
| 6667 fprintf(stderr, "- Document %p URL: %s\n", document, | 6667 fprintf(stderr, "- Document %p URL: %s\n", document, |
| 6668 document->url().getString().utf8().data()); | 6668 document->url().getString().utf8().data()); |
| 6669 } | 6669 } |
| 6670 #endif | 6670 #endif |
| OLD | NEW |