| Differences between
and this patch
- ChangeLog +10 lines
Lines 1-3 ChangeLog_sec1
1
2019-06-06  Sam Weinig  <weinig@apple.com>
2
3
        Remove Dashboard support
4
        https://bugs.webkit.org/show_bug.cgi?id=198615
5
6
        Reviewed by NOBODY (OOPS!).
7
8
        * Source/cmake/OptionsMac.cmake:
9
        * Source/cmake/WebKitFeatures.cmake:
10
1
2019-06-04  Takashi Komori  <Takashi.Komori@sony.com>
11
2019-06-04  Takashi Komori  <Takashi.Komori@sony.com>
2
12
3
        [WinCairo] Implement cpu and memory measuring functions.
13
        [WinCairo] Implement cpu and memory measuring functions.
- Source/JavaScriptCore/ChangeLog +9 lines
Lines 1-3 Source/JavaScriptCore/ChangeLog_sec1
1
2019-06-06  Sam Weinig  <weinig@apple.com>
2
3
        Remove Dashboard support
4
        https://bugs.webkit.org/show_bug.cgi?id=198615
5
6
        Reviewed by NOBODY (OOPS!).
7
8
        * Configurations/FeatureDefines.xcconfig:
9
1
2019-06-09  Commit Queue  <commit-queue@webkit.org>
10
2019-06-09  Commit Queue  <commit-queue@webkit.org>
2
11
3
        Unreviewed, rolling out r246150, r246160, and r246166.
12
        Unreviewed, rolling out r246150, r246160, and r246166.
- Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig -4 / +1 lines
Lines 117-125 ENABLE_CUSTOM_SCHEME_HANDLER = ; Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig_sec1
117
ENABLE_DARK_MODE_CSS = $(ENABLE_DARK_MODE_CSS_$(WK_PLATFORM_NAME));
117
ENABLE_DARK_MODE_CSS = $(ENABLE_DARK_MODE_CSS_$(WK_PLATFORM_NAME));
118
ENABLE_DARK_MODE_CSS_macosx = ENABLE_DARK_MODE_CSS;
118
ENABLE_DARK_MODE_CSS_macosx = ENABLE_DARK_MODE_CSS;
119
119
120
ENABLE_DASHBOARD_SUPPORT = $(ENABLE_DASHBOARD_SUPPORT_$(WK_PLATFORM_NAME));
121
ENABLE_DASHBOARD_SUPPORT_macosx = ENABLE_DASHBOARD_SUPPORT;
122
123
ENABLE_DATACUE_VALUE = ENABLE_DATACUE_VALUE;
120
ENABLE_DATACUE_VALUE = ENABLE_DATACUE_VALUE;
124
121
125
ENABLE_DATALIST_ELEMENT = ENABLE_DATALIST_ELEMENT;
122
ENABLE_DATALIST_ELEMENT = ENABLE_DATALIST_ELEMENT;
Lines 445-448 ENABLE_WIRELESS_PLAYBACK_TARGET = ENABLE Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig_sec2
445
442
446
ENABLE_XSLT = ENABLE_XSLT;
443
ENABLE_XSLT = ENABLE_XSLT;
447
444
448
FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCESSIBILITY_ISOLATED_TREE) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_CONIC_GRADIENTS) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_PAINTING_API) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS_TYPED_OM) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_C_LOOP) $(ENABLE_DARK_MODE_CSS) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FAST_JIT_PERMISSIONS) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_KEYBOARD_CODE_ATTRIBUTE) $(ENABLE_KEYBOARD_KEY_ATTRIBUTE) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MAC_VIDEO_TOOLBOX) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_MEMORY_SAMPLER) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION) $(ENABLE_NOTIFICATIONS) $(ENABLE_OVERFLOW_SCROLLING_TOUCH) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_EVENTS) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESIZE_OBSERVER) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_LOAD_STATISTICS) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SANDBOX_EXTENSIONS) $(ENABLE_SERVER_PRECONNECT) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SHAREABLE_RESOURCE) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USERSELECT_ALL) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBASSEMBLY_STREAMING_API) $(ENABLE_WEBDRIVER_MOUSE_INTERACTIONS) $(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS) $(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBGPU) $(ENABLE_WEB_API_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_CRYPTO) $(ENABLE_WEB_PROCESS_SANDBOX) $(ENABLE_WEB_RTC) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT);
445
FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCESSIBILITY_ISOLATED_TREE) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_CONIC_GRADIENTS) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_PAINTING_API) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS_TYPED_OM) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_C_LOOP) $(ENABLE_DARK_MODE_CSS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FAST_JIT_PERMISSIONS) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_KEYBOARD_CODE_ATTRIBUTE) $(ENABLE_KEYBOARD_KEY_ATTRIBUTE) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MAC_VIDEO_TOOLBOX) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_MEMORY_SAMPLER) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION) $(ENABLE_NOTIFICATIONS) $(ENABLE_OVERFLOW_SCROLLING_TOUCH) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_EVENTS) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESIZE_OBSERVER) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_LOAD_STATISTICS) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SANDBOX_EXTENSIONS) $(ENABLE_SERVER_PRECONNECT) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SHAREABLE_RESOURCE) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USERSELECT_ALL) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBASSEMBLY_STREAMING_API) $(ENABLE_WEBDRIVER_MOUSE_INTERACTIONS) $(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS) $(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBGPU) $(ENABLE_WEB_API_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_CRYPTO) $(ENABLE_WEB_PROCESS_SANDBOX) $(ENABLE_WEB_RTC) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT);
- Source/WTF/ChangeLog +9 lines
Lines 1-3 Source/WTF/ChangeLog_sec1
1
2019-06-06  Sam Weinig  <weinig@apple.com>
2
3
        Remove Dashboard support
4
        https://bugs.webkit.org/show_bug.cgi?id=198615
5
6
        Reviewed by NOBODY (OOPS!).
7
8
        * wtf/FeatureDefines.h:
9
1
2019-06-08  Andy Estes  <aestes@apple.com>
10
2019-06-08  Andy Estes  <aestes@apple.com>
2
11
3
        [Apple Pay] If we have a bound interface identifier, set it on new PKPaymentRequests
12
        [Apple Pay] If we have a bound interface identifier, set it on new PKPaymentRequests
- Source/WTF/wtf/FeatureDefines.h -8 lines
Lines 225-234 the public iOS SDK. See <https://webkit. Source/WTF/wtf/FeatureDefines.h_sec1
225
#define ENABLE_CONTENT_EXTENSIONS 1
225
#define ENABLE_CONTENT_EXTENSIONS 1
226
#endif
226
#endif
227
227
228
#if !defined(ENABLE_DASHBOARD_SUPPORT)
229
#define ENABLE_DASHBOARD_SUPPORT 1
230
#endif
231
232
#if !defined(ENABLE_FULLSCREEN_API)
228
#if !defined(ENABLE_FULLSCREEN_API)
233
#define ENABLE_FULLSCREEN_API 1
229
#define ENABLE_FULLSCREEN_API 1
234
#endif
230
#endif
Lines 470-479 the public iOS SDK. See <https://webkit. Source/WTF/wtf/FeatureDefines.h_sec2
470
#define ENABLE_DARK_MODE_CSS 0
466
#define ENABLE_DARK_MODE_CSS 0
471
#endif
467
#endif
472
468
473
#if !defined(ENABLE_DASHBOARD_SUPPORT)
474
#define ENABLE_DASHBOARD_SUPPORT 0
475
#endif
476
477
#if !defined(ENABLE_DATALIST_ELEMENT)
469
#if !defined(ENABLE_DATALIST_ELEMENT)
478
#define ENABLE_DATALIST_ELEMENT 0
470
#define ENABLE_DATALIST_ELEMENT 0
479
#endif
471
#endif
- Source/WebCore/ChangeLog +116 lines
Lines 1-3 Source/WebCore/ChangeLog_sec1
1
2019-06-06  Sam Weinig  <weinig@apple.com>
2
3
        Remove Dashboard support
4
        https://bugs.webkit.org/show_bug.cgi?id=198615
5
6
        Reviewed by NOBODY (OOPS!).
7
8
        * Configurations/FeatureDefines.xcconfig:
9
        * WebCore.xcodeproj/project.pbxproj:
10
        * css/CSSCalculationValue.cpp:
11
        (WebCore::hasDoubleValue):
12
        * css/CSSComputedStyleDeclaration.cpp:
13
        (WebCore::ComputedStyleExtractor::valueForPropertyInStyle):
14
        * css/CSSPrimitiveValue.cpp:
15
        (WebCore::isValidCSSUnitTypeForDoubleConversion):
16
        (WebCore::isStringType):
17
        (WebCore::CSSPrimitiveValue::cleanup):
18
        (WebCore::CSSPrimitiveValue::formatNumberForCustomCSSText const):
19
        (WebCore::CSSPrimitiveValue::equals const):
20
        * css/CSSPrimitiveValue.h:
21
        * css/CSSProperties.json:
22
        * css/CSSValueKeywords.in:
23
        * css/DashboardRegion.h: Removed.
24
        * css/StyleBuilderCustom.h:
25
        (WebCore::convertToIntLength): Deleted.
26
        (WebCore::StyleBuilderCustom::applyValueWebkitDashboardRegion): Deleted.
27
        * css/StyleResolver.cpp:
28
        * css/parser/CSSPropertyParser.cpp:
29
        (WebCore::CSSPropertyParser::parseSingleValue):
30
        (WebCore::consumeWebkitDashboardRegion): Deleted.
31
        * dom/DataTransfer.cpp:
32
        (WebCore::DataTransfer::createForUpdatingDropTarget):
33
        * dom/Document.cpp:
34
        (WebCore::Document::invalidateRenderingDependentRegions):
35
        (WebCore::Document::annotatedRegions const): Deleted.
36
        (WebCore::Document::setAnnotatedRegions): Deleted.
37
        (WebCore::Document::updateAnnotatedRegions): Deleted.
38
        (WebCore::Document::invalidateScrollbarDependentRegions): Deleted.
39
        (WebCore::Document::updateZOrderDependentRegions): Deleted.
40
        * dom/Document.h:
41
        (WebCore::Document::setHasAnnotatedRegions): Deleted.
42
        (WebCore::Document::setAnnotatedRegionsDirty): Deleted.
43
        (WebCore::Document::annotatedRegionsDirty const): Deleted.
44
        (WebCore::Document::hasAnnotatedRegions const): Deleted.
45
        * html/HTMLCanvasElement.cpp:
46
        (WebCore::HTMLCanvasElement::createContext2d):
47
        * html/HTMLEmbedElement.cpp:
48
        (WebCore::HTMLEmbedElement::rendererIsNeeded):
49
        * html/HTMLImageLoader.cpp:
50
        (WebCore::HTMLImageLoader::sourceURI const):
51
        * html/canvas/CanvasGradient.cpp:
52
        (WebCore::CanvasGradient::addColorStop):
53
        * html/canvas/CanvasGradient.h:
54
        (WebCore::CanvasGradient::setDashboardCompatibilityMode): Deleted.
55
        (): Deleted.
56
        * html/canvas/CanvasRenderingContext2D.cpp:
57
        (WebCore::CanvasRenderingContext2D::create):
58
        (WebCore::CanvasRenderingContext2D::CanvasRenderingContext2D):
59
        * html/canvas/CanvasRenderingContext2D.h:
60
        * html/canvas/CanvasRenderingContext2DBase.cpp:
61
        (WebCore::CanvasRenderingContext2DBase::CanvasRenderingContext2DBase):
62
        (WebCore::CanvasRenderingContext2DBase::fill):
63
        (WebCore::CanvasRenderingContext2DBase::stroke):
64
        (WebCore::CanvasRenderingContext2DBase::clip):
65
        (WebCore::CanvasRenderingContext2DBase::createLinearGradient):
66
        (WebCore::CanvasRenderingContext2DBase::createRadialGradient):
67
        (WebCore::CanvasRenderingContext2DBase::prepareGradientForDashboard const): Deleted.
68
        (WebCore::CanvasRenderingContext2DBase::clearPathForDashboardBackwardCompatibilityMode): Deleted.
69
        * html/canvas/CanvasRenderingContext2DBase.h:
70
        * html/canvas/OffscreenCanvasRenderingContext2D.cpp:
71
        (WebCore::OffscreenCanvasRenderingContext2D::OffscreenCanvasRenderingContext2D):
72
        * html/canvas/PaintRenderingContext2D.cpp:
73
        (WebCore::PaintRenderingContext2D::PaintRenderingContext2D):
74
        * page/Chrome.cpp:
75
        (WebCore::ChromeClient::annotatedRegionsChanged): Deleted.
76
        * page/ChromeClient.h:
77
        * page/FrameView.cpp:
78
        (WebCore::FrameView::didLayout):
79
        (WebCore::FrameView::didPaintContents):
80
        * page/Settings.yaml:
81
        * page/mac/EventHandlerMac.mm:
82
        (WebCore::EventHandler::needsKeyboardEventDisambiguationQuirks const):
83
        * rendering/RenderInline.cpp:
84
        (WebCore::RenderInline::addAnnotatedRegions): Deleted.
85
        * rendering/RenderInline.h:
86
        * rendering/RenderLayer.cpp:
87
        (WebCore::RenderLayer::scrollTo):
88
        (WebCore::RenderLayer::setHasHorizontalScrollbar):
89
        (WebCore::RenderLayer::setHasVerticalScrollbar):
90
        (WebCore::RenderLayer::updateScrollbarsAfterLayout):
91
        * rendering/RenderListBox.cpp:
92
        (WebCore::RenderListBox::setHasVerticalScrollbar):
93
        * rendering/RenderObject.cpp:
94
        (WebCore::RenderObject::addAnnotatedRegions): Deleted.
95
        (WebCore::RenderObject::collectAnnotatedRegions): Deleted.
96
        * rendering/RenderObject.h:
97
        (WebCore::AnnotatedRegionValue::operator== const): Deleted.
98
        (WebCore::AnnotatedRegionValue::operator!= const): Deleted.
99
        * rendering/style/RenderStyle.cpp:
100
        (WebCore::rareNonInheritedDataChangeRequiresLayout):
101
        (WebCore::RenderStyle::initialDashboardRegions): Deleted.
102
        (WebCore::RenderStyle::noneDashboardRegions): Deleted.
103
        (WebCore::RenderStyle::setDashboardRegion): Deleted.
104
        * rendering/style/RenderStyle.h:
105
        (WebCore::RenderStyle::dashboardRegions const): Deleted.
106
        (WebCore::RenderStyle::setDashboardRegions): Deleted.
107
        * rendering/style/StyleDashboardRegion.h: Removed.
108
        * rendering/style/StyleRareNonInheritedData.cpp:
109
        (WebCore::StyleRareNonInheritedData::operator== const):
110
        * rendering/style/StyleRareNonInheritedData.h:
111
        * xml/XMLHttpRequest.cpp:
112
        (WebCore::XMLHttpRequest::send):
113
        (WebCore::XMLHttpRequest::setRequestHeader):
114
        (WebCore::XMLHttpRequest::usesDashboardBackwardCompatibilityMode const): Deleted.
115
        * xml/XMLHttpRequest.h:
116
1
2019-06-09  Rob Buis  <rbuis@igalia.com>
117
2019-06-09  Rob Buis  <rbuis@igalia.com>
2
118
3
        Add wildcard to Access-Control-Allow-Methods and Access-Control-Allow-Headers
119
        Add wildcard to Access-Control-Allow-Methods and Access-Control-Allow-Headers
- Source/WebCore/Headers.cmake -1 lines
Lines 1313-1319 set(WebCore_PRIVATE_FRAMEWORK_HEADERS Source/WebCore/Headers.cmake_sec1
1313
    rendering/style/StyleColorScheme.h
1313
    rendering/style/StyleColorScheme.h
1314
    rendering/style/StyleContentAlignmentData.h
1314
    rendering/style/StyleContentAlignmentData.h
1315
    rendering/style/StyleCustomPropertyData.h
1315
    rendering/style/StyleCustomPropertyData.h
1316
    rendering/style/StyleDashboardRegion.h
1317
    rendering/style/StyleDeprecatedFlexibleBoxData.h
1316
    rendering/style/StyleDeprecatedFlexibleBoxData.h
1318
    rendering/style/StyleFilterData.h
1317
    rendering/style/StyleFilterData.h
1319
    rendering/style/StyleFlexibleBoxData.h
1318
    rendering/style/StyleFlexibleBoxData.h
- Source/WebCore/Configurations/FeatureDefines.xcconfig -4 / +1 lines
Lines 117-125 ENABLE_CUSTOM_SCHEME_HANDLER = ; Source/WebCore/Configurations/FeatureDefines.xcconfig_sec1
117
ENABLE_DARK_MODE_CSS = $(ENABLE_DARK_MODE_CSS_$(WK_PLATFORM_NAME));
117
ENABLE_DARK_MODE_CSS = $(ENABLE_DARK_MODE_CSS_$(WK_PLATFORM_NAME));
118
ENABLE_DARK_MODE_CSS_macosx = ENABLE_DARK_MODE_CSS;
118
ENABLE_DARK_MODE_CSS_macosx = ENABLE_DARK_MODE_CSS;
119
119
120
ENABLE_DASHBOARD_SUPPORT = $(ENABLE_DASHBOARD_SUPPORT_$(WK_PLATFORM_NAME));
121
ENABLE_DASHBOARD_SUPPORT_macosx = ENABLE_DASHBOARD_SUPPORT;
122
123
ENABLE_DATACUE_VALUE = ENABLE_DATACUE_VALUE;
120
ENABLE_DATACUE_VALUE = ENABLE_DATACUE_VALUE;
124
121
125
ENABLE_DATALIST_ELEMENT = ENABLE_DATALIST_ELEMENT;
122
ENABLE_DATALIST_ELEMENT = ENABLE_DATALIST_ELEMENT;
Lines 445-448 ENABLE_WIRELESS_PLAYBACK_TARGET = ENABLE Source/WebCore/Configurations/FeatureDefines.xcconfig_sec2
445
442
446
ENABLE_XSLT = ENABLE_XSLT;
443
ENABLE_XSLT = ENABLE_XSLT;
447
444
448
FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCESSIBILITY_ISOLATED_TREE) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_CONIC_GRADIENTS) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_PAINTING_API) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS_TYPED_OM) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_C_LOOP) $(ENABLE_DARK_MODE_CSS) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FAST_JIT_PERMISSIONS) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_KEYBOARD_CODE_ATTRIBUTE) $(ENABLE_KEYBOARD_KEY_ATTRIBUTE) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MAC_VIDEO_TOOLBOX) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_MEMORY_SAMPLER) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION) $(ENABLE_NOTIFICATIONS) $(ENABLE_OVERFLOW_SCROLLING_TOUCH) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_EVENTS) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESIZE_OBSERVER) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_LOAD_STATISTICS) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SANDBOX_EXTENSIONS) $(ENABLE_SERVER_PRECONNECT) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SHAREABLE_RESOURCE) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USERSELECT_ALL) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBASSEMBLY_STREAMING_API) $(ENABLE_WEBDRIVER_MOUSE_INTERACTIONS) $(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS) $(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBGPU) $(ENABLE_WEB_API_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_CRYPTO) $(ENABLE_WEB_PROCESS_SANDBOX) $(ENABLE_WEB_RTC) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT);
445
FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCESSIBILITY_ISOLATED_TREE) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_CONIC_GRADIENTS) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_PAINTING_API) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS_TYPED_OM) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_C_LOOP) $(ENABLE_DARK_MODE_CSS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FAST_JIT_PERMISSIONS) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_KEYBOARD_CODE_ATTRIBUTE) $(ENABLE_KEYBOARD_KEY_ATTRIBUTE) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MAC_VIDEO_TOOLBOX) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_MEMORY_SAMPLER) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION) $(ENABLE_NOTIFICATIONS) $(ENABLE_OVERFLOW_SCROLLING_TOUCH) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_EVENTS) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESIZE_OBSERVER) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_LOAD_STATISTICS) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SANDBOX_EXTENSIONS) $(ENABLE_SERVER_PRECONNECT) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SHAREABLE_RESOURCE) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USERSELECT_ALL) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBASSEMBLY_STREAMING_API) $(ENABLE_WEBDRIVER_MOUSE_INTERACTIONS) $(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS) $(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBGPU) $(ENABLE_WEB_API_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_CRYPTO) $(ENABLE_WEB_PROCESS_SANDBOX) $(ENABLE_WEB_RTC) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT);
- Source/WebCore/PAL/ChangeLog +9 lines
Lines 1-3 Source/WebCore/PAL/ChangeLog_sec1
1
2019-06-06  Sam Weinig  <weinig@apple.com>
2
3
        Remove Dashboard support
4
        https://bugs.webkit.org/show_bug.cgi?id=198615
5
6
        Reviewed by NOBODY (OOPS!).
7
8
        * Configurations/FeatureDefines.xcconfig:
9
1
2019-06-08  Andy Estes  <aestes@apple.com>
10
2019-06-08  Andy Estes  <aestes@apple.com>
2
11
3
        [Apple Pay] If we have a bound interface identifier, set it on new PKPaymentRequests
12
        [Apple Pay] If we have a bound interface identifier, set it on new PKPaymentRequests
- Source/WebCore/PAL/Configurations/FeatureDefines.xcconfig -4 / +1 lines
Lines 117-125 ENABLE_CUSTOM_SCHEME_HANDLER = ; Source/WebCore/PAL/Configurations/FeatureDefines.xcconfig_sec1
117
ENABLE_DARK_MODE_CSS = $(ENABLE_DARK_MODE_CSS_$(WK_PLATFORM_NAME));
117
ENABLE_DARK_MODE_CSS = $(ENABLE_DARK_MODE_CSS_$(WK_PLATFORM_NAME));
118
ENABLE_DARK_MODE_CSS_macosx = ENABLE_DARK_MODE_CSS;
118
ENABLE_DARK_MODE_CSS_macosx = ENABLE_DARK_MODE_CSS;
119
119
120
ENABLE_DASHBOARD_SUPPORT = $(ENABLE_DASHBOARD_SUPPORT_$(WK_PLATFORM_NAME));
121
ENABLE_DASHBOARD_SUPPORT_macosx = ENABLE_DASHBOARD_SUPPORT;
122
123
ENABLE_DATACUE_VALUE = ENABLE_DATACUE_VALUE;
120
ENABLE_DATACUE_VALUE = ENABLE_DATACUE_VALUE;
124
121
125
ENABLE_DATALIST_ELEMENT = ENABLE_DATALIST_ELEMENT;
122
ENABLE_DATALIST_ELEMENT = ENABLE_DATALIST_ELEMENT;
Lines 445-448 ENABLE_WIRELESS_PLAYBACK_TARGET = ENABLE Source/WebCore/PAL/Configurations/FeatureDefines.xcconfig_sec2
445
442
446
ENABLE_XSLT = ENABLE_XSLT;
443
ENABLE_XSLT = ENABLE_XSLT;
447
444
448
FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCESSIBILITY_ISOLATED_TREE) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_CONIC_GRADIENTS) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_PAINTING_API) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS_TYPED_OM) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_C_LOOP) $(ENABLE_DARK_MODE_CSS) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FAST_JIT_PERMISSIONS) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_KEYBOARD_CODE_ATTRIBUTE) $(ENABLE_KEYBOARD_KEY_ATTRIBUTE) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MAC_VIDEO_TOOLBOX) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_MEMORY_SAMPLER) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION) $(ENABLE_NOTIFICATIONS) $(ENABLE_OVERFLOW_SCROLLING_TOUCH) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_EVENTS) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESIZE_OBSERVER) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_LOAD_STATISTICS) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SANDBOX_EXTENSIONS) $(ENABLE_SERVER_PRECONNECT) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SHAREABLE_RESOURCE) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USERSELECT_ALL) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBASSEMBLY_STREAMING_API) $(ENABLE_WEBDRIVER_MOUSE_INTERACTIONS) $(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS) $(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBGPU) $(ENABLE_WEB_API_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_CRYPTO) $(ENABLE_WEB_PROCESS_SANDBOX) $(ENABLE_WEB_RTC) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT);
445
FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCESSIBILITY_ISOLATED_TREE) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_CONIC_GRADIENTS) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_PAINTING_API) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS_TYPED_OM) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_C_LOOP) $(ENABLE_DARK_MODE_CSS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FAST_JIT_PERMISSIONS) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_KEYBOARD_CODE_ATTRIBUTE) $(ENABLE_KEYBOARD_KEY_ATTRIBUTE) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MAC_VIDEO_TOOLBOX) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_MEMORY_SAMPLER) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION) $(ENABLE_NOTIFICATIONS) $(ENABLE_OVERFLOW_SCROLLING_TOUCH) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_EVENTS) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESIZE_OBSERVER) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_LOAD_STATISTICS) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SANDBOX_EXTENSIONS) $(ENABLE_SERVER_PRECONNECT) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SHAREABLE_RESOURCE) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USERSELECT_ALL) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBASSEMBLY_STREAMING_API) $(ENABLE_WEBDRIVER_MOUSE_INTERACTIONS) $(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS) $(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBGPU) $(ENABLE_WEB_API_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_CRYPTO) $(ENABLE_WEB_PROCESS_SANDBOX) $(ENABLE_WEB_RTC) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT);
- Source/WebCore/WebCore.xcodeproj/project.pbxproj -8 lines
Lines 3193-3199 Source/WebCore/WebCore.xcodeproj/project.pbxproj_sec1
3193
		A80E6D030A1989CA007FB8C5 /* CSSMediaRule.h in Headers */ = {isa = PBXBuildFile; fileRef = A80E6CD90A1989CA007FB8C5 /* CSSMediaRule.h */; settings = {ATTRIBUTES = (Private, ); }; };
3193
		A80E6D030A1989CA007FB8C5 /* CSSMediaRule.h in Headers */ = {isa = PBXBuildFile; fileRef = A80E6CD90A1989CA007FB8C5 /* CSSMediaRule.h */; settings = {ATTRIBUTES = (Private, ); }; };
3194
		A80E6D040A1989CA007FB8C5 /* Counter.h in Headers */ = {isa = PBXBuildFile; fileRef = A80E6CDA0A1989CA007FB8C5 /* Counter.h */; settings = {ATTRIBUTES = (Private, ); }; };
3194
		A80E6D040A1989CA007FB8C5 /* Counter.h in Headers */ = {isa = PBXBuildFile; fileRef = A80E6CDA0A1989CA007FB8C5 /* Counter.h */; settings = {ATTRIBUTES = (Private, ); }; };
3195
		A80E6D080A1989CA007FB8C5 /* CSSInitialValue.h in Headers */ = {isa = PBXBuildFile; fileRef = A80E6CDE0A1989CA007FB8C5 /* CSSInitialValue.h */; };
3195
		A80E6D080A1989CA007FB8C5 /* CSSInitialValue.h in Headers */ = {isa = PBXBuildFile; fileRef = A80E6CDE0A1989CA007FB8C5 /* CSSInitialValue.h */; };
3196
		A80E6D0B0A1989CA007FB8C5 /* DashboardRegion.h in Headers */ = {isa = PBXBuildFile; fileRef = A80E6CE10A1989CA007FB8C5 /* DashboardRegion.h */; };
3197
		A80E6D0C0A1989CA007FB8C5 /* CSSStyleRule.h in Headers */ = {isa = PBXBuildFile; fileRef = A80E6CE20A1989CA007FB8C5 /* CSSStyleRule.h */; settings = {ATTRIBUTES = (Private, ); }; };
3196
		A80E6D0C0A1989CA007FB8C5 /* CSSStyleRule.h in Headers */ = {isa = PBXBuildFile; fileRef = A80E6CE20A1989CA007FB8C5 /* CSSStyleRule.h */; settings = {ATTRIBUTES = (Private, ); }; };
3198
		A80E6D0D0A1989CA007FB8C5 /* CSSRule.h in Headers */ = {isa = PBXBuildFile; fileRef = A80E6CE30A1989CA007FB8C5 /* CSSRule.h */; settings = {ATTRIBUTES = (Private, ); }; };
3197
		A80E6D0D0A1989CA007FB8C5 /* CSSRule.h in Headers */ = {isa = PBXBuildFile; fileRef = A80E6CE30A1989CA007FB8C5 /* CSSRule.h */; settings = {ATTRIBUTES = (Private, ); }; };
3199
		A80E6DFC0A199067007FB8C5 /* StyleProperties.h in Headers */ = {isa = PBXBuildFile; fileRef = A80E6DFA0A199067007FB8C5 /* StyleProperties.h */; settings = {ATTRIBUTES = (Private, ); }; };
3198
		A80E6DFC0A199067007FB8C5 /* StyleProperties.h in Headers */ = {isa = PBXBuildFile; fileRef = A80E6DFA0A199067007FB8C5 /* StyleProperties.h */; settings = {ATTRIBUTES = (Private, ); }; };
Lines 3763-3769 Source/WebCore/WebCore.xcodeproj/project.pbxproj_sec2
3763
		BC5EB5E50E81BF6D00B25965 /* StyleSurroundData.h in Headers */ = {isa = PBXBuildFile; fileRef = BC5EB5E40E81BF6D00B25965 /* StyleSurroundData.h */; settings = {ATTRIBUTES = (Private, ); }; };
3762
		BC5EB5E50E81BF6D00B25965 /* StyleSurroundData.h in Headers */ = {isa = PBXBuildFile; fileRef = BC5EB5E40E81BF6D00B25965 /* StyleSurroundData.h */; settings = {ATTRIBUTES = (Private, ); }; };
3764
		BC5EB6680E81CB7100B25965 /* RenderStyleConstants.h in Headers */ = {isa = PBXBuildFile; fileRef = BC5EB6670E81CB7100B25965 /* RenderStyleConstants.h */; settings = {ATTRIBUTES = (Private, ); }; };
3763
		BC5EB6680E81CB7100B25965 /* RenderStyleConstants.h in Headers */ = {isa = PBXBuildFile; fileRef = BC5EB6670E81CB7100B25965 /* RenderStyleConstants.h */; settings = {ATTRIBUTES = (Private, ); }; };
3765
		BC5EB67B0E81D3BE00B25965 /* StyleBoxData.h in Headers */ = {isa = PBXBuildFile; fileRef = BC5EB67A0E81D3BE00B25965 /* StyleBoxData.h */; settings = {ATTRIBUTES = (Private, ); }; };
3764
		BC5EB67B0E81D3BE00B25965 /* StyleBoxData.h in Headers */ = {isa = PBXBuildFile; fileRef = BC5EB67A0E81D3BE00B25965 /* StyleBoxData.h */; settings = {ATTRIBUTES = (Private, ); }; };
3766
		BC5EB67F0E81D4A700B25965 /* StyleDashboardRegion.h in Headers */ = {isa = PBXBuildFile; fileRef = BC5EB67E0E81D4A700B25965 /* StyleDashboardRegion.h */; settings = {ATTRIBUTES = (Private, ); }; };
3767
		BC5EB69A0E81DA6300B25965 /* StyleVisualData.h in Headers */ = {isa = PBXBuildFile; fileRef = BC5EB6980E81DA6300B25965 /* StyleVisualData.h */; settings = {ATTRIBUTES = (Private, ); }; };
3765
		BC5EB69A0E81DA6300B25965 /* StyleVisualData.h in Headers */ = {isa = PBXBuildFile; fileRef = BC5EB6980E81DA6300B25965 /* StyleVisualData.h */; settings = {ATTRIBUTES = (Private, ); }; };
3768
		BC5EB69F0E81DAEB00B25965 /* FillLayer.h in Headers */ = {isa = PBXBuildFile; fileRef = BC5EB69D0E81DAEB00B25965 /* FillLayer.h */; settings = {ATTRIBUTES = (Private, ); }; };
3766
		BC5EB69F0E81DAEB00B25965 /* FillLayer.h in Headers */ = {isa = PBXBuildFile; fileRef = BC5EB69D0E81DAEB00B25965 /* FillLayer.h */; settings = {ATTRIBUTES = (Private, ); }; };
3769
		BC5EB6A30E81DC4F00B25965 /* StyleBackgroundData.h in Headers */ = {isa = PBXBuildFile; fileRef = BC5EB6A10E81DC4F00B25965 /* StyleBackgroundData.h */; settings = {ATTRIBUTES = (Private, ); }; };
3767
		BC5EB6A30E81DC4F00B25965 /* StyleBackgroundData.h in Headers */ = {isa = PBXBuildFile; fileRef = BC5EB6A10E81DC4F00B25965 /* StyleBackgroundData.h */; settings = {ATTRIBUTES = (Private, ); }; };
Lines 11611-11617 Source/WebCore/WebCore.xcodeproj/project.pbxproj_sec3
11611
		A80E6CDC0A1989CA007FB8C5 /* CSSRule.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = CSSRule.cpp; sourceTree = "<group>"; };
11609
		A80E6CDC0A1989CA007FB8C5 /* CSSRule.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = CSSRule.cpp; sourceTree = "<group>"; };
11612
		A80E6CDE0A1989CA007FB8C5 /* CSSInitialValue.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CSSInitialValue.h; sourceTree = "<group>"; };
11610
		A80E6CDE0A1989CA007FB8C5 /* CSSInitialValue.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CSSInitialValue.h; sourceTree = "<group>"; };
11613
		A80E6CDF0A1989CA007FB8C5 /* CSSRuleList.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = CSSRuleList.cpp; sourceTree = "<group>"; };
11611
		A80E6CDF0A1989CA007FB8C5 /* CSSRuleList.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = CSSRuleList.cpp; sourceTree = "<group>"; };
11614
		A80E6CE10A1989CA007FB8C5 /* DashboardRegion.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = DashboardRegion.h; sourceTree = "<group>"; };
11615
		A80E6CE20A1989CA007FB8C5 /* CSSStyleRule.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CSSStyleRule.h; sourceTree = "<group>"; };
11612
		A80E6CE20A1989CA007FB8C5 /* CSSStyleRule.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CSSStyleRule.h; sourceTree = "<group>"; };
11616
		A80E6CE30A1989CA007FB8C5 /* CSSRule.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CSSRule.h; sourceTree = "<group>"; };
11613
		A80E6CE30A1989CA007FB8C5 /* CSSRule.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CSSRule.h; sourceTree = "<group>"; };
11617
		A80E6DF90A199067007FB8C5 /* StyleProperties.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = StyleProperties.cpp; sourceTree = "<group>"; };
11614
		A80E6DF90A199067007FB8C5 /* StyleProperties.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = StyleProperties.cpp; sourceTree = "<group>"; };
Lines 12894-12900 Source/WebCore/WebCore.xcodeproj/project.pbxproj_sec4
12894
		BC5EB6670E81CB7100B25965 /* RenderStyleConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RenderStyleConstants.h; sourceTree = "<group>"; };
12891
		BC5EB6670E81CB7100B25965 /* RenderStyleConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RenderStyleConstants.h; sourceTree = "<group>"; };
12895
		BC5EB67A0E81D3BE00B25965 /* StyleBoxData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StyleBoxData.h; sourceTree = "<group>"; };
12892
		BC5EB67A0E81D3BE00B25965 /* StyleBoxData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StyleBoxData.h; sourceTree = "<group>"; };
12896
		BC5EB67C0E81D42000B25965 /* StyleBoxData.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = StyleBoxData.cpp; sourceTree = "<group>"; };
12893
		BC5EB67C0E81D42000B25965 /* StyleBoxData.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = StyleBoxData.cpp; sourceTree = "<group>"; };
12897
		BC5EB67E0E81D4A700B25965 /* StyleDashboardRegion.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StyleDashboardRegion.h; sourceTree = "<group>"; };
12898
		BC5EB6970E81DA6300B25965 /* StyleVisualData.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = StyleVisualData.cpp; sourceTree = "<group>"; };
12894
		BC5EB6970E81DA6300B25965 /* StyleVisualData.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = StyleVisualData.cpp; sourceTree = "<group>"; };
12899
		BC5EB6980E81DA6300B25965 /* StyleVisualData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StyleVisualData.h; sourceTree = "<group>"; };
12895
		BC5EB6980E81DA6300B25965 /* StyleVisualData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StyleVisualData.h; sourceTree = "<group>"; };
12900
		BC5EB69C0E81DAEB00B25965 /* FillLayer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FillLayer.cpp; sourceTree = "<group>"; };
12896
		BC5EB69C0E81DAEB00B25965 /* FillLayer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FillLayer.cpp; sourceTree = "<group>"; };
Lines 24909-24915 Source/WebCore/WebCore.xcodeproj/project.pbxproj_sec5
24909
				1C0AA16A21940DC700896829 /* StyleColorScheme.h */,
24905
				1C0AA16A21940DC700896829 /* StyleColorScheme.h */,
24910
				9DAC7C561AF2CB6400437C44 /* StyleContentAlignmentData.h */,
24906
				9DAC7C561AF2CB6400437C44 /* StyleContentAlignmentData.h */,
24911
				BC779E151BB226A200CAA8BF /* StyleCustomPropertyData.h */,
24907
				BC779E151BB226A200CAA8BF /* StyleCustomPropertyData.h */,
24912
				BC5EB67E0E81D4A700B25965 /* StyleDashboardRegion.h */,
24913
				BC5EB8B60E8201BD00B25965 /* StyleDeprecatedFlexibleBoxData.cpp */,
