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

Side by Side Diff: Source/core/layout/LayoutObject.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) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
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 1959 matching lines...) Expand 10 before | Expand all | Expand 10 after
1970 void LayoutObject::propagateStyleToAnonymousChildren(bool blockChildrenOnly) 1970 void LayoutObject::propagateStyleToAnonymousChildren(bool blockChildrenOnly)
1971 { 1971 {
1972 // FIXME: We could save this call when the change only affected non-inherite d properties. 1972 // FIXME: We could save this call when the change only affected non-inherite d properties.
1973 for (LayoutObject* child = slowFirstChild(); child; child = child->nextSibli ng()) { 1973 for (LayoutObject* child = slowFirstChild(); child; child = child->nextSibli ng()) {
1974 if (!child->isAnonymous() || child->style()->styleType() != NOPSEUDO) 1974 if (!child->isAnonymous() || child->style()->styleType() != NOPSEUDO)
1975 continue; 1975 continue;
1976 1976
1977 if (blockChildrenOnly && !child->isLayoutBlock()) 1977 if (blockChildrenOnly && !child->isLayoutBlock())
1978 continue; 1978 continue;
1979 1979
1980 if (child->isLayoutFullScreen() || child->isLayoutFullScreenPlaceholder( ))
1981 continue;
1982
1983 RefPtr<ComputedStyle> newStyle = ComputedStyle::createAnonymousStyleWith Display(styleRef(), child->style()->display()); 1980 RefPtr<ComputedStyle> newStyle = ComputedStyle::createAnonymousStyleWith Display(styleRef(), child->style()->display());
1984 1981
1985 // Preserve the position style of anonymous block continuations as they can have relative position when 1982 // Preserve the position style of anonymous block continuations as they can have relative position when
1986 // they contain block descendants of relative positioned inlines. 1983 // they contain block descendants of relative positioned inlines.
1987 if (child->isInFlowPositioned() && toLayoutBlock(child)->isAnonymousBloc kContinuation()) 1984 if (child->isInFlowPositioned() && toLayoutBlock(child)->isAnonymousBloc kContinuation())
1988 newStyle->setPosition(child->style()->position()); 1985 newStyle->setPosition(child->style()->position());
1989 1986
1990 updateAnonymousChildStyle(*child, *newStyle); 1987 updateAnonymousChildStyle(*child, *newStyle);
1991 1988
1992 child->setStyle(newStyle.release()); 1989 child->setStyle(newStyle.release());
(...skipping 1386 matching lines...) Expand 10 before | Expand all | Expand 10 after
3379 const blink::LayoutObject* root = object1; 3376 const blink::LayoutObject* root = object1;
3380 while (root->parent()) 3377 while (root->parent())
3381 root = root->parent(); 3378 root = root->parent();
3382 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3379 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3383 } else { 3380 } else {
3384 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); 3381 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n");
3385 } 3382 }
3386 } 3383 }
3387 3384
3388 #endif 3385 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698