|
| 1 | +2014-04-08 Darin Adler <darin@apple.com> |
| 2 | + |
| 3 | + Fix assertions triggered by CSS calc changes in r166860 |
| 4 | + https://bugs.webkit.org/show_bug.cgi?id=131346 |
| 5 | + |
| 6 | + Reviewed by Andrei Bucur. |
| 7 | + |
| 8 | + * css/CSSComputedStyleDeclaration.cpp: |
| 9 | + (WebCore::getBorderRadiusCornerValues): Use isPercentNotCalculated() instead of |
| 10 | + type() == Percent; no behavior change. |
| 11 | + (WebCore::getBorderRadiusCornerValue): Ditto. |
| 12 | + (WebCore::lineHeightFromStyle): Use isPercentNotCalculated() before code |
| 13 | + that calls percent(), which won't work for a calculated length. |
| 14 | + |
| 15 | + * css/DeprecatedStyleBuilder.cpp: |
| 16 | + (WebCore::ApplyPropertyBorderRadius::applyValue): Use isNegative and isZero rather |
| 17 | + than calling value() unconditionally. Should make calculated values work better. |
| 18 | + |
| 19 | + * html/HTMLPlugInImageElement.cpp: |
| 20 | + (WebCore::is100Percent): Use isPercentNotCalculated() before code |
| 21 | + that calls percent(), which won't work for a calculated length. |
| 22 | + |
| 23 | + * platform/Length.cpp: |
| 24 | + (WebCore::CalculationValueMap::deref): Use adoptRef here instead of calling deref |
| 25 | + immediately, so the deref will happen after calling remove. This makes the code |
| 26 | + work properly even if it's reentered inside the calculation value's destructor. |
| 27 | + |
| 28 | + * platform/Length.h: |
| 29 | + (WebCore::Length::percent): Change assert to isPercentNotCalculated, since the |
| 30 | + value function this calls only works for non-calculated values anyway. |
| 31 | + (WebCore::Length::isPercentNotCalculated): Added. |
| 32 | + (WebCore::Length::isPercent): Changed to call isPercentNotCalculated. |
| 33 | + (WebCore::Length::isSpecified): Changed to call isPercent. |
| 34 | + |
| 35 | + * platform/graphics/transforms/TranslateTransformOperation.h: |
| 36 | + (WebCore::TranslateTransformOperation::apply): Use isPercentNotCalculated() |
| 37 | + instead of type() == Percent; no behavior change. |
| 38 | + |
| 39 | + * rendering/AutoTableLayout.cpp: |
| 40 | + (WebCore::AutoTableLayout::recalcColumn): Use isPercentNotCalculated() |
| 41 | + before code that calls value() or percent(), which won't work for a calculated length. |
| 42 | + (WebCore::AutoTableLayout::computeIntrinsicLogicalWidths): Ditto. |
| 43 | + (WebCore::AutoTableLayout::calcEffectiveLogicalWidth): Ditto. |
| 44 | + (WebCore::AutoTableLayout::layout): Ditto. |
| 45 | + * rendering/FixedTableLayout.cpp: |
| 46 | + (WebCore::FixedTableLayout::layout): Ditto. |
| 47 | + * rendering/RenderBoxModelObject.cpp: |
| 48 | + (WebCore::RenderBoxModelObject::calculateImageIntrinsicDimensions): Ditto. |
| 49 | + * rendering/RenderTableSection.cpp: |
| 50 | + (WebCore::updateLogicalHeightForCell): Ditto. |
| 51 | + (WebCore::RenderTableSection::distributeExtraLogicalHeightToPercentRows): Ditto. |
| 52 | + (WebCore::RenderTableSection::distributeExtraLogicalHeightToRows): Ditto. |
| 53 | + |
| 54 | + * rendering/style/RenderStyle.cpp: |
| 55 | + (WebCore::requireTransformOrigin): Use modern for loop. Also marked function static, |
| 56 | + since it's private to this file. |
| 57 | + (WebCore::RenderStyle::applyTransform): Use isPercentNotCalculated() instead of |
| 58 | + type() == Percent; no behavior change. Also use a modern for loop and auto& to avoid |
| 59 | + a really long type name. |
| 60 | + |
| 61 | + * rendering/svg/RenderSVGRoot.cpp: |
| 62 | + (WebCore::RenderSVGRoot::computeIntrinsicRatioInformation): Use isPercentNotCalculated() |
| 63 | + before code that calls percent(), which won't work for a calculated length. |
| 64 | + |
| 65 | + * platform/Length.h: |
| 66 | + (WebCore::Length::percent): |
| 67 | + (WebCore::Length::isPercentNotCalculated): |
| 68 | + (WebCore::Length::isPercent): |
| 69 | + (WebCore::Length::isSpecified): |
| 70 | + * platform/graphics/transforms/TranslateTransformOperation.h: |
| 71 | + (WebCore::TranslateTransformOperation::apply): |
| 72 | + * rendering/AutoTableLayout.cpp: |
| 73 | + (WebCore::AutoTableLayout::recalcColumn): |
| 74 | + (WebCore::AutoTableLayout::computeIntrinsicLogicalWidths): |
| 75 | + (WebCore::AutoTableLayout::calcEffectiveLogicalWidth): |
| 76 | + (WebCore::AutoTableLayout::layout): |
| 77 | + * rendering/FixedTableLayout.cpp: |
| 78 | + (WebCore::FixedTableLayout::layout): |
| 79 | + * rendering/RenderBoxModelObject.cpp: |
| 80 | + (WebCore::RenderBoxModelObject::calculateImageIntrinsicDimensions): |
| 81 | + * rendering/RenderTableSection.cpp: |
| 82 | + (WebCore::updateLogicalHeightForCell): |
| 83 | + (WebCore::RenderTableSection::distributeExtraLogicalHeightToPercentRows): |
| 84 | + (WebCore::RenderTableSection::distributeExtraLogicalHeightToRows): |
| 85 | + * rendering/style/RenderStyle.cpp: |
| 86 | + (WebCore::requireTransformOrigin): |
| 87 | + (WebCore::RenderStyle::applyTransform): |
| 88 | + * rendering/svg/RenderSVGRoot.cpp: |
| 89 | + (WebCore::RenderSVGRoot::computeIntrinsicRatioInformation): |
| 90 | + |
1 | 91 | 2014-04-08 Xabier Rodriguez Calvar <calvaris@igalia.com> |
2 | 92 |
|
3 | 93 | [GTK] Remove media controls dead code |
|
0 commit comments