| 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 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 780 { | 780 { |
| 781 if (style.filter().operations().isEmpty()) | 781 if (style.filter().operations().isEmpty()) |
| 782 return cssValuePool().createIdentifierValue(CSSValueNone); | 782 return cssValuePool().createIdentifierValue(CSSValueNone); |
| 783 | 783 |
| 784 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparated()
; | 784 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparated()
; |
| 785 | 785 |
| 786 RefPtrWillBeRawPtr<CSSFilterValue> filterValue = nullptr; | 786 RefPtrWillBeRawPtr<CSSFilterValue> filterValue = nullptr; |
| 787 | 787 |
| 788 Vector<RefPtr<FilterOperation> >::const_iterator end = style.filter().operat
ions().end(); | 788 Vector<RefPtr<FilterOperation> >::const_iterator end = style.filter().operat
ions().end(); |
| 789 for (Vector<RefPtr<FilterOperation> >::const_iterator it = style.filter().op
erations().begin(); it != end; ++it) { | 789 for (Vector<RefPtr<FilterOperation> >::const_iterator it = style.filter().op
erations().begin(); it != end; ++it) { |
| 790 FilterOperation* filterOperation = (*it).get(); | 790 FilterOperation* filterOperation = it->get(); |
| 791 switch (filterOperation->type()) { | 791 switch (filterOperation->type()) { |
| 792 case FilterOperation::REFERENCE: | 792 case FilterOperation::REFERENCE: |
| 793 filterValue = CSSFilterValue::create(CSSFilterValue::ReferenceFilter
Operation); | 793 filterValue = CSSFilterValue::create(CSSFilterValue::ReferenceFilter
Operation); |
| 794 filterValue->append(cssValuePool().createValue(toReferenceFilterOper
ation(filterOperation)->url(), CSSPrimitiveValue::CSS_STRING)); | 794 filterValue->append(cssValuePool().createValue(toReferenceFilterOper
ation(filterOperation)->url(), CSSPrimitiveValue::CSS_STRING)); |
| 795 break; | 795 break; |
| 796 case FilterOperation::GRAYSCALE: | 796 case FilterOperation::GRAYSCALE: |
| 797 filterValue = CSSFilterValue::create(CSSFilterValue::GrayscaleFilter
Operation); | 797 filterValue = CSSFilterValue::create(CSSFilterValue::GrayscaleFilter
Operation); |
| 798 filterValue->append(cssValuePool().createValue(toBasicColorMatrixFil
terOperation(filterOperation)->amount(), CSSPrimitiveValue::CSS_NUMBER)); | 798 filterValue->append(cssValuePool().createValue(toBasicColorMatrixFil
terOperation(filterOperation)->amount(), CSSPrimitiveValue::CSS_NUMBER)); |
| 799 break; | 799 break; |
| 800 case FilterOperation::SEPIA: | 800 case FilterOperation::SEPIA: |
| (...skipping 2256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3057 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, | 3057 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, |
| 3058 CSSPropertyB
ackgroundClip }; | 3058 CSSPropertyB
ackgroundClip }; |
| 3059 | 3059 |
| 3060 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSlashSeparated()
; | 3060 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSlashSeparated()
; |
| 3061 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); | 3061 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); |
| 3062 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); | 3062 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); |
| 3063 return list.release(); | 3063 return list.release(); |
| 3064 } | 3064 } |
| 3065 | 3065 |
| 3066 } // namespace WebCore | 3066 } // namespace WebCore |
| OLD | NEW |