| Index: Source/core/layout/LayoutScrollbarPart.cpp
|
| diff --git a/Source/core/layout/LayoutScrollbarPart.cpp b/Source/core/layout/LayoutScrollbarPart.cpp
|
| index f56f0521fcc1f84c44a243a914add9cf266808d9..1e11903f3bdcccffb630e8d2f04f53e7752bc587 100644
|
| --- a/Source/core/layout/LayoutScrollbarPart.cpp
|
| +++ b/Source/core/layout/LayoutScrollbarPart.cpp
|
| @@ -35,7 +35,7 @@
|
| namespace blink {
|
|
|
| LayoutScrollbarPart::LayoutScrollbarPart(LayoutScrollbar* scrollbar, ScrollbarPart part)
|
| - : LayoutBlock(0)
|
| + : LayoutBlock(nullptr)
|
| , m_scrollbar(scrollbar)
|
| , m_part(part)
|
| {
|
| @@ -200,9 +200,7 @@ void LayoutScrollbarPart::imageChanged(WrappedImagePtr image, const IntRect* rec
|
|
|
| LayoutObject* LayoutScrollbarPart::layoutObjectOwningScrollbar() const
|
| {
|
| - if (!m_scrollbar)
|
| - return 0;
|
| - return m_scrollbar->owningLayoutObject();
|
| + return (!m_scrollbar) ? nullptr : m_scrollbar->owningLayoutObject();
|
| }
|
|
|
| }
|
|
|