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

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

Issue 1162793003: Add CSS image-orientation: from-image (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Improved check Created 5 years, 6 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 * 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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 case CSSPropertyAliasWebkitOpacity: return 494; 530 case CSSPropertyAliasWebkitOpacity: return 494;
531 case CSSPropertyAliasWebkitOrder: return 495; 531 case CSSPropertyAliasWebkitOrder: return 495;
532 case CSSPropertyAliasWebkitShapeImageThreshold: return 496; 532 case CSSPropertyAliasWebkitShapeImageThreshold: return 496;
533 case CSSPropertyAliasWebkitShapeMargin: return 497; 533 case CSSPropertyAliasWebkitShapeMargin: return 497;
534 case CSSPropertyAliasWebkitShapeOutside: return 498; 534 case CSSPropertyAliasWebkitShapeOutside: return 498;
535 case CSSPropertyScrollSnapType: return 499; 535 case CSSPropertyScrollSnapType: return 499;
536 case CSSPropertyScrollSnapPointsX: return 500; 536 case CSSPropertyScrollSnapPointsX: return 500;
537 case CSSPropertyScrollSnapPointsY: return 501; 537 case CSSPropertyScrollSnapPointsY: return 501;
538 case CSSPropertyScrollSnapCoordinate: return 502; 538 case CSSPropertyScrollSnapCoordinate: return 502;
539 case CSSPropertyScrollSnapDestination: return 503; 539 case CSSPropertyScrollSnapDestination: return 503;
540 case CSSPropertyImageOrientation: return 504;
540 541
541 // 1. Add new features above this line (don't change the assigned numbers of the existing 542 // 1. Add new features above this line (don't change the assigned numbers of the existing
542 // items). 543 // items).
543 // 2. Update maximumCSSSampleId() with the new maximum value. 544 // 2. Update maximumCSSSampleId() with the new maximum value.
544 // 3. Run the update_use_counter_css.py script in 545 // 3. Run the update_use_counter_css.py script in
545 // chromium/src/tools/metrics/histograms to update the UMA histogram names. 546 // chromium/src/tools/metrics/histograms to update the UMA histogram names.
546 547
547 case CSSPropertyInvalid: 548 case CSSPropertyInvalid:
548 ASSERT_NOT_REACHED(); 549 ASSERT_NOT_REACHED();
549 return 0; 550 return 0;
550 } 551 }
551 552
552 ASSERT_NOT_REACHED(); 553 ASSERT_NOT_REACHED();
553 return 0; 554 return 0;
554 } 555 }
555 556
556 static int maximumCSSSampleId() { return 503; } 557 static int maximumCSSSampleId() { return 504; }
557 558
558 void UseCounter::muteForInspector() 559 void UseCounter::muteForInspector()
559 { 560 {
560 UseCounter::m_muteCount++; 561 UseCounter::m_muteCount++;
561 } 562 }
562 563
563 void UseCounter::unmuteForInspector() 564 void UseCounter::unmuteForInspector()
564 { 565 {
565 UseCounter::m_muteCount--; 566 UseCounter::m_muteCount--;
566 } 567 }
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 976 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
976 { 977 {
977 // FIXME: We may want to handle stylesheets that have multiple owners 978 // FIXME: We may want to handle stylesheets that have multiple owners
978 // http://crbug.com/242125 979 // http://crbug.com/242125
979 if (sheetContents && sheetContents->hasSingleOwnerNode()) 980 if (sheetContents && sheetContents->hasSingleOwnerNode())
980 return getFrom(sheetContents->singleOwnerDocument()); 981 return getFrom(sheetContents->singleOwnerDocument());
981 return 0; 982 return 0;
982 } 983 }
983 984
984 } // namespace blink 985 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698