[Webkit-unassigned] [Bug 84106] Auto-sized frames may be taller than expected

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 16 17:57:09 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=84106





--- Comment #2 from Andrei Burago <aburago at chromium.org>  2012-04-16 17:57:09 PST ---
(From update of attachment 137445)
>Index: Source/WebCore/ChangeLog
>===================================================================
>--- Source/WebCore/ChangeLog	(revision 114315)
>+++ Source/WebCore/ChangeLog	(working copy)
>@@ -1,3 +1,18 @@
>+2012-04-02  Andrei Burago  <aburago at chromium.org>
>+
>+        Auto-size may not work on first load
>+        https://bugs.webkit.org/show_bug.cgi?id=84106
>+
>+        Reviewed by NOBODY (OOPS!).
>+
>+        No new tests. The repro steps require use of Chrome notifications on Win.
>+        
>+
>+        * page/FrameView.cpp:
>+        (WebCore::FrameView::autoSizeIfEnabled):
>+
> 2012-04-16  Levi Weintraub  <leviw at chromium.org>
> 
>         Make borderBoxRect sub-pixel precise and add a pixel snapped version
>Index: Source/WebCore/page/FrameView.cpp
>===================================================================
>--- Source/WebCore/page/FrameView.cpp	(revision 114315)
>+++ Source/WebCore/page/FrameView.cpp	(working copy)
>@@ -2434,12 +2434,13 @@ void FrameView::autoSizeIfEnabled()
>     if (!m_didRunAutosize)
>         resize(frameRect().width(), m_minAutoSize.height());
> 
>+    IntSize size = frameRect().size();
>+
>     // Do the resizing twice. The first time is basically a rough calculation using the preferred width
>     // which may result in a height change during the second iteration.
>     for (int i = 0; i < 2; i++) {
>         // Update various sizes including contentsSize, scrollHeight, etc.
>         document->updateLayoutIgnorePendingStylesheets();
>-        IntSize size = frameRect().size();
>         int width = documentView->minPreferredLogicalWidth();
>         int height = documentRenderBox->scrollHeight();
>         IntSize newSize(width, height);

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list