| Index: Source/core/platform/text/RegularExpression.h
|
| diff --git a/Source/core/platform/text/RegularExpression.h b/Source/core/platform/text/RegularExpression.h
|
| index 6224e742bdcfefa0128202884a47575bb3e0d426..8b99f4d2102d0d9369daf9544ed25969542fe08b 100644
|
| --- a/Source/core/platform/text/RegularExpression.h
|
| +++ b/Source/core/platform/text/RegularExpression.h
|
| @@ -26,11 +26,10 @@
|
| #ifndef RegularExpression_h
|
| #define RegularExpression_h
|
|
|
| -#include <wtf/BumpPointerAllocator.h>
|
| +#include "ScopedPersistent.h"
|
| #include <wtf/Noncopyable.h>
|
| -#include <wtf/PassOwnPtr.h>
|
| #include <wtf/text/WTFString.h>
|
| -#include <yarr/Yarr.h>
|
| +#include <v8.h>
|
|
|
| namespace WebCore {
|
|
|
| @@ -47,11 +46,7 @@ public:
|
| int match(const String&, int startFrom = 0, int* matchLength = 0) const;
|
|
|
| private:
|
| - PassOwnPtr<JSC::Yarr::BytecodePattern> compile(const String&, TextCaseSensitivity, MultilineMode);
|
| -
|
| - unsigned m_numSubpatterns;
|
| - OwnPtr<JSC::Yarr::BytecodePattern> m_regExpByteCode;
|
| - BumpPointerAllocator m_regexAllocator;
|
| + ScopedPersistent<v8::RegExp> m_regex;
|
| };
|
|
|
| void replace(String&, const RegularExpression&, const String&);
|
|
|