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

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

Issue 943463002: Initial implementation of font-size-adjust (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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
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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 case CSSPropertyBackfaceVisibility: return 451; 488 case CSSPropertyBackfaceVisibility: return 451;
489 case CSSPropertyGridTemplate: return 452; 489 case CSSPropertyGridTemplate: return 452;
490 case CSSPropertyGrid: return 453; 490 case CSSPropertyGrid: return 453;
491 case CSSPropertyAll: return 454; 491 case CSSPropertyAll: return 454;
492 case CSSPropertyJustifyItems: return 455; 492 case CSSPropertyJustifyItems: return 455;
493 case CSSPropertyScrollBlocksOn: return 456; 493 case CSSPropertyScrollBlocksOn: return 456;
494 case CSSPropertyMotionPath: return 457; 494 case CSSPropertyMotionPath: return 457;
495 case CSSPropertyMotionPosition: return 458; 495 case CSSPropertyMotionPosition: return 458;
496 case CSSPropertyMotionRotation: return 459; 496 case CSSPropertyMotionRotation: return 459;
497 case CSSPropertyMotion: return 460; 497 case CSSPropertyMotion: return 460;
498 case CSSPropertyFontSizeAdjust: return 461;
498 499
499 // 1. Add new features above this line (don't change the assigned numbers of the existing 500 // 1. Add new features above this line (don't change the assigned numbers of the existing
500 // items). 501 // items).
501 // 2. Update maximumCSSSampleId() with the new maximum value. 502 // 2. Update maximumCSSSampleId() with the new maximum value.
502 // 3. Run the update_use_counter_css.py script in 503 // 3. Run the update_use_counter_css.py script in
503 // chromium/src/tools/metrics/histograms to update the UMA histogram names. 504 // chromium/src/tools/metrics/histograms to update the UMA histogram names.
504 505
505 case CSSPropertyInvalid: 506 case CSSPropertyInvalid:
506 ASSERT_NOT_REACHED(); 507 ASSERT_NOT_REACHED();
507 return 0; 508 return 0;
508 } 509 }
509 510
510 ASSERT_NOT_REACHED(); 511 ASSERT_NOT_REACHED();
511 return 0; 512 return 0;
512 } 513 }
513 514
514 static int maximumCSSSampleId() { return 460; } 515 static int maximumCSSSampleId() { return 461; }
515 516
516 void UseCounter::muteForInspector() 517 void UseCounter::muteForInspector()
517 { 518 {
518 UseCounter::m_muteCount++; 519 UseCounter::m_muteCount++;
519 } 520 }
520 521
521 void UseCounter::unmuteForInspector() 522 void UseCounter::unmuteForInspector()
522 { 523 {
523 UseCounter::m_muteCount--; 524 UseCounter::m_muteCount--;
524 } 525 }
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 898 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
898 { 899 {
899 // FIXME: We may want to handle stylesheets that have multiple owners 900 // FIXME: We may want to handle stylesheets that have multiple owners
900 // http://crbug.com/242125 901 // http://crbug.com/242125
901 if (sheetContents && sheetContents->hasSingleOwnerNode()) 902 if (sheetContents && sheetContents->hasSingleOwnerNode())
902 return getFrom(sheetContents->singleOwnerDocument()); 903 return getFrom(sheetContents->singleOwnerDocument());
903 return 0; 904 return 0;
904 } 905 }
905 906
906 } // namespace blink 907 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698