| Index: third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp b/third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp
|
| index eb20de300cd8714e05d3ee1325bc3778a50f893d..1e4c4903777e861dc5e0ffd86b89236aa754fb3d 100644
|
| --- a/third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp
|
| @@ -30,8 +30,6 @@
|
|
|
| #include "core/editing/markers/DocumentMarker.h"
|
|
|
| -#include "wtf/StdLibExtras.h"
|
| -
|
| namespace blink {
|
|
|
| DocumentMarkerDetails::~DocumentMarkerDetails()
|
| @@ -85,9 +83,9 @@
|
|
|
| RawPtr<DocumentMarkerTextMatch> DocumentMarkerTextMatch::create(bool match)
|
| {
|
| - DEFINE_STATIC_LOCAL(DocumentMarkerTextMatch, trueInstance, (new DocumentMarkerTextMatch(true)));
|
| - DEFINE_STATIC_LOCAL(DocumentMarkerTextMatch, falseInstance, (new DocumentMarkerTextMatch(false)));
|
| - return match ? &trueInstance : &falseInstance;
|
| + DEFINE_STATIC_REF_WILL_BE_PERSISTENT(DocumentMarkerTextMatch, trueInstance, (new DocumentMarkerTextMatch(true)));
|
| + DEFINE_STATIC_REF_WILL_BE_PERSISTENT(DocumentMarkerTextMatch, falseInstance, (new DocumentMarkerTextMatch(false)));
|
| + return match ? trueInstance : falseInstance;
|
| }
|
|
|
| inline DocumentMarkerTextMatch* toDocumentMarkerTextMatch(DocumentMarkerDetails* details)
|
|
|