Chromium Code Reviews| Index: Source/core/html/HTMLMetaElement-in.cpp |
| diff --git a/Source/core/html/HTMLMetaElement-in.cpp b/Source/core/html/HTMLMetaElement-in.cpp |
| index fd9e353afa4d63c2ccb7186f2f5cdab4b83309b2..f2178a8fd649abcb1033ae320f00f3d9bb25d38d 100644 |
| --- a/Source/core/html/HTMLMetaElement-in.cpp |
| +++ b/Source/core/html/HTMLMetaElement-in.cpp |
| @@ -25,7 +25,9 @@ |
| #include "HTMLNames.h" |
| #include "core/dom/Document.h" |
| +#include "core/frame/LocalFrame.h" |
| #include "core/frame/Settings.h" |
| +#include "core/loader/FrameLoaderClient.h" |
| namespace WebCore { |
| @@ -471,6 +473,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 (equalIgnoringCase(nameValue, "brand-color") && document().frame() && document().frame()->loader().client()) |
|
abarth-chromium
2014/06/13 05:40:41
document().frame()->loader().client() is never zer
michaelbai
2014/06/13 19:56:51
Done.
|
| + document().frame()->loader().client()->dispatchDidChangeBrandColor(); |
| } |
| // Get the document to process the tag, but only if we're actually part of DOM |