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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 case CSSPropertyWebkitBoxDecorationBreak: return 414; | 478 case CSSPropertyWebkitBoxDecorationBreak: return 414; |
479 case CSSPropertyWebkitTapHighlightColor: return 415; | 479 case CSSPropertyWebkitTapHighlightColor: return 415; |
480 case CSSPropertyBufferedRendering: return 416; | 480 case CSSPropertyBufferedRendering: return 416; |
481 case CSSPropertyGridAutoRows: return 417; | 481 case CSSPropertyGridAutoRows: return 417; |
482 case CSSPropertyGridAutoColumns: return 418; | 482 case CSSPropertyGridAutoColumns: return 418; |
483 case CSSPropertyBackgroundBlendMode: return 419; | 483 case CSSPropertyBackgroundBlendMode: return 419; |
484 case CSSPropertyMixBlendMode: return 420; | 484 case CSSPropertyMixBlendMode: return 420; |
485 case CSSPropertyTouchAction: return 421; | 485 case CSSPropertyTouchAction: return 421; |
486 case CSSPropertyGridArea: return 422; | 486 case CSSPropertyGridArea: return 422; |
487 case CSSPropertyGridTemplate: return 423; | 487 case CSSPropertyGridTemplate: return 423; |
| 488 case CSSPropertyNavDown: return 424; |
| 489 case CSSPropertyNavLeft: return 425; |
| 490 case CSSPropertyNavRight: return 426; |
| 491 case CSSPropertyNavUp: return 427; |
488 | 492 |
489 // Add new features above this line (don't change the assigned numbers of th
e existing | 493 // Add new features above this line (don't change the assigned numbers of th
e existing |
490 // items) and update maximumCSSSampleId() with the new maximum value. | 494 // items) and update maximumCSSSampleId() with the new maximum value. |
491 | 495 |
492 case CSSPropertyInvalid: | 496 case CSSPropertyInvalid: |
493 case CSSPropertyVariable: | 497 case CSSPropertyVariable: |
494 ASSERT_NOT_REACHED(); | 498 ASSERT_NOT_REACHED(); |
495 return 0; | 499 return 0; |
496 } | 500 } |
497 | 501 |
498 ASSERT_NOT_REACHED(); | 502 ASSERT_NOT_REACHED(); |
499 return 0; | 503 return 0; |
500 } | 504 } |
501 | 505 |
502 static int maximumCSSSampleId() { return 423; } | 506 static int maximumCSSSampleId() { return 427; } |
503 | 507 |
504 UseCounter::UseCounter() | 508 UseCounter::UseCounter() |
505 { | 509 { |
506 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1); | 510 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1); |
507 m_CSSFeatureBits.clearAll(); | 511 m_CSSFeatureBits.clearAll(); |
508 } | 512 } |
509 | 513 |
510 UseCounter::~UseCounter() | 514 UseCounter::~UseCounter() |
511 { | 515 { |
512 // We always log PageDestruction so that we have a scale for the rest of the
features. | 516 // We always log PageDestruction so that we have a scale for the rest of the
features. |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 685 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
682 { | 686 { |
683 // FIXME: We may want to handle stylesheets that have multiple owners | 687 // FIXME: We may want to handle stylesheets that have multiple owners |
684 // http://crbug.com/242125 | 688 // http://crbug.com/242125 |
685 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha
sSingleOwnerNode()) | 689 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha
sSingleOwnerNode()) |
686 return getFrom(sheetContents->singleOwnerDocument()); | 690 return getFrom(sheetContents->singleOwnerDocument()); |
687 return 0; | 691 return 0; |
688 } | 692 } |
689 | 693 |
690 } // namespace WebCore | 694 } // namespace WebCore |
OLD | NEW |