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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 case CSSPropertyIsolation: return 436; | 493 case CSSPropertyIsolation: return 436; |
494 case CSSPropertyObjectPosition: return 437; | 494 case CSSPropertyObjectPosition: return 437; |
495 case CSSPropertyInternalCallback: return 438; | 495 case CSSPropertyInternalCallback: return 438; |
496 case CSSPropertyShapeImageThreshold: return 439; | 496 case CSSPropertyShapeImageThreshold: return 439; |
497 case CSSPropertyColumnFill: return 440; | 497 case CSSPropertyColumnFill: return 440; |
498 case CSSPropertyTextJustify: return 441; | 498 case CSSPropertyTextJustify: return 441; |
499 case CSSPropertyTouchActionDelay: return 442; | 499 case CSSPropertyTouchActionDelay: return 442; |
500 case CSSPropertyJustifySelf: return 443; | 500 case CSSPropertyJustifySelf: return 443; |
501 case CSSPropertyScrollBehavior: return 444; | 501 case CSSPropertyScrollBehavior: return 444; |
502 case CSSPropertyWillChange: return 445; | 502 case CSSPropertyWillChange: return 445; |
503 case CSSPropertyTransform: return 446; | |
504 case CSSPropertyTransformOrigin: return 447; | |
505 case CSSPropertyTransformStyle: return 448; | |
506 case CSSPropertyPerspective: return 449; | |
507 case CSSPropertyPerspectiveOrigin: return 450; | |
508 case CSSPropertyBackfaceVisibility: return 451; | |
509 | 503 |
510 // Add new features above this line (don't change the assigned numbers of th
e existing | 504 // Add new features above this line (don't change the assigned numbers of th
e existing |
511 // items) and update maximumCSSSampleId() with the new maximum value. | 505 // items) and update maximumCSSSampleId() with the new maximum value. |
512 | 506 |
513 // Internal properties should not be counted. | 507 // Internal properties should not be counted. |
514 case CSSPropertyInternalMarqueeDirection: | 508 case CSSPropertyInternalMarqueeDirection: |
515 case CSSPropertyInternalMarqueeIncrement: | 509 case CSSPropertyInternalMarqueeIncrement: |
516 case CSSPropertyInternalMarqueeRepetition: | 510 case CSSPropertyInternalMarqueeRepetition: |
517 case CSSPropertyInternalMarqueeSpeed: | 511 case CSSPropertyInternalMarqueeSpeed: |
518 case CSSPropertyInternalMarqueeStyle: | 512 case CSSPropertyInternalMarqueeStyle: |
519 case CSSPropertyInvalid: | 513 case CSSPropertyInvalid: |
520 ASSERT_NOT_REACHED(); | 514 ASSERT_NOT_REACHED(); |
521 return 0; | 515 return 0; |
522 } | 516 } |
523 | 517 |
524 ASSERT_NOT_REACHED(); | 518 ASSERT_NOT_REACHED(); |
525 return 0; | 519 return 0; |
526 } | 520 } |
527 | 521 |
528 static int maximumCSSSampleId() { return 451; } | 522 static int maximumCSSSampleId() { return 445; } |
529 | 523 |
530 void UseCounter::muteForInspector() | 524 void UseCounter::muteForInspector() |
531 { | 525 { |
532 UseCounter::m_muteCount++; | 526 UseCounter::m_muteCount++; |
533 } | 527 } |
534 | 528 |
535 void UseCounter::unmuteForInspector() | 529 void UseCounter::unmuteForInspector() |
536 { | 530 { |
537 UseCounter::m_muteCount--; | 531 UseCounter::m_muteCount--; |
538 } | 532 } |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 732 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
739 { | 733 { |
740 // FIXME: We may want to handle stylesheets that have multiple owners | 734 // FIXME: We may want to handle stylesheets that have multiple owners |
741 // http://crbug.com/242125 | 735 // http://crbug.com/242125 |
742 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 736 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
743 return getFrom(sheetContents->singleOwnerDocument()); | 737 return getFrom(sheetContents->singleOwnerDocument()); |
744 return 0; | 738 return 0; |
745 } | 739 } |
746 | 740 |
747 } // namespace WebCore | 741 } // namespace WebCore |
OLD | NEW |