| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |