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

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

Issue 2246293003: Unprefix CSS user-select property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 4 years, 4 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) 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 case CSSPropertyWebkitTransformOriginY: return 329; 357 case CSSPropertyWebkitTransformOriginY: return 329;
358 case CSSPropertyWebkitTransformOriginZ: return 330; 358 case CSSPropertyWebkitTransformOriginZ: return 330;
359 case CSSPropertyAliasWebkitTransformStyle: return 331; 359 case CSSPropertyAliasWebkitTransformStyle: return 331;
360 case CSSPropertyAliasWebkitTransition: return 332; 360 case CSSPropertyAliasWebkitTransition: return 332;
361 case CSSPropertyAliasWebkitTransitionDelay: return 333; 361 case CSSPropertyAliasWebkitTransitionDelay: return 333;
362 case CSSPropertyAliasWebkitTransitionDuration: return 334; 362 case CSSPropertyAliasWebkitTransitionDuration: return 334;
363 case CSSPropertyAliasWebkitTransitionProperty: return 335; 363 case CSSPropertyAliasWebkitTransitionProperty: return 335;
364 case CSSPropertyAliasWebkitTransitionTimingFunction: return 336; 364 case CSSPropertyAliasWebkitTransitionTimingFunction: return 336;
365 case CSSPropertyWebkitUserDrag: return 337; 365 case CSSPropertyWebkitUserDrag: return 337;
366 case CSSPropertyWebkitUserModify: return 338; 366 case CSSPropertyWebkitUserModify: return 338;
367 case CSSPropertyWebkitUserSelect: return 339; 367 case CSSPropertyAliasWebkitUserSelect: return 339;
368 // case CSSPropertyWebkitFlowInto: return 340; 368 // case CSSPropertyWebkitFlowInto: return 340;
369 // case CSSPropertyWebkitFlowFrom: return 341; 369 // case CSSPropertyWebkitFlowFrom: return 341;
370 // case CSSPropertyWebkitRegionFragment: return 342; 370 // case CSSPropertyWebkitRegionFragment: return 342;
371 // case CSSPropertyWebkitRegionBreakAfter: return 343; 371 // case CSSPropertyWebkitRegionBreakAfter: return 343;
372 // case CSSPropertyWebkitRegionBreakBefore: return 344; 372 // case CSSPropertyWebkitRegionBreakBefore: return 344;
373 // case CSSPropertyWebkitRegionBreakInside: return 345; 373 // case CSSPropertyWebkitRegionBreakInside: return 345;
374 // case CSSPropertyShapeInside: return 346; 374 // case CSSPropertyShapeInside: return 346;
375 case CSSPropertyShapeOutside: return 347; 375 case CSSPropertyShapeOutside: return 347;
376 case CSSPropertyShapeMargin: return 348; 376 case CSSPropertyShapeMargin: return 348;
377 // case CSSPropertyShapePadding: return 349; 377 // case CSSPropertyShapePadding: return 349;
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 case CSSPropertyColumnSpan: return 529; 558 case CSSPropertyColumnSpan: return 529;
559 case CSSPropertyColumnWidth: return 530; 559 case CSSPropertyColumnWidth: return 530;
560 case CSSPropertyColumns: return 531; 560 case CSSPropertyColumns: return 531;
561 case CSSPropertyApplyAtRule: return 532; 561 case CSSPropertyApplyAtRule: return 532;
562 case CSSPropertyFontVariantCaps: return 533; 562 case CSSPropertyFontVariantCaps: return 533;
563 case CSSPropertyHyphens: return 534; 563 case CSSPropertyHyphens: return 534;
564 case CSSPropertyFontVariantNumeric: return 535; 564 case CSSPropertyFontVariantNumeric: return 535;
565 case CSSPropertyTextSizeAdjust: return 536; 565 case CSSPropertyTextSizeAdjust: return 536;
566 case CSSPropertyAliasWebkitTextSizeAdjust: return 537; 566 case CSSPropertyAliasWebkitTextSizeAdjust: return 537;
567 case CSSPropertyOverflowAnchor: return 538; 567 case CSSPropertyOverflowAnchor: return 538;
568 568 case CSSPropertyUserSelect: return 539;
569 // 1. Add new features above this line (don't change the assigned numbers of the existing 569 // 1. Add new features above this line (don't change the assigned numbers of the existing
570 // items). 570 // items).
571 // 2. Update maximumCSSSampleId() with the new maximum value. 571 // 2. Update maximumCSSSampleId() with the new maximum value.
572 // 3. Run the update_use_counter_css.py script in 572 // 3. Run the update_use_counter_css.py script in
573 // chromium/src/tools/metrics/histograms to update the UMA histogram names. 573 // chromium/src/tools/metrics/histograms to update the UMA histogram names.
574 574
575 case CSSPropertyInvalid: 575 case CSSPropertyInvalid:
576 ASSERT_NOT_REACHED(); 576 ASSERT_NOT_REACHED();
577 return 0; 577 return 0;
578 } 578 }
579 579
580 ASSERT_NOT_REACHED(); 580 ASSERT_NOT_REACHED();
581 return 0; 581 return 0;
582 } 582 }
583 583
584 // Make sure update_use_counter_css.py was run which updates histograms.xml. 584 // Make sure update_use_counter_css.py was run which updates histograms.xml.
585 static int maximumCSSSampleId() { return 538; } 585 static int maximumCSSSampleId() { return 539; }
586 586
587 static EnumerationHistogram& featureObserverHistogram() 587 static EnumerationHistogram& featureObserverHistogram()
588 { 588 {
589 DEFINE_STATIC_LOCAL(EnumerationHistogram, histogram, ("WebCore.FeatureObserv er", UseCounter::NumberOfFeatures)); 589 DEFINE_STATIC_LOCAL(EnumerationHistogram, histogram, ("WebCore.FeatureObserv er", UseCounter::NumberOfFeatures));
590 return histogram; 590 return histogram;
591 } 591 }
592 592
593 void UseCounter::muteForInspector() 593 void UseCounter::muteForInspector()
594 { 594 {
595 m_muteCount++; 595 m_muteCount++;
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 791 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
792 { 792 {
793 // FIXME: We may want to handle stylesheets that have multiple owners 793 // FIXME: We may want to handle stylesheets that have multiple owners
794 // https://crbug.com/242125 794 // https://crbug.com/242125
795 if (sheetContents && sheetContents->hasSingleOwnerNode()) 795 if (sheetContents && sheetContents->hasSingleOwnerNode())
796 return getFrom(sheetContents->singleOwnerDocument()); 796 return getFrom(sheetContents->singleOwnerDocument());
797 return 0; 797 return 0;
798 } 798 }
799 799
800 } // namespace blink 800 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698