| 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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 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 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; | 
|  | 541     case CSSPropertyRotate: return 505; | 
|  | 542     case CSSPropertyScale: return 506; | 
| 540 | 543 | 
| 541     // 1. Add new features above this line (don't change the assigned numbers of
      the existing | 544     // 1. Add new features above this line (don't change the assigned numbers of
      the existing | 
| 542     // items). | 545     // items). | 
| 543     // 2. Update maximumCSSSampleId() with the new maximum value. | 546     // 2. Update maximumCSSSampleId() with the new maximum value. | 
| 544     // 3. Run the update_use_counter_css.py script in | 547     // 3. Run the update_use_counter_css.py script in | 
| 545     // chromium/src/tools/metrics/histograms to update the UMA histogram names. | 548     // chromium/src/tools/metrics/histograms to update the UMA histogram names. | 
| 546 | 549 | 
| 547     case CSSPropertyInvalid: | 550     case CSSPropertyInvalid: | 
| 548         ASSERT_NOT_REACHED(); | 551         ASSERT_NOT_REACHED(); | 
| 549         return 0; | 552         return 0; | 
| 550     } | 553     } | 
| 551 | 554 | 
| 552     ASSERT_NOT_REACHED(); | 555     ASSERT_NOT_REACHED(); | 
| 553     return 0; | 556     return 0; | 
| 554 } | 557 } | 
| 555 | 558 | 
| 556 static int maximumCSSSampleId() { return 503; } | 559 static int maximumCSSSampleId() { return 506; } | 
| 557 | 560 | 
| 558 void UseCounter::muteForInspector() | 561 void UseCounter::muteForInspector() | 
| 559 { | 562 { | 
| 560     UseCounter::m_muteCount++; | 563     UseCounter::m_muteCount++; | 
| 561 } | 564 } | 
| 562 | 565 | 
| 563 void UseCounter::unmuteForInspector() | 566 void UseCounter::unmuteForInspector() | 
| 564 { | 567 { | 
| 565     UseCounter::m_muteCount--; | 568     UseCounter::m_muteCount--; | 
| 566 } | 569 } | 
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 975 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 978 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 
| 976 { | 979 { | 
| 977     // FIXME: We may want to handle stylesheets that have multiple owners | 980     // FIXME: We may want to handle stylesheets that have multiple owners | 
| 978     //        http://crbug.com/242125 | 981     //        http://crbug.com/242125 | 
| 979     if (sheetContents && sheetContents->hasSingleOwnerNode()) | 982     if (sheetContents && sheetContents->hasSingleOwnerNode()) | 
| 980         return getFrom(sheetContents->singleOwnerDocument()); | 983         return getFrom(sheetContents->singleOwnerDocument()); | 
| 981     return 0; | 984     return 0; | 
| 982 } | 985 } | 
| 983 | 986 | 
| 984 } // namespace blink | 987 } // namespace blink | 
| OLD | NEW | 
|---|