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

Side by Side Diff: Source/core/rendering/RenderIFrame.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/core/rendering/RenderEmbeddedObject.cpp ('k') | no next file » | 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) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 RenderView* childRoot = contentRootRenderer(); 72 RenderView* childRoot = contentRootRenderer();
73 if (!childRoot) 73 if (!childRoot)
74 return 0; 74 return 0;
75 75
76 return childRoot->maxPreferredLogicalWidth() + borderAndPaddingLogicalWidth( ); 76 return childRoot->maxPreferredLogicalWidth() + borderAndPaddingLogicalWidth( );
77 } 77 }
78 78
79 bool RenderIFrame::isSeamless() const 79 bool RenderIFrame::isSeamless() const
80 { 80 {
81 return node() && node()->hasTagName(iframeTag) && static_cast<HTMLIFrameElem ent*>(node())->shouldDisplaySeamlessly(); 81 return node() && node()->hasTagName(iframeTag) && toHTMLIFrameElement(node() )->shouldDisplaySeamlessly();
82 } 82 }
83 83
84 bool RenderIFrame::requiresLayer() const 84 bool RenderIFrame::requiresLayer() const
85 { 85 {
86 return RenderPart::requiresLayer() || style()->resize() != RESIZE_NONE; 86 return RenderPart::requiresLayer() || style()->resize() != RESIZE_NONE;
87 } 87 }
88 88
89 RenderView* RenderIFrame::contentRootRenderer() const 89 RenderView* RenderIFrame::contentRootRenderer() const
90 { 90 {
91 // FIXME: Is this always a valid cast? What about plugins? 91 // FIXME: Is this always a valid cast? What about plugins?
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 } 134 }
135 135
136 m_overflow.clear(); 136 m_overflow.clear();
137 addVisualEffectOverflow(); 137 addVisualEffectOverflow();
138 updateLayerTransform(); 138 updateLayerTransform();
139 139
140 setNeedsLayout(false); 140 setNeedsLayout(false);
141 } 141 }
142 142
143 } 143 }
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderEmbeddedObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698