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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 return; | 117 return; |
118 } | 118 } |
119 if (state == ParseHeight && i > start) { | 119 if (state == ParseHeight && i > start) { |
120 int height = charactersToInt(value + start, i - start); | 120 int height = charactersToInt(value + start, i - start); |
121 iconSizes.append(IntSize(width, height)); | 121 iconSizes.append(IntSize(width, height)); |
122 } | 122 } |
123 } | 123 } |
124 | 124 |
125 static LinkEventSender& linkLoadEventSender() | 125 static LinkEventSender& linkLoadEventSender() |
126 { | 126 { |
127 DEFINE_STATIC_LOCAL(LinkEventSender, sharedLoadEventSender, (LinkEventSender
::create(EventTypeNames::load))); | 127 DEFINE_STATIC_LOCAL(Persistent<LinkEventSender>, sharedLoadEventSender, (Lin
kEventSender::create(EventTypeNames::load))); |
128 return sharedLoadEventSender; | 128 return *sharedLoadEventSender; |
129 } | 129 } |
130 | 130 |
131 static bool styleSheetTypeIsSupported(const String& type) | 131 static bool styleSheetTypeIsSupported(const String& type) |
132 { | 132 { |
133 String trimmedType = ContentType(type).type(); | 133 String trimmedType = ContentType(type).type(); |
134 return trimmedType.isEmpty() || MIMETypeRegistry::isSupportedStyleSheetMIMET
ype(trimmedType); | 134 return trimmedType.isEmpty() || MIMETypeRegistry::isSupportedStyleSheetMIMET
ype(trimmedType); |
135 } | 135 } |
136 | 136 |
137 void HTMLLinkElement::parseSizesAttribute(const AtomicString& value, Vector<IntS
ize>& iconSizes) | 137 void HTMLLinkElement::parseSizesAttribute(const AtomicString& value, Vector<IntS
ize>& iconSizes) |
138 { | 138 { |
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 } | 793 } |
794 | 794 |
795 DEFINE_TRACE(LinkStyle) | 795 DEFINE_TRACE(LinkStyle) |
796 { | 796 { |
797 visitor->trace(m_sheet); | 797 visitor->trace(m_sheet); |
798 LinkResource::trace(visitor); | 798 LinkResource::trace(visitor); |
799 ResourceOwner<StyleSheetResource>::trace(visitor); | 799 ResourceOwner<StyleSheetResource>::trace(visitor); |
800 } | 800 } |
801 | 801 |
802 } // namespace blink | 802 } // namespace blink |
OLD | NEW |