Home | History | Annotate | Download | only in rendering

Lines Matching refs:top

171     // If our zoom factor changes and we have a defined scrollLeft/Top, we need to adjust that value into the
179 int top = scrollTop();
180 if (top) {
181 top = (top / oldStyle->effectiveZoom()) * style()->effectiveZoom();
182 setScrollTop(top);
1603 // A positioned element that specified both top/bottom or that specifies height should be treated as though it has a height
1605 bool isPositionedWithSpecifiedHeight = cb->isPositioned() && (!cb->style()->height().isAuto() || (!cb->style()->top().isAuto() && !cb->style()->bottom().isAuto()));
1712 if (cb->isPositioned() && cb->style()->height().isAuto() && !(cb->style()->top().isAuto() || cb->style()->bottom().isAuto())) {
1764 if (isRenderBlock() && isPositioned() && style()->height().isAuto() && !(style()->top().isAuto() || style()->bottom().isAuto())) {
2188 Length top = style()->top();
2194 * in the normal flow. More precisely, the static position for 'top' is the
2195 * distance from the top edge of the containing block to the top margin edge
2210 if (top.isAuto() && bottom.isAuto()) {
2217 top.setValue(Fixed, staticTop);
2226 top, bottom, marginTop, marginBottom,
2241 top, bottom, marginTop, marginBottom,
2260 top, bottom, marginTop, marginBottom,
2277 const Length top, const Length bottom, const Length marginTop, const Length marginBottom,
2280 // 'top' and 'bottom' cannot both be 'auto' because 'top would of been
2282 ASSERT(!(top.isAuto() && bottom.isAuto()));
2289 bool topIsAuto = top.isAuto();
2300 * If none of the three are 'auto': If both 'margin-top' and 'margin-
2302 * the two margins get equal values. If one of 'margin-top' or 'margin-
2311 topValue = top.calcValue(containerHeight);
2322 // Solve for top margin
2336 * Otherwise, set 'auto' values for 'margin-top' and 'margin-bottom'
2339 * 1. 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then
2340 * the height is based on the content, and solve for 'top'.
2344 * 2. 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then
2345 * set 'top' to the static position, and solve for 'bottom'.
2348 * 3. 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then
2350 * 4. 'top' is 'auto', 'height' and 'bottom' are not 'auto', and
2351 * solve for 'top'.
2352 * 5. 'height' is 'auto', 'top' and 'bottom' are not 'auto', and
2354 * 6. 'bottom' is 'auto', 'top' and 'height' are not 'auto', and
2368 // RULE 1: (height is content based, solve of top)
2373 topValue = top.calcValue(containerHeight);
2376 // RULE 4: (solve of top)
2381 topValue = top.calcValue(containerHeight);
2386 topValue = top.calcValue(containerHeight);
2586 Length top = style()->top();
2603 * 2. If both 'top' and 'bottom' have the value 'auto', replace 'top'
2607 if (top.isAuto() && bottom.isAuto()) {
2614 top.setValue(Fixed, staticTop);
2618 * 3. If 'bottom' is 'auto', replace any 'auto' on 'margin-top' or
2622 // auto, but if only top is auto, this makes step 4 impossible.
2623 if (top.isAuto() || bottom.isAuto()) {
2631 * 4. If at this point both 'margin-top' and 'margin-bottom' are still
2639 // 'top' and 'bottom' cannot be 'auto' due to step 2 and 3 combined.
2640 ASSERT(!(top.isAuto() || bottom.isAuto()));
2642 topValue = top.calcValue(containerHeight);
2654 } else if (top.isAuto()) {
2659 // Solve for 'top'
2664 topValue = top.calcValue(containerHeight);
2671 topValue = top.calcValue(containerHeight);
2674 // Solve for 'margin-top'
2678 topValue = top.calcValue(containerHeight);
2687 topValue = top.calcValue(containerHeight);
2720 int top = rootBox->lineTop();
2721 rect.setY(top);
2722 rect.setHeight(rootBox->lineBottom() - top);
2814 int top = renderer->borderTop() + renderer->paddingTop() + (isTableRow() ? 0 : renderer->y());
2815 int bottom = top + renderer->contentHeight();
2819 if (xPos <= right && xPos >= left && yPos <= top && yPos >= bottom) {
2829 if (yPos < top)
2830 cmp = IntPoint(right, top);
2836 if (yPos < top)
2837 cmp = IntPoint(left, top);
2843 if (yPos < top)
2844 cmp = IntPoint(xPos, top);