| Index: headless/lib/web_document.cc
|
| diff --git a/headless/lib/web_document.cc b/headless/lib/web_document.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5978e5e162a2e5a36bdd2bfabf246d4aeee8b544
|
| --- /dev/null
|
| +++ b/headless/lib/web_document.cc
|
| @@ -0,0 +1,22 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "headless/public/web_document.h"
|
| +
|
| +#include "third_party/WebKit/public/web/WebDocument.h"
|
| +
|
| +namespace headless {
|
| +
|
| +WebDocument::WebDocument(const blink::WebDocument& web_document)
|
| + : WebNode(web_document) {}
|
| +
|
| +blink::WebDocument& WebDocument::web_document() {
|
| + return static_cast<blink::WebDocument&>(web_node_);
|
| +}
|
| +
|
| +const blink::WebDocument& WebDocument::web_document() const {
|
| + return static_cast<const blink::WebDocument&>(web_node_);
|
| +}
|
| +
|
| +} // namespace headless
|
|
|