[cascade] Provide HashTraits for CSSPropertyName.
This is needed for the Cascade Project, which will use CSSPropertyName as the HashMap key. HashTraits requires the key object to support "empty" and "deleted" values. This is implemented by storing kEmptyValue and kDeletedValue in an integer which is shared with the CSSPropertyID. Constructing empty or deleted CSSPropertyNames is not advisable outside of HashTraits, hence the relevant constructor is exposed via friendship. (Inspired by PropertyHandle). BUG=947004 R=futhark@chromium.org Change-Id: I48bfb3707f73f0cadd7696075fce622352f9dee0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1553555Reviewed-by:Rune Lillesveen <futhark@chromium.org> Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/master@{#649069}
Showing
Please register or sign in to comment