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.
All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. |
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> | 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> |
6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. | 6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Lesser General Public | 9 * modify it under the terms of the GNU Lesser General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 1328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1339 list->append(zoomAdjustedPixelValueForLength(fillSize.size.width(), style)); | 1339 list->append(zoomAdjustedPixelValueForLength(fillSize.size.width(), style)); |
1340 list->append(zoomAdjustedPixelValueForLength(fillSize.size.height(), style))
; | 1340 list->append(zoomAdjustedPixelValueForLength(fillSize.size.height(), style))
; |
1341 return list.release(); | 1341 return list.release(); |
1342 } | 1342 } |
1343 | 1343 |
1344 static PassRefPtrWillBeRawPtr<CSSValue> valueForContentData(const RenderStyle& s
tyle) | 1344 static PassRefPtrWillBeRawPtr<CSSValue> valueForContentData(const RenderStyle& s
tyle) |
1345 { | 1345 { |
1346 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparated()
; | 1346 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparated()
; |
1347 for (const ContentData* contentData = style.contentData(); contentData; cont
entData = contentData->next()) { | 1347 for (const ContentData* contentData = style.contentData(); contentData; cont
entData = contentData->next()) { |
1348 if (contentData->isCounter()) { | 1348 if (contentData->isCounter()) { |
1349 const CounterContent* counter = static_cast<const CounterContentData
*>(contentData)->counter(); | 1349 const CounterContent* counter = toCounterContentData(contentData)->c
ounter(); |
1350 ASSERT(counter); | 1350 ASSERT(counter); |
1351 list->append(cssValuePool().createValue(counter->identifier(), CSSPr
imitiveValue::CSS_COUNTER_NAME)); | 1351 list->append(cssValuePool().createValue(counter->identifier(), CSSPr
imitiveValue::CSS_COUNTER_NAME)); |
1352 } else if (contentData->isImage()) { | 1352 } else if (contentData->isImage()) { |
1353 const StyleImage* image = static_cast<const ImageContentData*>(conte
ntData)->image(); | 1353 const StyleImage* image = toImageContentData(contentData)->image(); |
1354 ASSERT(image); | 1354 ASSERT(image); |
1355 list->append(image->cssValue()); | 1355 list->append(image->cssValue()); |
1356 } else if (contentData->isText()) | 1356 } else if (contentData->isText()) { |
1357 list->append(cssValuePool().createValue(static_cast<const TextConten
tData*>(contentData)->text(), CSSPrimitiveValue::CSS_STRING)); | 1357 list->append(cssValuePool().createValue(toTextContentData(contentDat
a)->text(), CSSPrimitiveValue::CSS_STRING)); |
| 1358 } |
1358 } | 1359 } |
1359 return list.release(); | 1360 return list.release(); |
1360 } | 1361 } |
1361 | 1362 |
1362 static PassRefPtrWillBeRawPtr<CSSValue> valueForCounterDirectives(const RenderSt
yle& style, CSSPropertyID propertyID) | 1363 static PassRefPtrWillBeRawPtr<CSSValue> valueForCounterDirectives(const RenderSt
yle& style, CSSPropertyID propertyID) |
1363 { | 1364 { |
1364 const CounterDirectiveMap* map = style.counterDirectives(); | 1365 const CounterDirectiveMap* map = style.counterDirectives(); |
1365 if (!map) | 1366 if (!map) |
1366 return nullptr; | 1367 return nullptr; |
1367 | 1368 |
(...skipping 1760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3128 return list.release(); | 3129 return list.release(); |
3129 } | 3130 } |
3130 | 3131 |
3131 void CSSComputedStyleDeclaration::trace(Visitor* visitor) | 3132 void CSSComputedStyleDeclaration::trace(Visitor* visitor) |
3132 { | 3133 { |
3133 visitor->trace(m_node); | 3134 visitor->trace(m_node); |
3134 CSSStyleDeclaration::trace(visitor); | 3135 CSSStyleDeclaration::trace(visitor); |
3135 } | 3136 } |
3136 | 3137 |
3137 } // namespace blink | 3138 } // namespace blink |
OLD | NEW |