Changeset 151799 in webkit
- Timestamp:
- Jun 20, 2013 1:46:21 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 deleted
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r151798 r151799 1 2013-06-20 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r151451. 4 http://trac.webkit.org/changeset/151451 5 https://bugs.webkit.org/show_bug.cgi?id=117848 6 7 "Broke quite a lot of sites" (Requested by rhogan on #webkit). 8 9 * fast/forms/onselect-textfield-expected.txt: 10 * fast/replaced/width-and-height-of-positioned-replaced-elements-expected.png: Removed. 11 * fast/replaced/width-and-height-of-positioned-replaced-elements-expected.txt: Removed. 12 * fast/replaced/width-and-height-of-positioned-replaced-elements.html: Removed. 13 * platform/mac-wk2/fast/replaced/width-and-height-of-positioned-replaced-elements-expected.txt: Removed. 14 * platform/mac/fast/forms/button-positioned-expected.txt: 15 * platform/mac/fast/forms/input-appearance-preventDefault-expected.txt: 16 * platform/mac/fast/replaced/width-and-height-of-positioned-replaced-elements-expected.txt: Removed. 17 * platform/qt/fast/forms/button-positioned-expected.txt: 18 * platform/qt/fast/forms/input-appearance-preventDefault-expected.txt: 19 1 20 2013-06-20 Commit Queue <commit-queue@webkit.org> 2 21 -
trunk/LayoutTests/fast/forms/onselect-textfield-expected.txt
r151798 r151799 10 10 Double clicking to make selection for text field 11 11 onselect fired for text field 12 After double clicking: text field selection start: 0 end: 512 After double clicking: text field selection start: 6 end: 10 13 13 14 14 Calling blur on text field 15 After blur: text field selection start: 0 end: 515 After blur: text field selection start: 6 end: 10 16 16 17 17 Calling focus on text field 18 After focus: text field selection start: 0 end: 518 After focus: text field selection start: 6 end: 10 19 19 -
trunk/LayoutTests/platform/mac/fast/forms/button-positioned-expected.txt
r151451 r151799 4 4 RenderBlock {HTML} at (0,0) size 800x600 5 5 RenderBody {BODY} at (8,8) size 784x584 6 layer at (10,10) size 1 70x157 RenderButton {BUTTON} at (10,10) size 1 70x15[bgcolor=#C0C0C0] [border: none (2px outset #C0C0C0) none (2px outset #C0C0C0)]8 RenderBlock (anonymous) at (8,2) size 1 54x139 RenderText {#text} at ( 8,0) size 138x1310 text run at ( 8,0) width 138: "This button is positioned."11 layer at (10,10) size 1 91x1812 RenderButton {INPUT} at (10,10) size 1 91x18 [bgcolor=#C0C0C0]13 RenderBlock (anonymous) at (8,2) size 1 75x1314 RenderText at ( 8,0) size 159x1315 text run at ( 8,0) width 159: "This button is also positioned"6 layer at (10,10) size 154x18 7 RenderButton {BUTTON} at (10,10) size 154x18 [bgcolor=#C0C0C0] [border: none (2px outset #C0C0C0) none (2px outset #C0C0C0)] 8 RenderBlock (anonymous) at (8,2) size 138x13 9 RenderText {#text} at (0,0) size 138x13 10 text run at (0,0) width 138: "This button is positioned." 11 layer at (10,10) size 175x18 12 RenderButton {INPUT} at (10,10) size 175x18 [bgcolor=#C0C0C0] 13 RenderBlock (anonymous) at (8,2) size 159x13 14 RenderText at (0,0) size 159x13 15 text run at (0,0) width 159: "This button is also positioned" -
trunk/LayoutTests/platform/mac/fast/forms/input-appearance-preventDefault-expected.txt
r151798 r151799 9 9 RenderText {#text} at (0,0) size 0x0 10 10 RenderText {#text} at (0,0) size 0x0 11 layer at (12,52) size 12 9x2512 RenderTextControl {INPUT} at (12,52) size 12 9x25[bgcolor=#FFFFFF] [border: (2px inset #000000)]13 layer at (15,5 8) size 123x13 scrollWidth 13014 RenderBlock {DIV} at (3, 6) size 123x1311 layer at (12,52) size 123x19 12 RenderTextControl {INPUT} at (12,52) size 123x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)] 13 layer at (15,55) size 117x13 scrollWidth 130 14 RenderBlock {DIV} at (3,3) size 117x13 15 15 RenderText {#text} at (0,0) size 129x13 16 16 text run at (0,0) width 129: "No caret should be here" -
trunk/LayoutTests/platform/qt/fast/forms/button-positioned-expected.txt
r151451 r151799 4 4 RenderBlock {HTML} at (0,0) size 800x600 5 5 RenderBody {BODY} at (8,8) size 784x584 6 layer at (10,10) size 1 74x297 RenderButton {BUTTON} at (10,10) size 1 74x29[bgcolor=#C0C0C0]8 RenderBlock (anonymous) at (6,6) size 1 62x199 RenderText {#text} at ( 6,0) size 150x1910 text run at ( 6,0) width 150: "This button is positioned."11 layer at (10,10) size 1 98x2912 RenderButton {INPUT} at (10,10) size 1 98x29[bgcolor=#C0C0C0]13 RenderBlock (anonymous) at (6,6) size 1 86x1914 RenderText at ( 6,0) size 174x1915 text run at ( 6,0) width 174: "This button is also positioned"6 layer at (10,10) size 162x31 7 RenderButton {BUTTON} at (10,10) size 162x31 [bgcolor=#C0C0C0] 8 RenderBlock (anonymous) at (6,6) size 150x19 9 RenderText {#text} at (0,0) size 150x19 10 text run at (0,0) width 150: "This button is positioned." 11 layer at (10,10) size 186x31 12 RenderButton {INPUT} at (10,10) size 186x31 [bgcolor=#C0C0C0] 13 RenderBlock (anonymous) at (6,6) size 174x19 14 RenderText at (0,0) size 174x19 15 text run at (0,0) width 174: "This button is also positioned" -
trunk/LayoutTests/platform/qt/fast/forms/input-appearance-preventDefault-expected.txt
r151798 r151799 9 9 RenderText {#text} at (0,0) size 0x0 10 10 RenderText {#text} at (0,0) size 0x0 11 layer at (12,52) size 19 6x2712 RenderTextControl {INPUT} at (12,52) size 19 6x2713 layer at (14,5 6) size 192x1914 RenderBlock {DIV} at (2, 4) size 192x1911 layer at (12,52) size 192x23 12 RenderTextControl {INPUT} at (12,52) size 192x23 13 layer at (14,54) size 188x19 14 RenderBlock {DIV} at (2,2) size 188x19 15 15 RenderText {#text} at (0,0) size 146x19 16 16 text run at (0,0) width 146: "No caret should be here" -
trunk/Source/WebCore/ChangeLog
r151798 r151799 1 2013-06-20 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r151451. 4 http://trac.webkit.org/changeset/151451 5 https://bugs.webkit.org/show_bug.cgi?id=117848 6 7 "Broke quite a lot of sites" (Requested by rhogan on #webkit). 8 9 * rendering/RenderBox.cpp: 10 (WebCore::RenderBox::computePositionedLogicalWidth): 11 (WebCore::RenderBox::computePositionedLogicalHeight): 12 * rendering/RenderBox.h: 13 (WebCore::RenderBox::intrinsicSize): 14 * rendering/RenderButton.h: 15 * rendering/RenderListBox.cpp: 16 (WebCore::RenderListBox::RenderListBox): 17 (WebCore::RenderListBox::computeLogicalHeight): 18 * rendering/RenderListBox.h: 19 * rendering/RenderMenuList.h: 20 * rendering/RenderReplaced.h: 21 * rendering/RenderTextControl.cpp: 22 (WebCore::RenderTextControl::RenderTextControl): 23 (WebCore::RenderTextControl::computeLogicalHeight): 24 * rendering/RenderTextControl.h: 25 1 26 2013-06-20 Commit Queue <commit-queue@webkit.org> 2 27 -
trunk/Source/WebCore/rendering/RenderBox.cpp
r151761 r151799 3055 3055 } 3056 3056 3057 static bool isReplacedElement(const RenderBox* child)3058 {3059 // FIXME: Bug 117267, we should make form control elements isReplaced too so that we can just check for that.3060 return child->isReplaced() || (child->node() && child->node()->isElementNode() && toElement(child->node())->isFormControlElement() && !child->isFieldset());3061 }3062 3063 3057 void RenderBox::computePositionedLogicalWidth(LogicalExtentComputedValues& computedValues, RenderRegion* region) const 3064 3058 { 3065 if (isReplaced Element(this)) {3059 if (isReplaced()) { 3066 3060 // FIXME: Positioned replaced elements inside a flow thread are not working properly 3067 3061 // with variable width regions (see https://bugs.webkit.org/show_bug.cgi?id=69896 ). … … 3405 3399 void RenderBox::computePositionedLogicalHeight(LogicalExtentComputedValues& computedValues) const 3406 3400 { 3407 if (isReplaced Element(this)) {3401 if (isReplaced()) { 3408 3402 computePositionedLogicalHeightReplaced(computedValues); 3409 3403 return; -
trunk/Source/WebCore/rendering/RenderBox.h
r151623 r151799 400 400 } 401 401 402 virtual LayoutSize intrinsicSize() const { return LayoutSize(); } 402 403 LayoutUnit intrinsicLogicalWidth() const { return style()->isHorizontalWritingMode() ? intrinsicSize().width() : intrinsicSize().height(); } 403 404 LayoutUnit intrinsicLogicalHeight() const { return style()->isHorizontalWritingMode() ? intrinsicSize().height() : intrinsicSize().width(); } … … 642 643 LayoutUnit viewLogicalHeightForPercentages() const; 643 644 644 virtual LayoutSize intrinsicSize() const { return LayoutSize(); }645 645 void computePositionedLogicalHeight(LogicalExtentComputedValues&) const; 646 646 void computePositionedLogicalWidthUsing(Length logicalWidth, const RenderBoxModelObject* containerBlock, TextDirection containerDirection, -
trunk/Source/WebCore/rendering/RenderButton.h
r151451 r151799 68 68 void timerFired(Timer<RenderButton>*); 69 69 70 virtual LayoutSize intrinsicSize() const OVERRIDE FINAL { return LayoutSize(maxPreferredLogicalWidth(), LayoutUnit()); }71 72 70 RenderTextFragment* m_buttonText; 73 71 RenderBlock* m_inner; -
trunk/Source/WebCore/rendering/RenderListBox.cpp
r151451 r151799 90 90 , m_optionsWidth(0) 91 91 , m_indexOffset(0) 92 , m_intrinsicLogicalHeight(0)93 92 { 94 93 ASSERT(element); … … 271 270 void RenderListBox::computeLogicalHeight(LayoutUnit, LayoutUnit logicalTop, LogicalExtentComputedValues& computedValues) const 272 271 { 273 m_intrinsicLogicalHeight = itemHeight() * size() - rowSpacing + borderAndPaddingHeight();274 RenderBox::computeLogicalHeight( m_intrinsicLogicalHeight, logicalTop, computedValues);272 LayoutUnit height = itemHeight() * size() - rowSpacing + borderAndPaddingHeight(); 273 RenderBox::computeLogicalHeight(height, logicalTop, computedValues); 275 274 } 276 275 -
trunk/Source/WebCore/rendering/RenderListBox.h
r151451 r151799 89 89 virtual void stopAutoscroll(); 90 90 91 virtual LayoutSize intrinsicSize() const OVERRIDE FINAL { return LayoutSize(maxPreferredLogicalWidth(), m_intrinsicLogicalHeight); }92 93 91 virtual bool shouldPanScroll() const { return true; } 94 92 virtual void panScroll(const IntPoint&); … … 152 150 int m_optionsWidth; 153 151 int m_indexOffset; 154 mutable LayoutUnit m_intrinsicLogicalHeight;155 152 156 153 RefPtr<Scrollbar> m_vBar; -
trunk/Source/WebCore/rendering/RenderMenuList.h
r151451 r151799 76 76 virtual const char* renderName() const { return "RenderMenuList"; } 77 77 78 virtual LayoutSize intrinsicSize() const OVERRIDE FINAL { return LayoutSize(maxPreferredLogicalWidth(), logicalHeight()); }79 78 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const OVERRIDE; 80 79 virtual void computePreferredLogicalWidths() OVERRIDE; -
trunk/Source/WebCore/rendering/RenderReplaced.h
r151451 r151799 44 44 virtual void layout(); 45 45 46 virtual LayoutSize intrinsicSize() const OVERRIDE FINAL{ return m_intrinsicSize; }46 virtual LayoutSize intrinsicSize() const OVERRIDE { return m_intrinsicSize; } 47 47 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, double& intrinsicRatio, bool& isPercentageIntrinsicSize) const; 48 48 -
trunk/Source/WebCore/rendering/RenderTextControl.cpp
r151798 r151799 39 39 RenderTextControl::RenderTextControl(Element* element) 40 40 : RenderBlock(element) 41 , m_intrinsicLogicalHeight(0)42 41 { 43 42 ASSERT(isHTMLTextFormControlElement(element)); … … 144 143 } 145 144 146 void RenderTextControl::computeLogicalHeight(LayoutUnit , LayoutUnit logicalTop, LogicalExtentComputedValues& computedValues) const145 void RenderTextControl::computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues& computedValues) const 147 146 { 148 147 HTMLElement* innerText = innerTextElement(); … … 150 149 if (RenderBox* innerTextBox = innerText->renderBox()) { 151 150 LayoutUnit nonContentHeight = innerTextBox->borderAndPaddingHeight() + innerTextBox->marginHeight(); 152 m_intrinsicLogicalHeight = computeControlLogicalHeight(innerTextBox->lineHeight(true, HorizontalLine, PositionOfInteriorLineBoxes), nonContentHeight) + borderAndPaddingHeight();151 logicalHeight = computeControlLogicalHeight(innerTextBox->lineHeight(true, HorizontalLine, PositionOfInteriorLineBoxes), nonContentHeight) + borderAndPaddingHeight(); 153 152 154 153 // We are able to have a horizontal scrollbar if the overflow style is scroll, or if its auto and there's no word wrap. 155 154 if ((isHorizontalWritingMode() && (style()->overflowX() == OSCROLL || (style()->overflowX() == OAUTO && innerText->renderer()->style()->overflowWrap() == NormalOverflowWrap))) 156 155 || (!isHorizontalWritingMode() && (style()->overflowY() == OSCROLL || (style()->overflowY() == OAUTO && innerText->renderer()->style()->overflowWrap() == NormalOverflowWrap)))) 157 m_intrinsicLogicalHeight += scrollbarThickness(); 158 } 159 RenderBox::computeLogicalHeight(m_intrinsicLogicalHeight, logicalTop, computedValues); 156 logicalHeight += scrollbarThickness(); 157 } 158 159 RenderBox::computeLogicalHeight(logicalHeight, logicalTop, computedValues); 160 160 } 161 161 -
trunk/Source/WebCore/rendering/RenderTextControl.h
r151451 r151799 82 82 83 83 virtual bool requiresForcedStyleRecalcPropagation() const { return true; } 84 85 virtual LayoutSize intrinsicSize() const OVERRIDE FINAL { return LayoutSize(maxPreferredLogicalWidth(), m_intrinsicLogicalHeight); }86 87 mutable LayoutUnit m_intrinsicLogicalHeight;88 84 }; 89 85
Note: See TracChangeset
for help on using the changeset viewer.