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

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

Issue 1231533002: Deprecate Element.offsetParent/offsetTop/offsetLeft/offsetWidth/offsetHeight (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 5 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 753 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 V8DeviceOrientationEvent_InitDeviceOrientationEvent_Method = 866, 764 V8DeviceOrientationEvent_InitDeviceOrientationEvent_Method = 866,
765 V8Event_InitEvent_Method = 867, 765 V8Event_InitEvent_Method = 867,
766 V8KeyboardEvent_InitKeyboardEvent_Method = 868, 766 V8KeyboardEvent_InitKeyboardEvent_Method = 868,
767 V8MouseEvent_InitMouseEvent_Method = 869, 767 V8MouseEvent_InitMouseEvent_Method = 869,
768 V8MutationEvent_InitMutationEvent_Method = 870, 768 V8MutationEvent_InitMutationEvent_Method = 870,
769 V8StorageEvent_InitStorageEvent_Method = 871, 769 V8StorageEvent_InitStorageEvent_Method = 871,
770 V8TouchEvent_InitTouchEvent_Method = 872, 770 V8TouchEvent_InitTouchEvent_Method = 872,
771 V8UIEvent_InitUIEvent_Method = 873, 771 V8UIEvent_InitUIEvent_Method = 873,
772 V8Document_CreateTouch_Method = 874, 772 V8Document_CreateTouch_Method = 874,
773 V8HTMLFrameElement_GetSVGDocument_Method = 875, 773 V8HTMLFrameElement_GetSVGDocument_Method = 875,
774 V8SVGElement_OffsetParent_AttributeGetter = 876,
775 V8SVGElement_OffsetTop_AttributeGetter = 877,
776 V8SVGElement_OffsetLeft_AttributeGetter = 878,
777 V8SVGElement_OffsetWidth_AttributeGetter = 879,
778 V8SVGElement_OffsetHeight_AttributeGetter = 880,
774 779
775 // Add new features immediately above this line. Don't change assigned 780 // Add new features immediately above this line. Don't change assigned
776 // numbers of any item, and don't reuse removed slots. 781 // numbers of any item, and don't reuse removed slots.
777 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 782 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
778 // to update the UMA mapping. 783 // to update the UMA mapping.
779 NumberOfFeatures, // This enum value must be last. 784 NumberOfFeatures, // This enum value must be last.
780 }; 785 };
781 786
782 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 787 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
783 static void count(const Frame*, Feature); 788 static void count(const Frame*, Feature);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 872
868 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); } 873 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); }
869 874
870 CountBits m_countBits; 875 CountBits m_countBits;
871 BitVector m_CSSFeatureBits; 876 BitVector m_CSSFeatureBits;
872 }; 877 };
873 878
874 } // namespace blink 879 } // namespace blink
875 880
876 #endif // UseCounter_h 881 #endif // UseCounter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698