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

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

Issue 1681273003: Add CSS parser support for break-after, break-before and break-inside. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase master Created 4 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 * 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 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 case CSSPropertyFontDisplay: return 516;
552 case CSSPropertyContain: return 517; 552 case CSSPropertyContain: return 517;
553 case CSSPropertyD: return 518; 553 case CSSPropertyD: return 518;
554 case CSSPropertySnapHeight: return 519; 554 case CSSPropertySnapHeight: return 519;
555 case CSSPropertyBreakAfter: return 520;
556 case CSSPropertyBreakBefore: return 521;
557 case CSSPropertyBreakInside: return 522;
555 558
556 // 1. Add new features above this line (don't change the assigned numbers of the existing 559 // 1. Add new features above this line (don't change the assigned numbers of the existing
557 // items). 560 // items).
558 // 2. Update maximumCSSSampleId() with the new maximum value. 561 // 2. Update maximumCSSSampleId() with the new maximum value.
559 // 3. Run the update_use_counter_css.py script in 562 // 3. Run the update_use_counter_css.py script in
560 // chromium/src/tools/metrics/histograms to update the UMA histogram names. 563 // chromium/src/tools/metrics/histograms to update the UMA histogram names.
561 564
562 case CSSPropertyInvalid: 565 case CSSPropertyInvalid:
563 ASSERT_NOT_REACHED(); 566 ASSERT_NOT_REACHED();
564 return 0; 567 return 0;
565 } 568 }
566 569
567 ASSERT_NOT_REACHED(); 570 ASSERT_NOT_REACHED();
568 return 0; 571 return 0;
569 } 572 }
570 573
571 static int maximumCSSSampleId() { return 519; } 574 static int maximumCSSSampleId() { return 522; }
572 575
573 static EnumerationHistogram& featureObserverHistogram() 576 static EnumerationHistogram& featureObserverHistogram()
574 { 577 {
575 DEFINE_STATIC_LOCAL(EnumerationHistogram, histogram, ("WebCore.FeatureObserv er", UseCounter::NumberOfFeatures)); 578 DEFINE_STATIC_LOCAL(EnumerationHistogram, histogram, ("WebCore.FeatureObserv er", UseCounter::NumberOfFeatures));
576 return histogram; 579 return histogram;
577 } 580 }
578 581
579 void UseCounter::muteForInspector() 582 void UseCounter::muteForInspector()
580 { 583 {
581 UseCounter::m_muteCount++; 584 UseCounter::m_muteCount++;
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 750 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
748 { 751 {
749 // FIXME: We may want to handle stylesheets that have multiple owners 752 // FIXME: We may want to handle stylesheets that have multiple owners
750 // https://crbug.com/242125 753 // https://crbug.com/242125
751 if (sheetContents && sheetContents->hasSingleOwnerNode()) 754 if (sheetContents && sheetContents->hasSingleOwnerNode())
752 return getFrom(sheetContents->singleOwnerDocument()); 755 return getFrom(sheetContents->singleOwnerDocument());
753 return 0; 756 return 0;
754 } 757 }
755 758
756 } // namespace blink 759 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/EditingStyle.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698