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

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: Created 7 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
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 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 case CSSPropertyWebkitFilter: return 413; 481 case CSSPropertyWebkitFilter: return 413;
482 case CSSPropertyWebkitBoxDecorationBreak: return 414; 482 case CSSPropertyWebkitBoxDecorationBreak: return 414;
483 case CSSPropertyWebkitTapHighlightColor: return 415; 483 case CSSPropertyWebkitTapHighlightColor: return 415;
484 case CSSPropertyBufferedRendering: return 416; 484 case CSSPropertyBufferedRendering: return 416;
485 case CSSPropertyGridAutoRows: return 417; 485 case CSSPropertyGridAutoRows: return 417;
486 case CSSPropertyGridAutoColumns: return 418; 486 case CSSPropertyGridAutoColumns: return 418;
487 case CSSPropertyBackgroundBlendMode: return 419; 487 case CSSPropertyBackgroundBlendMode: return 419;
488 case CSSPropertyMixBlendMode: return 420; 488 case CSSPropertyMixBlendMode: return 420;
489 case CSSPropertyTouchAction: return 421; 489 case CSSPropertyTouchAction: return 421;
490 case CSSPropertyGridArea: return 422; 490 case CSSPropertyGridArea: return 422;
491 case CSSPropertyTextJustify: return 423;
491 492
492 // Add new features above this line (don't change the assigned numbers of th e existing 493 // Add new features above this line (don't change the assigned numbers of th e existing
493 // items) and update maximumCSSSampleId() with the new maximum value. 494 // items) and update maximumCSSSampleId() with the new maximum value.
494 495
495 case CSSPropertyInvalid: 496 case CSSPropertyInvalid:
496 case CSSPropertyVariable: 497 case CSSPropertyVariable:
497 ASSERT_NOT_REACHED(); 498 ASSERT_NOT_REACHED();
498 return 0; 499 return 0;
499 } 500 }
500 501
501 ASSERT_NOT_REACHED(); 502 ASSERT_NOT_REACHED();
502 return 0; 503 return 0;
503 } 504 }
504 505
505 static int maximumCSSSampleId() { return 422; } 506 static int maximumCSSSampleId() { return 423; }
506 507
507 UseCounter::UseCounter() 508 UseCounter::UseCounter()
508 { 509 {
509 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1); 510 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1);
510 m_CSSFeatureBits.clearAll(); 511 m_CSSFeatureBits.clearAll();
511 } 512 }
512 513
513 UseCounter::~UseCounter() 514 UseCounter::~UseCounter()
514 { 515 {
515 // We always log PageDestruction so that we have a scale for the rest of the features. 516 // We always log PageDestruction so that we have a scale for the rest of the features.
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 675 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
675 { 676 {
676 // FIXME: We may want to handle stylesheets that have multiple owners 677 // FIXME: We may want to handle stylesheets that have multiple owners
677 // http://crbug.com/242125 678 // http://crbug.com/242125
678 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode()) 679 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode())
679 return getFrom(sheetContents->singleOwnerDocument()); 680 return getFrom(sheetContents->singleOwnerDocument());
680 return 0; 681 return 0;
681 } 682 }
682 683
683 } // namespace WebCore 684 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698