Changeset 96258 in webkit
- Timestamp:
- Sep 28, 2011 1:55:50 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r96257 r96258 1 2011-09-28 Dimitri Glazkov <dglazkov@chromium.org> 2 3 REGRESSION(r95573): Crash when loading SVG documents in a flattened frame or any SVG document in Chromium/Mac. 4 https://bugs.webkit.org/show_bug.cgi?id=68938 5 6 Reviewed by David Hyatt. 7 8 * fast/frames/flattening/crash-svg-document-expected.txt: Added. 9 * fast/frames/flattening/crash-svg-document.html: Added. 10 1 11 2011-09-28 Una Sabovic <una.sabovic@palm.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r96257 r96258 1 2011-09-27 Dimitri Glazkov <dglazkov@chromium.org> 2 3 REGRESSION(r95573): Crash when loading SVG documents in a flattened frame or any SVG document in Chromium/Mac. 4 https://bugs.webkit.org/show_bug.cgi?id=68938 5 6 Reviewed by David Hyatt. 7 8 Test: all svg tests in LayoutTests. 9 10 * rendering/RenderBlock.cpp: 11 (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): Added a null-check for containingBlock. 12 1 13 2011-09-28 Una Sabovic <una.sabovic@palm.com> 2 14 -
trunk/Source/WebCore/rendering/RenderBlock.cpp
r95856 r96258 4888 4888 float inlineMin = 0; 4889 4889 4890 LayoutUnit cw = containingBlock()->contentLogicalWidth(); 4890 RenderBlock* containingBlock = this->containingBlock(); 4891 LayoutUnit cw = containingBlock ? containingBlock->contentLogicalWidth() : 0; 4891 4892 4892 4893 // If we are at the start of a line, we want to ignore all white-space. … … 5153 5154 5154 5155 RenderObject *child = firstChild(); 5156 RenderBlock* containingBlock = this->containingBlock(); 5155 5157 LayoutUnit floatLeftWidth = 0, floatRightWidth = 0; 5156 5158 while (child) { … … 5201 5203 // margins of the object. For negative margins, we will attempt to overlap the float if the negative margin 5202 5204 // is smaller than the float width. 5203 bool ltr = containingBlock ()->style()->isLeftToRightDirection();5205 bool ltr = containingBlock ? containingBlock->style()->isLeftToRightDirection() : style()->isLeftToRightDirection(); 5204 5206 LayoutUnit marginLogicalLeft = ltr ? marginStart : marginEnd; 5205 5207 LayoutUnit marginLogicalRight = ltr ? marginEnd : marginStart; … … 5235 5237 // We can achieve this effect by making the maxwidth of blocks that contain tables 5236 5238 // with percentage widths be infinite (as long as they are not inside a table cell). 5237 if ( document()->inQuirksMode() && child->style()->logicalWidth().isPercent() &&5238 !isTableCell() && child->isTable() && m_maxPreferredLogicalWidth < BLOCK_MAX_WIDTH) {5239 RenderBlock* cb = containingBlock ();5239 if (containingBlock && document()->inQuirksMode() && child->style()->logicalWidth().isPercent() 5240 && !isTableCell() && child->isTable() && m_maxPreferredLogicalWidth < BLOCK_MAX_WIDTH) { 5241 RenderBlock* cb = containingBlock; 5240 5242 while (!cb->isRenderView() && !cb->isTableCell()) 5241 5243 cb = cb->containingBlock(); -
trunk/Tools/ChangeLog
r96252 r96258 1 2011-09-27 Dimitri Glazkov <dglazkov@chromium.org> 2 3 REGRESSION(r95573): Crash when loading SVG documents in a flattened frame or any SVG document in Chromium/Mac. 4 https://bugs.webkit.org/show_bug.cgi?id=68938 5 6 Made Chromium/Mac DRT better match how Chromium/Mac queries WebKit. 7 8 Reviewed by David Hyatt. 9 10 * DumpRenderTree/chromium/WebViewHost.cpp: 11 (WebViewHost::didUpdateLayout): Added width/height queries. 12 * DumpRenderTree/chromium/WebViewHost.h: Updated defs. 13 1 14 2011-09-28 Mihai Parparita <mihaip@chromium.org> 2 15 -
trunk/Tools/DumpRenderTree/chromium/WebViewHost.cpp
r95085 r96258 795 795 } 796 796 797 void WebViewHost::didUpdateLayout(WebFrame*) 798 { 799 #if OS(MAC_OS_X) 800 static bool queryingPreferredSize = false; 801 if (queryingPreferredSize) 802 return; 803 804 queryingPreferredSize = true; 805 // Query preferred width to emulate the same functionality in Chromium: 806 // see RenderView::CheckPreferredSize (src/content/renderer/render_view.cc) 807 // and TabContentsViewMac::RenderViewCreated (src/chrome/browser/tab_contents/tab_contents_view_mac.mm) 808 webView()->mainFrame()->contentsPreferredWidth(); 809 webView()->mainFrame()->documentElementScrollHeight(); 810 queryingPreferredSize = false; 811 #endif 812 } 813 814 797 815 void WebViewHost::loadURLExternally(WebFrame* frame, const WebURLRequest& request, WebNavigationPolicy policy) 798 816 { -
trunk/Tools/DumpRenderTree/chromium/WebViewHost.h
r95085 r96258 172 172 virtual WebKit::WebMediaPlayer* createMediaPlayer(WebKit::WebFrame*, WebKit::WebMediaPlayerClient*); 173 173 virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost(WebKit::WebFrame*, WebKit::WebApplicationCacheHostClient*); 174 virtual void didUpdateLayout(WebKit::WebFrame*); 174 175 virtual void loadURLExternally(WebKit::WebFrame*, const WebKit::WebURLRequest&, WebKit::WebNavigationPolicy); 175 176 virtual void loadURLExternally(WebKit::WebFrame*, const WebKit::WebURLRequest&, WebKit::WebNavigationPolicy, const WebKit::WebString& downloadName);
Note: See TracChangeset
for help on using the changeset viewer.