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

Issue 338603003: Use abs() instead of std::abs() in Editor::firstRectForRange(). (Closed)

Created:
6 years, 6 months ago by Lei Zhang
Modified:
6 years, 6 months ago
Reviewers:
ojan
CC:
blink-reviews, groby+blinkspell_chromium.org, tkent, Inactive, Sunil Ratnu
Base URL:
http://src.chromium.org/blink/trunk/
Project:
blink
Visibility:
Public.

Description

Use abs() instead of std::abs() in Editor::firstRectForRange(). The subtle switch to std::abs() in r176032 caused TSAN bots to fail. BUG=384541

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M Source/core/editing/Editor.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Lei Zhang
6 years, 6 months ago (2014-06-13 21:52:09 UTC) #1
Lei Zhang
The CL that caused the issue got reverted as r176125. Closing...
6 years, 6 months ago (2014-06-14 00:28:36 UTC) #2
haraken
On 2014/06/14 00:28:36, Lei Zhang wrote: > The CL that caused the issue got reverted ...
6 years, 6 months ago (2014-06-14 00:30:52 UTC) #3
Lei Zhang
6 years, 6 months ago (2014-06-14 00:36:03 UTC) #4
Message was sent while issue was closed.
On 2014/06/14 00:30:52, haraken wrote:
> On 2014/06/14 00:28:36, Lei Zhang wrote:
> > The CL that caused the issue got reverted as r176125. Closing...
> 
> It would be worth fixing this so that we can reland the CL :)
> 
> It looks like we have two other std::abs()s in the code base:
>
https://code.google.com/p/chromium/codesearch#search/&q=std::abs%20package:%5...
> 
> Do we need to update them to ::abs as well?

It depends on the type, but since they are not causing any build problems,
probably not. I updated the bug with more info.

Powered by Google App Engine
This is Rietveld 408576698