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

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

Issue 17090005: [CSS Grid Layout] Implement 'justify-self' parsing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed a bug in parseColor uncovered by the patch Created 6 years, 11 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 | Annotate | Revision Log
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 CSSPropertyObjectFit: return 433; 488 case CSSPropertyObjectFit: return 433;
489 case CSSPropertyPaintOrder: return 434; 489 case CSSPropertyPaintOrder: return 434;
490 case CSSPropertyMaskSourceType: return 435; 490 case CSSPropertyMaskSourceType: return 435;
491 case CSSPropertyIsolation: return 436; 491 case CSSPropertyIsolation: return 436;
492 case CSSPropertyObjectPosition: return 437; 492 case CSSPropertyObjectPosition: return 437;
493 case CSSPropertyInternalCallback: return 438; 493 case CSSPropertyInternalCallback: return 438;
494 case CSSPropertyShapeImageThreshold: return 439; 494 case CSSPropertyShapeImageThreshold: return 439;
495 case CSSPropertyColumnFill: return 440; 495 case CSSPropertyColumnFill: return 440;
496 case CSSPropertyTextJustify: return 441; 496 case CSSPropertyTextJustify: return 441;
497 case CSSPropertyTouchActionDelay: return 442; 497 case CSSPropertyTouchActionDelay: return 442;
498 case CSSPropertyJustifySelf: return 443;
498 499
499 // Add new features above this line (don't change the assigned numbers of th e existing 500 // Add new features above this line (don't change the assigned numbers of th e existing
500 // items) and update maximumCSSSampleId() with the new maximum value. 501 // items) and update maximumCSSSampleId() with the new maximum value.
501 502
502 // Internal properties should not be counted. 503 // Internal properties should not be counted.
503 case CSSPropertyInternalMarqueeDirection: 504 case CSSPropertyInternalMarqueeDirection:
504 case CSSPropertyInternalMarqueeIncrement: 505 case CSSPropertyInternalMarqueeIncrement:
505 case CSSPropertyInternalMarqueeRepetition: 506 case CSSPropertyInternalMarqueeRepetition:
506 case CSSPropertyInternalMarqueeSpeed: 507 case CSSPropertyInternalMarqueeSpeed:
507 case CSSPropertyInternalMarqueeStyle: 508 case CSSPropertyInternalMarqueeStyle:
508 case CSSPropertyInvalid: 509 case CSSPropertyInvalid:
509 case CSSPropertyVariable: 510 case CSSPropertyVariable:
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 442; } 519 static int maximumCSSSampleId() { return 443; }
519 520
520 UseCounter::UseCounter() 521 UseCounter::UseCounter()
521 { 522 {
522 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1); 523 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1);
523 m_CSSFeatureBits.clearAll(); 524 m_CSSFeatureBits.clearAll();
524 } 525 }
525 526
526 UseCounter::~UseCounter() 527 UseCounter::~UseCounter()
527 { 528 {
528 // We always log PageDestruction so that we have a scale for the rest of the features. 529 // We always log PageDestruction so that we have a scale for the rest of the features.
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 726 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
726 { 727 {
727 // FIXME: We may want to handle stylesheets that have multiple owners 728 // FIXME: We may want to handle stylesheets that have multiple owners
728 // http://crbug.com/242125 729 // http://crbug.com/242125
729 if (sheetContents && sheetContents->hasSingleOwnerNode()) 730 if (sheetContents && sheetContents->hasSingleOwnerNode())
730 return getFrom(sheetContents->singleOwnerDocument()); 731 return getFrom(sheetContents->singleOwnerDocument());
731 return 0; 732 return 0;
732 } 733 }
733 734
734 } // namespace WebCore 735 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleBuilderCustom.cpp ('k') | Source/core/rendering/style/RenderStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698