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

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

Issue 1150313002: *** NOT FOR LANDING *** Unprefix multicol behind a flag (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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) 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 CSSPropertyAliasWebkitBoxShadow: 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 CSSPropertyAliasWebkitColumnCount: return 218;
261 case CSSPropertyWebkitColumnGap: return 219; 261 case CSSPropertyAliasWebkitColumnGap: return 219;
262 // CSSPropertyWebkitColumnProgression was 220 262 // CSSPropertyWebkitColumnProgression was 220
263 case CSSPropertyWebkitColumnRule: return 221; 263 case CSSPropertyAliasWebkitColumnRule: return 221;
264 case CSSPropertyWebkitColumnRuleColor: return 222; 264 case CSSPropertyAliasWebkitColumnRuleColor: return 222;
265 case CSSPropertyWebkitColumnRuleStyle: return 223; 265 case CSSPropertyAliasWebkitColumnRuleStyle: return 223;
266 case CSSPropertyWebkitColumnRuleWidth: return 224; 266 case CSSPropertyAliasWebkitColumnRuleWidth: return 224;
267 case CSSPropertyWebkitColumnSpan: return 225; 267 case CSSPropertyAliasWebkitColumnSpan: return 225;
268 case CSSPropertyWebkitColumnWidth: return 226; 268 case CSSPropertyAliasWebkitColumnWidth: return 226;
269 case CSSPropertyWebkitColumns: return 227; 269 case CSSPropertyAliasWebkitColumns: return 227;
270 // 228 was CSSPropertyWebkitBoxDecorationBreak (duplicated due to #ifdef). 270 // 228 was CSSPropertyWebkitBoxDecorationBreak (duplicated due to #ifdef).
271 // 229 was CSSPropertyWebkitFilter (duplicated due to #ifdef). 271 // 229 was CSSPropertyWebkitFilter (duplicated due to #ifdef).
272 case CSSPropertyAlignContent: return 230; 272 case CSSPropertyAlignContent: return 230;
273 case CSSPropertyAlignItems: return 231; 273 case CSSPropertyAlignItems: return 231;
274 case CSSPropertyAlignSelf: return 232; 274 case CSSPropertyAlignSelf: return 232;
275 case CSSPropertyFlex: return 233; 275 case CSSPropertyFlex: return 233;
276 case CSSPropertyFlexBasis: return 234; 276 case CSSPropertyFlexBasis: return 234;
277 case CSSPropertyFlexDirection: return 235; 277 case CSSPropertyFlexDirection: return 235;
278 case CSSPropertyFlexFlow: return 236; 278 case CSSPropertyFlexFlow: return 236;
279 case CSSPropertyFlexGrow: return 237; 279 case CSSPropertyFlexGrow: return 237;
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 case CSSPropertyAliasWebkitFlexFlow: return 489; 525 case CSSPropertyAliasWebkitFlexFlow: return 489;
526 case CSSPropertyAliasWebkitFlexGrow: return 490; 526 case CSSPropertyAliasWebkitFlexGrow: return 490;
527 case CSSPropertyAliasWebkitFlexShrink: return 491; 527 case CSSPropertyAliasWebkitFlexShrink: return 491;
528 case CSSPropertyAliasWebkitFlexWrap: return 492; 528 case CSSPropertyAliasWebkitFlexWrap: return 492;
529 case CSSPropertyAliasWebkitJustifyContent: return 493; 529 case CSSPropertyAliasWebkitJustifyContent: return 493;
530 case CSSPropertyAliasWebkitOpacity: return 494; 530 case CSSPropertyAliasWebkitOpacity: return 494;
531 case CSSPropertyAliasWebkitOrder: return 495; 531 case CSSPropertyAliasWebkitOrder: return 495;
532 case CSSPropertyAliasWebkitShapeImageThreshold: return 496; 532 case CSSPropertyAliasWebkitShapeImageThreshold: return 496;
533 case CSSPropertyAliasWebkitShapeMargin: return 497; 533 case CSSPropertyAliasWebkitShapeMargin: return 497;
534 case CSSPropertyAliasWebkitShapeOutside: return 498; 534 case CSSPropertyAliasWebkitShapeOutside: return 498;
535 case CSSPropertyColumnCount: return 499;
536 case CSSPropertyColumnGap: return 500;
537 case CSSPropertyColumnRule: return 501;
538 case CSSPropertyColumnRuleColor: return 502;
539 case CSSPropertyColumnRuleStyle: return 503;
540 case CSSPropertyColumnRuleWidth: return 504;
541 case CSSPropertyColumnSpan: return 505;
542 case CSSPropertyColumnWidth: return 506;
543 case CSSPropertyColumns: return 507;
535 544
536 // 1. Add new features above this line (don't change the assigned numbers of the existing 545 // 1. Add new features above this line (don't change the assigned numbers of the existing
537 // items). 546 // items).
538 // 2. Update maximumCSSSampleId() with the new maximum value. 547 // 2. Update maximumCSSSampleId() with the new maximum value.
539 // 3. Run the update_use_counter_css.py script in 548 // 3. Run the update_use_counter_css.py script in
540 // chromium/src/tools/metrics/histograms to update the UMA histogram names. 549 // chromium/src/tools/metrics/histograms to update the UMA histogram names.
541 550
542 case CSSPropertyInvalid: 551 case CSSPropertyInvalid:
543 ASSERT_NOT_REACHED(); 552 ASSERT_NOT_REACHED();
544 return 0; 553 return 0;
545 } 554 }
546 555
547 ASSERT_NOT_REACHED(); 556 ASSERT_NOT_REACHED();
548 return 0; 557 return 0;
549 } 558 }
550 559
551 static int maximumCSSSampleId() { return 498; } 560 static int maximumCSSSampleId() { return 507; }
552 561
553 void UseCounter::muteForInspector() 562 void UseCounter::muteForInspector()
554 { 563 {
555 UseCounter::m_muteCount++; 564 UseCounter::m_muteCount++;
556 } 565 }
557 566
558 void UseCounter::unmuteForInspector() 567 void UseCounter::unmuteForInspector()
559 { 568 {
560 UseCounter::m_muteCount--; 569 UseCounter::m_muteCount--;
561 } 570 }
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 961 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
953 { 962 {
954 // FIXME: We may want to handle stylesheets that have multiple owners 963 // FIXME: We may want to handle stylesheets that have multiple owners
955 // http://crbug.com/242125 964 // http://crbug.com/242125
956 if (sheetContents && sheetContents->hasSingleOwnerNode()) 965 if (sheetContents && sheetContents->hasSingleOwnerNode())
957 return getFrom(sheetContents->singleOwnerDocument()); 966 return getFrom(sheetContents->singleOwnerDocument());
958 return 0; 967 return 0;
959 } 968 }
960 969
961 } // namespace blink 970 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleBuilderCustom.cpp ('k') | Source/core/layout/LayoutMultiColumnSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698