| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
| 4 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. | 4 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. |
| 5 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 5 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 // When replacing an existing property value, this moves the property to the
end of the list. | 248 // When replacing an existing property value, this moves the property to the
end of the list. |
| 249 // Firefox preserves the position, and MSIE moves the property to the beginn
ing. | 249 // Firefox preserves the position, and MSIE moves the property to the beginn
ing. |
| 250 return CSSParser::parseValue(this, unresolvedProperty, value, important, css
ParserMode(), contextStyleSheet); | 250 return CSSParser::parseValue(this, unresolvedProperty, value, important, css
ParserMode(), contextStyleSheet); |
| 251 } | 251 } |
| 252 | 252 |
| 253 void MutableStylePropertySet::setProperty(CSSPropertyID propertyID, CSSPrimitive
Value prpValue, bool important) | 253 void MutableStylePropertySet::setProperty(CSSPropertyID propertyID, CSSPrimitive
Value prpValue, bool important) |
| 254 { | 254 { |
| 255 setProperty(propertyID, CSSValue(prpValue), important); | 255 setProperty(propertyID, CSSValue(prpValue), important); |
| 256 } | 256 } |
| 257 | 257 |
| 258 void MutableStylePropertySet::setProperty(CSSPropertyID propertyID, CSSValue prp
Value, bool important) | 258 void MutableStylePropertySet::setProperty(CSSPropertyID propertyID, const CSSVal
ue& prpValue, bool important) |
| 259 { | 259 { |
| 260 StylePropertyShorthand shorthand = shorthandForProperty(propertyID); | 260 StylePropertyShorthand shorthand = shorthandForProperty(propertyID); |
| 261 if (!shorthand.length()) { | 261 if (!shorthand.length()) { |
| 262 setProperty(CSSProperty(propertyID, prpValue, important)); | 262 setProperty(CSSProperty(propertyID, prpValue, important)); |
| 263 return; | 263 return; |
| 264 } | 264 } |
| 265 | 265 |
| 266 removePropertiesInSet(shorthand.properties(), shorthand.length()); | 266 removePropertiesInSet(shorthand.properties(), shorthand.length()); |
| 267 | 267 |
| 268 CSSValue value = prpValue; | 268 CSSValue value = prpValue; |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 { | 513 { |
| 514 return adoptRefWillBeNoop(new MutableStylePropertySet(cssParserMode)); | 514 return adoptRefWillBeNoop(new MutableStylePropertySet(cssParserMode)); |
| 515 } | 515 } |
| 516 | 516 |
| 517 PassRefPtrWillBeRawPtr<MutableStylePropertySet> MutableStylePropertySet::create(
const CSSProperty* properties, unsigned count) | 517 PassRefPtrWillBeRawPtr<MutableStylePropertySet> MutableStylePropertySet::create(
const CSSProperty* properties, unsigned count) |
| 518 { | 518 { |
| 519 return adoptRefWillBeNoop(new MutableStylePropertySet(properties, count)); | 519 return adoptRefWillBeNoop(new MutableStylePropertySet(properties, count)); |
| 520 } | 520 } |
| 521 | 521 |
| 522 } // namespace blink | 522 } // namespace blink |
| OLD | NEW |