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 CSSPropertyMaskSourceType: return 435; | 490 case CSSPropertyMaskSourceType: return 435; |
491 case CSSPropertyIsolation: return 436; | 491 case CSSPropertyIsolation: return 436; |
492 case CSSPropertyObjectPosition: return 437; | 492 case CSSPropertyObjectPosition: return 437; |
493 case CSSPropertyInternalCallback: return 438; | 493 case CSSPropertyInternalCallback: return 438; |
494 case CSSPropertyShapeImageThreshold: return 439; | 494 case CSSPropertyShapeImageThreshold: return 439; |
495 case CSSPropertyColumnFill: return 440; | 495 case CSSPropertyColumnFill: return 440; |
496 case CSSPropertyTextJustify: return 441; | 496 case CSSPropertyTextJustify: return 441; |
497 case CSSPropertyTouchActionDelay: return 442; | 497 case CSSPropertyTouchActionDelay: return 442; |
498 case CSSPropertyJustifySelf: return 443; | 498 case CSSPropertyJustifySelf: return 443; |
499 case CSSPropertyScrollBehavior: return 444; | 499 case CSSPropertyScrollBehavior: return 444; |
| 500 case CSSPropertyWillChange: return 445; |
500 | 501 |
501 // Add new features above this line (don't change the assigned numbers of th
e existing | 502 // Add new features above this line (don't change the assigned numbers of th
e existing |
502 // items) and update maximumCSSSampleId() with the new maximum value. | 503 // items) and update maximumCSSSampleId() with the new maximum value. |
503 | 504 |
504 // Internal properties should not be counted. | 505 // Internal properties should not be counted. |
505 case CSSPropertyInternalMarqueeDirection: | 506 case CSSPropertyInternalMarqueeDirection: |
506 case CSSPropertyInternalMarqueeIncrement: | 507 case CSSPropertyInternalMarqueeIncrement: |
507 case CSSPropertyInternalMarqueeRepetition: | 508 case CSSPropertyInternalMarqueeRepetition: |
508 case CSSPropertyInternalMarqueeSpeed: | 509 case CSSPropertyInternalMarqueeSpeed: |
509 case CSSPropertyInternalMarqueeStyle: | 510 case CSSPropertyInternalMarqueeStyle: |
510 case CSSPropertyInvalid: | 511 case CSSPropertyInvalid: |
511 ASSERT_NOT_REACHED(); | 512 ASSERT_NOT_REACHED(); |
512 return 0; | 513 return 0; |
513 } | 514 } |
514 | 515 |
515 ASSERT_NOT_REACHED(); | 516 ASSERT_NOT_REACHED(); |
516 return 0; | 517 return 0; |
517 } | 518 } |
518 | 519 |
519 static int maximumCSSSampleId() { return 444; } | 520 static int maximumCSSSampleId() { return 445; } |
520 | 521 |
521 UseCounter::UseCounter() | 522 UseCounter::UseCounter() |
522 { | 523 { |
523 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1); | 524 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1); |
524 m_CSSFeatureBits.clearAll(); | 525 m_CSSFeatureBits.clearAll(); |
525 } | 526 } |
526 | 527 |
527 UseCounter::~UseCounter() | 528 UseCounter::~UseCounter() |
528 { | 529 { |
529 // We always log PageDestruction so that we have a scale for the rest of the
features. | 530 // We always log PageDestruction so that we have a scale for the rest of the
features. |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 757 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
757 { | 758 { |
758 // FIXME: We may want to handle stylesheets that have multiple owners | 759 // FIXME: We may want to handle stylesheets that have multiple owners |
759 // http://crbug.com/242125 | 760 // http://crbug.com/242125 |
760 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 761 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
761 return getFrom(sheetContents->singleOwnerDocument()); | 762 return getFrom(sheetContents->singleOwnerDocument()); |
762 return 0; | 763 return 0; |
763 } | 764 } |
764 | 765 |
765 } // namespace WebCore | 766 } // namespace WebCore |
OLD | NEW |