Lines Matching full:left
169 int left = scrollLeft();
170 if (left) {
171 left = (left / oldStyle->effectiveZoom()) * style()->effectiveZoom();
172 setScrollLeft(left);
1367 // in SSR mode with non-replaced box, we use ANDROID_SSR_MARGIN_PADDING for left/right margin.
1846 // FIXME 2: Should we still deal with these the cases of 'left' or 'right' having
1848 // NOTE: 'static' is not a legal value for 'left' or 'right' as of CSS 2.1.
1874 Length left = style()->left();
1882 * * The static position for 'left' is the distance from the left edge of the
1883 * containing block to the left margin edge of a hypothetical box that would
1886 * hypothetical box is to the left of the containing block.
1889 * above. The value is positive if the hypothetical box is to the left of the
1903 if (left.isAuto() && right.isAuto()) {
1911 left.setValue(Fixed, staticPosition);
1931 left, right, marginLeft, marginRight,
1945 left, right, marginLeft, marginRight,
1965 left, right, marginLeft, marginRight,
1979 left, right, marginLeft, marginRight,
1991 const Length left, const Length right, const Length marginLeft, const Length marginRight,
1994 // 'left' and 'right' cannot both be 'auto' because one would of been
1996 ASSERT(!(left.isAuto() && right.isAuto()));
2001 bool leftIsAuto = left.isAuto();
2006 * If none of the three is 'auto': If both 'margin-left' and 'margin-
2010 * set 'margin-left' ('margin-right') to zero and solve for 'margin-right'
2011 * ('margin-left'). If one of 'margin-left' or 'margin-right' is 'auto',
2013 * ignore the value for 'left' (in case the 'direction' property of the
2020 leftValue = left.calcValue(containerWidth);
2042 // Solve for left margin
2050 // Over-constrained, solve for left if direction is RTL
2060 * Otherwise, set 'auto' values for 'margin-left' and 'margin-right'
2063 * 1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the
2064 * width is shrink-to-fit. Then solve for 'left'
2068 * 2. 'left' and 'right' are 'auto' and 'width' is not 'auto', then if
2070 * 'left' to the static position, otherwise set 'right' to the
2071 * static position. Then solve for 'left' (if 'direction is 'rtl')
2075 * 3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the
2077 * 4. 'left' is 'auto', 'width' and 'right' are not 'auto', then solve
2078 * for 'left'
2079 * 5. 'width' is 'auto', 'left' and 'right' are not 'auto', then solve
2081 * 6. 'right' is 'auto', 'left' and 'width' are not 'auto', then solve
2091 * for 'width' after setting 'left' (in case 1) or 'right' (in case 3)
2109 // RULE 1: (use shrink-to-fit for width, and solve of left)
2120 leftValue = left.calcValue(containerWidth);
2128 // RULE 4: (solve for left)
2133 leftValue = left.calcValue(containerWidth);
2137 leftValue = left.calcValue(containerWidth);
2408 Length left = style()->left();
2425 * 2. If both 'left' and 'right' have the value 'auto', then if 'direction'
2426 * of the containing block is 'ltr', set 'left' to the static position;
2430 if (left.isAuto() && right.isAuto()) {
2439 left.setValue(Fixed, staticPosition);
2453 * 3. If 'left' or 'right' are 'auto', replace any 'auto' on 'margin-left'
2456 if (left.isAuto() || right.isAuto()) {
2464 * 4. If at this point both 'margin-left' and 'margin-right' are still
2468 * ('rtl'), set 'margin-left' ('margin-right') to zero and solve for
2469 * 'margin-right' ('margin-left').
2475 // 'left' and 'right' cannot be 'auto' due to step 3
2476 ASSERT(!(left.isAuto() && right.isAuto()));
2478 leftValue = left.calcValue(containerWidth);
2497 * 5. If at this point there is an 'auto' left, solve the equation for
2500 } else if (left.isAuto()) {
2505 // Solve for 'left'
2510 leftValue = left.calcValue(containerWidth);
2516 leftValue = left.calcValue(containerWidth);
2519 // Solve for 'margin-left'
2523 leftValue = left.calcValue(containerWidth);
2533 leftValue = left.calcValue(containerWidth);
2538 * for either 'left' (in case the 'direction' property of the
2646 * 5. If at this point there is only one 'auto' left, solve the equation
2764 int left = 0;
2766 left += relativePositionOffsetX();
2767 return left;
2811 int left = renderer->borderLeft() + renderer->paddingLeft() + (isTableRow() ? 0 : renderer->x());
2812 int right = left + renderer->contentWidth();
2814 if (xPos <= right && xPos >= left && yPos <= top && yPos >= bottom) {
2830 } else if (xPos < left) {
2832 cmp = IntPoint(left, top);
2834 cmp = IntPoint(left, bottom);
2836 cmp = IntPoint(left, yPos);