mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision 217791.
- Pass popup window attributes to CefLifeSpanHandler::OnBeforePopup (issue #520). - Windows: Add manifest files for all binary targets and include compatibility manifest in *.exe targets. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1367 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -452,20 +452,19 @@ bool CefDictionaryValueImpl::SetList(const CefString& key,
|
||||
}
|
||||
|
||||
bool CefDictionaryValueImpl::RemoveInternal(const CefString& key) {
|
||||
base::Value* out_value = NULL;
|
||||
scoped_ptr<base::Value> out_value;
|
||||
if (!mutable_value()->RemoveWithoutPathExpansion(key, &out_value))
|
||||
return false;
|
||||
|
||||
// Remove the value.
|
||||
controller()->Remove(out_value, true);
|
||||
controller()->Remove(out_value.get(), true);
|
||||
|
||||
// Only list and dictionary types may have dependencies.
|
||||
if (out_value->IsType(base::Value::TYPE_LIST) ||
|
||||
out_value->IsType(base::Value::TYPE_DICTIONARY)) {
|
||||
controller()->RemoveDependencies(out_value);
|
||||
controller()->RemoveDependencies(out_value.get());
|
||||
}
|
||||
|
||||
delete out_value;
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -811,20 +810,19 @@ bool CefListValueImpl::SetList(int index, CefRefPtr<CefListValue> value) {
|
||||
}
|
||||
|
||||
bool CefListValueImpl::RemoveInternal(int index) {
|
||||
base::Value* out_value = NULL;
|
||||
scoped_ptr<base::Value> out_value;
|
||||
if (!mutable_value()->Remove(index, &out_value))
|
||||
return false;
|
||||
|
||||
// Remove the value.
|
||||
controller()->Remove(out_value, true);
|
||||
controller()->Remove(out_value.get(), true);
|
||||
|
||||
// Only list and dictionary types may have dependencies.
|
||||
if (out_value->IsType(base::Value::TYPE_LIST) ||
|
||||
out_value->IsType(base::Value::TYPE_DICTIONARY)) {
|
||||
controller()->RemoveDependencies(out_value);
|
||||
controller()->RemoveDependencies(out_value.get());
|
||||
}
|
||||
|
||||
delete out_value;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user