24908
				BC5EB8B60E8201BD00B25965 /* StyleDeprecatedFlexibleBoxData.cpp */,
24914
				BC5EB8B70E8201BD00B25965 /* StyleDeprecatedFlexibleBoxData.h */,
24909
				BC5EB8B70E8201BD00B25965 /* StyleDeprecatedFlexibleBoxData.h */,
24915
				319AE061142D6B24006563A1 /* StyleFilterData.cpp */,
24910
				319AE061142D6B24006563A1 /* StyleFilterData.cpp */,
Lines 26730-26736 Source/WebCore/WebCore.xcodeproj/project.pbxproj_sec6
26730
				9444CBDD1D8861580073A074 /* CSSVariableData.h */,
26725
				9444CBDD1D8861580073A074 /* CSSVariableData.h */,
26731
				9444CBDC1D8861580073A074 /* CSSVariableReferenceValue.cpp */,
26726
				9444CBDC1D8861580073A074 /* CSSVariableReferenceValue.cpp */,
26732
				9444CBDB1D8861580073A074 /* CSSVariableReferenceValue.h */,
26727
				9444CBDB1D8861580073A074 /* CSSVariableReferenceValue.h */,
26733
				A80E6CE10A1989CA007FB8C5 /* DashboardRegion.h */,
26734
				9479492A1E032EDB00018D85 /* DeprecatedCSSOMCounter.h */,
26728
				9479492A1E032EDB00018D85 /* DeprecatedCSSOMCounter.h */,
26735
				930705C709E0C95F00B17FE4 /* DeprecatedCSSOMCounter.idl */,
26729
				930705C709E0C95F00B17FE4 /* DeprecatedCSSOMCounter.idl */,
26736
				9479493B1E045CE100018D85 /* DeprecatedCSSOMPrimitiveValue.cpp */,
26730
				9479493B1E045CE100018D85 /* DeprecatedCSSOMPrimitiveValue.cpp */,
Lines 28770-28776 Source/WebCore/WebCore.xcodeproj/project.pbxproj_sec7
28770
				4B1E13E721790D660042CF98 /* CustomPaintCanvas.h in Headers */,
28764
				4B1E13E721790D660042CF98 /* CustomPaintCanvas.h in Headers */,
28771
				4B7AE4932177B56F00C59959 /* CustomPaintImage.h in Headers */,
28765
				4B7AE4932177B56F00C59959 /* CustomPaintImage.h in Headers */,
28772
				A8CB413E0E8633FD0032C4F0 /* DashArray.h in Headers */,
28766
				A8CB413E0E8633FD0032C4F0 /* DashArray.h in Headers */,
28773
				A80E6D0B0A1989CA007FB8C5 /* DashboardRegion.h in Headers */,
28774
				97BC6A211505F081001B74AC /* Database.h in Headers */,
28767
				97BC6A211505F081001B74AC /* Database.h in Headers */,
28775
				97BC6A241505F081001B74AC /* DatabaseAuthorizer.h in Headers */,
28768
				97BC6A241505F081001B74AC /* DatabaseAuthorizer.h in Headers */,
28776
				97BC6A251505F081001B74AC /* DatabaseCallback.h in Headers */,
28769
				97BC6A251505F081001B74AC /* DatabaseCallback.h in Headers */,
Lines 31548-31554 Source/WebCore/WebCore.xcodeproj/project.pbxproj_sec8
31548
				1C0AA16D21940DC800896829 /* StyleColorScheme.h in Headers */,
31541
				1C0AA16D21940DC800896829 /* StyleColorScheme.h in Headers */,
31549
				9DAC7C571AF2CB6400437C44 /* StyleContentAlignmentData.h in Headers */,
31542
				9DAC7C571AF2CB6400437C44 /* StyleContentAlignmentData.h in Headers */,
31550
				BC779E171BB227CA00CAA8BF /* StyleCustomPropertyData.h in Headers */,
31543
				BC779E171BB227CA00CAA8BF /* StyleCustomPropertyData.h in Headers */,
31551
				BC5EB67F0E81D4A700B25965 /* StyleDashboardRegion.h in Headers */,
31552
				A8C4A7FD09D563270003AC8D /* StyledElement.h in Headers */,
31544
				A8C4A7FD09D563270003AC8D /* StyledElement.h in Headers */,
31553
				BC5EB8B90E8201BD00B25965 /* StyleDeprecatedFlexibleBoxData.h in Headers */,
31545
				BC5EB8B90E8201BD00B25965 /* StyleDeprecatedFlexibleBoxData.h in Headers */,
31554
				319AE064142D6B24006563A1 /* StyleFilterData.h in Headers */,
31546
				319AE064142D6B24006563A1 /* StyleFilterData.h in Headers */,
- Source/WebCore/css/CSSCalculationValue.cpp -3 lines
Lines 143-151 static bool hasDoubleValue(CSSPrimitiveV Source/WebCore/css/CSSCalculationValue.cpp_sec1
143
    case CSSPrimitiveValue::CSS_CALC_PERCENTAGE_WITH_LENGTH:
143
    case CSSPrimitiveValue::CSS_CALC_PERCENTAGE_WITH_LENGTH:
144
    case CSSPrimitiveValue::CSS_PROPERTY_ID:
144
    case CSSPrimitiveValue::CSS_PROPERTY_ID:
145
    case CSSPrimitiveValue::CSS_VALUE_ID:
145
    case CSSPrimitiveValue::CSS_VALUE_ID:
146
#if ENABLE(DASHBOARD_SUPPORT)
147
    case CSSPrimitiveValue::CSS_DASHBOARD_REGION:
148
#endif
149
        return false;
146
        return false;
150
    };
147
    };
151
    ASSERT_NOT_REACHED();
148
    ASSERT_NOT_REACHED();
- Source/WebCore/css/CSSComputedStyleDeclaration.cpp -39 lines
Lines 84-93 Source/WebCore/css/CSSComputedStyleDeclaration.cpp_sec1
84
#include "CSSGridTemplateAreasValue.h"
84
#include "CSSGridTemplateAreasValue.h"
85
#include "RenderGrid.h"
85
#include "RenderGrid.h"
86
86
87
#if ENABLE(DASHBOARD_SUPPORT)
88
#include "DashboardRegion.h"
89
#endif
90
91
namespace WebCore {
87
namespace WebCore {
92
88
93
WTF_MAKE_ISO_ALLOCATED_IMPL(CSSComputedStyleDeclaration);
89
WTF_MAKE_ISO_ALLOCATED_IMPL(CSSComputedStyleDeclaration);
Lines 305-313 static const CSSPropertyID computedPrope Source/WebCore/css/CSSComputedStyleDeclaration.cpp_sec2
305
#if ENABLE(CURSOR_VISIBILITY)
301
#if ENABLE(CURSOR_VISIBILITY)
306
    CSSPropertyWebkitCursorVisibility,
302
    CSSPropertyWebkitCursorVisibility,
307
#endif
303
#endif
308
#if ENABLE(DASHBOARD_SUPPORT)
309
    CSSPropertyWebkitDashboardRegion,
310
#endif
311
    CSSPropertyAlignContent,
304
    CSSPropertyAlignContent,
312
    CSSPropertyAlignItems,
305
    CSSPropertyAlignItems,
313
    CSSPropertyAlignSelf,
306
    CSSPropertyAlignSelf,
Lines 3559-3596 RefPtr<CSSValue> ComputedStyleExtractor: Source/WebCore/css/CSSComputedStyleDeclaration.cpp_sec3
3559
            if (style.boxSizing() == BoxSizing::ContentBox)
3552
            if (style.boxSizing() == BoxSizing::ContentBox)
3560
                return cssValuePool.createIdentifierValue(CSSValueContentBox);
3553
                return cssValuePool.createIdentifierValue(CSSValueContentBox);
3561
            return cssValuePool.createIdentifierValue(CSSValueBorderBox);
3554
            return cssValuePool.createIdentifierValue(CSSValueBorderBox);
3562
#if ENABLE(DASHBOARD_SUPPORT)
3563
        case CSSPropertyWebkitDashboardRegion:
3564
        {
3565
            const Vector<StyleDashboardRegion>& regions = style.dashboardRegions();
3566
            unsigned count = regions.size();
3567
            if (count == 1 && regions[0].type == StyleDashboardRegion::None)
3568
                return cssValuePool.createIdentifierValue(CSSValueNone);
3569
3570
            RefPtr<DashboardRegion> firstRegion;
3571
            DashboardRegion* previousRegion = nullptr;
3572
            for (unsigned i = 0; i < count; i++) {
3573
                auto region = DashboardRegion::create();
3574
                StyleDashboardRegion styleRegion = regions[i];
3575
3576
                region->m_label = styleRegion.label;
3577
                LengthBox offset = styleRegion.offset;
3578
                region->setTop(zoomAdjustedPixelValue(offset.top().value(), style));
3579
                region->setRight(zoomAdjustedPixelValue(offset.right().value(), style));
3580
                region->setBottom(zoomAdjustedPixelValue(offset.bottom().value(), style));
3581
                region->setLeft(zoomAdjustedPixelValue(offset.left().value(), style));
3582
                region->m_isRectangle = (styleRegion.type == StyleDashboardRegion::Rectangle);
3583
                region->m_isCircle = (styleRegion.type == StyleDashboardRegion::Circle);
3584
3585
                if (previousRegion)
3586
                    previousRegion->m_next = region.copyRef();
3587
                else
3588
                    firstRegion = region.copyRef();
3589
                previousRegion = region.ptr();
3590
            }
3591
            return cssValuePool.createValue(WTFMove(firstRegion));
3592
        }
3593
#endif
3594
        case CSSPropertyAnimationDelay:
3555
        case CSSPropertyAnimationDelay:
3595
            return delayValue(style.animations());
3556
            return delayValue(style.animations());
3596
        case CSSPropertyAnimationDirection: {
3557
        case CSSPropertyAnimationDirection: {
- Source/WebCore/css/CSSPrimitiveValue.cpp -66 lines
Lines 45-55 Source/WebCore/css/CSSPrimitiveValue.cpp_sec1
45
#include <wtf/text/StringBuilder.h>
45
#include <wtf/text/StringBuilder.h>
46
#include <wtf/text/StringConcatenateNumbers.h>
46
#include <wtf/text/StringConcatenateNumbers.h>
47
47
48
#if ENABLE(DASHBOARD_SUPPORT)
49
#include "DashboardRegion.h"
50
#endif
51
52
53
namespace WebCore {
48
namespace WebCore {
54
49
55
static inline bool isValidCSSUnitTypeForDoubleConversion(CSSPrimitiveValue::UnitType unitType)
50
static inline bool isValidCSSUnitTypeForDoubleConversion(CSSPrimitiveValue::UnitType unitType)
Lines 110-118 static inline bool isValidCSSUnitTypeFor Source/WebCore/css/CSSPrimitiveValue.cpp_sec2
110
    case CSSPrimitiveValue::CSS_UNKNOWN:
105
    case CSSPrimitiveValue::CSS_UNKNOWN:
111
    case CSSPrimitiveValue::CSS_URI:
106
    case CSSPrimitiveValue::CSS_URI:
112
    case CSSPrimitiveValue::CSS_VALUE_ID:
107
    case CSSPrimitiveValue::CSS_VALUE_ID:
113
#if ENABLE(DASHBOARD_SUPPORT)
114
    case CSSPrimitiveValue::CSS_DASHBOARD_REGION:
115
#endif
116
        return false;
108
        return false;
117
    }
109
    }
118
110
Lines 175-183 static inline bool isStringType(CSSPrimi Source/WebCore/css/CSSPrimitiveValue.cpp_sec3
175
    case CSSPrimitiveValue::CSS_VMAX:
167
    case CSSPrimitiveValue::CSS_VMAX:
176
    case CSSPrimitiveValue::CSS_VMIN:
168
    case CSSPrimitiveValue::CSS_VMIN:
177
    case CSSPrimitiveValue::CSS_VW:
169
    case CSSPrimitiveValue::CSS_VW:
178
#if ENABLE(DASHBOARD_SUPPORT)
179
    case CSSPrimitiveValue::CSS_DASHBOARD_REGION:
180
#endif
181
        return false;
170
        return false;
182
    }
171
    }
183
172
Lines 437-451 void CSSPrimitiveValue::init(Ref<Quad>&& Source/WebCore/css/CSSPrimitiveValue.cpp_sec4
437
    m_value.quad = &quad.leakRef();
426
    m_value.quad = &quad.leakRef();
438
}
427
}
439
428
440
#if ENABLE(DASHBOARD_SUPPORT)
441
void CSSPrimitiveValue::init(RefPtr<DashboardRegion>&& r)
442
{
443
    m_primitiveUnitType = CSS_DASHBOARD_REGION;
444
    m_hasCachedCSSText = false;
445
    m_value.region = r.leakRef();
446
}
447
#endif
448
449
void CSSPrimitiveValue::init(Ref<Pair>&& p)
429
void CSSPrimitiveValue::init(Ref<Pair>&& p)
450
{
430
{
451
    m_primitiveUnitType = CSS_PAIR;
431
    m_primitiveUnitType = CSS_PAIR;
Lines 496-507 void CSSPrimitiveValue::cleanup() Source/WebCore/css/CSSPrimitiveValue.cpp_sec5
496
    case CSS_PAIR:
476
    case CSS_PAIR:
497
        m_value.pair->deref();
477
        m_value.pair->deref();
498
        break;
478
        break;
499
#if ENABLE(DASHBOARD_SUPPORT)
500
    case CSS_DASHBOARD_REGION:
501
        if (m_value.region)
502
            m_value.region->deref();
503
        break;
504
#endif
505
    case CSS_CALC:
479
    case CSS_CALC:
506
        m_value.calc->deref();
480
        m_value.calc->deref();
507
        break;
481
        break;
Lines 1045-1086 ALWAYS_INLINE String CSSPrimitiveValue:: Source/WebCore/css/CSSPrimitiveValue.cpp_sec6
1045
        return color().cssText();
1019
        return color().cssText();
1046
    case CSS_PAIR:
1020
    case CSS_PAIR:
1047
        return pairValue()->cssText();
1021
        return pairValue()->cssText();
1048
#if ENABLE(DASHBOARD_SUPPORT)
1049
    case CSS_DASHBOARD_REGION: {
1050
        StringBuilder result;
1051
        for (DashboardRegion* region = dashboardRegionValue(); region; region = region->m_next.get()) {
1052
            if (!result.isEmpty())
1053
                result.append(' ');
1054
            result.appendLiteral("dashboard-region(");
1055
            result.append(region->m_label);
1056
            if (region->m_isCircle)
1057
                result.appendLiteral(" circle");
1058
            else if (region->m_isRectangle)
1059
                result.appendLiteral(" rectangle");
1060
            else
1061
                break;
1062
            if (region->top()->m_primitiveUnitType == CSS_VALUE_ID && region->top()->valueID() == CSSValueInvalid) {
1063
                ASSERT(region->right()->m_primitiveUnitType == CSS_VALUE_ID);
1064
                ASSERT(region->bottom()->m_primitiveUnitType == CSS_VALUE_ID);
1065
                ASSERT(region->left()->m_primitiveUnitType == CSS_VALUE_ID);
1066
                ASSERT(region->right()->valueID() == CSSValueInvalid);
1067
                ASSERT(region->bottom()->valueID() == CSSValueInvalid);
1068
                ASSERT(region->left()->valueID() == CSSValueInvalid);
1069
            } else {
1070
                result.append(' ');
1071
                result.append(region->top()->cssText());
1072
                result.append(' ');
1073
                result.append(region->right()->cssText());
1074
                result.append(' ');
1075
                result.append(region->bottom()->cssText());
1076
                result.append(' ');
1077
                result.append(region->left()->cssText());
1078
            }
1079
            result.append(')');
1080
        }
1081
        return result.toString();
1082
    }
1083
#endif
1084
    case CSS_CALC:
1022
    case CSS_CALC:
1085
        return m_value.calc->cssText();
1023
        return m_value.calc->cssText();
1086
    case CSS_SHAPE:
1024
    case CSS_SHAPE:
Lines 1175-1184 bool CSSPrimitiveValue::equals(const CSS Source/WebCore/css/CSSPrimitiveValue.cpp_sec7
1175
        return color() == other.color();
1113
        return color() == other.color();
1176
    case CSS_PAIR:
1114
    case CSS_PAIR:
1177
        return m_value.pair && other.m_value.pair && m_value.pair->equals(*other.m_value.pair);
1115
        return m_value.pair && other.m_value.pair && m_value.pair->equals(*other.m_value.pair);
1178
#if ENABLE(DASHBOARD_SUPPORT)
1179
    case CSS_DASHBOARD_REGION:
1180
        return m_value.region && other.m_value.region && m_value.region->equals(*other.m_value.region);
1181
#endif
1182
    case CSS_CALC:
1116
    case CSS_CALC:
1183
        return m_value.calc && other.m_value.calc && m_value.calc->equals(*other.m_value.calc);
1117
        return m_value.calc && other.m_value.calc && m_value.calc->equals(*other.m_value.calc);
1184
    case CSS_SHAPE:
1118
    case CSS_SHAPE:
- Source/WebCore/css/CSSPrimitiveValue.h -13 lines
Lines 37-43 class CSSBasicShape; Source/WebCore/css/CSSPrimitiveValue.h_sec1
37
class CSSCalcValue;
37
class CSSCalcValue;
38
class CSSToLengthConversionData;
38
class CSSToLengthConversionData;
39
class Counter;
39
class Counter;
40
class DashboardRegion;
41
class DeprecatedCSSOMPrimitiveValue;
40
class DeprecatedCSSOMPrimitiveValue;
42
class Pair;
41
class Pair;
43
class Quad;
42
class Quad;
Lines 112-120 public: Source/WebCore/css/CSSPrimitiveValue.h_sec2
112
        CSS_DPCM = 32,
111
        CSS_DPCM = 32,
113
        CSS_FR = 33,
112
        CSS_FR = 33,
114
        CSS_PAIR = 100, // We envision this being exposed as a means of getting computed style values for pairs (border-spacing/radius, background-position, etc.)
113
        CSS_PAIR = 100, // We envision this being exposed as a means of getting computed style values for pairs (border-spacing/radius, background-position, etc.)
115
#if ENABLE(DASHBOARD_SUPPORT)
116
        CSS_DASHBOARD_REGION = 101, // FIXME: Dashboard region should not be a primitive value.
117
#endif
118
        CSS_UNICODE_RANGE = 102,
114
        CSS_UNICODE_RANGE = 102,
119
115
120
        // These are from CSS3 Values and Units, but that isn't a finished standard yet
116
        // These are from CSS3 Values and Units, but that isn't a finished standard yet
Lines 268-277 public: Source/WebCore/css/CSSPrimitiveValue.h_sec3
268
    CSSBasicShape* shapeValue() const { return m_primitiveUnitType != CSS_SHAPE ? nullptr : m_value.shape; }
264
    CSSBasicShape* shapeValue() const { return m_primitiveUnitType != CSS_SHAPE ? nullptr : m_value.shape; }
269
    CSSValueID valueID() const { return m_primitiveUnitType == CSS_VALUE_ID ? m_value.valueID : CSSValueInvalid; }
265
    CSSValueID valueID() const { return m_primitiveUnitType == CSS_VALUE_ID ? m_value.valueID : CSSValueInvalid; }
270
266
271
#if ENABLE(DASHBOARD_SUPPORT)
272
    DashboardRegion* dashboardRegionValue() const { return m_primitiveUnitType != CSS_DASHBOARD_REGION ? nullptr : m_value.region; }
273
#endif
274
275
    template<typename T> inline operator T() const; // Defined in CSSPrimitiveValueMappings.h
267
    template<typename T> inline operator T() const; // Defined in CSSPrimitiveValueMappings.h
276
268
277
    String customCSSText() const;
269
    String customCSSText() const;
Lines 321-330 private: Source/WebCore/css/CSSPrimitiveValue.h_sec4
321
    void init(Ref<Quad>&&);
313
    void init(Ref<Quad>&&);
322
    void init(Ref<Rect>&&);
314
    void init(Ref<Rect>&&);
323
315
324
#if ENABLE(DASHBOARD_SUPPORT)
325
    void init(RefPtr<DashboardRegion>&&); // FIXME: Dashboard region should not be a primitive value.
326
#endif
327
328
    Optional<double> doubleValueInternal(UnitType targetUnitType) const;
316
    Optional<double> doubleValueInternal(UnitType targetUnitType) const;
329
317
330
    double computeLengthDouble(const CSSToLengthConversionData&) const;
318
    double computeLengthDouble(const CSSToLengthConversionData&) const;
Lines 342-348 private: Source/WebCore/css/CSSPrimitiveValue.h_sec5
342
        Quad* quad;
330
        Quad* quad;
343
        const Color* color;
331
        const Color* color;
344
        Pair* pair;
332
        Pair* pair;
345
        DashboardRegion* region;
346
        CSSBasicShape* shape;
333
        CSSBasicShape* shape;
347
        CSSCalcValue* calc;
334
        CSSCalcValue* calc;
348
        const CSSFontFamily* fontFamily;
335
        const CSSFontFamily* fontFamily;
- Source/WebCore/css/CSSProperties.json -8 lines
Lines 6886-6899 Source/WebCore/css/CSSProperties.json_sec1
6886
            },
6886
            },
6887
            "status": "non-standard"
6887
            "status": "non-standard"
6888
        },
6888
        },
6889
        "-webkit-dashboard-region": {
6890
            "codegen-properties": {
6891
                "name-for-methods": "DashboardRegions",
6892
                "custom": "Value",
6893
                "enable-if": "ENABLE_DASHBOARD_SUPPORT"
6894
            },
6895
            "status": "non-standard"
6896
        },
6897
        "-webkit-overflow-scrolling": {
6889
        "-webkit-overflow-scrolling": {
6898
            "inherited": true,
6890
            "inherited": true,
6899
            "values": [
6891
            "values": [
- Source/WebCore/css/CSSValueKeywords.in -1 lines
Lines 1223-1229 repeating-conic-gradient Source/WebCore/css/CSSValueKeywords.in_sec1
1223
-webkit-named-image
1223
-webkit-named-image
1224
filter
1224
filter
1225
-webkit-filter
1225
-webkit-filter
1226
dashboard-region
1227
#if defined(ENABLE_CSS_PAINTING_API) && ENABLE_CSS_PAINTING_API
1226
#if defined(ENABLE_CSS_PAINTING_API) && ENABLE_CSS_PAINTING_API
1228
paint
1227
paint
1229
#endif
1228
#endif
- Source/WebCore/css/DashboardRegion.h -52 lines
Lines 1-51 Source/WebCore/css/DashboardRegion.h_sec1
1
/*
2
 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3
 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved.
4
 *
5
 * This library is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU Library General Public
7
 * License as published by the Free Software Foundation; either
8
 * version 2 of the License, or (at your option) any later version.
9
 *
10
 * This library is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
 * Library General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU Library General Public License
16
 * along with this library; see the file COPYING.LIB.  If not, write to
17
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
 * Boston, MA 02110-1301, USA.
19
 */
20
21
#pragma once
22
23
#if ENABLE(DASHBOARD_SUPPORT)
24
25
#include "Rect.h"
26
27
namespace WebCore {
28
29
class DashboardRegion final : public RectBase, public RefCounted<DashboardRegion> {
30
public:
31
    static Ref<DashboardRegion> create() { return adoptRef(*new DashboardRegion); }
32
    bool equals(const DashboardRegion& other) const
33
    {
34
        return m_label == other.m_label && m_geometryType == other.m_geometryType
35
            && m_isCircle == other.m_isCircle && m_isRectangle == other.m_isRectangle
36
            && m_next ? other.m_next && m_next->equals(*other.m_next) : !other.m_next;
37
    }
38
39
    RefPtr<DashboardRegion> m_next;
40
    String m_label;
41
    String m_geometryType;
42
    bool m_isCircle : 1;
43
    bool m_isRectangle : 1;
44
45
private:
46
    DashboardRegion() : m_isCircle(false), m_isRectangle(false) { }
47
};
48
49
} // namespace WebCore
50
51
#endif
52
native
- Source/WebCore/css/StyleBuilderCustom.h -52 lines
Lines 37-43 Source/WebCore/css/StyleBuilderCustom.h_sec1
37
#include "Counter.h"
37
#include "Counter.h"
38
#include "CounterContent.h"
38
#include "CounterContent.h"
39
#include "CursorList.h"
39
#include "CursorList.h"
40
#include "DashboardRegion.h"
41
#include "ElementAncestorIterator.h"
40
#include "ElementAncestorIterator.h"
42
#include "FontVariantBuilder.h"
41
#include "FontVariantBuilder.h"
43
#include "Frame.h"
42
#include "Frame.h"
Lines 129-137 public: Source/WebCore/css/StyleBuilderCustom.h_sec2
129
    static void applyValueVerticalAlign(StyleResolver&, CSSValue&);
128
    static void applyValueVerticalAlign(StyleResolver&, CSSValue&);
130
    static void applyInitialTextAlign(StyleResolver&);
129
    static void applyInitialTextAlign(StyleResolver&);
131
    static void applyValueTextAlign(StyleResolver&, CSSValue&);
130
    static void applyValueTextAlign(StyleResolver&, CSSValue&);
132
#if ENABLE(DASHBOARD_SUPPORT)
133
    static void applyValueWebkitDashboardRegion(StyleResolver&, CSSValue&);
134
#endif
135
    static void applyValueWebkitLocale(StyleResolver&, CSSValue&);
131
    static void applyValueWebkitLocale(StyleResolver&, CSSValue&);
136
    static void applyValueWebkitTextOrientation(StyleResolver&, CSSValue&);
132
    static void applyValueWebkitTextOrientation(StyleResolver&, CSSValue&);
137
#if ENABLE(TEXT_AUTOSIZING)
133
#if ENABLE(TEXT_AUTOSIZING)
Lines 328-381 inline void StyleBuilderCustom::applyVal Source/WebCore/css/StyleBuilderCustom.h_sec3
328
        styleResolver.style()->setVerticalAlignLength(primitiveValue.convertToLength<FixedIntegerConversion | PercentConversion | CalculatedConversion>(styleResolver.state().cssToLengthConversionData()));
324
        styleResolver.style()->setVerticalAlignLength(primitiveValue.convertToLength<FixedIntegerConversion | PercentConversion | CalculatedConversion>(styleResolver.state().cssToLengthConversionData()));
329
}
325
}
330
326
331
#if ENABLE(DASHBOARD_SUPPORT)
332
333
static Length convertToIntLength(const CSSPrimitiveValue* primitiveValue, const CSSToLengthConversionData& conversionData)
334
{
335
    return primitiveValue ? primitiveValue->convertToLength<FixedIntegerConversion | PercentConversion | CalculatedConversion>(conversionData) : Length(Undefined);
336
}
337
338
inline void StyleBuilderCustom::applyValueWebkitDashboardRegion(StyleResolver& styleResolver, CSSValue& value)
339
{
340
    auto& primitiveValue = downcast<CSSPrimitiveValue>(value);
341
    if (primitiveValue.valueID() == CSSValueNone) {
342
        styleResolver.style()->setDashboardRegions(RenderStyle::noneDashboardRegions());
343
        return;
344
    }
345
346
    auto* region = primitiveValue.dashboardRegionValue();
347
    if (!region)
348
        return;
349
350
    auto* first = region;
351
    while (region) {
352
        Length top = convertToIntLength(region->top(), styleResolver.state().cssToLengthConversionData().copyWithAdjustedZoom(1.0f));
353
        Length right = convertToIntLength(region->right(), styleResolver.state().cssToLengthConversionData().copyWithAdjustedZoom(1.0f));
354
        Length bottom = convertToIntLength(region->bottom(), styleResolver.state().cssToLengthConversionData().copyWithAdjustedZoom(1.0f));
355
        Length left = convertToIntLength(region->left(), styleResolver.state().cssToLengthConversionData().copyWithAdjustedZoom(1.0f));
356
357
        if (top.isUndefined())
358
            top = Length();
359
        if (right.isUndefined())
360
            right = Length();
361
        if (bottom.isUndefined())
362
            bottom = Length();
363
        if (left.isUndefined())
364
            left = Length();
365
366
        if (region->m_isCircle)
367
            styleResolver.style()->setDashboardRegion(StyleDashboardRegion::Circle, region->m_label, WTFMove(top), WTFMove(right), WTFMove(bottom), WTFMove(left), region != first);
368
        else if (region->m_isRectangle)
369
            styleResolver.style()->setDashboardRegion(StyleDashboardRegion::Rectangle, region->m_label, WTFMove(top), WTFMove(right), WTFMove(bottom), WTFMove(left), region != first);
370
371
        region = region->m_next.get();
372
    }
373
374
    styleResolver.document().setHasAnnotatedRegions(true);
375
}
376
377
#endif // ENABLE(DASHBOARD_SUPPORT)
378
379
#if ENABLE(CSS_IMAGE_RESOLUTION)
327
#if ENABLE(CSS_IMAGE_RESOLUTION)
380
328
381
inline void StyleBuilderCustom::applyInheritImageResolution(StyleResolver& styleResolver)
329
inline void StyleBuilderCustom::applyInheritImageResolution(StyleResolver& styleResolver)
- Source/WebCore/css/StyleResolver.cpp -7 lines
Lines 113-125 Source/WebCore/css/StyleResolver.cpp_sec1
113
#include <wtf/Vector.h>
113
#include <wtf/Vector.h>
114
#include <wtf/text/AtomicStringHash.h>
114
#include <wtf/text/AtomicStringHash.h>
115
115
116
117
#if ENABLE(DASHBOARD_SUPPORT)
118
#endif
119
120
#if ENABLE(VIDEO_TRACK)
121
#endif
122
123
namespace WebCore {
116
namespace WebCore {
124
117
125
using namespace HTMLNames;
118
using namespace HTMLNames;
- Source/WebCore/css/parser/CSSPropertyParser.cpp -104 lines
Lines 63-71 Source/WebCore/css/parser/CSSPropertyParser.cpp_sec1
63
#include "CSSVariableParser.h"
63
#include "CSSVariableParser.h"
64
#include "CSSVariableReferenceValue.h"
64
#include "CSSVariableReferenceValue.h"
65
#include "Counter.h"
65
#include "Counter.h"
66
#if ENABLE(DASHBOARD_SUPPORT)
67
#include "DashboardRegion.h"
68
#endif
69
#include "FontFace.h"
66
#include "FontFace.h"
70
#include "HashTools.h"
67
#include "HashTools.h"
71
// FIXME-NEWPARSER: Replace Pair and Rect with actual CSSValue subclasses (CSSValuePair and CSSQuadValue).
68
// FIXME-NEWPARSER: Replace Pair and Rect with actual CSSValue subclasses (CSSValuePair and CSSQuadValue).
Lines 3792-3894 static RefPtr<CSSValue> consumeColorSche Source/WebCore/css/parser/CSSPropertyParser.cpp_sec2
3792
3789
3793
#endif
3790
#endif
3794
3791
3795
#if ENABLE(DASHBOARD_SUPPORT)
3796
3797
static RefPtr<CSSValue> consumeWebkitDashboardRegion(CSSParserTokenRange& range, CSSParserMode mode)
3798
{
3799
    if (range.atEnd())
3800
        return nullptr;
3801
    
3802
    if (range.peek().id() == CSSValueNone)
3803
        return consumeIdent(range);
3804
    
3805
    auto firstRegion = DashboardRegion::create();
3806
    DashboardRegion* region = nullptr;
3807
    
3808
    bool requireCommas = false;
3809
    
3810
    while (!range.atEnd()) {
3811
        if (!region)
3812
            region = firstRegion.ptr();
3813
        else {
3814
            auto nextRegion = DashboardRegion::create();
3815
            region->m_next = nextRegion.copyRef();
3816
            region = nextRegion.ptr();
3817
        }
3818
        
3819
        if (range.peek().functionId() != CSSValueDashboardRegion)
3820
            return nullptr;
3821
        
3822
        CSSParserTokenRange rangeCopy = range;
3823
        CSSParserTokenRange args = consumeFunction(rangeCopy);
3824
        if (rangeCopy.end() == args.end())
3825
            return nullptr; // No ) was found. Be strict about this, since tests are.
3826
3827
        // First arg is a label.
3828
        if (args.peek().type() != IdentToken)
3829
            return nullptr;
3830
        region->m_label = args.consumeIncludingWhitespace().value().toString();
3831
        
3832
        // Comma is optional, so don't fail if we can't consume one.
3833
        requireCommas = consumeCommaIncludingWhitespace(args);
3834
3835
        // Second arg is a type.
3836
        if (args.peek().type() != IdentToken)
3837
            return nullptr;
3838
        region->m_geometryType = args.consumeIncludingWhitespace().value().toString();
3839
        if (equalLettersIgnoringASCIICase(region->m_geometryType, "circle"))
3840
            region->m_isCircle = true;
3841
        else if (equalLettersIgnoringASCIICase(region->m_geometryType, "rectangle"))
3842
            region->m_isRectangle = true;
3843
        else
3844
            return nullptr;
3845
        
3846
        if (args.atEnd()) {
3847
            // This originally used CSSValueInvalid by accident. It might be more logical to use something else.
3848
            RefPtr<CSSPrimitiveValue> amount = CSSValuePool::singleton().createIdentifierValue(CSSValueInvalid);
3849
            region->setTop(amount.copyRef());
3850
            region->setRight(amount.copyRef());
3851
            region->setBottom(amount.copyRef());
3852
            region->setLeft(WTFMove(amount));
3853
            range = rangeCopy;
3854
            continue;
3855
        }
3856
        
3857
        // Next four arguments must be offset numbers or auto.
3858
        for (int i = 0; i < 4; ++i) {
3859
            if (args.atEnd() || (requireCommas && !consumeCommaIncludingWhitespace(args)))
3860
                return nullptr;
3861
3862
            if (args.atEnd())
3863
                return nullptr;
3864
            
3865
            RefPtr<CSSPrimitiveValue> amount;
3866
            if (args.peek().id() == CSSValueAuto)
3867
                amount = consumeIdent(args);
3868
            else
3869
                amount = consumeLength(args, mode, ValueRangeAll);
3870
        
3871
            if (!i)
3872
                region->setTop(WTFMove(amount));
3873
            else if (i == 1)
3874
                region->setRight(WTFMove(amount));
3875
            else if (i == 2)
3876
                region->setBottom(WTFMove(amount));
3877
            else
3878
                region->setLeft(WTFMove(amount));
3879
        }
3880
        
3881
        if (!args.atEnd())
3882
            return nullptr;
3883
        
3884
        range = rangeCopy;
3885
    }
3886
    
3887
    return CSSValuePool::singleton().createValue(RefPtr<DashboardRegion>(WTFMove(firstRegion)));
3888
}
3889
    
3890
#endif
3891
3892
RefPtr<CSSValue> CSSPropertyParser::parseSingleValue(CSSPropertyID property, CSSPropertyID currentShorthand)
3792
RefPtr<CSSValue> CSSPropertyParser::parseSingleValue(CSSPropertyID property, CSSPropertyID currentShorthand)
3893
{
3793
{
3894
    if (CSSParserFastPaths::isKeywordPropertyID(property)) {
3794
    if (CSSParserFastPaths::isKeywordPropertyID(property)) {
Lines 4345-4354 RefPtr<CSSValue> CSSPropertyParser::pars Source/WebCore/css/parser/CSSPropertyParser.cpp_sec3
4345
            return nullptr;
4245
            return nullptr;
4346
        return consumeColorScheme(m_range);
4246
        return consumeColorScheme(m_range);
4347
#endif
4247
#endif
4348
#if ENABLE(DASHBOARD_SUPPORT)
4349
    case CSSPropertyWebkitDashboardRegion:
4350
        return consumeWebkitDashboardRegion(m_range, m_context.mode);
4351
#endif
4352
    default:
4248
    default:
4353
        return nullptr;
4249
        return nullptr;
4354
    }
4250
    }
- Source/WebCore/dom/DataTransfer.cpp -8 / +1 lines
Lines 485-498 Ref<DataTransfer> DataTransfer::createFo Source/WebCore/dom/DataTransfer.cpp_sec1
485
485
486
Ref<DataTransfer> DataTransfer::createForUpdatingDropTarget(Document& document, std::unique_ptr<Pasteboard>&& pasteboard, DragOperation sourceOperation, bool draggingFiles)
486
Ref<DataTransfer> DataTransfer::createForUpdatingDropTarget(Document& document, std::unique_ptr<Pasteboard>&& pasteboard, DragOperation sourceOperation, bool draggingFiles)
487
{
487
{
488
    auto mode = DataTransfer::StoreMode::Protected;
488
    auto dataTransfer = adoptRef(*new DataTransfer(DataTransfer::StoreMode::Protected, WTFMove(pasteboard), draggingFiles ? Type::DragAndDropFiles : Type::DragAndDropData));
489
#if ENABLE(DASHBOARD_SUPPORT)
490
    if (document.settings().usesDashboardBackwardCompatibilityMode() && document.securityOrigin().isLocal())
491
        mode = DataTransfer::StoreMode::Readonly;
492
#else
493
    UNUSED_PARAM(document);
494
#endif
495
    auto dataTransfer = adoptRef(*new DataTransfer(mode, WTFMove(pasteboard), draggingFiles ? Type::DragAndDropFiles : Type::DragAndDropData));
496
    dataTransfer->setSourceOperation(sourceOperation);
489
    dataTransfer->setSourceOperation(sourceOperation);
497
    dataTransfer->m_originIdentifier = document.originIdentifierForPasteboard();
490
    dataTransfer->m_originIdentifier = document.originIdentifierForPasteboard();
498
    return dataTransfer;
491
    return dataTransfer;
- Source/WebCore/dom/Document.cpp -57 / +1 lines
Lines 4052-4099 void Document::elementInActiveChainDidDe Source/WebCore/dom/Document.cpp_sec1
4052
        m_activeElement = m_activeElement->parentElement();
4052
        m_activeElement = m_activeElement->parentElement();
4053
}
4053
}
4054
4054
4055
#if ENABLE(DASHBOARD_SUPPORT)
4055
void Document::invalidateRenderingDependentRegions()
4056
const Vector<AnnotatedRegionValue>& Document::annotatedRegions() const
4057
{
4056
{
4058
    return m_annotatedRegions;
4059
}
4060
4061
void Document::setAnnotatedRegions(const Vector<AnnotatedRegionValue>& regions)
4062
{
4063
    m_annotatedRegions = regions;
4064
    setAnnotatedRegionsDirty(false);
4065
}
4066
4067
void Document::updateAnnotatedRegions()
4068
{
4069
    if (!hasAnnotatedRegions())
4070
        return;
4071
4072
    Vector<AnnotatedRegionValue> newRegions;
4073
    renderBox()->collectAnnotatedRegions(newRegions); // FIXME.
4074
    if (newRegions == annotatedRegions())
4075
        return;
4076
4077
    setAnnotatedRegions(newRegions);
4078
    
4079
    if (Page* page = this->page())
4080
        page->chrome().client().annotatedRegionsChanged();
4081
}
4082
#endif
4083
4084
void Document::invalidateRenderingDependentRegions(AnnotationsAction annotationsAction)
4085
{
4086
#if ENABLE(DASHBOARD_SUPPORT)
4087
    // FIXME: we don't have a good invalidation/update policy for Dashboard regions. They get eagerly updated
4088
    // on forced layouts, and don't need to be.
4089
    if (annotationsAction == AnnotationsAction::Update)
4090
        updateAnnotatedRegions();
4091
    else
4092
        setAnnotatedRegionsDirty();
4093
#else
4094
    UNUSED_PARAM(annotationsAction);
4095
#endif
4096
4097
#if PLATFORM(IOS_FAMILY) && ENABLE(TOUCH_EVENTS)
4057
#if PLATFORM(IOS_FAMILY) && ENABLE(TOUCH_EVENTS)
4098
    setTouchEventRegionsNeedUpdate();
4058
    setTouchEventRegionsNeedUpdate();
4099
#endif
4059
#endif
Lines 4108-4129 void Document::invalidateRenderingDepend Source/WebCore/dom/Document.cpp_sec2
4108
#endif
4068
#endif
4109
}
4069
}
4110
4070
4111
void Document::invalidateScrollbarDependentRegions()
4112
{
4113
#if ENABLE(DASHBOARD_SUPPORT)
4114
    if (hasAnnotatedRegions())
4115
        setAnnotatedRegionsDirty();
4116
#endif
4117
}
4118
4119
void Document::updateZOrderDependentRegions()
4120
{
4121
#if ENABLE(DASHBOARD_SUPPORT)
4122
    if (annotatedRegionsDirty())
4123
        updateAnnotatedRegions();
4124
#endif
4125
}
4126
4127
bool Document::setFocusedElement(Element* element, FocusDirection direction, FocusRemovalEventsMode eventsMode)
4071
bool Document::setFocusedElement(Element* element, FocusDirection direction, FocusRemovalEventsMode eventsMode)
4128
{
4072
{
4129
    RefPtr<Element> newFocusedElement = element;
4073
    RefPtr<Element> newFocusedElement = element;
- Source/WebCore/dom/Document.h -27 / +1 lines
Lines 218-227 using PlatformDisplayID = uint32_t; Source/WebCore/dom/Document.h_sec1
218
class TransformSource;
218
class TransformSource;
219
#endif
219
#endif
220
220
221
#if ENABLE(DASHBOARD_SUPPORT)
222
struct AnnotatedRegionValue;
223
#endif
224
225
#if ENABLE(TOUCH_EVENTS) || ENABLE(IOS_TOUCH_EVENTS)
221
#if ENABLE(TOUCH_EVENTS) || ENABLE(IOS_TOUCH_EVENTS)
226
class Touch;
222
class Touch;
227
class TouchList;
223
class TouchList;
Lines 1129-1143 public: Source/WebCore/dom/Document.h_sec2
1129
1125
1130
    WEBCORE_EXPORT String displayStringModifiedByEncoding(const String&) const;
1126
    WEBCORE_EXPORT String displayStringModifiedByEncoding(const String&) const;
1131
1127
1132
#if ENABLE(DASHBOARD_SUPPORT)
1128
    void invalidateRenderingDependentRegions();
1133
    void setHasAnnotatedRegions(bool f) { m_hasAnnotatedRegions = f; }
1134
    WEBCORE_EXPORT const Vector<AnnotatedRegionValue>& annotatedRegions() const;
1135
#endif
1136
1137
    enum class AnnotationsAction { Invalidate, Update };
1138
    void invalidateRenderingDependentRegions(AnnotationsAction = AnnotationsAction::Invalidate);
1139
    void invalidateScrollbarDependentRegions();
1140
    void updateZOrderDependentRegions();
1141
1129
1142
    void removeAllEventListeners() final;
1130
    void removeAllEventListeners() final;
1143
1131
Lines 1613-1626 private: Source/WebCore/dom/Document.h_sec3
1613
1601
1614
    void wheelEventHandlersChanged();
1602
    void wheelEventHandlersChanged();
1615
1603
1616
#if ENABLE(DASHBOARD_SUPPORT)
1617
    void setAnnotatedRegionsDirty(bool f = true) { m_annotatedRegionsDirty = f; }
1618
    bool annotatedRegionsDirty() const { return m_annotatedRegionsDirty; }
1619
    bool hasAnnotatedRegions () const { return m_hasAnnotatedRegions; }
1620
    void setAnnotatedRegions(const Vector<AnnotatedRegionValue>&);
1621
    void updateAnnotatedRegions();
1622
#endif
1623
1624
    HttpEquivPolicy httpEquivPolicy() const;
1604
    HttpEquivPolicy httpEquivPolicy() const;
1625
    AXObjectCache* existingAXObjectCacheSlow() const;
1605
    AXObjectCache* existingAXObjectCacheSlow() const;
1626
1606
Lines 1770-1781 private: Source/WebCore/dom/Document.h_sec4
1770
    bool m_allowsColorSchemeTransformations { true };
1750
    bool m_allowsColorSchemeTransformations { true };
1771
#endif
1751
#endif
1772
1752
1773
#if ENABLE(DASHBOARD_SUPPORT)
1774
    Vector<AnnotatedRegionValue> m_annotatedRegions;
1775
    bool m_hasAnnotatedRegions { false };
1776
    bool m_annotatedRegionsDirty { false };
1777
#endif
1778
1779
    HashMap<String, RefPtr<HTMLCanvasElement>> m_cssCanvasElements;
1753
    HashMap<String, RefPtr<HTMLCanvasElement>> m_cssCanvasElements;
1780
1754
1781
    HashSet<Element*> m_documentSuspensionCallbackElements;
1755
    HashSet<Element*> m_documentSuspensionCallbackElements;
- Source/WebCore/html/HTMLCanvasElement.cpp -6 / +1 lines
Lines 329-339 CanvasRenderingContext2D* HTMLCanvasElem Source/WebCore/html/HTMLCanvasElement.cpp_sec1
329
    ASSERT_UNUSED(HTMLCanvasElement::is2dType(type), type);
329
    ASSERT_UNUSED(HTMLCanvasElement::is2dType(type), type);
330
    ASSERT(!m_context);
330
    ASSERT(!m_context);
331
331
332
    bool usesDashboardCompatibilityMode = false;
333
#if ENABLE(DASHBOARD_SUPPORT)
334
    usesDashboardCompatibilityMode = document().settings().usesDashboardBackwardCompatibilityMode();
335
#endif
336
337
    // Make sure we don't use more pixel memory than the system can support.
332
    // Make sure we don't use more pixel memory than the system can support.
338
    size_t requestedPixelMemory = 4 * width() * height();
333
    size_t requestedPixelMemory = 4 * width() * height();
339
    if (activePixelMemory + requestedPixelMemory > maxActivePixelMemory()) {
334
    if (activePixelMemory + requestedPixelMemory > maxActivePixelMemory()) {
Lines 345-351 CanvasRenderingContext2D* HTMLCanvasElem Source/WebCore/html/HTMLCanvasElement.cpp_sec2
345
        return nullptr;
340
        return nullptr;
346
    }
341
    }
347
342
348
    m_context = CanvasRenderingContext2D::create(*this, document().inQuirksMode(), usesDashboardCompatibilityMode);
343
    m_context = CanvasRenderingContext2D::create(*this, document().inQuirksMode());
349
344
350
    downcast<CanvasRenderingContext2D>(*m_context).setUsesDisplayListDrawing(m_usesDisplayListDrawing);
345
    downcast<CanvasRenderingContext2D>(*m_context).setUsesDisplayListDrawing(m_usesDisplayListDrawing);
351
    downcast<CanvasRenderingContext2D>(*m_context).setTracksDisplayListReplay(m_tracksDisplayListReplay);
346
    downcast<CanvasRenderingContext2D>(*m_context).setTracksDisplayListReplay(m_tracksDisplayListReplay);
- Source/WebCore/html/HTMLEmbedElement.cpp -6 lines
Lines 214-225 bool HTMLEmbedElement::rendererIsNeeded( Source/WebCore/html/HTMLEmbedElement.cpp_sec1
214
        }
214
        }
215
    }
215
    }
216
216
217
#if ENABLE(DASHBOARD_SUPPORT)
218
    // Workaround for <rdar://problem/6642221>.
219
    if (document().settings().usesDashboardBackwardCompatibilityMode())
220
        return true;
221
#endif
222
223
    return HTMLPlugInImageElement::rendererIsNeeded(style);
217
    return HTMLPlugInImageElement::rendererIsNeeded(style);
224
}
218
}
225
219
- Source/WebCore/html/HTMLImageLoader.cpp -5 lines
Lines 63-73 void HTMLImageLoader::dispatchLoadEvent( Source/WebCore/html/HTMLImageLoader.cpp_sec1
63
63
64
String HTMLImageLoader::sourceURI(const AtomicString& attr) const
64
String HTMLImageLoader::sourceURI(const AtomicString& attr) const
65
{
65
{
66
#if ENABLE(DASHBOARD_SUPPORT)
67
    if (element().document().settings().usesDashboardBackwardCompatibilityMode() && attr.length() > 7 && attr.startsWith("url(\"") && attr.endsWith("\")"))
68
        return attr.string().substring(5, attr.length() - 7);
69
#endif
70
71
    return stripLeadingAndTrailingHTMLSpaces(attr);
66
    return stripLeadingAndTrailingHTMLSpaces(attr);
72
}
67
}
73
68
- Source/WebCore/html/canvas/CanvasGradient.cpp -6 / +1 lines
Lines 49-61 ExceptionOr<void> CanvasGradient::addCol Source/WebCore/html/canvas/CanvasGradient.cpp_sec1
49
    // Passing null for canvas ensures that currentColor is treated as black,
49
    // Passing null for canvas ensures that currentColor is treated as black,
50
    // as required by the standard.
50
    // as required by the standard.
51
    Color color = parseColorOrCurrentColor(colorString, nullptr /*canvas*/);
51
    Color color = parseColorOrCurrentColor(colorString, nullptr /*canvas*/);
52
    if (!color.isValid()) {
52
    if (!color.isValid())
53
#if ENABLE(DASHBOARD_SUPPORT)
54
        if (m_dashboardCompatibilityMode)
55
            return { };
56
#endif
57
        return Exception { SyntaxError };
53
        return Exception { SyntaxError };
58
    }
59
54
60
    m_gradient->addColorStop(value, color);
55
    m_gradient->addColorStop(value, color);
61
    return { };
56
    return { };
- Source/WebCore/html/canvas/CanvasGradient.h -7 lines
Lines 47-64 public: Source/WebCore/html/canvas/CanvasGradient.h_sec1
47
47
48
    ExceptionOr<void> addColorStop(float value, const String& color);
48
    ExceptionOr<void> addColorStop(float value, const String& color);
49
49
50
#if ENABLE(DASHBOARD_SUPPORT)
51
    void setDashboardCompatibilityMode() { m_dashboardCompatibilityMode = true; }
52
#endif
53
54
private:
50
private:
55
    CanvasGradient(const FloatPoint& p0, const FloatPoint& p1);
51
    CanvasGradient(const FloatPoint& p0, const FloatPoint& p1);
56
    CanvasGradient(const FloatPoint& p0, float r0, const FloatPoint& p1, float r1);
52
    CanvasGradient(const FloatPoint& p0, float r0, const FloatPoint& p1, float r1);
57
53
58
    Ref<Gradient> m_gradient;
54
    Ref<Gradient> m_gradient;
59
#if ENABLE(DASHBOARD_SUPPORT)
60
    bool m_dashboardCompatibilityMode { false };
61
#endif
62
};
55
};
63
56
64
}
57
}
- Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp -4 / +4 lines
Lines 58-74 using namespace HTMLNames; Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp_sec1
58
58
59
WTF_MAKE_ISO_ALLOCATED_IMPL(CanvasRenderingContext2D);
59
WTF_MAKE_ISO_ALLOCATED_IMPL(CanvasRenderingContext2D);
60
60
61
std::unique_ptr<CanvasRenderingContext2D> CanvasRenderingContext2D::create(CanvasBase& canvas, bool usesCSSCompatibilityParseMode, bool usesDashboardCompatibilityMode)
61
std::unique_ptr<CanvasRenderingContext2D> CanvasRenderingContext2D::create(CanvasBase& canvas, bool usesCSSCompatibilityParseMode)
62
{
62
{
63
    auto renderingContext = std::unique_ptr<CanvasRenderingContext2D>(new CanvasRenderingContext2D(canvas, usesCSSCompatibilityParseMode, usesDashboardCompatibilityMode));
63
    auto renderingContext = std::unique_ptr<CanvasRenderingContext2D>(new CanvasRenderingContext2D(canvas, usesCSSCompatibilityParseMode));
64
64
65
    InspectorInstrumentation::didCreateCanvasRenderingContext(*renderingContext);
65
    InspectorInstrumentation::didCreateCanvasRenderingContext(*renderingContext);
66
66
67
    return renderingContext;
67
    return renderingContext;
68
}
68
}
69
69
70
CanvasRenderingContext2D::CanvasRenderingContext2D(CanvasBase& canvas, bool usesCSSCompatibilityParseMode, bool usesDashboardCompatibilityMode)
70
CanvasRenderingContext2D::CanvasRenderingContext2D(CanvasBase& canvas, bool usesCSSCompatibilityParseMode)
71
    : CanvasRenderingContext2DBase(canvas, usesCSSCompatibilityParseMode, usesDashboardCompatibilityMode)
71
    : CanvasRenderingContext2DBase(canvas, usesCSSCompatibilityParseMode)
72
{
72
{
73
}
73
}
74
74
- Source/WebCore/html/canvas/CanvasRenderingContext2D.h -4 / +2 lines
Lines 40-46 class TextMetrics; Source/WebCore/html/canvas/CanvasRenderingContext2D.h_sec1
40
class CanvasRenderingContext2D final : public CanvasRenderingContext2DBase {
40
class CanvasRenderingContext2D final : public CanvasRenderingContext2DBase {
41
    WTF_MAKE_ISO_ALLOCATED(CanvasRenderingContext2D);
41
    WTF_MAKE_ISO_ALLOCATED(CanvasRenderingContext2D);
42
public:
42
public:
43
    static std::unique_ptr<CanvasRenderingContext2D> create(CanvasBase&, bool usesCSSCompatibilityParseMode, bool usesDashboardCompatibilityMode);
43
    static std::unique_ptr<CanvasRenderingContext2D> create(CanvasBase&, bool usesCSSCompatibilityParseMode);
44
44
45
    virtual ~CanvasRenderingContext2D();
45
    virtual ~CanvasRenderingContext2D();
46
46
Lines 70-76 public: Source/WebCore/html/canvas/CanvasRenderingContext2D.h_sec2
70
    bool is2d() const override { return true; }
70
    bool is2d() const override { return true; }
71
71
72
private:
72
private:
73
    CanvasRenderingContext2D(CanvasBase&, bool usesCSSCompatibilityParseMode, bool usesDashboardCompatibilityMode);
73
    CanvasRenderingContext2D(CanvasBase&, bool usesCSSCompatibilityParseMode);
74
74
75
    // The relationship between FontCascade and CanvasRenderingContext2D::FontProxy must hold certain invariants.
75
    // The relationship between FontCascade and CanvasRenderingContext2D::FontProxy must hold certain invariants.
76
    // Therefore, all font operations must pass through the State.
76
    // Therefore, all font operations must pass through the State.
Lines 80-87 private: Source/WebCore/html/canvas/CanvasRenderingContext2D.h_sec3
80
80
81
    void drawFocusIfNeededInternal(const Path&, Element&);
81
    void drawFocusIfNeededInternal(const Path&, Element&);
82
82
83
    void prepareGradientForDashboard(CanvasGradient& gradient) const;
84
85
    TextDirection toTextDirection(CanvasRenderingContext2DBase::Direction, const RenderStyle** computedStyle = nullptr) const;
83
    TextDirection toTextDirection(CanvasRenderingContext2DBase::Direction, const RenderStyle** computedStyle = nullptr) const;
86
84
87
    FloatPoint textOffset(float width, TextDirection);
85
    FloatPoint textOffset(float width, TextDirection);
- Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp -34 / +3 lines
Lines 137-153 private: Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp_sec1
137
    CanvasRenderingContext2DBase* m_canvasContext;
137
    CanvasRenderingContext2DBase* m_canvasContext;
138
};
138
};
139
139
140
CanvasRenderingContext2DBase::CanvasRenderingContext2DBase(CanvasBase& canvas, bool usesCSSCompatibilityParseMode, bool usesDashboardCompatibilityMode)
140
CanvasRenderingContext2DBase::CanvasRenderingContext2DBase(CanvasBase& canvas, bool usesCSSCompatibilityParseMode)
141
    : CanvasRenderingContext(canvas)
141
    : CanvasRenderingContext(canvas)
142
    , m_stateStack(1)
142
    , m_stateStack(1)
143
    , m_usesCSSCompatibilityParseMode(usesCSSCompatibilityParseMode)
143
    , m_usesCSSCompatibilityParseMode(usesCSSCompatibilityParseMode)
144
#if ENABLE(DASHBOARD_SUPPORT)
145
    , m_usesDashboardCompatibilityMode(usesDashboardCompatibilityMode)
146
#endif
147
{
144
{
148
#if !ENABLE(DASHBOARD_SUPPORT)
149
    ASSERT_UNUSED(usesDashboardCompatibilityMode, !usesDashboardCompatibilityMode);
150
#endif
151
}
145
}
152
146
153
void CanvasRenderingContext2DBase::unwindStateStack()
147
void CanvasRenderingContext2DBase::unwindStateStack()
Lines 1057-1075 static WindRule toWindRule(CanvasFillRul Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp_sec2
1057
void CanvasRenderingContext2DBase::fill(CanvasFillRule windingRule)
1051
void CanvasRenderingContext2DBase::fill(CanvasFillRule windingRule)
1058
{
1052
{
1059
    fillInternal(m_path, windingRule);
1053
    fillInternal(m_path, windingRule);
1060
    clearPathForDashboardBackwardCompatibilityMode();
1061
}
1054
}
1062
1055
1063
void CanvasRenderingContext2DBase::stroke()
1056
void CanvasRenderingContext2DBase::stroke()
1064
{
1057
{
1065
    strokeInternal(m_path);
1058
    strokeInternal(m_path);
1066
    clearPathForDashboardBackwardCompatibilityMode();
1067
}
1059
}
1068
1060
1069
void CanvasRenderingContext2DBase::clip(CanvasFillRule windingRule)
1061
void CanvasRenderingContext2DBase::clip(CanvasFillRule windingRule)
1070
{
1062
{
1071
    clipInternal(m_path, windingRule);
1063
    clipInternal(m_path, windingRule);
1072
    clearPathForDashboardBackwardCompatibilityMode();
1073
}
1064
}
1074
1065
1075
void CanvasRenderingContext2DBase::fill(Path2D& path, CanvasFillRule windingRule)
1066
void CanvasRenderingContext2DBase::fill(Path2D& path, CanvasFillRule windingRule)
Lines 1879-1894 template<class T> void CanvasRenderingCo Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp_sec3
1879
    compositeBuffer(*buffer, bufferRect, op);
1870
    compositeBuffer(*buffer, bufferRect, op);
1880
}
1871
}
1881
1872
1882
void CanvasRenderingContext2DBase::prepareGradientForDashboard(CanvasGradient& gradient) const
1883
{
1884
#if ENABLE(DASHBOARD_SUPPORT)
1885
    if (m_usesDashboardCompatibilityMode)
1886
        gradient.setDashboardCompatibilityMode();
1887
#else
1888
    UNUSED_PARAM(gradient);
1889
#endif
1890
}
1891
1892
static CanvasRenderingContext2DBase::Style toStyle(const CanvasStyle& style)
1873
static CanvasRenderingContext2DBase::Style toStyle(const CanvasStyle& style)
1893
{
1874
{
1894
    if (auto gradient = style.canvasGradient())
1875
    if (auto gradient = style.canvasGradient())
Lines 1931-1939 ExceptionOr<Ref<CanvasGradient>> CanvasR Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp_sec4
1931
    if (!std::isfinite(x0) || !std::isfinite(y0) || !std::isfinite(x1) || !std::isfinite(y1))
1912
    if (!std::isfinite(x0) || !std::isfinite(y0) || !std::isfinite(x1) || !std::isfinite(y1))
1932
        return Exception { NotSupportedError };
1913
        return Exception { NotSupportedError };
1933
1914
1934
    auto gradient = CanvasGradient::create(FloatPoint(x0, y0), FloatPoint(x1, y1));
1915
    return CanvasGradient::create(FloatPoint(x0, y0), FloatPoint(x1, y1));
1935
    prepareGradientForDashboard(gradient.get());
1936
    return gradient;
1937
}
1916
}
1938
1917
1939
ExceptionOr<Ref<CanvasGradient>> CanvasRenderingContext2DBase::createRadialGradient(float x0, float y0, float r0, float x1, float y1, float r1)
1918
ExceptionOr<Ref<CanvasGradient>> CanvasRenderingContext2DBase::createRadialGradient(float x0, float y0, float r0, float x1, float y1, float r1)
Lines 1944-1952 ExceptionOr<Ref<CanvasGradient>> CanvasR Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp_sec5
1944
    if (r0 < 0 || r1 < 0)
