Changeset 82886 in webkit
- Timestamp:
- Apr 4, 2011 3:49:22 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r82880 r82886 1 2011-04-04 Chang Shu <cshu@webkit.org> 2 3 Reviewed by Ryosuke Niwa. 4 5 setContentEditable with true/false/inherit string is not working properly 6 https://bugs.webkit.org/show_bug.cgi?id=52058 7 8 Updated expected results after this patch fixes the set contenteditable issue. 9 10 * fast/dom/HTMLElement/set-false-expected.txt: 11 * fast/dom/HTMLElement/set-false.html: 12 * fast/dom/HTMLElement/set-inherit-parent-false-expected.txt: 13 * fast/dom/HTMLElement/set-inherit-parent-true-expected.txt: 14 * fast/dom/HTMLElement/set-true-expected.txt: 15 * fast/dom/HTMLElement/set-value-caseinsensitive-expected.txt: 16 1 17 2011-04-04 MORITA Hajime <morrita@google.com> 2 18 -
trunk/LayoutTests/fast/dom/HTMLElement/set-false-expected.txt
r76528 r82886 10 10 PASS document.getElementById("div1").getAttribute("contentEditable") is "false" 11 11 PASS document.getElementById("div1").contentEditable is "false" 12 FAIL document.getElementById("div1").isContentEditable should be false. Was true. 13 FIXME: setContentEditable with true/false/inherit string is not working properly. https://bugs.webkit.org/show_bug.cgi?id=52058 12 PASS document.getElementById("div1").isContentEditable is false 14 13 PASS window.getComputedStyle(div1, "").getPropertyValue("-webkit-user-modify") is "read-only" 15 14 PASS document.getElementById("p2").contentEditable is "false" -
trunk/LayoutTests/fast/dom/HTMLElement/set-false.html
r76528 r82886 22 22 shouldBe('document.getElementById("div1").contentEditable', '"false"'); 23 23 shouldBe('document.getElementById("div1").isContentEditable', 'false'); 24 debug("FIXME: setContentEditable with true/false/inherit string is not working properly. https://bugs.webkit.org/show_bug.cgi?id=52058");25 24 shouldBe('window.getComputedStyle(div1, "").getPropertyValue("-webkit-user-modify")', '"read-only"'); 26 25 -
trunk/LayoutTests/fast/dom/HTMLElement/set-inherit-parent-false-expected.txt
r76528 r82886 9 9 PASS document.getElementById("p").hasAttribute("contentEditable") is false 10 10 PASS document.getElementById("p").contentEditable is "inherit" 11 FAIL document.getElementById("p").isContentEditable should be false. Was true. 11 PASS document.getElementById("p").isContentEditable is false 12 12 FIXME: setContentEditable with true/false/inherit string is not working properly. https://bugs.webkit.org/show_bug.cgi?id=52058 13 13 PASS window.getComputedStyle(p, "").getPropertyValue("-webkit-user-modify") is "read-only" -
trunk/LayoutTests/fast/dom/HTMLElement/set-inherit-parent-true-expected.txt
r76528 r82886 9 9 PASS document.getElementById("p").hasAttribute("contentEditable") is false 10 10 PASS document.getElementById("p").contentEditable is "inherit" 11 FAIL document.getElementById("p").isContentEditable should be true. Was false. 11 PASS document.getElementById("p").isContentEditable is true 12 12 FIXME: setContentEditable with true/false/inherit string is not working properly. https://bugs.webkit.org/show_bug.cgi?id=52058 13 13 PASS window.getComputedStyle(p, "").getPropertyValue("-webkit-user-modify") is "read-write" -
trunk/LayoutTests/fast/dom/HTMLElement/set-true-expected.txt
r76528 r82886 10 10 PASS document.getElementById("div1").getAttribute("contentEditable") is "true" 11 11 PASS document.getElementById("div1").contentEditable is "true" 12 FAIL document.getElementById("div1").isContentEditable should be true. Was false. 12 PASS document.getElementById("div1").isContentEditable is true 13 13 FIXME: setContentEditable with true/false/inherit string is not working properly. https://bugs.webkit.org/show_bug.cgi?id=52058 14 14 PASS window.getComputedStyle(div1, "").getPropertyValue("-webkit-user-modify") is "read-write" -
trunk/LayoutTests/fast/dom/HTMLElement/set-value-caseinsensitive-expected.txt
r77985 r82886 12 12 PASS document.getElementById("div1").getAttribute("contentEditable") is "true" 13 13 PASS document.getElementById("div1").contentEditable is "true" 14 FAIL document.getElementById("div1").isContentEditable should be true. Was false. 14 PASS document.getElementById("div1").isContentEditable is true 15 15 FIXME: isContentEditable is not working properly. Related to https://bugs.webkit.org/show_bug.cgi?id=52058 16 16 PASS window.getComputedStyle(div1, "").getPropertyValue("-webkit-user-modify") is "read-write" -
trunk/Source/WebCore/ChangeLog
r82882 r82886 1 2011-04-04 Chang Shu <cshu@webkit.org> 2 3 Reviewed by Ryosuke Niwa. 4 5 setContentEditable with true/false/inherit string is not working properly 6 https://bugs.webkit.org/show_bug.cgi?id=52058 7 8 Move isContentEditable from HTMLElement to Node. Thus, Node provides two functions for 9 checking editability: rendererIsEditable and isContentEdiable. The former is a fast path, 10 which does NOT trigger layout and only checks the render style of usermodify. The latter 11 updates the layout first to make sure the render style syncs with DOM contenteditable 12 attribute. Certain call sites that need to call isContentEditable rather than rendererIsEditable 13 are also updated in the patch. But a complete fix will follow up in bug 57244. 14 15 This patch fixes all the failed layout tests related to set contenteditable. 16 17 * accessibility/AccessibilityRenderObject.cpp: 18 (WebCore::AccessibilityRenderObject::isReadOnly): 19 * dom/Node.cpp: 20 (WebCore::Node::isContentEditable): 21 (WebCore::Node::shouldUseInputMethod): 22 * dom/Node.h: 23 * html/HTMLElement.cpp: 24 * html/HTMLElement.h: 25 1 26 2011-04-04 Roland Steiner <rolandsteiner@chromium.org> 2 27 -
trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp
r82459 r82886 662 662 663 663 HTMLElement* body = document->body(); 664 if (body && body-> rendererIsEditable())664 if (body && body->isContentEditable()) 665 665 return false; 666 666 -
trunk/Source/WebCore/dom/Node.cpp
r82882 r82886 710 710 } 711 711 712 bool Node::isContentEditable() const 713 { 714 document()->updateLayoutIgnorePendingStylesheets(); 715 return rendererIsEditable(Editable); 716 } 717 712 718 bool Node::rendererIsEditable(EditableLevel editableLevel) const 713 719 { … … 739 745 bool Node::shouldUseInputMethod() const 740 746 { 741 return rendererIsEditable();747 return isContentEditable(); 742 748 } 743 749 -
trunk/Source/WebCore/dom/Node.h
r82127 r82886 320 320 virtual bool isMouseFocusable() const; 321 321 322 #if PLATFORM(MAC) 323 // Objective-C extensions 324 bool isContentEditable() const { return rendererIsEditable(Editable); } 325 #endif 322 bool isContentEditable() const; 323 326 324 bool rendererIsEditable() const { return rendererIsEditable(Editable); } 327 325 bool rendererIsRichlyEditable() const { return rendererIsEditable(RichlyEditable); } -
trunk/Source/WebCore/html/HTMLElement.cpp
r81965 r82886 658 658 } 659 659 660 bool HTMLElement::isContentEditable() const661 {662 return rendererIsEditable();663 }664 665 660 String HTMLElement::contentEditable() const 666 661 { -
trunk/Source/WebCore/html/HTMLElement.h
r81965 r82886 57 57 58 58 virtual bool supportsFocus() const; 59 60 bool isContentEditable() const;61 59 62 60 String contentEditable() const; -
trunk/Source/WebKit/chromium/ChangeLog
r82870 r82886 1 2011-04-04 Chang Shu <cshu@webkit.org> 2 3 Reviewed by Ryosuke Niwa. 4 5 setContentEditable with true/false/inherit string is not working properly 6 https://bugs.webkit.org/show_bug.cgi?id=52058 7 8 Move isContentEditable from HTMLElement to Node. WebKit should only access isContentEditable 9 as rendererIsEditable is for WebCore internal use. 10 11 * src/WebNode.cpp: 12 (WebKit::WebNode::isContentEditable): 13 * src/WebViewImpl.cpp: 14 (WebKit::WebViewImpl::setFocus): 15 (WebKit::WebViewImpl::setComposition): 16 (WebKit::WebViewImpl::confirmComposition): 17 1 18 2011-04-04 Alexey Proskuryakov <ap@apple.com> 2 19 -
trunk/Source/WebKit/chromium/src/WebNode.cpp
r81965 r82886 153 153 bool WebNode::isContentEditable() const 154 154 { 155 return m_private-> rendererIsEditable();155 return m_private->isContentEditable(); 156 156 } 157 157 -
trunk/Source/WebKit/chromium/src/WebViewImpl.cpp
r82870 r82886 1269 1269 if (element->isTextFormControl()) 1270 1270 element->updateFocusAppearance(true); 1271 else if (focusedNode-> rendererIsEditable()) {1271 else if (focusedNode->isContentEditable()) { 1272 1272 // updateFocusAppearance() selects all the text of 1273 1273 // contentseditable DIVs. So we set the selection explicitly … … 1331 1331 if (range) { 1332 1332 const Node* node = range->startContainer(); 1333 if (!node || !node-> rendererIsEditable())1333 if (!node || !node->isContentEditable()) 1334 1334 return false; 1335 1335 } … … 1380 1380 if (range) { 1381 1381 const Node* node = range->startContainer(); 1382 if (!node || !node-> rendererIsEditable())1382 if (!node || !node->isContentEditable()) 1383 1383 return false; 1384 1384 } -
trunk/Source/WebKit/haiku/ChangeLog
r82580 r82886 1 2011-04-04 Chang Shu <cshu@webkit.org> 2 3 Reviewed by Ryosuke Niwa. 4 5 setContentEditable with true/false/inherit string is not working properly 6 https://bugs.webkit.org/show_bug.cgi?id=52058 7 8 Move isContentEditable from HTMLElement to Node. WebKit should only access isContentEditable 9 as rendererIsEditable is for WebCore internal use. 10 11 * WebCoreSupport/EditorClientHaiku.cpp: 12 (WebCore::EditorClientHaiku::handleKeyboardEvent): 13 1 14 2011-03-31 Evan Martin <evan@chromium.org> 2 15 -
trunk/Source/WebKit/haiku/WebCoreSupport/EditorClientHaiku.cpp
r81965 r82886 255 255 return; 256 256 257 if (start-> rendererIsEditable()) {257 if (start->isContentEditable()) { 258 258 switch (kevent->windowsVirtualKeyCode()) { 259 259 case VK_BACK: -
trunk/Source/WebKit/qt/ChangeLog
r82676 r82886 1 2011-04-04 Chang Shu <cshu@webkit.org> 2 3 Reviewed by Ryosuke Niwa. 4 5 setContentEditable with true/false/inherit string is not working properly 6 https://bugs.webkit.org/show_bug.cgi?id=52058 7 8 Move isContentEditable from HTMLElement to Node. WebKit should only access isContentEditable 9 as rendererIsEditable is for WebCore internal use. 10 11 * WebCoreSupport/EditorClientQt.cpp: 12 (WebCore::EditorClientQt::handleKeyboardEvent): 13 1 14 2011-04-01 Carol Szabo <carol.szabo@nokia.com> 2 15 -
trunk/Source/WebKit/qt/WebCoreSupport/EditorClientQt.cpp
r82243 r82886 421 421 422 422 // FIXME: refactor all of this to use Actions or something like them 423 if (start-> rendererIsEditable()) {423 if (start->isContentEditable()) { 424 424 bool doSpatialNavigation = false; 425 425 if (isSpatialNavigationEnabled(frame)) {
Note: See TracChangeset
for help on using the changeset viewer.