Chromium Code Reviews| Index: Source/core/dom/FullscreenElementStack.h |
| diff --git a/Source/core/dom/FullscreenElementStack.h b/Source/core/dom/FullscreenElementStack.h |
| index cf7c43487ca665f3b661df79834020b976e75695..8cff235ca0b1738a36bf5b2db3fc36a95c818d66 100644 |
| --- a/Source/core/dom/FullscreenElementStack.h |
| +++ b/Source/core/dom/FullscreenElementStack.h |
| @@ -124,10 +124,10 @@ private: |
| inline bool FullscreenElementStack::isActiveFullScreenElement(const Element& element) |
| { |
| - FullscreenElementStack* controller = fromIfExists(element.document()); |
| - if (!controller) |
| + FullscreenElementStack* fullscreen = fromIfExists(element.document()); |
| + if (!fullscreen) |
| return false; |
| - return controller->webkitIsFullScreen() && controller->webkitCurrentFullScreenElement() == element; |
| + return fullscreen->webkitCurrentFullScreenElement() == &element; |
|
falken
2014/07/28 02:10:48
I don't get how this worked before, webkitCurrentF
philipj_slow
2014/07/28 07:47:10
That worked because of the DEFINE_COMPARISON_OPERA
|
| } |
| inline FullscreenElementStack* FullscreenElementStack::fromIfExists(Document& document) |