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

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: Add some tests which need a rebaseline to TestExpectation Created 5 years, 9 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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 CSSPropertyX: return 461; 498 case CSSPropertyX: return 461;
499 case CSSPropertyY: return 462; 499 case CSSPropertyY: return 462;
500 case CSSPropertyRx: return 463; 500 case CSSPropertyRx: return 463;
501 case CSSPropertyRy: return 464; 501 case CSSPropertyRy: return 464;
502 case CSSPropertyFontSizeAdjust: return 465;
502 503
503 // 1. Add new features above this line (don't change the assigned numbers of the existing 504 // 1. Add new features above this line (don't change the assigned numbers of the existing
504 // items). 505 // items).
505 // 2. Update maximumCSSSampleId() with the new maximum value. 506 // 2. Update maximumCSSSampleId() with the new maximum value.
506 // 3. Run the update_use_counter_css.py script in 507 // 3. Run the update_use_counter_css.py script in
507 // chromium/src/tools/metrics/histograms to update the UMA histogram names. 508 // chromium/src/tools/metrics/histograms to update the UMA histogram names.
508 509
509 case CSSPropertyInvalid: 510 case CSSPropertyInvalid:
510 ASSERT_NOT_REACHED(); 511 ASSERT_NOT_REACHED();
511 return 0; 512 return 0;
512 } 513 }
513 514
514 ASSERT_NOT_REACHED(); 515 ASSERT_NOT_REACHED();
515 return 0; 516 return 0;
516 } 517 }
517 518
518 static int maximumCSSSampleId() { return 464; } 519 static int maximumCSSSampleId() { return 465; }
519 520
520 void UseCounter::muteForInspector() 521 void UseCounter::muteForInspector()
521 { 522 {
522 UseCounter::m_muteCount++; 523 UseCounter::m_muteCount++;
523 } 524 }
524 525
525 void UseCounter::unmuteForInspector() 526 void UseCounter::unmuteForInspector()
526 { 527 {
527 UseCounter::m_muteCount--; 528 UseCounter::m_muteCount--;
528 } 529 }
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
901 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 902 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
902 { 903 {
903 // FIXME: We may want to handle stylesheets that have multiple owners 904 // FIXME: We may want to handle stylesheets that have multiple owners
904 // http://crbug.com/242125 905 // http://crbug.com/242125
905 if (sheetContents && sheetContents->hasSingleOwnerNode()) 906 if (sheetContents && sheetContents->hasSingleOwnerNode())
906 return getFrom(sheetContents->singleOwnerDocument()); 907 return getFrom(sheetContents->singleOwnerDocument());
907 return 0; 908 return 0;
908 } 909 }
909 910
910 } // namespace blink 911 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleBuilderConverter.cpp ('k') | Source/core/layout/style/LayoutStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698