DescriptionUse an unsigned of flags in ElementRareData
Instead of exposing tons of getters and setters on Element we can use an
enum of flags and treat the bits inside ElementRareData as just a flag
field like we do in Node. This removes a lot of boilerplate code and also
makes the check for style sharing a lot simpler since now we can just
OR the flags that disable sharing together. That's good since that check
is super hot in profiles.
This also lets us make all the other "flag reading" methods into simple
inline getters that call hasElementFlag() which early outs on not having
any rare data.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169426
Patch Set 1 #Patch Set 2 : Add back clearHasPendingResources() #
Total comments: 1
Patch Set 3 : fix clearHasPendingResources() #Patch Set 4 : try again #
Messages
Total messages: 18 (0 generated)
|