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

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

Issue 1192983003: CSS Custom Properties (Variables) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Whoops, the forward declaration just needed to be moved. Created 5 years, 2 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 * 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 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 case CSSPropertyScrollSnapPointsY: return 501; 536 case CSSPropertyScrollSnapPointsY: return 501;
537 case CSSPropertyScrollSnapCoordinate: return 502; 537 case CSSPropertyScrollSnapCoordinate: return 502;
538 case CSSPropertyScrollSnapDestination: return 503; 538 case CSSPropertyScrollSnapDestination: return 503;
539 case CSSPropertyTranslate: return 504; 539 case CSSPropertyTranslate: return 504;
540 case CSSPropertyRotate: return 505; 540 case CSSPropertyRotate: return 505;
541 case CSSPropertyScale: return 506; 541 case CSSPropertyScale: return 506;
542 case CSSPropertyImageOrientation: return 507; 542 case CSSPropertyImageOrientation: return 507;
543 case CSSPropertyBackdropFilter: return 508; 543 case CSSPropertyBackdropFilter: return 508;
544 case CSSPropertyTextCombineUpright: return 509; 544 case CSSPropertyTextCombineUpright: return 509;
545 case CSSPropertyTextOrientation: return 510; 545 case CSSPropertyTextOrientation: return 510;
546 case CSSPropertyVariable: return 511;
546 547
547 // 1. Add new features above this line (don't change the assigned numbers of the existing 548 // 1. Add new features above this line (don't change the assigned numbers of the existing
548 // items). 549 // items).
549 // 2. Update maximumCSSSampleId() with the new maximum value. 550 // 2. Update maximumCSSSampleId() with the new maximum value.
550 // 3. Run the update_use_counter_css.py script in 551 // 3. Run the update_use_counter_css.py script in
551 // chromium/src/tools/metrics/histograms to update the UMA histogram names. 552 // chromium/src/tools/metrics/histograms to update the UMA histogram names.
552 553
553 case CSSPropertyInvalid: 554 case CSSPropertyInvalid:
554 ASSERT_NOT_REACHED(); 555 ASSERT_NOT_REACHED();
555 return 0; 556 return 0;
556 } 557 }
557 558
558 ASSERT_NOT_REACHED(); 559 ASSERT_NOT_REACHED();
559 return 0; 560 return 0;
560 } 561 }
561 562
562 static int maximumCSSSampleId() { return 510; } 563 static int maximumCSSSampleId() { return 511; }
563 564
564 void UseCounter::muteForInspector() 565 void UseCounter::muteForInspector()
565 { 566 {
566 UseCounter::m_muteCount++; 567 UseCounter::m_muteCount++;
567 } 568 }
568 569
569 void UseCounter::unmuteForInspector() 570 void UseCounter::unmuteForInspector()
570 { 571 {
571 UseCounter::m_muteCount--; 572 UseCounter::m_muteCount--;
572 } 573 }
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 981 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
981 { 982 {
982 // FIXME: We may want to handle stylesheets that have multiple owners 983 // FIXME: We may want to handle stylesheets that have multiple owners
983 // http://crbug.com/242125 984 // http://crbug.com/242125
984 if (sheetContents && sheetContents->hasSingleOwnerNode()) 985 if (sheetContents && sheetContents->hasSingleOwnerNode())
985 return getFrom(sheetContents->singleOwnerDocument()); 986 return getFrom(sheetContents->singleOwnerDocument());
986 return 0; 987 return 0;
987 } 988 }
988 989
989 } // namespace blink 990 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698