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

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: 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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 case CSSPropertyGridTemplate: return 423; 485 case CSSPropertyGridTemplate: return 423;
486 case CSSPropertyAnimation: return 424; 486 case CSSPropertyAnimation: return 424;
487 case CSSPropertyAnimationDelay: return 425; 487 case CSSPropertyAnimationDelay: return 425;
488 case CSSPropertyAnimationDirection: return 426; 488 case CSSPropertyAnimationDirection: return 426;
489 case CSSPropertyAnimationDuration: return 427; 489 case CSSPropertyAnimationDuration: return 427;
490 case CSSPropertyAnimationFillMode: return 428; 490 case CSSPropertyAnimationFillMode: return 428;
491 case CSSPropertyAnimationIterationCount: return 429; 491 case CSSPropertyAnimationIterationCount: return 429;
492 case CSSPropertyAnimationName: return 430; 492 case CSSPropertyAnimationName: return 430;
493 case CSSPropertyAnimationPlayState: return 431; 493 case CSSPropertyAnimationPlayState: return 431;
494 case CSSPropertyAnimationTimingFunction: return 432; 494 case CSSPropertyAnimationTimingFunction: return 432;
495 case CSSPropertyInternalTargetDensity: return 433;
496 case CSSPropertyInternalPriority: return 434;
495 497
496 // Add new features above this line (don't change the assigned numbers of th e existing 498 // Add new features above this line (don't change the assigned numbers of th e existing
497 // items) and update maximumCSSSampleId() with the new maximum value. 499 // items) and update maximumCSSSampleId() with the new maximum value.
498 500
499 case CSSPropertyInvalid: 501 case CSSPropertyInvalid:
500 case CSSPropertyVariable: 502 case CSSPropertyVariable:
501 ASSERT_NOT_REACHED(); 503 ASSERT_NOT_REACHED();
502 return 0; 504 return 0;
503 } 505 }
504 506
505 ASSERT_NOT_REACHED(); 507 ASSERT_NOT_REACHED();
506 return 0; 508 return 0;
507 } 509 }
508 510
509 static int maximumCSSSampleId() { return 432; } 511 static int maximumCSSSampleId() { return 434; }
510 512
511 UseCounter::UseCounter() 513 UseCounter::UseCounter()
512 { 514 {
513 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1); 515 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1);
514 m_CSSFeatureBits.clearAll(); 516 m_CSSFeatureBits.clearAll();
515 } 517 }
516 518
517 UseCounter::~UseCounter() 519 UseCounter::~UseCounter()
518 { 520 {
519 // We always log PageDestruction so that we have a scale for the rest of the features. 521 // We always log PageDestruction so that we have a scale for the rest of the features.
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 699 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
698 { 700 {
699 // FIXME: We may want to handle stylesheets that have multiple owners 701 // FIXME: We may want to handle stylesheets that have multiple owners
700 // http://crbug.com/242125 702 // http://crbug.com/242125
701 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode()) 703 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode())
702 return getFrom(sheetContents->singleOwnerDocument()); 704 return getFrom(sheetContents->singleOwnerDocument());
703 return 0; 705 return 0;
704 } 706 }
705 707
706 } // namespace WebCore 708 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698