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

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

Issue 17155007: [CSS3] Parsing the property, text-justify. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@parsingTextJustify
Patch Set: Patch for landing Created 7 years, 2 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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 case CSSPropertyAnimationPlayState: return 431; 489 case CSSPropertyAnimationPlayState: return 431;
490 case CSSPropertyAnimationTimingFunction: return 432; 490 case CSSPropertyAnimationTimingFunction: return 432;
491 case CSSPropertyObjectFit: return 433; 491 case CSSPropertyObjectFit: return 433;
492 case CSSPropertyPaintOrder: return 434; 492 case CSSPropertyPaintOrder: return 434;
493 case CSSPropertyMaskSourceType: return 435; 493 case CSSPropertyMaskSourceType: return 435;
494 case CSSPropertyIsolation: return 436; 494 case CSSPropertyIsolation: return 436;
495 case CSSPropertyObjectPosition: return 437; 495 case CSSPropertyObjectPosition: return 437;
496 case CSSPropertyInternalCallback: return 438; 496 case CSSPropertyInternalCallback: return 438;
497 case CSSPropertyWebkitShapeImageThreshold: return 439; 497 case CSSPropertyWebkitShapeImageThreshold: return 439;
498 case CSSPropertyColumnFill: return 440; 498 case CSSPropertyColumnFill: return 440;
499 case CSSPropertyTextJustify: return 441;
499 500
500 // Add new features above this line (don't change the assigned numbers of th e existing 501 // Add new features above this line (don't change the assigned numbers of th e existing
501 // items) and update maximumCSSSampleId() with the new maximum value. 502 // items) and update maximumCSSSampleId() with the new maximum value.
502 503
503 // Internal properties should not be counted. 504 // Internal properties should not be counted.
504 case CSSPropertyInternalMarqueeDirection: 505 case CSSPropertyInternalMarqueeDirection:
505 case CSSPropertyInternalMarqueeIncrement: 506 case CSSPropertyInternalMarqueeIncrement:
506 case CSSPropertyInternalMarqueeRepetition: 507 case CSSPropertyInternalMarqueeRepetition:
507 case CSSPropertyInternalMarqueeSpeed: 508 case CSSPropertyInternalMarqueeSpeed:
508 case CSSPropertyInternalMarqueeStyle: 509 case CSSPropertyInternalMarqueeStyle:
509 case CSSPropertyInvalid: 510 case CSSPropertyInvalid:
510 case CSSPropertyVariable: 511 case CSSPropertyVariable:
511 ASSERT_NOT_REACHED(); 512 ASSERT_NOT_REACHED();
512 return 0; 513 return 0;
513 } 514 }
514 515
515 ASSERT_NOT_REACHED(); 516 ASSERT_NOT_REACHED();
516 return 0; 517 return 0;
517 } 518 }
518 519
519 static int maximumCSSSampleId() { return 440; } 520 static int maximumCSSSampleId() { return 441; }
520 521
521 UseCounter::UseCounter() 522 UseCounter::UseCounter()
522 { 523 {
523 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1); 524 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1);
524 m_CSSFeatureBits.clearAll(); 525 m_CSSFeatureBits.clearAll();
525 } 526 }
526 527
527 UseCounter::~UseCounter() 528 UseCounter::~UseCounter()
528 { 529 {
529 // We always log PageDestruction so that we have a scale for the rest of the features. 530 // We always log PageDestruction so that we have a scale for the rest of the features.
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 722 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
722 { 723 {
723 // FIXME: We may want to handle stylesheets that have multiple owners 724 // FIXME: We may want to handle stylesheets that have multiple owners
724 // http://crbug.com/242125 725 // http://crbug.com/242125
725 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode()) 726 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode())
726 return getFrom(sheetContents->singleOwnerDocument()); 727 return getFrom(sheetContents->singleOwnerDocument());
727 return 0; 728 return 0;
728 } 729 }
729 730
730 } // namespace WebCore 731 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698