Changeset 147701 in webkit
- Timestamp:
- Apr 4, 2013 8:46:22 PM (11 years ago)
- Location:
- trunk/Source/WebKit/blackberry
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/blackberry/ChangeLog
r147687 r147701 1 2013-04-04 Andrew Lo <anlo@rim.com> 2 3 [BlackBerry] DOMSupport::isFixedPositionOrHasFixedPositionAncestor stops traversing render tree when it hits an iframe element 4 https://bugs.webkit.org/show_bug.cgi?id=113944 5 6 Reviewed by Rob Buis. 7 Internally reviewed by Mike Fenton. 8 9 Internal PR 320732. 10 When checking whether a RenderObject is fixed position or has a fixed position 11 ancestor, we traverse the render tree upwards. 12 13 When we reach the root of the tree, check whether the root is an 14 iframe and has an element owner. If so, we also need to continue iterating 15 up the tree from the owner to see if the iframe is a descendant of a fixed 16 position element. 17 18 * WebKitSupport/DOMSupport.cpp: 19 (BlackBerry::WebKit::DOMSupport::isFixedPositionOrHasFixedPositionAncestor): 20 1 21 2013-04-04 Tiancheng Jiang <tijiang@rim.com> 2 22 -
trunk/Source/WebKit/blackberry/WebKitSupport/DOMSupport.cpp
r147135 r147701 24 24 #include "FrameView.h" 25 25 #include "HTMLFormElement.h" 26 #include "HTMLFrameOwnerElement.h" 26 27 #include "HTMLInputElement.h" 27 28 #include "HTMLNames.h" … … 597 598 return true; 598 599 600 // Check if the current frame is an iframe. If so, continue checking with the iframe's owner element. 601 if (!currentRenderer->parent() && currentRenderer->isRenderView() && currentRenderer->frame() && currentRenderer->frame()->ownerElement()) { 602 currentRenderer = currentRenderer->frame()->ownerElement()->renderer(); 603 continue; 604 } 605 599 606 currentRenderer = currentRenderer->parent(); 600 607 }
Note: See TracChangeset
for help on using the changeset viewer.