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

Side by Side Diff: Source/core/frame/UseCounter.cpp

Issue 1099483002: Use alias_for with trivial property aliases (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@alias
Patch Set: rebase a couple of tests 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
« no previous file with comments | « Source/core/css/resolver/StyleResolver.cpp ('k') | no next file » | 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) 2012 Google, Inc. All rights reserved. 2 * Copyright (C) 2012 Google, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 case CSSPropertyWebkitAnimationDelay: return 167; 210 case CSSPropertyWebkitAnimationDelay: return 167;
211 case CSSPropertyWebkitAnimationDirection: return 168; 211 case CSSPropertyWebkitAnimationDirection: return 168;
212 case CSSPropertyWebkitAnimationDuration: return 169; 212 case CSSPropertyWebkitAnimationDuration: return 169;
213 case CSSPropertyWebkitAnimationFillMode: return 170; 213 case CSSPropertyWebkitAnimationFillMode: return 170;
214 case CSSPropertyWebkitAnimationIterationCount: return 171; 214 case CSSPropertyWebkitAnimationIterationCount: return 171;
215 case CSSPropertyWebkitAnimationName: return 172; 215 case CSSPropertyWebkitAnimationName: return 172;
216 case CSSPropertyWebkitAnimationPlayState: return 173; 216 case CSSPropertyWebkitAnimationPlayState: return 173;
217 case CSSPropertyWebkitAnimationTimingFunction: return 174; 217 case CSSPropertyWebkitAnimationTimingFunction: return 174;
218 case CSSPropertyWebkitAppearance: return 175; 218 case CSSPropertyWebkitAppearance: return 175;
219 // CSSPropertyWebkitAspectRatio was 176 219 // CSSPropertyWebkitAspectRatio was 176
220 case CSSPropertyWebkitBackfaceVisibility: return 177; 220 case CSSPropertyAliasWebkitBackfaceVisibility: return 177;
221 case CSSPropertyWebkitBackgroundClip: return 178; 221 case CSSPropertyWebkitBackgroundClip: return 178;
222 case CSSPropertyWebkitBackgroundComposite: return 179; 222 case CSSPropertyWebkitBackgroundComposite: return 179;
223 case CSSPropertyWebkitBackgroundOrigin: return 180; 223 case CSSPropertyWebkitBackgroundOrigin: return 180;
224 case CSSPropertyWebkitBackgroundSize: return 181; 224 case CSSPropertyWebkitBackgroundSize: return 181;
225 case CSSPropertyWebkitBorderAfter: return 182; 225 case CSSPropertyWebkitBorderAfter: return 182;
226 case CSSPropertyWebkitBorderAfterColor: return 183; 226 case CSSPropertyWebkitBorderAfterColor: return 183;
227 case CSSPropertyWebkitBorderAfterStyle: return 184; 227 case CSSPropertyWebkitBorderAfterStyle: return 184;
228 case CSSPropertyWebkitBorderAfterWidth: return 185; 228 case CSSPropertyWebkitBorderAfterWidth: return 185;
229 case CSSPropertyWebkitBorderBefore: return 186; 229 case CSSPropertyWebkitBorderBefore: return 186;
230 case CSSPropertyWebkitBorderBeforeColor: return 187; 230 case CSSPropertyWebkitBorderBeforeColor: return 187;
(...skipping 14 matching lines...) Expand all
245 case CSSPropertyWebkitBorderVerticalSpacing: return 202; 245 case CSSPropertyWebkitBorderVerticalSpacing: return 202;
246 case CSSPropertyWebkitBoxAlign: return 203; 246 case CSSPropertyWebkitBoxAlign: return 203;
247 case CSSPropertyWebkitBoxDirection: return 204; 247 case CSSPropertyWebkitBoxDirection: return 204;
248 case CSSPropertyWebkitBoxFlex: return 205; 248 case CSSPropertyWebkitBoxFlex: return 205;
249 case CSSPropertyWebkitBoxFlexGroup: return 206; 249 case CSSPropertyWebkitBoxFlexGroup: return 206;
250 case CSSPropertyWebkitBoxLines: return 207; 250 case CSSPropertyWebkitBoxLines: return 207;
251 case CSSPropertyWebkitBoxOrdinalGroup: return 208; 251 case CSSPropertyWebkitBoxOrdinalGroup: return 208;
252 case CSSPropertyWebkitBoxOrient: return 209; 252 case CSSPropertyWebkitBoxOrient: return 209;
253 case CSSPropertyWebkitBoxPack: return 210; 253 case CSSPropertyWebkitBoxPack: return 210;
254 case CSSPropertyWebkitBoxReflect: return 211; 254 case CSSPropertyWebkitBoxReflect: return 211;
255 case CSSPropertyWebkitBoxShadow: return 212; 255 case CSSPropertyAliasWebkitBoxShadow: return 212;
256 // CSSPropertyWebkitColumnAxis was 214 256 // CSSPropertyWebkitColumnAxis was 214
257 case CSSPropertyWebkitColumnBreakAfter: return 215; 257 case CSSPropertyWebkitColumnBreakAfter: return 215;
258 case CSSPropertyWebkitColumnBreakBefore: return 216; 258 case CSSPropertyWebkitColumnBreakBefore: return 216;
259 case CSSPropertyWebkitColumnBreakInside: return 217; 259 case CSSPropertyWebkitColumnBreakInside: return 217;
260 case CSSPropertyWebkitColumnCount: return 218; 260 case CSSPropertyWebkitColumnCount: return 218;
261 case CSSPropertyWebkitColumnGap: return 219; 261 case CSSPropertyWebkitColumnGap: return 219;
262 // CSSPropertyWebkitColumnProgression was 220 262 // CSSPropertyWebkitColumnProgression was 220
263 case CSSPropertyWebkitColumnRule: return 221; 263 case CSSPropertyWebkitColumnRule: return 221;
264 case CSSPropertyWebkitColumnRuleColor: return 222; 264 case CSSPropertyWebkitColumnRuleColor: return 222;
265 case CSSPropertyWebkitColumnRuleStyle: return 223; 265 case CSSPropertyWebkitColumnRuleStyle: return 223;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 case CSSPropertyWebkitMaxLogicalHeight: return 299; 333 case CSSPropertyWebkitMaxLogicalHeight: return 299;
334 case CSSPropertyWebkitMinLogicalWidth: return 300; 334 case CSSPropertyWebkitMinLogicalWidth: return 300;
335 case CSSPropertyWebkitMinLogicalHeight: return 301; 335 case CSSPropertyWebkitMinLogicalHeight: return 301;
336 // WebkitNbspMode has been deleted, was return 302; 336 // WebkitNbspMode has been deleted, was return 302;
337 case CSSPropertyOrder: return 303; 337 case CSSPropertyOrder: return 303;
338 case CSSPropertyWebkitPaddingAfter: return 304; 338 case CSSPropertyWebkitPaddingAfter: return 304;
339 case CSSPropertyWebkitPaddingBefore: return 305; 339 case CSSPropertyWebkitPaddingBefore: return 305;
340 case CSSPropertyWebkitPaddingEnd: return 306; 340 case CSSPropertyWebkitPaddingEnd: return 306;
341 case CSSPropertyWebkitPaddingStart: return 307; 341 case CSSPropertyWebkitPaddingStart: return 307;
342 case CSSPropertyWebkitPerspective: return 308; 342 case CSSPropertyWebkitPerspective: return 308;
343 case CSSPropertyWebkitPerspectiveOrigin: return 309; 343 case CSSPropertyAliasWebkitPerspectiveOrigin: return 309;
344 case CSSPropertyWebkitPerspectiveOriginX: return 310; 344 case CSSPropertyWebkitPerspectiveOriginX: return 310;
345 case CSSPropertyWebkitPerspectiveOriginY: return 311; 345 case CSSPropertyWebkitPerspectiveOriginY: return 311;
346 case CSSPropertyWebkitPrintColorAdjust: return 312; 346 case CSSPropertyWebkitPrintColorAdjust: return 312;
347 case CSSPropertyWebkitRtlOrdering: return 313; 347 case CSSPropertyWebkitRtlOrdering: return 313;
348 case CSSPropertyWebkitRubyPosition: return 314; 348 case CSSPropertyWebkitRubyPosition: return 314;
349 case CSSPropertyWebkitTextCombine: return 315; 349 case CSSPropertyWebkitTextCombine: return 315;
350 case CSSPropertyWebkitTextDecorationsInEffect: return 316; 350 case CSSPropertyWebkitTextDecorationsInEffect: return 316;
351 case CSSPropertyWebkitTextEmphasis: return 317; 351 case CSSPropertyWebkitTextEmphasis: return 317;
352 case CSSPropertyWebkitTextEmphasisColor: return 318; 352 case CSSPropertyWebkitTextEmphasisColor: return 318;
353 case CSSPropertyWebkitTextEmphasisPosition: return 319; 353 case CSSPropertyWebkitTextEmphasisPosition: return 319;
354 case CSSPropertyWebkitTextEmphasisStyle: return 320; 354 case CSSPropertyWebkitTextEmphasisStyle: return 320;
355 case CSSPropertyWebkitTextFillColor: return 321; 355 case CSSPropertyWebkitTextFillColor: return 321;
356 case CSSPropertyWebkitTextSecurity: return 322; 356 case CSSPropertyWebkitTextSecurity: return 322;
357 case CSSPropertyWebkitTextStroke: return 323; 357 case CSSPropertyWebkitTextStroke: return 323;
358 case CSSPropertyWebkitTextStrokeColor: return 324; 358 case CSSPropertyWebkitTextStrokeColor: return 324;
359 case CSSPropertyWebkitTextStrokeWidth: return 325; 359 case CSSPropertyWebkitTextStrokeWidth: return 325;
360 case CSSPropertyWebkitTransform: return 326; 360 case CSSPropertyWebkitTransform: return 326;
361 case CSSPropertyWebkitTransformOrigin: return 327; 361 case CSSPropertyAliasWebkitTransformOrigin: return 327;
362 case CSSPropertyWebkitTransformOriginX: return 328; 362 case CSSPropertyWebkitTransformOriginX: return 328;
363 case CSSPropertyWebkitTransformOriginY: return 329; 363 case CSSPropertyWebkitTransformOriginY: return 329;
364 case CSSPropertyWebkitTransformOriginZ: return 330; 364 case CSSPropertyWebkitTransformOriginZ: return 330;
365 case CSSPropertyWebkitTransformStyle: return 331; 365 case CSSPropertyAliasWebkitTransformStyle: return 331;
366 case CSSPropertyWebkitTransition: return 332; 366 case CSSPropertyWebkitTransition: return 332;
367 case CSSPropertyWebkitTransitionDelay: return 333; 367 case CSSPropertyWebkitTransitionDelay: return 333;
368 case CSSPropertyWebkitTransitionDuration: return 334; 368 case CSSPropertyWebkitTransitionDuration: return 334;
369 case CSSPropertyWebkitTransitionProperty: return 335; 369 case CSSPropertyWebkitTransitionProperty: return 335;
370 case CSSPropertyWebkitTransitionTimingFunction: return 336; 370 case CSSPropertyWebkitTransitionTimingFunction: return 336;
371 case CSSPropertyWebkitUserDrag: return 337; 371 case CSSPropertyWebkitUserDrag: return 337;
372 case CSSPropertyWebkitUserModify: return 338; 372 case CSSPropertyWebkitUserModify: return 338;
373 case CSSPropertyWebkitUserSelect: return 339; 373 case CSSPropertyWebkitUserSelect: return 339;
374 // case CSSPropertyWebkitFlowInto: return 340; 374 // case CSSPropertyWebkitFlowInto: return 340;
375 // case CSSPropertyWebkitFlowFrom: return 341; 375 // case CSSPropertyWebkitFlowFrom: return 341;
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
939 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 939 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
940 { 940 {
941 // FIXME: We may want to handle stylesheets that have multiple owners 941 // FIXME: We may want to handle stylesheets that have multiple owners
942 // http://crbug.com/242125 942 // http://crbug.com/242125
943 if (sheetContents && sheetContents->hasSingleOwnerNode()) 943 if (sheetContents && sheetContents->hasSingleOwnerNode())
944 return getFrom(sheetContents->singleOwnerDocument()); 944 return getFrom(sheetContents->singleOwnerDocument());
945 return 0; 945 return 0;
946 } 946 }
947 947
948 } // namespace blink 948 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleResolver.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698