DescriptionRemove ComputedStyle::initializeBitDefaults().
Previously, the data members in ComputedStyle were initialized using
a method called initializeBitDefaults(). This was to avoid duplicating
code for the two constructors in ComputedStyle. Now that there is only
one constructor in ComputedStyle (that initializes the initial style),
we can remove this method.
This patch replaces the initializeBitDefaults() method with proper
initializer lists in ComputedStyle, InheritedData and NonInheritedData.
It also removes the initial style tag from the ComputedStyle
constructor since we no longer have to differentiate between two
constructors.
BUG=628043
Review-Url: https://codereview.chromium.org/2755043002
Cr-Commit-Position: refs/heads/master@{#458006}
Committed: https://chromium.googlesource.com/chromium/src/+/8f1b6debc47bc4c5e528fe56a7941c36b04c7f1a
Patch Set 1 #
Messages
Total messages: 12 (5 generated)
|