1923
    if (r0 < 0 || r1 < 0)
1945
        return Exception { IndexSizeError };
1924
        return Exception { IndexSizeError };
1946
1925
1947
    auto gradient = CanvasGradient::create(FloatPoint(x0, y0), r0, FloatPoint(x1, y1), r1);
1926
    return CanvasGradient::create(FloatPoint(x0, y0), r0, FloatPoint(x1, y1), r1);
1948
    prepareGradientForDashboard(gradient.get());
1949
    return gradient;
1950
}
1927
}
1951
1928
1952
ExceptionOr<RefPtr<CanvasPattern>> CanvasRenderingContext2DBase::createPattern(CanvasImageSource&& image, const String& repetition)
1929
ExceptionOr<RefPtr<CanvasPattern>> CanvasRenderingContext2DBase::createPattern(CanvasImageSource&& image, const String& repetition)
Lines 2370-2381 Ref<Path2D> CanvasRenderingContext2DBase Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp_sec6
2370
    return Path2D::create(m_path);
2347
    return Path2D::create(m_path);
2371
}
2348
}
2372
2349
2373
inline void CanvasRenderingContext2DBase::clearPathForDashboardBackwardCompatibilityMode()
2374
{
2375
#if ENABLE(DASHBOARD_SUPPORT)
2376
    if (m_usesDashboardCompatibilityMode)
2377
        m_path.clear();
2378
#endif
2379
}
2380
2381
} // namespace WebCore
2350
} // namespace WebCore
- Source/WebCore/html/canvas/CanvasRenderingContext2DBase.h -8 / +1 lines
Lines 80-86 using CanvasImageSource = Variant<RefPtr Source/WebCore/html/canvas/CanvasRenderingContext2DBase.h_sec1
80
class CanvasRenderingContext2DBase : public CanvasRenderingContext, public CanvasPath {
80
class CanvasRenderingContext2DBase : public CanvasRenderingContext, public CanvasPath {
81
    WTF_MAKE_ISO_ALLOCATED(CanvasRenderingContext2DBase);
81
    WTF_MAKE_ISO_ALLOCATED(CanvasRenderingContext2DBase);
82
public:
82
public:
83
    CanvasRenderingContext2DBase(CanvasBase&, bool usesCSSCompatibilityParseMode, bool usesDashboardCompatibilityMode);
83
    CanvasRenderingContext2DBase(CanvasBase&, bool usesCSSCompatibilityParseMode);
84
    virtual ~CanvasRenderingContext2DBase();
84
    virtual ~CanvasRenderingContext2DBase();
85
85
86
    float lineWidth() const;
86
    float lineWidth() const;
Lines 366-373 protected: Source/WebCore/html/canvas/CanvasRenderingContext2DBase.h_sec2
366
366
367
    template<class T> void fullCanvasCompositedDrawImage(T&, const FloatRect&, const FloatRect&, CompositeOperator);
367
    template<class T> void fullCanvasCompositedDrawImage(T&, const FloatRect&, const FloatRect&, CompositeOperator);
368
368
369
    void prepareGradientForDashboard(CanvasGradient&) const;
370
371
    ExceptionOr<RefPtr<ImageData>> getImageData(ImageBuffer::CoordinateSystem, float sx, float sy, float sw, float sh) const;
369
    ExceptionOr<RefPtr<ImageData>> getImageData(ImageBuffer::CoordinateSystem, float sx, float sy, float sw, float sh) const;
372
    void putImageData(ImageData&, ImageBuffer::CoordinateSystem, float dx, float dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight);
370
    void putImageData(ImageData&, ImageBuffer::CoordinateSystem, float dx, float dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight);
373
371
Lines 379-393 protected: Source/WebCore/html/canvas/CanvasRenderingContext2DBase.h_sec3
379
    PlatformLayer* platformLayer() const override;
377
    PlatformLayer* platformLayer() const override;
380
#endif
378
#endif
381
379
382
    void clearPathForDashboardBackwardCompatibilityMode();
383
384
    static const unsigned MaxSaveCount = 1024 * 16;
380
    static const unsigned MaxSaveCount = 1024 * 16;
385
    Vector<State, 1> m_stateStack;
381
    Vector<State, 1> m_stateStack;
386
    unsigned m_unrealizedSaveCount { 0 };
382
    unsigned m_unrealizedSaveCount { 0 };
387
    bool m_usesCSSCompatibilityParseMode;
383
    bool m_usesCSSCompatibilityParseMode;
388
#if ENABLE(DASHBOARD_SUPPORT)
389
    bool m_usesDashboardCompatibilityMode;
390
#endif
391
    bool m_usesDisplayListDrawing { false };
384
    bool m_usesDisplayListDrawing { false };
392
    bool m_tracksDisplayListReplay { false };
385
    bool m_tracksDisplayListReplay { false };
393
    mutable std::unique_ptr<struct DisplayListDrawingContext> m_recordingContext;
386
    mutable std::unique_ptr<struct DisplayListDrawingContext> m_recordingContext;
- Source/WebCore/html/canvas/OffscreenCanvasRenderingContext2D.cpp -1 / +1 lines
Lines 40-46 namespace WebCore { Source/WebCore/html/canvas/OffscreenCanvasRenderingContext2D.cpp_sec1
40
WTF_MAKE_ISO_ALLOCATED_IMPL(OffscreenCanvasRenderingContext2D);
40
WTF_MAKE_ISO_ALLOCATED_IMPL(OffscreenCanvasRenderingContext2D);
41
41
42
OffscreenCanvasRenderingContext2D::OffscreenCanvasRenderingContext2D(CanvasBase& canvas)
42
OffscreenCanvasRenderingContext2D::OffscreenCanvasRenderingContext2D(CanvasBase& canvas)
43
    : CanvasRenderingContext2DBase(canvas, false, false)
43
    : CanvasRenderingContext2DBase(canvas, false)
44
{
44
{
45
}
45
}
46
46
- Source/WebCore/html/canvas/PaintRenderingContext2D.cpp -1 / +1 lines
Lines 40-46 std::unique_ptr<PaintRenderingContext2D> Source/WebCore/html/canvas/PaintRenderingContext2D.cpp_sec1
40
}
40
}
41
41
42
PaintRenderingContext2D::PaintRenderingContext2D(CanvasBase& canvas)
42
PaintRenderingContext2D::PaintRenderingContext2D(CanvasBase& canvas)
43
    : CanvasRenderingContext2DBase(canvas, false, false)
43
    : CanvasRenderingContext2DBase(canvas, false)
44
{
44
{
45
}
45
}
46
46
- Source/WebCore/page/Chrome.cpp -6 lines
Lines 525-536 void Chrome::windowScreenDidChange(Platf Source/WebCore/page/Chrome.cpp_sec1
525
#endif
525
#endif
526
}
526
}
527
527
528
#if ENABLE(DASHBOARD_SUPPORT)
529
void ChromeClient::annotatedRegionsChanged()
530
{
531
}
532
#endif
533
534
bool ChromeClient::shouldReplaceWithGeneratedFileForUpload(const String&, String&)
528
bool ChromeClient::shouldReplaceWithGeneratedFileForUpload(const String&, String&)
535
{
529
{
536
    return false;
530
    return false;
- Source/WebCore/page/ChromeClient.h -4 lines
Lines 234-243 public: Source/WebCore/page/ChromeClient.h_sec1
234
    // the new cache.
234
    // the new cache.
235
    virtual void reachedApplicationCacheOriginQuota(SecurityOrigin&, int64_t totalSpaceNeeded) = 0;
235
    virtual void reachedApplicationCacheOriginQuota(SecurityOrigin&, int64_t totalSpaceNeeded) = 0;
236
236
237
#if ENABLE(DASHBOARD_SUPPORT)
238
    virtual void annotatedRegionsChanged();
239
#endif
240
241
    virtual bool shouldReplaceWithGeneratedFileForUpload(const String& path, String& generatedFilename);
237
    virtual bool shouldReplaceWithGeneratedFileForUpload(const String& path, String& generatedFilename);
242
    virtual String generateReplacementFile(const String& path);
238
    virtual String generateReplacementFile(const String& path);
243
239
- Source/WebCore/page/FrameView.cpp -4 / +1 lines
Lines 1276-1282 void FrameView::didLayout(WeakPtr<Render Source/WebCore/page/FrameView.cpp_sec1
1276
        cache->postNotification(layoutRoot.get(), AXObjectCache::AXLayoutComplete);
1276
        cache->postNotification(layoutRoot.get(), AXObjectCache::AXLayoutComplete);
1277
#endif
1277
#endif
1278
1278
1279
    frame().document()->invalidateRenderingDependentRegions(Document::AnnotationsAction::Update);
1279
    frame().document()->invalidateRenderingDependentRegions();
1280
1280
1281
    updateCanBlitOnScrollRecursively();
1281
    updateCanBlitOnScrollRecursively();
1282
1282
Lines 4107-4115 void FrameView::didPaintContents(Graphic Source/WebCore/page/FrameView.cpp_sec2
4107
    m_paintBehavior = paintingState.paintBehavior;
4107
    m_paintBehavior = paintingState.paintBehavior;
4108
    m_lastPaintTime = MonotonicTime::now();
4108
    m_lastPaintTime = MonotonicTime::now();
4109
4109
4110
    // Regions may have changed as a result of the visibility/z-index of element changing.
4111
    frame().document()->updateZOrderDependentRegions();
4112
4113
    if (paintingState.isTopLevelPainter)
4110
    if (paintingState.isTopLevelPainter)
4114
        sCurrentPaintTimeStamp = MonotonicTime();
4111
        sCurrentPaintTimeStamp = MonotonicTime();
4115
4112
- Source/WebCore/page/Settings.yaml -3 lines
Lines 115-123 javaScriptCanAccessClipboard: Source/WebCore/page/Settings.yaml_sec1
115
  initial: false
115
  initial: false
116
shouldPrintBackgrounds:
116
shouldPrintBackgrounds:
117
  initial: false
117
  initial: false
118
usesDashboardBackwardCompatibilityMode:
119
  initial: false
120
  conditional: DASHBOARD_SUPPORT
121
clipboardAccessPolicy:
118
clipboardAccessPolicy:
122
  type: ClipboardAccessPolicy
119
  type: ClipboardAccessPolicy
123
  initial: ClipboardAccessPolicy::RequiresUserGesture
120
  initial: ClipboardAccessPolicy::RequiresUserGesture
- Source/WebCore/page/mac/EventHandlerMac.mm -5 lines
Lines 752-762 bool EventHandler::tabsToAllFormControls Source/WebCore/page/mac/EventHandlerMac.mm_sec1
752
752
753
bool EventHandler::needsKeyboardEventDisambiguationQuirks() const
753
bool EventHandler::needsKeyboardEventDisambiguationQuirks() const
754
{
754
{
755
#if ENABLE(DASHBOARD_SUPPORT)
756
    if (m_frame.settings().usesDashboardBackwardCompatibilityMode())
757
        return true;
758
#endif
759
        
760
    if (m_frame.settings().needsKeyboardEventDisambiguationQuirks())
755
    if (m_frame.settings().needsKeyboardEventDisambiguationQuirks())
761
        return true;
756
        return true;
762
757
- Source/WebCore/rendering/RenderInline.cpp -47 lines
Lines 51-60 Source/WebCore/rendering/RenderInline.cpp_sec1
51
#include <wtf/IsoMallocInlines.h>
51
#include <wtf/IsoMallocInlines.h>
52
#include <wtf/SetForScope.h>
52
#include <wtf/SetForScope.h>
53
53
54
#if ENABLE(DASHBOARD_SUPPORT)
55
#include "Frame.h"
56
#endif
57
58
namespace WebCore {
54
namespace WebCore {
59
55
60
WTF_MAKE_ISO_ALLOCATED_IMPL(RenderInline);
56
WTF_MAKE_ISO_ALLOCATED_IMPL(RenderInline);
Lines 1394-1440 void RenderInline::paintOutlineForLine(G Source/WebCore/rendering/RenderInline.cpp_sec2
1394
    }
1390
    }
1395
}
1391
}
1396
1392
1397
#if ENABLE(DASHBOARD_SUPPORT)
1398
void RenderInline::addAnnotatedRegions(Vector<AnnotatedRegionValue>& regions)
1399
{
1400
    // Convert the style regions to absolute coordinates.
1401
    if (style().visibility() != Visibility::Visible)
1402
        return;
1403
1404
    const Vector<StyleDashboardRegion>& styleRegions = style().dashboardRegions();
1405
    unsigned i, count = styleRegions.size();
1406
    for (i = 0; i < count; i++) {
1407
        StyleDashboardRegion styleRegion = styleRegions[i];
1408
1409
        LayoutRect linesBoundingBox = this->linesBoundingBox();
1410
        LayoutUnit w = linesBoundingBox.width();
1411
        LayoutUnit h = linesBoundingBox.height();
1412
1413
        AnnotatedRegionValue region;
1414
        region.label = styleRegion.label;
1415
        region.bounds = LayoutRect(linesBoundingBox.x() + styleRegion.offset.left().value(),
1416
                                linesBoundingBox.y() + styleRegion.offset.top().value(),
1417
                                w - styleRegion.offset.left().value() - styleRegion.offset.right().value(),
1418
                                h - styleRegion.offset.top().value() - styleRegion.offset.bottom().value());
1419
        region.type = styleRegion.type;
1420
1421
        RenderObject* container = containingBlock();
1422
        if (!container)
1423
            container = this;
1424
1425
        region.clip = container->computeAbsoluteRepaintRect(region.bounds);
1426
        if (region.clip.height() < 0) {
1427
            region.clip.setHeight(0);
1428
            region.clip.setWidth(0);
1429
        }
1430
1431
        FloatPoint absPos = container->localToAbsolute();
1432
        region.bounds.setX(absPos.x() + region.bounds.x());
1433
        region.bounds.setY(absPos.y() + region.bounds.y());
1434
1435
        regions.append(region);
1436
    }
1437
}
1438
#endif
1439
1440
} // namespace WebCore
1393
} // namespace WebCore
- Source/WebCore/rendering/RenderInline.h -4 lines
Lines 151-160 private: Source/WebCore/rendering/RenderInline.h_sec1
151
151
152
    void imageChanged(WrappedImagePtr, const IntRect* = 0) final;
152
    void imageChanged(WrappedImagePtr, const IntRect* = 0) final;
153
153
154
#if ENABLE(DASHBOARD_SUPPORT)
155
    void addAnnotatedRegions(Vector<AnnotatedRegionValue>&) final;
156
#endif
157
158
    void paintOutlineForLine(GraphicsContext&, const LayoutPoint&, const LayoutRect& prevLine, const LayoutRect& thisLine, const LayoutRect& nextLine, const Color&);
154
    void paintOutlineForLine(GraphicsContext&, const LayoutPoint&, const LayoutRect& prevLine, const LayoutRect& thisLine, const LayoutRect& nextLine, const Color&);
159
155
160
    bool willChangeCreatesStackingContext() const
156
    bool willChangeCreatesStackingContext() const
- Source/WebCore/rendering/RenderLayer.cpp -6 / +1 lines
Lines 2522-2528 void RenderLayer::scrollTo(const ScrollP Source/WebCore/rendering/RenderLayer.cpp_sec1
2522
        }
2522
        }
2523
2523
2524
        // Update regions, scrolling may change the clip of a particular region.
2524
        // Update regions, scrolling may change the clip of a particular region.
2525
        renderer().document().invalidateRenderingDependentRegions(Document::AnnotationsAction::Update);
2525
        renderer().document().invalidateRenderingDependentRegions();
2526
        DebugPageOverlays::didLayout(renderer().frame());
2526
        DebugPageOverlays::didLayout(renderer().frame());
2527
    }
2527
    }
