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

Unified Diff: Source/wtf/BitVector.cpp

Issue 290793004: Use a BitArray in RuntimeCSSEnabled instead of a Vector<bool> (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« Source/core/css/RuntimeCSSEnabled.cpp ('K') | « Source/wtf/BitVector.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/BitVector.cpp
diff --git a/Source/wtf/BitVector.cpp b/Source/wtf/BitVector.cpp
index 3a4588ecb43d6f8d476e9ff84b5e2bcdd9dae768..903794b2eee7d8a9f5a81ab766385675153cdf9b 100644
--- a/Source/wtf/BitVector.cpp
+++ b/Source/wtf/BitVector.cpp
@@ -73,6 +73,11 @@ void BitVector::clearAll()
memset(outOfLineBits()->bits(), 0, byteCount(size()));
}
+void BitVector::setAll()
+{
+ memset(bits(), 0xFF, byteCount(size()));
+}
+
BitVector::OutOfLineBits* BitVector::OutOfLineBits::create(size_t numBits)
{
// Because of the way BitVector stores the pointer, memory tools
« Source/core/css/RuntimeCSSEnabled.cpp ('K') | « Source/wtf/BitVector.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698