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

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

Issue 333423005: [CSS Grid Layout] Implement 'justify-items' parsing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch rebased. Created 6 years, 5 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 /* 2 /*
3 * Copyright (C) 2012 Google, Inc. All rights reserved. 3 * Copyright (C) 2012 Google, Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 case CSSPropertyWillChange: return 445; 504 case CSSPropertyWillChange: return 445;
505 case CSSPropertyTransform: return 446; 505 case CSSPropertyTransform: return 446;
506 case CSSPropertyTransformOrigin: return 447; 506 case CSSPropertyTransformOrigin: return 447;
507 case CSSPropertyTransformStyle: return 448; 507 case CSSPropertyTransformStyle: return 448;
508 case CSSPropertyPerspective: return 449; 508 case CSSPropertyPerspective: return 449;
509 case CSSPropertyPerspectiveOrigin: return 450; 509 case CSSPropertyPerspectiveOrigin: return 450;
510 case CSSPropertyBackfaceVisibility: return 451; 510 case CSSPropertyBackfaceVisibility: return 451;
511 case CSSPropertyGridTemplate: return 452; 511 case CSSPropertyGridTemplate: return 452;
512 case CSSPropertyGrid: return 453; 512 case CSSPropertyGrid: return 453;
513 case CSSPropertyAll: return 454; 513 case CSSPropertyAll: return 454;
514 case CSSPropertyJustifyItems: return 455;
514 515
515 // 1. Add new features above this line (don't change the assigned numbers of the existing 516 // 1. Add new features above this line (don't change the assigned numbers of the existing
516 // items). 517 // items).
517 // 2. Update maximumCSSSampleId() with the new maximum value. 518 // 2. Update maximumCSSSampleId() with the new maximum value.
518 // 3. Run the update_use_counter_css.py script in 519 // 3. Run the update_use_counter_css.py script in
519 // chromium/src/tools/metrics/histograms to update the UMA histogram names. 520 // chromium/src/tools/metrics/histograms to update the UMA histogram names.
520 521
521 // Internal properties should not be counted. 522 // Internal properties should not be counted.
522 case CSSPropertyInternalMarqueeDirection: 523 case CSSPropertyInternalMarqueeDirection:
523 case CSSPropertyInternalMarqueeIncrement: 524 case CSSPropertyInternalMarqueeIncrement:
524 case CSSPropertyInternalMarqueeRepetition: 525 case CSSPropertyInternalMarqueeRepetition:
525 case CSSPropertyInternalMarqueeSpeed: 526 case CSSPropertyInternalMarqueeSpeed:
526 case CSSPropertyInternalMarqueeStyle: 527 case CSSPropertyInternalMarqueeStyle:
527 case CSSPropertyInvalid: 528 case CSSPropertyInvalid:
528 ASSERT_NOT_REACHED(); 529 ASSERT_NOT_REACHED();
529 return 0; 530 return 0;
530 } 531 }
531 532
532 ASSERT_NOT_REACHED(); 533 ASSERT_NOT_REACHED();
533 return 0; 534 return 0;
534 } 535 }
535 536
536 static int maximumCSSSampleId() { return 454; } 537 static int maximumCSSSampleId() { return 455; }
537 538
538 void UseCounter::muteForInspector() 539 void UseCounter::muteForInspector()
539 { 540 {
540 UseCounter::m_muteCount++; 541 UseCounter::m_muteCount++;
541 } 542 }
542 543
543 void UseCounter::unmuteForInspector() 544 void UseCounter::unmuteForInspector()
544 { 545 {
545 UseCounter::m_muteCount--; 546 UseCounter::m_muteCount--;
546 } 547 }
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 790 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
790 { 791 {
791 // FIXME: We may want to handle stylesheets that have multiple owners 792 // FIXME: We may want to handle stylesheets that have multiple owners
792 // http://crbug.com/242125 793 // http://crbug.com/242125
793 if (sheetContents && sheetContents->hasSingleOwnerNode()) 794 if (sheetContents && sheetContents->hasSingleOwnerNode())
794 return getFrom(sheetContents->singleOwnerDocument()); 795 return getFrom(sheetContents->singleOwnerDocument());
795 return 0; 796 return 0;
796 } 797 }
797 798
798 } // namespace WebCore 799 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698