Changeset 173392 in webkit
- Timestamp:
- Sep 8, 2014 11:57:07 AM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r173391 r173392 1 2014-09-08 Simon Fraser <simon.fraser@apple.com> 2 3 Use enum class for the RunPostLayoutTasks enum 4 https://bugs.webkit.org/show_bug.cgi?id=136640 5 6 Reviewed by Dean Jackson. 7 8 Use enum class for RunPostLayoutTasks fixing callers. Add an explanatory comment, 9 and add some spacing. 10 11 * dom/Document.cpp: 12 (WebCore::Document::updateLayoutIgnorePendingStylesheets): 13 * dom/Document.h: 14 * html/HTMLAppletElement.cpp: 15 (WebCore::HTMLAppletElement::renderWidgetForJSBindings): 16 * html/HTMLEmbedElement.cpp: 17 (WebCore::HTMLEmbedElement::renderWidgetForJSBindings): 18 * html/HTMLObjectElement.cpp: 19 (WebCore::HTMLObjectElement::renderWidgetForJSBindings): 20 * testing/Internals.cpp: 21 (WebCore::Internals::updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks): 22 1 23 2014-09-08 peavo@outlook.com <peavo@outlook.com> 2 24 -
trunk/Source/WebCore/dom/Document.cpp
r173365 r173392 1852 1852 updateLayout(); 1853 1853 1854 if (runPostLayoutTasks == RunPostLayoutTasks Synchronously && view())1854 if (runPostLayoutTasks == RunPostLayoutTasks::Synchronously && view()) 1855 1855 view()->flushAnyPendingPostLayoutTasks(); 1856 1856 -
trunk/Source/WebCore/dom/Document.h
r173176 r173392 592 592 WEBCORE_EXPORT void updateStyleIfNeeded(); 593 593 bool updateStyleIfNeededForNode(const Node&); 594 594 595 WEBCORE_EXPORT void updateLayout(); 595 enum RunPostLayoutTasks { 596 RunPostLayoutTasksAsynchronously, 597 RunPostLayoutTasksSynchronously, 596 597 // updateLayoutIgnorePendingStylesheets() forces layout even if we are waiting for pending stylesheet loads, 598 // so calling this may cause a flash of unstyled content (FOUC). 599 enum class RunPostLayoutTasks { 600 Asynchronously, 601 Synchronously, 598 602 }; 599 WEBCORE_EXPORT void updateLayoutIgnorePendingStylesheets(RunPostLayoutTasks = RunPostLayoutTasksAsynchronously); 603 WEBCORE_EXPORT void updateLayoutIgnorePendingStylesheets(RunPostLayoutTasks = RunPostLayoutTasks::Asynchronously); 604 600 605 PassRef<RenderStyle> styleForElementIgnoringPendingStylesheets(Element*); 601 606 -
trunk/Source/WebCore/html/HTMLAppletElement.cpp
r170774 r173392 92 92 // when JavaScript code accesses the plugin. 93 93 // FIXME: <rdar://16893708> Check if dispatching events here is safe. 94 document().updateLayoutIgnorePendingStylesheets(Document::RunPostLayoutTasks Synchronously);94 document().updateLayoutIgnorePendingStylesheets(Document::RunPostLayoutTasks::Synchronously); 95 95 return renderWidget(); 96 96 } -
trunk/Source/WebCore/html/HTMLEmbedElement.cpp
r173278 r173392 76 76 // when JavaScript code accesses the plugin. 77 77 // FIXME: <rdar://16893708> Check if dispatching events here is safe. 78 document().updateLayoutIgnorePendingStylesheets(Document::RunPostLayoutTasks Synchronously);78 document().updateLayoutIgnorePendingStylesheets(Document::RunPostLayoutTasks::Synchronously); 79 79 } 80 80 return findWidgetRenderer(this); -
trunk/Source/WebCore/html/HTMLObjectElement.cpp
r173278 r173392 87 87 // when JavaScript code accesses the plugin. 88 88 // FIXME: <rdar://16893708> Check if dispatching events here is safe. 89 document().updateLayoutIgnorePendingStylesheets(Document::RunPostLayoutTasks Synchronously);89 document().updateLayoutIgnorePendingStylesheets(Document::RunPostLayoutTasks::Synchronously); 90 90 return renderWidget(); // This will return 0 if the renderer is not a RenderWidget. 91 91 } -
trunk/Source/WebCore/testing/Internals.cpp
r173212 r173392 1927 1927 } 1928 1928 1929 document->updateLayoutIgnorePendingStylesheets(Document::RunPostLayoutTasks Synchronously);1929 document->updateLayoutIgnorePendingStylesheets(Document::RunPostLayoutTasks::Synchronously); 1930 1930 } 1931 1931
Note: See TracChangeset
for help on using the changeset viewer.