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 5616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5627 } | 5627 } |
5628 | 5628 |
5629 void Document::updateSecurityOrigin(PassRefPtr<SecurityOrigin> origin) { | 5629 void Document::updateSecurityOrigin(PassRefPtr<SecurityOrigin> origin) { |
5630 setSecurityOrigin(std::move(origin)); | 5630 setSecurityOrigin(std::move(origin)); |
5631 didUpdateSecurityOrigin(); | 5631 didUpdateSecurityOrigin(); |
5632 } | 5632 } |
5633 | 5633 |
5634 void Document::didUpdateSecurityOrigin() { | 5634 void Document::didUpdateSecurityOrigin() { |
5635 if (!m_frame) | 5635 if (!m_frame) |
5636 return; | 5636 return; |
| 5637 updateFeaturePolicyOrigin(); |
5637 m_frame->script().updateSecurityOrigin(getSecurityOrigin()); | 5638 m_frame->script().updateSecurityOrigin(getSecurityOrigin()); |
5638 } | 5639 } |
5639 | 5640 |
5640 bool Document::isContextThread() const { | 5641 bool Document::isContextThread() const { |
5641 return isMainThread(); | 5642 return isMainThread(); |
5642 } | 5643 } |
5643 | 5644 |
5644 void Document::updateFocusAppearanceLater() { | 5645 void Document::updateFocusAppearanceLater() { |
5645 if (!m_updateFocusAppearanceTimer.isActive()) | 5646 if (!m_updateFocusAppearanceTimer.isActive()) |
5646 m_updateFocusAppearanceTimer.startOneShot(0, BLINK_FROM_HERE); | 5647 m_updateFocusAppearanceTimer.startOneShot(0, BLINK_FROM_HERE); |
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6580 } | 6581 } |
6581 | 6582 |
6582 void showLiveDocumentInstances() { | 6583 void showLiveDocumentInstances() { |
6583 WeakDocumentSet& set = liveDocumentSet(); | 6584 WeakDocumentSet& set = liveDocumentSet(); |
6584 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6585 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6585 for (blink::Document* document : set) | 6586 for (blink::Document* document : set) |
6586 fprintf(stderr, "- Document %p URL: %s\n", document, | 6587 fprintf(stderr, "- Document %p URL: %s\n", document, |
6587 document->url().getString().utf8().data()); | 6588 document->url().getString().utf8().data()); |
6588 } | 6589 } |
6589 #endif | 6590 #endif |
OLD | NEW |