Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 221935 Details for
Bug 307621
kde-base/konqueror-4.4.2 doesn't render some sites properly
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch with the fix from trunk
kdelibs-4.3.5-khtml-render.patch (text/plain), 2.07 KB, created by
Tanktalus
on 2010-03-03 14:24:19 UTC
(
hide
)
Description:
Patch with the fix from trunk
Filename:
MIME Type:
Creator:
Tanktalus
Created:
2010-03-03 14:24:19 UTC
Size:
2.07 KB
patch
obsolete
>--- trunk/KDE/kdelibs/khtml/rendering/render_block.cpp 2010/01/28 10:28:10 1081434 >+++ trunk/KDE/kdelibs/khtml/rendering/render_block.cpp 2010/01/28 10:28:19 1081435 >@@ -2697,17 +2697,33 @@ > break; > } > >- // We also clear floats if we are too big to sit on the same line as a float, and happen to flow around floats. >- // FIXME: Note that the remaining space checks aren't quite accurate, since you should be able to clear only some floats (the minimum # needed >- // to fit) and not all (we should be using nearestFloatBottom and looping). >+ // We also clear floats if we are too big to sit on the same line as >+ // a float, and happen to flow around floats. > int result = clearSet ? qMax(0, bottom - yPos) : 0; >- if (!result && child->flowAroundFloats() && !style()->width().isAuto()) { >- bool canClearLine; >- int lw = lineWidth(yPos, &canClearLine); >- if (((child->style()->width().isPercent() && child->width() > lw) || >- (child->style()->width().isFixed() && child->minWidth() > lw)) && >- child->minWidth() <= availableWidth() && canClearLine) >- result = qMax(0, floatBottom() - yPos); >+ if (!result && child->flowAroundFloats()) { >+ bool canClear = true; >+ bool needsRecalc = child->usesLineWidth(); >+ int cury = yPos; >+ int childw = 0; >+ int aw = availableWidth(); >+ while (true) { >+ int curw = lineWidth(cury, &canClear); >+ if (!canClear || curw == aw) >+ return cury-yPos; >+ if (!childw || needsRecalc) { >+ int oy = child->yPos(); >+ int ow = child->width(); >+ child->setPos(child->xPos(), cury); >+ child->calcWidth(); >+ childw = child->width(); >+ child->setPos(child->xPos(), oy); >+ child->setWidth(ow); >+ } >+ if (childw <= curw) >+ return cury-yPos; >+ if (!(cury = nearestFloatBottom(cury))) >+ return 0; >+ } > } > return result; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 307621
: 221935