| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
| 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights |
| 6 * reserved. | 6 * reserved. |
| 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
| 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 10 * (http://www.torchmobile.com/) | 10 * (http://www.torchmobile.com/) |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 static VisitedLinkState* create(const Document& document) { | 45 static VisitedLinkState* create(const Document& document) { |
| 46 return new VisitedLinkState(document); | 46 return new VisitedLinkState(document); |
| 47 } | 47 } |
| 48 | 48 |
| 49 void invalidateStyleForAllLinks(bool invalidateVisitedLinkHashes); | 49 void invalidateStyleForAllLinks(bool invalidateVisitedLinkHashes); |
| 50 void invalidateStyleForLink(LinkHash); | 50 void invalidateStyleForLink(LinkHash); |
| 51 | 51 |
| 52 EInsideLink determineLinkState(const Element& element) { | 52 EInsideLink determineLinkState(const Element& element) { |
| 53 if (element.isLink()) | 53 if (element.isLink()) |
| 54 return determineLinkStateSlowCase(element); | 54 return determineLinkStateSlowCase(element); |
| 55 return NotInsideLink; | 55 return EInsideLink::kNotInsideLink; |
| 56 } | 56 } |
| 57 | 57 |
| 58 DECLARE_TRACE(); | 58 DECLARE_TRACE(); |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 explicit VisitedLinkState(const Document&); | 61 explicit VisitedLinkState(const Document&); |
| 62 const Document& document() const { return *m_document; } | 62 const Document& document() const { return *m_document; } |
| 63 | 63 |
| 64 EInsideLink determineLinkStateSlowCase(const Element&); | 64 EInsideLink determineLinkStateSlowCase(const Element&); |
| 65 | 65 |
| 66 Member<const Document> m_document; | 66 Member<const Document> m_document; |
| 67 HashSet<LinkHash, LinkHashHash> m_linksCheckedForVisitedState; | 67 HashSet<LinkHash, LinkHashHash> m_linksCheckedForVisitedState; |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 } // namespace blink | 70 } // namespace blink |
| 71 | 71 |
| 72 #endif | 72 #endif |
| OLD | NEW |