diff options
Diffstat (limited to 'Source/WebCore/dom')
-rw-r--r-- | Source/WebCore/dom/Document.cpp | 11 | ||||
-rw-r--r-- | Source/WebCore/dom/Document.h | 7 |
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; |