Commit e0e27d97 authored by Jinsong Fan's avatar Jinsong Fan Committed by Commit Bot

Remove diagnose CHECKs for the issue has been fixed

No change to logical.

Bug: 1020939
Change-Id: Ic0d98e8f6a2626da9a82007a7410d0f85918b3d8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1934131Reviewed-by: default avatarPhilip Rogers <pdr@chromium.org>
Commit-Queue: Jinsong Fan <fanjinsong@sogou-inc.com>
Cr-Commit-Position: refs/heads/master@{#718933}
parent dfe731dd
...@@ -2023,8 +2023,6 @@ WebInputEventResult EventHandler::ShowNonLocatedContextMenu( ...@@ -2023,8 +2023,6 @@ WebInputEventResult EventHandler::ShowNonLocatedContextMenu(
Document* doc = frame_->GetDocument(); Document* doc = frame_->GetDocument();
if (!doc) if (!doc)
return WebInputEventResult::kNotHandled; return WebInputEventResult::kNotHandled;
// TODO(szager): Remove CHECK after diagnosing crash in crbug.com/1020939
CHECK(doc->IsActive());
static const int kContextMenuMargin = 1; static const int kContextMenuMargin = 1;
...@@ -2032,8 +2030,6 @@ WebInputEventResult EventHandler::ShowNonLocatedContextMenu( ...@@ -2032,8 +2030,6 @@ WebInputEventResult EventHandler::ShowNonLocatedContextMenu(
Element* focused_element = Element* focused_element =
override_target_element ? override_target_element : doc->FocusedElement(); override_target_element ? override_target_element : doc->FocusedElement();
// TODO(szager): Remove CHECK after diagnosing crash in crbug.com/1020939
CHECK(!focused_element || focused_element->GetLayoutObject());
FrameSelection& selection = frame_->Selection(); FrameSelection& selection = frame_->Selection();
VisualViewport& visual_viewport = frame_->GetPage()->GetVisualViewport(); VisualViewport& visual_viewport = frame_->GetPage()->GetVisualViewport();
......
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