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

Issue 185293011: Don't use RenderStyle::clone unless there is actually a RenderObject to attach the cloned style to. (Closed)

Created:
6 years, 9 months ago by chrishtr
Modified:
6 years, 9 months ago
Reviewers:
esprehn, ojan
CC:
blink-reviews, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, darktears, rune+blink, rwlbuis
Visibility:
Public.

Description

Don't use RenderStyle::clone unless there is actually a RenderObject to attach the cloned style to. Non-renderer-based elements such as optGroup do not have renderers. BUG=348330 R=esprehn@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168394

Patch Set 1 #

Patch Set 2 : Retry. #

Patch Set 3 : Retry. #

Patch Set 4 : Addressed comment. #

Patch Set 5 : Retry. #

Patch Set 6 : Retry. #

Patch Set 7 : Retry 2. #

Patch Set 8 : Again. #

Total comments: 2

Patch Set 9 : Addressed comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -3 lines) Patch
M Source/core/css/RuleFeature.cpp View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
chrishtr
6 years, 9 months ago (2014-03-03 19:01:15 UTC) #1
esprehn
Hmm, this clone logic doesn't look right either. You want setStyleInternal not setStyle. You're making ...
6 years, 9 months ago (2014-03-03 19:24:27 UTC) #2
chrishtr
Done. Good catch.
6 years, 9 months ago (2014-03-03 21:14:29 UTC) #3
esprehn
lgtm, please simplify before landing. You don't need the boolean. https://codereview.chromium.org/185293011/diff/140001/Source/core/css/RuleFeature.cpp File Source/core/css/RuleFeature.cpp (right): https://codereview.chromium.org/185293011/diff/140001/Source/core/css/RuleFeature.cpp#newcode438 ...
6 years, 9 months ago (2014-03-03 21:43:52 UTC) #4
chrishtr
https://codereview.chromium.org/185293011/diff/140001/Source/core/css/RuleFeature.cpp File Source/core/css/RuleFeature.cpp (right): https://codereview.chromium.org/185293011/diff/140001/Source/core/css/RuleFeature.cpp#newcode438 Source/core/css/RuleFeature.cpp:438: if (RenderStyle* renderStyle = renderer->style()) { On 2014/03/03 21:43:52, ...
6 years, 9 months ago (2014-03-03 21:53:36 UTC) #5
chrishtr
The CQ bit was checked by chrishtr@chromium.org
6 years, 9 months ago (2014-03-03 23:22:16 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chrishtr@chromium.org/185293011/160001
6 years, 9 months ago (2014-03-03 23:25:26 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-04 13:45:38 UTC) #8
commit-bot: I haz the power
Retried try job too often on win_layout for step(s) webkit_lint http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout&number=25416
6 years, 9 months ago (2014-03-04 13:45:38 UTC) #9
chrishtr
6 years, 9 months ago (2014-03-04 17:12:00 UTC) #10
Message was sent while issue was closed.
Committed patchset #9 manually as r168394 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698