Skip to content

android: Move servo[Args][Log] to constructor - #47644

Merged
jdm merged 1 commit into
servo:mainfrom
veyndan:mv-servo-args-logs
Aug 30, 2026
Merged

jdm merged 1 commit into
servo:mainfrom
veyndan:mv-servo-args-logs

Conversation

@veyndan

@veyndan veyndan commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

setServoArgs currently gives the false impression that it can be invoked after the surface has been created and update the engine with it's arguments. This isn't the case though, since calling setServoArgs is a no-op after the surface has been created.

It's not possible yet to move experimentalMode to the constructor yet, since the argument is calculated assuming an instance of ServoView is present, getting us into the chicken and the egg problem.

The method has been renamed to setExperimentalModeInit for now to make clear that this is only useful to set during the initialisation phase of the surface. Moving experimentalMode to the constructor will be addressed in a follow-up PR though, so this clarity is in the type system instead of a function name.

Testing: There are no automated tests for Android.

Signed-off-by: veyndan <veyndan@gmail.com>
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 30, 2026
@veyndan veyndan changed the title android: Move servo[Args][Logs] to constructor android: Move servo[Args][Log] to constructor Aug 30, 2026
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Aug 30, 2026
@jdm
jdm added this pull request to the merge queue Aug 30, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Aug 30, 2026
Merged via the queue into servo:main with commit 5eeb7bf Aug 30, 2026
37 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Aug 30, 2026
@veyndan
veyndan deleted the mv-servo-args-logs branch August 30, 2026 15:37
RichardTjokroutomo pushed a commit to RichardTjokroutomo/servo that referenced this pull request Oct 6, 2026
`setServoArgs` currently gives the false impression that it can be
invoked after the surface has been created and update the engine with
it's arguments. This isn't the case though, since calling `setServoArgs`
is a no-op after the surface has been created.

It's not possible yet to move `experimentalMode` to the constructor yet,
since the argument is calculated assuming an instance of `ServoView` is
present, getting us into the chicken and the egg problem.

The method has been renamed to `setExperimentalModeInit` for now to make
clear that this is only useful to set during the initialisation phase of
the surface. Moving `experimentalMode` to the constructor will be
addressed in a follow-up PR though, so this clarity is in the type
system instead of a function name.

Testing: There are no automated tests for Android.

Signed-off-by: veyndan <veyndan@gmail.com>
Psychpsyo pushed a commit to Psychpsyo/servo that referenced this pull request Oct 12, 2026
`setServoArgs` currently gives the false impression that it can be
invoked after the surface has been created and update the engine with
it's arguments. This isn't the case though, since calling `setServoArgs`
is a no-op after the surface has been created.

It's not possible yet to move `experimentalMode` to the constructor yet,
since the argument is calculated assuming an instance of `ServoView` is
present, getting us into the chicken and the egg problem.

The method has been renamed to `setExperimentalModeInit` for now to make
clear that this is only useful to set during the initialisation phase of
the surface. Moving `experimentalMode` to the constructor will be
addressed in a follow-up PR though, so this clarity is in the type
system instead of a function name.

Testing: There are no automated tests for Android.

Signed-off-by: veyndan <veyndan@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants