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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutCounter.cpp

Issue 2063773002: Reland: WTF: Implement explicit RefPtr::operator bool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutCounter.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutCounter.cpp b/third_party/WebKit/Source/core/layout/LayoutCounter.cpp
index 8086a94eae5768719f49b6b39457f9dac91c83e9..8f48f651defac3d1bec976563da1272c11109902 100644
--- a/third_party/WebKit/Source/core/layout/LayoutCounter.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutCounter.cpp
@@ -227,7 +227,7 @@ static bool findPlaceForCounter(LayoutObject& counterOwner, const AtomicString&
// we are a root node if that reset is a root.
parent = currentCounter->parent();
previousSibling = parent ? currentCounter : nullptr;
- return parent;
+ return parent.get();
}
// We are not a reset node or the previous reset must be on an ancestor of our owner layoutObject
// hence we must be a child of that reset counter.
@@ -261,7 +261,7 @@ static bool findPlaceForCounter(LayoutObject& counterOwner, const AtomicString&
if (isReset && areLayoutObjectsElementsSiblings(*currentLayoutObject, counterOwner)) {
parent = currentCounter->parent();
previousSibling = currentCounter;
- return parent;
+ return parent.get();
}
parent = currentCounter;
previousSibling = previousSiblingProtector.get();
« no previous file with comments | « third_party/WebKit/Source/core/inspector/NetworkResourcesData.h ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698