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 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. | 5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
6 * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com) | 6 * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com) |
7 * Copyright (C) 2011 Google Inc. All rights reserved. | 7 * Copyright (C) 2011 Google Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 } else if (name == hrefAttr) { | 167 } else if (name == hrefAttr) { |
168 process(); | 168 process(); |
169 } else if (name == typeAttr) { | 169 } else if (name == typeAttr) { |
170 m_type = value; | 170 m_type = value; |
171 process(); | 171 process(); |
172 } else if (name == sizesAttr) { | 172 } else if (name == sizesAttr) { |
173 m_sizes->setValue(value); | 173 m_sizes->setValue(value); |
174 parseSizesAttribute(value, m_iconSizes); | 174 parseSizesAttribute(value, m_iconSizes); |
175 process(); | 175 process(); |
176 } else if (name == mediaAttr) { | 176 } else if (name == mediaAttr) { |
177 m_media = value.string().lower(); | 177 m_media = value.lower(); |
178 process(); | 178 process(); |
179 } else if (name == disabledAttr) { | 179 } else if (name == disabledAttr) { |
180 if (LinkStyle* link = linkStyle()) | 180 if (LinkStyle* link = linkStyle()) |
181 link->setDisabledState(!value.isNull()); | 181 link->setDisabledState(!value.isNull()); |
182 } else { | 182 } else { |
183 if (name == titleAttr) { | 183 if (name == titleAttr) { |
184 if (LinkStyle* link = linkStyle()) | 184 if (LinkStyle* link = linkStyle()) |
185 link->setSheetTitle(value); | 185 link->setSheetTitle(value); |
186 } | 186 } |
187 | 187 |
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 removePendingSheet(); | 738 removePendingSheet(); |
739 } | 739 } |
740 | 740 |
741 void LinkStyle::trace(Visitor* visitor) | 741 void LinkStyle::trace(Visitor* visitor) |
742 { | 742 { |
743 visitor->trace(m_sheet); | 743 visitor->trace(m_sheet); |
744 LinkResource::trace(visitor); | 744 LinkResource::trace(visitor); |
745 } | 745 } |
746 | 746 |
747 } // namespace blink | 747 } // namespace blink |
OLD | NEW |