mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:57:35 +00:00
LibWebView: Allow using native/user style sheets on Lagom
Move the methods to set the native/user style sheets to the base ViewImplementation class. We must also generate the native style sheet explicitly for now, as LibWebView on Lagom isn't able to include the main LibWebView CMakeLists.txt file yet.
This commit is contained in:
parent
7df48756d6
commit
3f122b7335
5 changed files with 25 additions and 16 deletions
|
@ -442,6 +442,15 @@ if (BUILD_LAGOM)
|
|||
compile_ipc(${SERENITY_PROJECT_ROOT}/Userland/Services/WebContent/WebDriverClient.ipc WebContent/WebDriverClientEndpoint.h)
|
||||
compile_ipc(${SERENITY_PROJECT_ROOT}/Userland/Services/WebContent/WebDriverServer.ipc WebContent/WebDriverServerEndpoint.h)
|
||||
|
||||
embed_as_string_view(
|
||||
"NativeStyleSheetSource"
|
||||
"${SERENITY_PROJECT_ROOT}/Userland/Libraries/LibWebView/Native.css"
|
||||
"LibWebView/NativeStyleSheetSource.cpp"
|
||||
"native_stylesheet_source"
|
||||
NAMESPACE "WebView"
|
||||
)
|
||||
|
||||
list(APPEND LIBWEBVIEW_GENERATED_SOURCES LibWebView/NativeStyleSheetSource.cpp)
|
||||
list(APPEND LIBWEBVIEW_GENERATED_SOURCES WebContent/WebContentClientEndpoint.h)
|
||||
list(APPEND LIBWEBVIEW_GENERATED_SOURCES WebContent/WebContentServerEndpoint.h)
|
||||
list(APPEND LIBWEBVIEW_GENERATED_SOURCES WebContent/WebDriverClientEndpoint.h)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue