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

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

Issue 2905763003: Rollback ContextMenu (Closed)
Patch Set: Delete RuntimeEnabledFeatures::contextMenuEnabled Created 3 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: third_party/WebKit/Source/core/html/HTMLMenuElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLMenuElement.cpp b/third_party/WebKit/Source/core/html/HTMLMenuElement.cpp
index 59ffce336f43422f5ecc01a163401ad83245cd06..d26d981ad7fd39584f171b37ab346bc1e4a84185 100644
--- a/third_party/WebKit/Source/core/html/HTMLMenuElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMenuElement.cpp
@@ -31,25 +31,6 @@ using namespace HTMLNames;
inline HTMLMenuElement::HTMLMenuElement(Document& document)
: HTMLElement(menuTag, document) {}
-const String HTMLMenuElement::type() const {
- const AtomicString menuType = FastGetAttribute(typeAttr);
- if (EqualIgnoringASCIICase(menuType, "context")) {
- return "context";
- }
- if (EqualIgnoringASCIICase(menuType, "toolbar")) {
- return "toolbar";
- }
- if (parentNode() && isHTMLMenuElement(parentNode()) &&
- toHTMLMenuElement(parentNode())->type() == "context") {
- return "context";
- }
- return "toolbar";
-}
-
-void HTMLMenuElement::setType(const AtomicString& type) {
- setAttribute(typeAttr, type);
-}
-
DEFINE_NODE_FACTORY(HTMLMenuElement)
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698