| Index: third_party/WebKit/Source/web/WebAXObject.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebAXObject.cpp b/third_party/WebKit/Source/web/WebAXObject.cpp
|
| index b2082cd383b44a735b037a7598a7e245463bdce0..12d9a6d202cc459b5c81295d43d16515f1412653 100644
|
| --- a/third_party/WebKit/Source/web/WebAXObject.cpp
|
| +++ b/third_party/WebKit/Source/web/WebAXObject.cpp
|
| @@ -160,7 +160,9 @@ int WebAXObject::GenerateAXID() const {
|
| bool WebAXObject::UpdateLayoutAndCheckValidity() {
|
| if (!IsDetached()) {
|
| Document* document = private_->GetDocument();
|
| - if (!document || !document->View())
|
| + // TODO(szager): Investigate whether/why document->IsDetached() can be
|
| + // true when this->IsDetached() is false.
|
| + if (!document || !document->View() || document->IsDetached())
|
| return false;
|
| document->View()->UpdateLifecycleToCompositingCleanPlusScrolling();
|
| }
|
|
|