Summary: | Web Replay: code generator should be able to encode/decode ViewState::Flags | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Brian Burg <burg> | ||||
Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED LATER | ||||||
Severity: | Normal | CC: | bburg, joepeck | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Bug Depends on: | 136312 | ||||||
Bug Blocks: | 129694 | ||||||
Attachments: |
|
Description
Brian Burg
2014-08-27 11:04:54 PDT
Even simpler: enum class WebEnums { FooBar, BarBaz }; struct ViewState { typedef uint32_t Flags; }; template <typename EnumType, EnumType tag> class Phantom { }; template<> struct EncodingTraits<Phantom<JSEnums,JSEnums::FooBar>> { typedef ViewState::Flags DecodedType; static EncodedValue encodeValue(const DecodedType&); static bool decodeValue(EncodedValue&, const DecodedType&); }; Created attachment 238625 [details]
WIP
Closing web replay-related bugs until we resume working on the feature again. |