| 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 5944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5955 return Platform::current()->currentThread()->scheduler()->timerTaskRunner(); | 5955 return Platform::current()->currentThread()->scheduler()->timerTaskRunner(); |
| 5956 } | 5956 } |
| 5957 | 5957 |
| 5958 void Document::enforceStrictMixedContentChecking() | 5958 void Document::enforceStrictMixedContentChecking() |
| 5959 { | 5959 { |
| 5960 securityContext().setShouldEnforceStrictMixedContentChecking(true); | 5960 securityContext().setShouldEnforceStrictMixedContentChecking(true); |
| 5961 if (frame()) | 5961 if (frame()) |
| 5962 frame()->loader().client()->didEnforceStrictMixedContentChecking(); | 5962 frame()->loader().client()->didEnforceStrictMixedContentChecking(); |
| 5963 } | 5963 } |
| 5964 | 5964 |
| 5965 void Document::setShadowCascadeOrder(ShadowCascadeOrder order) |
| 5966 { |
| 5967 DCHECK_NE(order, ShadowCascadeOrder::ShadowCascadeNone); |
| 5968 |
| 5969 if (order == m_shadowCascadeOrder) |
| 5970 return; |
| 5971 |
| 5972 if (order == ShadowCascadeOrder::ShadowCascadeV0) |
| 5973 m_mayContainV0Shadow = true; |
| 5974 |
| 5975 // For V0 -> V1 upgrade, we need style recalculation for the whole document. |
| 5976 if (m_shadowCascadeOrder == ShadowCascadeOrder::ShadowCascadeV0 && order ==
ShadowCascadeOrder::ShadowCascadeV1) |
| 5977 this->setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracin
g::create(StyleChangeReason::Shadow)); |
| 5978 |
| 5979 if (order > m_shadowCascadeOrder) |
| 5980 m_shadowCascadeOrder = order; |
| 5981 } |
| 5982 |
| 5965 LayoutViewItem Document::layoutViewItem() const | 5983 LayoutViewItem Document::layoutViewItem() const |
| 5966 { | 5984 { |
| 5967 return LayoutViewItem(m_layoutView); | 5985 return LayoutViewItem(m_layoutView); |
| 5968 } | 5986 } |
| 5969 | 5987 |
| 5970 DEFINE_TRACE(Document) | 5988 DEFINE_TRACE(Document) |
| 5971 { | 5989 { |
| 5972 visitor->trace(m_importsController); | 5990 visitor->trace(m_importsController); |
| 5973 visitor->trace(m_docType); | 5991 visitor->trace(m_docType); |
| 5974 visitor->trace(m_implementation); | 5992 visitor->trace(m_implementation); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6039 #ifndef NDEBUG | 6057 #ifndef NDEBUG |
| 6040 using namespace blink; | 6058 using namespace blink; |
| 6041 void showLiveDocumentInstances() | 6059 void showLiveDocumentInstances() |
| 6042 { | 6060 { |
| 6043 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 6061 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
| 6044 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6062 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6045 for (Document* document : set) | 6063 for (Document* document : set) |
| 6046 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 6064 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
| 6047 } | 6065 } |
| 6048 #endif | 6066 #endif |
| OLD | NEW |