Skip to content
Permalink
Browse files

Remove mediawiki stylesheet hack

According to https://bugs.webkit.org/show_bug.cgi?id=28350#c46,
we needed to wait until most of the top mediawiki installations
have to switched to version 1.5 or above. This time has come as
there is only one wiki in the top 200 with a version below 1.5.

Review URL: https://codereview.chromium.org/63383003

git-svn-id: svn://svn.chromium.org/blink/trunk@161558 bbb929c8-8fbe-4397-9dbb-9b2b20218538
  • Loading branch information...
jchaffraix@chromium.org
jchaffraix@chromium.org committed Nov 7, 2013
1 parent 5721e18 commit ecf84fc9c1a51c8ede7adfd0b0cba446d9a8caa0
Showing with 0 additions and 9 deletions.
  1. +0 −9 third_party/WebKit/Source/core/css/StyleSheetContents.cpp
@@ -293,15 +293,6 @@ void StyleSheetContents::parseAuthorStyleSheet(const CSSStyleSheetResource* cach
return;
}
}
if (!quirksMode && m_parserContext.needsSiteSpecificQuirks) {
// Work around <https://bugs.webkit.org/show_bug.cgi?id=28350>.
DEFINE_STATIC_LOCAL(const String, mediaWikiKHTMLFixesStyleSheet, ("/* KHTML fix stylesheet */\n/* work around the horizontal scrollbars */\n#column-content { margin-left: 0; }\n\n"));
// There are two variants of KHTMLFixes.css. One is equal to mediaWikiKHTMLFixesStyleSheet,
// while the other lacks the second trailing newline.
if (baseURL().string().endsWith("/KHTMLFixes.css") && !sheetText.isNull() && mediaWikiKHTMLFixesStyleSheet.startsWith(sheetText)
&& sheetText.length() >= mediaWikiKHTMLFixesStyleSheet.length() - 1)
clearRules();
}
}

bool StyleSheetContents::parseString(const String& sheetText)

0 comments on commit ecf84fc

Please sign in to comment.
You can’t perform that action at this time.