Commit b166c95b authored by commit-queue@webkit.org's avatar commit-queue@webkit.org
Browse files

WebDocument doesn't export document language to outside users.

https://bugs.webkit.org/show_bug.cgi?id=98066

Patch by Brian White <bcwhite@chromium.org> on 2012-10-02
Reviewed by Adam Barth.

Chromium uses the document language to offer translation.  It's been doing
its own detection of this property but it would be better to get it from
existing extraction code.

* public/WebDocument.h:
(WebDocument):
* src/WebDocument.cpp:
(WebKit::WebDocument::contentLanguage):
(WebKit):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130191 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 16b0eaf9
2012-10-02 Brian White <bcwhite@chromium.org>
WebDocument doesn't export document language to outside users.
https://bugs.webkit.org/show_bug.cgi?id=98066
Reviewed by Adam Barth.
Chromium uses the document language to offer translation. It's been doing
its own detection of this property but it would be better to get it from
existing extraction code.
* public/WebDocument.h:
(WebDocument):
* src/WebDocument.cpp:
(WebKit::WebDocument::contentLanguage):
(WebKit):
2012-10-02 Vangelis Kokkevis <vangelis@chromium.org>
 
Remove call to FinishAllRendering when in force-compositing-mode.
......
......@@ -79,6 +79,7 @@ public:
WEBKIT_EXPORT WebSecurityOrigin securityOrigin() const;
WEBKIT_EXPORT WebString encoding() const;
WEBKIT_EXPORT WebString contentLanguage() const;
// The url of the OpenSearch Desription Document (if any).
WEBKIT_EXPORT WebURL openSearchDescriptionURL() const;
......
......@@ -81,6 +81,11 @@ WebString WebDocument::encoding() const
return constUnwrap<Document>()->encoding();
}
WebString WebDocument::contentLanguage() const
{
return constUnwrap<Document>()->contentLanguage();
}
WebURL WebDocument::openSearchDescriptionURL() const
{
return const_cast<Document*>(constUnwrap<Document>())->openSearchDescriptionURL();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment