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

Issue 15415004: Refactoring: Make LinkStyle instantiation lazy (Closed)

Created:
7 years, 7 months ago by Hajime Morrita
Modified:
7 years, 7 months ago
Reviewers:
dimitri, tkent, eseidel
CC:
blink-reviews, gavinp+prerender_chromium.org, eae+blinkwatch, adamk+blink_chromium.org
Visibility:
Public.

Description

Refactoring: Make LinkStyle instantiation lazy This change makes LinkStyle instantiation lazy so that we can identify exactly when we need LinkStyle. In following changes, I'll introduce another Link object which will be LinkImport. LinkStyle and LinkImport is mutually exclusive, and linkStyleToProcess() will become kind of factdory method. BUG=240592 TEST=none Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=150658

Patch Set 1 #

Total comments: 3

Patch Set 2 : Removed m_disabled #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -20 lines) Patch
M Source/core/html/HTMLLinkElement.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M Source/core/html/HTMLLinkElement.cpp View 1 8 chunks +37 lines, -19 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Hajime Morrita
Could you take a look? This is another safe step.
7 years, 7 months ago (2013-05-20 07:17:43 UTC) #1
eseidel
https://codereview.chromium.org/15415004/diff/1/Source/core/html/HTMLLinkElement.cpp File Source/core/html/HTMLLinkElement.cpp (right): https://codereview.chromium.org/15415004/diff/1/Source/core/html/HTMLLinkElement.cpp#newcode108 Source/core/html/HTMLLinkElement.cpp:108: m_disabled = value; Why do we need to save ...
7 years, 7 months ago (2013-05-20 07:56:34 UTC) #2
eseidel
lgtm Aside from the unneeded disabled storage, this looks fine. https://codereview.chromium.org/15415004/diff/1/Source/core/html/HTMLLinkElement.cpp File Source/core/html/HTMLLinkElement.cpp (right): https://codereview.chromium.org/15415004/diff/1/Source/core/html/HTMLLinkElement.cpp#newcode155 ...
7 years, 7 months ago (2013-05-20 07:59:19 UTC) #3
tkent
https://codereview.chromium.org/15415004/diff/1/Source/core/html/HTMLLinkElement.cpp File Source/core/html/HTMLLinkElement.cpp (right): https://codereview.chromium.org/15415004/diff/1/Source/core/html/HTMLLinkElement.cpp#newcode108 Source/core/html/HTMLLinkElement.cpp:108: m_disabled = value; On 2013/05/20 07:56:34, eseidel wrote: > ...
7 years, 7 months ago (2013-05-20 08:06:25 UTC) #4
Hajime Morrita
thanks for reviewing, and your comments are right! It should work. m_disabled seems redundant. I'll ...
7 years, 7 months ago (2013-05-20 08:09:11 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/morrita@chromium.org/15415004/5001
7 years, 7 months ago (2013-05-20 08:12:25 UTC) #6
commit-bot: I haz the power
7 years, 7 months ago (2013-05-20 09:13:41 UTC) #7
Message was sent while issue was closed.
Change committed as 150658

Powered by Google App Engine
This is Rietveld 408576698