Fix regression caused by r178354 where options in optgroup not indented

updateLabel wasn't always called when the parents changed so it wasn't getting indented even if it was inside an optgroup.

For example the problem happened when the label is provided through the label attribute or when the option is inserted from JS.

TEST=automated. listbox-group-indent.html
BUG=440253

Review URL: https://codereview.chromium.org/783983005

git-svn-id: svn://svn.chromium.org/blink/trunk@187110 bbb929c8-8fbe-4397-9dbb-9b2b20218538
11 files changed
tree: 60bc603296a4687d1b487498f602f7cf90678601
  1. third_party/