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

Unified Diff: third_party/WebKit/Source/core/html/HTMLMenuItemElement.cpp

Issue 2380683007: 'icon' IDL attribute of HTMLMenuItemElement should reflect as URL. (Closed)
Patch Set: Created 4 years, 3 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: third_party/WebKit/Source/core/html/HTMLMenuItemElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLMenuItemElement.cpp b/third_party/WebKit/Source/core/html/HTMLMenuItemElement.cpp
index eb25dbe661401c079a5cfd28aa7363e86c4f8b7c..4cca21cf967f724e6ab14c89ed2a7949d59dc4fe 100644
--- a/third_party/WebKit/Source/core/html/HTMLMenuItemElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMenuItemElement.cpp
@@ -19,6 +19,11 @@ inline HTMLMenuItemElement::HTMLMenuItemElement(Document& document)
UseCounter::count(document, UseCounter::MenuItemElement);
}
+bool HTMLMenuItemElement::isURLAttribute(const Attribute& attribute) const
+{
+ return attribute.name() == iconAttr || HTMLElement::isURLAttribute(attribute);
+}
+
void HTMLMenuItemElement::defaultEventHandler(Event* event)
{
if (event->type() == EventTypeNames::click) {
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLMenuItemElement.h ('k') | third_party/WebKit/Source/core/html/HTMLMenuItemElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698