-
mitz@apple.com authored
Reviewed by Dave Hyatt. - fix <rdar://problem/6946611> REGRESSION (r30673): Shade10:" D_Snap to Grid" window is clipping Added an app-specific quirk to revert the behavior of <link> elements to the way it was before r30673, namely that if the rel attribute is not "stylesheet" but the type attribute contains "text/css", the link behaves as a stylesheet link. * WebCore.base.exp: Exported setTreatsAnyTextCSSLinkAsStylesheet(). * html/HTMLLinkElement.cpp: (WebCore::HTMLLinkElement::process): Check Settings::treatsAnyTextCSSLinkAsStylesheet() and if true, allow a style sheet link if the type contains "text/css". * page/Settings.cpp: (WebCore::Settings::Settings): Initialize m_treatsAnyTextCSSLinkAsStylesheet. (WebCore::Settings::setTreatsAnyTextCSSLinkAsStylesheet): Added. * page/Settings.h: (WebCore::Settings::treatsAnyTextCSSLinkAsStylesheet): Added. WebKit/mac: Reviewed by Dave Hyatt. - fix <rdar://problem/6946611> REGRESSION (r30673): Shade10:" D_Snap to Grid" window is clipping * Misc/WebKitVersionChecks.h: Added WEBKIT_FIRST_VERSION_WITHOUT_SHADE10_QUIRK * WebView/WebView.mm: (-[WebView _needsLinkElementTextCSSQuirk]): Added. Returns YES if the client app is a version of Shade 10 earlier than 10.6 and it was linked against a version of WebKit earlier than 531.2. (-[WebView _preferencesChangedNotification:]): Added a call to Settings::setTreatsAnyTextCSSLinkAsStylesheet(). git-svn-id: http://svn.webkit.org/repository/webkit/trunk@45376 268f45cc-cd09-0410-ab3c-d52691b4dbfc
43db8bfc