| Index: third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
|
| index d46fdc42c2515670a9eb9de5a3e09bf1661457ad..d7ff45f5d2e205fcabcf0046d4b5754598ea2099 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
|
| @@ -375,7 +375,7 @@ private:
|
| OwnPtr<WebTaskRunner> m_loadingTaskRunner;
|
| };
|
|
|
| -size_t ScriptStreamer::kSmallScriptThreshold = 30 * 1024;
|
| +size_t ScriptStreamer::s_smallScriptThreshold = 30 * 1024;
|
|
|
| void ScriptStreamer::startStreaming(PendingScript* script, Type scriptType, Settings* settings, ScriptState* scriptState, WebTaskRunner* loadingTaskRunner)
|
| {
|
| @@ -470,7 +470,7 @@ void ScriptStreamer::notifyAppendData(ScriptResource* resource)
|
| // enough - wait until the next data chunk comes before deciding whether
|
| // to start the streaming.
|
| ASSERT(resource->resourceBuffer());
|
| - if (resource->resourceBuffer()->size() < kSmallScriptThreshold)
|
| + if (resource->resourceBuffer()->size() < s_smallScriptThreshold)
|
| return;
|
| m_haveEnoughDataForStreaming = true;
|
|
|
| @@ -480,7 +480,7 @@ void ScriptStreamer::notifyAppendData(ScriptResource* resource)
|
| // addition, check for byte order marks. Note that checking the byte
|
| // order mark might change the encoding. We cannot decode the full text
|
| // here, because it might contain incomplete UTF-8 characters. Also note
|
| - // that have at least kSmallScriptThreshold worth of data, which is more
|
| + // that have at least s_smallScriptThreshold worth of data, which is more
|
| // than enough for detecting a BOM.
|
| const char* data = 0;
|
| size_t length = resource->resourceBuffer()->getSomeData(data, static_cast<size_t>(0));
|
|
|