|
|
Chromium Code Reviews
DescriptionRemoved ref churn from Document::getNonAttachedStyle.
Removed the creation of a new local RefPtr object which
creates ref churn.
BUG=595137
Committed: https://crrev.com/4b9833ae2deefd124a268633ff6054a69ef43bf4
Cr-Commit-Position: refs/heads/master@{#425599}
Patch Set 1 #
Messages
Total messages: 18 (9 generated)
The CQ bit was checked by bugsnash@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Removed ref churn from Document::getNonAttachedStyle. BUG=595137 ========== to ========== Removed ref churn from Document::getNonAttachedStyle. Removed the creation of a new local RefPtr object which creates ref churn. BUG=595137 ==========
bugsnash@chromium.org changed reviewers: + nainar@chromium.org
lgtm
lgtm On Mon, Oct 10, 2016 at 1:56 PM <bugsnash@chromium.org> wrote: > Reviewers: nainar > CL: https://codereview.chromium.org/2405753002/ > > Description: > Removed ref churn from Document::getNonAttachedStyle. > > Removed the creation of a new local RefPtr object which > creates ref churn. > > BUG=595137 > > Affected files (+1, -2 lines): > M third_party/WebKit/Source/core/dom/Document.cpp > > > Index: third_party/WebKit/Source/core/dom/Document.cpp > diff --git a/third_party/WebKit/Source/core/dom/Document.cpp > b/third_party/WebKit/Source/core/dom/Document.cpp > index > 083ed51d91f4be61eec1603eeb3ac754d5ea3198..b9c15a796333dd6ca0af74568997e9f56ff8c095 > 100644 > --- a/third_party/WebKit/Source/core/dom/Document.cpp > +++ b/third_party/WebKit/Source/core/dom/Document.cpp > @@ -1255,8 +1255,7 @@ void Document::addNonAttachedStyle(Element& element, > } > > ComputedStyle* Document::getNonAttachedStyle(Element& element) { > - RefPtr<ComputedStyle> style = m_nonAttachedStyle.get(&element); > - return style.get(); > + return m_nonAttachedStyle.get(&element); > } > > /* > > > -- Regards, Naina -- You received this message because you are subscribed to the Google Groups "Blink Reviews" group. To unsubscribe from this group and stop receiving emails from it, send an email to blink-reviews+unsubscribe@chromium.org.
lgtm On Mon, Oct 10, 2016 at 1:56 PM <bugsnash@chromium.org> wrote: > Reviewers: nainar > CL: https://codereview.chromium.org/2405753002/ > > Description: > Removed ref churn from Document::getNonAttachedStyle. > > Removed the creation of a new local RefPtr object which > creates ref churn. > > BUG=595137 > > Affected files (+1, -2 lines): > M third_party/WebKit/Source/core/dom/Document.cpp > > > Index: third_party/WebKit/Source/core/dom/Document.cpp > diff --git a/third_party/WebKit/Source/core/dom/Document.cpp > b/third_party/WebKit/Source/core/dom/Document.cpp > index > 083ed51d91f4be61eec1603eeb3ac754d5ea3198..b9c15a796333dd6ca0af74568997e9f56ff8c095 > 100644 > --- a/third_party/WebKit/Source/core/dom/Document.cpp > +++ b/third_party/WebKit/Source/core/dom/Document.cpp > @@ -1255,8 +1255,7 @@ void Document::addNonAttachedStyle(Element& element, > } > > ComputedStyle* Document::getNonAttachedStyle(Element& element) { > - RefPtr<ComputedStyle> style = m_nonAttachedStyle.get(&element); > - return style.get(); > + return m_nonAttachedStyle.get(&element); > } > > /* > > > -- Regards, Naina -- You received this message because you are subscribed to the Google Groups "Chromium-reviews" group. To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org.
bugsnash@chromium.org changed reviewers: + esprehn@chromium.org
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm
The CQ bit was checked by bugsnash@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #1 (id:1)
Message was sent while issue was closed.
Description was changed from ========== Removed ref churn from Document::getNonAttachedStyle. Removed the creation of a new local RefPtr object which creates ref churn. BUG=595137 ========== to ========== Removed ref churn from Document::getNonAttachedStyle. Removed the creation of a new local RefPtr object which creates ref churn. BUG=595137 Committed: https://crrev.com/4b9833ae2deefd124a268633ff6054a69ef43bf4 Cr-Commit-Position: refs/heads/master@{#425599} ==========
Message was sent while issue was closed.
Patchset 1 (id:??) landed as https://crrev.com/4b9833ae2deefd124a268633ff6054a69ef43bf4 Cr-Commit-Position: refs/heads/master@{#425599} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
