Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Our Design Time team wasn't satisfied with "TRINIDAD-1637 always check for file modification if in DesignTime mode regardless of web.xml setting".
Instead, they'd rather if we always update the skin. Since we now have the skin.isDirty/setDirty apis, we can use those.
The fix for this is in StyleContextImpl. Revert the change for 1637 and in StyleContextImpls's isDirty, return true if DesignTime mode && flag is set. Also, in this case, setDirty to true on the skin in case someone is checking the skin instead of the StyleContext.
Also, in FileSystemStyleCache, instead of calling skin.isDirty, call styleContext.isDirty like I should have done in the first place.