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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 case CSSPropertyObjectFit: return 433; | 489 case CSSPropertyObjectFit: return 433; |
490 case CSSPropertyPaintOrder: return 434; | 490 case CSSPropertyPaintOrder: return 434; |
491 case CSSPropertyMaskSourceType: return 435; | 491 case CSSPropertyMaskSourceType: return 435; |
492 case CSSPropertyIsolation: return 436; | 492 case CSSPropertyIsolation: return 436; |
493 case CSSPropertyObjectPosition: return 437; | 493 case CSSPropertyObjectPosition: return 437; |
494 case CSSPropertyInternalCallback: return 438; | 494 case CSSPropertyInternalCallback: return 438; |
495 case CSSPropertyShapeImageThreshold: return 439; | 495 case CSSPropertyShapeImageThreshold: return 439; |
496 case CSSPropertyColumnFill: return 440; | 496 case CSSPropertyColumnFill: return 440; |
497 case CSSPropertyTextJustify: return 441; | 497 case CSSPropertyTextJustify: return 441; |
498 case CSSPropertyTouchActionDelay: return 442; | 498 case CSSPropertyTouchActionDelay: return 442; |
| 499 case CSSPropertyJustifySelf: return 443; |
499 | 500 |
500 // Add new features above this line (don't change the assigned numbers of th
e existing | 501 // Add new features above this line (don't change the assigned numbers of th
e existing |
501 // items) and update maximumCSSSampleId() with the new maximum value. | 502 // items) and update maximumCSSSampleId() with the new maximum value. |
502 | 503 |
503 // Internal properties should not be counted. | 504 // Internal properties should not be counted. |
504 case CSSPropertyInternalMarqueeDirection: | 505 case CSSPropertyInternalMarqueeDirection: |
505 case CSSPropertyInternalMarqueeIncrement: | 506 case CSSPropertyInternalMarqueeIncrement: |
506 case CSSPropertyInternalMarqueeRepetition: | 507 case CSSPropertyInternalMarqueeRepetition: |
507 case CSSPropertyInternalMarqueeSpeed: | 508 case CSSPropertyInternalMarqueeSpeed: |
508 case CSSPropertyInternalMarqueeStyle: | 509 case CSSPropertyInternalMarqueeStyle: |
509 case CSSPropertyInvalid: | 510 case CSSPropertyInvalid: |
510 case CSSPropertyVariable: | 511 case CSSPropertyVariable: |
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 442; } | 520 static int maximumCSSSampleId() { return 443; } |
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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
723 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 724 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
724 { | 725 { |
725 // FIXME: We may want to handle stylesheets that have multiple owners | 726 // FIXME: We may want to handle stylesheets that have multiple owners |
726 // http://crbug.com/242125 | 727 // http://crbug.com/242125 |
727 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 728 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
728 return getFrom(sheetContents->singleOwnerDocument()); | 729 return getFrom(sheetContents->singleOwnerDocument()); |
729 return 0; | 730 return 0; |
730 } | 731 } |
731 | 732 |
732 } // namespace WebCore | 733 } // namespace WebCore |
OLD | NEW |