Commit eee13213 authored by yoav@yoav.ws's avatar yoav@yoav.ws

Add the picture element

Add the DOM part of the picture element, without actually using it for anything useful just yet.

BUG=368830

Review URL: https://codereview.chromium.org/261823002

git-svn-id: svn://svn.chromium.org/blink/trunk@173575 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 0574b4ea
......@@ -153,6 +153,7 @@ HTMLOptionsCollection
HTMLOutputElement
HTMLParagraphElement
HTMLParamElement
HTMLPictureElement
HTMLPreElement
HTMLProgressElement
HTMLQuoteElement
......
......@@ -184,6 +184,7 @@
'html/HTMLOutputElement.idl',
'html/HTMLParagraphElement.idl',
'html/HTMLParamElement.idl',
'html/HTMLPictureElement.idl',
'html/HTMLPreElement.idl',
'html/HTMLProgressElement.idl',
'html/HTMLQuoteElement.idl',
......@@ -2384,6 +2385,7 @@
'html/HTMLParagraphElement.h',
'html/HTMLParamElement.cpp',
'html/HTMLParamElement.h',
'html/HTMLPictureElement.cpp',
'html/HTMLPlugInElement.cpp',
'html/HTMLPlugInElement.h',
'html/HTMLPreElement.cpp',
......
// Copyright 2014 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 "config.h"
#include "core/html/HTMLPictureElement.h"
#include "HTMLNames.h"
namespace WebCore {
using namespace HTMLNames;
HTMLPictureElement::HTMLPictureElement(Document& document)
: HTMLElement(pictureTag, document)
{
ScriptWrappable::init(this);
}
PassRefPtr<HTMLPictureElement> HTMLPictureElement::create(Document& document)
{
return adoptRef(new HTMLPictureElement(document));
}
} // namespace
// Copyright 2014 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.
#ifndef HTMLPictureElement_h
#define HTMLPictureElement_h
#include "core/html/HTMLElement.h"
namespace WebCore {
class HTMLPictureElement FINAL : public HTMLElement {
public:
static PassRefPtr<HTMLPictureElement> create(Document&);
protected:
explicit HTMLPictureElement(Document&);
};
} // namespace
#endif
// Copyright 2014 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.
// http://picture.responsiveimages.org
[
RuntimeEnabled=Picture
] interface HTMLPictureElement : HTMLElement {
};
......@@ -97,6 +97,7 @@ output constructorNeedsFormElement
shadow interfaceName=HTMLShadowElement
p interfaceName=HTMLParagraphElement
param
picture interfaceName=HTMLPictureElement, runtimeEnabled=picture
plaintext interfaceName=HTMLElement
pre
progress interfaceName=HTMLProgressElement
......
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