| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 virtual const char* renderName() const OVERRIDE { return "RenderPartObject";
} // Lying for now to avoid breaking tests | 52 virtual const char* renderName() const OVERRIDE { return "RenderPartObject";
} // Lying for now to avoid breaking tests |
| 53 | 53 |
| 54 virtual bool requiresLayer() const OVERRIDE; | 54 virtual bool requiresLayer() const OVERRIDE; |
| 55 | 55 |
| 56 void layoutSeamlessly(); | 56 void layoutSeamlessly(); |
| 57 | 57 |
| 58 RenderView* contentRootRenderer() const; | 58 RenderView* contentRootRenderer() const; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 inline RenderIFrame* toRenderIFrame(RenderObject* object) | 61 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderIFrame, isRenderIFrame()); |
| 62 { | |
| 63 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderIFrame()); | |
| 64 return static_cast<RenderIFrame*>(object); | |
| 65 } | |
| 66 | |
| 67 inline const RenderIFrame* toRenderIFrame(const RenderObject* object) | |
| 68 { | |
| 69 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderIFrame()); | |
| 70 return static_cast<const RenderIFrame*>(object); | |
| 71 } | |
| 72 | |
| 73 // This will catch anyone doing an unnecessary cast. | |
| 74 void toRenderIFrame(const RenderIFrame*); | |
| 75 | |
| 76 | 62 |
| 77 } // namespace WebCore | 63 } // namespace WebCore |
| 78 | 64 |
| 79 #endif // RenderIFrame_h | 65 #endif // RenderIFrame_h |
| OLD | NEW |