mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-23 08:38:53 +00:00
Cappuccino previously supported three platform contexts behind the PLATFORM() preprocessor macro: Browser, CommonJS/Node, and a NativeHost target. NativeHost is no longer supported; this removes it and consolidates on Browser (for the app) and CommonJS/Node (still needed by the toolchain itself, for theme compilation and testing). PLATFORM(DOM) conditionals throughout AppKit governed both distinctions at once - Browser vs NativeHost, and separately, DOM-dependent code vs the CommonJS/Node build. Each conditional was reviewed individually: NativeHost-only branches were removed, while branches needed for CommonJS/Node were kept intact rather than collapsed to Browser-only. Also included, found in the course of this work: - Fixed two pre-existing duplicate instance-variable declarations (_ephemeralSubviews in CPView, _scrollingTimer in CPTextView) - Added a missing @import for CPTextContainer.j in CPTextView.j so it resolves when compiled outside the full framework bundle - Merged two Platform/DOM/*.j files into their parents to resolve a build-tool basename collision, preserving the CommonJS fallback path