Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Side by Side Diff: Source/core/frame/UseCounter.cpp

Issue 216803002: Implement all shorthand property. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed ASSERT_NOT_REACH in linux_blink_dbg Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« Source/core/css/resolver/StyleResolver.cpp ('K') | « Source/core/css/resolver/StyleResolver.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698