Changeset 156210 in webkit
- Timestamp:
- Sep 20, 2013, 4:59:19 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r156203 r156210 1 2013-09-20 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r156185. 4 http://trac.webkit.org/changeset/156185 5 https://bugs.webkit.org/show_bug.cgi?id=121727 6 7 Caused a lot of crashes in tests (Requested by ap on #webkit). 8 9 * fast/dom/HTMLDocument/active-element-gets-unfocusable-expected.txt: Removed. 10 * fast/dom/HTMLDocument/active-element-gets-unfocusable.html: Removed. 11 1 12 2013-09-20 Mario Sanchez Prada <mario.prada@samsung.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r156205 r156210 1 2013-09-20 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r156185. 4 http://trac.webkit.org/changeset/156185 5 https://bugs.webkit.org/show_bug.cgi?id=121727 6 7 Caused a lot of crashes in tests (Requested by ap on #webkit). 8 9 * dom/Document.cpp: 10 (WebCore::Document::Document): 11 (WebCore::Document::recalcStyle): 12 (WebCore::Document::updateLayout): 13 * dom/Document.h: 14 1 15 2013-09-20 Dean Jackson <dino@apple.com> 2 16 -
trunk/Source/WebCore/dom/Document.cpp
r156185 r156210 440 440 , m_markers(adoptPtr(new DocumentMarkerController)) 441 441 , m_updateFocusAppearanceTimer(this, &Document::updateFocusAppearanceTimerFired) 442 , m_resetHiddenFocusElementTimer(this, &Document::resetHiddenFocusElementTimer)443 442 , m_cssTarget(0) 444 443 , m_processingLoadEvent(false) … … 1829 1828 if (m_hoveredElement && !m_hoveredElement->renderer()) 1830 1829 frameView.frame().eventHandler().dispatchFakeMouseMoveEventSoon(); 1831 1832 // Style change may reset the focus, e.g. display: none, visibility: hidden.1833 resetHiddenFocusElementSoon();1834 1830 } 1835 1831 … … 1870 1866 if (frameView && renderView() && (frameView->layoutPending() || renderView()->needsLayout())) 1871 1867 frameView->layout(); 1872 1873 // Active focus element's isFocusable() state may change after Layout. e.g. width: 0px or height: 0px.1874 resetHiddenFocusElementSoon();1875 1868 } 1876 1869 … … 4694 4687 } 4695 4688 4696 void Document::resetHiddenFocusElementSoon()4697 {4698 if (!m_resetHiddenFocusElementTimer.isActive() && m_focusedElement && !m_focusedElement->isFocusable())4699 m_resetHiddenFocusElementTimer.startOneShot(0);4700 }4701 4702 4689 void Document::updateFocusAppearanceTimerFired(Timer<Document>*) 4703 4690 { … … 4709 4696 if (element->isFocusable()) 4710 4697 element->updateFocusAppearance(m_updateFocusAppearanceRestoresSelection); 4711 }4712 4713 void Document::resetHiddenFocusElementTimer(Timer<Document>*)4714 {4715 if (m_focusedElement && !m_focusedElement->isFocusable())4716 setFocusedElement(0);4717 4698 } 4718 4699 -
trunk/Source/WebCore/dom/Document.h
r156185 r156210 919 919 void updateFocusAppearanceSoon(bool restorePreviousSelection); 920 920 void cancelFocusAppearanceUpdate(); 921 922 void resetHiddenFocusElementSoon(); 923 921 924 922 // Extension for manipulating canvas drawing contexts for use in CSS 925 923 CanvasRenderingContext* getCSSCanvasContext(const String& type, const String& name, int width, int height); … … 1228 1226 void updateBaseURL(); 1229 1227 1230 void resetHiddenFocusElementTimer(Timer<Document>*);1231 1232 1228 void buildAccessKeyMap(TreeScope* root); 1233 1229 … … 1381 1377 1382 1378 Timer<Document> m_updateFocusAppearanceTimer; 1383 Timer<Document> m_resetHiddenFocusElementTimer;1384 1379 1385 1380 Element* m_cssTarget;
Note:
See TracChangeset
for help on using the changeset viewer.