DescriptionMisc. Tab-related cleanup.
* Pass in the AnimationContainer directly instead of having a setter, since the only place that ever sets this does it immediately on creation. This allows Tab to not have to worry about if the animation container changes or disappears over time.
* Comment fix
* Create animations unconditionally in constructor instead of dynamically as needed. Animations aren't that big or expensive to create, and doing this avoids the need to remember to null-check everywhere in the code.
* Inline some constants right above the sole block where they're used
* Add 4-arg constructor for MultiAnimation::Parts and use constructor delegation to minimize the duplicated code footprint
* Reorder a conditional to remove nesting
* When converting from double to int, round instead of truncating; use ToRoundedInt() as much as possible
* Make boolean expression somewhat less confusing
* Rename some constants to more closely match their use
* Better structure for #ifdefs in TabStrip::GetInactiveAlpha()
BUG=none
TEST=none
Committed: https://crrev.com/158f43592244183d9f8e2666b27e3637fa1dfc21
Cr-Commit-Position: refs/heads/master@{#377281}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Review comments; fix test failure #Patch Set 3 : Better structure for #ifdefs #
Dependent Patchsets: Messages
Total messages: 15 (7 generated)
|