| 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, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 } | 94 } |
| 95 | 95 |
| 96 String CSSImageValue::customCSSText() const | 96 String CSSImageValue::customCSSText() const |
| 97 { | 97 { |
| 98 return "url(" + quoteCSSURLIfNeeded(m_url) + ")"; | 98 return "url(" + quoteCSSURLIfNeeded(m_url) + ")"; |
| 99 } | 99 } |
| 100 | 100 |
| 101 PassRefPtr<CSSValue> CSSImageValue::cloneForCSSOM() const | 101 PassRefPtr<CSSValue> CSSImageValue::cloneForCSSOM() const |
| 102 { | 102 { |
| 103 // NOTE: We expose CSSImageValues as URI primitive values in CSSOM to mainta
in old behavior. | 103 // NOTE: We expose CSSImageValues as URI primitive values in CSSOM to mainta
in old behavior. |
| 104 RefPtr<CSSPrimitiveValue> uriValue = CSSPrimitiveValue::create(m_url, CSSPri
mitiveValue::CSS_URI); | 104 RefPtrWillBeRawPtr<CSSPrimitiveValue> uriValue = CSSPrimitiveValue::create(m
_url, CSSPrimitiveValue::CSS_URI); |
| 105 uriValue->setCSSOMSafe(); | 105 uriValue->setCSSOMSafe(); |
| 106 return uriValue.release(); | 106 return uriValue.release(); |
| 107 } | 107 } |
| 108 | 108 |
| 109 bool CSSImageValue::knownToBeOpaque(const RenderObject* renderer) const | 109 bool CSSImageValue::knownToBeOpaque(const RenderObject* renderer) const |
| 110 { | 110 { |
| 111 return m_image ? m_image->knownToBeOpaque(renderer) : false; | 111 return m_image ? m_image->knownToBeOpaque(renderer) : false; |
| 112 } | 112 } |
| 113 | 113 |
| 114 void CSSImageValue::traceAfterDispatch(Visitor* visitor) | 114 void CSSImageValue::traceAfterDispatch(Visitor* visitor) |
| 115 { | 115 { |
| 116 CSSValue::traceAfterDispatch(visitor); | 116 CSSValue::traceAfterDispatch(visitor); |
| 117 } | 117 } |
| 118 | 118 |
| 119 } // namespace WebCore | 119 } // namespace WebCore |
| OLD | NEW |