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

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

Issue 140323003: Add UseCounter for case-insensitive attribute value selector matching (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 DOMImplementationHasFeature, 291 DOMImplementationHasFeature,
292 DOMImplementationHasFeatureReturnFalse, 292 DOMImplementationHasFeatureReturnFalse,
293 CanPlayTypeKeySystem, 293 CanPlayTypeKeySystem,
294 PrefixedDevicePixelRatioMediaFeature, 294 PrefixedDevicePixelRatioMediaFeature,
295 PrefixedMaxDevicePixelRatioMediaFeature, 295 PrefixedMaxDevicePixelRatioMediaFeature,
296 PrefixedMinDevicePixelRatioMediaFeature, 296 PrefixedMinDevicePixelRatioMediaFeature,
297 PrefixedTransform2dMediaFeature, 297 PrefixedTransform2dMediaFeature,
298 PrefixedTransform3dMediaFeature, 298 PrefixedTransform3dMediaFeature,
299 PrefixedAnimationMediaFeature, 299 PrefixedAnimationMediaFeature,
300 PrefixedViewModeMediaFeature, 300 PrefixedViewModeMediaFeature,
301 CaseInsensitiveAttrSelectorMatch, // Case-insensitivity dropped from spe cification.
Mike West 2014/01/23 09:22:54 I'd suggest adding a counter for attribute selecto
Jens Widell 2014/01/23 09:38:49 I'm not 100 % sure how use counters work, but won'
Mike West 2014/01/23 10:08:24 I'd suggest that there are two relevant numbers:
Jens Widell 2014/01/23 10:27:21 How would you define 2? A case-insensitive attrib
301 // Add new features immediately above this line. Don't change assigned 302 // Add new features immediately above this line. Don't change assigned
302 // numbers of any item, and don't reuse removed slots. 303 // numbers of any item, and don't reuse removed slots.
303 NumberOfFeatures, // This enum value must be last. 304 NumberOfFeatures, // This enum value must be last.
304 }; 305 };
305 306
306 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 307 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
307 static void count(const Document&, Feature); 308 static void count(const Document&, Feature);
308 static void count(const ExecutionContext*, Feature); 309 static void count(const ExecutionContext*, Feature);
309 void count(CSSParserContext, CSSPropertyID); 310 void count(CSSParserContext, CSSPropertyID);
310 void count(Feature); 311 void count(Feature);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 347
347 void updateMeasurements(); 348 void updateMeasurements();
348 349
349 OwnPtr<BitVector> m_countBits; 350 OwnPtr<BitVector> m_countBits;
350 BitVector m_CSSFeatureBits; 351 BitVector m_CSSFeatureBits;
351 }; 352 };
352 353
353 } // namespace WebCore 354 } // namespace WebCore
354 355
355 #endif // UseCounter_h 356 #endif // UseCounter_h
OLDNEW
« Source/core/css/SelectorChecker.cpp ('K') | « Source/core/css/SelectorChecker.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698