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 2077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2088 void Document::setIsViewSource(bool isViewSource) | 2088 void Document::setIsViewSource(bool isViewSource) |
2089 { | 2089 { |
2090 m_isViewSource = isViewSource; | 2090 m_isViewSource = isViewSource; |
2091 if (!m_isViewSource) | 2091 if (!m_isViewSource) |
2092 return; | 2092 return; |
2093 | 2093 |
2094 setSecurityOrigin(SecurityOrigin::createUnique()); | 2094 setSecurityOrigin(SecurityOrigin::createUnique()); |
2095 didUpdateSecurityOrigin(); | 2095 didUpdateSecurityOrigin(); |
2096 } | 2096 } |
2097 | 2097 |
2098 bool Document::isRenderingReady() const | |
2099 { | |
2100 return haveImportsLoaded() && (RuntimeEnabledFeatures::htmlParserBlocksOnCSS Enabled() || haveStylesheetsLoaded()); | |
esprehn
2016/03/07 21:35:50
I don't think you want to do this, isRenderingRead
Pat Meenan
2016/03/07 21:49:53
Right. The change basically removes the check of
| |
2101 } | |
2102 | |
2098 bool Document::dirtyElementsForLayerUpdate() | 2103 bool Document::dirtyElementsForLayerUpdate() |
2099 { | 2104 { |
2100 if (m_layerUpdateSVGFilterElements.isEmpty()) | 2105 if (m_layerUpdateSVGFilterElements.isEmpty()) |
2101 return false; | 2106 return false; |
2102 | 2107 |
2103 for (Element* element : m_layerUpdateSVGFilterElements) | 2108 for (Element* element : m_layerUpdateSVGFilterElements) |
2104 element->setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTraci ng::create(StyleChangeReason::SVGFilterLayerUpdate)); | 2109 element->setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTraci ng::create(StyleChangeReason::SVGFilterLayerUpdate)); |
2105 m_layerUpdateSVGFilterElements.clear(); | 2110 m_layerUpdateSVGFilterElements.clear(); |
2106 return true; | 2111 return true; |
2107 } | 2112 } |
(...skipping 3882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5990 #ifndef NDEBUG | 5995 #ifndef NDEBUG |
5991 using namespace blink; | 5996 using namespace blink; |
5992 void showLiveDocumentInstances() | 5997 void showLiveDocumentInstances() |
5993 { | 5998 { |
5994 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 5999 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
5995 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6000 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5996 for (Document* document : set) | 6001 for (Document* document : set) |
5997 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get String().utf8().data()); | 6002 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get String().utf8().data()); |
5998 } | 6003 } |
5999 #endif | 6004 #endif |
OLD | NEW |