summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/frame/frame_serializer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/frame/frame_serializer.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/frame/frame_serializer.cc15
1 files changed, 2 insertions, 13 deletions
diff --git a/chromium/third_party/blink/renderer/core/frame/frame_serializer.cc b/chromium/third_party/blink/renderer/core/frame/frame_serializer.cc
index eabf1e156b3..9b434d7397d 100644
--- a/chromium/third_party/blink/renderer/core/frame/frame_serializer.cc
+++ b/chromium/third_party/blink/renderer/core/frame/frame_serializer.cc
@@ -620,19 +620,8 @@ void FrameSerializer::RetrieveResourcesForCSSValue(const CSSValue& css_value,
if (font_face_src_value->IsLocal())
return;
- if (document.ImportsController()) {
- if (Document* context_document = document.ContextDocument()) {
- // For @imports from HTML imported Documents, we use the
- // context document for getting origin and ResourceFetcher to use the
- // main Document's origin, while using the element document for
- // CompleteURL() to use imported Documents' base URLs.
- AddFontToResources(font_face_src_value->Fetch(
- context_document->ToExecutionContext(), nullptr));
- }
- } else {
- AddFontToResources(
- font_face_src_value->Fetch(document.ToExecutionContext(), nullptr));
- }
+ AddFontToResources(
+ font_face_src_value->Fetch(document.GetExecutionContext(), nullptr));
} else if (const auto* css_value_list = DynamicTo<CSSValueList>(css_value)) {
for (unsigned i = 0; i < css_value_list->length(); i++)
RetrieveResourcesForCSSValue(css_value_list->Item(i), document);