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

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

Issue 1158603003: CSS Independent Transform Properties (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
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 514 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 CSSPropertyTranslate: return 499;
536 case CSSPropertyRotate: return 500;
537 case CSSPropertyScale: return 501;
535 538
536 // 1. Add new features above this line (don't change the assigned numbers of the existing 539 // 1. Add new features above this line (don't change the assigned numbers of the existing
537 // items). 540 // items).
538 // 2. Update maximumCSSSampleId() with the new maximum value. 541 // 2. Update maximumCSSSampleId() with the new maximum value.
539 // 3. Run the update_use_counter_css.py script in 542 // 3. Run the update_use_counter_css.py script in
540 // chromium/src/tools/metrics/histograms to update the UMA histogram names. 543 // chromium/src/tools/metrics/histograms to update the UMA histogram names.
541 544
542 case CSSPropertyInvalid: 545 case CSSPropertyInvalid:
543 ASSERT_NOT_REACHED(); 546 ASSERT_NOT_REACHED();
544 return 0; 547 return 0;
545 } 548 }
546 549
547 ASSERT_NOT_REACHED(); 550 ASSERT_NOT_REACHED();
548 return 0; 551 return 0;
549 } 552 }
550 553
551 static int maximumCSSSampleId() { return 498; } 554 static int maximumCSSSampleId() { return 501; }
552 555
553 void UseCounter::muteForInspector() 556 void UseCounter::muteForInspector()
554 { 557 {
555 UseCounter::m_muteCount++; 558 UseCounter::m_muteCount++;
556 } 559 }
557 560
558 void UseCounter::unmuteForInspector() 561 void UseCounter::unmuteForInspector()
559 { 562 {
560 UseCounter::m_muteCount--; 563 UseCounter::m_muteCount--;
561 } 564 }
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 954 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
952 { 955 {
953 // FIXME: We may want to handle stylesheets that have multiple owners 956 // FIXME: We may want to handle stylesheets that have multiple owners
954 // http://crbug.com/242125 957 // http://crbug.com/242125
955 if (sheetContents && sheetContents->hasSingleOwnerNode()) 958 if (sheetContents && sheetContents->hasSingleOwnerNode())
956 return getFrom(sheetContents->singleOwnerDocument()); 959 return getFrom(sheetContents->singleOwnerDocument());
957 return 0; 960 return 0;
958 } 961 }
959 962
960 } // namespace blink 963 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698