| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 } | 158 } |
| 159 | 159 |
| 160 String result = getPropertyValueInternal(static_cast<CSSPropertyID>(propInfo
->propID)); | 160 String result = getPropertyValueInternal(static_cast<CSSPropertyID>(propInfo
->propID)); |
| 161 if (result.isNull()) | 161 if (result.isNull()) |
| 162 result = ""; // convert null to empty string. | 162 result = ""; // convert null to empty string. |
| 163 | 163 |
| 164 returnValue1 = result; | 164 returnValue1 = result; |
| 165 returnValue1Enabled = true; | 165 returnValue1Enabled = true; |
| 166 } | 166 } |
| 167 | 167 |
| 168 bool CSSStyleDeclaration::anonymousNamedSetter(const AtomicString& propertyName,
const String& value, ExceptionCode& ec) | 168 bool CSSStyleDeclaration::anonymousNamedSetter(const AtomicString& propertyName,
const String& value, bool isValueNull, bool isValueUndefined, ExceptionCode& ec
) |
| 169 { | 169 { |
| 170 String propertyValue = value; | 170 String propertyValue = value; |
| 171 CSSPropertyInfo* propInfo = CSSStyleDeclaration::cssPropertyInfo(propertyNam
e); | 171 CSSPropertyInfo* propInfo = CSSStyleDeclaration::cssPropertyInfo(propertyNam
e); |
| 172 if (!propInfo) | 172 if (!propInfo) |
| 173 return false; | 173 return false; |
| 174 | 174 |
| 175 if (propInfo->hadPixelOrPosPrefix) | 175 if (propInfo->hadPixelOrPosPrefix) |
| 176 propertyValue.append("px"); | 176 propertyValue.append("px"); |
| 177 | 177 |
| 178 this->setPropertyInternal(static_cast<CSSPropertyID>(propInfo->propID), prop
ertyValue, false, ec); | 178 this->setPropertyInternal(static_cast<CSSPropertyID>(propInfo->propID), prop
ertyValue, false, ec); |
| 179 | 179 |
| 180 return true; | 180 return true; |
| 181 } | 181 } |
| 182 | 182 |
| 183 } // namespace WebCore | 183 } // namespace WebCore |
| OLD | NEW |