| 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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 case CSSPropertyWebkitBoxDecorationBreak: return 414; | 478 case CSSPropertyWebkitBoxDecorationBreak: return 414; |
| 479 case CSSPropertyWebkitTapHighlightColor: return 415; | 479 case CSSPropertyWebkitTapHighlightColor: return 415; |
| 480 case CSSPropertyBufferedRendering: return 416; | 480 case CSSPropertyBufferedRendering: return 416; |
| 481 case CSSPropertyGridAutoRows: return 417; | 481 case CSSPropertyGridAutoRows: return 417; |
| 482 case CSSPropertyGridAutoColumns: return 418; | 482 case CSSPropertyGridAutoColumns: return 418; |
| 483 case CSSPropertyBackgroundBlendMode: return 419; | 483 case CSSPropertyBackgroundBlendMode: return 419; |
| 484 case CSSPropertyMixBlendMode: return 420; | 484 case CSSPropertyMixBlendMode: return 420; |
| 485 case CSSPropertyTouchAction: return 421; | 485 case CSSPropertyTouchAction: return 421; |
| 486 case CSSPropertyGridArea: return 422; | 486 case CSSPropertyGridArea: return 422; |
| 487 case CSSPropertyGridTemplate: return 423; | 487 case CSSPropertyGridTemplate: return 423; |
| 488 case CSSPropertyInternalCallback: return 424; |
| 488 | 489 |
| 489 // Add new features above this line (don't change the assigned numbers of th
e existing | 490 // Add new features above this line (don't change the assigned numbers of th
e existing |
| 490 // items) and update maximumCSSSampleId() with the new maximum value. | 491 // items) and update maximumCSSSampleId() with the new maximum value. |
| 491 | 492 |
| 492 case CSSPropertyInvalid: | 493 case CSSPropertyInvalid: |
| 493 case CSSPropertyVariable: | 494 case CSSPropertyVariable: |
| 494 ASSERT_NOT_REACHED(); | 495 ASSERT_NOT_REACHED(); |
| 495 return 0; | 496 return 0; |
| 496 } | 497 } |
| 497 | 498 |
| 498 ASSERT_NOT_REACHED(); | 499 ASSERT_NOT_REACHED(); |
| 499 return 0; | 500 return 0; |
| 500 } | 501 } |
| 501 | 502 |
| 502 static int maximumCSSSampleId() { return 423; } | 503 static int maximumCSSSampleId() { return 424; } |
| 503 | 504 |
| 504 UseCounter::UseCounter() | 505 UseCounter::UseCounter() |
| 505 { | 506 { |
| 506 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1); | 507 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1); |
| 507 m_CSSFeatureBits.clearAll(); | 508 m_CSSFeatureBits.clearAll(); |
| 508 } | 509 } |
| 509 | 510 |
| 510 UseCounter::~UseCounter() | 511 UseCounter::~UseCounter() |
| 511 { | 512 { |
| 512 // We always log PageDestruction so that we have a scale for the rest of the
features. | 513 // We always log PageDestruction so that we have a scale for the rest of the
features. |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 690 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 691 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 691 { | 692 { |
| 692 // FIXME: We may want to handle stylesheets that have multiple owners | 693 // FIXME: We may want to handle stylesheets that have multiple owners |
| 693 // http://crbug.com/242125 | 694 // http://crbug.com/242125 |
| 694 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha
sSingleOwnerNode()) | 695 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha
sSingleOwnerNode()) |
| 695 return getFrom(sheetContents->singleOwnerDocument()); | 696 return getFrom(sheetContents->singleOwnerDocument()); |
| 696 return 0; | 697 return 0; |
| 697 } | 698 } |
| 698 | 699 |
| 699 } // namespace WebCore | 700 } // namespace WebCore |
| OLD | NEW |