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

Issue 1195833002: Selection attributes changes from long to unsigned long (Closed)

Created:
5 years, 6 months ago by Habib Virji
Modified:
5 years, 4 months ago
Reviewers:
yoichio, philipj_slow
CC:
blink-reviews, vivekg, arv+blink, Inactive, vivekg_samsung
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Selection attributes changes from long to unsigned long Selection.idl values changed from long to unsigned long. Also changes done to non-standard API as they all use same single function. Also includes changes where check was done if value is less than 0 has been removed. Since value is unsigned value cannot be less than 0. BUG=496400 R=philipj, yoichio

Patch Set 1 #

Patch Set 2 : Fixes offset error message #

Total comments: 5

Patch Set 3 : Using static_cast checks for checking if the value are -ve. #

Total comments: 2

Patch Set 4 : Updated missed return statement #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -45 lines) Patch
M Source/core/editing/DOMSelection.h View 3 chunks +10 lines, -10 lines 0 comments Download
M Source/core/editing/DOMSelection.cpp View 1 2 3 10 chunks +22 lines, -22 lines 1 comment Download
M Source/core/editing/Selection.idl View 3 chunks +12 lines, -13 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1195833002/1
5 years, 6 months ago (2015-06-19 14:49:52 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1195833002/20001
5 years, 6 months ago (2015-06-22 11:28:33 UTC) #5
yoichio
https://codereview.chromium.org/1195833002/diff/20001/Source/core/editing/DOMSelection.cpp File Source/core/editing/DOMSelection.cpp (right): https://codereview.chromium.org/1195833002/diff/20001/Source/core/editing/DOMSelection.cpp#newcode267 Source/core/editing/DOMSelection.cpp:267: exceptionState.throwDOMException(IndexSizeError, String::number(baseOffset) + " is larger than the base ...
5 years, 5 months ago (2015-07-13 02:29:45 UTC) #7
philipj_slow
https://codereview.chromium.org/1195833002/diff/20001/Source/core/editing/DOMSelection.cpp File Source/core/editing/DOMSelection.cpp (right): https://codereview.chromium.org/1195833002/diff/20001/Source/core/editing/DOMSelection.cpp#newcode267 Source/core/editing/DOMSelection.cpp:267: exceptionState.throwDOMException(IndexSizeError, String::number(baseOffset) + " is larger than the base ...
5 years, 5 months ago (2015-07-13 07:13:49 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1195833002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1195833002/40001
5 years, 4 months ago (2015-08-04 16:33:06 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-04 18:50:04 UTC) #12
Habib Virji
Thanks philipj and yoichio for your comments. Have replied inline to your queries can you ...
5 years, 4 months ago (2015-08-05 09:33:44 UTC) #13
yoichio
https://codereview.chromium.org/1195833002/diff/40001/Source/core/editing/DOMSelection.cpp File Source/core/editing/DOMSelection.cpp (right): https://codereview.chromium.org/1195833002/diff/40001/Source/core/editing/DOMSelection.cpp#newcode347 Source/core/editing/DOMSelection.cpp:347: exceptionState.throwDOMException(IndexSizeError, String::number(offset) + " is larger than the given ...
5 years, 4 months ago (2015-08-07 09:25:35 UTC) #14
Habib Virji
@yoichoi: Updated removed return statement... https://codereview.chromium.org/1195833002/diff/40001/Source/core/editing/DOMSelection.cpp File Source/core/editing/DOMSelection.cpp (right): https://codereview.chromium.org/1195833002/diff/40001/Source/core/editing/DOMSelection.cpp#newcode347 Source/core/editing/DOMSelection.cpp:347: exceptionState.throwDOMException(IndexSizeError, String::number(offset) + " ...
5 years, 4 months ago (2015-08-07 10:47:21 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1195833002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1195833002/60001
5 years, 4 months ago (2015-08-07 10:47:34 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-07 12:03:07 UTC) #19
philipj_slow
https://codereview.chromium.org/1195833002/diff/60001/Source/core/editing/DOMSelection.cpp File Source/core/editing/DOMSelection.cpp (right): https://codereview.chromium.org/1195833002/diff/60001/Source/core/editing/DOMSelection.cpp#newcode207 Source/core/editing/DOMSelection.cpp:207: if (static_cast<int>(offset) < 0) { This is really quite ...
5 years, 4 months ago (2015-08-10 13:46:40 UTC) #20
Habib Virji
5 years, 4 months ago (2015-08-11 15:26:55 UTC) #21
There are ample of test that would need updating for x < 0 scenario. So that's
the reason I opted for the static_int. 

In terms of deep change, it is not needed but there are several test which sends
-1 and the same issues as Image arises as value is converted to UINT_MAX - 1.
Solution for Image should be applicable here too.

Powered by Google App Engine
This is Rietveld 408576698