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

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

Issue 1429713004: Implement CSS font-display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: failure does not mean loaded Created 5 years, 1 month 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
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 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 CSSPropertyGridColumnGap: return 511; 546 case CSSPropertyGridColumnGap: return 511;
547 case CSSPropertyGridRowGap: return 512; 547 case CSSPropertyGridRowGap: return 512;
548 case CSSPropertyGridGap: return 513; 548 case CSSPropertyGridGap: return 513;
549 case CSSPropertyFontFeatureSettings: return 514; 549 case CSSPropertyFontFeatureSettings: return 514;
550 case CSSPropertyVariable: return 515; 550 case CSSPropertyVariable: return 515;
551 case CSSPropertyFontDisplay: return 516;
551 552
552 // 1. Add new features above this line (don't change the assigned numbers of the existing 553 // 1. Add new features above this line (don't change the assigned numbers of the existing
553 // items). 554 // items).
554 // 2. Update maximumCSSSampleId() with the new maximum value. 555 // 2. Update maximumCSSSampleId() with the new maximum value.
555 // 3. Run the update_use_counter_css.py script in 556 // 3. Run the update_use_counter_css.py script in
556 // chromium/src/tools/metrics/histograms to update the UMA histogram names. 557 // chromium/src/tools/metrics/histograms to update the UMA histogram names.
557 558
558 case CSSPropertyInvalid: 559 case CSSPropertyInvalid:
559 ASSERT_NOT_REACHED(); 560 ASSERT_NOT_REACHED();
560 return 0; 561 return 0;
561 } 562 }
562 563
563 ASSERT_NOT_REACHED(); 564 ASSERT_NOT_REACHED();
564 return 0; 565 return 0;
565 } 566 }
566 567
567 static int maximumCSSSampleId() { return 515; } 568 static int maximumCSSSampleId() { return 516; }
568 569
569 void UseCounter::muteForInspector() 570 void UseCounter::muteForInspector()
570 { 571 {
571 UseCounter::m_muteCount++; 572 UseCounter::m_muteCount++;
572 } 573 }
573 574
574 void UseCounter::unmuteForInspector() 575 void UseCounter::unmuteForInspector()
575 { 576 {
576 UseCounter::m_muteCount--; 577 UseCounter::m_muteCount--;
577 } 578 }
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 999 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
999 { 1000 {
1000 // FIXME: We may want to handle stylesheets that have multiple owners 1001 // FIXME: We may want to handle stylesheets that have multiple owners
1001 // https://crbug.com/242125 1002 // https://crbug.com/242125
1002 if (sheetContents && sheetContents->hasSingleOwnerNode()) 1003 if (sheetContents && sheetContents->hasSingleOwnerNode())
1003 return getFrom(sheetContents->singleOwnerDocument()); 1004 return getFrom(sheetContents->singleOwnerDocument());
1004 return 0; 1005 return 0;
1005 } 1006 }
1006 1007
1007 } // namespace blink 1008 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/FontResource.cpp ('k') | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698