| 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) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All |
| 7 * rights reserved. | 7 * rights reserved. |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
| 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "core/dom/TextLinkColors.h" | 30 #include "core/dom/TextLinkColors.h" |
| 31 | 31 |
| 32 #include "core/css/CSSColorValue.h" | 32 #include "core/css/CSSColorValue.h" |
| 33 #include "core/css/CSSIdentifierValue.h" | 33 #include "core/css/CSSIdentifierValue.h" |
| 34 #include "core/css/StyleColor.h" | 34 #include "core/css/StyleColor.h" |
| 35 #include "core/layout/LayoutTheme.h" | 35 #include "core/layout/LayoutTheme.h" |
| 36 #include "wtf/text/WTFString.h" | 36 #include "wtf/text/WTFString.h" |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 using namespace cssvalue; |
| 41 |
| 40 TextLinkColors::TextLinkColors() : m_textColor(Color::black) { | 42 TextLinkColors::TextLinkColors() : m_textColor(Color::black) { |
| 41 resetLinkColor(); | 43 resetLinkColor(); |
| 42 resetVisitedLinkColor(); | 44 resetVisitedLinkColor(); |
| 43 resetActiveLinkColor(); | 45 resetActiveLinkColor(); |
| 44 } | 46 } |
| 45 | 47 |
| 46 void TextLinkColors::resetLinkColor() { | 48 void TextLinkColors::resetLinkColor() { |
| 47 m_linkColor = Color(0, 0, 238); | 49 m_linkColor = Color(0, 0, 238); |
| 48 } | 50 } |
| 49 | 51 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 75 case CSSValueWebkitFocusRingColor: | 77 case CSSValueWebkitFocusRingColor: |
| 76 return LayoutTheme::theme().focusRingColor(); | 78 return LayoutTheme::theme().focusRingColor(); |
| 77 case CSSValueCurrentcolor: | 79 case CSSValueCurrentcolor: |
| 78 return currentColor; | 80 return currentColor; |
| 79 default: | 81 default: |
| 80 return StyleColor::colorFromKeyword(valueID); | 82 return StyleColor::colorFromKeyword(valueID); |
| 81 } | 83 } |
| 82 } | 84 } |
| 83 | 85 |
| 84 } // namespace blink | 86 } // namespace blink |
| OLD | NEW |