Chromium Code Reviews| Index: Source/web/TextFinder.cpp |
| diff --git a/Source/web/TextFinder.cpp b/Source/web/TextFinder.cpp |
| index a82113dc6a13561085255fe25f63bd083b32fe3b..8acb997311fc50c4e44c2ef0ac9727ed6f48b970 100644 |
| --- a/Source/web/TextFinder.cpp |
| +++ b/Source/web/TextFinder.cpp |
| @@ -2223,7 +2223,7 @@ WebFrameImpl* WebFrameImpl::fromFrame(LocalFrame* frame) |
| WebFrameImpl* WebFrameImpl::fromFrameOwnerElement(Element* element) |
| { |
| // FIXME: Why do we check specifically for <iframe> and <frame> here? Why can't we get the WebFrameImpl from an <object> element, for example. |
| - if (!element || !element->isFrameOwnerElement() || (!isHTMLIFrameElement(*element) && !isHTMLFrameElement(*element))) |
| + if (!isHTMLFrameElementBase(element) || !element->isFrameOwnerElement()) |
|
tkent
2014/03/17 22:30:25
element->isFrameOwnerElement() is unnecessary beca
Inactive
2014/03/17 23:36:59
Done.
|
| return 0; |
| return fromFrame(toHTMLFrameOwnerElement(element)->contentFrame()); |
| } |