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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 case CSSPropertyAnimationDirection: return 426; | 488 case CSSPropertyAnimationDirection: return 426; |
489 case CSSPropertyAnimationDuration: return 427; | 489 case CSSPropertyAnimationDuration: return 427; |
490 case CSSPropertyAnimationFillMode: return 428; | 490 case CSSPropertyAnimationFillMode: return 428; |
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 CSSPropertyObjectPosition: return 436; |
498 | 499 |
499 // Add new features above this line (don't change the assigned numbers of th
e existing | 500 // Add new features above this line (don't change the assigned numbers of th
e existing |
500 // items) and update maximumCSSSampleId() with the new maximum value. | 501 // items) and update maximumCSSSampleId() with the new maximum value. |
501 | 502 |
502 case CSSPropertyInvalid: | 503 case CSSPropertyInvalid: |
503 case CSSPropertyVariable: | 504 case CSSPropertyVariable: |
504 ASSERT_NOT_REACHED(); | 505 ASSERT_NOT_REACHED(); |
505 return 0; | 506 return 0; |
506 } | 507 } |
507 | 508 |
508 ASSERT_NOT_REACHED(); | 509 ASSERT_NOT_REACHED(); |
509 return 0; | 510 return 0; |
510 } | 511 } |
511 | 512 |
512 static int maximumCSSSampleId() { return 434; } | 513 static int maximumCSSSampleId() { return 436; } |
513 | 514 |
514 UseCounter::UseCounter() | 515 UseCounter::UseCounter() |
515 { | 516 { |
516 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1); | 517 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1); |
517 m_CSSFeatureBits.clearAll(); | 518 m_CSSFeatureBits.clearAll(); |
518 } | 519 } |
519 | 520 |
520 UseCounter::~UseCounter() | 521 UseCounter::~UseCounter() |
521 { | 522 { |
522 // We always log PageDestruction so that we have a scale for the rest of the
features. | 523 // We always log PageDestruction so that we have a scale for the rest of the
features. |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 707 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
707 { | 708 { |
708 // FIXME: We may want to handle stylesheets that have multiple owners | 709 // FIXME: We may want to handle stylesheets that have multiple owners |
709 // http://crbug.com/242125 | 710 // http://crbug.com/242125 |
710 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha
sSingleOwnerNode()) | 711 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha
sSingleOwnerNode()) |
711 return getFrom(sheetContents->singleOwnerDocument()); | 712 return getFrom(sheetContents->singleOwnerDocument()); |
712 return 0; | 713 return 0; |
713 } | 714 } |
714 | 715 |
715 } // namespace WebCore | 716 } // namespace WebCore |
OLD | NEW |