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

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

Issue 211233003: CSS Transforms: Implement perspective (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Disable compositing assert hit by new tests. Created 6 years, 8 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 CSSPropertyWebkitMaskBoxImageSource, 289 CSSPropertyWebkitMaskBoxImageSource,
290 CSSPropertyWebkitMaskBoxImageWidth, 290 CSSPropertyWebkitMaskBoxImageWidth,
291 CSSPropertyWebkitMaskClip, 291 CSSPropertyWebkitMaskClip,
292 CSSPropertyWebkitMaskComposite, 292 CSSPropertyWebkitMaskComposite,
293 CSSPropertyWebkitMaskImage, 293 CSSPropertyWebkitMaskImage,
294 CSSPropertyWebkitMaskOrigin, 294 CSSPropertyWebkitMaskOrigin,
295 CSSPropertyWebkitMaskPosition, 295 CSSPropertyWebkitMaskPosition,
296 CSSPropertyWebkitMaskRepeat, 296 CSSPropertyWebkitMaskRepeat,
297 CSSPropertyWebkitMaskSize, 297 CSSPropertyWebkitMaskSize,
298 CSSPropertyOrder, 298 CSSPropertyOrder,
299 CSSPropertyPerspective,
299 CSSPropertyWebkitPerspective, 300 CSSPropertyWebkitPerspective,
300 CSSPropertyWebkitPerspectiveOrigin, 301 CSSPropertyWebkitPerspectiveOrigin,
301 CSSPropertyWebkitPrintColorAdjust, 302 CSSPropertyWebkitPrintColorAdjust,
302 CSSPropertyWebkitRtlOrdering, 303 CSSPropertyWebkitRtlOrdering,
303 CSSPropertyShapeOutside, 304 CSSPropertyShapeOutside,
304 CSSPropertyShapePadding, 305 CSSPropertyShapePadding,
305 CSSPropertyShapeImageThreshold, 306 CSSPropertyShapeImageThreshold,
306 CSSPropertyShapeMargin, 307 CSSPropertyShapeMargin,
307 CSSPropertyWebkitTapHighlightColor, 308 CSSPropertyWebkitTapHighlightColor,
308 CSSPropertyWebkitTextCombine, 309 CSSPropertyWebkitTextCombine,
(...skipping 2186 matching lines...) Expand 10 before | Expand all | Expand 10 after
2495 return cssValuePool().createIdentifierValue(CSSValueNone); 2496 return cssValuePool().createIdentifierValue(CSSValueNone);
2496 case CSSPropertyWebkitFontSizeDelta: 2497 case CSSPropertyWebkitFontSizeDelta:
2497 // Not a real style property -- used by the editing engine -- so has no computed value. 2498 // Not a real style property -- used by the editing engine -- so has no computed value.
2498 break; 2499 break;
2499 case CSSPropertyWebkitMarginBottomCollapse: 2500 case CSSPropertyWebkitMarginBottomCollapse:
2500 case CSSPropertyWebkitMarginAfterCollapse: 2501 case CSSPropertyWebkitMarginAfterCollapse:
2501 return cssValuePool().createValue(style->marginAfterCollapse()); 2502 return cssValuePool().createValue(style->marginAfterCollapse());
2502 case CSSPropertyWebkitMarginTopCollapse: 2503 case CSSPropertyWebkitMarginTopCollapse:
2503 case CSSPropertyWebkitMarginBeforeCollapse: 2504 case CSSPropertyWebkitMarginBeforeCollapse:
2504 return cssValuePool().createValue(style->marginBeforeCollapse()); 2505 return cssValuePool().createValue(style->marginBeforeCollapse());
2506 case CSSPropertyPerspective:
2505 case CSSPropertyWebkitPerspective: 2507 case CSSPropertyWebkitPerspective:
2506 if (!style->hasPerspective()) 2508 if (!style->hasPerspective())
2507 return cssValuePool().createIdentifierValue(CSSValueNone); 2509 return cssValuePool().createIdentifierValue(CSSValueNone);
2508 return zoomAdjustedPixelValue(style->perspective(), *style); 2510 return zoomAdjustedPixelValue(style->perspective(), *style);
2509 case CSSPropertyWebkitPerspectiveOrigin: { 2511 case CSSPropertyWebkitPerspectiveOrigin: {
2510 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSep arated(); 2512 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSep arated();
2511 if (renderer) { 2513 if (renderer) {
2512 LayoutRect box; 2514 LayoutRect box;
2513 if (renderer->isBox()) 2515 if (renderer->isBox())
2514 box = toRenderBox(renderer)->borderBoxRect(); 2516 box = toRenderBox(renderer)->borderBoxRect();
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
2758 case CSSPropertyWebkitLogicalWidth: 2760 case CSSPropertyWebkitLogicalWidth:
2759 case CSSPropertyWebkitLogicalHeight: 2761 case CSSPropertyWebkitLogicalHeight:
2760 case CSSPropertyWebkitMinLogicalWidth: 2762 case CSSPropertyWebkitMinLogicalWidth:
2761 case CSSPropertyWebkitMinLogicalHeight: 2763 case CSSPropertyWebkitMinLogicalHeight:
2762 case CSSPropertyWebkitMaxLogicalWidth: 2764 case CSSPropertyWebkitMaxLogicalWidth:
2763 case CSSPropertyWebkitMaxLogicalHeight: 2765 case CSSPropertyWebkitMaxLogicalHeight:
2764 ASSERT_NOT_REACHED(); 2766 ASSERT_NOT_REACHED();
2765 break; 2767 break;
2766 2768
2767 // FIXME: crbug.com/154772 Unimplemented css-transforms properties 2769 // FIXME: crbug.com/154772 Unimplemented css-transforms properties
2768 case CSSPropertyPerspective:
2769 case CSSPropertyPerspectiveOrigin: 2770 case CSSPropertyPerspectiveOrigin:
2770 case CSSPropertyTransform: 2771 case CSSPropertyTransform:
2771 case CSSPropertyTransformOrigin: 2772 case CSSPropertyTransformOrigin:
2772 break; 2773 break;
2773 2774
2774 /* Unimplemented @font-face properties */ 2775 /* Unimplemented @font-face properties */
2775 case CSSPropertyFontStretch: 2776 case CSSPropertyFontStretch:
2776 case CSSPropertySrc: 2777 case CSSPropertySrc:
2777 case CSSPropertyUnicodeRange: 2778 case CSSPropertyUnicodeRange:
2778 break; 2779 break;
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
3045 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB ackgroundSize, CSSPropertyBackgroundOrigin, 3046 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB ackgroundSize, CSSPropertyBackgroundOrigin,
3046 CSSPropertyB ackgroundClip }; 3047 CSSPropertyB ackgroundClip };
3047 3048
3048 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSlashSeparated() ; 3049 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSlashSeparated() ;
3049 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash Seperator)))); 3050 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash Seperator))));
3050 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe perator)))); 3051 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe perator))));
3051 return list.release(); 3052 return list.release();
3052 } 3053 }
3053 3054
3054 } // namespace WebCore 3055 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/animation/css/CSSPropertyEquality.cpp ('k') | Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698