Simplify candidate selection in HTMLImageElement::SelectSourceURL

Rather than using the |found_url| local, recognize that it is equivalent
to !candidate.IsEmpty(), and use regular control flow instead.

Change-Id: I5f28a4099bc4252ec9ea5b9ed616116f64b97ace
Reviewed-on: https://chromium-review.googlesource.com/1196383
Reviewed-by: Stephen Chenney <schenney@chromium.org>
Commit-Queue: Fredrik Söderquist <fs@opera.com>
Cr-Commit-Position: refs/heads/master@{#588048}
diff --git a/third_party/blink/renderer/core/html/html_image_element.cc b/third_party/blink/renderer/core/html/html_image_element.cc
index 9ad1629..cb405b6 100644
--- a/third_party/blink/renderer/core/html/html_image_element.cc
+++ b/third_party/blink/renderer/core/html/html_image_element.cc
@@ -746,20 +746,14 @@
   if (!GetDocument().IsActive())
     return;
 
-  bool found_url = false;
   ImageCandidate candidate = FindBestFitImageFromPictureParent();
-  if (!candidate.IsEmpty()) {
-    SetBestFitURLAndDPRFromImageCandidate(candidate);
-    found_url = true;
-  }
-
-  if (!found_url) {
+  if (candidate.IsEmpty()) {
     candidate = BestFitSourceForImageAttributes(
         GetDocument().DevicePixelRatio(), SourceSize(*this),
         FastGetAttribute(srcAttr), FastGetAttribute(srcsetAttr),
         &GetDocument());
-    SetBestFitURLAndDPRFromImageCandidate(candidate);
   }
+  SetBestFitURLAndDPRFromImageCandidate(candidate);
 
   GetImageLoader().UpdateFromElement(behavior, referrer_policy_);