| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> | 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. |
| 4 * All rights reserved. | 4 * All rights reserved. |
| 5 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 5 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 6 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> | 6 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> |
| 7 * Copyright (C) 2011 Sencha, Inc. All rights reserved. | 7 * Copyright (C) 2011 Sencha, 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 Lesser General Public | 10 * modify it under the terms of the GNU Lesser General Public |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 } | 194 } |
| 195 | 195 |
| 196 inline CSSPrimitiveValue* zoomAdjustedPixelValue(double value, | 196 inline CSSPrimitiveValue* zoomAdjustedPixelValue(double value, |
| 197 const ComputedStyle& style) { | 197 const ComputedStyle& style) { |
| 198 return CSSPrimitiveValue::create(adjustFloatForAbsoluteZoom(value, style), | 198 return CSSPrimitiveValue::create(adjustFloatForAbsoluteZoom(value, style), |
| 199 CSSPrimitiveValue::UnitType::Pixels); | 199 CSSPrimitiveValue::UnitType::Pixels); |
| 200 } | 200 } |
| 201 | 201 |
| 202 void logUnimplementedPropertyID(CSSPropertyID propertyID) { | 202 void logUnimplementedPropertyID(CSSPropertyID propertyID) { |
| 203 DEFINE_STATIC_LOCAL(HashSet<CSSPropertyID>, propertyIDSet, ()); | 203 DEFINE_STATIC_LOCAL(HashSet<CSSPropertyID>, propertyIDSet, ()); |
| 204 if (!propertyIDSet.add(propertyID).isNewEntry) | 204 if (!propertyIDSet.insert(propertyID).isNewEntry) |
| 205 return; | 205 return; |
| 206 | 206 |
| 207 DLOG(ERROR) << "Blink does not yet implement getComputedStyle for '" | 207 DLOG(ERROR) << "Blink does not yet implement getComputedStyle for '" |
| 208 << getPropertyName(propertyID) << "'."; | 208 << getPropertyName(propertyID) << "'."; |
| 209 } | 209 } |
| 210 | 210 |
| 211 bool isLayoutDependent(CSSPropertyID propertyID, | 211 bool isLayoutDependent(CSSPropertyID propertyID, |
| 212 const ComputedStyle* style, | 212 const ComputedStyle* style, |
| 213 LayoutObject* layoutObject) { | 213 LayoutObject* layoutObject) { |
| 214 if (!layoutObject) | 214 if (!layoutObject) |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 "These styles are computed, and therefore the '" + | 562 "These styles are computed, and therefore the '" + |
| 563 getPropertyNameString(id) + "' property is read-only."); | 563 getPropertyNameString(id) + "' property is read-only."); |
| 564 } | 564 } |
| 565 | 565 |
| 566 DEFINE_TRACE(CSSComputedStyleDeclaration) { | 566 DEFINE_TRACE(CSSComputedStyleDeclaration) { |
| 567 visitor->trace(m_node); | 567 visitor->trace(m_node); |
| 568 CSSStyleDeclaration::trace(visitor); | 568 CSSStyleDeclaration::trace(visitor); |
| 569 } | 569 } |
| 570 | 570 |
| 571 } // namespace blink | 571 } // namespace blink |
| OLD | NEW |