| OLD | NEW |
| 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 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 case CSSPropertyGrid: return 453; | 490 case CSSPropertyGrid: return 453; |
| 491 case CSSPropertyAll: return 454; | 491 case CSSPropertyAll: return 454; |
| 492 case CSSPropertyJustifyItems: return 455; | 492 case CSSPropertyJustifyItems: return 455; |
| 493 case CSSPropertyScrollBlocksOn: return 456; | 493 case CSSPropertyScrollBlocksOn: return 456; |
| 494 case CSSPropertyMotionPath: return 457; | 494 case CSSPropertyMotionPath: return 457; |
| 495 case CSSPropertyMotionPosition: return 458; | 495 case CSSPropertyMotionPosition: return 458; |
| 496 case CSSPropertyMotionRotation: return 459; | 496 case CSSPropertyMotionRotation: return 459; |
| 497 case CSSPropertyMotion: return 460; | 497 case CSSPropertyMotion: return 460; |
| 498 case CSSPropertyX: return 461; | 498 case CSSPropertyX: return 461; |
| 499 case CSSPropertyY: return 462; | 499 case CSSPropertyY: return 462; |
| 500 case CSSPropertyFontSizeAdjust: return 463; |
| 500 | 501 |
| 501 // 1. Add new features above this line (don't change the assigned numbers of
the existing | 502 // 1. Add new features above this line (don't change the assigned numbers of
the existing |
| 502 // items). | 503 // items). |
| 503 // 2. Update maximumCSSSampleId() with the new maximum value. | 504 // 2. Update maximumCSSSampleId() with the new maximum value. |
| 504 // 3. Run the update_use_counter_css.py script in | 505 // 3. Run the update_use_counter_css.py script in |
| 505 // chromium/src/tools/metrics/histograms to update the UMA histogram names. | 506 // chromium/src/tools/metrics/histograms to update the UMA histogram names. |
| 506 | 507 |
| 507 case CSSPropertyInvalid: | 508 case CSSPropertyInvalid: |
| 508 ASSERT_NOT_REACHED(); | 509 ASSERT_NOT_REACHED(); |
| 509 return 0; | 510 return 0; |
| 510 } | 511 } |
| 511 | 512 |
| 512 ASSERT_NOT_REACHED(); | 513 ASSERT_NOT_REACHED(); |
| 513 return 0; | 514 return 0; |
| 514 } | 515 } |
| 515 | 516 |
| 516 static int maximumCSSSampleId() { return 462; } | 517 static int maximumCSSSampleId() { return 463; } |
| 517 | 518 |
| 518 void UseCounter::muteForInspector() | 519 void UseCounter::muteForInspector() |
| 519 { | 520 { |
| 520 UseCounter::m_muteCount++; | 521 UseCounter::m_muteCount++; |
| 521 } | 522 } |
| 522 | 523 |
| 523 void UseCounter::unmuteForInspector() | 524 void UseCounter::unmuteForInspector() |
| 524 { | 525 { |
| 525 UseCounter::m_muteCount--; | 526 UseCounter::m_muteCount--; |
| 526 } | 527 } |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 905 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 906 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 906 { | 907 { |
| 907 // FIXME: We may want to handle stylesheets that have multiple owners | 908 // FIXME: We may want to handle stylesheets that have multiple owners |
| 908 // http://crbug.com/242125 | 909 // http://crbug.com/242125 |
| 909 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 910 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
| 910 return getFrom(sheetContents->singleOwnerDocument()); | 911 return getFrom(sheetContents->singleOwnerDocument()); |
| 911 return 0; | 912 return 0; |
| 912 } | 913 } |
| 913 | 914 |
| 914 } // namespace blink | 915 } // namespace blink |
| OLD | NEW |