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

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

Issue 17450016: Implementation of CSS3 nav-up/down/left/right properties from CSS3 UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Implementation of CSS3 nav-up/down/left/right properties from CSS3 UI Created 7 years, 6 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 * 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 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 case CSSPropertyWebkitFilter: return 413; 482 case CSSPropertyWebkitFilter: return 413;
483 case CSSPropertyWebkitBoxDecorationBreak: return 414; 483 case CSSPropertyWebkitBoxDecorationBreak: return 414;
484 case CSSPropertyWebkitTapHighlightColor: return 415; 484 case CSSPropertyWebkitTapHighlightColor: return 415;
485 case CSSPropertyBufferedRendering: return 416; 485 case CSSPropertyBufferedRendering: return 416;
486 case CSSPropertyGridAutoRows: return 417; 486 case CSSPropertyGridAutoRows: return 417;
487 case CSSPropertyGridAutoColumns: return 418; 487 case CSSPropertyGridAutoColumns: return 418;
488 case CSSPropertyBackgroundBlendMode: return 419; 488 case CSSPropertyBackgroundBlendMode: return 419;
489 case CSSPropertyMixBlendMode: return 420; 489 case CSSPropertyMixBlendMode: return 420;
490 case CSSPropertyTouchAction: return 421; 490 case CSSPropertyTouchAction: return 421;
491 case CSSPropertyGridArea: return 422; 491 case CSSPropertyGridArea: return 422;
492 case CSSPropertyNavDown: return 423;
493 case CSSPropertyNavLeft: return 424;
494 case CSSPropertyNavRight: return 425;
495 case CSSPropertyNavUp: return 426;
492 496
493 // Add new features above this line (don't change the assigned numbers of th e existing 497 // Add new features above this line (don't change the assigned numbers of th e existing
494 // items) and update maximumCSSSampleId() with the new maximum value. 498 // items) and update maximumCSSSampleId() with the new maximum value.
495 499
496 case CSSPropertyInvalid: 500 case CSSPropertyInvalid:
497 case CSSPropertyVariable: 501 case CSSPropertyVariable:
498 ASSERT_NOT_REACHED(); 502 ASSERT_NOT_REACHED();
499 return 0; 503 return 0;
500 } 504 }
501 505
502 ASSERT_NOT_REACHED(); 506 ASSERT_NOT_REACHED();
503 return 0; 507 return 0;
504 } 508 }
505 509
506 static int maximumCSSSampleId() { return 422; } 510 static int maximumCSSSampleId() { return 426; }
507 511
508 UseCounter::UseCounter() 512 UseCounter::UseCounter()
509 { 513 {
510 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1); 514 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1);
511 m_CSSFeatureBits.clearAll(); 515 m_CSSFeatureBits.clearAll();
512 } 516 }
513 517
514 UseCounter::~UseCounter() 518 UseCounter::~UseCounter()
515 { 519 {
516 // We always log PageDestruction so that we have a scale for the rest of the features. 520 // We always log PageDestruction so that we have a scale for the rest of the features.
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 675 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
672 { 676 {
673 // FIXME: We may want to handle stylesheets that have multiple owners 677 // FIXME: We may want to handle stylesheets that have multiple owners
674 // http://crbug.com/242125 678 // http://crbug.com/242125
675 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode()) 679 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode())
676 return getFrom(sheetContents->singleOwnerDocument()); 680 return getFrom(sheetContents->singleOwnerDocument());
677 return 0; 681 return 0;
678 } 682 }
679 683
680 } // namespace WebCore 684 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698