| Index: third_party/WebKit/Source/core/dom/IntersectionObserver.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/IntersectionObserver.cpp b/third_party/WebKit/Source/core/dom/IntersectionObserver.cpp
|
| index 14f97d86709cf26e969c0c82f9bfe054091a36da..cb1f78ce9f058e1632701738d969c4b4da1ae0bf 100644
|
| --- a/third_party/WebKit/Source/core/dom/IntersectionObserver.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/IntersectionObserver.cpp
|
| @@ -86,7 +86,7 @@ IntersectionObserver* IntersectionObserver::create(const IntersectionObserverIni
|
| if (!root) {
|
| // TODO(szager): Use Document instead of document element for implicit root. (crbug.com/570538)
|
| ExecutionContext* context = callback.getExecutionContext();
|
| - ASSERT(context->isDocument());
|
| + DCHECK(context->isDocument());
|
| Frame* mainFrame = toDocument(context)->frame()->tree().top();
|
| if (mainFrame && mainFrame->isLocalFrame())
|
| root = toLocalFrame(mainFrame)->document();
|
| @@ -268,7 +268,7 @@ static LayoutUnit computeMargin(const Length& length, LayoutUnit referenceLength
|
| {
|
| if (length.type() == Percent)
|
| return LayoutUnit(static_cast<int>(referenceLength.toFloat() * length.percent() / 100.0));
|
| - ASSERT(length.type() == Fixed);
|
| + DCHECK_EQ(length.type(), Fixed);
|
| return LayoutUnit(length.intValue());
|
| }
|
|
|
|
|