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 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 case CSSPropertyAnimationIterationCount: return 429; | 491 case CSSPropertyAnimationIterationCount: return 429; |
492 case CSSPropertyAnimationName: return 430; | 492 case CSSPropertyAnimationName: return 430; |
493 case CSSPropertyAnimationPlayState: return 431; | 493 case CSSPropertyAnimationPlayState: return 431; |
494 case CSSPropertyAnimationTimingFunction: return 432; | 494 case CSSPropertyAnimationTimingFunction: return 432; |
495 case CSSPropertyObjectFit: return 433; | 495 case CSSPropertyObjectFit: return 433; |
496 case CSSPropertyPaintOrder: return 434; | 496 case CSSPropertyPaintOrder: return 434; |
497 case CSSPropertyMaskSourceType: return 435; | 497 case CSSPropertyMaskSourceType: return 435; |
498 case CSSPropertyIsolation: return 436; | 498 case CSSPropertyIsolation: return 436; |
499 case CSSPropertyObjectPosition: return 437; | 499 case CSSPropertyObjectPosition: return 437; |
500 case CSSPropertyInternalCallback: return 438; | 500 case CSSPropertyInternalCallback: return 438; |
| 501 case CSSPropertyWebkitColumnFill: return 439; |
501 | 502 |
502 // Add new features above this line (don't change the assigned numbers of th
e existing | 503 // Add new features above this line (don't change the assigned numbers of th
e existing |
503 // items) and update maximumCSSSampleId() with the new maximum value. | 504 // items) and update maximumCSSSampleId() with the new maximum value. |
504 | 505 |
505 case CSSPropertyInvalid: | 506 case CSSPropertyInvalid: |
506 case CSSPropertyVariable: | 507 case CSSPropertyVariable: |
507 ASSERT_NOT_REACHED(); | 508 ASSERT_NOT_REACHED(); |
508 return 0; | 509 return 0; |
509 } | 510 } |
510 | 511 |
511 ASSERT_NOT_REACHED(); | 512 ASSERT_NOT_REACHED(); |
512 return 0; | 513 return 0; |
513 } | 514 } |
514 | 515 |
515 static int maximumCSSSampleId() { return 438; } | 516 static int maximumCSSSampleId() { return 439; } |
516 | 517 |
517 UseCounter::UseCounter() | 518 UseCounter::UseCounter() |
518 { | 519 { |
519 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1); | 520 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1); |
520 m_CSSFeatureBits.clearAll(); | 521 m_CSSFeatureBits.clearAll(); |
521 } | 522 } |
522 | 523 |
523 UseCounter::~UseCounter() | 524 UseCounter::~UseCounter() |
524 { | 525 { |
525 // We always log PageDestruction so that we have a scale for the rest of the
features. | 526 // We always log PageDestruction so that we have a scale for the rest of the
features. |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 716 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
716 { | 717 { |
717 // FIXME: We may want to handle stylesheets that have multiple owners | 718 // FIXME: We may want to handle stylesheets that have multiple owners |
718 // http://crbug.com/242125 | 719 // http://crbug.com/242125 |
719 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha
sSingleOwnerNode()) | 720 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha
sSingleOwnerNode()) |
720 return getFrom(sheetContents->singleOwnerDocument()); | 721 return getFrom(sheetContents->singleOwnerDocument()); |
721 return 0; | 722 return 0; |
722 } | 723 } |
723 | 724 |
724 } // namespace WebCore | 725 } // namespace WebCore |
OLD | NEW |