Index: third_party/WebKit/Source/core/frame/LocalFrameView.cpp |
diff --git a/third_party/WebKit/Source/core/frame/LocalFrameView.cpp b/third_party/WebKit/Source/core/frame/LocalFrameView.cpp |
index d73de59408045cbad62d330302496e7b8e58e166..2be1b263f5ce8de4ade05e49e9317c93e77a9db9 100644 |
--- a/third_party/WebKit/Source/core/frame/LocalFrameView.cpp |
+++ b/third_party/WebKit/Source/core/frame/LocalFrameView.cpp |
@@ -2822,8 +2822,9 @@ void LocalFrameView::UpdateDocumentAnnotatedRegions() const { |
if (new_regions == document->AnnotatedRegions()) |
return; |
document->SetAnnotatedRegions(new_regions); |
- if (Page* page = frame_->GetPage()) |
- page->GetChromeClient().AnnotatedRegionsChanged(); |
+ |
+ DCHECK(frame_->Client()); |
+ frame_->Client()->AnnotatedRegionsChanged(); |
} |
void LocalFrameView::DidAttachDocument() { |