2528
2528
Lines 3339-3346 void RenderLayer::setHasHorizontalScroll Source/WebCore/rendering/RenderLayer.cpp_sec2
3339
        m_hBar->styleChanged();
3339
        m_hBar->styleChanged();
3340
    if (m_vBar)
3340
    if (m_vBar)
3341
        m_vBar->styleChanged();
3341
        m_vBar->styleChanged();
3342
3343
    renderer().document().invalidateScrollbarDependentRegions();
3344
}
3342
}
3345
3343
3346
void RenderLayer::setHasVerticalScrollbar(bool hasScrollbar)
3344
void RenderLayer::setHasVerticalScrollbar(bool hasScrollbar)
Lines 3366-3373 void RenderLayer::setHasVerticalScrollba Source/WebCore/rendering/RenderLayer.cpp_sec3
3366
        m_hBar->styleChanged();
3364
        m_hBar->styleChanged();
3367
    if (m_vBar)
3365
    if (m_vBar)
3368
        m_vBar->styleChanged();
3366
        m_vBar->styleChanged();
3369
3370
    renderer().document().invalidateScrollbarDependentRegions();
3371
}
3367
}
3372
3368
3373
ScrollableArea* RenderLayer::enclosingScrollableArea() const
3369
ScrollableArea* RenderLayer::enclosingScrollableArea() const
Lines 3638-3644 void RenderLayer::updateScrollbarsAfterL Source/WebCore/rendering/RenderLayer.cpp_sec4
3638
3634
3639
        updateSelfPaintingLayer();
3635
        updateSelfPaintingLayer();
3640
3636
3641
        renderer().document().invalidateScrollbarDependentRegions();
3642
        renderer().repaint();
3637
        renderer().repaint();
3643
3638
3644
        if (renderer().style().overflowX() == Overflow::Auto || renderer().style().overflowY() == Overflow::Auto) {
3639
        if (renderer().style().overflowX() == Overflow::Auto || renderer().style().overflowY() == Overflow::Auto) {
- Source/WebCore/rendering/RenderListBox.cpp -2 lines
Lines 953-960 void RenderListBox::setHasVerticalScroll Source/WebCore/rendering/RenderListBox.cpp_sec1
953
953
954
    if (m_vBar)
954
    if (m_vBar)
955
        m_vBar->styleChanged();
955
        m_vBar->styleChanged();
956
957
    document().invalidateScrollbarDependentRegions();
958
}
956
}
959
957
960
bool RenderListBox::scrolledToTop() const
958
bool RenderListBox::scrolledToTop() const
- Source/WebCore/rendering/RenderObject.cpp -49 lines
Lines 1614-1668 int RenderObject::innerLineHeight() cons Source/WebCore/rendering/RenderObject.cpp_sec1
1614
    return style().computedLineHeight();
1614
    return style().computedLineHeight();
1615
}
1615
}
1616
1616
1617
#if ENABLE(DASHBOARD_SUPPORT)
1618
void RenderObject::addAnnotatedRegions(Vector<AnnotatedRegionValue>& regions)
1619
{
1620
    // Convert the style regions to absolute coordinates.
1621
    if (style().visibility() != Visibility::Visible || !is<RenderBox>(*this))
1622
        return;
1623
    
1624
    auto& box = downcast<RenderBox>(*this);
1625
    FloatPoint absPos = localToAbsolute();
1626
1627
    const Vector<StyleDashboardRegion>& styleRegions = style().dashboardRegions();
1628
    for (const auto& styleRegion : styleRegions) {
1629
        LayoutUnit w = box.width();
1630
        LayoutUnit h = box.height();
1631
1632
        AnnotatedRegionValue region;
1633
        region.label = styleRegion.label;
1634
        region.bounds = LayoutRect(styleRegion.offset.left().value(),
1635
                                   styleRegion.offset.top().value(),
1636
                                   w - styleRegion.offset.left().value() - styleRegion.offset.right().value(),
1637
                                   h - styleRegion.offset.top().value() - styleRegion.offset.bottom().value());
1638
        region.type = styleRegion.type;
1639
1640
        region.clip = computeAbsoluteRepaintRect(region.bounds);
1641
        if (region.clip.height() < 0) {
1642
            region.clip.setHeight(0);
1643
            region.clip.setWidth(0);
1644
        }
1645
1646
        region.bounds.setX(absPos.x() + styleRegion.offset.left().value());
1647
        region.bounds.setY(absPos.y() + styleRegion.offset.top().value());
1648
1649
        regions.append(region);
1650
    }
1651
}
1652
1653
void RenderObject::collectAnnotatedRegions(Vector<AnnotatedRegionValue>& regions)
1654
{
1655
    // RenderTexts don't have their own style, they just use their parent's style,
1656
    // so we don't want to include them.
1657
    if (is<RenderText>(*this))
1658
        return;
1659
1660
    addAnnotatedRegions(regions);
1661
    for (RenderObject* current = downcast<RenderElement>(*this).firstChild(); current; current = current->nextSibling())
1662
        current->collectAnnotatedRegions(regions);
1663
}
1664
#endif
1665
1666
int RenderObject::caretMinOffset() const
1617
int RenderObject::caretMinOffset() const
1667
{
1618
{
1668
    return 0;
1619
    return 0;
- Source/WebCore/rendering/RenderObject.h -23 lines
Lines 85-108 enum class ShouldAllowCrossOriginScrolli Source/WebCore/rendering/RenderObject.h_sec1
85
85
86
struct ScrollRectToVisibleOptions;
86
struct ScrollRectToVisibleOptions;
87
87
88
#if ENABLE(DASHBOARD_SUPPORT)
89
struct AnnotatedRegionValue {
90
    bool operator==(const AnnotatedRegionValue& o) const
91
    {
92
        return type == o.type && bounds == o.bounds && clip == o.clip && label == o.label;
93
    }
94
    bool operator!=(const AnnotatedRegionValue& o) const
95
    {
96
        return !(*this == o);
97
    }
98
99
    LayoutRect bounds;
100
    String label;
101
    LayoutRect clip;
102
    int type;
103
};
104
#endif
105
106
// Base class for all rendering tree objects.
88
// Base class for all rendering tree objects.
107
class RenderObject : public CachedImageClient, public CanMakeWeakPtr<RenderObject> {
89
class RenderObject : public CachedImageClient, public CanMakeWeakPtr<RenderObject> {
108
    WTF_MAKE_ISO_ALLOCATED(RenderObject);
90
    WTF_MAKE_ISO_ALLOCATED(RenderObject);
Lines 569-579 public: Source/WebCore/rendering/RenderObject.h_sec2
569
    // repaint and do not need a relayout
551
    // repaint and do not need a relayout
570
    virtual void updateFromElement() { }
552
    virtual void updateFromElement() { }
571
553
572
#if ENABLE(DASHBOARD_SUPPORT)
573
    virtual void addAnnotatedRegions(Vector<AnnotatedRegionValue>&);
574
    void collectAnnotatedRegions(Vector<AnnotatedRegionValue>&);
575
#endif
576
577
    bool isComposited() const;
554
    bool isComposited() const;
578
555
579
    bool hitTest(const HitTestRequest&, HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestFilter = HitTestAll);
556
    bool hitTest(const HitTestRequest&, HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestFilter = HitTestAll);
- Source/WebCore/rendering/style/RenderStyle.cpp -38 lines
Lines 616-627 static bool rareNonInheritedDataChangeRe Source/WebCore/rendering/style/RenderStyle.cpp_sec1
616
        || first.gridItem != second.gridItem)
616
        || first.gridItem != second.gridItem)
617
        return true;
617
        return true;
618
618
619
#if ENABLE(DASHBOARD_SUPPORT)
620
    // If regions change, trigger a relayout to re-calc regions.
621
    if (first.dashboardRegions != second.dashboardRegions)
622
        return true;
623
#endif
624
625
    if (!arePointingToEqualData(first.willChange, second.willChange)) {
619
    if (!arePointingToEqualData(first.willChange, second.willChange)) {
626
        changedContextSensitiveProperties.add(StyleDifferenceContextSensitiveProperty::WillChange);
620
        changedContextSensitiveProperties.add(StyleDifferenceContextSensitiveProperty::WillChange);
627
        // Don't return; keep looking for another change
621
        // Don't return; keep looking for another change
Lines 1538-1564 const AtomicString& RenderStyle::textEmp Source/WebCore/rendering/style/RenderStyle.cpp_sec2
1538
    return nullAtom();
1532
    return nullAtom();
1539
}
1533
}
1540
1534
1541
#if ENABLE(DASHBOARD_SUPPORT)
1542
1543
const Vector<StyleDashboardRegion>& RenderStyle::initialDashboardRegions()
1544
{
1545
    static NeverDestroyed<Vector<StyleDashboardRegion>> emptyList;
1546
    return emptyList;
1547
}
1548
1549
const Vector<StyleDashboardRegion>& RenderStyle::noneDashboardRegions()
1550
{
1551
    static NeverDestroyed<Vector<StyleDashboardRegion>> noneList;
1552
    static bool noneListInitialized = false;
1553
    if (!noneListInitialized) {
1554
        noneList.get().append(StyleDashboardRegion { emptyString(), { }, StyleDashboardRegion::None });
1555
        noneListInitialized = true;
1556
    }
1557
    return noneList;
1558
}
1559
1560
#endif
1561
1562
void RenderStyle::adjustAnimations()
1535
void RenderStyle::adjustAnimations()
1563
{
1536
{
1564
    auto* animationList = m_rareNonInheritedData->animations.get();
1537
    auto* animationList = m_rareNonInheritedData->animations.get();
Lines 2403-2419 bool RenderStyle::shouldPlaceBlockDirect Source/WebCore/rendering/style/RenderStyle.cpp_sec3
2403
    return !isLeftToRightDirection() && isHorizontalWritingMode();
2376
    return !isLeftToRightDirection() && isHorizontalWritingMode();
2404
}
2377
}
2405
2378
2406
#if ENABLE(DASHBOARD_SUPPORT)
2407
2408
void RenderStyle::setDashboardRegion(int type, const String& label, Length&& top, Length&& right, Length&& bottom, Length&& left, bool append)
2409
{
2410
    if (!append)
2411
        m_rareNonInheritedData.access().dashboardRegions.clear();
2412
    m_rareNonInheritedData.access().dashboardRegions.append({ label, { WTFMove(top), WTFMove(right), WTFMove(bottom), WTFMove(left) }, type });
2413
}
2414
2415
#endif
2416
2417
Vector<PaintType, 3> RenderStyle::paintTypesForPaintOrder(PaintOrder order)
2379
Vector<PaintType, 3> RenderStyle::paintTypesForPaintOrder(PaintOrder order)
2418
{
2380
{
2419
    Vector<PaintType, 3> paintOrder;
2381
    Vector<PaintType, 3> paintOrder;
- Source/WebCore/rendering/style/RenderStyle.h -15 lines
Lines 77-86 Source/WebCore/rendering/style/RenderStyle.h_sec1
77
#include "StyleGridData.h"
77
#include "StyleGridData.h"
78
#include "StyleGridItemData.h"
78
#include "StyleGridItemData.h"
79
79
80
#if ENABLE(DASHBOARD_SUPPORT)
81
#include "StyleDashboardRegion.h"
82
#endif
83
84
#if ENABLE(TEXT_AUTOSIZING)
80
#if ENABLE(TEXT_AUTOSIZING)
85
#include "TextSizeAdjustment.h"
81
#include "TextSizeAdjustment.h"
86
#endif
82
#endif
Lines 834-845 public: Source/WebCore/rendering/style/RenderStyle.h_sec2
834
    void setMinHeight(Length&& length) { SET_VAR(m_boxData, m_minHeight, WTFMove(length)); }
830
    void setMinHeight(Length&& length) { SET_VAR(m_boxData, m_minHeight, WTFMove(length)); }
835
    void setMaxHeight(Length&& length) { SET_VAR(m_boxData, m_maxHeight, WTFMove(length)); }
831
    void setMaxHeight(Length&& length) { SET_VAR(m_boxData, m_maxHeight, WTFMove(length)); }
836
832
837
#if ENABLE(DASHBOARD_SUPPORT)
838
    const Vector<StyleDashboardRegion>& dashboardRegions() const { return m_rareNonInheritedData->dashboardRegions; }
839
    void setDashboardRegions(const Vector<StyleDashboardRegion>& regions) { SET_VAR(m_rareNonInheritedData, dashboardRegions, regions); }
840
    void setDashboardRegion(int type, const String& label, Length&& top, Length&& right, Length&& bottom, Length&& left, bool append);
841
#endif
842
843
    void resetBorder() { resetBorderImage(); resetBorderTop(); resetBorderRight(); resetBorderBottom(); resetBorderLeft(); resetBorderRadius(); }
833
    void resetBorder() { resetBorderImage(); resetBorderTop(); resetBorderRight(); resetBorderBottom(); resetBorderLeft(); resetBorderRadius(); }
844
    void resetBorderTop() { SET_VAR(m_surroundData, border.m_top, BorderValue()); }
834
    void resetBorderTop() { SET_VAR(m_surroundData, border.m_top, BorderValue()); }
845
    void resetBorderRight() { SET_VAR(m_surroundData, border.m_right, BorderValue()); }
835
    void resetBorderRight() { SET_VAR(m_surroundData, border.m_right, BorderValue()); }
Lines 1694-1704 public: Source/WebCore/rendering/style/RenderStyle.h_sec3
1694
    static bool initialUseTouchOverflowScrolling() { return false; }
1684
    static bool initialUseTouchOverflowScrolling() { return false; }
1695
#endif
1685
#endif
1696
1686
1697
#if ENABLE(DASHBOARD_SUPPORT)
1698
    static const Vector<StyleDashboardRegion>& initialDashboardRegions();
1699
    static const Vector<StyleDashboardRegion>& noneDashboardRegions();
1700
#endif
1701
1702
    static const FilterOperations& initialFilter() { static NeverDestroyed<FilterOperations> ops; return ops; }
1687
    static const FilterOperations& initialFilter() { static NeverDestroyed<FilterOperations> ops; return ops; }
1703
    static const FilterOperations& initialAppleColorFilter() { static NeverDestroyed<FilterOperations> ops; return ops; }
1688
    static const FilterOperations& initialAppleColorFilter() { static NeverDestroyed<FilterOperations> ops; return ops; }
1704
1689
- Source/WebCore/rendering/style/StyleDashboardRegion.h -61 lines
Lines 1-60 Source/WebCore/rendering/style/StyleDashboardRegion.h_sec1
1
/*
2
 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3
 *           (C) 2000 Antti Koivisto (koivisto@kde.org)
4
 *           (C) 2000 Dirk Mueller (mueller@kde.org)
5
 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
6
 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7
 *
8
 * This library is free software; you can redistribute it and/or
9
 * modify it under the terms of the GNU Library General Public
10
 * License as published by the Free Software Foundation; either
11
 * version 2 of the License, or (at your option) any later version.
12
 *
13
 * This library is distributed in the hope that it will be useful,
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16
 * Library General Public License for more details.
17
 *
18
 * You should have received a copy of the GNU Library General Public License
19
 * along with this library; see the file COPYING.LIB.  If not, write to
20
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21
 * Boston, MA 02110-1301, USA.
22
 *
23
 */
24
25
#pragma once
26
27
#if ENABLE(DASHBOARD_SUPPORT)
28
29
#include "LengthBox.h"
30
#include <wtf/text/WTFString.h>
31
32
namespace WebCore {
33
34
// Dashboard region attributes. Not inherited.
35
36
struct StyleDashboardRegion {
37
    String label;
38
    LengthBox offset;
39
    int type;
40
41
    enum {
42
        None,
43
        Circle,
44
        Rectangle
45
    };
46
47
    bool operator==(const StyleDashboardRegion& o) const
48
    {
49
        return type == o.type && offset == o.offset && label == o.label;
50
    }
51
52
    bool operator!=(const StyleDashboardRegion& o) const
53
    {
54
        return !(*this == o);
55
    }
56
};
57
58
} // namespace WebCore
59
60
#endif // ENABLE(DASHBOARD_SUPPORT)
61
native
- Source/WebCore/rendering/style/StyleRareNonInheritedData.cpp -3 lines
Lines 223-231 bool StyleRareNonInheritedData::operator Source/WebCore/rendering/style/StyleRareNonInheritedData.cpp_sec1
223
        && perspectiveOriginY == o.perspectiveOriginY
223
        && perspectiveOriginY == o.perspectiveOriginY
224
        && lineClamp == o.lineClamp
224
        && lineClamp == o.lineClamp
225
        && initialLetter == o.initialLetter
225
        && initialLetter == o.initialLetter
226
#if ENABLE(DASHBOARD_SUPPORT)
227
        && dashboardRegions == o.dashboardRegions
228
#endif
229
        && deprecatedFlexibleBox == o.deprecatedFlexibleBox
226
        && deprecatedFlexibleBox == o.deprecatedFlexibleBox
230
        && flexibleBox == o.flexibleBox
227
        && flexibleBox == o.flexibleBox
231
        && marquee == o.marquee
228
        && marquee == o.marquee
- Source/WebCore/rendering/style/StyleRareNonInheritedData.h -5 lines
Lines 60-66 class StyleScrollSnapPort; Source/WebCore/rendering/style/StyleRareNonInheritedData.h_sec1
60
class StyleTransformData;
60
class StyleTransformData;
61
61
62
struct LengthSize;
62
struct LengthSize;
63
struct StyleDashboardRegion;
64
63
65
// Page size type.
64
// Page size type.
66
// StyleRareNonInheritedData::pageSize is meaningful only when
65
// StyleRareNonInheritedData::pageSize is meaningful only when
Lines 107-116 public: Source/WebCore/rendering/style/StyleRareNonInheritedData.h_sec2
107
    
106
    
108
    IntSize initialLetter;
107
    IntSize initialLetter;
109
108
110
#if ENABLE(DASHBOARD_SUPPORT)
111
    Vector<StyleDashboardRegion> dashboardRegions;
112
#endif
113
114
    DataRef<StyleDeprecatedFlexibleBoxData> deprecatedFlexibleBox; // Flexible box properties
109
    DataRef<StyleDeprecatedFlexibleBoxData> deprecatedFlexibleBox; // Flexible box properties
115
    DataRef<StyleFlexibleBoxData> flexibleBox;
110
    DataRef<StyleFlexibleBoxData> flexibleBox;
116
    DataRef<StyleMarqueeData> marquee; // Marquee properties
111
    DataRef<StyleMarqueeData> marquee; // Marquee properties
- Source/WebCore/xml/XMLHttpRequest.cpp -34 / +4 lines
Lines 148-164 SecurityOrigin* XMLHttpRequest::security Source/WebCore/xml/XMLHttpRequest.cpp_sec1
148
    return scriptExecutionContext()->securityOrigin();
148
    return scriptExecutionContext()->securityOrigin();
149
}
149
}
150
150
151
#if ENABLE(DASHBOARD_SUPPORT)
152
153
bool XMLHttpRequest::usesDashboardBackwardCompatibilityMode() const
154
{
155
    if (scriptExecutionContext()->isWorkerGlobalScope())
156
        return false;
157
    return document()->settings().usesDashboardBackwardCompatibilityMode();
158
}
159
160
#endif
161
162
ExceptionOr<OwnedString> XMLHttpRequest::responseText()
151
ExceptionOr<OwnedString> XMLHttpRequest::responseText()
163
{
152
{
164
    if (responseType() != ResponseType::EmptyString && responseType() != ResponseType::Text)
153
    if (responseType() != ResponseType::EmptyString && responseType() != ResponseType::Text)
Lines 465-477 ExceptionOr<void> XMLHttpRequest::send(D Source/WebCore/xml/XMLHttpRequest.cpp_sec2
465
454
466
    if (m_method != "GET" && m_method != "HEAD") {
455
    if (m_method != "GET" && m_method != "HEAD") {
467
        if (!m_requestHeaders.contains(HTTPHeaderName::ContentType)) {
456
        if (!m_requestHeaders.contains(HTTPHeaderName::ContentType)) {
468
#if ENABLE(DASHBOARD_SUPPORT)
457
            // FIXME: this should include the charset used for encoding.
469
            if (usesDashboardBackwardCompatibilityMode())
458
            m_requestHeaders.set(HTTPHeaderName::ContentType, document.isHTMLDocument() ? "text/html;charset=UTF-8"_s : "application/xml;charset=UTF-8"_s);
470
                m_requestHeaders.set(HTTPHeaderName::ContentType, "application/x-www-form-urlencoded"_s);
471
            else
472
#endif
473
                // FIXME: this should include the charset used for encoding.
474
                m_requestHeaders.set(HTTPHeaderName::ContentType, document.isHTMLDocument() ? "text/html;charset=UTF-8"_s : "application/xml;charset=UTF-8"_s);
475
        } else {
459
        } else {
476
            String contentType = m_requestHeaders.get(HTTPHeaderName::ContentType);
460
            String contentType = m_requestHeaders.get(HTTPHeaderName::ContentType);
477
            replaceCharsetInMediaTypeIfNeeded(contentType);
461
            replaceCharsetInMediaTypeIfNeeded(contentType);
Lines 496-507 ExceptionOr<void> XMLHttpRequest::send(c Source/WebCore/xml/XMLHttpRequest.cpp_sec3
496
    if (!body.isNull() && m_method != "GET" && m_method != "HEAD") {
480
    if (!body.isNull() && m_method != "GET" && m_method != "HEAD") {
497
        String contentType = m_requestHeaders.get(HTTPHeaderName::ContentType);
481
        String contentType = m_requestHeaders.get(HTTPHeaderName::ContentType);
498
        if (contentType.isNull()) {
482
        if (contentType.isNull()) {
499
#if ENABLE(DASHBOARD_SUPPORT)
483
            m_requestHeaders.set(HTTPHeaderName::ContentType, HTTPHeaderValues::textPlainContentType());
500
            if (usesDashboardBackwardCompatibilityMode())
501
                m_requestHeaders.set(HTTPHeaderName::ContentType, "application/x-www-form-urlencoded"_s);
502
            else
503
#endif
504
                m_requestHeaders.set(HTTPHeaderName::ContentType, HTTPHeaderValues::textPlainContentType());
505
        } else {
484
        } else {
506
            replaceCharsetInMediaTypeIfNeeded(contentType);
485
            replaceCharsetInMediaTypeIfNeeded(contentType);
507
            m_requestHeaders.set(HTTPHeaderName::ContentType, contentType);
486
            m_requestHeaders.set(HTTPHeaderName::ContentType, contentType);
Lines 801-823 ExceptionOr<void> XMLHttpRequest::overri Source/WebCore/xml/XMLHttpRequest.cpp_sec4
801
780
802
ExceptionOr<void> XMLHttpRequest::setRequestHeader(const String& name, const String& value)
781
ExceptionOr<void> XMLHttpRequest::setRequestHeader(const String& name, const String& value)
803
{
782
{
804
    if (readyState() != OPENED || m_sendFlag) {
783
    if (readyState() != OPENED || m_sendFlag)
805
#if ENABLE(DASHBOARD_SUPPORT)
806
        if (usesDashboardBackwardCompatibilityMode())
807
            return { };
808
#endif
809
        return Exception { InvalidStateError };
784
        return Exception { InvalidStateError };
810
    }
811
785
812
    String normalizedValue = stripLeadingAndTrailingHTTPSpaces(value);
786
    String normalizedValue = stripLeadingAndTrailingHTTPSpaces(value);
813
    if (!isValidHTTPToken(name) || !isValidHTTPHeaderValue(normalizedValue))
787
    if (!isValidHTTPToken(name) || !isValidHTTPHeaderValue(normalizedValue))
814
        return Exception { SyntaxError };
788
        return Exception { SyntaxError };
815
789
816
    bool allowUnsafeHeaderField = false;
790
    bool allowUnsafeHeaderField = false;
817
#if ENABLE(DASHBOARD_SUPPORT)
818
    allowUnsafeHeaderField = usesDashboardBackwardCompatibilityMode();
819
#endif
820
821
    // FIXME: The allowSettingAnyXHRHeaderFromFileURLs setting currently only applies to Documents, not workers.
791
    // FIXME: The allowSettingAnyXHRHeaderFromFileURLs setting currently only applies to Documents, not workers.
822
    if (securityOrigin()->canLoadLocalResources() && scriptExecutionContext()->isDocument() && document()->settings().allowSettingAnyXHRHeaderFromFileURLs())
792
    if (securityOrigin()->canLoadLocalResources() && scriptExecutionContext()->isDocument() && document()->settings().allowSettingAnyXHRHeaderFromFileURLs())
823
        allowUnsafeHeaderField = true;
793
        allowUnsafeHeaderField = true;
- Source/WebCore/xml/XMLHttpRequest.h -4 lines
Lines 149-158 private: Source/WebCore/xml/XMLHttpRequest.h_sec1
149
    Document* document() const;
149
    Document* document() const;
150
    SecurityOrigin* securityOrigin() const;
150
    SecurityOrigin* securityOrigin() const;
151
151
152
#if ENABLE(DASHBOARD_SUPPORT)
153
    bool usesDashboardBackwardCompatibilityMode() const;
154
#endif
155
156
    // ThreadableLoaderClient
152
    // ThreadableLoaderClient
157
    void didSendData(unsigned long long bytesSent, unsigned long long totalBytesToBeSent) override;
153
    void didSendData(unsigned long long bytesSent, unsigned long long totalBytesToBeSent) override;
158
    void didReceiveResponse(unsigned long identifier, const ResourceResponse&) override;
154
    void didReceiveResponse(unsigned long identifier, const ResourceResponse&) override;
- Source/WebKit/ChangeLog +18 lines
Lines 1-3 Source/WebKit/ChangeLog_sec1
1
2019-06-06  Sam Weinig  <weinig@apple.com>
2
3
        Remove Dashboard support
4
        https://bugs.webkit.org/show_bug.cgi?id=198615
5
6
        Reviewed by NOBODY (OOPS!).
7
8
        * Configurations/FeatureDefines.xcconfig:
9
        * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
10
        (WKBundleSetUseDashboardCompatibilityMode): Deleted.
11
        * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
12
        * WebProcess/InjectedBundle/InjectedBundle.cpp:
13
        (WebKit::InjectedBundle::setUseDashboardCompatibilityMode): Deleted.
14
        * WebProcess/InjectedBundle/InjectedBundle.h:
15
        * WebProcess/WebCoreSupport/WebChromeClient.cpp:
16
        (WebKit::WebChromeClient::annotatedRegionsChanged): Deleted.
17
        * WebProcess/WebCoreSupport/WebChromeClient.h:
18
1
2019-06-08  Dean Jackson  <dino@apple.com>
19
2019-06-08  Dean Jackson  <dino@apple.com>
2
20
3
        Drag starting state can get stuck even though the drag has ended
21
        Drag starting state can get stuck even though the drag has ended
- Source/WebKit/Configurations/FeatureDefines.xcconfig -4 / +1 lines
Lines 117-125 ENABLE_CUSTOM_SCHEME_HANDLER = ; Source/WebKit/Configurations/FeatureDefines.xcconfig_sec1
117
ENABLE_DARK_MODE_CSS = $(ENABLE_DARK_MODE_CSS_$(WK_PLATFORM_NAME));
117
ENABLE_DARK_MODE_CSS = $(ENABLE_DARK_MODE_CSS_$(WK_PLATFORM_NAME));
118
ENABLE_DARK_MODE_CSS_macosx = ENABLE_DARK_MODE_CSS;
118
ENABLE_DARK_MODE_CSS_macosx = ENABLE_DARK_MODE_CSS;
119
119
120
ENABLE_DASHBOARD_SUPPORT = $(ENABLE_DASHBOARD_SUPPORT_$(WK_PLATFORM_NAME));
121
ENABLE_DASHBOARD_SUPPORT_macosx = ENABLE_DASHBOARD_SUPPORT;
122
123
ENABLE_DATACUE_VALUE = ENABLE_DATACUE_VALUE;
120
ENABLE_DATACUE_VALUE = ENABLE_DATACUE_VALUE;
124
121
125
ENABLE_DATALIST_ELEMENT = ENABLE_DATALIST_ELEMENT;
122
ENABLE_DATALIST_ELEMENT = ENABLE_DATALIST_ELEMENT;
Lines 445-448 ENABLE_WIRELESS_PLAYBACK_TARGET = ENABLE Source/WebKit/Configurations/FeatureDefines.xcconfig_sec2
445
442
446
ENABLE_XSLT = ENABLE_XSLT;
443
ENABLE_XSLT = ENABLE_XSLT;
447
444
448
FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCESSIBILITY_ISOLATED_TREE) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_CONIC_GRADIENTS) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_PAINTING_API) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS_TYPED_OM) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_C_LOOP) $(ENABLE_DARK_MODE_CSS) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FAST_JIT_PERMISSIONS) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_KEYBOARD_CODE_ATTRIBUTE) $(ENABLE_KEYBOARD_KEY_ATTRIBUTE) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MAC_VIDEO_TOOLBOX) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_MEMORY_SAMPLER) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION) $(ENABLE_NOTIFICATIONS) $(ENABLE_OVERFLOW_SCROLLING_TOUCH) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_EVENTS) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESIZE_OBSERVER) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_LOAD_STATISTICS) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SANDBOX_EXTENSIONS) $(ENABLE_SERVER_PRECONNECT) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SHAREABLE_RESOURCE) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USERSELECT_ALL) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBASSEMBLY_STREAMING_API) $(ENABLE_WEBDRIVER_MOUSE_INTERACTIONS) $(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS) $(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBGPU) $(ENABLE_WEB_API_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_CRYPTO) $(ENABLE_WEB_PROCESS_SANDBOX) $(ENABLE_WEB_RTC) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT);
445
FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCESSIBILITY_ISOLATED_TREE) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_CONIC_GRADIENTS) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_PAINTING_API) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS_TYPED_OM) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_C_LOOP) $(ENABLE_DARK_MODE_CSS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FAST_JIT_PERMISSIONS) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_KEYBOARD_CODE_ATTRIBUTE) $(ENABLE_KEYBOARD_KEY_ATTRIBUTE) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MAC_VIDEO_TOOLBOX) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_MEMORY_SAMPLER) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION) $(ENABLE_NOTIFICATIONS) $(ENABLE_OVERFLOW_SCROLLING_TOUCH) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_EVENTS) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESIZE_OBSERVER) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_LOAD_STATISTICS) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SANDBOX_EXTENSIONS) $(ENABLE_SERVER_PRECONNECT) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SHAREABLE_RESOURCE) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USERSELECT_ALL) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBASSEMBLY_STREAMING_API) $(ENABLE_WEBDRIVER_MOUSE_INTERACTIONS) $(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS) $(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBGPU) $(ENABLE_WEB_API_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_CRYPTO) $(ENABLE_WEB_PROCESS_SANDBOX) $(ENABLE_WEB_RTC) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT);
- Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.cpp -8 lines
Lines 355-368 void InjectedBundle::setPrivateBrowsingE Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.cpp_sec1
355
        (*iter)->enableLegacyPrivateBrowsing(enabled);
355
        (*iter)->enableLegacyPrivateBrowsing(enabled);
