[webkit-help] How does rendertheme.cpp load a new theme

Benjamin Poulain benjamin at webkit.org
Tue Dec 24 13:14:33 PST 2013


On 12/24/13, 9:17 AM, ksingh.sunil wrote:
> How does the below code load a new theme? Is it loading a file for theme?
> Rendertheme::rendertheme()
> #if use(new-theme)
> :m-theme(platformtheme())
> #endif
platformtheme() is defined by each port to return its implementation of 
the theme. For example for Mac:
> How can we provide a new theme?
The easiest is to modify the theme of your current WebKit port (Theme 
implementation, RenderTheme subclass and the relevant CSS files in 


More information about the webkit-help mailing list