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

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

Issue 476433002: Sync fullscreen element removal with the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: nits Created 6 years, 4 months 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/ContainerNode.cpp ('k') | Source/core/dom/FullscreenElementStack.h » ('j') | 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 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1272 1272
1273 void Element::removedFrom(ContainerNode* insertionPoint) 1273 void Element::removedFrom(ContainerNode* insertionPoint)
1274 { 1274 {
1275 bool wasInDocument = insertionPoint->inDocument(); 1275 bool wasInDocument = insertionPoint->inDocument();
1276 1276
1277 ASSERT(!hasRareData() || !elementRareData()->hasPseudoElements()); 1277 ASSERT(!hasRareData() || !elementRareData()->hasPseudoElements());
1278 1278
1279 if (containsFullScreenElement()) 1279 if (containsFullScreenElement())
1280 setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(false); 1280 setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(false);
1281 1281
1282 if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExist s(document()))
1283 fullscreen->elementRemoved(*this);
1284
1282 if (document().page()) 1285 if (document().page())
1283 document().page()->pointerLockController().elementRemoved(this); 1286 document().page()->pointerLockController().elementRemoved(this);
1284 1287
1285 setSavedLayerScrollOffset(IntSize()); 1288 setSavedLayerScrollOffset(IntSize());
1286 1289
1287 if (insertionPoint->isInTreeScope() && treeScope() == document()) { 1290 if (insertionPoint->isInTreeScope() && treeScope() == document()) {
1288 const AtomicString& idValue = getIdAttribute(); 1291 const AtomicString& idValue = getIdAttribute();
1289 if (!idValue.isNull()) 1292 if (!idValue.isNull())
1290 updateId(insertionPoint->treeScope(), idValue, nullAtom); 1293 updateId(insertionPoint->treeScope(), idValue, nullAtom);
1291 1294
(...skipping 1953 matching lines...) Expand 10 before | Expand all | Expand 10 after
3245 { 3248 {
3246 #if ENABLE(OILPAN) 3249 #if ENABLE(OILPAN)
3247 if (hasRareData()) 3250 if (hasRareData())
3248 visitor->trace(elementRareData()); 3251 visitor->trace(elementRareData());
3249 visitor->trace(m_elementData); 3252 visitor->trace(m_elementData);
3250 #endif 3253 #endif
3251 ContainerNode::trace(visitor); 3254 ContainerNode::trace(visitor);
3252 } 3255 }
3253 3256
3254 } // namespace blink 3257 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/dom/ContainerNode.cpp ('k') | Source/core/dom/FullscreenElementStack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698