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

Unified Diff: Source/core/layout/LayoutView.cpp

Issue 1162383003: C++11: Replace 0 with nullptr where applicable in layout code. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add one more file. Created 5 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
« no previous file with comments | « Source/core/layout/LayoutView.h ('k') | Source/core/layout/MultiColumnFragmentainerGroupTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutView.cpp
diff --git a/Source/core/layout/LayoutView.cpp b/Source/core/layout/LayoutView.cpp
index f100481a8ab8727510cb2745c1dc77de5c6c09f4..de5b10bc0b4e19a28a30215464d318f99c3bc57f 100644
--- a/Source/core/layout/LayoutView.cpp
+++ b/Source/core/layout/LayoutView.cpp
@@ -57,7 +57,7 @@ LayoutView::LayoutView(Document* document)
, m_selectionEndPos(-1)
, m_pageLogicalHeight(0)
, m_pageLogicalHeightChanged(false)
- , m_layoutState(0)
+ , m_layoutState(nullptr)
, m_layoutQuoteHead(nullptr)
, m_layoutCounterCount(0)
, m_hitTestCount(0)
@@ -306,7 +306,7 @@ const LayoutObject* LayoutView::pushMappingToContainer(const LayoutBoxModelObjec
{
LayoutSize offsetForFixedPosition;
LayoutSize offset;
- LayoutObject* container = 0;
+ LayoutObject* container = nullptr;
if (m_frameView) {
offsetForFixedPosition = LayoutSize(toIntSize(m_frameView->scrollPosition()));
@@ -492,7 +492,7 @@ void LayoutView::absoluteQuads(Vector<FloatQuad>& quads, bool* wasFixed) const
static LayoutObject* layoutObjectAfterPosition(LayoutObject* object, unsigned offset)
{
if (!object)
- return 0;
+ return nullptr;
LayoutObject* child = object->childAt(offset);
return child ? child : object->nextInPreOrderAfterChildren();
@@ -855,7 +855,7 @@ LayoutObject* LayoutView::backgroundLayoutObject() const
if (LayoutObject* rootObject = documentElement->layoutObject())
return rootObject->layoutObjectForRootBackground();
}
- return 0;
+ return nullptr;
}
LayoutRect LayoutView::backgroundRect(LayoutBox* backgroundLayoutObject) const
« no previous file with comments | « Source/core/layout/LayoutView.h ('k') | Source/core/layout/MultiColumnFragmentainerGroupTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698