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

Issue 763173003: Convert RenderBlockFlow code to use FloatingObject references (Closed)

Created:
6 years ago by Sunil Ratnu
Modified:
5 years, 6 months ago
CC:
blink-reviews, blink-reviews-paint_chromium.org, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, slimming-paint-reviews_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Convert RenderBlockFlow code to use FloatingObject references RenderBlockFlow has several methods that take FloatingObject pointers but those methods assumes that the objects will never be NULL. We should replace them by references. This makes the caller code safer. Also this CL removes dead code which is never used. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197011

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address Review Comments #

Total comments: 14

Patch Set 3 : addressed review comments #

Total comments: 12

Patch Set 4 : more usage of const with floatingObject #

Total comments: 8

Patch Set 5 : remove parenthesis #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -172 lines) Patch
M Source/core/layout/FloatingObjects.h View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/layout/FloatingObjects.cpp View 1 2 3 4 5 12 chunks +36 lines, -36 lines 0 comments Download
M Source/core/layout/LayoutBlockFlow.h View 1 2 3 4 5 5 chunks +34 lines, -34 lines 0 comments Download
M Source/core/layout/LayoutBlockFlow.cpp View 1 2 3 4 5 25 chunks +62 lines, -62 lines 0 comments Download
M Source/core/layout/LayoutBlockFlowLine.cpp View 1 2 3 4 5 7 chunks +18 lines, -18 lines 0 comments Download
M Source/core/layout/line/BreakingContextInlineHeaders.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/layout/line/LineBreaker.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/layout/line/LineWidth.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/layout/line/LineWidth.cpp View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/layout/shapes/ShapeOutsideInfo.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/paint/BlockFlowPainter.cpp View 1 2 3 1 chunk +9 lines, -9 lines 0 comments Download

Messages

Total messages: 25 (7 generated)
Sunil Ratnu
Please review this. Thanks! Sunil
6 years ago (2014-11-28 08:42:47 UTC) #2
Julien - ping for review
It really seem like we should fix the iteration to use reference, that would make ...
6 years ago (2014-12-01 16:12:47 UTC) #3
rwlbuis
On 2014/11/28 08:42:47, Sunil Ratnu wrote: > Please review this. > > Thanks! > Sunil ...
5 years, 11 months ago (2015-01-27 13:51:09 UTC) #4
Sunil Ratnu
Thanks for asking Rob. Have been doing a few other things lately, I will update ...
5 years, 11 months ago (2015-01-27 13:54:15 UTC) #5
Sunil Ratnu
Hi Julien & Rob, Sorry for delay in updating the patch as I was busy ...
5 years, 9 months ago (2015-03-16 08:06:30 UTC) #6
Julien - ping for review
https://codereview.chromium.org/763173003/diff/20001/Source/core/layout/FloatingObjects.cpp File Source/core/layout/FloatingObjects.cpp (right): https://codereview.chromium.org/763173003/diff/20001/Source/core/layout/FloatingObjects.cpp#newcode475 Source/core/layout/FloatingObjects.cpp:475: ASSERT(interval.low() == m_renderer->pixelSnappedLogicalTopForFloat(*floatingObject)); It seems like |floatingObject| should be ...
5 years, 9 months ago (2015-03-16 15:27:54 UTC) #7
Sunil Ratnu
Hi Julien, Thanks for the review. I've made changes suggested by you. Please have a ...
5 years, 9 months ago (2015-03-17 11:31:19 UTC) #8
Julien - ping for review
https://codereview.chromium.org/763173003/diff/50001/Source/core/layout/FloatingObjects.cpp File Source/core/layout/FloatingObjects.cpp (right): https://codereview.chromium.org/763173003/diff/50001/Source/core/layout/FloatingObjects.cpp#newcode215 Source/core/layout/FloatingObjects.cpp:215: FloatingObject& floatingObject = *it->get(); It seems like this could ...
5 years, 9 months ago (2015-03-18 01:36:08 UTC) #10
Sunil Ratnu
Hi Julien, I've made the changes suggested by you. Apologies for being late while following ...
5 years, 6 months ago (2015-06-04 08:40:47 UTC) #11
Sunil Ratnu
On 2015/06/04 08:40:47, Sunil Ratnu wrote: > Hi Julien, > > I've made the changes ...
5 years, 6 months ago (2015-06-10 09:07:21 UTC) #12
Julien - ping for review
Sorry about the delay. lgtm https://codereview.chromium.org/763173003/diff/70001/Source/core/layout/FloatingObjects.cpp File Source/core/layout/FloatingObjects.cpp (right): https://codereview.chromium.org/763173003/diff/70001/Source/core/layout/FloatingObjects.cpp#newcode463 Source/core/layout/FloatingObjects.cpp:463: return this->m_outermostFloat ? this->m_layoutObject->logicalBottomForFloat(*(this->m_outermostFloat)) ...
5 years, 6 months ago (2015-06-10 15:15:45 UTC) #13
Sunil Ratnu
Thanks for the review Julien. Made the changes suggested by you. https://codereview.chromium.org/763173003/diff/70001/Source/core/layout/FloatingObjects.cpp File Source/core/layout/FloatingObjects.cpp (right): ...
5 years, 6 months ago (2015-06-11 05:49:44 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/763173003/90001
5 years, 6 months ago (2015-06-11 05:57:56 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_compile_dbg on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_compile_dbg/builds/47172) mac_blink_rel on tryserver.blink (JOB_FAILED, ...
5 years, 6 months ago (2015-06-11 06:01:00 UTC) #19
Sunil Ratnu
Oops. Looks like code has changed. Will rebase to the latest and upload again.
5 years, 6 months ago (2015-06-11 08:50:29 UTC) #20
Sunil Ratnu
Hi Julien, There was a lot of code to rebase. Could you please take a ...
5 years, 6 months ago (2015-06-11 15:26:26 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/763173003/110001
5 years, 6 months ago (2015-06-12 06:15:52 UTC) #24
commit-bot: I haz the power
5 years, 6 months ago (2015-06-12 07:31:23 UTC) #25
Message was sent while issue was closed.
Committed patchset #6 (id:110001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197011

Powered by Google App Engine
This is Rietveld 408576698