summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/html/html_map_element.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/html/html_map_element.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/html/html_map_element.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/core/html/html_map_element.cc b/chromium/third_party/blink/renderer/core/html/html_map_element.cc
index 7874efcdd2b..6f3d12006bc 100644
--- a/chromium/third_party/blink/renderer/core/html/html_map_element.cc
+++ b/chromium/third_party/blink/renderer/core/html/html_map_element.cc
@@ -27,6 +27,7 @@
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/core/html/html_area_element.h"
#include "third_party/blink/renderer/core/html/html_collection.h"
+#include "third_party/blink/renderer/core/html/html_document.h"
#include "third_party/blink/renderer/core/html/html_image_element.h"
#include "third_party/blink/renderer/core/html_names.h"
#include "third_party/blink/renderer/core/layout/hit_test_result.h"
@@ -83,7 +84,7 @@ void HTMLMapElement::ParseAttribute(const AttributeModificationParams& params) {
if (params.name == html_names::kIdAttr) {
// Call base class so that hasID bit gets set.
HTMLElement::ParseAttribute(params);
- if (GetDocument().IsHTMLDocument())
+ if (IsA<HTMLDocument>(GetDocument()))
return;
}
if (isConnected())