Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: Source/core/css/CSSComputedStyleDeclaration.cpp

Issue 216803002: Implement all shorthand property. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed ASSERT_NOT_REACH in linux_blink_dbg Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 2844 matching lines...) Expand 10 before | Expand all | Expand 10 after
2855 case CSSPropertyAlignmentBaseline: 2855 case CSSPropertyAlignmentBaseline:
2856 case CSSPropertyBaselineShift: 2856 case CSSPropertyBaselineShift:
2857 case CSSPropertyDominantBaseline: 2857 case CSSPropertyDominantBaseline:
2858 case CSSPropertyGlyphOrientationHorizontal: 2858 case CSSPropertyGlyphOrientationHorizontal:
2859 case CSSPropertyGlyphOrientationVertical: 2859 case CSSPropertyGlyphOrientationVertical:
2860 case CSSPropertyTextAnchor: 2860 case CSSPropertyTextAnchor:
2861 case CSSPropertyVectorEffect: 2861 case CSSPropertyVectorEffect:
2862 case CSSPropertyPaintOrder: 2862 case CSSPropertyPaintOrder:
2863 case CSSPropertyWritingMode: 2863 case CSSPropertyWritingMode:
2864 return getSVGPropertyCSSValue(propertyID, DoNotUpdateLayout); 2864 return getSVGPropertyCSSValue(propertyID, DoNotUpdateLayout);
2865
2866 case CSSPropertyAll:
2867 return nullptr;
2865 } 2868 }
2866 2869
2867 logUnimplementedPropertyID(propertyID); 2870 logUnimplementedPropertyID(propertyID);
2868 return nullptr; 2871 return nullptr;
2869 } 2872 }
2870 2873
2871 String CSSComputedStyleDeclaration::getPropertyValue(CSSPropertyID propertyID) c onst 2874 String CSSComputedStyleDeclaration::getPropertyValue(CSSPropertyID propertyID) c onst
2872 { 2875 {
2873 RefPtrWillBeRawPtr<CSSValue> value = getPropertyCSSValue(propertyID); 2876 RefPtrWillBeRawPtr<CSSValue> value = getPropertyCSSValue(propertyID);
2874 if (value) 2877 if (value)
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
3051 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB ackgroundSize, CSSPropertyBackgroundOrigin, 3054 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB ackgroundSize, CSSPropertyBackgroundOrigin,
3052 CSSPropertyB ackgroundClip }; 3055 CSSPropertyB ackgroundClip };
3053 3056
3054 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSlashSeparated() ; 3057 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSlashSeparated() ;
3055 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash Seperator)))); 3058 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash Seperator))));
3056 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe perator)))); 3059 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe perator))));
3057 return list.release(); 3060 return list.release();
3058 } 3061 }
3059 3062
3060 } // namespace WebCore 3063 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698