Commit 6737e0f2 authored by Nico Weber's avatar Nico Weber

Remaining tricky bits to build webkit_unit_tests with -Wimplicit-fallthrough.

For Range objects where min or max value can't be queried (due to
the node being detached), we currently fall through to the splitter
code which then returns a value of 50 for the range. This Cl makes it
explicit that this behavior is intended.

This CL was uploaded by git cl split.

R=dmazzoni@chromium.org

Bug: 177475
Change-Id: Ife0beab1bc377ca17998601934f4dd38c2349159
Reviewed-on: https://chromium-review.googlesource.com/890074Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#533014}
parent 893e1ab4
......@@ -1583,6 +1583,7 @@ bool AXNodeObject::ValueForRange(float* out_value) const {
*out_value = (min_value + max_value) / 2.0f;
return true;
}
FALLTHROUGH;
}
case kSplitterRole: {
*out_value = 50.0f;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment