Commit 0b0bc195 authored by igsolla's avatar igsolla Committed by Commit bot

Fix a crash reported by monkey tests.

BUG=405504

Review URL: https://codereview.chromium.org/501473002

Cr-Commit-Position: refs/heads/master@{#292359}
parent b146506b
......@@ -448,6 +448,11 @@ public class ContentViewCore
@SuppressWarnings("deprecation") // AbsoluteLayout
public void setAnchorViewPosition(
View view, float x, float y, float width, float height) {
if (view.getParent() == null) {
// Ignore. setAnchorViewPosition has been called after the anchor view has
// already been released.
return;
}
assert view.getParent() == mContainerViewAtCreation;
float scale = (float) DeviceDisplayInfo.create(mContext).getDIPScale();
......
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