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

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

Issue 15748002: Initial support for experimental touch-action CSS feature (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove unnecessary CSSParserContext change Created 7 years, 7 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
« no previous file with comments | « Source/core/page/RuntimeEnabledFeatures.in ('k') | Source/core/rendering/style/RenderStyle.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 #endif 483 #endif
484 case CSSPropertyWebkitAppRegion: return 412; 484 case CSSPropertyWebkitAppRegion: return 412;
485 case CSSPropertyWebkitFilter: return 413; 485 case CSSPropertyWebkitFilter: return 413;
486 case CSSPropertyWebkitBoxDecorationBreak: return 414; 486 case CSSPropertyWebkitBoxDecorationBreak: return 414;
487 case CSSPropertyWebkitTapHighlightColor: return 415; 487 case CSSPropertyWebkitTapHighlightColor: return 415;
488 case CSSPropertyBufferedRendering: return 416; 488 case CSSPropertyBufferedRendering: return 416;
489 case CSSPropertyWebkitGridAutoRows: return 417; 489 case CSSPropertyWebkitGridAutoRows: return 417;
490 case CSSPropertyWebkitGridAutoColumns: return 418; 490 case CSSPropertyWebkitGridAutoColumns: return 418;
491 case CSSPropertyBackgroundBlendMode: return 419; 491 case CSSPropertyBackgroundBlendMode: return 419;
492 case CSSPropertyMixBlendMode: return 420; 492 case CSSPropertyMixBlendMode: return 420;
493 case CSSPropertyTouchAction: return 421;
493 494
494 // Add new features above this line (don't change the assigned numbers of th e existing 495 // Add new features above this line (don't change the assigned numbers of th e existing
495 // items) and update maximumCSSSampleId() with the new maximum value. 496 // items) and update maximumCSSSampleId() with the new maximum value.
496 497
497 case CSSPropertyInvalid: 498 case CSSPropertyInvalid:
498 case CSSPropertyVariable: 499 case CSSPropertyVariable:
499 ASSERT_NOT_REACHED(); 500 ASSERT_NOT_REACHED();
500 return 0; 501 return 0;
501 } 502 }
502 503
503 ASSERT_NOT_REACHED(); 504 ASSERT_NOT_REACHED();
504 return 0; 505 return 0;
505 } 506 }
506 507
507 static int maximumCSSSampleId() { return 420; } 508 static int maximumCSSSampleId() { return 421; }
508 509
509 UseCounter::UseCounter() 510 UseCounter::UseCounter()
510 { 511 {
511 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1); 512 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1);
512 m_CSSFeatureBits.clearAll(); 513 m_CSSFeatureBits.clearAll();
513 } 514 }
514 515
515 UseCounter::~UseCounter() 516 UseCounter::~UseCounter()
516 { 517 {
517 // We always log PageDestruction so that we have a scale for the rest of the features. 518 // We always log PageDestruction so that we have a scale for the rest of the features.
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 667 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
667 { 668 {
668 // FIXME: We may want to handle stylesheets that have multiple owners 669 // FIXME: We may want to handle stylesheets that have multiple owners
669 // http://crbug.com/242125 670 // http://crbug.com/242125
670 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode()) 671 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode())
671 return getFrom(sheetContents->singleOwnerDocument()); 672 return getFrom(sheetContents->singleOwnerDocument());
672 return 0; 673 return 0;
673 } 674 }
674 675
675 } // namespace WebCore 676 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/RuntimeEnabledFeatures.in ('k') | Source/core/rendering/style/RenderStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698