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

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

Issue 134753003: Reland r165710 "Replace RenderFullScreen with top layer" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: don't cause layout during plugin detach Created 6 years, 11 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/css/fullscreen.css ('k') | Source/core/dom/Document.cpp » ('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) 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 862 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 RenderObject* parentRenderer = parent.renderer(); 873 RenderObject* parentRenderer = parent.renderer();
874 if (!parentRenderer) 874 if (!parentRenderer)
875 return 0; 875 return 0;
876 876
877 if (pseudoId < FIRST_INTERNAL_PSEUDOID && !parentRenderer->style()->hasPseud oStyle(pseudoId)) 877 if (pseudoId < FIRST_INTERNAL_PSEUDOID && !parentRenderer->style()->hasPseud oStyle(pseudoId))
878 return 0; 878 return 0;
879 879
880 if (pseudoId == BACKDROP && !parent.isInTopLayer()) 880 if (pseudoId == BACKDROP && !parent.isInTopLayer())
881 return 0; 881 return 0;
882 882
883 if (!parentRenderer->canHaveGeneratedChildren()) 883 /* It's safe to have a backdrop since its renderer is always a child of Rend erView. */
esprehn 2014/01/28 03:57:45 C++ style comments. // It's safe ... We don't re
falken 2014/01/28 04:18:09 Done.
884 ASSERT(static_cast<RenderObject*>(parentRenderer->view())->canHaveGeneratedC hildren());
885 if (pseudoId != BACKDROP && !parentRenderer->canHaveGeneratedChildren())
884 return 0; 886 return 0;
885 887
886 RenderStyle* parentStyle = parentRenderer->style(); 888 RenderStyle* parentStyle = parentRenderer->style();
887 StyleResolverState state(document(), &parent, parentStyle); 889 StyleResolverState state(document(), &parent, parentStyle);
888 if (!pseudoStyleForElementInternal(parent, pseudoId, parentStyle, state)) 890 if (!pseudoStyleForElementInternal(parent, pseudoId, parentStyle, state))
889 return 0; 891 return 0;
890 RefPtr<RenderStyle> style = state.takeStyle(); 892 RefPtr<RenderStyle> style = state.takeStyle();
891 ASSERT(style); 893 ASSERT(style);
892 894
893 if (!pseudoElementRendererIsNeeded(style.get())) 895 if (!pseudoElementRendererIsNeeded(style.get()))
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
1507 bool StyleResolver::mediaQueryAffectedByViewportChange() const 1509 bool StyleResolver::mediaQueryAffectedByViewportChange() const
1508 { 1510 {
1509 for (unsigned i = 0; i < m_viewportDependentMediaQueryResults.size(); ++i) { 1511 for (unsigned i = 0; i < m_viewportDependentMediaQueryResults.size(); ++i) {
1510 if (m_medium->eval(&m_viewportDependentMediaQueryResults[i]->m_expressio n) != m_viewportDependentMediaQueryResults[i]->m_result) 1512 if (m_medium->eval(&m_viewportDependentMediaQueryResults[i]->m_expressio n) != m_viewportDependentMediaQueryResults[i]->m_result)
1511 return true; 1513 return true;
1512 } 1514 }
1513 return false; 1515 return false;
1514 } 1516 }
1515 1517
1516 } // namespace WebCore 1518 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/fullscreen.css ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698