| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. | 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. |
| 4 * All rights reserved. | 4 * All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 } | 107 } |
| 108 | 108 |
| 109 void StyleResolverState::setCustomPropertySetForApplyAtRule( | 109 void StyleResolverState::setCustomPropertySetForApplyAtRule( |
| 110 const String& string, | 110 const String& string, |
| 111 StylePropertySet* customPropertySet) { | 111 StylePropertySet* customPropertySet) { |
| 112 m_customPropertySetsForApplyAtRule.set(string, customPropertySet); | 112 m_customPropertySetsForApplyAtRule.set(string, customPropertySet); |
| 113 } | 113 } |
| 114 | 114 |
| 115 StylePropertySet* StyleResolverState::customPropertySetForApplyAtRule( | 115 StylePropertySet* StyleResolverState::customPropertySetForApplyAtRule( |
| 116 const String& string) { | 116 const String& string) { |
| 117 return m_customPropertySetsForApplyAtRule.get(string); | 117 return m_customPropertySetsForApplyAtRule.at(string); |
| 118 } | 118 } |
| 119 | 119 |
| 120 HeapHashMap<CSSPropertyID, Member<const CSSValue>>& | 120 HeapHashMap<CSSPropertyID, Member<const CSSValue>>& |
| 121 StyleResolverState::parsedPropertiesForPendingSubstitutionCache( | 121 StyleResolverState::parsedPropertiesForPendingSubstitutionCache( |
| 122 const CSSPendingSubstitutionValue& value) const { | 122 const CSSPendingSubstitutionValue& value) const { |
| 123 HeapHashMap<CSSPropertyID, Member<const CSSValue>>* map = | 123 HeapHashMap<CSSPropertyID, Member<const CSSValue>>* map = |
| 124 m_parsedPropertiesForPendingSubstitutionCache.get(&value); | 124 m_parsedPropertiesForPendingSubstitutionCache.at(&value); |
| 125 if (!map) { | 125 if (!map) { |
| 126 map = new HeapHashMap<CSSPropertyID, Member<const CSSValue>>; | 126 map = new HeapHashMap<CSSPropertyID, Member<const CSSValue>>; |
| 127 m_parsedPropertiesForPendingSubstitutionCache.set(&value, map); | 127 m_parsedPropertiesForPendingSubstitutionCache.set(&value, map); |
| 128 } | 128 } |
| 129 return *map; | 129 return *map; |
| 130 } | 130 } |
| 131 | 131 |
| 132 } // namespace blink | 132 } // namespace blink |
| OLD | NEW |