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

Side by Side Diff: Source/core/frame/UseCounter.h

Issue 621283002: Add UseCounter for non-standard getComputedStyle(e).cssX behaviour (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 AnimationPlayerPlay = 553, 522 AnimationPlayerPlay = 553,
523 AnimationPlayerPause = 554, 523 AnimationPlayerPause = 554,
524 AnimationPlayerReverse = 555, 524 AnimationPlayerReverse = 555,
525 BreakIterator = 556, 525 BreakIterator = 556,
526 ScreenOrientationAngle = 557, 526 ScreenOrientationAngle = 557,
527 ScreenOrientationType = 558, 527 ScreenOrientationType = 558,
528 ScreenOrientationLock = 559, 528 ScreenOrientationLock = 559,
529 ScreenOrientationUnlock = 560, 529 ScreenOrientationUnlock = 560,
530 GeolocationSecureOrigin = 561, 530 GeolocationSecureOrigin = 561,
531 GeolocationInsecureOrigin = 562, 531 GeolocationInsecureOrigin = 562,
532 CSSXGetComputedStyleQueries = 563,
532 // Add new features immediately above this line. Don't change assigned 533 // Add new features immediately above this line. Don't change assigned
533 // numbers of any item, and don't reuse removed slots. 534 // numbers of any item, and don't reuse removed slots.
534 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 535 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
535 // to update the UMA mapping. 536 // to update the UMA mapping.
536 NumberOfFeatures, // This enum value must be last. 537 NumberOfFeatures, // This enum value must be last.
537 }; 538 };
538 539
539 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 540 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
540 static void count(const Document&, Feature); 541 static void count(const Document&, Feature);
541 // This doesn't count for ExecutionContexts for shared workers and service 542 // This doesn't count for ExecutionContexts for shared workers and service
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 593
593 void updateMeasurements(); 594 void updateMeasurements();
594 595
595 OwnPtr<BitVector> m_countBits; 596 OwnPtr<BitVector> m_countBits;
596 BitVector m_CSSFeatureBits; 597 BitVector m_CSSFeatureBits;
597 }; 598 };
598 599
599 } // namespace blink 600 } // namespace blink
600 601
601 #endif // UseCounter_h 602 #endif // UseCounter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698