Commit 25eb0c4c authored by pilgrim's avatar pilgrim Committed by Commit bot

[Layout API] Use more layoutViewItem() in Document

follow-on to https://codereview.chromium.org/2126973004

Document::layoutView() is deprecated and being removed soon. The
replacement is Document::layoutViewItem(), which routes methods
through the new block layout API. (See linked crbug for details.)
No new layout API methods were required in this CL.

There are no functional changes.

BUG=499321

Review-Url: https://codereview.chromium.org/2151883004
Cr-Commit-Position: refs/heads/master@{#405605}
parent 0f8070ca
...@@ -498,7 +498,7 @@ Document::Document(const DocumentInit& initializer, DocumentClassFlags documentC ...@@ -498,7 +498,7 @@ Document::Document(const DocumentInit& initializer, DocumentClassFlags documentC
Document::~Document() Document::~Document()
{ {
DCHECK(!layoutView()); DCHECK(layoutViewItem().isNull());
DCHECK(!parentTreeScope()); DCHECK(!parentTreeScope());
// If a top document with a cache, verify that it was comprehensively // If a top document with a cache, verify that it was comprehensively
// cleared during detach. // cleared during detach.
...@@ -3152,7 +3152,7 @@ String Document::outgoingReferrer() const ...@@ -3152,7 +3152,7 @@ String Document::outgoingReferrer() const
MouseEventWithHitTestResults Document::prepareMouseEvent(const HitTestRequest& request, const LayoutPoint& documentPoint, const PlatformMouseEvent& event) 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 // 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 // layout because until then, there is nothing shown on the screen - the user can't
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment