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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 case CSSPropertyScrollBehavior: return 444; | 502 case CSSPropertyScrollBehavior: return 444; |
503 case CSSPropertyWillChange: return 445; | 503 case CSSPropertyWillChange: return 445; |
504 case CSSPropertyTransform: return 446; | 504 case CSSPropertyTransform: return 446; |
505 case CSSPropertyTransformOrigin: return 447; | 505 case CSSPropertyTransformOrigin: return 447; |
506 case CSSPropertyTransformStyle: return 448; | 506 case CSSPropertyTransformStyle: return 448; |
507 case CSSPropertyPerspective: return 449; | 507 case CSSPropertyPerspective: return 449; |
508 case CSSPropertyPerspectiveOrigin: return 450; | 508 case CSSPropertyPerspectiveOrigin: return 450; |
509 case CSSPropertyBackfaceVisibility: return 451; | 509 case CSSPropertyBackfaceVisibility: return 451; |
510 case CSSPropertyGridTemplate: return 452; | 510 case CSSPropertyGridTemplate: return 452; |
511 case CSSPropertyGrid: return 453; | 511 case CSSPropertyGrid: return 453; |
| 512 case CSSPropertyAll: return 454; |
512 | 513 |
513 // Add new features above this line (don't change the assigned numbers of th
e existing | 514 // Add new features above this line (don't change the assigned numbers of th
e existing |
514 // items) and update maximumCSSSampleId() with the new maximum value. | 515 // items) and update maximumCSSSampleId() with the new maximum value. |
515 | 516 |
516 // Internal properties should not be counted. | 517 // Internal properties should not be counted. |
517 case CSSPropertyInternalMarqueeDirection: | 518 case CSSPropertyInternalMarqueeDirection: |
518 case CSSPropertyInternalMarqueeIncrement: | 519 case CSSPropertyInternalMarqueeIncrement: |
519 case CSSPropertyInternalMarqueeRepetition: | 520 case CSSPropertyInternalMarqueeRepetition: |
520 case CSSPropertyInternalMarqueeSpeed: | 521 case CSSPropertyInternalMarqueeSpeed: |
521 case CSSPropertyInternalMarqueeStyle: | 522 case CSSPropertyInternalMarqueeStyle: |
522 case CSSPropertyInvalid: | 523 case CSSPropertyInvalid: |
523 ASSERT_NOT_REACHED(); | 524 ASSERT_NOT_REACHED(); |
524 return 0; | 525 return 0; |
525 } | 526 } |
526 | 527 |
527 ASSERT_NOT_REACHED(); | 528 ASSERT_NOT_REACHED(); |
528 return 0; | 529 return 0; |
529 } | 530 } |
530 | 531 |
531 static int maximumCSSSampleId() { return 453; } | 532 static int maximumCSSSampleId() { return 454; } |
532 | 533 |
533 void UseCounter::muteForInspector() | 534 void UseCounter::muteForInspector() |
534 { | 535 { |
535 UseCounter::m_muteCount++; | 536 UseCounter::m_muteCount++; |
536 } | 537 } |
537 | 538 |
538 void UseCounter::unmuteForInspector() | 539 void UseCounter::unmuteForInspector() |
539 { | 540 { |
540 UseCounter::m_muteCount--; | 541 UseCounter::m_muteCount--; |
541 } | 542 } |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 770 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
770 { | 771 { |
771 // FIXME: We may want to handle stylesheets that have multiple owners | 772 // FIXME: We may want to handle stylesheets that have multiple owners |
772 // http://crbug.com/242125 | 773 // http://crbug.com/242125 |
773 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 774 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
774 return getFrom(sheetContents->singleOwnerDocument()); | 775 return getFrom(sheetContents->singleOwnerDocument()); |
775 return 0; | 776 return 0; |
776 } | 777 } |
777 | 778 |
778 } // namespace WebCore | 779 } // namespace WebCore |
OLD | NEW |