Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(645)

Unified Diff: Source/core/html/HTMLMenuitemElement.cpp

Issue 243403006: Implement contextmenu attribute with basic support of <menu> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added unit tests Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/HTMLMenuitemElement.cpp
diff --git a/Source/core/html/HTMLPictureElement.cpp b/Source/core/html/HTMLMenuitemElement.cpp
similarity index 51%
copy from Source/core/html/HTMLPictureElement.cpp
copy to Source/core/html/HTMLMenuitemElement.cpp
index ebf7f21b17f1de6f7cc42e7511cd7748b940da41..cbedadb2908f6221cb08bed8510b0898c5baead5 100644
--- a/Source/core/html/HTMLPictureElement.cpp
+++ b/Source/core/html/HTMLMenuitemElement.cpp
@@ -3,7 +3,7 @@
// found in the LICENSE file.
#include "config.h"
-#include "core/html/HTMLPictureElement.h"
+#include "core/html/HTMLMenuitemElement.h"
#include "HTMLNames.h"
@@ -11,15 +11,15 @@ namespace WebCore {
using namespace HTMLNames;
-HTMLPictureElement::HTMLPictureElement(Document& document)
- : HTMLElement(pictureTag, document)
+inline HTMLMenuitemElement::HTMLMenuitemElement(Document& document)
+ : HTMLElement(menuitemTag, document)
{
ScriptWrappable::init(this);
}
-PassRefPtr<HTMLPictureElement> HTMLPictureElement::create(Document& document)
+PassRefPtr<HTMLMenuitemElement> HTMLMenuitemElement::create(Document& document)
{
- return adoptRef(new HTMLPictureElement(document));
+ return adoptRef(new HTMLMenuitemElement(document));
}
-} // namespace
+}

Powered by Google App Engine
This is Rietveld 408576698