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

Side by Side Diff: Source/core/css/resolver/StyleResolver.cpp

Issue 1139033006: Implement FullScreen using top layer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved.
6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 // of the ancestors are first letter. 667 // of the ancestors are first letter.
668 if (pseudoId < FIRST_INTERNAL_PSEUDOID && pseudoId != FIRST_LETTER && !paren tLayoutObject->style()->hasPseudoStyle(pseudoId)) 668 if (pseudoId < FIRST_INTERNAL_PSEUDOID && pseudoId != FIRST_LETTER && !paren tLayoutObject->style()->hasPseudoStyle(pseudoId))
669 return nullptr; 669 return nullptr;
670 670
671 if (pseudoId == BACKDROP && !parent.isInTopLayer()) 671 if (pseudoId == BACKDROP && !parent.isInTopLayer())
672 return nullptr; 672 return nullptr;
673 673
674 if (pseudoId == FIRST_LETTER && (parent.isSVGElement() || !FirstLetterPseudo Element::firstLetterTextLayoutObject(parent))) 674 if (pseudoId == FIRST_LETTER && (parent.isSVGElement() || !FirstLetterPseudo Element::firstLetterTextLayoutObject(parent)))
675 return nullptr; 675 return nullptr;
676 676
677 if (!canHaveGeneratedChildren(*parentLayoutObject)) 677 if (pseudoId != BACKDROP && !canHaveGeneratedChildren(*parentLayoutObject))
leviw_travelin_and_unemployed 2015/09/21 20:26:22 There was no way to get into this case before with
678 return nullptr; 678 return nullptr;
679 679
680 ComputedStyle* parentStyle = parentLayoutObject->mutableStyle(); 680 ComputedStyle* parentStyle = parentLayoutObject->mutableStyle();
681 if (ComputedStyle* cachedStyle = parentStyle->getCachedPseudoStyle(pseudoId) ) { 681 if (ComputedStyle* cachedStyle = parentStyle->getCachedPseudoStyle(pseudoId) ) {
682 if (!pseudoElementLayoutObjectIsNeeded(cachedStyle)) 682 if (!pseudoElementLayoutObjectIsNeeded(cachedStyle))
683 return nullptr; 683 return nullptr;
684 return createPseudoElement(&parent, pseudoId); 684 return createPseudoElement(&parent, pseudoId);
685 } 685 }
686 686
687 StyleResolverState state(document(), &parent, parentStyle); 687 StyleResolverState state(document(), &parent, parentStyle);
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
1487 visitor->trace(m_watchedSelectorsRules); 1487 visitor->trace(m_watchedSelectorsRules);
1488 visitor->trace(m_treeBoundaryCrossingRules); 1488 visitor->trace(m_treeBoundaryCrossingRules);
1489 visitor->trace(m_styleResourceLoader); 1489 visitor->trace(m_styleResourceLoader);
1490 visitor->trace(m_styleSharingLists); 1490 visitor->trace(m_styleSharingLists);
1491 visitor->trace(m_pendingStyleSheets); 1491 visitor->trace(m_pendingStyleSheets);
1492 visitor->trace(m_document); 1492 visitor->trace(m_document);
1493 #endif 1493 #endif
1494 } 1494 }
1495 1495
1496 } // namespace blink 1496 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698