OLD | NEW |
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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 case CSSPropertyAliasWebkitShapeOutside: return 498; | 534 case CSSPropertyAliasWebkitShapeOutside: return 498; |
535 case CSSPropertyScrollSnapType: return 499; | 535 case CSSPropertyScrollSnapType: return 499; |
536 case CSSPropertyScrollSnapPointsX: return 500; | 536 case CSSPropertyScrollSnapPointsX: return 500; |
537 case CSSPropertyScrollSnapPointsY: return 501; | 537 case CSSPropertyScrollSnapPointsY: return 501; |
538 case CSSPropertyScrollSnapCoordinate: return 502; | 538 case CSSPropertyScrollSnapCoordinate: return 502; |
539 case CSSPropertyScrollSnapDestination: return 503; | 539 case CSSPropertyScrollSnapDestination: return 503; |
540 case CSSPropertyTranslate: return 504; | 540 case CSSPropertyTranslate: return 504; |
541 case CSSPropertyRotate: return 505; | 541 case CSSPropertyRotate: return 505; |
542 case CSSPropertyScale: return 506; | 542 case CSSPropertyScale: return 506; |
543 case CSSPropertyImageOrientation: return 507; | 543 case CSSPropertyImageOrientation: return 507; |
| 544 case CSSPropertyVariable: return 508; |
544 | 545 |
545 // 1. Add new features above this line (don't change the assigned numbers of
the existing | 546 // 1. Add new features above this line (don't change the assigned numbers of
the existing |
546 // items). | 547 // items). |
547 // 2. Update maximumCSSSampleId() with the new maximum value. | 548 // 2. Update maximumCSSSampleId() with the new maximum value. |
548 // 3. Run the update_use_counter_css.py script in | 549 // 3. Run the update_use_counter_css.py script in |
549 // chromium/src/tools/metrics/histograms to update the UMA histogram names. | 550 // chromium/src/tools/metrics/histograms to update the UMA histogram names. |
550 | 551 |
551 case CSSPropertyInvalid: | 552 case CSSPropertyInvalid: |
552 ASSERT_NOT_REACHED(); | 553 ASSERT_NOT_REACHED(); |
553 return 0; | 554 return 0; |
554 } | 555 } |
555 | 556 |
556 ASSERT_NOT_REACHED(); | 557 ASSERT_NOT_REACHED(); |
557 return 0; | 558 return 0; |
558 } | 559 } |
559 | 560 |
560 static int maximumCSSSampleId() { return 507; } | 561 static int maximumCSSSampleId() { return 508; } |
561 | 562 |
562 void UseCounter::muteForInspector() | 563 void UseCounter::muteForInspector() |
563 { | 564 { |
564 UseCounter::m_muteCount++; | 565 UseCounter::m_muteCount++; |
565 } | 566 } |
566 | 567 |
567 void UseCounter::unmuteForInspector() | 568 void UseCounter::unmuteForInspector() |
568 { | 569 { |
569 UseCounter::m_muteCount--; | 570 UseCounter::m_muteCount--; |
570 } | 571 } |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1000 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 1001 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
1001 { | 1002 { |
1002 // FIXME: We may want to handle stylesheets that have multiple owners | 1003 // FIXME: We may want to handle stylesheets that have multiple owners |
1003 // http://crbug.com/242125 | 1004 // http://crbug.com/242125 |
1004 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 1005 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
1005 return getFrom(sheetContents->singleOwnerDocument()); | 1006 return getFrom(sheetContents->singleOwnerDocument()); |
1006 return 0; | 1007 return 0; |
1007 } | 1008 } |
1008 | 1009 |
1009 } // namespace blink | 1010 } // namespace blink |
OLD | NEW |