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

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

Issue 19155002: Introduce toHTMLIFrameElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 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
« no previous file with comments | « Source/bindings/v8/V8WindowShell.cpp ('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 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after
1277 if (style->hasPseudoStyle(FIRST_LETTER)) 1277 if (style->hasPseudoStyle(FIRST_LETTER))
1278 style->setUnique(); 1278 style->setUnique();
1279 1279
1280 // FIXME: when dropping the -webkit prefix on transform-style, we should als o have opacity < 1 cause flattening. 1280 // FIXME: when dropping the -webkit prefix on transform-style, we should als o have opacity < 1 cause flattening.
1281 if (style->preserves3D() && (style->overflowX() != OVISIBLE 1281 if (style->preserves3D() && (style->overflowX() != OVISIBLE
1282 || style->overflowY() != OVISIBLE 1282 || style->overflowY() != OVISIBLE
1283 || style->hasFilter())) 1283 || style->hasFilter()))
1284 style->setTransformStyle3D(TransformStyle3DFlat); 1284 style->setTransformStyle3D(TransformStyle3DFlat);
1285 1285
1286 // Seamless iframes behave like blocks. Map their display to inline-block wh en marked inline. 1286 // Seamless iframes behave like blocks. Map their display to inline-block wh en marked inline.
1287 if (e && e->hasTagName(iframeTag) && style->display() == INLINE && static_ca st<HTMLIFrameElement*>(e)->shouldDisplaySeamlessly()) 1287 if (e && e->hasTagName(iframeTag) && style->display() == INLINE && toHTMLIFr ameElement(e)->shouldDisplaySeamlessly())
1288 style->setDisplay(INLINE_BLOCK); 1288 style->setDisplay(INLINE_BLOCK);
1289 1289
1290 adjustGridItemPosition(style); 1290 adjustGridItemPosition(style);
1291 1291
1292 if (e && e->isSVGElement()) { 1292 if (e && e->isSVGElement()) {
1293 // Spec: http://www.w3.org/TR/SVG/masking.html#OverflowProperty 1293 // Spec: http://www.w3.org/TR/SVG/masking.html#OverflowProperty
1294 if (style->overflowY() == OSCROLL) 1294 if (style->overflowY() == OSCROLL)
1295 style->setOverflowY(OHIDDEN); 1295 style->setOverflowY(OHIDDEN);
1296 else if (style->overflowY() == OAUTO) 1296 else if (style->overflowY() == OAUTO)
1297 style->setOverflowY(OVISIBLE); 1297 style->setOverflowY(OVISIBLE);
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
1938 info.addMember(m_state, "state"); 1938 info.addMember(m_state, "state");
1939 1939
1940 // FIXME: move this to a place where it would be called only once? 1940 // FIXME: move this to a place where it would be called only once?
1941 info.addMember(CSSDefaultStyleSheets::defaultStyle, "defaultStyle"); 1941 info.addMember(CSSDefaultStyleSheets::defaultStyle, "defaultStyle");
1942 info.addMember(CSSDefaultStyleSheets::defaultQuirksStyle, "defaultQuirksStyl e"); 1942 info.addMember(CSSDefaultStyleSheets::defaultQuirksStyle, "defaultQuirksStyl e");
1943 info.addMember(CSSDefaultStyleSheets::defaultPrintStyle, "defaultPrintStyle" ); 1943 info.addMember(CSSDefaultStyleSheets::defaultPrintStyle, "defaultPrintStyle" );
1944 info.addMember(CSSDefaultStyleSheets::defaultViewSourceStyle, "defaultViewSo urceStyle"); 1944 info.addMember(CSSDefaultStyleSheets::defaultViewSourceStyle, "defaultViewSo urceStyle");
1945 } 1945 }
1946 1946
1947 } // namespace WebCore 1947 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/v8/V8WindowShell.cpp ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698