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

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

Issue 216803002: Implement all shorthand property. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 /* 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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 case CSSPropertyScrollBehavior: return 444; 502 case CSSPropertyScrollBehavior: return 444;
503 case CSSPropertyWillChange: return 445; 503 case CSSPropertyWillChange: return 445;
504 case CSSPropertyTransform: return 446; 504 case CSSPropertyTransform: return 446;
505 case CSSPropertyTransformOrigin: return 447; 505 case CSSPropertyTransformOrigin: return 447;
506 case CSSPropertyTransformStyle: return 448; 506 case CSSPropertyTransformStyle: return 448;
507 case CSSPropertyPerspective: return 449; 507 case CSSPropertyPerspective: return 449;
508 case CSSPropertyPerspectiveOrigin: return 450; 508 case CSSPropertyPerspectiveOrigin: return 450;
509 case CSSPropertyBackfaceVisibility: return 451; 509 case CSSPropertyBackfaceVisibility: return 451;
510 case CSSPropertyGridTemplate: return 452; 510 case CSSPropertyGridTemplate: return 452;
511 case CSSPropertyGrid: return 453; 511 case CSSPropertyGrid: return 453;
512 case CSSPropertyAll: return 454;
512 513
513 // 1. Add new features above this line (don't change the assigned numbers of the existing 514 // 1. Add new features above this line (don't change the assigned numbers of the existing
514 // items). 515 // items).
515 // 2. Update maximumCSSSampleId() with the new maximum value. 516 // 2. Update maximumCSSSampleId() with the new maximum value.
516 // 3. Run the update_use_counter_css.py script in 517 // 3. Run the update_use_counter_css.py script in
517 // chromium/src/tools/metrics/histograms to update the UMA histogram names. 518 // chromium/src/tools/metrics/histograms to update the UMA histogram names.
518 519
519 // Internal properties should not be counted. 520 // Internal properties should not be counted.
520 case CSSPropertyInternalMarqueeDirection: 521 case CSSPropertyInternalMarqueeDirection:
521 case CSSPropertyInternalMarqueeIncrement: 522 case CSSPropertyInternalMarqueeIncrement:
522 case CSSPropertyInternalMarqueeRepetition: 523 case CSSPropertyInternalMarqueeRepetition:
523 case CSSPropertyInternalMarqueeSpeed: 524 case CSSPropertyInternalMarqueeSpeed:
524 case CSSPropertyInternalMarqueeStyle: 525 case CSSPropertyInternalMarqueeStyle:
525 case CSSPropertyInvalid: 526 case CSSPropertyInvalid:
526 ASSERT_NOT_REACHED(); 527 ASSERT_NOT_REACHED();
527 return 0; 528 return 0;
528 } 529 }
529 530
530 ASSERT_NOT_REACHED(); 531 ASSERT_NOT_REACHED();
531 return 0; 532 return 0;
532 } 533 }
533 534
534 static int maximumCSSSampleId() { return 453; } 535 static int maximumCSSSampleId() { return 454; }
535 536
536 void UseCounter::muteForInspector() 537 void UseCounter::muteForInspector()
537 { 538 {
538 UseCounter::m_muteCount++; 539 UseCounter::m_muteCount++;
539 } 540 }
540 541
541 void UseCounter::unmuteForInspector() 542 void UseCounter::unmuteForInspector()
542 { 543 {
543 UseCounter::m_muteCount--; 544 UseCounter::m_muteCount--;
544 } 545 }
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 775 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
775 { 776 {
776 // FIXME: We may want to handle stylesheets that have multiple owners 777 // FIXME: We may want to handle stylesheets that have multiple owners
777 // http://crbug.com/242125 778 // http://crbug.com/242125
778 if (sheetContents && sheetContents->hasSingleOwnerNode()) 779 if (sheetContents && sheetContents->hasSingleOwnerNode())
779 return getFrom(sheetContents->singleOwnerDocument()); 780 return getFrom(sheetContents->singleOwnerDocument());
780 return 0; 781 return 0;
781 } 782 }
782 783
783 } // namespace WebCore 784 } // namespace WebCore
OLDNEW
« Source/core/css/resolver/StyleResolver.cpp ('K') | « Source/core/css/resolver/StyleResolver.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698