Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Issue 2229753002: Test that FrameView::incrementVisuallyNonEmptyPixelCount() doesn't overflow (Closed)

Created:
4 years, 4 months ago by hiroshige
Modified:
4 years, 2 months ago
Reviewers:
bokan, esprehn
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Test that FrameView::incrementVisuallyNonEmptyPixelCount() doesn't overflow This CL adds an unit test for https://codereview.chromium.org/2218003003/ that would have failed before that CL. BUG=634819 Committed: https://crrev.com/924bbbbfed37fa4c08187bdc137aeed76e8b96ec Cr-Commit-Position: refs/heads/master@{#422040}

Patch Set 1 #

Patch Set 2 : Use max value of 32-bit signed integer #

Total comments: 2

Patch Set 3 : Add SimTest #

Total comments: 4

Patch Set 4 : Reflect comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -0 lines) Patch
M third_party/WebKit/Source/core/frame/FrameViewTest.cpp View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebMeaningfulLayoutsTest.cpp View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (7 generated)
hiroshige
PTAL.
4 years, 4 months ago (2016-08-09 08:58:06 UTC) #3
esprehn
How does html content manage to hit this btw?
4 years, 4 months ago (2016-08-09 10:16:35 UTC) #4
esprehn
How does html content manage to hit this btw?
4 years, 4 months ago (2016-08-09 10:16:36 UTC) #5
hiroshige
On 2016/08/09 10:16:36, esprehn wrote: > How does html content manage to hit this btw? ...
4 years, 4 months ago (2016-08-09 10:30:31 UTC) #6
bokan
https://codereview.chromium.org/2229753002/diff/20001/third_party/WebKit/Source/core/frame/FrameViewTest.cpp File third_party/WebKit/Source/core/frame/FrameViewTest.cpp (right): https://codereview.chromium.org/2229753002/diff/20001/third_party/WebKit/Source/core/frame/FrameViewTest.cpp#newcode173 third_party/WebKit/Source/core/frame/FrameViewTest.cpp:173: document().view()->incrementVisuallyNonEmptyPixelCount(IntSize(2147483647, 2147483647)); This won't actually fail unless run on ...
4 years, 4 months ago (2016-08-09 14:10:32 UTC) #8
esprehn
On 2016/08/09 at 14:10:32, bokan wrote: > https://codereview.chromium.org/2229753002/diff/20001/third_party/WebKit/Source/core/frame/FrameViewTest.cpp > File third_party/WebKit/Source/core/frame/FrameViewTest.cpp (right): > > https://codereview.chromium.org/2229753002/diff/20001/third_party/WebKit/Source/core/frame/FrameViewTest.cpp#newcode173 ...
4 years, 4 months ago (2016-08-10 04:14:06 UTC) #9
hiroshige
Added a SimTest. https://codereview.chromium.org/2229753002/diff/20001/third_party/WebKit/Source/core/frame/FrameViewTest.cpp File third_party/WebKit/Source/core/frame/FrameViewTest.cpp (right): https://codereview.chromium.org/2229753002/diff/20001/third_party/WebKit/Source/core/frame/FrameViewTest.cpp#newcode173 third_party/WebKit/Source/core/frame/FrameViewTest.cpp:173: document().view()->incrementVisuallyNonEmptyPixelCount(IntSize(2147483647, 2147483647)); On 2016/08/09 14:10:32, bokan ...
4 years, 4 months ago (2016-08-12 06:30:16 UTC) #10
bokan
On 2016/08/12 06:30:16, hiroshige wrote: > Added a SimTest. > > https://codereview.chromium.org/2229753002/diff/20001/third_party/WebKit/Source/core/frame/FrameViewTest.cpp > File third_party/WebKit/Source/core/frame/FrameViewTest.cpp ...
4 years, 4 months ago (2016-08-12 14:05:35 UTC) #11
esprehn
Much better! https://codereview.chromium.org/2229753002/diff/40001/third_party/WebKit/Source/web/tests/WebMeaningfulLayoutsTest.cpp File third_party/WebKit/Source/web/tests/WebMeaningfulLayoutsTest.cpp (right): https://codereview.chromium.org/2229753002/diff/40001/third_party/WebKit/Source/web/tests/WebMeaningfulLayoutsTest.cpp#newcode189 third_party/WebKit/Source/web/tests/WebMeaningfulLayoutsTest.cpp:189: testing::runPendingTasks(); What task are you trying to ...
4 years, 4 months ago (2016-08-15 15:59:39 UTC) #12
esprehn
lgtm w/ the nits fixed :)
4 years, 3 months ago (2016-08-30 23:36:11 UTC) #13
esprehn
Should we land this? :)
4 years, 3 months ago (2016-09-08 22:13:00 UTC) #14
hiroshige
https://codereview.chromium.org/2229753002/diff/40001/third_party/WebKit/Source/web/tests/WebMeaningfulLayoutsTest.cpp File third_party/WebKit/Source/web/tests/WebMeaningfulLayoutsTest.cpp (right): https://codereview.chromium.org/2229753002/diff/40001/third_party/WebKit/Source/web/tests/WebMeaningfulLayoutsTest.cpp#newcode189 third_party/WebKit/Source/web/tests/WebMeaningfulLayoutsTest.cpp:189: testing::runPendingTasks(); On 2016/08/15 15:59:39, esprehn wrote: > What task ...
4 years, 2 months ago (2016-09-29 08:25:56 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2229753002/60001
4 years, 2 months ago (2016-09-30 06:05:19 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-09-30 06:10:26 UTC) #20
commit-bot: I haz the power
4 years, 2 months ago (2016-09-30 06:13:46 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/924bbbbfed37fa4c08187bdc137aeed76e8b96ec
Cr-Commit-Position: refs/heads/master@{#422040}

Powered by Google App Engine
This is Rietveld 408576698