Chromium Code Reviews
DescriptionFix redundant code warning reported by VC++ /analyze
The experimental /analyze builder pointed out that this code:
else if (!m_userScrollableHorizontal && !m_userScrollableHorizontal)
is incorrect. It said:
webkit\source\platform\graphics\paint\scrollpaintpropertynode.cpp(30) :
warning C6287: Redundant code: the left and right sub-expressions are
identical.
And indeed, it looks like the check should have been:
if (!m_userScrollableHorizontal && !m_userScrollableVertical)
BUG=427616
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Review-Url: https://codereview.chromium.org/2664253003
Cr-Commit-Position: refs/heads/master@{#447384}
Committed: https://chromium.googlesource.com/chromium/src/+/513262b8cc025c21e6b767e2e0ab3f55613b174d
Patch Set 1 #
Messages
Total messages: 12 (9 generated)
|
|||||||||||||||||||