- fixed <rdar://problem/
3952698> Function buttons do not display properly with Telia Webmail
* khtml/rendering/render_replaced.cpp: (RenderReplaced::calcMinMaxWidth):
Only use a minWidth of 0 for images with a percentage value. Other replaced elements aren't scalable
so their minWidth should be their calculated width. This has been wrong all along, but it's a relatively
safe change because it only affects replaced elements' min-width.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8830
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-03-08 Darin Adler <darin@apple.com>
+
+ Change written by Hyatt, reviewed by me.
+
+ - fixed <rdar://problem/3952698> Function buttons do not display properly with Telia Webmail
+
+ * khtml/rendering/render_replaced.cpp: (RenderReplaced::calcMinMaxWidth):
+ Only use a minWidth of 0 for images with a percentage value. Other replaced elements aren't scalable
+ so their minWidth should be their calculated width. This has been wrong all along, but it's a relatively
+ safe change because it only affects replaced elements' min-width.
+
2005-03-08 David Harrison <harrison@apple.com>
Reviewed by Ken.
#endif
int width = calcReplacedWidth() + paddingLeft() + paddingRight() + borderLeft() + borderRight();
- if (style()->width().isPercent() || (style()->width().isVariable() && style()->height().isPercent())) {
+ // FIXME: If this is image-specific, then why not move it down into RenderImage?
+ if (isImage() && style()->width().isPercent())
m_minWidth = 0;
- m_maxWidth = width;
- }
else
- m_minWidth = m_maxWidth = width;
+ m_minWidth = width;
+ m_maxWidth = width;
setMinMaxKnown();
}