| 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 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 case ReflectionRight: | 594 case ReflectionRight: |
| 595 direction = cssValuePool().createIdentifierValue(CSSValueRight); | 595 direction = cssValuePool().createIdentifierValue(CSSValueRight); |
| 596 break; | 596 break; |
| 597 } | 597 } |
| 598 | 598 |
| 599 return CSSReflectValue::create(direction.release(), offset.release(), valueF
orNinePieceImage(reflection->mask(), style)); | 599 return CSSReflectValue::create(direction.release(), offset.release(), valueF
orNinePieceImage(reflection->mask(), style)); |
| 600 } | 600 } |
| 601 | 601 |
| 602 static PassRefPtr<CSSValueList> createPositionListForLayer(CSSPropertyID propert
yID, const FillLayer* layer, const RenderStyle* style) | 602 static PassRefPtr<CSSValueList> createPositionListForLayer(CSSPropertyID propert
yID, const FillLayer* layer, const RenderStyle* style) |
| 603 { | 603 { |
| 604 ASSERT_UNUSED(propertyID, propertyID == CSSPropertyBackgroundPosition || pro
pertyID == CSSPropertyWebkitMaskPosition); |
| 604 RefPtr<CSSValueList> positionList = CSSValueList::createSpaceSeparated(); | 605 RefPtr<CSSValueList> positionList = CSSValueList::createSpaceSeparated(); |
| 605 if (layer->isBackgroundXOriginSet()) { | 606 positionList->append(cssValuePool().createValue(layer->backgroundXOrigin()))
; |
| 606 ASSERT_UNUSED(propertyID, propertyID == CSSPropertyBackgroundPosition ||
propertyID == CSSPropertyWebkitMaskPosition); | |
| 607 positionList->append(cssValuePool().createValue(layer->backgroundXOrigin
())); | |
| 608 } | |
| 609 positionList->append(zoomAdjustedPixelValueForLength(layer->xPosition(), sty
le)); | 607 positionList->append(zoomAdjustedPixelValueForLength(layer->xPosition(), sty
le)); |
| 610 if (layer->isBackgroundYOriginSet()) { | 608 positionList->append(cssValuePool().createValue(layer->backgroundYOrigin()))
; |
| 611 ASSERT(propertyID == CSSPropertyBackgroundPosition || propertyID == CSSP
ropertyWebkitMaskPosition); | |
| 612 positionList->append(cssValuePool().createValue(layer->backgroundYOrigin
())); | |
| 613 } | |
| 614 positionList->append(zoomAdjustedPixelValueForLength(layer->yPosition(), sty
le)); | 609 positionList->append(zoomAdjustedPixelValueForLength(layer->yPosition(), sty
le)); |
| 615 return positionList.release(); | 610 return positionList.release(); |
| 616 } | 611 } |
| 617 | 612 |
| 618 static PassRefPtr<CSSValue> valueForPositionOffset(RenderStyle* style, CSSProper
tyID propertyID, const RenderObject* renderer, RenderView* renderView) | 613 static PassRefPtr<CSSValue> valueForPositionOffset(RenderStyle* style, CSSProper
tyID propertyID, const RenderObject* renderer, RenderView* renderView) |
| 619 { | 614 { |
| 620 if (!style) | 615 if (!style) |
| 621 return 0; | 616 return 0; |
| 622 | 617 |
| 623 Length l; | 618 Length l; |
| (...skipping 2600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3224 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, | 3219 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, |
| 3225 CSSPropertyB
ackgroundClip }; | 3220 CSSPropertyB
ackgroundClip }; |
| 3226 | 3221 |
| 3227 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); | 3222 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); |
| 3228 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); | 3223 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); |
| 3229 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); | 3224 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); |
| 3230 return list.release(); | 3225 return list.release(); |
| 3231 } | 3226 } |
| 3232 | 3227 |
| 3233 } // namespace WebCore | 3228 } // namespace WebCore |
| OLD | NEW |