#include "config.h"
#include "public/web/WebDocument.h"
-#include "bindings/v8/Dictionary.h"
-#include "bindings/v8/ExceptionState.h"
-#include "bindings/v8/ScriptState.h"
-#include "bindings/v8/ScriptValue.h"
+#include "bindings/core/v8/Dictionary.h"
+#include "bindings/core/v8/ExceptionState.h"
+#include "bindings/core/v8/ScriptState.h"
+#include "bindings/core/v8/ScriptValue.h"
#include "core/accessibility/AXObjectCache.h"
-#include "core/css/CSSParserMode.h"
#include "core/css/StyleSheetContents.h"
#include "core/dom/CSSSelectorWatch.h"
#include "core/dom/Document.h"
#include "wtf/PassRefPtr.h"
#include <v8.h>
-using namespace WebCore;
+using namespace blink;
namespace blink {
return constUnwrap<Document>()->referrer();
}
-WebColor WebDocument::brandColor() const
+WebColor WebDocument::themeColor() const
{
- return constUnwrap<Document>()->brandColor().rgb();
+ return constUnwrap<Document>()->themeColor().rgb();
}
WebURL WebDocument::openSearchDescriptionURL() const
void WebDocument::cancelFullScreen()
{
if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExists(*unwrap<Document>()))
- fullscreen->webkitCancelFullScreen();
+ fullscreen->fullyExitFullscreen();
}
WebElement WebDocument::fullScreenElement() const
return element;
}
+void WebDocument::setIsTransitionDocument()
+{
+ // This ensures the transition UA stylesheet gets applied.
+ unwrap<Document>()->setIsTransitionDocument();
+}
+
+void WebDocument::beginExitTransition(const WebString& cssSelector)
+{
+ RefPtrWillBeRawPtr<Document> document = unwrap<Document>();
+ document->hideTransitionElements(cssSelector);
+ document->styleEngine()->enableExitTransitionStylesheets();
+}
+
WebAXObject WebDocument::accessibilityObject() const
{
const Document* document = constUnwrap<Document>();
for (size_t i = 0; i < regions.size(); i++) {
const AnnotatedRegionValue& value = regions[i];
draggableRegions[i].draggable = value.draggable;
- draggableRegions[i].bounds = WebCore::IntRect(value.bounds);
+ draggableRegions[i].bounds = blink::IntRect(value.bounds);
}
}
return draggableRegions;