diff options
Diffstat (limited to 'Source/WebKit/chromium/src/WebDocument.cpp')
-rw-r--r-- | Source/WebKit/chromium/src/WebDocument.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/Source/WebKit/chromium/src/WebDocument.cpp b/Source/WebKit/chromium/src/WebDocument.cpp index 3486613be..c7a3a834a 100644 --- a/Source/WebKit/chromium/src/WebDocument.cpp +++ b/Source/WebKit/chromium/src/WebDocument.cpp @@ -56,8 +56,7 @@ #include "WebFrameImpl.h" #include "WebNodeCollection.h" #include "WebNodeList.h" -#include "platform/WebURL.h" - +#include <public/WebURL.h> #include <wtf/PassRefPtr.h> using namespace WebCore; @@ -81,6 +80,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(); @@ -256,16 +260,15 @@ WebAccessibilityObject WebDocument::accessibilityObjectFromID(int axID) const WebVector<WebDraggableRegion> WebDocument::draggableRegions() const { WebVector<WebDraggableRegion> draggableRegions; -#if ENABLE(WIDGET_REGION) +#if ENABLE(DRAGGABLE_REGION) const Document* document = constUnwrap<Document>(); - if (document->hasDashboardRegions()) { - const Vector<DashboardRegionValue>& regions = document->dashboardRegions(); + if (document->hasAnnotatedRegions()) { + const Vector<AnnotatedRegionValue>& regions = document->annotatedRegions(); draggableRegions = WebVector<WebDraggableRegion>(regions.size()); for (size_t i = 0; i < regions.size(); i++) { - const DashboardRegionValue& value = regions[i]; - draggableRegions[i].label = value.label; + const AnnotatedRegionValue& value = regions[i]; + draggableRegions[i].draggable = value.draggable; draggableRegions[i].bounds = WebCore::IntRect(value.bounds); - draggableRegions[i].clip = WebCore::IntRect(value.clip); } } #endif |