Changeset 55935 in webkit
- Timestamp:
- Mar 12, 2010, 1:23:57 PM (15 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r55934 r55935 1 2010-03-12 Dan Bernstein <mitz@apple.com> 2 3 Reviewed by Alexey Proskuryakov. 4 5 <rdar://problem/7709115> REGRESSION: toolbar is missing at http://www.glom.org/ 6 https://bugs.webkit.org/show_bug.cgi?id=35507 7 8 * css/CSSImportRule.cpp: 9 (WebCore::CSSImportRule::setCSSStyleSheet): Extend the change made in 10 <http://trac.webkit.org/changeset/48818> to detect the two variants of 11 KHTMLFixes.css in @import rules as well as in <link> elements. 12 1 13 2010-03-12 Gavin Barraclough <barraclough@apple.com> 2 14 -
trunk/WebCore/css/CSSImportRule.cpp
r54645 r55935 89 89 DEFINE_STATIC_LOCAL(const String, slashKHTMLFixesDotCss, ("/KHTMLFixes.css")); 90 90 DEFINE_STATIC_LOCAL(const String, mediaWikiKHTMLFixesStyleSheet, ("/* KHTML fix stylesheet */\n/* work around the horizontal scrollbars */\n#column-content { margin-left: 0; }\n\n")); 91 if (baseURL.string().endsWith(slashKHTMLFixesDotCss) && sheetText == mediaWikiKHTMLFixesStyleSheet) { 91 // There are two variants of KHTMLFixes.css. One is equal to mediaWikiKHTMLFixesStyleSheet, 92 // while the other lacks the second trailing newline. 93 if (baseURL.string().endsWith(slashKHTMLFixesDotCss) && !sheetText.isNull() && mediaWikiKHTMLFixesStyleSheet.startsWith(sheetText) 94 && sheetText.length() >= mediaWikiKHTMLFixesStyleSheet.length() - 1) { 92 95 ASSERT(m_styleSheet->length() == 1); 93 96 ExceptionCode ec;
Note:
See TracChangeset
for help on using the changeset viewer.