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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLAnchorElement.h

Issue 1668553003: Fix server-side image map click location with "Open link in new tab" Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add Test for HTMLAnchorElement Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Simon Hausmann <hausmann@kde.org> 4 * (C) 2000 Simon Hausmann <hausmann@kde.org>
5 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // RelationSidebar = 0x00008000, 54 // RelationSidebar = 0x00008000,
55 // RelationTag = 0x00010000, 55 // RelationTag = 0x00010000,
56 // RelationUp = 0x00020000, 56 // RelationUp = 0x00020000,
57 RelationNoOpener = 0x00040000, 57 RelationNoOpener = 0x00040000,
58 }; 58 };
59 59
60 class CORE_EXPORT HTMLAnchorElement : public HTMLElement, public DOMURLUtils { 60 class CORE_EXPORT HTMLAnchorElement : public HTMLElement, public DOMURLUtils {
61 DEFINE_WRAPPERTYPEINFO(); 61 DEFINE_WRAPPERTYPEINFO();
62 public: 62 public:
63 static PassRefPtrWillBeRawPtr<HTMLAnchorElement> create(Document&); 63 static PassRefPtrWillBeRawPtr<HTMLAnchorElement> create(Document&);
64 static bool getClampedPointFromEvent(IntPoint&, const Event*);
65 static void appendServerMapMousePosition(StringBuilder&, IntPoint& clampedPo int);
64 66
65 ~HTMLAnchorElement() override; 67 ~HTMLAnchorElement() override;
66 68
67 KURL href() const; 69 KURL href() const;
68 void setHref(const AtomicString&); 70 void setHref(const AtomicString&);
69 71
70 const AtomicString& name() const; 72 const AtomicString& name() const;
71 73
72 KURL url() const final; 74 KURL url() const final;
73 void setURL(const KURL&) final; 75 void setURL(const KURL&) final;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 } 126 }
125 127
126 // Functions shared with the other anchor elements (i.e., SVG). 128 // Functions shared with the other anchor elements (i.e., SVG).
127 129
128 bool isEnterKeyKeydownEvent(Event*); 130 bool isEnterKeyKeydownEvent(Event*);
129 bool isLinkClick(Event*); 131 bool isLinkClick(Event*);
130 132
131 } // namespace blink 133 } // namespace blink
132 134
133 #endif // HTMLAnchorElement_h 135 #endif // HTMLAnchorElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698