| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google, Inc. All rights reserved. | 2 * Copyright (C) 2012 Google, Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 #endif | 483 #endif |
| 484 case CSSPropertyWebkitAppRegion: return 412; | 484 case CSSPropertyWebkitAppRegion: return 412; |
| 485 case CSSPropertyWebkitFilter: return 413; | 485 case CSSPropertyWebkitFilter: return 413; |
| 486 case CSSPropertyWebkitBoxDecorationBreak: return 414; | 486 case CSSPropertyWebkitBoxDecorationBreak: return 414; |
| 487 case CSSPropertyWebkitTapHighlightColor: return 415; | 487 case CSSPropertyWebkitTapHighlightColor: return 415; |
| 488 case CSSPropertyBufferedRendering: return 416; | 488 case CSSPropertyBufferedRendering: return 416; |
| 489 case CSSPropertyWebkitGridAutoRows: return 417; | 489 case CSSPropertyWebkitGridAutoRows: return 417; |
| 490 case CSSPropertyWebkitGridAutoColumns: return 418; | 490 case CSSPropertyWebkitGridAutoColumns: return 418; |
| 491 case CSSPropertyBackgroundBlendMode: return 419; | 491 case CSSPropertyBackgroundBlendMode: return 419; |
| 492 case CSSPropertyMixBlendMode: return 420; | 492 case CSSPropertyMixBlendMode: return 420; |
| 493 case CSSPropertyTouchAction: return 421; |
| 493 | 494 |
| 494 // Add new features above this line (don't change the assigned numbers of th
e existing | 495 // Add new features above this line (don't change the assigned numbers of th
e existing |
| 495 // items) and update maximumCSSSampleId() with the new maximum value. | 496 // items) and update maximumCSSSampleId() with the new maximum value. |
| 496 | 497 |
| 497 case CSSPropertyInvalid: | 498 case CSSPropertyInvalid: |
| 498 case CSSPropertyVariable: | 499 case CSSPropertyVariable: |
| 499 ASSERT_NOT_REACHED(); | 500 ASSERT_NOT_REACHED(); |
| 500 return 0; | 501 return 0; |
| 501 } | 502 } |
| 502 | 503 |
| 503 ASSERT_NOT_REACHED(); | 504 ASSERT_NOT_REACHED(); |
| 504 return 0; | 505 return 0; |
| 505 } | 506 } |
| 506 | 507 |
| 507 static int maximumCSSSampleId() { return 420; } | 508 static int maximumCSSSampleId() { return 421; } |
| 508 | 509 |
| 509 UseCounter::UseCounter() | 510 UseCounter::UseCounter() |
| 510 { | 511 { |
| 511 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1); | 512 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1); |
| 512 m_CSSFeatureBits.clearAll(); | 513 m_CSSFeatureBits.clearAll(); |
| 513 } | 514 } |
| 514 | 515 |
| 515 UseCounter::~UseCounter() | 516 UseCounter::~UseCounter() |
| 516 { | 517 { |
| 517 // We always log PageDestruction so that we have a scale for the rest of the
features. | 518 // We always log PageDestruction so that we have a scale for the rest of the
features. |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 667 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 667 { | 668 { |
| 668 // FIXME: We may want to handle stylesheets that have multiple owners | 669 // FIXME: We may want to handle stylesheets that have multiple owners |
| 669 // http://crbug.com/242125 | 670 // http://crbug.com/242125 |
| 670 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha
sSingleOwnerNode()) | 671 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha
sSingleOwnerNode()) |
| 671 return getFrom(sheetContents->singleOwnerDocument()); | 672 return getFrom(sheetContents->singleOwnerDocument()); |
| 672 return 0; | 673 return 0; |
| 673 } | 674 } |
| 674 | 675 |
| 675 } // namespace WebCore | 676 } // namespace WebCore |
| OLD | NEW |