| 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 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 case CSSPropertyWebkitFilter: return 413; | 481 case CSSPropertyWebkitFilter: return 413; |
| 482 case CSSPropertyWebkitBoxDecorationBreak: return 414; | 482 case CSSPropertyWebkitBoxDecorationBreak: return 414; |
| 483 case CSSPropertyWebkitTapHighlightColor: return 415; | 483 case CSSPropertyWebkitTapHighlightColor: return 415; |
| 484 case CSSPropertyBufferedRendering: return 416; | 484 case CSSPropertyBufferedRendering: return 416; |
| 485 case CSSPropertyGridAutoRows: return 417; | 485 case CSSPropertyGridAutoRows: return 417; |
| 486 case CSSPropertyGridAutoColumns: return 418; | 486 case CSSPropertyGridAutoColumns: return 418; |
| 487 case CSSPropertyBackgroundBlendMode: return 419; | 487 case CSSPropertyBackgroundBlendMode: return 419; |
| 488 case CSSPropertyMixBlendMode: return 420; | 488 case CSSPropertyMixBlendMode: return 420; |
| 489 case CSSPropertyTouchAction: return 421; | 489 case CSSPropertyTouchAction: return 421; |
| 490 case CSSPropertyGridArea: return 422; | 490 case CSSPropertyGridArea: return 422; |
| 491 case CSSPropertyInternalCallback: return 423; |
| 491 | 492 |
| 492 // 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 |
| 493 // items) and update maximumCSSSampleId() with the new maximum value. | 494 // items) and update maximumCSSSampleId() with the new maximum value. |
| 494 | 495 |
| 495 case CSSPropertyInvalid: | 496 case CSSPropertyInvalid: |
| 496 case CSSPropertyVariable: | 497 case CSSPropertyVariable: |
| 497 ASSERT_NOT_REACHED(); | 498 ASSERT_NOT_REACHED(); |
| 498 return 0; | 499 return 0; |
| 499 } | 500 } |
| 500 | 501 |
| 501 ASSERT_NOT_REACHED(); | 502 ASSERT_NOT_REACHED(); |
| 502 return 0; | 503 return 0; |
| 503 } | 504 } |
| 504 | 505 |
| 505 static int maximumCSSSampleId() { return 422; } | 506 static int maximumCSSSampleId() { return 423; } |
| 506 | 507 |
| 507 UseCounter::UseCounter() | 508 UseCounter::UseCounter() |
| 508 { | 509 { |
| 509 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1); | 510 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1); |
| 510 m_CSSFeatureBits.clearAll(); | 511 m_CSSFeatureBits.clearAll(); |
| 511 } | 512 } |
| 512 | 513 |
| 513 UseCounter::~UseCounter() | 514 UseCounter::~UseCounter() |
| 514 { | 515 { |
| 515 // 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 671 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 671 { | 672 { |
| 672 // FIXME: We may want to handle stylesheets that have multiple owners | 673 // FIXME: We may want to handle stylesheets that have multiple owners |
| 673 // http://crbug.com/242125 | 674 // http://crbug.com/242125 |
| 674 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha
sSingleOwnerNode()) | 675 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha
sSingleOwnerNode()) |
| 675 return getFrom(sheetContents->singleOwnerDocument()); | 676 return getFrom(sheetContents->singleOwnerDocument()); |
| 676 return 0; | 677 return 0; |
| 677 } | 678 } |
| 678 | 679 |
| 679 } // namespace WebCore | 680 } // namespace WebCore |
| OLD | NEW |