356
}
356
}
357
357
358
void InjectedBundle::setUseDashboardCompatibilityMode(WebPageGroupProxy* pageGroup, bool enabled)
359
{
360
#if ENABLE(DASHBOARD_SUPPORT)
361
    for (auto& page : PageGroup::pageGroup(pageGroup->identifier())->pages())
362
        page->settings().setUsesDashboardBackwardCompatibilityMode(enabled);
363
#endif
364
}
365
366
void InjectedBundle::setPopupBlockingEnabled(WebPageGroupProxy* pageGroup, bool enabled)
358
void InjectedBundle::setPopupBlockingEnabled(WebPageGroupProxy* pageGroup, bool enabled)
367
{
359
{
368
    const HashSet<Page*>& pages = PageGroup::pageGroup(pageGroup->identifier())->pages();
360
    const HashSet<Page*>& pages = PageGroup::pageGroup(pageGroup->identifier())->pages();
- Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.h -1 lines
Lines 105-111 public: Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.h_sec1
105
    void setPluginsEnabled(WebPageGroupProxy*, bool);
105
    void setPluginsEnabled(WebPageGroupProxy*, bool);
106
    void setJavaScriptCanAccessClipboard(WebPageGroupProxy*, bool);
106
    void setJavaScriptCanAccessClipboard(WebPageGroupProxy*, bool);
107
    void setPrivateBrowsingEnabled(WebPageGroupProxy*, bool);
107
    void setPrivateBrowsingEnabled(WebPageGroupProxy*, bool);
108
    void setUseDashboardCompatibilityMode(WebPageGroupProxy*, bool);
109
    void setPopupBlockingEnabled(WebPageGroupProxy*, bool);
108
    void setPopupBlockingEnabled(WebPageGroupProxy*, bool);
110
    void setAuthorAndUserStylesEnabled(WebPageGroupProxy*, bool);
109
    void setAuthorAndUserStylesEnabled(WebPageGroupProxy*, bool);
111
    void setSpatialNavigationEnabled(WebPageGroupProxy*, bool);
110
    void setSpatialNavigationEnabled(WebPageGroupProxy*, bool);
- Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundle.cpp -5 lines
Lines 171-181 void WKBundleSetPrivateBrowsingEnabled(W Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundle.cpp_sec1
171
    WebKit::toImpl(bundleRef)->setPrivateBrowsingEnabled(WebKit::toImpl(pageGroupRef), enabled);
171
    WebKit::toImpl(bundleRef)->setPrivateBrowsingEnabled(WebKit::toImpl(pageGroupRef), enabled);
172
}
172
}
173
173
174
void WKBundleSetUseDashboardCompatibilityMode(WKBundleRef bundleRef, WKBundlePageGroupRef pageGroupRef, bool enabled)
175
{
176
    WebKit::toImpl(bundleRef)->setUseDashboardCompatibilityMode(WebKit::toImpl(pageGroupRef), enabled);
177
}
178
179
void WKBundleSetPopupBlockingEnabled(WKBundleRef bundleRef, WKBundlePageGroupRef pageGroupRef, bool enabled)
174
void WKBundleSetPopupBlockingEnabled(WKBundleRef bundleRef, WKBundlePageGroupRef pageGroupRef, bool enabled)
180
{
175
{
181
    WebKit::toImpl(bundleRef)->setPopupBlockingEnabled(WebKit::toImpl(pageGroupRef), enabled);
176
    WebKit::toImpl(bundleRef)->setPopupBlockingEnabled(WebKit::toImpl(pageGroupRef), enabled);
- Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h -1 lines
Lines 50-56 WK_EXPORT void WKBundleSetMinimumLogical Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h_sec1
50
WK_EXPORT void WKBundleSetFrameFlatteningEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
50
WK_EXPORT void WKBundleSetFrameFlatteningEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
51
WK_EXPORT void WKBundleSetJavaScriptCanAccessClipboard(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
51
WK_EXPORT void WKBundleSetJavaScriptCanAccessClipboard(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
52
WK_EXPORT void WKBundleSetPrivateBrowsingEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
52
WK_EXPORT void WKBundleSetPrivateBrowsingEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
53
WK_EXPORT void WKBundleSetUseDashboardCompatibilityMode(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
54
WK_EXPORT void WKBundleSetPopupBlockingEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
53
WK_EXPORT void WKBundleSetPopupBlockingEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
55
WK_EXPORT void WKBundleSetAuthorAndUserStylesEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
54
WK_EXPORT void WKBundleSetAuthorAndUserStylesEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
56
WK_EXPORT void WKBundleSetSpatialNavigationEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
55
WK_EXPORT void WKBundleSetSpatialNavigationEnabled(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
- Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.cpp -9 lines
Lines 775-789 void WebChromeClient::reachedApplication Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.cpp_sec1
775
    cacheStorage.storeUpdatedQuotaForOrigin(&origin, newQuota);
775
    cacheStorage.storeUpdatedQuotaForOrigin(&origin, newQuota);
776
}
776
}
777
777
778
#if ENABLE(DASHBOARD_SUPPORT)
779
780
void WebChromeClient::annotatedRegionsChanged()
781
{
782
    notImplemented();
783
}
784
785
#endif
786
787
bool WebChromeClient::shouldReplaceWithGeneratedFileForUpload(const String& path, String& generatedFilename)
778
bool WebChromeClient::shouldReplaceWithGeneratedFileForUpload(const String& path, String& generatedFilename)
788
{
779
{
789
    generatedFilename = m_page.injectedBundleUIClient().shouldGenerateFileForUpload(&m_page, path);
780
    generatedFilename = m_page.injectedBundleUIClient().shouldGenerateFileForUpload(&m_page, path);
- Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.h -4 lines
Lines 143-152 private: Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.h_sec1
143
    void reachedMaxAppCacheSize(int64_t spaceNeeded) final;
143
    void reachedMaxAppCacheSize(int64_t spaceNeeded) final;
144
    void reachedApplicationCacheOriginQuota(WebCore::SecurityOrigin&, int64_t spaceNeeded) final;
144
    void reachedApplicationCacheOriginQuota(WebCore::SecurityOrigin&, int64_t spaceNeeded) final;
145
145
146
#if ENABLE(DASHBOARD_SUPPORT)
147
    void annotatedRegionsChanged() final;
148
#endif
149
150
    bool shouldReplaceWithGeneratedFileForUpload(const String& path, String& generatedFilename) final;
146
    bool shouldReplaceWithGeneratedFileForUpload(const String& path, String& generatedFilename) final;
151
    String generateReplacementFile(const String& path) final;
147
    String generateReplacementFile(const String& path) final;
152
    
148
    
- Source/WebKitLegacy/mac/ChangeLog +43 lines
Lines 1-3 Source/WebKitLegacy/mac/ChangeLog_sec1
1
2019-06-06  Sam Weinig  <weinig@apple.com>
2
3
        Remove Dashboard support
4
        https://bugs.webkit.org/show_bug.cgi?id=198615
5
6
        Reviewed by NOBODY (OOPS!).
7
8
        Removes implementation, but keeps privatly exported interfaces and enums
9
        around until we can confirm there are no more users of them. 
10
11
        * Configurations/FeatureDefines.xcconfig:
12
        * Plugins/WebBaseNetscapePluginView.mm:
13
        (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:]):
14
        * WebCoreSupport/WebChromeClient.h:
15
        * WebCoreSupport/WebChromeClient.mm:
16
        (WebChromeClient::annotatedRegionsChanged): Deleted.
17
        * WebView/WebClipView.mm:
18
        (-[WebClipView _focusRingVisibleRect]):
19
        (-[WebClipView scrollWheel:]):
20
        * WebView/WebDashboardRegion.h:
21
        * WebView/WebDashboardRegion.mm:
22
        * WebView/WebHTMLView.mm:
23
        (-[WebHTMLView _updateMouseoverWithEvent:]):
24
        (-[WebHTMLView acceptsFirstMouse:]):
25
        (-[WebHTMLView setDataSource:]):
26
        * WebView/WebPreferences.mm:
27
        (cacheModelForMainBundle):
28
        * WebView/WebUIDelegatePrivate.h:
29
        * WebView/WebView.mm:
30
        (-[WebView _needsPreHTML5ParserQuirks]):
31
        (-[WebView _preferencesChanged:]):
32
        (-[WebView _addScrollerDashboardRegions:]):
33
        (-[WebView _dashboardRegions]):
34
        (-[WebView _setDashboardBehavior:to:]):
35
        (-[WebView _dashboardBehavior:]):
36
        (-[WebView _addControlRect:clip:fromView:toDashboardRegions:]): Deleted.
37
        (-[WebView _addScrollerDashboardRegionsForFrameView:dashboardRegions:]): Deleted.
38
        (-[WebView _addScrollerDashboardRegions:from:]): Deleted.
39
        * WebView/WebViewData.h:
40
        * WebView/WebViewData.mm:
41
        (-[WebViewPrivate init]):
42
        * WebView/WebViewPrivate.h:
43
1
2019-06-07  Said Abou-Hallawa  <sabouhallawa@apple.com>
44
2019-06-07  Said Abou-Hallawa  <sabouhallawa@apple.com>
2
45
3
        REGRESSION (r244182) [WK1]: Page updates should always scheduleCompositingLayerFlush() immediately
46
        REGRESSION (r244182) [WK1]: Page updates should always scheduleCompositingLayerFlush() immediately
- Source/WebKitLegacy/mac/Configurations/FeatureDefines.xcconfig -4 / +1 lines
Lines 117-125 ENABLE_CUSTOM_SCHEME_HANDLER = ; Source/WebKitLegacy/mac/Configurations/FeatureDefines.xcconfig_sec1
117
ENABLE_DARK_MODE_CSS = $(ENABLE_DARK_MODE_CSS_$(WK_PLATFORM_NAME));
117
ENABLE_DARK_MODE_CSS = $(ENABLE_DARK_MODE_CSS_$(WK_PLATFORM_NAME));
118
ENABLE_DARK_MODE_CSS_macosx = ENABLE_DARK_MODE_CSS;
118
ENABLE_DARK_MODE_CSS_macosx = ENABLE_DARK_MODE_CSS;
119
119
120
ENABLE_DASHBOARD_SUPPORT = $(ENABLE_DASHBOARD_SUPPORT_$(WK_PLATFORM_NAME));
121
ENABLE_DASHBOARD_SUPPORT_macosx = ENABLE_DASHBOARD_SUPPORT;
122
123
ENABLE_DATACUE_VALUE = ENABLE_DATACUE_VALUE;
120
ENABLE_DATACUE_VALUE = ENABLE_DATACUE_VALUE;
124
121
125
ENABLE_DATALIST_ELEMENT = ENABLE_DATALIST_ELEMENT;
122
ENABLE_DATALIST_ELEMENT = ENABLE_DATALIST_ELEMENT;
Lines 445-448 ENABLE_WIRELESS_PLAYBACK_TARGET = ENABLE Source/WebKitLegacy/mac/Configurations/FeatureDefines.xcconfig_sec2
445
442
446
ENABLE_XSLT = ENABLE_XSLT;
443
ENABLE_XSLT = ENABLE_XSLT;
447
444
448
FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCESSIBILITY_ISOLATED_TREE) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_CONIC_GRADIENTS) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_PAINTING_API) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS_TYPED_OM) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_C_LOOP) $(ENABLE_DARK_MODE_CSS) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FAST_JIT_PERMISSIONS) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_KEYBOARD_CODE_ATTRIBUTE) $(ENABLE_KEYBOARD_KEY_ATTRIBUTE) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MAC_VIDEO_TOOLBOX) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_MEMORY_SAMPLER) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION) $(ENABLE_NOTIFICATIONS) $(ENABLE_OVERFLOW_SCROLLING_TOUCH) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_EVENTS) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESIZE_OBSERVER) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_LOAD_STATISTICS) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SANDBOX_EXTENSIONS) $(ENABLE_SERVER_PRECONNECT) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SHAREABLE_RESOURCE) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USERSELECT_ALL) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBASSEMBLY_STREAMING_API) $(ENABLE_WEBDRIVER_MOUSE_INTERACTIONS) $(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS) $(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBGPU) $(ENABLE_WEB_API_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_CRYPTO) $(ENABLE_WEB_PROCESS_SANDBOX) $(ENABLE_WEB_RTC) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT);
445
FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCESSIBILITY_ISOLATED_TREE) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_CONIC_GRADIENTS) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_PAINTING_API) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS_TYPED_OM) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_C_LOOP) $(ENABLE_DARK_MODE_CSS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FAST_JIT_PERMISSIONS) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_KEYBOARD_CODE_ATTRIBUTE) $(ENABLE_KEYBOARD_KEY_ATTRIBUTE) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MAC_VIDEO_TOOLBOX) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_MEMORY_SAMPLER) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION) $(ENABLE_NOTIFICATIONS) $(ENABLE_OVERFLOW_SCROLLING_TOUCH) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_EVENTS) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESIZE_OBSERVER) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_LOAD_STATISTICS) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SANDBOX_EXTENSIONS) $(ENABLE_SERVER_PRECONNECT) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SHAREABLE_RESOURCE) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USERSELECT_ALL) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBASSEMBLY_STREAMING_API) $(ENABLE_WEBDRIVER_MOUSE_INTERACTIONS) $(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS) $(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBGPU) $(ENABLE_WEB_API_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_CRYPTO) $(ENABLE_WEB_PROCESS_SANDBOX) $(ENABLE_WEB_RTC) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT);
- Source/WebKitLegacy/mac/Plugins/WebBaseNetscapePluginView.mm -11 / +1 lines
Lines 96-112 - (id)initWithFrame:(NSRect)frame Source/WebKitLegacy/mac/Plugins/WebBaseNetscapePluginView.mm_sec1
96
    _baseURL = adoptNS([baseURL copy]);
96
    _baseURL = adoptNS([baseURL copy]);
97
    _MIMEType = adoptNS([MIME copy]);
97
    _MIMEType = adoptNS([MIME copy]);
98
98
99
    // Enable "kiosk mode" when instantiating the QT plug-in inside of Dashboard. See <rdar://problem/6878105>
99
    [self setAttributeKeys:keys andValues:values];
100
    if ([[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.dashboard.client"] &&
101
        [_pluginPackage.get() bundleIdentifier] == "com.apple.QuickTime Plugin.plugin") {
102
        RetainPtr<NSMutableArray> mutableKeys = adoptNS([keys mutableCopy]);
103
        RetainPtr<NSMutableArray> mutableValues = adoptNS([values mutableCopy]);
104
105
        [mutableKeys.get() addObject:@"kioskmode"];
106
        [mutableValues.get() addObject:@"true"];
107
        [self setAttributeKeys:mutableKeys.get() andValues:mutableValues.get()];
108
    } else
109
         [self setAttributeKeys:keys andValues:values];
110
100
111
    if (loadManually)
101
    if (loadManually)
112
        _mode = NP_FULL;
102
        _mode = NP_FULL;
- Source/WebKitLegacy/mac/WebCoreSupport/WebChromeClient.h -4 lines
Lines 126-135 private: Source/WebKitLegacy/mac/WebCoreSupport/WebChromeClient.h_sec1
126
    void reachedMaxAppCacheSize(int64_t spaceNeeded) final;
126
    void reachedMaxAppCacheSize(int64_t spaceNeeded) final;
127
    void reachedApplicationCacheOriginQuota(WebCore::SecurityOrigin&, int64_t totalSpaceNeeded) final;
127
    void reachedApplicationCacheOriginQuota(WebCore::SecurityOrigin&, int64_t totalSpaceNeeded) final;
128
128
129
#if ENABLE(DASHBOARD_SUPPORT)
130
    void annotatedRegionsChanged() final;
131
#endif
132
133
    void runOpenPanel(WebCore::Frame&, WebCore::FileChooser&) override;
129
    void runOpenPanel(WebCore::Frame&, WebCore::FileChooser&) override;
134
    void showShareSheet(WebCore::ShareDataWithParsedURL&, CompletionHandler<void(bool)>&&) override;
130
    void showShareSheet(WebCore::ShareDataWithParsedURL&, CompletionHandler<void(bool)>&&) override;
135
131
- Source/WebKitLegacy/mac/WebCoreSupport/WebChromeClient.mm -11 lines
Lines 706-722 void WebChromeClient::reachedApplication Source/WebKitLegacy/mac/WebCoreSupport/WebChromeClient.mm_sec1
706
    END_BLOCK_OBJC_EXCEPTIONS;
706
    END_BLOCK_OBJC_EXCEPTIONS;
707
}
707
}
708
708
709
#if ENABLE(DASHBOARD_SUPPORT)
710
711
void WebChromeClient::annotatedRegionsChanged()
712
{
713
    BEGIN_BLOCK_OBJC_EXCEPTIONS;
714
    CallUIDelegate(m_webView, @selector(webView:dashboardRegionsChanged:), [m_webView _dashboardRegions]);
715
    END_BLOCK_OBJC_EXCEPTIONS;
716
}
717
718
#endif
719
720
#if ENABLE(INPUT_TYPE_COLOR)
709
#if ENABLE(INPUT_TYPE_COLOR)
721
710
722
std::unique_ptr<ColorChooser> WebChromeClient::createColorChooser(ColorChooserClient& client, const Color& initialColor)
711
std::unique_ptr<ColorChooser> WebChromeClient::createColorChooser(ColorChooserClient& client, const Color& initialColor)
- Source/WebKitLegacy/mac/WebView/WebClipView.mm -17 / +1 lines
Lines 165-189 - (NSRect)additionalClip Source/WebKitLegacy/mac/WebView/WebClipView.mm_sec1
165
- (NSRect)_focusRingVisibleRect
165
- (NSRect)_focusRingVisibleRect
166
{
166
{
167
    NSRect rect = [self visibleRect];
167
    NSRect rect = [self visibleRect];
168
    if (_haveAdditionalClip) {
168
    if (_haveAdditionalClip)
169
        rect = NSIntersectionRect(rect, _additionalClip);
169
        rect = NSIntersectionRect(rect, _additionalClip);
170
    }
171
    return rect;
170
    return rect;
172
}
171
}
173
172
174
- (void)scrollWheel:(NSEvent *)event
175
{
176
    NSView *docView = [self documentView];
177
    if ([docView respondsToSelector:@selector(_webView)]) {
178
#if ENABLE(DASHBOARD_SUPPORT)
179
        WebView *wv = [docView _webView];
180
        if ([wv _dashboardBehavior:WebDashboardBehaviorAllowWheelScrolling]) {
181
            [super scrollWheel:event];
182
        }
183
#endif
184
        return;
185
    }
186
    [super scrollWheel:event];
187
}
188
189
@end
173
@end
- Source/WebKitLegacy/mac/WebView/WebDashboardRegion.h +2 lines
Lines 23-28 Source/WebKitLegacy/mac/WebView/WebDashboardRegion.h_sec1
23
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
23
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
24
 */
24
 */
25
25
26
// FIXME: Remove this file once it is verified no one is dependent on it.
27
26
#if !defined(ENABLE_DASHBOARD_SUPPORT)
28
#if !defined(ENABLE_DASHBOARD_SUPPORT)
27
#define ENABLE_DASHBOARD_SUPPORT 1
29
#define ENABLE_DASHBOARD_SUPPORT 1
28
#endif
30
#endif
- Source/WebKitLegacy/mac/WebView/WebDashboardRegion.mm +2 lines
Lines 23-28 Source/WebKitLegacy/mac/WebView/WebDashboardRegion.mm_sec1
23
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
23
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
24
 */
24
 */
25
25
26
// FIXME: Remove this file once it is verified no one is dependent on it.
27
26
#import "WebDashboardRegion.h"
28
#import "WebDashboardRegion.h"
27
29
28
#if ENABLE(DASHBOARD_SUPPORT)
30
#if ENABLE(DASHBOARD_SUPPORT)
- Source/WebKitLegacy/mac/WebView/WebHTMLView.mm -18 / +4 lines
Lines 1983-1996 - (void)_updateMouseoverWithEvent:(NSEve Source/WebKitLegacy/mac/WebView/WebHTMLView.mm_sec1
1983
            // If it is one of those cases where the page is not active and the mouse is not pressed, then we can
1983
            // If it is one of those cases where the page is not active and the mouse is not pressed, then we can
1984
            // fire a much more restricted and efficient scrollbars-only version of the event.
1984
            // fire a much more restricted and efficient scrollbars-only version of the event.
1985
1985
1986
            if ([[self window] isKeyWindow] 
1986
            if ([[self window] isKeyWindow] || mouseEventIsPartOfClickOrDrag(event))
1987
                || mouseEventIsPartOfClickOrDrag(event)
1988
#if ENABLE(DASHBOARD_SUPPORT)
1989
                || [[self _webView] _dashboardBehavior:WebDashboardBehaviorAlwaysSendMouseEventsToAllWindows]
1990
#endif
1991
                ) {
1992
                coreFrame->eventHandler().mouseMoved(event, [[self _webView] _pressureEvent]);
1987
                coreFrame->eventHandler().mouseMoved(event, [[self _webView] _pressureEvent]);
1993
            } else {
1988
            else {
1994
                [self removeAllToolTips];
1989
                [self removeAllToolTips];
1995
                coreFrame->eventHandler().passMouseMovedEventToScrollbars(event, [[self _webView] _pressureEvent]);
1990
                coreFrame->eventHandler().passMouseMovedEventToScrollbars(event, [[self _webView] _pressureEvent]);
1996
            }
1991
            }
Lines 4147-4158 - (BOOL)acceptsFirstMouse:(NSEvent *)eve Source/WebKitLegacy/mac/WebView/WebHTMLView.mm_sec2
4147
4142
4148
    NSView *hitView = [self _hitViewForEvent:event];
4143
    NSView *hitView = [self _hitViewForEvent:event];
4149
    WebHTMLView *hitHTMLView = [hitView isKindOfClass:[self class]] ? (WebHTMLView *)hitView : nil;
4144
    WebHTMLView *hitHTMLView = [hitView isKindOfClass:[self class]] ? (WebHTMLView *)hitView : nil;
4150
    
4145
4151
#if ENABLE(DASHBOARD_SUPPORT)
4152
    if ([[self _webView] _dashboardBehavior:WebDashboardBehaviorAlwaysAcceptsFirstMouse])
4153
        return YES;
4154
#endif
4155
    
4156
    if (hitHTMLView) {
4146
    if (hitHTMLView) {
4157
        bool result = false;
4147
        bool result = false;
4158
        if (Frame* coreFrame = core([hitHTMLView _frame])) {
4148
        if (Frame* coreFrame = core([hitHTMLView _frame])) {
Lines 4687-4697 - (void)setDataSource:(WebDataSource *)d Source/WebKitLegacy/mac/WebView/WebHTMLView.mm_sec3
4687
#if PLATFORM(MAC)
4677
#if PLATFORM(MAC)
4688
    if (!_private->installedTrackingArea) {
4678
    if (!_private->installedTrackingArea) {
4689
        NSTrackingAreaOptions options = NSTrackingMouseMoved | NSTrackingMouseEnteredAndExited | NSTrackingInVisibleRect | NSTrackingCursorUpdate;
4679
        NSTrackingAreaOptions options = NSTrackingMouseMoved | NSTrackingMouseEnteredAndExited | NSTrackingInVisibleRect | NSTrackingCursorUpdate;
4690
        if (_NSRecommendedScrollerStyle() == NSScrollerStyleLegacy
4680
        if (_NSRecommendedScrollerStyle() == NSScrollerStyleLegacy)
4691
#if ENABLE(DASHBOARD_SUPPORT)
4692
            || [[self _webView] _dashboardBehavior:WebDashboardBehaviorAlwaysSendMouseEventsToAllWindows]
4693
#endif
4694
            )
4695
            options |= NSTrackingActiveAlways;
4681
            options |= NSTrackingActiveAlways;
4696
        else
4682
        else
4697
            options |= NSTrackingActiveInKeyWindow;
4683
            options |= NSTrackingActiveInKeyWindow;
- Source/WebKitLegacy/mac/WebView/WebPreferences.mm -1 lines
Lines 115-121 static WebCacheModel cacheModelForMainBu Source/WebKitLegacy/mac/WebView/WebPreferences.mm_sec1
115
        static const char* const documentBrowserIDs[] = {
115
        static const char* const documentBrowserIDs[] = {
116
            "com.apple.Dictionary",
116
            "com.apple.Dictionary",
117
            "com.apple.Xcode",
117
            "com.apple.Xcode",
118
            "com.apple.dashboard.client", 
119
            "com.apple.helpviewer",
118
            "com.apple.helpviewer",
120
            "com.culturedcode.xyle",
119
            "com.culturedcode.xyle",
121
            "com.macrabbit.CSSEdit",
120
            "com.macrabbit.CSSEdit",
- Source/WebKitLegacy/mac/WebView/WebUIDelegatePrivate.h +1 lines
Lines 203-208 @interface NSObject (WebUIDelegatePrivat Source/WebKitLegacy/mac/WebView/WebUIDelegatePrivate.h_sec1
203
- (NSView *)webView:(WebView *)webView plugInViewWithArguments:(NSDictionary *)arguments;
203
- (NSView *)webView:(WebView *)webView plugInViewWithArguments:(NSDictionary *)arguments;
204
204
205
#if ENABLE_DASHBOARD_SUPPORT
205
#if ENABLE_DASHBOARD_SUPPORT
206
// FIXME: Remove this method once it is verified no one is dependent on it.
206
// regions is an dictionary whose keys are regions label and values are arrays of WebDashboardRegions.
207
// regions is an dictionary whose keys are regions label and values are arrays of WebDashboardRegions.
207
- (void)webView:(WebView *)webView dashboardRegionsChanged:(NSDictionary *)regions;
208
- (void)webView:(WebView *)webView dashboardRegionsChanged:(NSDictionary *)regions;
208
#endif
209
#endif
- Source/WebKitLegacy/mac/WebView/WebView.mm -171 / +3 lines
Lines 304-313 Source/WebKitLegacy/mac/WebView/WebView.mm_sec1
304
#import <wtf/FastMalloc.h>
304
#import <wtf/FastMalloc.h>
305
#endif
305
#endif
306
306
307
#if ENABLE(DASHBOARD_SUPPORT)
308
#import <WebKitLegacy/WebDashboardRegion.h>
309
#endif
310
311
#if ENABLE(REMOTE_INSPECTOR)
307
#if ENABLE(REMOTE_INSPECTOR)
312
#import <JavaScriptCore/RemoteInspector.h>
308
#import <JavaScriptCore/RemoteInspector.h>
313
#if PLATFORM(IOS_FAMILY)
309
#if PLATFORM(IOS_FAMILY)
Lines 2799-2812 - (BOOL)_needsPreHTML5ParserQuirks Source/WebKitLegacy/mac/WebView/WebView.mm_sec2
2799
    // Mail.app must continue to display HTML email that contains quirky markup.
2795
    // Mail.app must continue to display HTML email that contains quirky markup.
2800
    static bool isAppleMail = MacApplication::isAppleMail();
2796
    static bool isAppleMail = MacApplication::isAppleMail();
2801
2797
2802
    return isApplicationNeedingParserQuirks
2798
    return isApplicationNeedingParserQuirks || isAppleMail || [[self preferences] usePreHTML5ParserQuirks];
2803
        || isAppleMail
2804
#if ENABLE(DASHBOARD_SUPPORT)
2805
        // Pre-HTML5 parser quirks are required to remain compatible with many
2806
        // Dashboard widgets. See <rdar://problem/8175982>.
2807
        || (_private->page && _private->page->settings().usesDashboardBackwardCompatibilityMode())
2808
#endif
2809
        || [[self preferences] usePreHTML5ParserQuirks];
2810
#else
2799
#else
2811
    return [[self preferences] usePreHTML5ParserQuirks];
2800
    return [[self preferences] usePreHTML5ParserQuirks];
2812
#endif
2801
#endif
Lines 3057-3064 - (void)_preferencesChanged:(WebPreferen Source/WebKitLegacy/mac/WebView/WebView.mm_sec3
3057
    // This parses the user stylesheet synchronously so anything that may affect it should be done first.
3046
    // This parses the user stylesheet synchronously so anything that may affect it should be done first.
3058
    if ([preferences userStyleSheetEnabled]) {
3047
    if ([preferences userStyleSheetEnabled]) {
3059
        NSString* location = [[preferences userStyleSheetLocation] _web_originalDataAsString];
3048
        NSString* location = [[preferences userStyleSheetLocation] _web_originalDataAsString];
3060
        if ([location isEqualToString:@"apple-dashboard://stylesheet"])
3061
            location = @"file:///System/Library/PrivateFrameworks/DashboardClient.framework/Resources/widget.css";
3062
        settings.setUserStyleSheetLocation([NSURL URLWithString:(location ? location : @"")]);
3049
        settings.setUserStyleSheetLocation([NSURL URLWithString:(location ? location : @"")]);
3063
    } else
3050
    } else
3064
        settings.setUserStyleSheetLocation([NSURL URLWithString:@""]);
3051
        settings.setUserStyleSheetLocation([NSURL URLWithString:@""]);
Lines 3768-3945 - (void)_didCommitLoadForFrame:(WebFrame Source/WebKitLegacy/mac/WebView/WebView.mm_sec4
3768
3755
3769
#if ENABLE(DASHBOARD_SUPPORT)
3756
#if ENABLE(DASHBOARD_SUPPORT)
3770
3757
3771
#define DASHBOARD_CONTROL_LABEL @"control"
3758
// FIXME: Remove these once it is verified no one is dependent on it.
3772
3773
- (void)_addControlRect:(NSRect)bounds clip:(NSRect)clip fromView:(NSView *)view toDashboardRegions:(NSMutableDictionary *)regions
3774
{
3775
    NSRect adjustedBounds = bounds;
3776
    adjustedBounds.origin = [self convertPoint:bounds.origin fromView:view];
3777
    adjustedBounds.origin.y = [self bounds].size.height - adjustedBounds.origin.y;
3778
    adjustedBounds.size = bounds.size;
3779
3780
    NSRect adjustedClip;
3781
    adjustedClip.origin = [self convertPoint:clip.origin fromView:view];
3782
    adjustedClip.origin.y = [self bounds].size.height - adjustedClip.origin.y;
3783
    adjustedClip.size = clip.size;
3784
3785
    WebDashboardRegion *region = [[WebDashboardRegion alloc] initWithRect:adjustedBounds 
3786
        clip:adjustedClip type:WebDashboardRegionTypeScrollerRectangle];
3787
    NSMutableArray *scrollerRegions = [regions objectForKey:DASHBOARD_CONTROL_LABEL];
3788
    if (!scrollerRegions) {
3789
        scrollerRegions = [[NSMutableArray alloc] init];
3790
        [regions setObject:scrollerRegions forKey:DASHBOARD_CONTROL_LABEL];
3791
        [scrollerRegions release];
3792
    }
3793
    [scrollerRegions addObject:region];
3794
    [region release];
3795
}
3796
3797
- (void)_addScrollerDashboardRegionsForFrameView:(FrameView*)frameView dashboardRegions:(NSMutableDictionary *)regions
3798
{    
3799
    NSView *documentView = [[kit(&frameView->frame()) frameView] documentView];
3800
3801
    for (const auto& widget: frameView->children()) {
3802
        if (is<FrameView>(widget)) {
3803
            [self _addScrollerDashboardRegionsForFrameView:&downcast<FrameView>(widget.get()) dashboardRegions:regions];
3804
            continue;
3805
        }
3806
3807
        if (!widget->isScrollbar())
3808
            continue;
3809
3810
        // FIXME: This should really pass an appropriate clip, but our first try got it wrong, and
3811
        // it's not common to need this to be correct in Dashboard widgets.
3812
        NSRect bounds = widget->frameRect();
3813
        [self _addControlRect:bounds clip:bounds fromView:documentView toDashboardRegions:regions];
3814
    }
3815
}
3816
3817
- (void)_addScrollerDashboardRegions:(NSMutableDictionary *)regions from:(NSArray *)views
3818
{
3819
    // Add scroller regions for NSScroller and WebCore scrollbars
3820
    NSUInteger count = [views count];
3821
    for (NSUInteger i = 0; i < count; i++) {
3822
        NSView *view = [views objectAtIndex:i];
3823
        
3824
        if ([view isKindOfClass:[WebHTMLView class]]) {
3825
            if (Frame* coreFrame = core([(WebHTMLView*)view _frame])) {
3826
                if (FrameView* coreView = coreFrame->view())
3827
                    [self _addScrollerDashboardRegionsForFrameView:coreView dashboardRegions:regions];
3828
            }
3829
        } else if ([view isKindOfClass:[NSScroller class]]) {
3830
            // AppKit places absent scrollers at -100,-100
3831
            if ([view frame].origin.y < 0)
3832
                continue;
3833
            [self _addControlRect:[view bounds] clip:[view visibleRect] fromView:view toDashboardRegions:regions];
3834
        }
3835
        [self _addScrollerDashboardRegions:regions from:[view subviews]];
3836
    }
3837
}
3838
3759
3839
- (void)_addScrollerDashboardRegions:(NSMutableDictionary *)regions
3760
- (void)_addScrollerDashboardRegions:(NSMutableDictionary *)regions
3840
{
3761
{
3841
    [self _addScrollerDashboardRegions:regions from:[self subviews]];
3842
}
3762
}
3843
3763
3844
- (NSDictionary *)_dashboardRegions
3764
- (NSDictionary *)_dashboardRegions
3845
{
3765
{
3846
    // Only return regions from main frame.
3766
    return nil;
3847
    Frame* mainFrame = [self _mainCoreFrame];
3848
    if (!mainFrame)
3849
        return nil;
3850
3851
    const Vector<AnnotatedRegionValue>& regions = mainFrame->document()->annotatedRegions();
3852
    size_t size = regions.size();
3853
3854
    NSMutableDictionary *webRegions = [NSMutableDictionary dictionaryWithCapacity:size];
3855
    for (size_t i = 0; i < size; i++) {
3856
        const AnnotatedRegionValue& region = regions[i];
3857
3858
        if (region.type == StyleDashboardRegion::None)
3859
            continue;
3860
3861
        NSString *label = region.label;
3862
        WebDashboardRegionType type = WebDashboardRegionTypeNone;
3863
        if (region.type == StyleDashboardRegion::Circle)
3864
            type = WebDashboardRegionTypeCircle;
3865
        else if (region.type == StyleDashboardRegion::Rectangle)
3866
            type = WebDashboardRegionTypeRectangle;
3867
        NSMutableArray *regionValues = [webRegions objectForKey:label];
3868
        if (!regionValues) {
3869
            regionValues = [[NSMutableArray alloc] initWithCapacity:1];
3870
            [webRegions setObject:regionValues forKey:label];
3871
            [regionValues release];
3872
        }
3873
3874
        WebDashboardRegion *webRegion = [[WebDashboardRegion alloc] initWithRect:snappedIntRect(region.bounds) clip:snappedIntRect(region.clip) type:type];
3875
        [regionValues addObject:webRegion];
3876
        [webRegion release];
3877
    }
3878
3879
    [self _addScrollerDashboardRegions:webRegions];
3880
3881
    return webRegions;
3882
}
3767
}
3883
3768
3884
- (void)_setDashboardBehavior:(WebDashboardBehavior)behavior to:(BOOL)flag
3769
- (void)_setDashboardBehavior:(WebDashboardBehavior)behavior to:(BOOL)flag
3885
{
3770
{
3886
    // FIXME: Remove this blanket assignment once Dashboard and Dashcode implement 
3887
    // specific support for the backward compatibility mode flag.
3888
    if (behavior == WebDashboardBehaviorAllowWheelScrolling && flag == NO && _private->page)
3889
        _private->page->settings().setUsesDashboardBackwardCompatibilityMode(true);
3890
    
3891
    switch (behavior) {
3892
        case WebDashboardBehaviorAlwaysSendMouseEventsToAllWindows: {
3893
            _private->dashboardBehaviorAlwaysSendMouseEventsToAllWindows = flag;
3894
            break;
3895
        }
3896
        case WebDashboardBehaviorAlwaysSendActiveNullEventsToPlugIns: {
3897
            _private->dashboardBehaviorAlwaysSendActiveNullEventsToPlugIns = flag;
3898
            break;
3899
        }
3900
        case WebDashboardBehaviorAlwaysAcceptsFirstMouse: {
3901
            _private->dashboardBehaviorAlwaysAcceptsFirstMouse = flag;
3902
            break;
3903
        }
3904
        case WebDashboardBehaviorAllowWheelScrolling: {
3905
            _private->dashboardBehaviorAllowWheelScrolling = flag;
3906
            break;
3907
        }
3908
        case WebDashboardBehaviorUseBackwardCompatibilityMode: {
3909
            if (_private->page)
3910
                _private->page->settings().setUsesDashboardBackwardCompatibilityMode(flag);
3911
#if ENABLE(LEGACY_CSS_VENDOR_PREFIXES)
3912
            RuntimeEnabledFeatures::sharedFeatures().setLegacyCSSVendorPrefixesEnabled(flag);
3913
#endif
3914
            break;
3915
        }
3916
    }
3917
3918
    // Pre-HTML5 parser quirks should be enabled if Dashboard is in backward
3919
    // compatibility mode. See <rdar://problem/8175982>.
3920
    if (_private->page)
3921
        _private->page->settings().setUsePreHTML5ParserQuirks([self _needsPreHTML5ParserQuirks]);
3922
}
3771
}
3923
3772
3924
- (BOOL)_dashboardBehavior:(WebDashboardBehavior)behavior
3773
- (BOOL)_dashboardBehavior:(WebDashboardBehavior)behavior
3925
{
3774
{
3926
    switch (behavior) {
3927
        case WebDashboardBehaviorAlwaysSendMouseEventsToAllWindows: {
3928
            return _private->dashboardBehaviorAlwaysSendMouseEventsToAllWindows;
3929
        }
3930
        case WebDashboardBehaviorAlwaysSendActiveNullEventsToPlugIns: {
3931
            return _private->dashboardBehaviorAlwaysSendActiveNullEventsToPlugIns;
3932
        }
3933
        case WebDashboardBehaviorAlwaysAcceptsFirstMouse: {
3934
            return _private->dashboardBehaviorAlwaysAcceptsFirstMouse;
3935
        }
3936
        case WebDashboardBehaviorAllowWheelScrolling: {
3937
            return _private->dashboardBehaviorAllowWheelScrolling;
3938
        }
3939
        case WebDashboardBehaviorUseBackwardCompatibilityMode: {
3940
            return _private->page && _private->page->settings().usesDashboardBackwardCompatibilityMode();
3941
        }
3942
    }
3943
    return NO;
3775
    return NO;
3944
}
3776
}
3945
3777
- Source/WebKitLegacy/mac/WebView/WebViewData.h -7 lines
Lines 269-281 @interface WebViewPrivate : NSObject { Source/WebKitLegacy/mac/WebView/WebViewData.h_sec1
269
    BOOL hasSpellCheckerDocumentTag;
269
    BOOL hasSpellCheckerDocumentTag;
270
    NSInteger spellCheckerDocumentTag;
270
    NSInteger spellCheckerDocumentTag;
271
271
272
#if ENABLE(DASHBOARD_SUPPORT)
273
    BOOL dashboardBehaviorAlwaysSendMouseEventsToAllWindows;
274
    BOOL dashboardBehaviorAlwaysSendActiveNullEventsToPlugIns;
275
    BOOL dashboardBehaviorAlwaysAcceptsFirstMouse;
276
    BOOL dashboardBehaviorAllowWheelScrolling;
277
#endif
278
    
279
#if PLATFORM(IOS_FAMILY)
272
#if PLATFORM(IOS_FAMILY)
280
    BOOL isStopping;
273
    BOOL isStopping;
281
274
- Source/WebKitLegacy/mac/WebView/WebViewData.mm -4 lines
Lines 198-207 - (id)init Source/WebKitLegacy/mac/WebView/WebViewData.mm_sec1
198
    // The default value should be synchronized with WebCore/page/Settings.cpp.
198
    // The default value should be synchronized with WebCore/page/Settings.cpp.
199
    validationMessageTimerMagnification = 50;
199
    validationMessageTimerMagnification = 50;
200
200
201
#if ENABLE(DASHBOARD_SUPPORT)
202
    dashboardBehaviorAllowWheelScrolling = YES;
203
#endif
204
205
#if PLATFORM(IOS_FAMILY)
201
#if PLATFORM(IOS_FAMILY)
206
    isStopping = NO;
202
    isStopping = NO;
207
    _geolocationProvider = [WebGeolocationProviderIOS sharedGeolocationProvider];
203
    _geolocationProvider = [WebGeolocationProviderIOS sharedGeolocationProvider];
- Source/WebKitLegacy/mac/WebView/WebViewPrivate.h +2 lines
Lines 124-129 extern NSString *WebQuickLookUTIKey; Source/WebKitLegacy/mac/WebView/WebViewPrivate.h_sec1
124
extern NSString * const WebViewWillCloseNotification;
124
extern NSString * const WebViewWillCloseNotification;
125
125
126
#if ENABLE_DASHBOARD_SUPPORT
126
#if ENABLE_DASHBOARD_SUPPORT
127
// FIXME: Remove this once it is verified no one is dependent on it.
127
typedef enum {
128
typedef enum {
128
    WebDashboardBehaviorAlwaysSendMouseEventsToAllWindows,
129
    WebDashboardBehaviorAlwaysSendMouseEventsToAllWindows,
129
    WebDashboardBehaviorAlwaysSendActiveNullEventsToPlugIns,
130
    WebDashboardBehaviorAlwaysSendActiveNullEventsToPlugIns,
Lines 554-559 Could be worth adding to the API. Source/WebKitLegacy/mac/WebView/WebViewPrivate.h_sec2
554
#endif
555
#endif
555
556
556
#if ENABLE_DASHBOARD_SUPPORT
557
#if ENABLE_DASHBOARD_SUPPORT
558
// FIXME: Remove these once we have verified no one is calling them
557
- (void)_addScrollerDashboardRegions:(NSMutableDictionary *)regions;
559
- (void)_addScrollerDashboardRegions:(NSMutableDictionary *)regions;
558
- (NSDictionary *)_dashboardRegions;
560
- (NSDictionary *)_dashboardRegions;
559
561
- Source/cmake/OptionsMac.cmake -1 lines
Lines 16-22 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_ Source/cmake/OptionsMac.cmake_sec1
16
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_CSS_SELECTORS_LEVEL4 PRIVATE OFF)
16
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_CSS_SELECTORS_LEVEL4 PRIVATE OFF)
17
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_CSS3_TEXT PRIVATE OFF)
17
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_CSS3_TEXT PRIVATE OFF)
18
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_CURSOR_VISIBILITY PRIVATE ON)
18
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_CURSOR_VISIBILITY PRIVATE ON)
19
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_DASHBOARD_SUPPORT PRIVATE ON)
20
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_DATACUE_VALUE PRIVATE ON)
19
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_DATACUE_VALUE PRIVATE ON)
21
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_DRAG_SUPPORT PRIVATE ON)
20
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_DRAG_SUPPORT PRIVATE ON)
22
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_FILTERS_LEVEL_2 PRIVATE ON)
21
WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_FILTERS_LEVEL_2 PRIVATE ON)
- Source/cmake/WebKitFeatures.cmake -1 lines
Lines 120-126 macro(WEBKIT_OPTION_BEGIN) Source/cmake/WebKitFeatures.cmake_sec1
120
    WEBKIT_OPTION_DEFINE(ENABLE_CUSTOM_SCHEME_HANDLER "Toggle Custom Scheme Handler support" PRIVATE OFF)
120
    WEBKIT_OPTION_DEFINE(ENABLE_CUSTOM_SCHEME_HANDLER "Toggle Custom Scheme Handler support" PRIVATE OFF)
121
    WEBKIT_OPTION_DEFINE(ENABLE_C_LOOP "Enable CLoop interpreter" PRIVATE ${ENABLE_C_LOOP_DEFAULT})
121
    WEBKIT_OPTION_DEFINE(ENABLE_C_LOOP "Enable CLoop interpreter" PRIVATE ${ENABLE_C_LOOP_DEFAULT})
122
    WEBKIT_OPTION_DEFINE(ENABLE_DARK_MODE_CSS "Toggle Dark Mode CSS support" PRIVATE OFF)
122
    WEBKIT_OPTION_DEFINE(ENABLE_DARK_MODE_CSS "Toggle Dark Mode CSS support" PRIVATE OFF)
123
    WEBKIT_OPTION_DEFINE(ENABLE_DASHBOARD_SUPPORT "Toggle dashboard support" PRIVATE OFF)
124
    WEBKIT_OPTION_DEFINE(ENABLE_DATACUE_VALUE "Toggle datacue value support" PRIVATE OFF)
123
    WEBKIT_OPTION_DEFINE(ENABLE_DATACUE_VALUE "Toggle datacue value support" PRIVATE OFF)
125
    WEBKIT_OPTION_DEFINE(ENABLE_DATALIST_ELEMENT "Toggle Datalist Element support" PRIVATE OFF)
124
    WEBKIT_OPTION_DEFINE(ENABLE_DATALIST_ELEMENT "Toggle Datalist Element support" PRIVATE OFF)
126
    WEBKIT_OPTION_DEFINE(ENABLE_DATA_INTERACTION "Toggle data interaction support" PRIVATE OFF)
125
    WEBKIT_OPTION_DEFINE(ENABLE_DATA_INTERACTION "Toggle data interaction support" PRIVATE OFF)
- Tools/ChangeLog +30 lines
Lines 1-3 Tools/ChangeLog_sec1
1
2019-06-06  Sam Weinig  <weinig@apple.com>
2
3
        Remove Dashboard support
4
        https://bugs.webkit.org/show_bug.cgi?id=198615
5
6
        Reviewed by NOBODY (OOPS!).
7
8
        * DumpRenderTree/TestRunner.cpp:
9
        (TestRunner::staticFunctions):
10
        (setUseDashboardCompatibilityModeCallback): Deleted.
11
        * DumpRenderTree/TestRunner.h:
12
        * DumpRenderTree/mac/Configurations/Base.xcconfig:
13
        * DumpRenderTree/mac/DumpRenderTree.mm:
14
        (resetWebViewToConsistentStateBeforeTesting):
15
        * DumpRenderTree/mac/TestRunnerMac.mm:
16
        (TestRunner::setUseDashboardCompatibilityMode): Deleted.
17
        * ImageDiff/cg/Configurations/Base.xcconfig:
18
        * Scripts/webkitperl/FeatureList.pm:
19
        * TestWebKitAPI/Configurations/Base.xcconfig:
20
        * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
21
        * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
22
        * TestWebKitAPI/Tests/mac/DeviceScaleFactorInDashboardRegions.mm: Removed.
23
        * WebKitTestRunner/Configurations/Base.xcconfig:
24
        * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
25
        * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
26
        (WTR::InjectedBundle::beginTesting):
27
        * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
28
        (WTR::TestRunner::setUseDashboardCompatibilityMode): Deleted.
29
        * WebKitTestRunner/InjectedBundle/TestRunner.h:
30
1
2019-06-08  Wenson Hsieh  <wenson_hsieh@apple.com>
31
2019-06-08  Wenson Hsieh  <wenson_hsieh@apple.com>
2
32
3
        [iOS] The default application name for user agent when requesting desktop content is still "Mobile/15E148"
33
        [iOS] The default application name for user agent when requesting desktop content is still "Mobile/15E148"
- Tools/DumpRenderTree/TestRunner.cpp -13 lines
Lines 1266-1283 static JSValueRef setPagePausedCallback( Tools/DumpRenderTree/TestRunner.cpp_sec1
1266
}
1266
}
1267
#endif
1267
#endif
1268
1268
1269
static JSValueRef setUseDashboardCompatibilityModeCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
1270
{
1271
    // Has mac implementation
1272
    if (argumentCount < 1)
1273
        return JSValueMakeUndefined(context);
1274
1275
    TestRunner* controller = static_cast<TestRunner*>(JSObjectGetPrivate(thisObject));
1276
    controller->setUseDashboardCompatibilityMode(JSValueToBoolean(context, arguments[0]));
1277
1278
    return JSValueMakeUndefined(context);
1279
}
1280
1281
static JSValueRef setUserStyleSheetEnabledCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
1269
static JSValueRef setUserStyleSheetEnabledCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
1282
{
1270
{
1283
    // Has mac implementation
1271
    // Has mac implementation
Lines 2254-2260 JSStaticFunction* TestRunner::staticFunc Tools/DumpRenderTree/TestRunner.cpp_sec2
2254
        { "setTelephoneNumberParsingEnabled", setTelephoneNumberParsingEnabledCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
2242
        { "setTelephoneNumberParsingEnabled", setTelephoneNumberParsingEnabledCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
2255
        { "setPagePaused", setPagePausedCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
2243
        { "setPagePaused", setPagePausedCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
2256
#endif
2244
#endif
2257
        { "setUseDashboardCompatibilityMode", setUseDashboardCompatibilityModeCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
2258
        { "setUserStyleSheetEnabled", setUserStyleSheetEnabledCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
2245
        { "setUserStyleSheetEnabled", setUserStyleSheetEnabledCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
2259
        { "setUserStyleSheetLocation", setUserStyleSheetLocationCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
2246
        { "setUserStyleSheetLocation", setUserStyleSheetLocationCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
2260
        { "setValueForUser", setValueForUserCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
2247
        { "setValueForUser", setValueForUserCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
- Tools/DumpRenderTree/TestRunner.h -1 lines
Lines 118-124 public: Tools/DumpRenderTree/TestRunner.h_sec1
118
    void setPopupBlockingEnabled(bool);
118
    void setPopupBlockingEnabled(bool);
119
    void setPrivateBrowsingEnabled(bool);
119
    void setPrivateBrowsingEnabled(bool);
120
    void setTabKeyCyclesThroughElements(bool);
120
    void setTabKeyCyclesThroughElements(bool);
121
    void setUseDashboardCompatibilityMode(bool flag);
122
    void setUserStyleSheetEnabled(bool flag);
121
    void setUserStyleSheetEnabled(bool flag);
123
    void setUserStyleSheetLocation(JSStringRef path);
122
    void setUserStyleSheetLocation(JSStringRef path);
124
    void setValueForUser(JSContextRef, JSValueRef nodeObject, JSStringRef value);
123
    void setValueForUser(JSContextRef, JSValueRef nodeObject, JSStringRef value);
- Tools/DumpRenderTree/mac/DumpRenderTree.mm -3 lines
Lines 1861-1869 static void resetWebViewToConsistentStat Tools/DumpRenderTree/mac/DumpRenderTree.mm_sec1
1861
    [policyDelegate setControllerToNotifyDone:0];
1861
    [policyDelegate setControllerToNotifyDone:0];
1862
    [uiDelegate resetToConsistentStateBeforeTesting:options];
1862
    [uiDelegate resetToConsistentStateBeforeTesting:options];
1863
    [frameLoadDelegate resetToConsistentState];
1863
    [frameLoadDelegate resetToConsistentState];
1864
#if !PLATFORM(IOS_FAMILY)
1865
    [webView _setDashboardBehavior:WebDashboardBehaviorUseBackwardCompatibilityMode to:NO];
1866
#endif
1867
    [webView _clearMainFrameName];
1864
    [webView _clearMainFrameName];
1868
    [[webView undoManager] removeAllActions];
1865
    [[webView undoManager] removeAllActions];
1869
    [WebView _removeAllUserContentFromGroup:[webView groupName]];
1866
    [WebView _removeAllUserContentFromGroup:[webView groupName]];
- Tools/DumpRenderTree/mac/TestRunnerMac.mm -7 lines
Lines 591-603 void TestRunner::setPagePaused(bool paus Tools/DumpRenderTree/mac/TestRunnerMac.mm_sec1
591
}
591
}
592
#endif
592
#endif
593
593
594
void TestRunner::setUseDashboardCompatibilityMode(bool flag)
595
{
596
#if !PLATFORM(IOS_FAMILY)
597
    [[mainFrame webView] _setDashboardBehavior:WebDashboardBehaviorUseBackwardCompatibilityMode to:flag];
598
#endif
599
}
600
601
void TestRunner::setUserStyleSheetEnabled(bool flag)
594
void TestRunner::setUserStyleSheetEnabled(bool flag)
602
{
595
{
603
    [[WebPreferences standardPreferences] setUserStyleSheetEnabled:flag];
596
    [[WebPreferences standardPreferences] setUserStyleSheetEnabled:flag];
- Tools/DumpRenderTree/mac/Configurations/Base.xcconfig -2 / +1 lines
Lines 44-51 PLATFORM_HEADER_SEARCH_PATHS[sdk=iphone* Tools/DumpRenderTree/mac/Configurations/Base.xcconfig_sec1
44
PLATFORM_HEADER_SEARCH_PATHS[sdk=macosx*] = mac/InternalHeaders $(NEXT_ROOT)/usr/local/include/WebCoreTestSupport;
44
PLATFORM_HEADER_SEARCH_PATHS[sdk=macosx*] = mac/InternalHeaders $(NEXT_ROOT)/usr/local/include/WebCoreTestSupport;
45
GCC_NO_COMMON_BLOCKS = YES;
45
GCC_NO_COMMON_BLOCKS = YES;
46
ENABLE_STRICT_OBJC_MSGSEND=YES;
46
ENABLE_STRICT_OBJC_MSGSEND=YES;
47
GCC_PREPROCESSOR_DEFINITIONS = $(DEBUG_DEFINES) U_DISABLE_RENAMING=1 U_SHOW_CPLUSPLUS_API=0 $(GCC_PREPROCESSOR_DEFINITIONS_$(PLATFORM_NAME));
47
GCC_PREPROCESSOR_DEFINITIONS = $(DEBUG_DEFINES) U_DISABLE_RENAMING=1 U_SHOW_CPLUSPLUS_API=0;
48
GCC_PREPROCESSOR_DEFINITIONS_macosx = ENABLE_DASHBOARD_SUPPORT;
49
DEBUG_INFORMATION_FORMAT = dwarf-with-dsym;
48
DEBUG_INFORMATION_FORMAT = dwarf-with-dsym;
50
PREBINDING = NO
49
PREBINDING = NO
51
GCC_C_LANGUAGE_STANDARD = gnu99
50
GCC_C_LANGUAGE_STANDARD = gnu99
- Tools/ImageDiff/cg/Configurations/Base.xcconfig -2 / +1 lines
Lines 35-42 CLANG_ENABLE_OBJC_WEAK = YES; Tools/ImageDiff/cg/Configurations/Base.xcconfig_sec1
35
CLANG_WARN_CXX0X_EXTENSIONS = NO;
35
CLANG_WARN_CXX0X_EXTENSIONS = NO;
36
GCC_NO_COMMON_BLOCKS = YES;
36
GCC_NO_COMMON_BLOCKS = YES;
37
ENABLE_STRICT_OBJC_MSGSEND=YES;
37
ENABLE_STRICT_OBJC_MSGSEND=YES;
38
GCC_PREPROCESSOR_DEFINITIONS = $(DEBUG_DEFINES) $(GCC_PREPROCESSOR_DEFINITIONS_$(PLATFORM_NAME));
38
GCC_PREPROCESSOR_DEFINITIONS = $(DEBUG_DEFINES);
39
GCC_PREPROCESSOR_DEFINITIONS_macosx = ENABLE_DASHBOARD_SUPPORT;
40
DEBUG_INFORMATION_FORMAT = dwarf-with-dsym;
39
DEBUG_INFORMATION_FORMAT = dwarf-with-dsym;
41
PREBINDING = NO
40
PREBINDING = NO
42
GCC_C_LANGUAGE_STANDARD = gnu99
41
GCC_C_LANGUAGE_STANDARD = gnu99
- Tools/Scripts/webkitperl/FeatureList.pm -4 lines
Lines 80-86 my ( Tools/Scripts/webkitperl/FeatureList.pm_sec1
80
    $cursorVisibilitySupport,
80
    $cursorVisibilitySupport,
81
    $customSchemeHandlerSupport,
81
    $customSchemeHandlerSupport,
82
    $darkModeCSSSupport,
82
    $darkModeCSSSupport,
83
    $dashboardSupportSupport,
84
    $dataInteractionSupport,
83
    $dataInteractionSupport,
85
    $datacueValueSupport,
84
    $datacueValueSupport,
86
    $datalistElementSupport,
85
    $datalistElementSupport,
Lines 279-287 my @features = ( Tools/Scripts/webkitperl/FeatureList.pm_sec2
279
    { option => "dark-mode-css", desc => "Toggle Dark Mode CSS support",
278
    { option => "dark-mode-css", desc => "Toggle Dark Mode CSS support",
280
      define => "ENABLE_DARK_MODE_CSS", value => \$darkModeCSSSupport },
279
      define => "ENABLE_DARK_MODE_CSS", value => \$darkModeCSSSupport },
281
280
282
    { option => "dashboard-support", desc => "Toggle dashboard support",
283
      define => "ENABLE_DASHBOARD_SUPPORT", value => \$dashboardSupportSupport },
284
285
    { option => "datacue-value", desc => "Toggle datacue value support",
281
    { option => "datacue-value", desc => "Toggle datacue value support",
286
      define => "ENABLE_DATACUE_VALUE", value => \$datacueValueSupport },
282
      define => "ENABLE_DATACUE_VALUE", value => \$datacueValueSupport },
287
283
- Tools/TestWebKitAPI/Configurations/Base.xcconfig -1 lines
Lines 37-43 HEADER_SEARCH_PATHS = ${BUILT_PRODUCTS_D Tools/TestWebKitAPI/Configurations/Base.xcconfig_sec1
37
37
38
GCC_NO_COMMON_BLOCKS = YES;
38
GCC_NO_COMMON_BLOCKS = YES;
39
GCC_PREPROCESSOR_DEFINITIONS = $(DEBUG_DEFINES) $(FEATURE_DEFINES) U_DISABLE_RENAMING=1 U_SHOW_CPLUSPLUS_API=0 $(GCC_PREPROCESSOR_DEFINITIONS_$(PLATFORM_NAME));
39
GCC_PREPROCESSOR_DEFINITIONS = $(DEBUG_DEFINES) $(FEATURE_DEFINES) U_DISABLE_RENAMING=1 U_SHOW_CPLUSPLUS_API=0 $(GCC_PREPROCESSOR_DEFINITIONS_$(PLATFORM_NAME));
40
GCC_PREPROCESSOR_DEFINITIONS_macosx = ENABLE_DASHBOARD_SUPPORT;
41
DEBUG_INFORMATION_FORMAT = dwarf-with-dsym;
40
DEBUG_INFORMATION_FORMAT = dwarf-with-dsym;
42
PREBINDING = NO
41
PREBINDING = NO
43
GCC_C_LANGUAGE_STANDARD = gnu99
42
GCC_C_LANGUAGE_STANDARD = gnu99
- Tools/TestWebKitAPI/Configurations/FeatureDefines.xcconfig -4 / +1 lines
Lines 117-125 ENABLE_CUSTOM_SCHEME_HANDLER = ; Tools/TestWebKitAPI/Configurations/FeatureDefines.xcconfig_sec1
117
ENABLE_DARK_MODE_CSS = $(ENABLE_DARK_MODE_CSS_$(WK_PLATFORM_NAME));
117
ENABLE_DARK_MODE_CSS = $(ENABLE_DARK_MODE_CSS_$(WK_PLATFORM_NAME));
118
ENABLE_DARK_MODE_CSS_macosx = ENABLE_DARK_MODE_CSS;
118
ENABLE_DARK_MODE_CSS_macosx = ENABLE_DARK_MODE_CSS;
119
119
120
ENABLE_DASHBOARD_SUPPORT = $(ENABLE_DASHBOARD_SUPPORT_$(WK_PLATFORM_NAME));
121
ENABLE_DASHBOARD_SUPPORT_macosx = ENABLE_DASHBOARD_SUPPORT;
122
123
ENABLE_DATACUE_VALUE = ENABLE_DATACUE_VALUE;
120
ENABLE_DATACUE_VALUE = ENABLE_DATACUE_VALUE;
124
121
125
ENABLE_DATALIST_ELEMENT = ENABLE_DATALIST_ELEMENT;
122
ENABLE_DATALIST_ELEMENT = ENABLE_DATALIST_ELEMENT;
Lines 445-448 ENABLE_WIRELESS_PLAYBACK_TARGET = ENABLE Tools/TestWebKitAPI/Configurations/FeatureDefines.xcconfig_sec2
445
442
446
ENABLE_XSLT = ENABLE_XSLT;
443
ENABLE_XSLT = ENABLE_XSLT;
447
444
448
FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCESSIBILITY_ISOLATED_TREE) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_CONIC_GRADIENTS) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_PAINTING_API) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS_TYPED_OM) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_C_LOOP) $(ENABLE_DARK_MODE_CSS) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FAST_JIT_PERMISSIONS) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_KEYBOARD_CODE_ATTRIBUTE) $(ENABLE_KEYBOARD_KEY_ATTRIBUTE) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MAC_VIDEO_TOOLBOX) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_MEMORY_SAMPLER) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION) $(ENABLE_NOTIFICATIONS) $(ENABLE_OVERFLOW_SCROLLING_TOUCH) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_EVENTS) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESIZE_OBSERVER) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_LOAD_STATISTICS) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SANDBOX_EXTENSIONS) $(ENABLE_SERVER_PRECONNECT) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SHAREABLE_RESOURCE) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USERSELECT_ALL) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBASSEMBLY_STREAMING_API) $(ENABLE_WEBDRIVER_MOUSE_INTERACTIONS) $(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS) $(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBGPU) $(ENABLE_WEB_API_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_CRYPTO) $(ENABLE_WEB_PROCESS_SANDBOX) $(ENABLE_WEB_RTC) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT);
445
FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCESSIBILITY_ISOLATED_TREE) $(ENABLE_APPLE_PAY) $(ENABLE_APPLE_PAY_SESSION_V3) $(ENABLE_APPLE_PAY_SESSION_V4) $(ENABLE_APPLICATION_MANIFEST) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_CONIC_GRADIENTS) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_PAINTING_API) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS_TYPED_OM) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_C_LOOP) $(ENABLE_DARK_MODE_CSS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_INTERACTION) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DRAG_SUPPORT) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_EXPERIMENTAL_FEATURES) $(ENABLE_FAST_JIT_PERMISSIONS) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_KEYBOARD_CODE_ATTRIBUTE) $(ENABLE_KEYBOARD_KEY_ATTRIBUTE) $(ENABLE_LAYOUT_FORMATTING_CONTEXT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LETTERPRESS) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MAC_VIDEO_TOOLBOX) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_MEMORY_SAMPLER) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_STANDALONE) $(ENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION) $(ENABLE_NOTIFICATIONS) $(ENABLE_OVERFLOW_SCROLLING_TOUCH) $(ENABLE_PAYMENT_REQUEST) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_EVENTS) $(ENABLE_POINTER_LOCK) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESIZE_OBSERVER) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_LOAD_STATISTICS) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SANDBOX_EXTENSIONS) $(ENABLE_SERVER_PRECONNECT) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SERVICE_WORKER) $(ENABLE_SHAREABLE_RESOURCE) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_USERSELECT_ALL) $(ENABLE_USER_MESSAGE_HANDLERS) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBASSEMBLY_STREAMING_API) $(ENABLE_WEBDRIVER_MOUSE_INTERACTIONS) $(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS) $(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEBGPU) $(ENABLE_WEB_API_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_AUTHN) $(ENABLE_WEB_CRYPTO) $(ENABLE_WEB_PROCESS_SANDBOX) $(ENABLE_WEB_RTC) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT);
- Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj -4 lines
Lines 507-513 Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj_sec1
507
		7CCE7EB61A411A7E00447C4C /* CancelLoadFromResourceLoadDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 26DF5A5D15A29BAA003689C2 /* CancelLoadFromResourceLoadDelegate.mm */; };
