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

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

Issue 1007683002: Add UseCounters for Element.offset* (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update test expectations Created 5 years, 9 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
« no previous file with comments | « Source/core/dom/Element.idl ('k') | Source/core/html/HTMLElement.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 // The above items are available in M42 branch. 629 // The above items are available in M42 branch.
630 630
631 ClientRectListItem = 694, 631 ClientRectListItem = 694,
632 WindowClientInformation = 695, 632 WindowClientInformation = 695,
633 WindowFind = 696, 633 WindowFind = 696,
634 WindowScreenLeft = 697, 634 WindowScreenLeft = 697,
635 WindowScreenTop = 698, 635 WindowScreenTop = 698,
636 V8AnimationPlayer_Cancel_Method = 699, 636 V8AnimationPlayer_Cancel_Method = 699,
637 V8AnimationPlayer_Onfinish_AttributeGetter = 700, 637 V8AnimationPlayer_Onfinish_AttributeGetter = 700,
638 V8AnimationPlayer_Onfinish_AttributeSetter = 701, 638 V8AnimationPlayer_Onfinish_AttributeSetter = 701,
639 ElementOffsetParent = 702,
640 ElementOffsetTop = 703,
641 ElementOffsetLeft = 704,
642 ElementOffsetWidth = 705,
643 ElementOffsetHeight = 706,
639 644
640 // Add new features immediately above this line. Don't change assigned 645 // Add new features immediately above this line. Don't change assigned
641 // numbers of any item, and don't reuse removed slots. 646 // numbers of any item, and don't reuse removed slots.
642 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 647 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
643 // to update the UMA mapping. 648 // to update the UMA mapping.
644 NumberOfFeatures, // This enum value must be last. 649 NumberOfFeatures, // This enum value must be last.
645 }; 650 };
646 651
647 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 652 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
648 static void count(const Frame*, Feature); 653 static void count(const Frame*, Feature);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 bool recordMeasurement(Feature feature) { return m_countBits.recordMeasureme nt(feature); } 725 bool recordMeasurement(Feature feature) { return m_countBits.recordMeasureme nt(feature); }
721 void updateMeasurements(); 726 void updateMeasurements();
722 727
723 CountBits m_countBits; 728 CountBits m_countBits;
724 BitVector m_CSSFeatureBits; 729 BitVector m_CSSFeatureBits;
725 }; 730 };
726 731
727 } // namespace blink 732 } // namespace blink
728 733
729 #endif // UseCounter_h 734 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « Source/core/dom/Element.idl ('k') | Source/core/html/HTMLElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698