| 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 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 case CSSPropertyGrid: return 453; | 499 case CSSPropertyGrid: return 453; |
| 500 case CSSPropertyAll: return 454; | 500 case CSSPropertyAll: return 454; |
| 501 case CSSPropertyJustifyItems: return 455; | 501 case CSSPropertyJustifyItems: return 455; |
| 502 | 502 |
| 503 // 1. Add new features above this line (don't change the assigned numbers of
the existing | 503 // 1. Add new features above this line (don't change the assigned numbers of
the existing |
| 504 // items). | 504 // items). |
| 505 // 2. Update maximumCSSSampleId() with the new maximum value. | 505 // 2. Update maximumCSSSampleId() with the new maximum value. |
| 506 // 3. Run the update_use_counter_css.py script in | 506 // 3. Run the update_use_counter_css.py script in |
| 507 // chromium/src/tools/metrics/histograms to update the UMA histogram names. | 507 // chromium/src/tools/metrics/histograms to update the UMA histogram names. |
| 508 | 508 |
| 509 // Internal properties should not be counted. | |
| 510 case CSSPropertyInternalMarqueeDirection: | |
| 511 case CSSPropertyInternalMarqueeIncrement: | |
| 512 case CSSPropertyInternalMarqueeRepetition: | |
| 513 case CSSPropertyInternalMarqueeSpeed: | |
| 514 case CSSPropertyInternalMarqueeStyle: | |
| 515 case CSSPropertyInvalid: | 509 case CSSPropertyInvalid: |
| 516 ASSERT_NOT_REACHED(); | 510 ASSERT_NOT_REACHED(); |
| 517 return 0; | 511 return 0; |
| 518 } | 512 } |
| 519 | 513 |
| 520 ASSERT_NOT_REACHED(); | 514 ASSERT_NOT_REACHED(); |
| 521 return 0; | 515 return 0; |
| 522 } | 516 } |
| 523 | 517 |
| 524 static int maximumCSSSampleId() { return 455; } | 518 static int maximumCSSSampleId() { return 455; } |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 848 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 855 { | 849 { |
| 856 // FIXME: We may want to handle stylesheets that have multiple owners | 850 // FIXME: We may want to handle stylesheets that have multiple owners |
| 857 // http://crbug.com/242125 | 851 // http://crbug.com/242125 |
| 858 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 852 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
| 859 return getFrom(sheetContents->singleOwnerDocument()); | 853 return getFrom(sheetContents->singleOwnerDocument()); |
| 860 return 0; | 854 return 0; |
| 861 } | 855 } |
| 862 | 856 |
| 863 } // namespace blink | 857 } // namespace blink |
| OLD | NEW |