Open main menu

CDOT Wiki β

Changes

Mozilla.dev.tech.layout - Friday October 13 2006

990 bytes removed, 09:24, 2 November 2006
Discussions
* Can the Gecko engine be used to get the width information of some HTML elements (such as table,tr,td)
* There was a discussion about interfaces allowing multiple presshells. The writer is for the idea and believes this issue should be cleared up.
* The writer is seeking instructions on how to fix the table border color quirk that makes the border color dependent on the background. The quirk is a pure NN4.6 quirk.
* The writer is trying to convert nsHTMLReflowState into a base class.
* A few changes have been made to the reflow branch.
* There was a discussion on CSS layout behavior which was about faux columns with a mix of undefined and fix width columns.
* There was a question on what modifications should be done to deactivate a ComboBox from Mozilla.
<pre>
/**
* Compute the size that a frame will occupy. Called while
* constructing the nsHTMLReflowState to be used to Reflow the frame,
* in order to fill its mComputedWidth and mComputedHeight member
* variables.
*
* The |height| member of the return value may be
* NS_UNCONSTRAINEDSIZE, but the |width| member must not be.
*
* @param aAvailWidth The available width into which the element is
* being placed (i.e., the width of its containing
* block).
* @param aMargin The sum of the left and right margins of the
* frame, including actual values resulting from
* percentages, but not including actual values
* resulting from 'auto'.
* @param aBorder The sum of the left and right border widths of the
* frame.
* @param aPadding The sum of the left and right margins of the
* frame, including actual values resulting from
* percentages.
* @param aShrinkWrap Whether the frame is in a context where
* non-replaced blocks should shrink-wrap (e.g.,
* it's floating, absolutely positioned, or
* inline-block).
*/
virtual nsSize ComputeSize(nscoord aAvailWidth, nscoord aMargin,
nscoord aBorder, nscoord aPadding,
PRBool aShrinkWrap) = 0;
</pre>
:Details can be located at refactoring some of [http://groups.google.com/group/mozilla.dev.tech.layout/browse_thread/thread/9bbd4ceea2b72d17/aa3c40d434499e2b#aa3c40d434499e2b nsHTMLReflowState].
1
edit