Changeset 130191 in webkit


Ignore:
Timestamp:
Oct 2, 2012, 11:51:35 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

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):

Location:
trunk/Source/WebKit/chromium
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r130178 r130191  
     12012-10-02  Brian White  <bcwhite@chromium.org>
     2
     3        WebDocument doesn't export document language to outside users.
     4        https://bugs.webkit.org/show_bug.cgi?id=98066
     5
     6        Reviewed by Adam Barth.
     7
     8        Chromium uses the document language to offer translation.  It's been doing
     9        its own detection of this property but it would be better to get it from
     10        existing extraction code.
     11
     12        * public/WebDocument.h:
     13        (WebDocument):
     14        * src/WebDocument.cpp:
     15        (WebKit::WebDocument::contentLanguage):
     16        (WebKit):
     17
    1182012-10-02  Vangelis Kokkevis  <vangelis@chromium.org>
    219
  • trunk/Source/WebKit/chromium/public/WebDocument.h

    r124790 r130191  
    8080
    8181    WEBKIT_EXPORT WebString encoding() const;
     82    WEBKIT_EXPORT WebString contentLanguage() const;
    8283
    8384    // The url of the OpenSearch Desription Document (if any).
  • trunk/Source/WebKit/chromium/src/WebDocument.cpp

    r129423 r130191  
    8282}
    8383
     84WebString WebDocument::contentLanguage() const
     85{
     86    return constUnwrap<Document>()->contentLanguage();
     87}
     88
    8489WebURL WebDocument::openSearchDescriptionURL() const
    8590{
Note: See TracChangeset for help on using the changeset viewer.