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

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

Issue 1099483002: Use alias_for with trivial property aliases (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@alias
Patch Set: Created 5 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
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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 CSSPropertyWebkitAnimationDelay, 189 CSSPropertyWebkitAnimationDelay,
190 CSSPropertyWebkitAnimationDirection, 190 CSSPropertyWebkitAnimationDirection,
191 CSSPropertyWebkitAnimationDuration, 191 CSSPropertyWebkitAnimationDuration,
192 CSSPropertyWebkitAnimationFillMode, 192 CSSPropertyWebkitAnimationFillMode,
193 CSSPropertyWebkitAnimationIterationCount, 193 CSSPropertyWebkitAnimationIterationCount,
194 CSSPropertyWebkitAnimationName, 194 CSSPropertyWebkitAnimationName,
195 CSSPropertyWebkitAnimationPlayState, 195 CSSPropertyWebkitAnimationPlayState,
196 CSSPropertyWebkitAnimationTimingFunction, 196 CSSPropertyWebkitAnimationTimingFunction,
197 CSSPropertyWebkitAppearance, 197 CSSPropertyWebkitAppearance,
198 CSSPropertyBackfaceVisibility, 198 CSSPropertyBackfaceVisibility,
199 CSSPropertyWebkitBackfaceVisibility,
200 CSSPropertyWebkitBackgroundClip, 199 CSSPropertyWebkitBackgroundClip,
201 CSSPropertyWebkitBackgroundComposite, 200 CSSPropertyWebkitBackgroundComposite,
202 CSSPropertyWebkitBackgroundOrigin, 201 CSSPropertyWebkitBackgroundOrigin,
203 CSSPropertyWebkitBackgroundSize, 202 CSSPropertyWebkitBackgroundSize,
204 CSSPropertyWebkitBorderHorizontalSpacing, 203 CSSPropertyWebkitBorderHorizontalSpacing,
205 CSSPropertyWebkitBorderImage, 204 CSSPropertyWebkitBorderImage,
206 CSSPropertyWebkitBorderVerticalSpacing, 205 CSSPropertyWebkitBorderVerticalSpacing,
207 CSSPropertyWebkitBoxAlign, 206 CSSPropertyWebkitBoxAlign,
208 CSSPropertyWebkitBoxDecorationBreak, 207 CSSPropertyWebkitBoxDecorationBreak,
209 CSSPropertyWebkitBoxDirection, 208 CSSPropertyWebkitBoxDirection,
210 CSSPropertyWebkitBoxFlex, 209 CSSPropertyWebkitBoxFlex,
211 CSSPropertyWebkitBoxFlexGroup, 210 CSSPropertyWebkitBoxFlexGroup,
212 CSSPropertyWebkitBoxLines, 211 CSSPropertyWebkitBoxLines,
213 CSSPropertyWebkitBoxOrdinalGroup, 212 CSSPropertyWebkitBoxOrdinalGroup,
214 CSSPropertyWebkitBoxOrient, 213 CSSPropertyWebkitBoxOrient,
215 CSSPropertyWebkitBoxPack, 214 CSSPropertyWebkitBoxPack,
216 CSSPropertyWebkitBoxReflect, 215 CSSPropertyWebkitBoxReflect,
217 CSSPropertyWebkitBoxShadow,
218 CSSPropertyWebkitClipPath, 216 CSSPropertyWebkitClipPath,
219 CSSPropertyWebkitColumnBreakAfter, 217 CSSPropertyWebkitColumnBreakAfter,
220 CSSPropertyWebkitColumnBreakBefore, 218 CSSPropertyWebkitColumnBreakBefore,
221 CSSPropertyWebkitColumnBreakInside, 219 CSSPropertyWebkitColumnBreakInside,
222 CSSPropertyWebkitColumnCount, 220 CSSPropertyWebkitColumnCount,
223 CSSPropertyWebkitColumnGap, 221 CSSPropertyWebkitColumnGap,
224 CSSPropertyWebkitColumnRuleColor, 222 CSSPropertyWebkitColumnRuleColor,
225 CSSPropertyWebkitColumnRuleStyle, 223 CSSPropertyWebkitColumnRuleStyle,
226 CSSPropertyWebkitColumnRuleWidth, 224 CSSPropertyWebkitColumnRuleWidth,
227 CSSPropertyWebkitColumnSpan, 225 CSSPropertyWebkitColumnSpan,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 CSSPropertyWebkitMaskComposite, 263 CSSPropertyWebkitMaskComposite,
266 CSSPropertyWebkitMaskImage, 264 CSSPropertyWebkitMaskImage,
267 CSSPropertyWebkitMaskOrigin, 265 CSSPropertyWebkitMaskOrigin,
268 CSSPropertyWebkitMaskPosition, 266 CSSPropertyWebkitMaskPosition,
269 CSSPropertyWebkitMaskRepeat, 267 CSSPropertyWebkitMaskRepeat,
270 CSSPropertyWebkitMaskSize, 268 CSSPropertyWebkitMaskSize,
271 CSSPropertyOrder, 269 CSSPropertyOrder,
272 CSSPropertyPerspective, 270 CSSPropertyPerspective,
273 CSSPropertyWebkitPerspective, 271 CSSPropertyWebkitPerspective,
274 CSSPropertyPerspectiveOrigin, 272 CSSPropertyPerspectiveOrigin,
275 CSSPropertyWebkitPerspectiveOrigin,
276 CSSPropertyWebkitPrintColorAdjust, 273 CSSPropertyWebkitPrintColorAdjust,
277 CSSPropertyWebkitRtlOrdering, 274 CSSPropertyWebkitRtlOrdering,
278 CSSPropertyShapeOutside, 275 CSSPropertyShapeOutside,
279 CSSPropertyShapeImageThreshold, 276 CSSPropertyShapeImageThreshold,
280 CSSPropertyShapeMargin, 277 CSSPropertyShapeMargin,
281 CSSPropertyWebkitTapHighlightColor, 278 CSSPropertyWebkitTapHighlightColor,
282 CSSPropertyWebkitTextCombine, 279 CSSPropertyWebkitTextCombine,
283 CSSPropertyWebkitTextDecorationsInEffect, 280 CSSPropertyWebkitTextDecorationsInEffect,
284 CSSPropertyWebkitTextEmphasisColor, 281 CSSPropertyWebkitTextEmphasisColor,
285 CSSPropertyWebkitTextEmphasisPosition, 282 CSSPropertyWebkitTextEmphasisPosition,
286 CSSPropertyWebkitTextEmphasisStyle, 283 CSSPropertyWebkitTextEmphasisStyle,
287 CSSPropertyWebkitTextFillColor, 284 CSSPropertyWebkitTextFillColor,
288 CSSPropertyWebkitTextOrientation, 285 CSSPropertyWebkitTextOrientation,
289 CSSPropertyWebkitTextSecurity, 286 CSSPropertyWebkitTextSecurity,
290 CSSPropertyWebkitTextStrokeColor, 287 CSSPropertyWebkitTextStrokeColor,
291 CSSPropertyWebkitTextStrokeWidth, 288 CSSPropertyWebkitTextStrokeWidth,
292 CSSPropertyTransform, 289 CSSPropertyTransform,
293 CSSPropertyWebkitTransform, 290 CSSPropertyWebkitTransform,
294 CSSPropertyTransformOrigin, 291 CSSPropertyTransformOrigin,
295 CSSPropertyWebkitTransformOrigin,
296 CSSPropertyTransformStyle, 292 CSSPropertyTransformStyle,
297 CSSPropertyWebkitTransformStyle,
298 CSSPropertyWebkitTransitionDelay, 293 CSSPropertyWebkitTransitionDelay,
299 CSSPropertyWebkitTransitionDuration, 294 CSSPropertyWebkitTransitionDuration,
300 CSSPropertyWebkitTransitionProperty, 295 CSSPropertyWebkitTransitionProperty,
301 CSSPropertyWebkitTransitionTimingFunction, 296 CSSPropertyWebkitTransitionTimingFunction,
302 CSSPropertyWebkitUserDrag, 297 CSSPropertyWebkitUserDrag,
303 CSSPropertyWebkitUserModify, 298 CSSPropertyWebkitUserModify,
304 CSSPropertyWebkitUserSelect, 299 CSSPropertyWebkitUserSelect,
305 CSSPropertyWebkitWritingMode, 300 CSSPropertyWebkitWritingMode,
306 CSSPropertyWebkitAppRegion, 301 CSSPropertyWebkitAppRegion,
307 CSSPropertyBufferedRendering, 302 CSSPropertyBufferedRendering,
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 // FIXME: Some of these cases could be narrowed down or optimized better. 467 // FIXME: Some of these cases could be narrowed down or optimized better.
473 switch (propertyID) { 468 switch (propertyID) {
474 case CSSPropertyBottom: 469 case CSSPropertyBottom:
475 case CSSPropertyGridTemplateColumns: 470 case CSSPropertyGridTemplateColumns:
476 case CSSPropertyGridTemplateRows: 471 case CSSPropertyGridTemplateRows:
477 case CSSPropertyHeight: 472 case CSSPropertyHeight:
478 case CSSPropertyLeft: 473 case CSSPropertyLeft:
479 case CSSPropertyRight: 474 case CSSPropertyRight:
480 case CSSPropertyTop: 475 case CSSPropertyTop:
481 case CSSPropertyPerspectiveOrigin: 476 case CSSPropertyPerspectiveOrigin:
482 case CSSPropertyWebkitPerspectiveOrigin:
483 case CSSPropertyTransform: 477 case CSSPropertyTransform:
484 case CSSPropertyWebkitTransform: 478 case CSSPropertyWebkitTransform:
485 case CSSPropertyTransformOrigin: 479 case CSSPropertyTransformOrigin:
486 case CSSPropertyWebkitTransformOrigin:
487 case CSSPropertyMotionPath: 480 case CSSPropertyMotionPath:
488 case CSSPropertyMotionOffset: 481 case CSSPropertyMotionOffset:
489 case CSSPropertyMotionRotation: 482 case CSSPropertyMotionRotation:
490 case CSSPropertyWidth: 483 case CSSPropertyWidth:
491 case CSSPropertyWebkitFilter: 484 case CSSPropertyWebkitFilter:
492 case CSSPropertyX: 485 case CSSPropertyX:
493 case CSSPropertyY: 486 case CSSPropertyY:
494 case CSSPropertyRx: 487 case CSSPropertyRx:
495 case CSSPropertyRy: 488 case CSSPropertyRy:
496 return true; 489 return true;
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a re computed, and therefore the '" + getPropertyNameString(id) + "' property is r ead-only."); 687 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a re computed, and therefore the '" + getPropertyNameString(id) + "' property is r ead-only.");
695 } 688 }
696 689
697 DEFINE_TRACE(CSSComputedStyleDeclaration) 690 DEFINE_TRACE(CSSComputedStyleDeclaration)
698 { 691 {
699 visitor->trace(m_node); 692 visitor->trace(m_node);
700 CSSStyleDeclaration::trace(visitor); 693 CSSStyleDeclaration::trace(visitor);
701 } 694 }
702 695
703 } // namespace blink 696 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698