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

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

Issue 215843003: Revert of CSS Transforms: Implement transform-style (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
« no previous file with comments | « LayoutTests/transforms/transform-style-parsing.html ('k') | Source/core/css/CSSProperties.in » ('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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 CSSPropertyWebkitTextEmphasisColor, 309 CSSPropertyWebkitTextEmphasisColor,
310 CSSPropertyWebkitTextEmphasisPosition, 310 CSSPropertyWebkitTextEmphasisPosition,
311 CSSPropertyWebkitTextEmphasisStyle, 311 CSSPropertyWebkitTextEmphasisStyle,
312 CSSPropertyWebkitTextFillColor, 312 CSSPropertyWebkitTextFillColor,
313 CSSPropertyWebkitTextOrientation, 313 CSSPropertyWebkitTextOrientation,
314 CSSPropertyWebkitTextSecurity, 314 CSSPropertyWebkitTextSecurity,
315 CSSPropertyWebkitTextStrokeColor, 315 CSSPropertyWebkitTextStrokeColor,
316 CSSPropertyWebkitTextStrokeWidth, 316 CSSPropertyWebkitTextStrokeWidth,
317 CSSPropertyWebkitTransform, 317 CSSPropertyWebkitTransform,
318 CSSPropertyWebkitTransformOrigin, 318 CSSPropertyWebkitTransformOrigin,
319 CSSPropertyTransformStyle,
320 CSSPropertyWebkitTransformStyle, 319 CSSPropertyWebkitTransformStyle,
321 CSSPropertyWebkitTransitionDelay, 320 CSSPropertyWebkitTransitionDelay,
322 CSSPropertyWebkitTransitionDuration, 321 CSSPropertyWebkitTransitionDuration,
323 CSSPropertyWebkitTransitionProperty, 322 CSSPropertyWebkitTransitionProperty,
324 CSSPropertyWebkitTransitionTimingFunction, 323 CSSPropertyWebkitTransitionTimingFunction,
325 CSSPropertyWebkitUserDrag, 324 CSSPropertyWebkitUserDrag,
326 CSSPropertyWebkitUserModify, 325 CSSPropertyWebkitUserModify,
327 CSSPropertyWebkitUserSelect, 326 CSSPropertyWebkitUserSelect,
328 CSSPropertyWebkitWritingMode, 327 CSSPropertyWebkitWritingMode,
329 CSSPropertyWebkitAppRegion, 328 CSSPropertyWebkitAppRegion,
(...skipping 2233 matching lines...) Expand 10 before | Expand all | Expand 10 after
2563 if (style->transformOriginZ() != 0) 2562 if (style->transformOriginZ() != 0)
2564 list->append(zoomAdjustedPixelValue(style->transformOriginZ( ), *style)); 2563 list->append(zoomAdjustedPixelValue(style->transformOriginZ( ), *style));
2565 } else { 2564 } else {
2566 list->append(zoomAdjustedPixelValueForLength(style->transformOri ginX(), *style)); 2565 list->append(zoomAdjustedPixelValueForLength(style->transformOri ginX(), *style));
2567 list->append(zoomAdjustedPixelValueForLength(style->transformOri ginY(), *style)); 2566 list->append(zoomAdjustedPixelValueForLength(style->transformOri ginY(), *style));
2568 if (style->transformOriginZ() != 0) 2567 if (style->transformOriginZ() != 0)
2569 list->append(zoomAdjustedPixelValue(style->transformOriginZ( ), *style)); 2568 list->append(zoomAdjustedPixelValue(style->transformOriginZ( ), *style));
2570 } 2569 }
2571 return list.release(); 2570 return list.release();
2572 } 2571 }
2573 case CSSPropertyTransformStyle:
2574 case CSSPropertyWebkitTransformStyle: 2572 case CSSPropertyWebkitTransformStyle:
2575 return cssValuePool().createIdentifierValue((style->transformStyle3D () == TransformStyle3DPreserve3D) ? CSSValuePreserve3d : CSSValueFlat); 2573 return cssValuePool().createIdentifierValue((style->transformStyle3D () == TransformStyle3DPreserve3D) ? CSSValuePreserve3d : CSSValueFlat);
2576 case CSSPropertyTransitionDelay: 2574 case CSSPropertyTransitionDelay:
2577 case CSSPropertyWebkitTransitionDelay: 2575 case CSSPropertyWebkitTransitionDelay:
2578 return valueForAnimationDelay(style->transitions()); 2576 return valueForAnimationDelay(style->transitions());
2579 case CSSPropertyTransitionDuration: 2577 case CSSPropertyTransitionDuration:
2580 case CSSPropertyWebkitTransitionDuration: 2578 case CSSPropertyWebkitTransitionDuration:
2581 return valueForAnimationDuration(style->transitions()); 2579 return valueForAnimationDuration(style->transitions());
2582 case CSSPropertyTransitionProperty: 2580 case CSSPropertyTransitionProperty:
2583 case CSSPropertyWebkitTransitionProperty: 2581 case CSSPropertyWebkitTransitionProperty:
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
2763 case CSSPropertyWebkitMaxLogicalHeight: 2761 case CSSPropertyWebkitMaxLogicalHeight:
2764 ASSERT_NOT_REACHED(); 2762 ASSERT_NOT_REACHED();
2765 break; 2763 break;
2766 2764
2767 // FIXME: crbug.com/154772 Unimplemented css-transforms properties 2765 // FIXME: crbug.com/154772 Unimplemented css-transforms properties
2768 case CSSPropertyBackfaceVisibility: 2766 case CSSPropertyBackfaceVisibility:
2769 case CSSPropertyPerspective: 2767 case CSSPropertyPerspective:
2770 case CSSPropertyPerspectiveOrigin: 2768 case CSSPropertyPerspectiveOrigin:
2771 case CSSPropertyTransform: 2769 case CSSPropertyTransform:
2772 case CSSPropertyTransformOrigin: 2770 case CSSPropertyTransformOrigin:
2771 case CSSPropertyTransformStyle:
2773 break; 2772 break;
2774 2773
2775 /* Unimplemented @font-face properties */ 2774 /* Unimplemented @font-face properties */
2776 case CSSPropertyFontStretch: 2775 case CSSPropertyFontStretch:
2777 case CSSPropertySrc: 2776 case CSSPropertySrc:
2778 case CSSPropertyUnicodeRange: 2777 case CSSPropertyUnicodeRange:
2779 break; 2778 break;
2780 2779
2781 /* Other unimplemented properties */ 2780 /* Other unimplemented properties */
2782 case CSSPropertyPage: // for @page 2781 case CSSPropertyPage: // for @page
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
3046 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB ackgroundSize, CSSPropertyBackgroundOrigin, 3045 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB ackgroundSize, CSSPropertyBackgroundOrigin,
3047 CSSPropertyB ackgroundClip }; 3046 CSSPropertyB ackgroundClip };
3048 3047
3049 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSlashSeparated() ; 3048 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSlashSeparated() ;
3050 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash Seperator)))); 3049 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash Seperator))));
3051 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe perator)))); 3050 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe perator))));
3052 return list.release(); 3051 return list.release();
3053 } 3052 }
3054 3053
3055 } // namespace WebCore 3054 } // namespace WebCore
OLDNEW
« no previous file with comments | « LayoutTests/transforms/transform-style-parsing.html ('k') | Source/core/css/CSSProperties.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698