|
|
Chromium Code Reviews|
Created:
4 years, 6 months ago by Gleb Lanbin Modified:
4 years, 6 months ago CC:
chromium-reviews, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionSet LayoutListBox's height as 'size' attribute * (height of the tallest option).
This will change the current behaviour where we set the size of HTML select element based on the height of first option.
The new behaviour is consistent with other browsers, e.g. Firefox sizes the box as (size * (height of the tallest option)).
BUG=616187
Committed: https://crrev.com/e676eabb8a1e897bbc31a228fe5e49dab06d53e3
Cr-Commit-Position: refs/heads/master@{#401166}
Patch Set 1 #Patch Set 2 : Rebaseline #Patch Set 3 : resolve conflict #
Total comments: 6
Patch Set 4 : fix comments #Patch Set 5 : Resolve a merge conflict #Patch Set 6 : 2nd merge conflict #
Messages
Total messages: 40 (20 generated)
Patchset #1 (id:1) has been deleted
The CQ bit was checked by glebl@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2060493002/20001
glebl@chromium.org changed reviewers: + eae@chromium.org
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by glebl@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2060493002/40001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-simulator-gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-gn/...) mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...) mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_r...) win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/...)
The CQ bit was checked by glebl@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2060493002/60001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
szager@chromium.org changed reviewers: + szager@chromium.org
https://codereview.chromium.org/2060493002/diff/60001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/layout/LayoutListBox.cpp (right): https://codereview.chromium.org/2060493002/diff/60001/third_party/WebKit/Sour... third_party/WebKit/Source/core/layout/LayoutListBox.cpp:87: LayoutObject* layoutObject = toLayoutBox(element->layoutObject()); Remove toLayoutBox: LayoutObject* layoutObject = element->layoutObject(); https://codereview.chromium.org/2060493002/diff/60001/third_party/WebKit/Sour... third_party/WebKit/Source/core/layout/LayoutListBox.cpp:89: maxHeight = std::max(maxHeight, toLayoutBox(element->layoutObject())->size().height()); Use layoutObject here, rather than calling element->layoutObject() again. https://codereview.chromium.org/2060493002/diff/60001/third_party/WebKit/Sour... third_party/WebKit/Source/core/layout/LayoutListBox.cpp:91: return std::max(maxHeight, defaultItemHeight()); I don't think this is quite right; you shouldn't expand to defaultItemHeight() if all of the items have computed sizes. I think the loop should be: for (Element* element ...) { ... LayoutUnit itemHeight; if (layoutObject && layoutObject->isBox()) itemHeight = toLayoutBox(layoutObject)->size().height(); else itemHeight = defaultItemHeight(); maxHeight = std::max(maxHeight, itemHeight); } return maxHeight;
Patchset #4 (id:80001) has been deleted
https://codereview.chromium.org/2060493002/diff/60001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/layout/LayoutListBox.cpp (right): https://codereview.chromium.org/2060493002/diff/60001/third_party/WebKit/Sour... third_party/WebKit/Source/core/layout/LayoutListBox.cpp:87: LayoutObject* layoutObject = toLayoutBox(element->layoutObject()); On 2016/06/13 19:46:38, szager1 wrote: > Remove toLayoutBox: > > LayoutObject* layoutObject = element->layoutObject(); Done. https://codereview.chromium.org/2060493002/diff/60001/third_party/WebKit/Sour... third_party/WebKit/Source/core/layout/LayoutListBox.cpp:89: maxHeight = std::max(maxHeight, toLayoutBox(element->layoutObject())->size().height()); On 2016/06/13 19:46:38, szager1 wrote: > Use layoutObject here, rather than calling element->layoutObject() again. Done. https://codereview.chromium.org/2060493002/diff/60001/third_party/WebKit/Sour... third_party/WebKit/Source/core/layout/LayoutListBox.cpp:91: return std::max(maxHeight, defaultItemHeight()); On 2016/06/13 19:46:38, szager1 wrote: > I don't think this is quite right; you shouldn't expand to defaultItemHeight() > if all of the items have computed sizes. I think the loop should be: > > for (Element* element ...) { > ... > LayoutUnit itemHeight; > if (layoutObject && layoutObject->isBox()) > itemHeight = toLayoutBox(layoutObject)->size().height(); > else > itemHeight = defaultItemHeight(); > maxHeight = std::max(maxHeight, itemHeight); > } > return maxHeight; Done. thanks.
lgtm, but please wait for eae.
LGTM Thank you!
The CQ bit was checked by eae@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2060493002/100001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-device-gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-gn/bui...) ios-simulator on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...) ios-simulator-gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-gn/...)
The CQ bit was checked by glebl@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from eae@chromium.org, szager@chromium.org Link to the patchset: https://codereview.chromium.org/2060493002/#ps120001 (title: "Resolve a merge conflict")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2060493002/120001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by glebl@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from eae@chromium.org, szager@chromium.org Link to the patchset: https://codereview.chromium.org/2060493002/#ps140001 (title: "2nd merge conflict")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2060493002/140001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by glebl@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2060493002/140001
Message was sent while issue was closed.
Committed patchset #6 (id:140001)
Message was sent while issue was closed.
Description was changed from ========== Set LayoutListBox's height as 'size' attribute * (height of the tallest option). This will change the current behaviour where we set the size of HTML select element based on the height of first option. The new behaviour is consistent with other browsers, e.g. Firefox sizes the box as (size * (height of the tallest option)). BUG=616187 ========== to ========== Set LayoutListBox's height as 'size' attribute * (height of the tallest option). This will change the current behaviour where we set the size of HTML select element based on the height of first option. The new behaviour is consistent with other browsers, e.g. Firefox sizes the box as (size * (height of the tallest option)). BUG=616187 Committed: https://crrev.com/e676eabb8a1e897bbc31a228fe5e49dab06d53e3 Cr-Commit-Position: refs/heads/master@{#401166} ==========
Message was sent while issue was closed.
Patchset 6 (id:??) landed as https://crrev.com/e676eabb8a1e897bbc31a228fe5e49dab06d53e3 Cr-Commit-Position: refs/heads/master@{#401166} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
