Ignore:
Timestamp:
Mar 8, 2021, 8:57:53 AM (4 years ago)
Author:
[email protected]
Message:

Remove quirks for the no longer supported iAd Producer
https://bugs.webkit.org/show_bug.cgi?id=222894

Reviewed by Chris Dumez.

Source/WebCore:

Remove two quirks that were only for iAd Producer, which is no longer
supported on the latest macOS operating systems.

By removing one quirk, we can also remove some indirection in CSSStyleDeclaration.

  • bindings/scripts/CodeGeneratorJS.pm:

(GenerateAttributeSetterBodyDefinition):

  • bindings/scripts/test/JS/JSTestCSSProperty.cpp:

(WebCore::setJSTestCSSProperty_propertySetter):

  • css/CSSStyleDeclaration.cpp:

(WebCore::CSSStyleDeclaration::setNamedItem):
(WebCore::CSSStyleDeclaration::setPropertyValueInternal): Deleted.

  • css/CSSStyleDeclaration.h:
  • loader/DocumentLoader.cpp:

(WebCore::DocumentLoader::isLoadingInAPISense const):

  • page/DeprecatedGlobalSettings.cpp:

(WebCore::DeprecatedGlobalSettings::setShouldRespectPriorityInCSSAttributeSetters): Deleted.
(WebCore::DeprecatedGlobalSettings::shouldRespectPriorityInCSSAttributeSetters): Deleted.

  • page/DeprecatedGlobalSettings.h:

Source/WebKitLegacy/mac:

Remove two quirks that were only for iAd Producer, which is no longer
supported on the latest macOS operating systems.

  • WebView/WebPreferencesDefaultValues.h:
  • WebView/WebPreferencesDefaultValues.mm:

(WebKit::defaultNeedsIsLoadingInAPISenseQuirk): Deleted.

  • WebView/WebView.mm:

(-[WebView _commonInitializationWithFrameName:groupName:]):
(shouldRespectPriorityInCSSAttributeSetters): Deleted.

Source/WTF:

  • Scripts/Preferences/WebPreferences.yaml:

Remove NeedsIsLoadingInAPISenseQuirk preference which only existed to enable
a quirk for iAd Producer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/css/CSSStyleDeclaration.cpp

    r273688 r274074  
    213213}
    214214
    215 ExceptionOr<void> CSSStyleDeclaration::setPropertyValueInternal(CSSPropertyID propertyID, String value)
    216 {
    217     bool important = false;
    218     if (DeprecatedGlobalSettings::shouldRespectPriorityInCSSAttributeSetters()) {
    219         auto importantIndex = value.findIgnoringASCIICase("!important");
    220         if (importantIndex && importantIndex != notFound) {
    221             important = true;
    222             value = value.left(importantIndex - 1);
    223         }
    224     }
    225 
    226     return setPropertyInternal(propertyID, WTFMove(value), important);
    227 }
    228 
    229215const Settings* CSSStyleDeclaration::settings() const
    230216{
     
    258244
    259245    propertySupported = true;
    260     return setPropertyValueInternal(propertyID, WTFMove(value));
     246    return setPropertyInternal(propertyID, WTFMove(value), false);
    261247}
    262248
Note: See TracChangeset for help on using the changeset viewer.