This reverts commit181169b743
, reversing changes made tobaced3152f
.
This commit is contained in:
parent
eba9abdbe5
commit
a55fd06aa2
4 changed files with 0 additions and 26 deletions
|
@ -368,15 +368,6 @@ void WebFrame::ClearCache(v8::Isolate* isolate) {
|
|||
base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_CRITICAL);
|
||||
}
|
||||
|
||||
void WebFrame::SetCacheCapacity(v8::Isolate* isolate, int capacity) {
|
||||
if (capacity > 0) {
|
||||
blink::WebCache::SetCapacity(capacity);
|
||||
} else {
|
||||
isolate->ThrowException(v8::Exception::TypeError(
|
||||
mate::StringToV8(isolate, "Invalid cache capacity")));
|
||||
}
|
||||
}
|
||||
|
||||
// static
|
||||
void WebFrame::BuildPrototype(
|
||||
v8::Isolate* isolate, v8::Local<v8::FunctionTemplate> prototype) {
|
||||
|
@ -417,7 +408,6 @@ void WebFrame::BuildPrototype(
|
|||
&WebFrame::SetIsolatedWorldHumanReadableName)
|
||||
.SetMethod("getResourceUsage", &WebFrame::GetResourceUsage)
|
||||
.SetMethod("clearCache", &WebFrame::ClearCache)
|
||||
.SetMethod("setCacheCapacity", &WebFrame::SetCacheCapacity)
|
||||
// TODO(kevinsawicki): Remove in 2.0, deprecate before then with warnings
|
||||
.SetMethod("setZoomLevelLimits", &WebFrame::SetVisualZoomLevelLimits);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue