OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 { | 342 { |
343 // Create a clone of this inline. | 343 // Create a clone of this inline. |
344 RenderInline* cloneInline = clone(); | 344 RenderInline* cloneInline = clone(); |
345 cloneInline->setContinuation(oldCont); | 345 cloneInline->setContinuation(oldCont); |
346 | 346 |
347 // If we're splitting the inline containing the fullscreened element, | 347 // If we're splitting the inline containing the fullscreened element, |
348 // |beforeChild| may be the renderer for the fullscreened element. However, | 348 // |beforeChild| may be the renderer for the fullscreened element. However, |
349 // that renderer is wrapped in a RenderFullScreen, so |this| is not its | 349 // that renderer is wrapped in a RenderFullScreen, so |this| is not its |
350 // parent. Since the splitting logic expects |this| to be the parent, set | 350 // parent. Since the splitting logic expects |this| to be the parent, set |
351 // |beforeChild| to be the RenderFullScreen. | 351 // |beforeChild| to be the RenderFullScreen. |
352 if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExist
s(&document())) { | 352 if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExist
s(document())) { |
353 const Element* fullScreenElement = fullscreen->webkitCurrentFullScreenEl
ement(); | 353 const Element* fullScreenElement = fullscreen->webkitCurrentFullScreenEl
ement(); |
354 if (fullScreenElement && beforeChild && beforeChild->node() == fullScree
nElement) | 354 if (fullScreenElement && beforeChild && beforeChild->node() == fullScree
nElement) |
355 beforeChild = fullscreen->fullScreenRenderer(); | 355 beforeChild = fullscreen->fullScreenRenderer(); |
356 } | 356 } |
357 | 357 |
358 // Now take all of the children from beforeChild to the end and remove | 358 // Now take all of the children from beforeChild to the end and remove |
359 // them from |this| and place them in the clone. | 359 // them from |this| and place them in the clone. |
360 RenderObject* o = beforeChild; | 360 RenderObject* o = beforeChild; |
361 while (o) { | 361 while (o) { |
362 RenderObject* tmp = o; | 362 RenderObject* tmp = o; |
(...skipping 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1572 container = this; | 1572 container = this; |
1573 | 1573 |
1574 FloatPoint absPos = container->localToAbsolute(); | 1574 FloatPoint absPos = container->localToAbsolute(); |
1575 region.bounds.setX(absPos.x() + region.bounds.x()); | 1575 region.bounds.setX(absPos.x() + region.bounds.x()); |
1576 region.bounds.setY(absPos.y() + region.bounds.y()); | 1576 region.bounds.setY(absPos.y() + region.bounds.y()); |
1577 | 1577 |
1578 regions.append(region); | 1578 regions.append(region); |
1579 } | 1579 } |
1580 | 1580 |
1581 } // namespace WebCore | 1581 } // namespace WebCore |
OLD | NEW |