507
		7CCE7EB61A411A7E00447C4C /* CancelLoadFromResourceLoadDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 26DF5A5D15A29BAA003689C2 /* CancelLoadFromResourceLoadDelegate.mm */; };
508
		7CCE7EB71A411A7E00447C4C /* CloseNewWindowInNavigationPolicyDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 290A9BB51735DE8A00D71BBC /* CloseNewWindowInNavigationPolicyDelegate.mm */; };
508
		7CCE7EB71A411A7E00447C4C /* CloseNewWindowInNavigationPolicyDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 290A9BB51735DE8A00D71BBC /* CloseNewWindowInNavigationPolicyDelegate.mm */; };
509
		7CCE7EB81A411A7E00447C4C /* ContextMenuCanCopyURL.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5142B2701517C88B00C32B19 /* ContextMenuCanCopyURL.mm */; };
509
		7CCE7EB81A411A7E00447C4C /* ContextMenuCanCopyURL.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5142B2701517C88B00C32B19 /* ContextMenuCanCopyURL.mm */; };
510
		7CCE7EB91A411A7E00447C4C /* DeviceScaleFactorInDashboardRegions.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3776BC62150946BC0043A66D /* DeviceScaleFactorInDashboardRegions.mm */; };
511
		7CCE7EBA1A411A7E00447C4C /* DeviceScaleFactorOnBack.mm in Sources */ = {isa = PBXBuildFile; fileRef = 939BA91614103412001A01BD /* DeviceScaleFactorOnBack.mm */; };
510
		7CCE7EBA1A411A7E00447C4C /* DeviceScaleFactorOnBack.mm in Sources */ = {isa = PBXBuildFile; fileRef = 939BA91614103412001A01BD /* DeviceScaleFactorOnBack.mm */; };
512
		7CCE7EBB1A411A7E00447C4C /* DOMHTMLTableCellCellAbove.mm in Sources */ = {isa = PBXBuildFile; fileRef = 37E1064A1697676400B78BD0 /* DOMHTMLTableCellCellAbove.mm */; };
511
		7CCE7EBB1A411A7E00447C4C /* DOMHTMLTableCellCellAbove.mm in Sources */ = {isa = PBXBuildFile; fileRef = 37E1064A1697676400B78BD0 /* DOMHTMLTableCellCellAbove.mm */; };
513
		7CCE7EBC1A411A7E00447C4C /* DOMNodeFromJSObject.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3751AF7A169518F800764319 /* DOMNodeFromJSObject.mm */; };
512
		7CCE7EBC1A411A7E00447C4C /* DOMNodeFromJSObject.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3751AF7A169518F800764319 /* DOMNodeFromJSObject.mm */; };
Lines 1567-1573 Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj_sec2
1567
		3760C4F0211249AF00233ACC /* AttrStyle.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = AttrStyle.mm; sourceTree = "<group>"; };
1566
		3760C4F0211249AF00233ACC /* AttrStyle.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = AttrStyle.mm; sourceTree = "<group>"; };
1568
		3760C4F221124BD000233ACC /* AttrStyle.html */ = {isa = PBXFileReference; lastKnownFileType = text.html; path = AttrStyle.html; sourceTree = "<group>"; };
1567
		3760C4F221124BD000233ACC /* AttrStyle.html */ = {isa = PBXFileReference; lastKnownFileType = text.html; path = AttrStyle.html; sourceTree = "<group>"; };
1569
		376C8C041D6E197C007D2BB9 /* FrameHandle.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FrameHandle.cpp; sourceTree = "<group>"; };
1568
		376C8C041D6E197C007D2BB9 /* FrameHandle.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FrameHandle.cpp; sourceTree = "<group>"; };
1570
		3776BC62150946BC0043A66D /* DeviceScaleFactorInDashboardRegions.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = DeviceScaleFactorInDashboardRegions.mm; sourceTree = "<group>"; };
1571
		3781746C2198AE2400062C26 /* WKProcessPoolConfiguration.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = WKProcessPoolConfiguration.mm; sourceTree = "<group>"; };
1569
		3781746C2198AE2400062C26 /* WKProcessPoolConfiguration.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = WKProcessPoolConfiguration.mm; sourceTree = "<group>"; };
1572
		378E64711632646D00B6C676 /* InjectedBundleFrameHitTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InjectedBundleFrameHitTest.cpp; sourceTree = "<group>"; };
1570
		378E64711632646D00B6C676 /* InjectedBundleFrameHitTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InjectedBundleFrameHitTest.cpp; sourceTree = "<group>"; };
1573
		378E64751632655D00B6C676 /* InjectedBundleFrameHitTest_Bundle.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InjectedBundleFrameHitTest_Bundle.cpp; sourceTree = "<group>"; };
1571
		378E64751632655D00B6C676 /* InjectedBundleFrameHitTest_Bundle.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InjectedBundleFrameHitTest_Bundle.cpp; sourceTree = "<group>"; };
Lines 3629-3635 Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj_sec3
3629
				5142B2701517C88B00C32B19 /* ContextMenuCanCopyURL.mm */,
3627
				5142B2701517C88B00C32B19 /* ContextMenuCanCopyURL.mm */,
3630
				37FB72951DB2E82F00E41BE4 /* ContextMenuDefaultItemsHaveTags.mm */,
3628
				37FB72951DB2E82F00E41BE4 /* ContextMenuDefaultItemsHaveTags.mm */,
3631
				7AEAD47C1E20113800416EFE /* CrossPartitionFileSchemeAccess.mm */,
3629
				7AEAD47C1E20113800416EFE /* CrossPartitionFileSchemeAccess.mm */,
3632
				3776BC62150946BC0043A66D /* DeviceScaleFactorInDashboardRegions.mm */,
3633
				939BA91614103412001A01BD /* DeviceScaleFactorOnBack.mm */,
3630
				939BA91614103412001A01BD /* DeviceScaleFactorOnBack.mm */,
3634
				37E1064A1697676400B78BD0 /* DOMHTMLTableCellCellAbove.mm */,
3631
				37E1064A1697676400B78BD0 /* DOMHTMLTableCellCellAbove.mm */,
3635
				2D51A0C51C8BF00400765C45 /* DOMHTMLVideoElementWrapper.mm */,
3632
				2D51A0C51C8BF00400765C45 /* DOMHTMLVideoElementWrapper.mm */,
Lines 4192-4198 Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj_sec4
4192
				2D1646E21D1862CD00015A1A /* DeferredViewInWindowStateChange.mm in Sources */,
4189
				2D1646E21D1862CD00015A1A /* DeferredViewInWindowStateChange.mm in Sources */,
4193
				2D2D13B3229F408B005068AF /* DeviceManagementRestrictions.mm in Sources */,
4190
				2D2D13B3229F408B005068AF /* DeviceManagementRestrictions.mm in Sources */,
4194
				46918EFC2237283C00468DFE /* DeviceOrientation.mm in Sources */,
4191
				46918EFC2237283C00468DFE /* DeviceOrientation.mm in Sources */,
4195
				7CCE7EB91A411A7E00447C4C /* DeviceScaleFactorInDashboardRegions.mm in Sources */,
4196
				7CCE7EBA1A411A7E00447C4C /* DeviceScaleFactorOnBack.mm in Sources */,
4192
				7CCE7EBA1A411A7E00447C4C /* DeviceScaleFactorOnBack.mm in Sources */,
4197
				7C83E04D1D0A641800FEBCF3 /* DFACombiner.cpp in Sources */,
4193
				7C83E04D1D0A641800FEBCF3 /* DFACombiner.cpp in Sources */,
4198
				7C83E04E1D0A641800FEBCF3 /* DFAMinimizer.cpp in Sources */,
4194
				7C83E04E1D0A641800FEBCF3 /* DFAMinimizer.cpp in Sources */,
- Tools/TestWebKitAPI/Tests/mac/DeviceScaleFactorInDashboardRegions.mm -79 lines
Lines 1-79 Tools/TestWebKitAPI/Tests/mac/DeviceScaleFactorInDashboardRegions.mm_sec1
1
/*
2
 * Copyright (C) 2012 Apple Inc. All rights reserved.
3
 *
4
 * Redistribution and use in source and binary forms, with or without
5
 * modification, are permitted provided that the following conditions
6
 * are met:
7
 * 1. Redistributions of source code must retain the above copyright
8
 *    notice, this list of conditions and the following disclaimer.
9
 * 2. Redistributions in binary form must reproduce the above copyright
10
 *    notice, this list of conditions and the following disclaimer in the
11
 *    documentation and/or other materials provided with the distribution.
12
 *
13
 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
14
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
17
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23
 * THE POSSIBILITY OF SUCH DAMAGE.
24
 */
25
26
#import "config.h"
27
28
#import "PlatformUtilities.h"
29
#import "SyntheticBackingScaleFactorWindow.h"
30
#import "Test.h"
31
#import <WebKit/WebDashboardRegion.h>
32
#import <wtf/RetainPtr.h>
33
34
static bool gotDashboardRegions;
35
static NSDictionary *regions;
36
37
@interface DeviceScaleFactorInDashboardRegionsUIDelegate : NSObject <WebUIDelegate> {
38
}
39
@end
40
41
@implementation DeviceScaleFactorInDashboardRegionsUIDelegate
42
43
- (void)webView:(WebView *)webView dashboardRegionsChanged:(NSDictionary *)newRegions
44
{
45
    gotDashboardRegions = true;
46
    regions = [newRegions retain];
47
}
48
49
@end
50
51
namespace TestWebKitAPI {
52
53
TEST(WebKitLegacy, DeviceScaleFactorInDashboardRegions)
54
{
55
    NSRect viewFrame = NSMakeRect(0, 0, 800, 600);
56
    RetainPtr<SyntheticBackingScaleFactorWindow> window = adoptNS([[SyntheticBackingScaleFactorWindow alloc] initWithContentRect:viewFrame styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:YES]);
57
    [window.get() setReleasedWhenClosed:NO];
58
    [window.get() setBackingScaleFactor:2];
59
60
    RetainPtr<WebView> webView = adoptNS([[WebView alloc] initWithFrame:viewFrame frameName:nil groupName:nil]);
61
    RetainPtr<DeviceScaleFactorInDashboardRegionsUIDelegate> uiDelegate = adoptNS([DeviceScaleFactorInDashboardRegionsUIDelegate new]);
62
    webView.get().UIDelegate = uiDelegate.get();
63
    [window.get().contentView addSubview:webView.get()];
64
65
    [webView.get().mainFrame loadHTMLString:@"<div style='position: absolute; top: 10px; left: 10px; width: 50px; height: 50px; -webkit-dashboard-region: dashboard-region(control rectangle);'></div>" baseURL:[NSURL URLWithString:@"about:blank"]];
66
67
    Util::run(&gotDashboardRegions);
68
69
    NSRect controlRegionRect = [[[regions objectForKey:@"control"] objectAtIndex:0] dashboardRegionRect];
70
71
    EXPECT_EQ(10, controlRegionRect.origin.x);
72
    EXPECT_EQ(10, controlRegionRect.origin.y);
73
    EXPECT_EQ(50, controlRegionRect.size.width);
74
    EXPECT_EQ(50, controlRegionRect.size.height);
75
76
    [regions release];
77
}
78
79
} // namespace TestWebKitAPI
- Tools/WebKitTestRunner/Configurations/Base.xcconfig -1 / +1 lines
Lines 56-62 CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIO Tools/WebKitTestRunner/Configurations/Base.xcconfig_sec1
56
HEADER_SEARCH_PATHS = $(BUILT_PRODUCTS_DIR)/usr/local/include $(BUILT_PRODUCTS_DIR)/WebCoreTestSupport $(WEBCORE_PRIVATE_HEADERS_DIR)/ForwardingHeaders $(NEXT_ROOT)/usr/local/include/WebCoreTestSupport $(PLATFORM_HEADER_SEARCH_PATHS);
56
HEADER_SEARCH_PATHS = $(BUILT_PRODUCTS_DIR)/usr/local/include $(BUILT_PRODUCTS_DIR)/WebCoreTestSupport $(WEBCORE_PRIVATE_HEADERS_DIR)/ForwardingHeaders $(NEXT_ROOT)/usr/local/include/WebCoreTestSupport $(PLATFORM_HEADER_SEARCH_PATHS);
57
PLATFORM_HEADER_SEARCH_PATHS[sdk=iphone*] = $(SRCROOT)/../../Source/WebKit/Platform/spi/ios;
57
PLATFORM_HEADER_SEARCH_PATHS[sdk=iphone*] = $(SRCROOT)/../../Source/WebKit/Platform/spi/ios;
58
GCC_NO_COMMON_BLOCKS = YES;
58
GCC_NO_COMMON_BLOCKS = YES;
59
GCC_PREPROCESSOR_DEFINITIONS = $(DEBUG_DEFINES) U_DISABLE_RENAMING=1 U_SHOW_CPLUSPLUS_API=0 ENABLE_DASHBOARD_SUPPORT;
59
GCC_PREPROCESSOR_DEFINITIONS = $(DEBUG_DEFINES) U_DISABLE_RENAMING=1 U_SHOW_CPLUSPLUS_API=0;
60
DEBUG_INFORMATION_FORMAT = dwarf-with-dsym;
60
DEBUG_INFORMATION_FORMAT = dwarf-with-dsym;
61
PREBINDING = NO
61
PREBINDING = NO
62
GCC_C_LANGUAGE_STANDARD = gnu99
62
GCC_C_LANGUAGE_STANDARD = gnu99
- Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp -1 lines
Lines 494-500 void InjectedBundle::beginTesting(WKDict Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp_sec1
494
    WKBundleSetAllowUniversalAccessFromFileURLs(m_bundle, m_pageGroup, true);
494
    WKBundleSetAllowUniversalAccessFromFileURLs(m_bundle, m_pageGroup, true);
495
    WKBundleSetJavaScriptCanAccessClipboard(m_bundle, m_pageGroup, true);
495
    WKBundleSetJavaScriptCanAccessClipboard(m_bundle, m_pageGroup, true);
496
    WKBundleSetPrivateBrowsingEnabled(m_bundle, m_pageGroup, false);
496
    WKBundleSetPrivateBrowsingEnabled(m_bundle, m_pageGroup, false);
497
    WKBundleSetUseDashboardCompatibilityMode(m_bundle, m_pageGroup, false);
498
    WKBundleSetAuthorAndUserStylesEnabled(m_bundle, m_pageGroup, true);
497
    WKBundleSetAuthorAndUserStylesEnabled(m_bundle, m_pageGroup, true);
499
    WKBundleSetFrameFlatteningEnabled(m_bundle, m_pageGroup, false);
498
    WKBundleSetFrameFlatteningEnabled(m_bundle, m_pageGroup, false);
500
    WKBundleSetMinimumLogicalFontSize(m_bundle, m_pageGroup, 9);
499
    WKBundleSetMinimumLogicalFontSize(m_bundle, m_pageGroup, 9);
- Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp -10 lines
Lines 536-551 void TestRunner::setPrivateBrowsingEnabl Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp_sec1
536
    WKBundleSetPrivateBrowsingEnabled(injectedBundle.bundle(), injectedBundle.pageGroup(), enabled);
536
    WKBundleSetPrivateBrowsingEnabled(injectedBundle.bundle(), injectedBundle.pageGroup(), enabled);
537
}
537
}
538
538
539
void TestRunner::setUseDashboardCompatibilityMode(bool enabled)
540
{
541
#if ENABLE(DASHBOARD_SUPPORT)
542
    auto& injectedBundle = InjectedBundle::singleton();
543
    WKBundleSetUseDashboardCompatibilityMode(injectedBundle.bundle(), injectedBundle.pageGroup(), enabled);
544
#else
545
    UNUSED_PARAM(enabled);
546
#endif
547
}
548
    
