| OLD | NEW | 
|    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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   75     bool isLiveLink() const; |   75     bool isLiveLink() const; | 
|   76  |   76  | 
|   77     virtual bool willRespondToMouseClickEvents() OVERRIDE FINAL; |   77     virtual bool willRespondToMouseClickEvents() OVERRIDE FINAL; | 
|   78  |   78  | 
|   79     bool hasRel(uint32_t relation) const; |   79     bool hasRel(uint32_t relation) const; | 
|   80     void setRel(const AtomicString&); |   80     void setRel(const AtomicString&); | 
|   81  |   81  | 
|   82     LinkHash visitedLinkHash() const; |   82     LinkHash visitedLinkHash() const; | 
|   83     void invalidateCachedVisitedLinkHash() { m_cachedVisitedLinkHash = 0; } |   83     void invalidateCachedVisitedLinkHash() { m_cachedVisitedLinkHash = 0; } | 
|   84  |   84  | 
|   85     virtual void trace(Visitor*) OVERRIDE; |  | 
|   86  |  | 
|   87 protected: |   85 protected: | 
|   88     HTMLAnchorElement(const QualifiedName&, Document&); |   86     HTMLAnchorElement(const QualifiedName&, Document&); | 
|   89  |   87  | 
|   90     virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
     IDE; |   88     virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
     IDE; | 
|   91     virtual bool supportsFocus() const OVERRIDE; |   89     virtual bool supportsFocus() const OVERRIDE; | 
|   92  |   90  | 
|   93 private: |   91 private: | 
|   94     virtual bool isMouseFocusable() const OVERRIDE; |   92     virtual bool isMouseFocusable() const OVERRIDE; | 
|   95     virtual bool isKeyboardFocusable() const OVERRIDE; |   93     virtual bool isKeyboardFocusable() const OVERRIDE; | 
|   96     virtual void defaultEventHandler(Event*) OVERRIDE FINAL; |   94     virtual void defaultEventHandler(Event*) OVERRIDE FINAL; | 
|   97     virtual void setActive(bool = true) OVERRIDE FINAL; |   95     virtual void setActive(bool = true) OVERRIDE FINAL; | 
|   98     virtual void accessKeyAction(bool sendMouseEvents) OVERRIDE FINAL; |   96     virtual void accessKeyAction(bool sendMouseEvents) OVERRIDE FINAL; | 
|   99     virtual bool isURLAttribute(const Attribute&) const OVERRIDE FINAL; |   97     virtual bool isURLAttribute(const Attribute&) const OVERRIDE FINAL; | 
|  100     virtual bool hasLegalLinkAttribute(const QualifiedName&) const OVERRIDE FINA
     L; |   98     virtual bool hasLegalLinkAttribute(const QualifiedName&) const OVERRIDE FINA
     L; | 
|  101     virtual bool canStartSelection() const OVERRIDE FINAL; |   99     virtual bool canStartSelection() const OVERRIDE FINAL; | 
|  102     virtual short tabIndex() const OVERRIDE FINAL; |  100     virtual short tabIndex() const OVERRIDE FINAL; | 
|  103     virtual bool draggable() const OVERRIDE FINAL; |  101     virtual bool draggable() const OVERRIDE FINAL; | 
|  104     virtual bool isInteractiveContent() const OVERRIDE FINAL; |  102     virtual bool isInteractiveContent() const OVERRIDE FINAL; | 
|  105  |  103  | 
|  106     void sendPings(const KURL& destinationURL); |  104     void sendPings(const KURL& destinationURL); | 
|  107     AtomicString target() const; |  105     AtomicString target() const; | 
|  108     void handleClick(Event*); |  106     void handleClick(Event*); | 
|  109  |  107  | 
|  110     class PrefetchEventHandler; |  | 
|  111     PrefetchEventHandler* prefetchEventHandler(); |  | 
|  112  |  | 
|  113     uint32_t m_linkRelations; |  108     uint32_t m_linkRelations; | 
|  114     OwnPtrWillBeMember<PrefetchEventHandler> m_prefetchEventHandler; |  | 
|  115     mutable LinkHash m_cachedVisitedLinkHash; |  109     mutable LinkHash m_cachedVisitedLinkHash; | 
|  116 }; |  110 }; | 
|  117  |  111  | 
|  118 inline LinkHash HTMLAnchorElement::visitedLinkHash() const |  112 inline LinkHash HTMLAnchorElement::visitedLinkHash() const | 
|  119 { |  113 { | 
|  120     if (!m_cachedVisitedLinkHash) |  114     if (!m_cachedVisitedLinkHash) | 
|  121         m_cachedVisitedLinkHash = WebCore::visitedLinkHash(document().baseURL(),
      fastGetAttribute(HTMLNames::hrefAttr)); |  115         m_cachedVisitedLinkHash = WebCore::visitedLinkHash(document().baseURL(),
      fastGetAttribute(HTMLNames::hrefAttr)); | 
|  122     return m_cachedVisitedLinkHash; |  116     return m_cachedVisitedLinkHash; | 
|  123 } |  117 } | 
|  124  |  118  | 
|  125 // Functions shared with the other anchor elements (i.e., SVG). |  119 // Functions shared with the other anchor elements (i.e., SVG). | 
|  126  |  120  | 
|  127 bool isEnterKeyKeydownEvent(Event*); |  121 bool isEnterKeyKeydownEvent(Event*); | 
|  128 bool isLinkClick(Event*); |  122 bool isLinkClick(Event*); | 
|  129  |  123  | 
|  130 } // namespace WebCore |  124 } // namespace WebCore | 
|  131  |  125  | 
|  132 #endif // HTMLAnchorElement_h |  126 #endif // HTMLAnchorElement_h | 
| OLD | NEW |