DescriptionMakes View::focusable() return last value supplied to SetFocusable()
As focusable() may effect the preferred size it is important that it
returns the last value passed to SetFocusable() rather than if the
view is focusable right now. Otherwise focusable() could change value
based on enabled or visible state, resulting in the preferred size
bouncing around.
I'm also making focusable() protected as it's really only subclasses
that should care about it. Especially since we also have
IsFocusable().
BUG=330696
TEST=covered by test
R=ben@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=244282
Patch Set 1 #Patch Set 2 : fix views_examples #
Messages
Total messages: 7 (0 generated)
|