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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2151883004: [Layout API] Use more layoutViewItem() in Document (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 246b1ca7ec6a3da9e7c4a69fc8a9120ffd481174..bb0dd5bb5dd7e96b754e8f28882b67b124777c98 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -498,7 +498,7 @@ Document::Document(const DocumentInit& initializer, DocumentClassFlags documentC
Document::~Document()
{
- DCHECK(!layoutView());
+ DCHECK(layoutViewItem().isNull());
DCHECK(!parentTreeScope());
// If a top document with a cache, verify that it was comprehensively
// cleared during detach.
@@ -3152,7 +3152,7 @@ String Document::outgoingReferrer() const
MouseEventWithHitTestResults Document::prepareMouseEvent(const HitTestRequest& request, const LayoutPoint& documentPoint, const PlatformMouseEvent& event)
{
- DCHECK(!layoutView() || layoutView()->isLayoutView());
+ DCHECK(layoutViewItem().isNull() || layoutViewItem().isLayoutView());
// LayoutView::hitTest causes a layout, and we don't want to hit that until the first
// layout because until then, there is nothing shown on the screen - the user can't
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698