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

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

Issue 18532004: Implement 'grid-template' parsing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined and updated after Ojan's and Elliott's comments Created 7 years, 4 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 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 CSSPropertyGridTemplate: 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 679 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
679 { 680 {
680 // FIXME: We may want to handle stylesheets that have multiple owners 681 // FIXME: We may want to handle stylesheets that have multiple owners
681 // http://crbug.com/242125 682 // http://crbug.com/242125
682 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode()) 683 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode())
683 return getFrom(sheetContents->singleOwnerDocument()); 684 return getFrom(sheetContents->singleOwnerDocument());
684 return 0; 685 return 0;
685 } 686 }
686 687
687 } // namespace WebCore 688 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleBuilderCustom.cpp ('k') | Source/core/rendering/style/GridCoordinate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698