Index: Source/core/html/HTMLMetaElement-in.cpp |
diff --git a/Source/core/html/HTMLMetaElement-in.cpp b/Source/core/html/HTMLMetaElement-in.cpp |
index adc07ab70617ae4afe8fc539829e695b5af8e602..c9a07c5c45a1d67beddb4998228b3e419d64495d 100644 |
--- a/Source/core/html/HTMLMetaElement-in.cpp |
+++ b/Source/core/html/HTMLMetaElement-in.cpp |
@@ -24,8 +24,11 @@ |
#include "core/html/HTMLMetaElement.h" |
#include "HTMLNames.h" |
+#include "RuntimeEnabledFeatures.h" |
#include "core/dom/Document.h" |
+#include "core/frame/LocalFrame.h" |
#include "core/frame/Settings.h" |
+#include "core/loader/FrameLoaderClient.h" |
namespace WebCore { |
@@ -468,6 +471,8 @@ void HTMLMetaElement::process() |
processViewportContentAttribute("width=device-width", ViewportDescription::HandheldFriendlyMeta); |
else if (equalIgnoringCase(nameValue, "mobileoptimized")) |
processViewportContentAttribute("width=device-width, initial-scale=1", ViewportDescription::MobileOptimizedMeta); |
+ else if (RuntimeEnabledFeatures::brandColorEnabled() && equalIgnoringCase(nameValue, "brand-color") && document().frame()) |
+ document().frame()->loader().client()->dispatchDidChangeBrandColor(); |
} |
// Get the document to process the tag, but only if we're actually part of DOM |