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

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

Issue 19555002: Translate viewport related meta tags into @viewport descriptors as suggested by the CSS Device Adap… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Land patch upload resulted in python error 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 | 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 CSSPropertyInternalTargetDensity: return 423;
492 case CSSPropertyInternalPriority: return 424;
491 493
492 // Add new features above this line (don't change the assigned numbers of th e existing 494 // 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. 495 // items) and update maximumCSSSampleId() with the new maximum value.
494 496
495 case CSSPropertyInvalid: 497 case CSSPropertyInvalid:
496 case CSSPropertyVariable: 498 case CSSPropertyVariable:
497 ASSERT_NOT_REACHED(); 499 ASSERT_NOT_REACHED();
498 return 0; 500 return 0;
499 } 501 }
500 502
501 ASSERT_NOT_REACHED(); 503 ASSERT_NOT_REACHED();
502 return 0; 504 return 0;
503 } 505 }
504 506
505 static int maximumCSSSampleId() { return 422; } 507 static int maximumCSSSampleId() { return 424; }
506 508
507 UseCounter::UseCounter() 509 UseCounter::UseCounter()
508 { 510 {
509 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1); 511 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1);
510 m_CSSFeatureBits.clearAll(); 512 m_CSSFeatureBits.clearAll();
511 } 513 }
512 514
513 UseCounter::~UseCounter() 515 UseCounter::~UseCounter()
514 { 516 {
515 // We always log PageDestruction so that we have a scale for the rest of the features. 517 // 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) 676 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
675 { 677 {
676 // FIXME: We may want to handle stylesheets that have multiple owners 678 // FIXME: We may want to handle stylesheets that have multiple owners
677 // http://crbug.com/242125 679 // http://crbug.com/242125
678 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode()) 680 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode())
679 return getFrom(sheetContents->singleOwnerDocument()); 681 return getFrom(sheetContents->singleOwnerDocument());
680 return 0; 682 return 0;
681 } 683 }
682 684
683 } // namespace WebCore 685 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698