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

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

Issue 22839023: Add support for the object-position CSS property. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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 /* 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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 CSSPropertyObjectFit: return 433; 495 case CSSPropertyObjectFit: return 433;
496 case CSSPropertyPaintOrder: return 434; 496 case CSSPropertyPaintOrder: return 434;
497 case CSSPropertyObjectPosition: return 435;
497 498
498 // Add new features above this line (don't change the assigned numbers of th e existing 499 // Add new features above this line (don't change the assigned numbers of th e existing
499 // items) and update maximumCSSSampleId() with the new maximum value. 500 // items) and update maximumCSSSampleId() with the new maximum value.
500 501
501 case CSSPropertyInvalid: 502 case CSSPropertyInvalid:
502 case CSSPropertyVariable: 503 case CSSPropertyVariable:
503 ASSERT_NOT_REACHED(); 504 ASSERT_NOT_REACHED();
504 return 0; 505 return 0;
505 } 506 }
506 507
507 ASSERT_NOT_REACHED(); 508 ASSERT_NOT_REACHED();
508 return 0; 509 return 0;
509 } 510 }
510 511
511 static int maximumCSSSampleId() { return 434; } 512 static int maximumCSSSampleId() { return 435; }
512 513
513 UseCounter::UseCounter() 514 UseCounter::UseCounter()
514 { 515 {
515 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1); 516 m_CSSFeatureBits.ensureSize(lastCSSProperty + 1);
516 m_CSSFeatureBits.clearAll(); 517 m_CSSFeatureBits.clearAll();
517 } 518 }
518 519
519 UseCounter::~UseCounter() 520 UseCounter::~UseCounter()
520 { 521 {
521 // We always log PageDestruction so that we have a scale for the rest of the features. 522 // We always log PageDestruction so that we have a scale for the rest of the features.
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 703 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
703 { 704 {
704 // FIXME: We may want to handle stylesheets that have multiple owners 705 // FIXME: We may want to handle stylesheets that have multiple owners
705 // http://crbug.com/242125 706 // http://crbug.com/242125
706 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode()) 707 if (sheetContents && !sheetContents->isUserStyleSheet() && sheetContents->ha sSingleOwnerNode())
707 return getFrom(sheetContents->singleOwnerDocument()); 708 return getFrom(sheetContents->singleOwnerDocument());
708 return 0; 709 return 0;
709 } 710 }
710 711
711 } // namespace WebCore 712 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698