549
void TestRunner::setPopupBlockingEnabled(bool enabled)
539
void TestRunner::setPopupBlockingEnabled(bool enabled)
550
{
540
{
551
    auto& injectedBundle = InjectedBundle::singleton();
541
    auto& injectedBundle = InjectedBundle::singleton();
- Tools/WebKitTestRunner/InjectedBundle/TestRunner.h -1 lines
Lines 113-119 public: Tools/WebKitTestRunner/InjectedBundle/TestRunner.h_sec1
113
    void setPluginsEnabled(bool);
113
    void setPluginsEnabled(bool);
114
    void setJavaScriptCanAccessClipboard(bool);
114
    void setJavaScriptCanAccessClipboard(bool);
115
    void setPrivateBrowsingEnabled(bool);
115
    void setPrivateBrowsingEnabled(bool);
116
    void setUseDashboardCompatibilityMode(bool);
117
    void setPopupBlockingEnabled(bool);
116
    void setPopupBlockingEnabled(bool);
118
    void setAuthorAndUserStylesEnabled(bool);
117
    void setAuthorAndUserStylesEnabled(bool);
119
    void setCustomPolicyDelegate(bool enabled, bool permissive = false);
118
    void setCustomPolicyDelegate(bool enabled, bool permissive = false);
- Tools/WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl -1 lines
Lines 86-92 interface TestRunner { Tools/WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl_sec1
86
    void setPluginsEnabled(boolean value);
86
    void setPluginsEnabled(boolean value);
87
    void setJavaScriptCanAccessClipboard(boolean value);
87
    void setJavaScriptCanAccessClipboard(boolean value);
88
    void setPrivateBrowsingEnabled(boolean value);
88
    void setPrivateBrowsingEnabled(boolean value);
89
    void setUseDashboardCompatibilityMode(boolean value);
90
    void setPopupBlockingEnabled(boolean value);
89
    void setPopupBlockingEnabled(boolean value);
91
    void setAuthorAndUserStylesEnabled(boolean value);
90
    void setAuthorAndUserStylesEnabled(boolean value);
92
    void setCustomPolicyDelegate(boolean enabled, boolean permissive);
91
    void setCustomPolicyDelegate(boolean enabled, boolean permissive);
- LayoutTests/ChangeLog +55 lines
Lines 1-3 LayoutTests/ChangeLog_sec1
1
2019-06-06  Sam Weinig  <weinig@apple.com>
2
3
        Remove Dashboard support
4
        https://bugs.webkit.org/show_bug.cgi?id=198615
5
6
        Reviewed by NOBODY (OOPS!).
7
8
        * TestExpectations:
9
        * cssom/cssvalue-comparison-expected.txt:
10
        * cssom/cssvalue-comparison.html:
11
        * fast/canvas/canvas-gradient-addStop-error-expected.txt:
12
        * fast/canvas/canvas-gradient-addStop-error.html:
13
        * fast/canvas/fill-stroke-clip-reset-path-expected.txt:
14
        * fast/canvas/fill-stroke-clip-reset-path.html:
15
        * fast/css/dashboard-regions-attr-crash-expected.txt: Removed.
16
        * fast/css/dashboard-regions-attr-crash.html: Removed.
17
        * fast/css/dashboard-regions-undefined-length-assertion-expected.txt: Removed.
18
        * fast/css/dashboard-regions-undefined-length-assertion.html: Removed.
19
        * fast/xmlhttprequest/set-dangerous-headers-in-dashboard-expected.txt: Removed.
20
        * fast/xmlhttprequest/set-dangerous-headers-in-dashboard.html: Removed.
21
        * http/tests/xmlhttprequest/default-content-type-dashboard-expected.txt: Removed.
22
        * http/tests/xmlhttprequest/default-content-type-dashboard.html: Removed.
23
        * http/tests/xmlhttprequest/svg-created-by-xhr-allowed-in-dashboard-expected.txt: Removed.
24
        * http/tests/xmlhttprequest/svg-created-by-xhr-allowed-in-dashboard.html: Removed.
25
        * legacy-animation-engine/cssom/cssvalue-comparison-expected.txt:
26
        * legacy-animation-engine/cssom/cssvalue-comparison.html:
27
        * mathml/mathml-in-dashboard-expected.txt: Removed.
28
        * mathml/mathml-in-dashboard.html: Removed.
29
        * platform/gtk/TestExpectations:
30
        * platform/ios-simulator-wk2/TestExpectations:
31
        * platform/ios-wk1/TestExpectations:
32
        * platform/ios/TestExpectations:
33
        * platform/ios/mathml/mathml-in-dashboard-expected.txt: Removed.
34
        * platform/mac/TestExpectations:
35
        * platform/mac/fast/css/dashboard-region-parser-expected.txt: Removed.
36
        * platform/mac/fast/css/dashboard-region-parser.html: Removed.
37
        * platform/mac/fast/dom/HTMLImageElement/dashboard-src-quirk-expected.txt: Removed.
38
        * platform/mac/fast/dom/HTMLImageElement/dashboard-src-quirk.html: Removed.
39
        * platform/mac/mathml/mathml-in-dashboard-expected.png: Removed.
40
        * platform/mac/mathml/mathml-in-dashboard-expected.txt: Removed.
41
        * platform/mac/svg/custom/embedded-svg-disallowed-in-dashboard-expected.png: Removed.
42
        * platform/mac/svg/custom/manually-parsed-embedded-svg-disallowed-in-dashboard-expected.png: Removed.
43
        * platform/mac/svg/custom/manually-parsed-svg-disallowed-in-dashboard-expected.png: Removed.
44
        * platform/mac/svg/custom/svg-disallowed-in-dashboard-object-expected.png: Removed.
45
        * platform/win/TestExpectations:
46
        * platform/wincairo/TestExpectations:
47
        * svg/custom/embedded-svg-allowed-in-dashboard-expected.txt: Removed.
48
        * svg/custom/embedded-svg-allowed-in-dashboard.xml: Removed.
49
        * svg/custom/manually-parsed-embedded-svg-allowed-in-dashboard-expected.txt: Removed.
50
        * svg/custom/manually-parsed-embedded-svg-allowed-in-dashboard.html: Removed.
51
        * svg/custom/manually-parsed-svg-allowed-in-dashboard-expected.txt: Removed.
52
        * svg/custom/manually-parsed-svg-allowed-in-dashboard.html: Removed.
53
        * svg/custom/svg-allowed-in-dashboard-object-expected.txt: Removed.
54
        * svg/custom/svg-allowed-in-dashboard-object.html: Removed.
55
1
2019-06-08  Cathie Chen  <cathiechen@igalia.com>
56
2019-06-08  Cathie Chen  <cathiechen@igalia.com>
2
57
3
        resize-observer/element-leak.html fails on Windows platform
58
        resize-observer/element-leak.html fails on Windows platform
- LayoutTests/TestExpectations -3 lines
Lines 87-95 fast/forms/search/search-results-hidden- LayoutTests/TestExpectations_sec1
87
# These tests don't have to be platform-specific, but they are only implemented on Mac now.
87
# These tests don't have to be platform-specific, but they are only implemented on Mac now.
88
fast/images/eps-as-image.html [ Skip ]
88
fast/images/eps-as-image.html [ Skip ]
89
89
90
# Only Mac supports Dashboard widgets.
91
fast/xmlhttprequest/set-dangerous-headers-in-dashboard.html [ WontFix ]
92
93
# Only applicable on macOS
90
# Only applicable on macOS
94
css-dark-mode [ Skip ]
91
css-dark-mode [ Skip ]
95
fast/css/apple-system-control-colors.html [ Skip ]
92
fast/css/apple-system-control-colors.html [ Skip ]
- LayoutTests/cssom/cssvalue-comparison-expected.txt -3 lines
Lines 104-110 PASS Two CSSValues "image-set(url(dummy: LayoutTests/cssom/cssvalue-comparison-expected.txt_sec1
104
PASS Two CSSValues "grayscale(100%) sepia(100%)" for property "-webkit-filter" are equal. 
104
PASS Two CSSValues "grayscale(100%) sepia(100%)" for property "-webkit-filter" are equal. 
105
PASS Two CSSValues "sepia(10%) grayscale(50%)" for property "-webkit-filter" are equal. 
105
PASS Two CSSValues "sepia(10%) grayscale(50%)" for property "-webkit-filter" are equal. 
106
PASS Two CSSValues "grayscale(100%) sepia(100%)" and "sepia(10%) grayscale(50%)" for property "-webkit-filter" are not equal. 
106
PASS Two CSSValues "grayscale(100%) sepia(100%)" and "sepia(10%) grayscale(50%)" for property "-webkit-filter" are not equal. 
107
PASS Two CSSValues "dashboard-region(label circle)" for property "-webkit-dashboard-region" are equal. 
108
PASS Two CSSValues "dashboard-region(label circle 1px 2px 3px 4px) dashboard-region(label rectangle 5px 6px 7px 8px)" for property "-webkit-dashboard-region" are equal. 
109
PASS Two CSSValues "dashboard-region(label circle)" and "dashboard-region(label circle 1px 2px 3px 4px) dashboard-region(label rectangle 5px 6px 7px 8px)" for property "-webkit-dashboard-region" are not equal. 
110
107
- LayoutTests/cssom/cssvalue-comparison.html -2 / +1 lines
Lines 60-67 function run() { LayoutTests/cssom/cssvalue-comparison.html_sec1
60
                  {"-webkit-line-box-contain" : ["inline-box", "font", "glyphs", "replaced"]}, // line-box-contain
60
                  {"-webkit-line-box-contain" : ["inline-box", "font", "glyphs", "replaced"]}, // line-box-contain
61
                  {"background-image" : ["-webkit-image-set(url(dummy://test.png) 1x, url(dummy://test.png) 2x)", "-webkit-image-set(url(dummy://small.png) 2x, url(dummy://big.png) 3x)"]}, // image set
61
                  {"background-image" : ["-webkit-image-set(url(dummy://test.png) 1x, url(dummy://test.png) 2x)", "-webkit-image-set(url(dummy://small.png) 2x, url(dummy://big.png) 3x)"]}, // image set
62
                  {"background-image" : ["image-set(url(dummy://test.png) 1x, url(dummy://test.png) 2x)", "image-set(url(dummy://small.png) 2x, url(dummy://big.png) 3x)"]}, // image set
62
                  {"background-image" : ["image-set(url(dummy://test.png) 1x, url(dummy://test.png) 2x)", "image-set(url(dummy://small.png) 2x, url(dummy://big.png) 3x)"]}, // image set
63
                  {"-webkit-filter" : ["grayscale(100%) sepia(100%)", "sepia(10%) grayscale(50%)"]}, // filter
63
                  {"-webkit-filter" : ["grayscale(100%) sepia(100%)", "sepia(10%) grayscale(50%)"]} // filter
64
                  {"-webkit-dashboard-region" : ["dashboard-region(label circle)", "dashboard-region(label circle 1px 2px 3px 4px) dashboard-region(label rectangle 5px 6px 7px 8px)"]} // dashboard region
65
                ];
64
                ];
66
65
67
   for (var index in tests) {
66
   for (var index in tests) {
- LayoutTests/fast/canvas/canvas-gradient-addStop-error-expected.txt -4 / +1 lines
Lines 1-4 LayoutTests/fast/canvas/canvas-gradient-addStop-error-expected.txt_sec1
1
A couple of tests to ensure that adding a stop with an invalid color to a gradient throws exceptions normally, but not in dashboard.
1
A couple of tests to ensure that adding a stop with an invalid color to a gradient throws exceptions normally.
2
2
3
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
3
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
4
Lines 6-14 On success, you will see a series of "PA LayoutTests/fast/canvas/canvas-gradient-addStop-error-expected.txt_sec2
6
Ensure exceptions are thrown in normal pages
6
Ensure exceptions are thrown in normal pages
7
PASS gradient.addColorStop(1, 'rgb(NaN%, NaN%, NaN%)') threw exception SyntaxError: The string did not match the expected pattern..
7
PASS gradient.addColorStop(1, 'rgb(NaN%, NaN%, NaN%)') threw exception SyntaxError: The string did not match the expected pattern..
8
PASS gradient.addColorStop(1, 'rgb(NaN%, NaN%, NaN%)') threw exception SyntaxError: The string did not match the expected pattern..
8
PASS gradient.addColorStop(1, 'rgb(NaN%, NaN%, NaN%)') threw exception SyntaxError: The string did not match the expected pattern..
9
Switching to dashboard compatibility mode.  Invalid color strings should no longer cause an exception.
10
PASS gradient.addColorStop(1, 'rgb(NaN%, NaN%, NaN%)') is undefined.
11
PASS gradient.addColorStop(1, 'rgb(NaN%, NaN%, NaN%)') is undefined.
12
PASS successfullyParsed is true
9
PASS successfullyParsed is true
13
10
14
TEST COMPLETE
11
TEST COMPLETE
- LayoutTests/fast/canvas/canvas-gradient-addStop-error.html -14 / +1 lines
Lines 5-30 LayoutTests/fast/canvas/canvas-gradient-addStop-error.html_sec1
5
</head>
5
</head>
6
<body>
6
<body>
7
<script>
7
<script>
8
description("A couple of tests to ensure that adding a stop with an invalid color to a gradient throws exceptions normally, but not in dashboard.");
8
description("A couple of tests to ensure that adding a stop with an invalid color to a gradient throws exceptions normally.");
9
debug("Ensure exceptions are thrown in normal pages");
9
debug("Ensure exceptions are thrown in normal pages");
10
var ctx = document.createElement('canvas').getContext('2d');
10
var ctx = document.createElement('canvas').getContext('2d');
11
var gradient = ctx.createLinearGradient(0, 0, 0, 100);
11
var gradient = ctx.createLinearGradient(0, 0, 0, 100);
12
shouldThrow("gradient.addColorStop(1, 'rgb(NaN%, NaN%, NaN%)')");
12
shouldThrow("gradient.addColorStop(1, 'rgb(NaN%, NaN%, NaN%)')");
13
var gradient = ctx.createRadialGradient(0, 0, 0, 100, 0, 0);
13
var gradient = ctx.createRadialGradient(0, 0, 0, 100, 0, 0);
14
shouldThrow("gradient.addColorStop(1, 'rgb(NaN%, NaN%, NaN%)')");
14
shouldThrow("gradient.addColorStop(1, 'rgb(NaN%, NaN%, NaN%)')");
15
16
if (this.testRunner) {
17
    debug("Switching to dashboard compatibility mode.  Invalid color strings should no longer cause an exception.");
18
    testRunner.setUseDashboardCompatibilityMode(true);
19
} else {
20
    debug("The following tests will fail in the browser as we can only enable dashboard compatibility mode in DRT.")
21
}
22
// Create a new context so that will be created using dashboard compatibility mode.
23
ctx = document.createElement('canvas').getContext('2d');
24
var gradient = ctx.createLinearGradient(0, 0, 0, 100);
25
shouldBeUndefined("gradient.addColorStop(1, 'rgb(NaN%, NaN%, NaN%)')");
26
var gradient = ctx.createRadialGradient(0, 0, 0, 100, 0, 0);
27
shouldBeUndefined("gradient.addColorStop(1, 'rgb(NaN%, NaN%, NaN%)')");
28
</script>
15
</script>
29
<script src="../../resources/js-test-post.js"></script>
16
<script src="../../resources/js-test-post.js"></script>
30
</body>
17
</body>
- LayoutTests/fast/canvas/fill-stroke-clip-reset-path-expected.txt -3 lines
Lines 1-6 LayoutTests/fast/canvas/fill-stroke-clip-reset-path-expected.txt_sec1
1
All three of these small canvases should be green, not red.
1
All three of these small canvases should be green, not red.
2
2
3
  
3
  
4
All three of these small canvases should be green, not red, too, but these test the Dashboard compatibility mode so they work properly only under DumpRenderTree.
5
6
  
- LayoutTests/fast/canvas/fill-stroke-clip-reset-path.html -19 / +10 lines
Lines 1-18 LayoutTests/fast/canvas/fill-stroke-clip-reset-path.html_sec1
1
<html>
1
<html>
2
<head>
2
<head>
3
<script>
3
<script>
4
function testOne(operation, quirk)
4
function testOne(operation)
5
{
5
{
6
    if (window.testRunner){
6
    if (window.testRunner){
7
		testRunner.dumpAsText(true);
7
		testRunner.dumpAsText(true);
8
        if (testRunner.setUseDashboardCompatibilityMode)
9
            testRunner.setUseDashboardCompatibilityMode(quirk);
10
    }
8
    }
11
9
12
    var canvas = document.getElementById(operation + "-" + (quirk ? "" : "no-") + "quirk");
10
    var canvas = document.getElementById(operation);
13
    var context = canvas.getContext('2d');
11
    var context = canvas.getContext('2d');
14
12
15
    context.fillStyle = quirk ? "green" : "red";
13
    context.fillStyle = "red";
16
    context.fillRect(0, 0, 1000, 1000);
14
    context.fillRect(0, 0, 1000, 1000);
17
15
18
    context.moveTo(0, 0);
16
    context.moveTo(0, 0);
Lines 22-49 function testOne(operation, quirk) LayoutTests/fast/canvas/fill-stroke-clip-reset-path.html_sec2
22
    context.closePath();
20
    context.closePath();
23
    context[operation]();
21
    context[operation]();
24
22
25
    context.fillStyle = quirk ? "red" : "green";
23
    context.fillStyle = "green";
26
    context.fill();
24
    context.fill();
27
}
25
}
28
function test()
26
function test()
29
{
27
{
30
    testOne("fill", false);
28
    testOne("fill");
31
    testOne("stroke", false);
29
    testOne("stroke");
32
    testOne("clip", false);
30
    testOne("clip");
33
    testOne("fill", true);
34
    testOne("stroke", true);
35
    testOne("clip", true);
36
}
31
}
37
</script>
32
</script>
38
</head>
33
</head>
39
<body onload="test()">
34
<body onload="test()">
40
<p>All three of these small canvases should be green, not red.</p>
35
<p>All three of these small canvases should be green, not red.</p>
41
<canvas id="fill-no-quirk" width="20" height="20"></canvas>
36
<canvas id="fill" width="20" height="20"></canvas>
42
<canvas id="stroke-no-quirk" width="20" height="20"></canvas>
37
<canvas id="stroke" width="20" height="20"></canvas>
43
<canvas id="clip-no-quirk" width="20" height="20"></canvas>
38
<canvas id="clip" width="20" height="20"></canvas>
44
<p>All three of these small canvases should be green, not red, too, but these test the Dashboard compatibility mode so they work properly only under DumpRenderTree.</p>
45
<canvas id="fill-quirk" width="20" height="20"></canvas>
46
<canvas id="stroke-quirk" width="20" height="20"></canvas>
47
<canvas id="clip-quirk" width="20" height="20"></canvas>
48
</body>
39
</body>
49
</html>
40
</html>
- LayoutTests/fast/css/dashboard-regions-attr-crash-expected.txt -7 lines
Lines 1-6 LayoutTests/fast/css/dashboard-regions-attr-crash-expected.txt_sec1
1
Test for http://bugs.webkit.org/show_bug.cgi?id=8469 CRASH: WebCore::CSSParser::parseDashboardRegions when attr() is passed.
2
3
If the test passes it won't crash
4
5
6
7
native
- LayoutTests/fast/css/dashboard-regions-attr-crash.html -14 lines
Lines 1-14 LayoutTests/fast/css/dashboard-regions-attr-crash.html_sec1
1
<html>
2
<head>
3
<script>
4
    if (window.testRunner)
5
        testRunner.dumpAsText();
6
</script>
7
</head>
8
<body>
9
<p>Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=8469">http://bugs.webkit.org/show_bug.cgi?id=8469</a> CRASH: WebCore::CSSParser::parseDashboardRegions when attr() is passed</i>.</p>
10
<p>If the test passes it won't crash</p> 
11
<br style="-webkit-dashboard-region: dashboard-region("a");">
12
<table style="-webkit-dashboard-region: attr("a");">
13
</body>
14
</html>
- LayoutTests/fast/css/dashboard-regions-undefined-length-assertion-expected.txt -1 lines
Line 1 LayoutTests/fast/css/dashboard-regions-undefined-length-assertion-expected.txt_sec1
1
The test passes if it does not cause an assertion failure.
- LayoutTests/fast/css/dashboard-regions-undefined-length-assertion.html -6 lines
Lines 1-6 LayoutTests/fast/css/dashboard-regions-undefined-length-assertion.html_sec1
1
<script>
2
    if (window.testRunner)
3
        testRunner.dumpAsText();
4
</script>
5
<div style="-webkit-dashboard-region: dashboard-region(control rectangle)"></div>
6
<p>The test passes if it does not cause an assertion failure.</p>
- LayoutTests/fast/xmlhttprequest/set-dangerous-headers-in-dashboard-expected.txt -1 lines
Line 1 LayoutTests/fast/xmlhttprequest/set-dangerous-headers-in-dashboard-expected.txt_sec1
1
Test that setRequestHeader() can be used to alter security-sensitive headers in Dashboard compatibility mode. This test PASSED if you do not see any console warnings.
- LayoutTests/fast/xmlhttprequest/set-dangerous-headers-in-dashboard.html -49 lines
Lines 1-49 LayoutTests/fast/xmlhttprequest/set-dangerous-headers-in-dashboard.html_sec1
1
<!DOCTYPE html>
2
<html>
3
<body>
4
<p>Test that setRequestHeader() can be used to alter security-sensitive headers in Dashboard compatibility mode. This test PASSED if you do not see any console warnings.</p>
5
<script>
6
    if (window.testRunner)
7
        testRunner.dumpAsText();
8
    if (window.internals.settings)
9
        internals.settings.setUsesDashboardBackwardCompatibilityMode(true);
10
11
    req = new XMLHttpRequest;
12
    req.open("GET", "resources/non-existent-file.txt", false);
13
14
    req.setRequestHeader("ACCEPT-CHARSET", "foobar");
15
    req.setRequestHeader("ACCEPT-ENCODING", "foobar");
16
    req.setRequestHeader("ACCESS-CONTROL-REQUEST-HEADERS", "foobar");
17
    req.setRequestHeader("ACCESS-CONTROL-REQUEST-METHOD", "foobar");
18
    // AUTHORIZATION is no longer forbidden. See
19
    // https://bugs.webkit.org/show_bug.cgi?id=24957 for more details. Set to
20
    // a value other than the foobar since some http servers (lighttp) do not
21
    // strip this out (Apache does).
22
    req.setRequestHeader("AUTHORIZATION", "baz");
23
    req.setRequestHeader("CONNECTION", "foobar");
24
    req.setRequestHeader("CONTENT-LENGTH", "123456");
25
    req.setRequestHeader("COOKIE", "foobar");
26
    req.setRequestHeader("COOKIE2", "foobar");
27
    req.setRequestHeader("DATE", "foobar");
28
    req.setRequestHeader("DNT", "foobar");
29
    req.setRequestHeader("EXPECT", "100-continue");
30
    req.setRequestHeader("HOST", "foobar");
31
    req.setRequestHeader("KEEP-ALIVE", "foobar");
32
    req.setRequestHeader("ORIGIN", "foobar");
33
    req.setRequestHeader("REFERER", "foobar");
34
    req.setRequestHeader("TE", "foobar");
35
    req.setRequestHeader("TRAILER", "foobar");
36
    req.setRequestHeader("TRANSFER-ENCODING", "foobar");
37
    req.setRequestHeader("UPGRADE", "foobar");
38
    req.setRequestHeader("VIA", "foobar");
39
40
    req.setRequestHeader("Proxy-", "foobar");
41
    req.setRequestHeader("Proxy-test", "foobar");
42
    req.setRequestHeader("PROXY-FOO", "foobar");
43
44
    req.setRequestHeader("Sec-", "foobar");
45
    req.setRequestHeader("Sec-test", "foobar");
46
    req.setRequestHeader("SEC-FOO", "foobar");
47
</script>
48
</body>
49
</html>
- LayoutTests/http/tests/xmlhttprequest/default-content-type-dashboard-expected.txt -4 lines
Lines 1-4 LayoutTests/http/tests/xmlhttprequest/default-content-type-dashboard-expected.txt_sec1
1
This tests that the default Content-Type for XMLHttpRequest is application/x-www-form-urlencoded when running in the Dashboard compatibility mode.
2
3
application/x-www-form-urlencoded
4
- LayoutTests/http/tests/xmlhttprequest/default-content-type-dashboard.html -16 lines
Lines 1-16 LayoutTests/http/tests/xmlhttprequest/default-content-type-dashboard.html_sec1
1
<html>
2
<body>
3
<p>This tests that the default Content-Type for XMLHttpRequest is application/x-www-form-urlencoded when running in the Dashboard compatibility mode.</p>
4
<script>
5
    if (window.testRunner) {
6
        testRunner.setUseDashboardCompatibilityMode(true);
7
        testRunner.dumpAsText();
8
    }
9
    
10
    objXmlHttp = new XMLHttpRequest;
11
    objXmlHttp.open("POST", "print-content-type.cgi", false);
12
    objXmlHttp.send("");
13
    document.write("<pre>" + objXmlHttp.responseText + "</pre>");
14
</script>
15
</body>
16
</html>
- LayoutTests/http/tests/xmlhttprequest/svg-created-by-xhr-allowed-in-dashboard-expected.txt -6 lines
Lines 1-6 LayoutTests/http/tests/xmlhttprequest/svg-created-by-xhr-allowed-in-dashboard-expected.txt_sec1
1
Test to make sure we can use XHR to create usable SVG in dashboard compatibility mode. This cannot be tested manually.
2
3
Received doc of type: [object XMLDocument]
4
PASS: Managed to insert SVG element into tree
5
Imported node of type: [object SVGCircleElement]
6
- LayoutTests/http/tests/xmlhttprequest/svg-created-by-xhr-allowed-in-dashboard.html -78 lines
Lines 1-78 LayoutTests/http/tests/xmlhttprequest/svg-created-by-xhr-allowed-in-dashboard.html_sec1
1
<!doctype html>
2
<html>
3
<head>
4
<title>Test to ensure SVG is enabled in Dashboard compatibility mode</title>
5
<script>
6
    var rq;
7
8
    function loadSVG()
9
    {
10
        url = 'resources/svgtest.svg';
11
12
        rq = false;
13
    
14
        try {
15
          if (window.XMLHttpRequest) {
16
            rq = new XMLHttpRequest();
17
            rq.overrideMimeType('text/svg+xml');
18
            rq.onreadystatechange = processReqChange;
19
            rq.open('GET', url, true);
20
            rq.send();
21
          }
22
        } catch (ex) {
23
            rq = false;
24
            alert(ex);
25
        }
26
    }
27
    
28
    function debug(str) {
29
        var c = document.getElementById('console')
30
        c.appendChild(document.createTextNode(str + '\n'));
31
    }
32
33
    function processReqChange()
34
    {
35
        if (rq.readyState == 4) {
36
            try {
37
                var svgDoc = rq.responseXML;
38
                if (rq.status == 200) {
39
                    debug("Received doc of type: " + svgDoc);
40
                    // Import SVG element into tree.
41
                    var importedNode = null;
42
                    try {
43
                        importedNode = document.importNode(svgDoc.getElementById('svgCircle'), true);
44
                    } catch(e) {
45
                    }
46
            
47
                    if (importedNode) {
48
                        debug("PASS: Managed to insert SVG element into tree");
49
                        debug("Imported node of type: " + importedNode);
50
                        document.getElementById('targetDiv').appendChild(importedNode);
51
                    } else {
52
                        debug("FAIL: Could not insert SVG element into tree");
53
                    }
54
                } else {
55
                    debug('FAIL: Unable to load SVG document: ' + rq.statusText);
56
                }
57
            } catch (e) {
58
            }
59
            if (window.testRunner)
60
                testRunner.notifyDone();
61
        }
62
    }
63
</script>
64
</head>
65
66
<body onload="loadSVG()">
67
<p>Test to make sure we can use XHR to create usable SVG in dashboard compatibility mode.  This cannot be tested manually.</p>
68
<div id="targetDiv"></div>
69
<pre id="console"></pre>
70
<script>
71
    if (window.testRunner) {
72
        testRunner.setUseDashboardCompatibilityMode(true);
73
        testRunner.dumpAsText();
74
        testRunner.waitUntilDone();
75
    }
76
</script>
77
</body>
78
</html>
- LayoutTests/legacy-animation-engine/cssom/cssvalue-comparison-expected.txt -3 lines
Lines 104-110 PASS Two CSSValues "image-set(url(dummy: LayoutTests/legacy-animation-engine/cssom/cssvalue-comparison-expected.txt_sec1
104
PASS Two CSSValues "grayscale(100%) sepia(100%)" for property "-webkit-filter" are equal. 
104
PASS Two CSSValues "grayscale(100%) sepia(100%)" for property "-webkit-filter" are equal. 
105
PASS Two CSSValues "sepia(10%) grayscale(50%)" for property "-webkit-filter" are equal. 
105
PASS Two CSSValues "sepia(10%) grayscale(50%)" for property "-webkit-filter" are equal. 
106
PASS Two CSSValues "grayscale(100%) sepia(100%)" and "sepia(10%) grayscale(50%)" for property "-webkit-filter" are not equal. 
106
PASS Two CSSValues "grayscale(100%) sepia(100%)" and "sepia(10%) grayscale(50%)" for property "-webkit-filter" are not equal. 
107
PASS Two CSSValues "dashboard-region(label circle)" for property "-webkit-dashboard-region" are equal. 
108
PASS Two CSSValues "dashboard-region(label circle 1px 2px 3px 4px) dashboard-region(label rectangle 5px 6px 7px 8px)" for property "-webkit-dashboard-region" are equal. 
109
PASS Two CSSValues "dashboard-region(label circle)" and "dashboard-region(label circle 1px 2px 3px 4px) dashboard-region(label rectangle 5px 6px 7px 8px)" for property "-webkit-dashboard-region" are not equal. 
110
107
- LayoutTests/legacy-animation-engine/cssom/cssvalue-comparison.html -2 / +1 lines
Lines 60-67 function run() { LayoutTests/legacy-animation-engine/cssom/cssvalue-comparison.html_sec1
60
                  {"-webkit-line-box-contain" : ["inline-box", "font", "glyphs", "replaced"]}, // line-box-contain
60
                  {"-webkit-line-box-contain" : ["inline-box", "font", "glyphs", "replaced"]}, // line-box-contain
61
                  {"background-image" : ["-webkit-image-set(url(dummy://test.png) 1x, url(dummy://test.png) 2x)", "-webkit-image-set(url(dummy://small.png) 2x, url(dummy://big.png) 3x)"]}, // image set
61
                  {"background-image" : ["-webkit-image-set(url(dummy://test.png) 1x, url(dummy://test.png) 2x)", "-webkit-image-set(url(dummy://small.png) 2x, url(dummy://big.png) 3x)"]}, // image set
62
                  {"background-image" : ["image-set(url(dummy://test.png) 1x, url(dummy://test.png) 2x)", "image-set(url(dummy://small.png) 2x, url(dummy://big.png) 3x)"]}, // image set
62
                  {"background-image" : ["image-set(url(dummy://test.png) 1x, url(dummy://test.png) 2x)", "image-set(url(dummy://small.png) 2x, url(dummy://big.png) 3x)"]}, // image set
63
                  {"-webkit-filter" : ["grayscale(100%) sepia(100%)", "sepia(10%) grayscale(50%)"]}, // filter
63
                  {"-webkit-filter" : ["grayscale(100%) sepia(100%)", "sepia(10%) grayscale(50%)"]} // filter
64
                  {"-webkit-dashboard-region" : ["dashboard-region(label circle)", "dashboard-region(label circle 1px 2px 3px 4px) dashboard-region(label rectangle 5px 6px 7px 8px)"]} // dashboard region
65
                ];
64
                ];
66
65
67
   for (var index in tests) {
66
   for (var index in tests) {
- LayoutTests/mathml/mathml-in-dashboard-expected.txt -13 lines
Lines 1-13 LayoutTests/mathml/mathml-in-dashboard-expected.txt_sec1
1
layer at (0,0) size 800x600
2
  RenderView at (0,0) size 800x600
3
layer at (0,0) size 800x600
4
  RenderBlock {HTML} at (0,0) size 800x600
5
    RenderBody {BODY} at (8,8) size 784x584
6
      RenderBlock {P} at (0,0) size 784x34
7
        RenderText {#text} at (0,0) size 651x34
8
          text run at (0,0) width 210: "This tests that MathML works in "
9
          text run at (210,0) width 441: "dashboard compatibility mode. The render tree dump should include a"
10
          text run at (0,17) width 140: "RenderMathMLMath."
11
      RenderBlock (anonymous) at (0,50) size 784x0
12
        RenderMathMLMath {math} at (0,0) size 0x0
13
        RenderText {#text} at (0,0) size 0x0
- LayoutTests/mathml/mathml-in-dashboard.html -7 lines
Lines 1-7 LayoutTests/mathml/mathml-in-dashboard.html_sec1
1
<script>
2
    if (window.testRunner)
3
        testRunner.setUseDashboardCompatibilityMode(true);
4
5
</script>
6
<p>This tests that MathML works in  dashboard compatibility mode. The render tree dump should include a RenderMathMLMath.</p>
7
<math></math>
- LayoutTests/platform/gtk/TestExpectations -9 lines
Lines 1059-1073 webkit.org/b/168189 fast/scrolling/scrol LayoutTests/platform/gtk/TestExpectations_sec1
1059
webkit.org/b/168366 http/tests/security/credentials-iframes.html
1059
webkit.org/b/168366 http/tests/security/credentials-iframes.html
1060
webkit.org/b/168366 http/tests/security/credentials-iframes-allowCrossOriginSubresourcesToAskForCredentials.html
1060
webkit.org/b/168366 http/tests/security/credentials-iframes-allowCrossOriginSubresourcesToAskForCredentials.html
1061
1061
1062
# DASHBOARD_SUPPORT is mac only
1063
http/tests/xmlhttprequest/default-content-type-dashboard.html [ Skip ]
1064
http/tests/xmlhttprequest/svg-created-by-xhr-allowed-in-dashboard.html [ Skip ]
1065
svg/custom/embedded-svg-allowed-in-dashboard.xml [ Skip ]
1066
svg/custom/manually-parsed-svg-allowed-in-dashboard.html [ Skip ]
1067
svg/custom/manually-parsed-embedded-svg-allowed-in-dashboard.html [ Skip ]
1068
svg/custom/svg-allowed-in-dashboard-object.html [ Skip ]
1069
mathml/mathml-in-dashboard.html [ Skip ]
1070
1071
# No embedded PDF support
1062
# No embedded PDF support
1072
fast/hidpi/pdf-image-scaled.html [ Skip ]
1063
fast/hidpi/pdf-image-scaled.html [ Skip ]
1073
fast/images/displaced-non-cached-pdf.html [ Skip ]
1064
fast/images/displaced-non-cached-pdf.html [ Skip ]
- LayoutTests/platform/ios-simulator-wk2/TestExpectations -8 lines
Lines 18-31 webkit.org/b/152439 compositing/overflow LayoutTests/platform/ios-simulator-wk2/TestExpectations_sec1
18
18
19
webkit.org/b/173178 [ Release ] svg/animations/svglength-element-removed-crash.svg [ Skip ]
19
webkit.org/b/173178 [ Release ] svg/animations/svglength-element-removed-crash.svg [ Skip ]
20
20
21
# iOS simulator doesn’t support dashboard.
22
mathml/mathml-in-dashboard.html [ Failure ]
23
svg/custom/embedded-svg-allowed-in-dashboard.xml [ Failure ]
24
svg/custom/manually-parsed-embedded-svg-allowed-in-dashboard.html [ Failure ]
25
svg/custom/manually-parsed-svg-allowed-in-dashboard.html [ Failure ]
26
svg/custom/svg-allowed-in-dashboard-object.html [ Failure ]
27
http/tests/xmlhttprequest/svg-created-by-xhr-allowed-in-dashboard.html [ Failure ]
28
29
webkit.org/b/174100 webgl/1.0.2/conformance/glsl/misc/shader-with-non-reserved-words.html [ Skip ]
21
webkit.org/b/174100 webgl/1.0.2/conformance/glsl/misc/shader-with-non-reserved-words.html [ Skip ]
30
22
31
webkit.org/b/173010 js/slow-stress/Int32Array-alloc-huge.html [ Pass Timeout ]
23
webkit.org/b/173010 js/slow-stress/Int32Array-alloc-huge.html [ Pass Timeout ]
- LayoutTests/platform/ios-wk1/TestExpectations -1 lines
Lines 722-728 mathml/opentype/munderover-layout-resize LayoutTests/platform/ios-wk1/TestExpectations_sec1
722
mathml/presentation/mo-invisible.html
722
mathml/presentation/mo-invisible.html
723
723
724
# MathML tests that fail:
724
# MathML tests that fail:
725
mathml/mathml-in-dashboard.html [ Failure ]
726
mathml/opentype/large-operators-displaystyle-dynamic.html [ ImageOnlyFailure ]
725
mathml/opentype/large-operators-displaystyle-dynamic.html [ ImageOnlyFailure ]
727
mathml/presentation/mo-stretch-update.html [ ImageOnlyFailure ]
726
mathml/presentation/mo-stretch-update.html [ ImageOnlyFailure ]
728
727
- LayoutTests/platform/ios/TestExpectations -2 / +1 lines
Lines 1558-1564 http/tests/webarchive/test-css-url-encod LayoutTests/platform/ios/TestExpectations_sec1
1558
1558
1559
# XMLHttpRequest tests that fail:
1559
# XMLHttpRequest tests that fail:
1560
http/tests/xmlhttprequest/basic-auth-nopassword.html [ Failure ]
1560
http/tests/xmlhttprequest/basic-auth-nopassword.html [ Failure ]
1561
http/tests/xmlhttprequest/default-content-type-dashboard.html [ Failure ]
1562
1561
1563
# DeviceMotion tests that time out:
1562
# DeviceMotion tests that time out:
1564
fast/dom/DeviceMotion/no-page-cache.html
1563
fast/dom/DeviceMotion/no-page-cache.html
Lines 3278-3281 fast/scrolling/ipad/overflow-scrolling-t LayoutTests/platform/ios/TestExpectations_sec2
3278
webkit.org/b/197778 [ Debug ] webgl/2.0.0/conformance2/attribs/gl-vertexattribipointer.html [ Slow ]
3277
webkit.org/b/197778 [ Debug ] webgl/2.0.0/conformance2/attribs/gl-vertexattribipointer.html [ Slow ]
3279
3278
3280
# Was unskipped, but now has missing results in iOS . Skipping on iOS only.
3279
# Was unskipped, but now has missing results in iOS . Skipping on iOS only.
3281
media/controls-after-reload.html [ Skip ]
3280
media/controls-after-reload.html [ Skip ]
- LayoutTests/platform/ios/mathml/mathml-in-dashboard-expected.txt -14 lines
Lines 1-13 LayoutTests/platform/ios/mathml/mathml-in-dashboard-expected.txt_sec1
1
layer at (0,0) size 800x600
2
  RenderView at (0,0) size 800x600
3
layer at (0,0) size 800x600
4
  RenderBlock {HTML} at (0,0) size 800x600
5
    RenderBody {BODY} at (8,8) size 784x584
6
      RenderBlock {P} at (0,0) size 784x40
7
        RenderText {#text} at (0,0) size 664x39
8
          text run at (0,0) width 214: "This tests that MathML works in "
9
          text run at (213,0) width 451: "dashboard compatibility mode. The render tree dump should include a"
10
          text run at (0,20) width 142: "RenderMathMLMath."
11
      RenderBlock (anonymous) at (0,56) size 784x0
12
        RenderMathMLMath {math} at (0,0) size 2x0 [padding: 0 1 0 1]
13
        RenderText {#text} at (0,0) size 0x0
14
LF
- LayoutTests/platform/mac/TestExpectations -3 / +1 lines
Lines 31-38 fast/harness/uiscriptcontroller [ Pass ] LayoutTests/platform/mac/TestExpectations_sec1
31
31
32
fast/events/do-not-drag-and-drop-data-detectors-link.html [ Pass ]
32
fast/events/do-not-drag-and-drop-data-detectors-link.html [ Pass ]
33
33
34
fast/xmlhttprequest/set-dangerous-headers-in-dashboard.html [ Pass ]
35
36
http/tests/gzip-content-encoding [ Pass ]
34
http/tests/gzip-content-encoding [ Pass ]
37
35
38
[ Sierra HighSierra ] http/tests/xmlhttprequest/gzip-content-type-no-content-encoding.html [ Failure ]
36
[ Sierra HighSierra ] http/tests/xmlhttprequest/gzip-content-type-no-content-encoding.html [ Failure ]
Lines 1942-1945 webkit.org/b/175678 media/W3C/video/even LayoutTests/platform/mac/TestExpectations_sec2
1942
[ Mojave+ ] webrtc/peer-connection-audio-mute.html [ Skip ]
1940
[ Mojave+ ] webrtc/peer-connection-audio-mute.html [ Skip ]
1943
[ Mojave+ ] webrtc/peer-connection-remote-audio-mute2.html [ Pass Failure ]
1941
[ Mojave+ ] webrtc/peer-connection-remote-audio-mute2.html [ Pass Failure ]
1944
[ Mojave+ ] webaudio/realtimeanalyser-fft-scaling.html [ Pass Failure ]
1942
[ Mojave+ ] webaudio/realtimeanalyser-fft-scaling.html [ Pass Failure ]
1945
[ Mojave+ ] webaudio/oscillator-sine.html [ Skip ]
1943
[ Mojave+ ] webaudio/oscillator-sine.html [ Skip ]
- LayoutTests/platform/mac/fast/css/dashboard-region-parser-expected.txt -90 lines
Lines 1-89 LayoutTests/platform/mac/fast/css/dashboard-region-parser-expected.txt_sec1
1
This tests the parser and serializer for dashboard region values.
2
3
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6
PASS parseDashboardRegion('none') is 'none'
7
8
PASS parseDashboardRegion('dashboard-region(label circle)') is 'dashboard-region(label circle)'
9
PASS parseDashboardRegion('dashboard-region(label circle 1px 2px 3px 4px)') is 'dashboard-region(label circle 1px 2px 3px 4px)'
10
PASS parseDashboardRegion('dashboard-region(label circle 0px 0px 0px 0px)') is 'dashboard-region(label circle 0px 0px 0px 0px)'
11
PASS parseDashboardRegion('dashboard-region(label circle auto auto auto auto)') is 'dashboard-region(label circle auto auto auto auto)'
12
PASS parseDashboardRegion('dashboard-region(label circle 1px 2px 3px 4px)') is 'dashboard-region(label circle 1px 2px 3px 4px)'
13
14
PASS parseDashboardRegion('dashboard-region(label rectangle)') is 'dashboard-region(label rectangle)'
15
PASS parseDashboardRegion('dashboard-region(label rectangle 1px 2px 3px 4px)') is 'dashboard-region(label rectangle 1px 2px 3px 4px)'
16
17
PASS parseDashboardRegion('dashboard-region(label circle) dashboard-region(label circle)') is 'dashboard-region(label circle) dashboard-region(label circle)'
18
PASS parseDashboardRegion('dashboard-region(label circle) dashboard-region(label rectangle)') is 'dashboard-region(label circle) dashboard-region(label rectangle)'
19
PASS parseDashboardRegion('dashboard-region(label circle 1px 2px 3px 4px) dashboard-region(label rectangle 5px 6px 7px 8px)') is 'dashboard-region(label circle 1px 2px 3px 4px) dashboard-region(label rectangle 5px 6px 7px 8px)'
20
PASS parseDashboardRegion('dashboard-region(label rectangle 1px 2px 3px 4px) dashboard-region(label circle 5px 6px 7px 8px)') is 'dashboard-region(label rectangle 1px 2px 3px 4px) dashboard-region(label circle 5px 6px 7px 8px)'
21
22
Tests to demonstrate that commas are allowed.
23
24
PASS parseDashboardRegion('dashboard-region(label, circle)') is 'dashboard-region(label circle)'
25
PASS parseDashboardRegion('dashboard-region(label, circle, 1px, 2px, 3px, 4px)') is 'dashboard-region(label circle 1px 2px 3px 4px)'
26
27
Tests for variations in whitespace that are allowed.
28
29
PASS parseDashboardRegion('  dashboard-region(  label  circle  )  ') is 'dashboard-region(label circle)'
30
PASS parseDashboardRegion('  dashboard-region(  label   circle  1px  2px  3px  4px  )  dashboard-region(label  rectangle  5px  6px  7px  8px  )  ') is 'dashboard-region(label circle 1px 2px 3px 4px) dashboard-region(label rectangle 5px 6px 7px 8px)'
31
PASS parseDashboardRegion('dashboard-region(label circle 1px 2px 3px 4px)dashboard-region(label rectangle 5px 6px 7px 8px)') is 'dashboard-region(label circle 1px 2px 3px 4px) dashboard-region(label rectangle 5px 6px 7px 8px)'
32
33
Tests for case insensitivity.
34
35
PASS parseDashboardRegion('Dashboard-region(label Circle)') is 'dashboard-region(label circle)'
36
PASS parseDashboardRegion('DASHBOARD-REGION(LABEL CIRCLE)') is 'dashboard-region(LABEL circle)'
37
PASS parseDashboardRegion('DaShBoArD-ReGiOn(LaBeL CiRcLe)') is 'dashboard-region(LaBeL circle)'
38
PASS parseDashboardRegion('dAsHbOaRd-rEgIoN(lAbEl cIrClE)') is 'dashboard-region(lAbEl circle)'
39
PASS parseDashboardRegion('Dashboard-region(label Rectangle)') is 'dashboard-region(label rectangle)'
40
PASS parseDashboardRegion('DASHBOARD-REGION(LABEL RECTANGLE)') is 'dashboard-region(LABEL rectangle)'
41
PASS parseDashboardRegion('DaShBoArD-ReGiOn(LaBeL ReCtAnGlE)') is 'dashboard-region(LaBeL rectangle)'
42
PASS parseDashboardRegion('dAsHbOaRd-rEgIoN(lAbEl rEcTaNgLe)') is 'dashboard-region(lAbEl rectangle)'
43
44
Some expected failures.
45
46
PASS parseDashboardRegion('') is ''
47
PASS parseDashboardRegion(' ') is ''
48
PASS parseDashboardRegion('x') is ''
49
PASS parseDashboardRegion('dashboard-') is ''
50
PASS parseDashboardRegion('dashboard-region') is ''
51
PASS parseDashboardRegion('dashboard-region(') is ''
52
PASS parseDashboardRegion('dashboard-region(label') is ''
53
PASS parseDashboardRegion('dashboard-region(label ') is ''
54
PASS parseDashboardRegion('dashboard-region(label c') is ''
55
PASS parseDashboardRegion('dashboard-region(label circle') is ''
56
PASS parseDashboardRegion('dashboard-region(label)') is ''
57
PASS parseDashboardRegion('dashboard-region (label circle)') is ''
58
PASS parseDashboardRegion('dashboard-region(label,, circle)') is ''
59
PASS parseDashboardRegion('dashboard-region(label circle 1px2px 3px 4px)') is ''
60
PASS parseDashboardRegion('dashboard-region(label,, circle, 1px, 2px, 3px, 4px)') is ''
61
PASS parseDashboardRegion('dashboard-region(label, circle 1px 2px 3px 4px)') is ''
62
PASS parseDashboardRegion('dashboard-region(label, circle, 1px 2px 3px 4px)') is ''
63
PASS parseDashboardRegion('dashboard-region(label, circle, 1px, 2px 3px 4px)') is ''
64
PASS parseDashboardRegion('dashboard-region(label, circle, 1px, 2px, 3px 4px)') is ''
65
PASS parseDashboardRegion('dashboard-region(label circle, 1px, 2px, 3px, 4px)') is ''
66
PASS parseDashboardRegion('dashboard-region(label circle 1px, 2px, 3px, 4px)') is ''
67
PASS parseDashboardRegion('dashboard-region(label circle x)') is ''
68
PASS parseDashboardRegion('dashboard-region(label circle x x)') is ''
69
PASS parseDashboardRegion('dashboard-region(label circle x x x)') is ''
70
PASS parseDashboardRegion('dashboard-region(label circle x x x x)') is ''
71
PASS parseDashboardRegion('dashboard-region(label circle x x x x x)') is ''
72
PASS parseDashboardRegion('dashboard-region(label circle 1px 2px 3px 4px x)') is ''
73
PASS parseDashboardRegion('dashboard-region(label circle 1px 2px 3px 4px x x)') is ''
74
PASS parseDashboardRegion('dashboard-region(label circle 1px 2px 3px 4px x x x)') is ''
75
PASS parseDashboardRegion('dashboard-region(label circle 1px 2px 3px 4px x x x x)') is ''
76
PASS parseDashboardRegion('dashboard-region(label circle 1px 2px 3px 4px x x x x x)') is ''
77
PASS parseDashboardRegion('dashboard-region(label circle 1px 2px 3px 4px circle 5px 6px 7px 8px)') is ''
78
PASS parseDashboardRegion('dashboard-region(label, circle, 1px, 2px, 3px, 4px, circle, 5px, 6px, 7px, 8px)') is ''
79
PASS parseDashboardRegion('none x') is ''
80
PASS parseDashboardRegion('none x x') is ''
81
PASS parseDashboardRegion('none x x x') is ''
82
PASS parseDashboardRegion('none x x x x') is ''
83
PASS parseDashboardRegion('none dashboard-region(label, circle)') is ''
84
PASS parseDashboardRegion('dashboard-region(label, circle) none') is ''
85
86
PASS successfullyParsed is true
87
88
TEST COMPLETE
89
90
native
- LayoutTests/platform/mac/fast/css/dashboard-region-parser.html -134 lines
Lines 1-132 LayoutTests/platform/mac/fast/css/dashboard-region-parser.html_sec1
1
<html>
2
<head>
3
<script src="../../../../resources/js-test-pre.js"></script>
4
</head>
5
<body>
6
<p id="description"></p>
7
<div id="console"></div>
8
<script>
9
10
description("This tests the parser and serializer for dashboard region values.");
11
12
var style = document.getElementById('description').style;
13
14
function parseDashboardRegion(string)
15
{
16
    try {
17
        style.removeProperty("-webkit-dashboard-region");
18
        style.setProperty("-webkit-dashboard-region", string, "");
19
        var result = style.getPropertyValue("-webkit-dashboard-region");
20
        style.removeProperty("-webkit-dashboard-region");
21
        return result;
22
    } catch (e) {
23
        return "" + e;
24
    }
25
}
26
27
function testCanonicalDashboardRegion(string)
28
{
29
    shouldBe("parseDashboardRegion('" + string + "')", "'" + string + "'");
30
}
31
32
testCanonicalDashboardRegion('none');
33
34
debug('');
35
36
testCanonicalDashboardRegion('dashboard-region(label circle)');
37
testCanonicalDashboardRegion('dashboard-region(label circle 1px 2px 3px 4px)');
38
testCanonicalDashboardRegion('dashboard-region(label circle 0px 0px 0px 0px)');
39
testCanonicalDashboardRegion('dashboard-region(label circle auto auto auto auto)');
40
testCanonicalDashboardRegion('dashboard-region(label circle 1px 2px 3px 4px)');
41
42
debug('');
43
44
testCanonicalDashboardRegion('dashboard-region(label rectangle)');
45
testCanonicalDashboardRegion('dashboard-region(label rectangle 1px 2px 3px 4px)');
46
47
debug('');
48
49
testCanonicalDashboardRegion('dashboard-region(label circle) dashboard-region(label circle)');
50
testCanonicalDashboardRegion('dashboard-region(label circle) dashboard-region(label rectangle)');
51
testCanonicalDashboardRegion('dashboard-region(label circle 1px 2px 3px 4px) dashboard-region(label rectangle 5px 6px 7px 8px)');
52
testCanonicalDashboardRegion('dashboard-region(label rectangle 1px 2px 3px 4px) dashboard-region(label circle 5px 6px 7px 8px)');
53
54
debug('');
55
debug('Tests to demonstrate that commas are allowed.');
56
debug('');
57
58
shouldBe("parseDashboardRegion('dashboard-region(label, circle)')", "'dashboard-region(label circle)'");
59
shouldBe("parseDashboardRegion('dashboard-region(label, circle, 1px, 2px, 3px, 4px)')", "'dashboard-region(label circle 1px 2px 3px 4px)'");
60
61
debug('');
62
debug('Tests for variations in whitespace that are allowed.');
63
debug('');
64
65
shouldBe("parseDashboardRegion('  dashboard-region(  label  circle  )  ')", "'dashboard-region(label circle)'");
66
shouldBe("parseDashboardRegion('  dashboard-region(  label   circle  1px  2px  3px  4px  )  dashboard-region(label  rectangle  5px  6px  7px  8px  )  ')", "'dashboard-region(label circle 1px 2px 3px 4px) dashboard-region(label rectangle 5px 6px 7px 8px)'");
67
shouldBe("parseDashboardRegion('dashboard-region(label circle 1px 2px 3px 4px)dashboard-region(label rectangle 5px 6px 7px 8px)')", "'dashboard-region(label circle 1px 2px 3px 4px) dashboard-region(label rectangle 5px 6px 7px 8px)'");
68
69
debug('');
70
debug('Tests for case insensitivity.');
71
debug('');
72
73
shouldBe("parseDashboardRegion('Dashboard-region(label Circle)')", "'dashboard-region(label circle)'");
74
shouldBe("parseDashboardRegion('DASHBOARD-REGION(LABEL CIRCLE)')", "'dashboard-region(LABEL circle)'");
75
shouldBe("parseDashboardRegion('DaShBoArD-ReGiOn(LaBeL CiRcLe)')", "'dashboard-region(LaBeL circle)'");
76
shouldBe("parseDashboardRegion('dAsHbOaRd-rEgIoN(lAbEl cIrClE)')", "'dashboard-region(lAbEl circle)'");
77
shouldBe("parseDashboardRegion('Dashboard-region(label Rectangle)')", "'dashboard-region(label rectangle)'");
78
shouldBe("parseDashboardRegion('DASHBOARD-REGION(LABEL RECTANGLE)')", "'dashboard-region(LABEL rectangle)'");
79
shouldBe("parseDashboardRegion('DaShBoArD-ReGiOn(LaBeL ReCtAnGlE)')", "'dashboard-region(LaBeL rectangle)'");
80
shouldBe("parseDashboardRegion('dAsHbOaRd-rEgIoN(lAbEl rEcTaNgLe)')", "'dashboard-region(lAbEl rectangle)'");
81
82
debug('');
83
debug('Some expected failures.');
84
debug('');
85
86
shouldBe("parseDashboardRegion('')", "''");
87
shouldBe("parseDashboardRegion(' ')", "''");
88
shouldBe("parseDashboardRegion('x')", "''");
89
shouldBe("parseDashboardRegion('dashboard-')", "''");
90
shouldBe("parseDashboardRegion('dashboard-region')", "''");
91
shouldBe("parseDashboardRegion('dashboard-region(')", "''");
92
shouldBe("parseDashboardRegion('dashboard-region(label')", "''");
93
shouldBe("parseDashboardRegion('dashboard-region(label ')", "''");
94
shouldBe("parseDashboardRegion('dashboard-region(label c')", "''");
95
shouldBe("parseDashboardRegion('dashboard-region(label circle')", "''");
96
shouldBe("parseDashboardRegion('dashboard-region(label)')", "''");
97
shouldBe("parseDashboardRegion('dashboard-region (label circle)')", "''");
98
shouldBe("parseDashboardRegion('dashboard-region(label,, circle)')", "''");
99
shouldBe("parseDashboardRegion('dashboard-region(label circle 1px2px 3px 4px)')", "''");
100
shouldBe("parseDashboardRegion('dashboard-region(label,, circle, 1px, 2px, 3px, 4px)')", "''");
101
shouldBe("parseDashboardRegion('dashboard-region(label, circle 1px 2px 3px 4px)')", "''");
102
shouldBe("parseDashboardRegion('dashboard-region(label, circle, 1px 2px 3px 4px)')", "''");
103
shouldBe("parseDashboardRegion('dashboard-region(label, circle, 1px, 2px 3px 4px)')", "''");
104
shouldBe("parseDashboardRegion('dashboard-region(label, circle, 1px, 2px, 3px 4px)')", "''");
105
shouldBe("parseDashboardRegion('dashboard-region(label circle, 1px, 2px, 3px, 4px)')", "''");
106
shouldBe("parseDashboardRegion('dashboard-region(label circle 1px, 2px, 3px, 4px)')", "''");
107
shouldBe("parseDashboardRegion('dashboard-region(label circle x)')", "''");
108
shouldBe("parseDashboardRegion('dashboard-region(label circle x x)')", "''");
109
shouldBe("parseDashboardRegion('dashboard-region(label circle x x x)')", "''");
110
shouldBe("parseDashboardRegion('dashboard-region(label circle x x x x)')", "''");
111
shouldBe("parseDashboardRegion('dashboard-region(label circle x x x x x)')", "''");
112
shouldBe("parseDashboardRegion('dashboard-region(label circle 1px 2px 3px 4px x)')", "''");
113
shouldBe("parseDashboardRegion('dashboard-region(label circle 1px 2px 3px 4px x x)')", "''");
114
shouldBe("parseDashboardRegion('dashboard-region(label circle 1px 2px 3px 4px x x x)')", "''");
115
shouldBe("parseDashboardRegion('dashboard-region(label circle 1px 2px 3px 4px x x x x)')", "''");
116
shouldBe("parseDashboardRegion('dashboard-region(label circle 1px 2px 3px 4px x x x x x)')", "''");
117
shouldBe("parseDashboardRegion('dashboard-region(label circle 1px 2px 3px 4px circle 5px 6px 7px 8px)')", "''");
118
shouldBe("parseDashboardRegion('dashboard-region(label, circle, 1px, 2px, 3px, 4px, circle, 5px, 6px, 7px, 8px)')", "''");
119
shouldBe("parseDashboardRegion('none x')", "''");
120
shouldBe("parseDashboardRegion('none x x')", "''");
121
shouldBe("parseDashboardRegion('none x x x')", "''");
122
shouldBe("parseDashboardRegion('none x x x x')", "''");
123
shouldBe("parseDashboardRegion('none dashboard-region(label, circle)')", "''");
124
shouldBe("parseDashboardRegion('dashboard-region(label, circle) none')", "''");
125
126
debug('');
127
128
129
</script>
130
<script src="../../../../resources/js-test-post.js"></script>
131
</body>
132
</html>
133
native
134
text/html
- LayoutTests/platform/mac/fast/dom/HTMLImageElement/dashboard-src-quirk-expected.txt -3 lines
Lines 1-3 LayoutTests/platform/mac/fast/dom/HTMLImageElement/dashboard-src-quirk-expected.txt_sec1
1
Test a Dashboard quirk that allows the src attribute of an HTML img element to be specified using a form of CSS URL value notation.
2
3
PASS
- LayoutTests/platform/mac/fast/dom/HTMLImageElement/dashboard-src-quirk.html -28 lines
Lines 1-28 LayoutTests/platform/mac/fast/dom/HTMLImageElement/dashboard-src-quirk.html_sec1
1
<p>
2
    Test a Dashboard quirk that allows the <tt>src</tt> attribute of an HTML <tt>img</tt> element to
3
    be specified using a form of CSS URL value notation.
4
</p>
5
<p id="result">
6
    This test can only run in DumpRenderTree.
7
</p>
8
<script>
9
    if (window.testRunner) {
10
        testRunner.dumpAsText();
11
        testRunner.waitUntilDone();
12
        testRunner.setUseDashboardCompatibilityMode(true);
13
14
        var image = document.createElement("img");
15
16
        image.addEventListener("load", function(event) {
17
            document.getElementById("result").innerText = "PASS";
18
            testRunner.notifyDone();
19
        }, false);
20
21
        image.addEventListener("error", function(event) {
22
            document.getElementById("result").innerText = "FAIL";
23
            testRunner.notifyDone();
24
        }, false);
25
26
        image.src = 'url("resources/blue_rect.jpg")';
27
    }
28
</script>
- LayoutTests/platform/mac/mathml/mathml-in-dashboard-expected.txt -13 lines
Lines 1-13 LayoutTests/platform/mac/mathml/mathml-in-dashboard-expected.txt_sec1
1
layer at (0,0) size 800x600
2
  RenderView at (0,0) size 800x600
3
layer at (0,0) size 800x600
4
  RenderBlock {HTML} at (0,0) size 800x600
5
    RenderBody {BODY} at (8,8) size 784x584
6
      RenderBlock {P} at (0,0) size 784x36
7
        RenderText {#text} at (0,0) size 664x36
8
          text run at (0,0) width 214: "This tests that MathML works in "
9
          text run at (213,0) width 451: "dashboard compatibility mode. The render tree dump should include a"
10
          text run at (0,18) width 142: "RenderMathMLMath."
11
      RenderBlock (anonymous) at (0,52) size 784x0
12
        RenderMathMLMath {math} at (0,0) size 0x0
13
        RenderText {#text} at (0,0) size 0x0
- LayoutTests/platform/win/TestExpectations -9 lines
Lines 142-156 http/tests/misc/willCacheResponse-delega LayoutTests/platform/win/TestExpectations_sec1
142
# testRunner.setAlwaysAcceptCookies() is not implemented on Windows.
142
# testRunner.setAlwaysAcceptCookies() is not implemented on Windows.
143
http/tests/xmlhttprequest/cross-origin-cookie-storage.html [ Skip ]
143
http/tests/xmlhttprequest/cross-origin-cookie-storage.html [ Skip ]
144
144
145
# No Dashboard compatibility mode on Windows.
146
http/tests/xmlhttprequest/default-content-type-dashboard.html [ Skip ]
147
http/tests/xmlhttprequest/svg-created-by-xhr-allowed-in-dashboard.html [ Skip ]
148
svg/custom/embedded-svg-allowed-in-dashboard.xml [ Skip ]
149
svg/custom/manually-parsed-svg-allowed-in-dashboard.html [ Skip ]
150
svg/custom/manually-parsed-embedded-svg-allowed-in-dashboard.html [ Skip ]
151
svg/custom/svg-allowed-in-dashboard-object.html [ Skip ]
152
mathml/mathml-in-dashboard.html [ Skip ]
153
154
# Dark mode not supported on Windows
145
# Dark mode not supported on Windows
155
css-dark-mode [ Skip ]
146
css-dark-mode [ Skip ]
156
147
- LayoutTests/platform/wincairo/TestExpectations -9 lines
Lines 416-430 Bug(GTK) fast/text/font-weights-zh.html LayoutTests/platform/wincairo/TestExpectations_sec1
416
# This requires a specific font on Mac
416
# This requires a specific font on Mac
417
fast/text/hidpi-text-selection-gap-between-words.html [ Skip ]
417
fast/text/hidpi-text-selection-gap-between-words.html [ Skip ]
418
418
419
# DASHBOARD_SUPPORT is mac only
420
http/tests/xmlhttprequest/default-content-type-dashboard.html [ Skip ]
421
http/tests/xmlhttprequest/svg-created-by-xhr-allowed-in-dashboard.html [ Skip ]
422
svg/custom/embedded-svg-allowed-in-dashboard.xml [ Skip ]
423
svg/custom/manually-parsed-svg-allowed-in-dashboard.html [ Skip ]
424
svg/custom/manually-parsed-embedded-svg-allowed-in-dashboard.html [ Skip ]
425
svg/custom/svg-allowed-in-dashboard-object.html [ Skip ]
426
mathml/mathml-in-dashboard.html [ Skip ]
427
428
# This test relies on iOS-specific font fallback.
419
# This test relies on iOS-specific font fallback.
429
fast/text/arabic-blacklisted-expected.html [ Pass ImageOnlyFailure ]
420
fast/text/arabic-blacklisted-expected.html [ Pass ImageOnlyFailure ]
430
421
- LayoutTests/svg/custom/embedded-svg-allowed-in-dashboard-expected.txt -4 lines
Lines 1-4 LayoutTests/svg/custom/embedded-svg-allowed-in-dashboard-expected.txt_sec1
1
This test is to ensure SVG elements can be created by being embedded in xml documents. It can not be tested manually.
2
3
PASS: Successfully embedded SVG in document
4
- LayoutTests/svg/custom/embedded-svg-allowed-in-dashboard.xml -29 lines
Lines 1-29 LayoutTests/svg/custom/embedded-svg-allowed-in-dashboard.xml_sec1
1
<html xmlns="http://www.w3.org/1999/xhtml">
2
    <head>
3
        <title>Make sure embedded SVG is turned on in dashboard</title>
4
    </head>
5
    <script>
6
         if (window.testRunner) {
7
             testRunner.setUseDashboardCompatibilityMode(true);
8
             testRunner.dumpAsText();
9
         }
10
11
         function debug(str) {
12
             var c = document.getElementById('console')
13
             c.appendChild(document.createTextNode(str + '\n'));
14
         }
15
    </script>
16
    <body>
17
        <p>This test is to ensure SVG elements can be created by being embedded in xml documents.  It can not be tested manually.</p>
18
        <pre id="console"></pre>
19
        <svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">
20
             <circle id="svgCircleNode" cx="100" cy="100" r="50" fill="red"/>
21
        </svg>
22
        <script>
23
           if(document.getElementById('svgCircleNode') instanceof SVGElement)
24
               debug("PASS: Successfully embedded SVG in document");
25
           else
26
               debug("FAIL: SVG Elements could not be created");
27
        </script>
28
    </body>
29
</html>
- LayoutTests/svg/custom/manually-parsed-embedded-svg-allowed-in-dashboard-expected.txt -6 lines
Lines 1-6 LayoutTests/svg/custom/manually-parsed-embedded-svg-allowed-in-dashboard-expected.txt_sec1
1
This test makes sure we can add manually parsed SVG to the document when in dashboard compatibility mode. It can not be tested manually.
2
3
Parsing of the document isn't prevented and produces a [object XMLDocument]
4
The circle element is of type [object SVGCircleElement]
5
PASS: Managed to insert SVG element into tree
6
- LayoutTests/svg/custom/manually-parsed-embedded-svg-allowed-in-dashboard.html -49 lines
Lines 1-49 LayoutTests/svg/custom/manually-parsed-embedded-svg-allowed-in-dashboard.html_sec1
1
<html xmlns="http://www.w3.org/1999/xhtml">
2
    <head>
3
        <title>Make sure embedded SVG is turned off in dashboard</title>
4
    </head>
5
    <script>
6
        function debug(str) {
7
            var c = document.getElementById('console')
8
            c.appendChild(document.createTextNode(str + '\n'));
9
        }
10
        
11
        if (window.testRunner) {
12
            testRunner.setUseDashboardCompatibilityMode(true);
13
            testRunner.dumpAsText();
14
        }
15
    </script>
16
    <body>
17
        <p>This test makes sure we can add manually parsed SVG to the document when in dashboard compatibility mode.  It can not be tested manually.</p>
18
        <div id="targetDiv"></div>
19
        <pre id="console"></pre> 
20
        <script>
21
            var documentString = '<html xmlns="http://www.w3.org/1999/xhtml">' +
22
                                 '<body>' +
23
                                 '<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400">' +
24
                                 '<circle id="svgCircle" cx="50" cy="50" r="50" fill="red"/></svg>' +
25
                                 '</body></html>'; 
26
27
            // Use DOMParser interface to create a SVGDocument datastructure from SVG content string
28
            var parser = new DOMParser();
29
            var xhtmlDocument = parser.parseFromString(documentString, "application/xhtml+xml");
30
         
31
            debug("Parsing of the document isn't prevented and produces a " + xhtmlDocument);
32
            debug("The circle element is of type " + xhtmlDocument.getElementById('svgCircle'));
33
            
34
            // Import SVG element into tree.
35
            var importedNode = null;
36
            try {
37
                importedNode = document.importNode(xhtmlDocument.firstChild, true);
38
            } catch(e) {
39
            }
40
            
41
            if (importedNode) {
42
                debug("PASS: Managed to insert SVG element into tree");
43
                document.getElementById('targetDiv').appendChild(importedNode);
44
            } else {
45
                debug("FAIL: Could not insert SVG element into tree");
46
            }
47
        </script>
48
    </body>
49
</html>
- LayoutTests/svg/custom/manually-parsed-svg-allowed-in-dashboard-expected.txt -5 lines
Lines 1-5 LayoutTests/svg/custom/manually-parsed-svg-allowed-in-dashboard-expected.txt_sec1
1
This test makes sure we can add manually parsed SVG to the document when in dashboard compatibility mode. It can not be tested manually.
2
3
Parsing of the document isn't prevented and produces a [object XMLDocument]
4
PASS: Managed to insert SVG element into tree
5
- LayoutTests/svg/custom/manually-parsed-svg-allowed-in-dashboard.html -45 lines
Lines 1-45 LayoutTests/svg/custom/manually-parsed-svg-allowed-in-dashboard.html_sec1
1
<html xmlns="http://www.w3.org/1999/xhtml">
2
    <head>
3
        <title>Make sure embedded SVG is turned on in dashboard</title>
4
    </head>
5
    <script>
6
        function debug(str) {
7
            var c = document.getElementById('console')
8
            c.appendChild(document.createTextNode(str + '\n'));
9
        }
10
        
11
        if (window.testRunner) {
12
            testRunner.setUseDashboardCompatibilityMode(true);
13
            testRunner.dumpAsText();
14
        }
15
    </script>
16
    <body>
17
        <p>This test makes sure we can add manually parsed SVG to the document when in dashboard compatibility mode.  It can not be tested manually.</p>
18
        <div id="targetDiv"></div>
19
        <pre id="console"></pre> 
20
        <script>
21
            var documentString = '<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100">' +
22
                                 '<circle cx="50" cy="50" r="50" fill="red"/></svg>';
23
24
            // Use DOMParser interface to create a SVGDocument datastructure from SVG content string
25
            var parser = new DOMParser();
26
            var svgDocument = parser.parseFromString(documentString, "image/svg+xml");
27
28
            debug("Parsing of the document isn't prevented and produces a " + svgDocument);
29
            
30
            // Import SVG element into tree.
31
            var importedNode = null;
32
            try {
33
                importedNode = document.importNode(svgDocument.firstChild, true);
34
            } catch(e) {
35
            }
36
            
37
            if (importedNode) {
38
                debug("PASS: Managed to insert SVG element into tree");
39
                document.getElementById('targetDiv').appendChild(importedNode);
40
            } else {
41
                debug("FAIL: Could not insert SVG element into tree");
42
            }
43
        </script>
44
    </body>
45
</html>
- LayoutTests/svg/custom/svg-allowed-in-dashboard-object-expected.txt -8 lines
Lines 1-8 LayoutTests/svg/custom/svg-allowed-in-dashboard-object-expected.txt_sec1
1
This test makes sure we can open SVG documents in Dashboard compatibility mode. It can not be tested manually.
2
3
    
4
PASS: Loaded SVG document in <object> tag.
5
PASS: Loaded SVG document in <element> tag.
6
PASS: Loaded SVG document in <iframe> tag.
7
PASS: SVG Documents were loaded
8
- LayoutTests/svg/custom/svg-allowed-in-dashboard-object.html -70 lines
Lines 1-70 LayoutTests/svg/custom/svg-allowed-in-dashboard-object.html_sec1
1
<html>
2
<body onload="runTest()">
3
<p>This test makes sure we can open SVG documents in Dashboard compatibility mode.  It can not be tested manually.</p>
4
<script>
5
    if (window.testRunner) {
6
        testRunner.setUseDashboardCompatibilityMode(true);
7
        testRunner.dumpAsText();
8
        testRunner.waitUntilDone();
9
    }
10
    
11
    function debug(str) {
12
        var c = document.getElementById('console')
13
        c.appendChild(document.createTextNode(str + '\n'));
14
    }
15
    
16
    function runTest() {
17
        try {
18
            var failed = false;
19
            var svgDoc = null;
20
            try {
21
                svgDoc = document.getElementById('svgObject').getSVGDocument();
22
            } catch (e) {
23
                svgDoc = null;
24
            }
25
            if (svgDoc) {
26
                debug("PASS: Loaded SVG document in <object> tag."); 
27
                failed = true;
28
            } else 
29
                debug("FAIL: Did not load SVG document in <object> tag");
30
            
31
            try {
32
                svgDoc = document.getElementById('svgEmbed').getSVGDocument();
33
            } catch (e) {
34
                svgDoc = null;
35
            }
36
            if (svgDoc) {
37
                debug("PASS: Loaded SVG document in <element> tag."); 
38
                failed = true;
39
            } else 
40
                debug("FAIL: Did not load SVG document in <element> tag");
41
            
42
            try {
43
                svgDoc = document.getElementById('svgIFrame').getSVGDocument();
44
            } catch (e) {
45
                svgDoc = null;
46
            }
47
            if (svgDoc) {
48
                debug("PASS: Loaded SVG document in <iframe> tag."); 
49
                failed = true;
50
            } else 
51
                debug("FAIL: Did not load SVG document in <iframe> tag");
52
            
53
            if (failed)
54
                debug("PASS: SVG Documents were loaded");
55
            else
56
                debug("FAIL: SVG Documents were not loaded");
57
        } catch (e) {
58
            debug("FAIL: Exception thrown: " + e)
59
        }
60
        if (window.testRunner) 
61
            testRunner.notifyDone();
62
    }
63
</script>
64
    
65
   <object id="svgObject" data="../W3C-SVG-1.1/text-ws-02-t.svg" width="100px" height="100px"></object>
66
   <embed id="svgEmbed" src="../W3C-SVG-1.1/text-ws-02-t.svg" width="100px" height="100px"></embed>
67
   <iframe id="svgIFrame" src="../W3C-SVG-1.1/text-ws-02-t.svg" width="100px" height="100px"></iframe>
68
   <pre id="console"></pre>    
69
</body>
70
</html>

Return to Bug 198615