Changeset 14055 in webkit
- Timestamp:
- Apr 25, 2006 12:33:22 PM (18 years ago)
- Location:
- branches/Safari-2-0-branch/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Safari-2-0-branch/WebCore/ChangeLog
r14053 r14055 1 2006-04-25 Eric Seidel <eseidel@apple.com> 2 3 Reviewed by ggaren. 4 5 Fixes for our 3rd and 5th most common crashtracers: 6 <rdar://problem/4233435> CrashTracer: 2698 crashes in Safari at com.apple.WebCore: khtml::RenderBlock::addChildToFlow + 156 7 <rdar://problem/4129744> [REGRESSION]CrashTracer: ..400 crashes at com.apple.WebCore: DOM::NodeImpl::createRendererIfNeeded + 44 8 9 Test case landed on trunk but not on branch. 10 11 * khtml/xml/dom_docimpl.cpp: 12 (DocumentImpl::setFocusNode): use m_inDetach bool copied from trunk 13 * khtml/xml/dom_nodeimpl.cpp: 14 (NodeImpl::NodeImpl): 15 (NodeImpl::detach): set m_inDetach 16 (NodeImpl::createRendererIfNeeded): 17 (NodeBaseImpl::removeChildren): remove node from tree before calling detach. 18 * khtml/xml/dom_nodeimpl.h: 19 1 20 2006-04-25 Timothy Hatcher <timothy@apple.com> 2 21 -
branches/Safari-2-0-branch/WebCore/khtml/xml/dom_docimpl.cpp
r13094 r14055 2594 2594 2595 2595 // Remove focus from the existing focus node (if any) 2596 if (oldFocusNode ) {2596 if (oldFocusNode && !oldFocusNode->m_inDetach) { 2597 2597 // This goes hand in hand with the Qt focus setting below. 2598 2598 if (!newFocusNode && view()) { -
branches/Safari-2-0-branch/WebCore/khtml/xml/dom_nodeimpl.cpp
-
Property
allow-tabs
set to
1
r12185 r14055 101 101 m_inActiveChain( false ), 102 102 m_styleElement( false ), 103 m_implicit( false ) 103 m_implicit(false), 104 m_inDetach(false) 104 105 { 105 106 if (document) … … 1202 1203 void NodeImpl::detach() 1203 1204 { 1205 m_inDetach = true; 1204 1206 // assert(m_attached); 1205 1207 … … 1212 1214 doc->incDOMTreeVersion(); 1213 1215 m_attached = false; 1216 m_inDetach = false; 1214 1217 } 1215 1218 … … 1379 1382 assert(!m_render); 1380 1383 1381 NodeImpl *parent = parentNode(); 1384 NodeImpl *parent = parentNode(); 1382 1385 assert(parent); 1383 1386 … … 1941 1944 1942 1945 n->ref(); 1943 1944 if (n->attached()) 1945 n->detach(); 1946 1947 // Remove the node from the tree before calling detach or removedFromDocument (4427024, 4129744) 1946 1948 n->setPreviousSibling(0); 1947 1949 n->setNextSibling(0); 1948 1950 n->setParent(0); 1951 _first = next; 1952 if (n == _last) 1953 _last = 0; 1954 1955 if (n->attached()) 1956 n->detach(); 1949 1957 1950 1958 if (n->inDocument()) … … 1952 1960 1953 1961 n->deref(); 1954 1955 _first = next; 1956 } 1957 _last = 0; 1962 } 1958 1963 allowEventDispatch(); 1959 1964 -
Property
allow-tabs
set to
-
branches/Safari-2-0-branch/WebCore/khtml/xml/dom_nodeimpl.h
r12185 r14055 502 502 bool m_styleElement : 1; // contains stylesheet text 503 503 bool m_implicit : 1; // implicitely generated by the parser 504 505 // 3 bits unused 504 505 bool m_inDetach : 1; 506 507 // 2 bits unused 506 508 }; 507 509
Note: See TracChangeset
for help on using the changeset viewer.