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

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

Issue 1213213004: Introduce use counters for shadow DOM handling in plainText() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-07-03T14:40:27 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
« no previous file with comments | « Source/core/editing/iterators/TextIteratorFlags.h ('k') | no next file » | 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 739 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 NavigatorVibrate = 850, 750 NavigatorVibrate = 850,
751 NavigatorVibrateSubFrame = 851, 751 NavigatorVibrateSubFrame = 851,
752 PermissionStatusStatus = 852, 752 PermissionStatusStatus = 852,
753 V8XPathEvaluator_Constructor = 853, 753 V8XPathEvaluator_Constructor = 853,
754 V8XPathEvaluator_CreateExpression_Method = 854, 754 V8XPathEvaluator_CreateExpression_Method = 854,
755 V8XPathEvaluator_CreateNSResolver_Method = 855, 755 V8XPathEvaluator_CreateNSResolver_Method = 855,
756 V8XPathEvaluator_Evaluate_Method = 856, 756 V8XPathEvaluator_Evaluate_Method = 856,
757 RequestMIDIAccess = 857, 757 RequestMIDIAccess = 857,
758 V8MouseEvent_LayerX_AttributeGetter = 858, 758 V8MouseEvent_LayerX_AttributeGetter = 858,
759 V8MouseEvent_LayerY_AttributeGetter = 859, 759 V8MouseEvent_LayerY_AttributeGetter = 859,
760 InnerTextWithShadowTree = 860,
761 SelectionToStringWithShadowTree = 861,
762 WindowFindWithShadowTree = 862,
760 763
761 // Add new features immediately above this line. Don't change assigned 764 // Add new features immediately above this line. Don't change assigned
762 // numbers of any item, and don't reuse removed slots. 765 // numbers of any item, and don't reuse removed slots.
763 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 766 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
764 // to update the UMA mapping. 767 // to update the UMA mapping.
765 NumberOfFeatures, // This enum value must be last. 768 NumberOfFeatures, // This enum value must be last.
766 }; 769 };
767 770
768 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 771 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
769 static void count(const Frame*, Feature); 772 static void count(const Frame*, Feature);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
853 856
854 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); } 857 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); }
855 858
856 CountBits m_countBits; 859 CountBits m_countBits;
857 BitVector m_CSSFeatureBits; 860 BitVector m_CSSFeatureBits;
858 }; 861 };
859 862
860 } // namespace blink 863 } // namespace blink
861 864
862 #endif // UseCounter_h 865 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « Source/core/editing/iterators/TextIteratorFlags.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698