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 3116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3127 bool Document::shouldMergeWithLegacyDescription(ViewportDescription::Type origin ) | 3127 bool Document::shouldMergeWithLegacyDescription(ViewportDescription::Type origin ) |
3128 { | 3128 { |
3129 return settings() && settings()->viewportMetaMergeContentQuirk() && m_legacy ViewportDescription.isMetaViewportType() && m_legacyViewportDescription.type == origin; | 3129 return settings() && settings()->viewportMetaMergeContentQuirk() && m_legacy ViewportDescription.isMetaViewportType() && m_legacyViewportDescription.type == origin; |
3130 } | 3130 } |
3131 | 3131 |
3132 void Document::setViewportDescription(const ViewportDescription& viewportDescrip tion) | 3132 void Document::setViewportDescription(const ViewportDescription& viewportDescrip tion) |
3133 { | 3133 { |
3134 if (viewportDescription == m_viewportDescription) | 3134 if (viewportDescription == m_viewportDescription) |
3135 return; | 3135 return; |
3136 | 3136 |
3137 if (settings() && !settings()->viewportMetaEnabled() && viewportDescription. isMetaViewportType()) | |
johnme
2016/03/15 11:38:10
Why do you only disable meta viewport in Request D
aelias_OOO_until_Jul13
2016/03/15 19:14:15
Those are rarely seen, and I think it's especially
aelias_OOO_until_Jul13
2016/03/15 19:29:26
OK, I made this change.
| |
3138 return; | |
3139 | |
3137 // The UA-defined min-width is used by the processing of legacy meta tags. | 3140 // The UA-defined min-width is used by the processing of legacy meta tags. |
3138 if (!viewportDescription.isSpecifiedByAuthor()) | 3141 if (!viewportDescription.isSpecifiedByAuthor()) |
3139 m_viewportDefaultMinWidth = viewportDescription.minWidth; | 3142 m_viewportDefaultMinWidth = viewportDescription.minWidth; |
3140 | 3143 |
3141 if (viewportDescription.isLegacyViewportType()) { | 3144 if (viewportDescription.isLegacyViewportType()) { |
3142 m_legacyViewportDescription = viewportDescription; | 3145 m_legacyViewportDescription = viewportDescription; |
3143 | 3146 |
3144 // When no author style for @viewport is present, and a meta tag for def ining | 3147 // When no author style for @viewport is present, and a meta tag for def ining |
3145 // the viewport is, apply the meta tag viewport instead of the UA styles . | 3148 // the viewport is, apply the meta tag viewport instead of the UA styles . |
3146 if (m_viewportDescription.type == ViewportDescription::AuthorStyleSheet) | 3149 if (m_viewportDescription.type == ViewportDescription::AuthorStyleSheet) |
(...skipping 2849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5996 #ifndef NDEBUG | 5999 #ifndef NDEBUG |
5997 using namespace blink; | 6000 using namespace blink; |
5998 void showLiveDocumentInstances() | 6001 void showLiveDocumentInstances() |
5999 { | 6002 { |
6000 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 6003 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
6001 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6004 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6002 for (Document* document : set) | 6005 for (Document* document : set) |
6003 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get String().utf8().data()); | 6006 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get String().utf8().data()); |
6004 } | 6007 } |
6005 #endif | 6008 #endif |
OLD | NEW |