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

Issue 27246003: Replace check for RenderLayer in RenderLayerModelObject::ensureLayer with ASSERT due to redundant c… (Closed)

Created:
7 years, 2 months ago by vivekg_samsung
Modified:
7 years, 2 months ago
CC:
blink-reviews, blink-layers+watch_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Replace check for RenderLayer in RenderLayerModelObject::ensureLayer with ASSERT due to redundant check. RenderLayerModelObject::styleDidChange() invokes the ensureLayer() method only in case of !layer(). Again checking for layer existence would be deemed redundant in ensureLayer. Replacing it with an ASSERT(!m_layer). Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159776

Patch Set 1 #

Patch Set 2 : Review comments addressed! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -6 lines) Patch
M Source/core/rendering/RenderLayerModelObject.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderLayerModelObject.cpp View 1 2 chunks +3 lines, -5 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
vivekg__
Please take a look, thanks!
7 years, 2 months ago (2013-10-15 10:50:43 UTC) #1
vivekg__
On 2013/10/15 10:50:43, vivekg_ wrote: > Please take a look, thanks! I am not sure ...
7 years, 2 months ago (2013-10-16 06:28:01 UTC) #2
eseidel
Try running the tests in debug. I suspect your assert is failing. In release, you'd ...
7 years, 2 months ago (2013-10-16 06:34:49 UTC) #3
vivekg_samsung
On 2013/10/16 06:34:49, eseidel wrote: > Try running the tests in debug. I suspect your ...
7 years, 2 months ago (2013-10-16 07:07:00 UTC) #4
eseidel
I see. There is only one call to ensureLayer(): https://code.google.com/p/chromium/codesearch#search/&q=ensureLayer&sq=package:chromium&type=cs We should consider renaming/refactoring this ...
7 years, 2 months ago (2013-10-16 07:08:38 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vivek.vg@samsung.com/27246003/13001
7 years, 2 months ago (2013-10-16 12:25:22 UTC) #6
commit-bot: I haz the power
Change committed as 159776
7 years, 2 months ago (2013-10-16 14:43:52 UTC) #7
Julien - ping for review
7 years, 2 months ago (2013-10-16 14:47:52 UTC) #8
Message was sent while issue was closed.
late lgtm

ensureLayer was a remnant of lazily allocating RenderLayer for overflow clip so
it made sense for it actually check if we had a layer. We are not going to
revive this change anyway.

Powered by Google App Engine
This is Rietveld 408576698