Changeset 17585 in webkit
- Timestamp:
- Nov 3, 2006, 4:35:26 PM (18 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 4 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r17584 r17585 1 2006-11-03 Adele Peterson <adele@apple.com> 2 3 Reviewed by Oliver. 4 5 Removed DeprecatedRenderSelect and ListBox classes. 6 7 * WebCore.xcodeproj/project.pbxproj: 8 * css/html4.css: 9 * html/HTMLOptionElement.h: 10 * html/HTMLSelectElement.cpp: 11 (WebCore::HTMLSelectElement::recalcStyle): 12 (WebCore::HTMLSelectElement::isKeyboardFocusable): 13 (WebCore::HTMLSelectElement::isMouseFocusable): 14 (WebCore::HTMLSelectElement::createRenderer): 15 (WebCore::HTMLSelectElement::setRecalcListItems): 16 (WebCore::HTMLSelectElement::notifyOptionSelected): 17 (WebCore::HTMLSelectElement::defaultEventHandler): 18 (WebCore::HTMLSelectElement::listBoxDefaultEventHandler): 19 (WebCore::HTMLSelectElement::updateListBoxSelection): 20 * html/HTMLSelectElement.h: 21 * platform/ListBox.h: Removed. 22 * platform/mac/FontCacheMac.mm: 23 * platform/mac/ListBoxMac.mm: Removed. 24 * platform/win/TemporaryLinkStubs.cpp: 25 * rendering/DeprecatedRenderSelect.cpp: Removed. 26 * rendering/DeprecatedRenderSelect.h: Removed. 27 1 28 2006-11-03 Maciej Stachowiak <mjs@apple.com> 2 29 -
trunk/WebCore/WebCore.xcodeproj/project.pbxproj
r17582 r17585 1545 1545 93F1996308245E59001E9ABC /* SSLKeyGenerator.h in Headers */ = {isa = PBXBuildFile; fileRef = F587866202DE3B1101EA4122 /* SSLKeyGenerator.h */; }; 1546 1546 93F1996B08245E59001E9ABC /* TextField.h in Headers */ = {isa = PBXBuildFile; fileRef = F587869802DE3B8601EA4122 /* TextField.h */; }; 1547 93F1996C08245E59001E9ABC /* ListBox.h in Headers */ = {isa = PBXBuildFile; fileRef = F587851302DE375901EA4122 /* ListBox.h */; };1548 1547 93F1996D08245E59001E9ABC /* DeprecatedPtrListImpl.h in Headers */ = {isa = PBXBuildFile; fileRef = F587851502DE375901EA4122 /* DeprecatedPtrListImpl.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1549 1548 93F1996E08245E59001E9ABC /* LoaderFunctions.h in Headers */ = {isa = PBXBuildFile; fileRef = F587851702DE375901EA4122 /* LoaderFunctions.h */; }; … … 1585 1584 93F19A3108245E59001E9ABC /* LoaderFunctionsMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = F587850302DE375901EA4122 /* LoaderFunctionsMac.mm */; }; 1586 1585 93F19A3A08245E59001E9ABC /* TextFieldMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = F587851202DE375901EA4122 /* TextFieldMac.mm */; }; 1587 93F19A3B08245E59001E9ABC /* ListBoxMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = F587851402DE375901EA4122 /* ListBoxMac.mm */; };1588 1586 93F19A3C08245E59001E9ABC /* DeprecatedPtrListImpl.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F587851602DE375901EA4122 /* DeprecatedPtrListImpl.cpp */; }; 1589 1587 93F19A3F08245E59001E9ABC /* WebCoreTextField.mm in Sources */ = {isa = PBXBuildFile; fileRef = F587851C02DE375901EA4122 /* WebCoreTextField.mm */; }; … … 2277 2275 ABDDFE790A5C6E7000A3E11D /* RenderMenuList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = ABDDFE730A5C6E6F00A3E11D /* RenderMenuList.cpp */; }; 2278 2276 ABDDFE7A0A5C6E7000A3E11D /* RenderMenuList.h in Headers */ = {isa = PBXBuildFile; fileRef = ABDDFE740A5C6E7000A3E11D /* RenderMenuList.h */; }; 2279 ABE7B5230A489F830031881C /* DeprecatedRenderSelect.cpp in Sources */ = {isa = PBXBuildFile; fileRef = ABE7B5210A489F830031881C /* DeprecatedRenderSelect.cpp */; };2280 ABE7B5240A489F830031881C /* DeprecatedRenderSelect.h in Headers */ = {isa = PBXBuildFile; fileRef = ABE7B5220A489F830031881C /* DeprecatedRenderSelect.h */; };2281 2277 B20111070AB7740500DB0E68 /* JSSVGAElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B20111050AB7740500DB0E68 /* JSSVGAElement.cpp */; }; 2282 2278 B20111080AB7740500DB0E68 /* JSSVGAElement.h in Headers */ = {isa = PBXBuildFile; fileRef = B20111060AB7740500DB0E68 /* JSSVGAElement.h */; }; … … 5127 5123 ABDDFE730A5C6E6F00A3E11D /* RenderMenuList.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = RenderMenuList.cpp; sourceTree = "<group>"; }; 5128 5124 ABDDFE740A5C6E7000A3E11D /* RenderMenuList.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = RenderMenuList.h; sourceTree = "<group>"; }; 5129 ABE7B5210A489F830031881C /* DeprecatedRenderSelect.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = DeprecatedRenderSelect.cpp; sourceTree = "<group>"; };5130 ABE7B5220A489F830031881C /* DeprecatedRenderSelect.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = DeprecatedRenderSelect.h; sourceTree = "<group>"; };5131 5125 B20111050AB7740500DB0E68 /* JSSVGAElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSSVGAElement.cpp; sourceTree = "<group>"; }; 5132 5126 B20111060AB7740500DB0E68 /* JSSVGAElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSSVGAElement.h; sourceTree = "<group>"; }; … … 5736 5730 F587850302DE375901EA4122 /* LoaderFunctionsMac.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = LoaderFunctionsMac.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 5737 5731 F587851202DE375901EA4122 /* TextFieldMac.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = TextFieldMac.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 5738 F587851302DE375901EA4122 /* ListBox.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = ListBox.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };5739 F587851402DE375901EA4122 /* ListBoxMac.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ListBoxMac.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };5740 5732 F587851502DE375901EA4122 /* DeprecatedPtrListImpl.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = DeprecatedPtrListImpl.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 5741 5733 F587851602DE375901EA4122 /* DeprecatedPtrListImpl.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DeprecatedPtrListImpl.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; … … 6431 6423 6593923909AE435C002C531F /* KURLMac.mm */, 6432 6424 9352084409BD43B900F2038D /* Language.mm */, 6433 F587851402DE375901EA4122 /* ListBoxMac.mm */,6434 6425 06E81EEB0AB5DA9700C87837 /* LocalCurrentGraphicsContext.mm */, 6435 6426 06E81ED60AB5D5E900C87837 /* LocalCurrentGraphicsContext.h */, … … 8578 8569 6593923609AE4346002C531F /* KURL.h */, 8579 8570 85EC9AF90A71A2C600EEEAED /* Language.h */, 8580 F587851302DE375901EA4122 /* ListBox.h */,8581 8571 935207BD09BD410A00F2038D /* LocalizedStrings.h */, 8582 8572 A8239DFE09B3CF8A00B60641 /* Logging.cpp */, … … 8833 8823 9392F1450AD1860C00691BD4 /* CounterResetNode.h */, 8834 8824 BCEA4817097D93020094C9E4 /* DataRef.h */, 8835 ABE7B5210A489F830031881C /* DeprecatedRenderSelect.cpp */,8836 ABE7B5220A489F830031881C /* DeprecatedRenderSelect.h */,8837 8825 BC92F1DB0A40AEA300AC0746 /* DeprecatedSlider.cpp */, 8838 8826 BC92F1DC0A40AEA300AC0746 /* DeprecatedSlider.h */, … … 9138 9126 93F1996308245E59001E9ABC /* SSLKeyGenerator.h in Headers */, 9139 9127 93F1996B08245E59001E9ABC /* TextField.h in Headers */, 9140 93F1996C08245E59001E9ABC /* ListBox.h in Headers */,9141 9128 93F1996D08245E59001E9ABC /* DeprecatedPtrListImpl.h in Headers */, 9142 9129 93F1996E08245E59001E9ABC /* LoaderFunctions.h in Headers */, … … 9808 9795 85031B4F0A44EFC700F992E0 /* UIEventWithKeyState.h in Headers */, 9809 9796 85031B510A44EFC700F992E0 /* WheelEvent.h in Headers */, 9810 ABE7B5240A489F830031881C /* DeprecatedRenderSelect.h in Headers */,9811 9797 DB23C2CC0A508D29002489EB /* IndentOutdentCommand.h in Headers */, 9812 9798 BCCD74DC0A4C8D35005FDA6D /* HTMLViewSourceDocument.h in Headers */, … … 10579 10565 productRefGroup = 034768DFFF38A50411DB9C8B /* Products */; 10580 10566 projectDirPath = ""; 10581 projectRoot = "";10582 10567 targets = ( 10583 10568 93F198A508245E59001E9ABC /* WebCore */, … … 10671 10656 93F19A3108245E59001E9ABC /* LoaderFunctionsMac.mm in Sources */, 10672 10657 93F19A3A08245E59001E9ABC /* TextFieldMac.mm in Sources */, 10673 93F19A3B08245E59001E9ABC /* ListBoxMac.mm in Sources */,10674 10658 93F19A3C08245E59001E9ABC /* DeprecatedPtrListImpl.cpp in Sources */, 10675 10659 93F19A3F08245E59001E9ABC /* WebCoreTextField.mm in Sources */, … … 11301 11285 85031B4D0A44EFC700F992E0 /* UIEvent.cpp in Sources */, 11302 11286 85031B500A44EFC700F992E0 /* WheelEvent.cpp in Sources */, 11303 ABE7B5230A489F830031881C /* DeprecatedRenderSelect.cpp in Sources */,11304 11287 51F11E150A48C2920034A24E /* SQLTransaction.cpp in Sources */, 11305 11288 DB23C2CB0A508D29002489EB /* IndentOutdentCommand.cpp in Sources */, -
trunk/WebCore/css/html4.css
r17225 r17585 424 424 select[multiple], 425 425 select[size][multiple] { 426 /* FIXME: If we need to switch back to the old listbox implementation, switch the commented style blocks here */427 428 /* Old listbox appearance */429 /*430 -webkit-appearance: none;431 -webkit-box-align: initial;432 box-sizing: initial;433 color: initial;434 border: initial;435 background-color: initial;436 */437 438 /* New listbox appearance */439 426 -webkit-appearance: listbox; 440 427 -webkit-box-align: start; -
trunk/WebCore/html/HTMLOptionElement.h
r16663 r17585 33 33 class HTMLFormElement; 34 34 class MappedAttribute; 35 class DeprecatedRenderSelect;36 35 37 36 class HTMLOptionElement : public HTMLGenericFormElement 38 37 { 39 friend class DeprecatedRenderSelect;40 38 friend class HTMLSelectElement; 41 39 friend class RenderMenuList; -
trunk/WebCore/html/HTMLSelectElement.cpp
r17500 r17585 30 30 #include "CSSPropertyNames.h" 31 31 #include "Document.h" 32 #include "DeprecatedRenderSelect.h"33 32 #include "Event.h" 34 33 #include "EventNames.h" … … 99 98 if (usesMenuList()) 100 99 static_cast<RenderMenuList*>(renderer())->setOptionsChanged(true); 101 else if (renderer() && renderer()->isListBox())100 else 102 101 static_cast<RenderListBox*>(renderer())->setOptionsChanged(true); 103 else104 static_cast<DeprecatedRenderSelect*>(renderer())->setOptionsChanged(true);105 102 } 106 103 … … 346 343 bool HTMLSelectElement::isKeyboardFocusable() const 347 344 { 348 if (renderer() && (usesMenuList() || renderer()->isListBox()))345 if (renderer()) 349 346 return isFocusable(); 350 347 return HTMLGenericFormElement::isKeyboardFocusable(); … … 353 350 bool HTMLSelectElement::isMouseFocusable() const 354 351 { 355 if (renderer() && (usesMenuList() || renderer()->isListBox()))352 if (renderer()) 356 353 return isFocusable(); 357 354 return HTMLGenericFormElement::isMouseFocusable(); … … 362 359 if (usesMenuList()) 363 360 return new (arena) RenderMenuList(this); 364 #if PLATFORM(MAC)365 // FIXME: Remove this when DeprecatedRenderSelect is no longer needed.366 if (style->appearance() == ListboxAppearance)367 return new (arena) RenderListBox(this);368 return new (arena) DeprecatedRenderSelect(this);369 #endif370 361 return new (arena) RenderListBox(this); 371 362 } … … 487 478 if (usesMenuList()) 488 479 static_cast<RenderMenuList*>(renderer())->setOptionsChanged(true); 489 else if (renderer() && renderer()->isListBox())480 else 490 481 static_cast<RenderListBox*>(renderer())->setOptionsChanged(true); 491 else492 static_cast<DeprecatedRenderSelect*>(renderer())->setOptionsChanged(true);493 482 } 494 483 setChanged(); … … 523 512 deselectItems(selectedOption); 524 513 525 if (renderer() && !usesMenuList()) { 526 if (renderer()->isListBox()) 527 static_cast<RenderListBox*>(renderer())->setSelectionChanged(true); 528 else 529 static_cast<DeprecatedRenderSelect*>(renderer())->setSelectionChanged(true); 530 } 531 514 if (renderer() && !usesMenuList()) 515 static_cast<RenderListBox*>(renderer())->setSelectionChanged(true); 516 532 517 setChanged(true); 533 518 } … … 548 533 if (usesMenuList()) 549 534 menuListDefaultEventHandler(evt); 550 else if (renderer() && renderer()->isListBox() && renderer()->isListBox())535 else 551 536 listBoxDefaultEventHandler(evt); 552 537 … … 628 613 void HTMLSelectElement::listBoxDefaultEventHandler(Event* evt) 629 614 { 615 if (!renderer()) 616 return; 617 630 618 if (evt->type() == mousedownEvent) { 631 619 MouseEvent* mEvt = static_cast<MouseEvent*>(evt); … … 743 731 void HTMLSelectElement::updateListBoxSelection(bool deselectOtherOptions) 744 732 { 733 ASSERT(renderer() && renderer()->isListBox()); 734 745 735 unsigned start; 746 736 unsigned end; … … 763 753 } 764 754 } 765 if (renderer()->isListBox()) 766 755 756 static_cast<RenderListBox*>(renderer())->setSelectionChanged(true); 767 757 } 768 758 -
trunk/WebCore/html/HTMLSelectElement.h
r17498 r17585 35 35 namespace WebCore { 36 36 37 class DeprecatedRenderSelect;38 37 class HTMLOptionElement; 39 38 class HTMLOptionsCollection; … … 41 40 42 41 class HTMLSelectElement : public HTMLGenericFormElement { 43 friend class DeprecatedRenderSelect; 42 44 43 public: 45 44 HTMLSelectElement(Document*, HTMLFormElement* = 0); -
trunk/WebCore/platform/mac/FontCacheMac.mm
r16250 r17585 33 33 #import "FontData.h" 34 34 #import "FontPlatformData.h" 35 #import "ListBox.h"36 35 #import "WebCoreStringTruncator.h" 37 36 #import "WebCoreSystemInterface.h" -
trunk/WebCore/platform/win/TemporaryLinkStubs.cpp
r17410 r17585 37 37 #include "FileChooser.h" 38 38 #include "Font.h" 39 #include "ListBox.h"40 39 #include "IntPoint.h" 41 40 #include "Widget.h" … … 124 123 double Slider::value() const { notImplemented(); return 0; } 125 124 126 void ListBox::setSelected(int,bool) { notImplemented(); }127 IntSize ListBox::sizeForNumberOfLines(int) const { notImplemented(); return IntSize(); }128 bool ListBox::isSelected(int) const { notImplemented(); return 0; }129 void ListBox::appendItem(DeprecatedString const&,ListBoxItemType,bool) { notImplemented(); }130 void ListBox::doneAppendingItems() { notImplemented(); }131 void ListBox::setWritingDirection(TextDirection) { notImplemented(); }132 void ListBox::setEnabled(bool) { notImplemented(); }133 void ListBox::clear() { notImplemented(); }134 bool ListBox::checksDescendantsForFocus() const { notImplemented(); return 0; }135 136 125 FileChooser::FileChooser(Document*, RenderFileUploadControl*) { notImplemented(); } 137 126 FileChooser::~FileChooser() { notImplemented(); } … … 143 132 144 133 Widget::FocusPolicy Slider::focusPolicy() const { notImplemented(); return NoFocus; } 145 Widget::FocusPolicy ListBox::focusPolicy() const { notImplemented(); return NoFocus; }146 134 Widget::FocusPolicy TextField::focusPolicy() const { notImplemented(); return NoFocus; } 147 135 … … 349 337 void Scrollbar::setProportion(int, int) { } 350 338 351 ListBox::ListBox() { }352 ListBox::~ListBox() { }353 void ListBox::setSelectionMode(ListBox::SelectionMode) { }354 void ListBox::setFont(WebCore::Font const&) { }355 356 339 Color focusRingColor() { return 0xFF0000FF; } 357 340 void setFocusRingColorChangeFunction(void (*)()) { }
Note:
See TracChangeset
for help on using the changeset viewer.