summaryrefslogtreecommitdiffstats
path: root/components/plugins/renderer/plugin_placeholder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'components/plugins/renderer/plugin_placeholder.cc')
-rw-r--r--components/plugins/renderer/plugin_placeholder.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/plugins/renderer/plugin_placeholder.cc b/components/plugins/renderer/plugin_placeholder.cc
index 113cf8e..04ceb82 100644
--- a/components/plugins/renderer/plugin_placeholder.cc
+++ b/components/plugins/renderer/plugin_placeholder.cc
@@ -78,14 +78,15 @@ void PluginPlaceholderBase::HidePlugin() {
if (element.hasAttribute("width") && element.hasAttribute("height")) {
std::string width_str("width:[\\s]*");
width_str += element.getAttribute("width").utf8().data();
- if (base::EndsWith(width_str, "px", false)) {
+ if (base::EndsWith(width_str, "px", base::CompareCase::INSENSITIVE_ASCII)) {
width_str = width_str.substr(0, width_str.length() - 2);
}
base::TrimWhitespace(width_str, base::TRIM_TRAILING, &width_str);
width_str += "[\\s]*px";
std::string height_str("height:[\\s]*");
height_str += element.getAttribute("height").utf8().data();
- if (base::EndsWith(height_str, "px", false)) {
+ if (base::EndsWith(height_str, "px",
+ base::CompareCase::INSENSITIVE_ASCII)) {
height_str = height_str.substr(0, height_str.length() - 2);
}
base::TrimWhitespace(height_str, base::TRIM_TRAILING, &height_str);