Skip to content

Commit

Permalink
Build fix after 285453@main
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=281926
rdar://138430813

Reviewed by Aditya Keerthi.

Correct added compile-time flag.

* Source/WTF/wtf/PlatformEnableCocoa.h:
Correct added compile-time flag.
* Source/WebCore/html/HTMLImageElement.idl:
Correct usage of added compile-time flag.

Canonical link: https://commits.webkit.org/285589@main
  • Loading branch information
Yoel Hawa authored and pxlcoder committed Oct 23, 2024
1 parent 46d8803 commit feb66d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 0 additions & 4 deletions Source/WTF/wtf/PlatformEnableCocoa.h
Original file line number Diff line number Diff line change
Expand Up @@ -1070,10 +1070,6 @@
#define ENABLE_MEDIA_RECORDER_WEBM 1
#endif

#if PLATFORM(VISION) && __VISION_OS_VERSION_MAX_ALLOWED >= 20400
#define ENABLE_SPATIAL_IMAGE_CONTROLS 1
#endif

#if !defined(ENABLE_WEB_PROCESS_SUSPENSION_DELAY) && PLATFORM(MAC)
#define ENABLE_WEB_PROCESS_SUSPENSION_DELAY 1
#endif
4 changes: 1 addition & 3 deletions Source/WebCore/html/HTMLImageElement.idl
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@
[CEReactions=NotNeeded] attribute [AtomString] DOMString? crossOrigin;
[CEReactions=NotNeeded, Reflect] attribute DOMString useMap;
[CEReactions=NotNeeded, Reflect] attribute boolean isMap;
#if defined(ENABLE_SPATIAL_IMAGE_CONTROLS) && ENABLE_SPATIAL_IMAGE_CONTROLS
[CEReactions=NotNeeded, EnabledBySetting=SpatialImageControlsEnabled, Reflect] attribute boolean controls;
#endif
[CEReactions=NotNeeded, Conditional=SPATIAL_IMAGE_CONTROLS, EnabledBySetting=SpatialImageControlsEnabled, Reflect] attribute boolean controls;
[CEReactions=NotNeeded] attribute unsigned long width;
[CEReactions=NotNeeded] attribute unsigned long height;
readonly attribute unsigned long naturalHeight;
Expand Down

0 comments on commit feb66d3

Please sign in to comment.