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

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

Issue 14907011: Support 'paint-order' from SVG2. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 7 years, 4 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
« no previous file with comments | « LayoutTests/svg/repaint/repaint-paintorder.svg ('k') | Source/core/css/CSSParser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 CSSPropertyStrokeOpacity, 372 CSSPropertyStrokeOpacity,
373 CSSPropertyStrokeWidth, 373 CSSPropertyStrokeWidth,
374 CSSPropertyAlignmentBaseline, 374 CSSPropertyAlignmentBaseline,
375 CSSPropertyBaselineShift, 375 CSSPropertyBaselineShift,
376 CSSPropertyDominantBaseline, 376 CSSPropertyDominantBaseline,
377 CSSPropertyKerning, 377 CSSPropertyKerning,
378 CSSPropertyTextAnchor, 378 CSSPropertyTextAnchor,
379 CSSPropertyWritingMode, 379 CSSPropertyWritingMode,
380 CSSPropertyGlyphOrientationHorizontal, 380 CSSPropertyGlyphOrientationHorizontal,
381 CSSPropertyGlyphOrientationVertical, 381 CSSPropertyGlyphOrientationVertical,
382 CSSPropertyVectorEffect 382 CSSPropertyVectorEffect,
383 CSSPropertyPaintOrder
383 }; 384 };
384 385
385 static const Vector<CSSPropertyID>& computableProperties() 386 static const Vector<CSSPropertyID>& computableProperties()
386 { 387 {
387 DEFINE_STATIC_LOCAL(Vector<CSSPropertyID>, properties, ()); 388 DEFINE_STATIC_LOCAL(Vector<CSSPropertyID>, properties, ());
388 if (properties.isEmpty()) 389 if (properties.isEmpty())
389 RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(staticComputable Properties, WTF_ARRAY_LENGTH(staticComputableProperties), properties); 390 RuntimeCSSEnabled::filterEnabledCSSPropertiesIntoVector(staticComputable Properties, WTF_ARRAY_LENGTH(staticComputableProperties), properties);
390 return properties; 391 return properties;
391 } 392 }
392 393
(...skipping 2509 matching lines...) Expand 10 before | Expand all | Expand 10 after
2902 case CSSPropertyStrokeOpacity: 2903 case CSSPropertyStrokeOpacity:
2903 case CSSPropertyStrokeWidth: 2904 case CSSPropertyStrokeWidth:
2904 case CSSPropertyAlignmentBaseline: 2905 case CSSPropertyAlignmentBaseline:
2905 case CSSPropertyBaselineShift: 2906 case CSSPropertyBaselineShift:
2906 case CSSPropertyDominantBaseline: 2907 case CSSPropertyDominantBaseline:
2907 case CSSPropertyGlyphOrientationHorizontal: 2908 case CSSPropertyGlyphOrientationHorizontal:
2908 case CSSPropertyGlyphOrientationVertical: 2909 case CSSPropertyGlyphOrientationVertical:
2909 case CSSPropertyKerning: 2910 case CSSPropertyKerning:
2910 case CSSPropertyTextAnchor: 2911 case CSSPropertyTextAnchor:
2911 case CSSPropertyVectorEffect: 2912 case CSSPropertyVectorEffect:
2913 case CSSPropertyPaintOrder:
2912 case CSSPropertyWritingMode: 2914 case CSSPropertyWritingMode:
2913 return getSVGPropertyCSSValue(propertyID, DoNotUpdateLayout); 2915 return getSVGPropertyCSSValue(propertyID, DoNotUpdateLayout);
2914 } 2916 }
2915 2917
2916 logUnimplementedPropertyID(propertyID); 2918 logUnimplementedPropertyID(propertyID);
2917 return 0; 2919 return 0;
2918 } 2920 }
2919 2921
2920 String CSSComputedStyleDeclaration::getPropertyValue(CSSPropertyID propertyID) c onst 2922 String CSSComputedStyleDeclaration::getPropertyValue(CSSPropertyID propertyID) c onst
2921 { 2923 {
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
3153 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB ackgroundSize, CSSPropertyBackgroundOrigin, 3155 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB ackgroundSize, CSSPropertyBackgroundOrigin,
3154 CSSPropertyB ackgroundClip }; 3156 CSSPropertyB ackgroundClip };
3155 3157
3156 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); 3158 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated();
3157 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash Seperator)))); 3159 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash Seperator))));
3158 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe perator)))); 3160 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe perator))));
3159 return list.release(); 3161 return list.release();
3160 } 3162 }
3161 3163
3162 } // namespace WebCore 3164 } // namespace WebCore
OLDNEW
« no previous file with comments | « LayoutTests/svg/repaint/repaint-paintorder.svg ('k') | Source/core/css/CSSParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698