From 2fdeeca8b07d9646a8bfe89736495d174e983ec6 Mon Sep 17 00:00:00 2001 From: Elliott Sprehn Date: Mon, 3 Nov 2014 19:08:16 -0800 Subject: [PATCH] Remove WebPageSerialzier related code. R=ojan@chromium.org Review URL: https://codereview.chromium.org/699623006 --- engine/core/dom/Element.cpp | 10 ---------- engine/core/dom/Element.h | 3 --- engine/core/html/HTMLAnchorElement.cpp | 5 ----- engine/core/html/HTMLAnchorElement.h | 1 - engine/core/html/HTMLImageElement.cpp | 10 ---------- engine/core/html/HTMLImageElement.h | 2 -- 6 files changed, 31 deletions(-) diff --git a/engine/core/dom/Element.cpp b/engine/core/dom/Element.cpp index 5ecf31db868..7ed41225758 100644 --- a/engine/core/dom/Element.cpp +++ b/engine/core/dom/Element.cpp @@ -660,16 +660,6 @@ void Element::attributeChanged(const QualifiedName& name, const AtomicString& ne setNeedsStyleRecalc(SubtreeStyleChange); } -bool Element::hasLegalLinkAttribute(const QualifiedName&) const -{ - return false; -} - -const QualifiedName& Element::subResourceAttributeName() const -{ - return nullName; -} - inline void Element::attributeChangedFromParserOrByCloning(const QualifiedName& name, const AtomicString& newValue, AttributeModificationReason reason) { if (name == HTMLNames::isAttr) diff --git a/engine/core/dom/Element.h b/engine/core/dom/Element.h index b4ea12891ae..58551f60fcc 100644 --- a/engine/core/dom/Element.h +++ b/engine/core/dom/Element.h @@ -184,9 +184,6 @@ public: virtual void parseAttribute(const QualifiedName&, const AtomicString&); - virtual bool hasLegalLinkAttribute(const QualifiedName&) const; - virtual const QualifiedName& subResourceAttributeName() const; - // Only called by the parser immediately after element construction. void parserSetAttributes(const Vector&); diff --git a/engine/core/html/HTMLAnchorElement.cpp b/engine/core/html/HTMLAnchorElement.cpp index 8a08fec2e33..9bed919ebbe 100644 --- a/engine/core/html/HTMLAnchorElement.cpp +++ b/engine/core/html/HTMLAnchorElement.cpp @@ -103,11 +103,6 @@ bool HTMLAnchorElement::isURLAttribute(const Attribute& attribute) const return attribute.name() == HTMLNames::hrefAttr || HTMLElement::isURLAttribute(attribute); } -bool HTMLAnchorElement::hasLegalLinkAttribute(const QualifiedName& name) const -{ - return name == HTMLNames::hrefAttr || HTMLElement::hasLegalLinkAttribute(name); -} - bool HTMLAnchorElement::canStartSelection() const { return hasEditableStyle(); diff --git a/engine/core/html/HTMLAnchorElement.h b/engine/core/html/HTMLAnchorElement.h index 0eaf76f8ca1..50847959438 100644 --- a/engine/core/html/HTMLAnchorElement.h +++ b/engine/core/html/HTMLAnchorElement.h @@ -50,7 +50,6 @@ private: virtual void defaultEventHandler(Event*) override final; virtual bool willRespondToMouseClickEvents() override final; virtual bool isURLAttribute(const Attribute&) const override final; - virtual bool hasLegalLinkAttribute(const QualifiedName&) const override final; virtual bool canStartSelection() const override final; void handleClick(Event*); diff --git a/engine/core/html/HTMLImageElement.cpp b/engine/core/html/HTMLImageElement.cpp index af8c527bd82..451e6850c07 100644 --- a/engine/core/html/HTMLImageElement.cpp +++ b/engine/core/html/HTMLImageElement.cpp @@ -377,16 +377,6 @@ bool HTMLImageElement::isURLAttribute(const Attribute& attribute) const || HTMLElement::isURLAttribute(attribute); } -bool HTMLImageElement::hasLegalLinkAttribute(const QualifiedName& name) const -{ - return name == HTMLNames::srcAttr || HTMLElement::hasLegalLinkAttribute(name); -} - -const QualifiedName& HTMLImageElement::subResourceAttributeName() const -{ - return HTMLNames::srcAttr; -} - void HTMLImageElement::setHeight(int value) { setIntegralAttribute(HTMLNames::heightAttr, value); diff --git a/engine/core/html/HTMLImageElement.h b/engine/core/html/HTMLImageElement.h index 6e9c0a1e2d5..5c22dc34156 100644 --- a/engine/core/html/HTMLImageElement.h +++ b/engine/core/html/HTMLImageElement.h @@ -106,8 +106,6 @@ private: virtual bool canStartSelection() const override; virtual bool isURLAttribute(const Attribute&) const override; - virtual bool hasLegalLinkAttribute(const QualifiedName&) const override; - virtual const QualifiedName& subResourceAttributeName() const override; virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; virtual void removedFrom(ContainerNode*) override;