Ribbon: Dynamic CSSProperty objects.
Custom properties can currently not be represented by any subclass of CSSProperty, because we have no strategy for creating any such instances dynamically. (They all reside in static memory). This CL proposes a solution to this problem---hopefully ushering in a new and glorious era of code clean-ups and simplifications. In short, to obtain a CSSProperty reference for some property (be it standard property, custom property, or registered custom property), create a CSSPropertyRef object. This object will either point to one of the static instances (for standard properties), or will point to the embedded CustomProperty object (for both kinds of custom properties). For now, just IsInherited and the name functions have been implemented in CustomProperty. The plan is to complete the rest incrementally. Change-Id: I6905cbb23f67d0a3c1de0ecba03c9f0a18cb278c Reviewed-on: https://chromium-review.googlesource.com/c/1262638 Commit-Queue: Anders Ruud <andruud@chromium.org> Reviewed-by:Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#605292}
Showing
Please register or sign in to comment