| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Simon Hausmann <hausmann@kde.org> | 3 * (C) 2000 Simon Hausmann <hausmann@kde.org> |
| 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) | 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) |
| 5 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. | 5 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 } | 261 } |
| 262 | 262 |
| 263 void RenderEmbeddedObject::viewCleared() | 263 void RenderEmbeddedObject::viewCleared() |
| 264 { | 264 { |
| 265 // This is required for <object> elements whose contents are rendered by Web
Core (e.g. src="foo.html"). | 265 // This is required for <object> elements whose contents are rendered by Web
Core (e.g. src="foo.html"). |
| 266 if (node() && widget() && widget()->isFrameView()) { | 266 if (node() && widget() && widget()->isFrameView()) { |
| 267 FrameView* view = toFrameView(widget()); | 267 FrameView* view = toFrameView(widget()); |
| 268 int marginWidth = -1; | 268 int marginWidth = -1; |
| 269 int marginHeight = -1; | 269 int marginHeight = -1; |
| 270 if (node()->hasTagName(iframeTag)) { | 270 if (node()->hasTagName(iframeTag)) { |
| 271 HTMLIFrameElement* frame = static_cast<HTMLIFrameElement*>(node()); | 271 HTMLIFrameElement* frame = toHTMLIFrameElement(node()); |
| 272 marginWidth = frame->marginWidth(); | 272 marginWidth = frame->marginWidth(); |
| 273 marginHeight = frame->marginHeight(); | 273 marginHeight = frame->marginHeight(); |
| 274 } | 274 } |
| 275 if (marginWidth != -1) | 275 if (marginWidth != -1) |
| 276 view->setMarginWidth(marginWidth); | 276 view->setMarginWidth(marginWidth); |
| 277 if (marginHeight != -1) | 277 if (marginHeight != -1) |
| 278 view->setMarginHeight(marginHeight); | 278 view->setMarginHeight(marginHeight); |
| 279 } | 279 } |
| 280 } | 280 } |
| 281 | 281 |
| 282 bool RenderEmbeddedObject::scroll(ScrollDirection direction, ScrollGranularity g
ranularity, float, Node**) | 282 bool RenderEmbeddedObject::scroll(ScrollDirection direction, ScrollGranularity g
ranularity, float, Node**) |
| 283 { | 283 { |
| 284 return false; | 284 return false; |
| 285 } | 285 } |
| 286 | 286 |
| 287 bool RenderEmbeddedObject::logicalScroll(ScrollLogicalDirection direction, Scrol
lGranularity granularity, float multiplier, Node** stopNode) | 287 bool RenderEmbeddedObject::logicalScroll(ScrollLogicalDirection direction, Scrol
lGranularity granularity, float multiplier, Node** stopNode) |
| 288 { | 288 { |
| 289 return false; | 289 return false; |
| 290 } | 290 } |
| 291 | 291 |
| 292 bool RenderEmbeddedObject::canHaveChildren() const | 292 bool RenderEmbeddedObject::canHaveChildren() const |
| 293 { | 293 { |
| 294 return false; | 294 return false; |
| 295 } | 295 } |
| 296 | 296 |
| 297 } | 297 } |
| OLD | NEW |