| 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 CSSPropertyGridColumnGap: return 508; |
| 545 case CSSPropertyGridRowGap: return 509; |
| 546 case CSSPropertyGridGap: return 510; |
| 544 | 547 |
| 545 // 1. Add new features above this line (don't change the assigned numbers of
the existing | 548 // 1. Add new features above this line (don't change the assigned numbers of
the existing |
| 546 // items). | 549 // items). |
| 547 // 2. Update maximumCSSSampleId() with the new maximum value. | 550 // 2. Update maximumCSSSampleId() with the new maximum value. |
| 548 // 3. Run the update_use_counter_css.py script in | 551 // 3. Run the update_use_counter_css.py script in |
| 549 // chromium/src/tools/metrics/histograms to update the UMA histogram names. | 552 // chromium/src/tools/metrics/histograms to update the UMA histogram names. |
| 550 | 553 |
| 551 case CSSPropertyInvalid: | 554 case CSSPropertyInvalid: |
| 552 ASSERT_NOT_REACHED(); | 555 ASSERT_NOT_REACHED(); |
| 553 return 0; | 556 return 0; |
| 554 } | 557 } |
| 555 | 558 |
| 556 ASSERT_NOT_REACHED(); | 559 ASSERT_NOT_REACHED(); |
| 557 return 0; | 560 return 0; |
| 558 } | 561 } |
| 559 | 562 |
| 560 static int maximumCSSSampleId() { return 507; } | 563 static int maximumCSSSampleId() { return 510; } |
| 561 | 564 |
| 562 void UseCounter::muteForInspector() | 565 void UseCounter::muteForInspector() |
| 563 { | 566 { |
| 564 UseCounter::m_muteCount++; | 567 UseCounter::m_muteCount++; |
| 565 } | 568 } |
| 566 | 569 |
| 567 void UseCounter::unmuteForInspector() | 570 void UseCounter::unmuteForInspector() |
| 568 { | 571 { |
| 569 UseCounter::m_muteCount--; | 572 UseCounter::m_muteCount--; |
| 570 } | 573 } |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1000 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 1003 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 1001 { | 1004 { |
| 1002 // FIXME: We may want to handle stylesheets that have multiple owners | 1005 // FIXME: We may want to handle stylesheets that have multiple owners |
| 1003 // http://crbug.com/242125 | 1006 // http://crbug.com/242125 |
| 1004 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 1007 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
| 1005 return getFrom(sheetContents->singleOwnerDocument()); | 1008 return getFrom(sheetContents->singleOwnerDocument()); |
| 1006 return 0; | 1009 return 0; |
| 1007 } | 1010 } |
| 1008 | 1011 |
| 1009 } // namespace blink | 1012 } // namespace blink |
| OLD | NEW |