summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/dom
diff options
context:
space:
mode:
authorShimeng (Simon) Wang <swang@google.com>2011-07-01 15:27:58 -0700
committerShimeng (Simon) Wang <swang@google.com>2011-07-01 15:27:58 -0700
commit94bd391238210e19ce80d03518fafab7d6d939b0 (patch)
tree9fd34a4a83080fa5a2f40690fbff9c1ddef0759b /Source/WebCore/dom
parent8db9f9e9e78973e25adf06722ce8f9126e92c60b (diff)
downloadexternal_webkit-94bd391238210e19ce80d03518fafab7d6d939b0.zip
external_webkit-94bd391238210e19ce80d03518fafab7d6d939b0.tar.gz
external_webkit-94bd391238210e19ce80d03518fafab7d6d939b0.tar.bz2
meta format-detection is not a viewport meta tag.
This reverts some of my previous change which wrongly treats format-detection as a viewport change. issue: 4975315 Change-Id: Icb3ab9b813010b253a59fca6992deb1aa4d186e7
Diffstat (limited to 'Source/WebCore/dom')
-rw-r--r--Source/WebCore/dom/Document.cpp11
-rw-r--r--Source/WebCore/dom/Document.h7
2 files changed, 17 insertions, 1 deletions
diff --git a/Source/WebCore/dom/Document.cpp b/Source/WebCore/dom/Document.cpp
index 1ae3bae..7ba603b 100644
--- a/Source/WebCore/dom/Document.cpp
+++ b/Source/WebCore/dom/Document.cpp
@@ -2611,6 +2611,14 @@ Node* Document::nodeWithAbsIndex(int absIndex)
return n;
}
+#ifdef ANDROID_META_SUPPORT
+void Document::processMetadataSettings(const String& content)
+{
+ ASSERT(!content.isNull());
+ processArguments(content, 0, 0);
+}
+#endif
+
void Document::processHttpEquiv(const String& equiv, const String& content)
{
ASSERT(!equiv.isNull() && !content.isNull());
@@ -2719,7 +2727,8 @@ void Document::processArguments(const String& features, void* data, ArgumentsCal
if (frame())
frame()->settings()->setMetadataSettings(keyString, valueString);
#endif
- callback(keyString, valueString, this, data);
+ if (callback && data)
+ callback(keyString, valueString, this, data);
}
}
diff --git a/Source/WebCore/dom/Document.h b/Source/WebCore/dom/Document.h
index ca304c1..179293c 100644
--- a/Source/WebCore/dom/Document.h
+++ b/Source/WebCore/dom/Document.h
@@ -793,6 +793,13 @@ public:
void processHttpEquiv(const String& equiv, const String& content);
void processViewport(const String& features);
+#ifdef ANDROID_META_SUPPORT
+ /**
+ * Handles format-detection like <meta name = "format-detection" content = "telephone=no">
+ */
+ void processMetadataSettings(const String& content);
+#endif
+
// Returns the owning element in the parent document.
// Returns 0 if this is the top level document.
HTMLFrameOwnerElement* ownerElement() const;