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

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

Issue 375673002: Remove unneeded getters/setters (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add more Created 6 years, 5 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/HTMLAnchorElement.cpp
diff --git a/Source/core/html/HTMLAnchorElement.cpp b/Source/core/html/HTMLAnchorElement.cpp
index e94d808541d61fff5b1c7bd9f82ff5da1c61e957..1e9b10f7abba352de260955463e3a875eeaf827c 100644
--- a/Source/core/html/HTMLAnchorElement.cpp
+++ b/Source/core/html/HTMLAnchorElement.cpp
@@ -293,11 +293,6 @@ short HTMLAnchorElement::tabIndex() const
return Element::tabIndex();
}
-AtomicString HTMLAnchorElement::target() const
-{
- return getAttribute(targetAttr);
-}
-
bool HTMLAnchorElement::isLiveLink() const
{
return isLink() && !hasEditableStyle();
@@ -346,7 +341,7 @@ void HTMLAnchorElement::handleClick(Event* event)
frame->loader().client()->loadURLExternally(request, NavigationPolicyDownload, suggestedName);
} else {
- FrameLoadRequest frameRequest(&document(), request, target());
+ FrameLoadRequest frameRequest(&document(), request, getAttribute(targetAttr));
frameRequest.setTriggeringEvent(event);
if (hasRel(RelationNoReferrer))
frameRequest.setShouldSendReferrer(NeverSendReferrer);

Powered by Google App Engine
This is Rietveld 408576698