Index: third_party/WebKit/Source/modules/fetch/RequestInit.cpp |
diff --git a/third_party/WebKit/Source/modules/fetch/RequestInit.cpp b/third_party/WebKit/Source/modules/fetch/RequestInit.cpp |
index 98b3dea0e168604466591e3dfbf3ed795b65b326..18640dc42007be3dc5c4ca2a13c7ce9db8bc36ae 100644 |
--- a/third_party/WebKit/Source/modules/fetch/RequestInit.cpp |
+++ b/third_party/WebKit/Source/modules/fetch/RequestInit.cpp |
@@ -25,28 +25,28 @@ namespace blink { |
RequestInit::RequestInit(ExecutionContext* context, const Dictionary& options, ExceptionState& exceptionState) |
: areAnyMembersSet(false) |
{ |
- areAnyMembersSet = DictionaryHelper::get(options, "method", method) || areAnyMembersSet; |
- areAnyMembersSet = DictionaryHelper::get(options, "headers", headers) || areAnyMembersSet; |
+ areAnyMembersSet |= DictionaryHelper::get(options, "method", method); |
+ areAnyMembersSet |= DictionaryHelper::get(options, "headers", headers); |
if (!headers) { |
Vector<Vector<String>> headersVector; |
if (DictionaryHelper::get(options, "headers", headersVector, exceptionState)) { |
headers = Headers::create(headersVector, exceptionState); |
areAnyMembersSet = true; |
} else { |
- areAnyMembersSet = DictionaryHelper::get(options, "headers", headersDictionary) || areAnyMembersSet; |
+ areAnyMembersSet |= DictionaryHelper::get(options, "headers", headersDictionary); |
} |
} |
- areAnyMembersSet = DictionaryHelper::get(options, "mode", mode) || areAnyMembersSet; |
- areAnyMembersSet = DictionaryHelper::get(options, "credentials", credentials) || areAnyMembersSet; |
- areAnyMembersSet = DictionaryHelper::get(options, "redirect", redirect) || areAnyMembersSet; |
+ areAnyMembersSet |= DictionaryHelper::get(options, "mode", mode); |
+ areAnyMembersSet |= DictionaryHelper::get(options, "credentials", credentials); |
+ areAnyMembersSet |= DictionaryHelper::get(options, "redirect", redirect); |
AtomicString referrerString; |
bool isReferrerStringSet = DictionaryHelper::get(options, "referrer", referrerString); |
- areAnyMembersSet = areAnyMembersSet || isReferrerStringSet; |
- areAnyMembersSet = DictionaryHelper::get(options, "integrity", integrity) || areAnyMembersSet; |
+ areAnyMembersSet |= isReferrerStringSet; |
+ areAnyMembersSet |= DictionaryHelper::get(options, "integrity", integrity); |
v8::Local<v8::Value> v8Body; |
bool isBodySet = DictionaryHelper::get(options, "body", v8Body); |
- areAnyMembersSet = areAnyMembersSet || isBodySet; |
+ areAnyMembersSet |= isBodySet; |
if (areAnyMembersSet) { |
// If any of init's members are present, unset request's |