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

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: add converter Created 5 years, 5 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
« no previous file with comments | « Source/core/css/resolver/StyleBuilderConverter.cpp ('k') | Source/core/layout/LayoutImage.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 CSSPropertyTranslate: return 504; 540 case CSSPropertyTranslate: return 504;
541 case CSSPropertyRotate: return 505; 541 case CSSPropertyRotate: return 505;
542 case CSSPropertyScale: return 506; 542 case CSSPropertyScale: return 506;
543 case CSSPropertyImageOrientation: return 507;
543 544
544 // 1. Add new features above this line (don't change the assigned numbers of the existing 545 // 1. Add new features above this line (don't change the assigned numbers of the existing
545 // items). 546 // items).
546 // 2. Update maximumCSSSampleId() with the new maximum value. 547 // 2. Update maximumCSSSampleId() with the new maximum value.
547 // 3. Run the update_use_counter_css.py script in 548 // 3. Run the update_use_counter_css.py script in
548 // chromium/src/tools/metrics/histograms to update the UMA histogram names. 549 // chromium/src/tools/metrics/histograms to update the UMA histogram names.
549 550
550 case CSSPropertyInvalid: 551 case CSSPropertyInvalid:
551 ASSERT_NOT_REACHED(); 552 ASSERT_NOT_REACHED();
552 return 0; 553 return 0;
553 } 554 }
554 555
555 ASSERT_NOT_REACHED(); 556 ASSERT_NOT_REACHED();
556 return 0; 557 return 0;
557 } 558 }
558 559
559 static int maximumCSSSampleId() { return 506; } 560 static int maximumCSSSampleId() { return 507; }
560 561
561 void UseCounter::muteForInspector() 562 void UseCounter::muteForInspector()
562 { 563 {
563 UseCounter::m_muteCount++; 564 UseCounter::m_muteCount++;
564 } 565 }
565 566
566 void UseCounter::unmuteForInspector() 567 void UseCounter::unmuteForInspector()
567 { 568 {
568 UseCounter::m_muteCount--; 569 UseCounter::m_muteCount--;
569 } 570 }
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 997 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
997 { 998 {
998 // FIXME: We may want to handle stylesheets that have multiple owners 999 // FIXME: We may want to handle stylesheets that have multiple owners
999 // http://crbug.com/242125 1000 // http://crbug.com/242125
1000 if (sheetContents && sheetContents->hasSingleOwnerNode()) 1001 if (sheetContents && sheetContents->hasSingleOwnerNode())
1001 return getFrom(sheetContents->singleOwnerDocument()); 1002 return getFrom(sheetContents->singleOwnerDocument());
1002 return 0; 1003 return 0;
1003 } 1004 }
1004 1005
1005 } // namespace blink 1006 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleBuilderConverter.cpp ('k') | Source/core/layout/LayoutImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698