Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(301)

Side by Side Diff: Source/core/dom/Element.cpp

Issue 820633002: Reset mode on ancestors when a fullscreen node is removed. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « LayoutTests/fullscreen/full-screen-remove-ancestor-after.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * (C) 2007 David Smith (catfish.man@gmail.com) 6 * (C) 2007 David Smith (catfish.man@gmail.com)
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved.
8 * (C) 2007 Eric Seidel (eric@webkit.org) 8 * (C) 2007 Eric Seidel (eric@webkit.org)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 1353 matching lines...) Expand 10 before | Expand all | Expand 10 after
1364 1364
1365 return InsertionDone; 1365 return InsertionDone;
1366 } 1366 }
1367 1367
1368 void Element::removedFrom(ContainerNode* insertionPoint) 1368 void Element::removedFrom(ContainerNode* insertionPoint)
1369 { 1369 {
1370 bool wasInDocument = insertionPoint->inDocument(); 1370 bool wasInDocument = insertionPoint->inDocument();
1371 1371
1372 ASSERT(!hasRareData() || !elementRareData()->hasPseudoElements()); 1372 ASSERT(!hasRareData() || !elementRareData()->hasPseudoElements());
1373 1373
1374 if (containsFullScreenElement()) 1374 if (Fullscreen::isActiveFullScreenElement(*this)) {
1375 setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(false); 1375 setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(false);
1376 if (insertionPoint->isElementNode()) {
1377 toElement(insertionPoint)->setContainsFullScreenElement(false);
1378 toElement(insertionPoint)->setContainsFullScreenElementOnAncestorsCr ossingFrameBoundaries(false);
1379 }
1380 }
1376 1381
1377 if (Fullscreen* fullscreen = Fullscreen::fromIfExists(document())) 1382 if (Fullscreen* fullscreen = Fullscreen::fromIfExists(document()))
1378 fullscreen->elementRemoved(*this); 1383 fullscreen->elementRemoved(*this);
1379 1384
1380 if (document().page()) 1385 if (document().page())
1381 document().page()->pointerLockController().elementRemoved(this); 1386 document().page()->pointerLockController().elementRemoved(this);
1382 1387
1383 setSavedLayerScrollOffset(IntSize()); 1388 setSavedLayerScrollOffset(IntSize());
1384 1389
1385 if (insertionPoint->isInTreeScope() && treeScope() == document()) { 1390 if (insertionPoint->isInTreeScope() && treeScope() == document()) {
(...skipping 2018 matching lines...) Expand 10 before | Expand all | Expand 10 after
3404 return wrapper; 3409 return wrapper;
3405 3410
3406 CustomElementBinding* binding = perContextData->customElementBinding(customE lementDefinition()); 3411 CustomElementBinding* binding = perContextData->customElementBinding(customE lementDefinition());
3407 3412
3408 wrapper->SetPrototype(binding->prototype()); 3413 wrapper->SetPrototype(binding->prototype());
3409 3414
3410 return V8DOMWrapper::associateObjectWithWrapper(isolate, this, wrapperType, wrapper); 3415 return V8DOMWrapper::associateObjectWithWrapper(isolate, this, wrapperType, wrapper);
3411 } 3416 }
3412 3417
3413 } // namespace blink 3418 } // namespace blink
OLDNEW
« no previous file with comments | « LayoutTests/fullscreen/full-screen-remove-ancestor-after.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698