1. 27 Feb, 2006 25 commits
    • eseidel's avatar
      2006-02-27 Eric Seidel <eseidel@apple.com> · 4927d4b9
      eseidel authored
              Reviewed by hyatt.
      
              Fix a bunch more link errors in the win32 build, mostly by adding stubs.
      
              * WebCore.vcproj/WebCore/WebCore.vcproj: add JSXMLHttpRequest and PlugInInfoStore
              * WebCore.vcproj/WebCore/build-generated-files.sh: update for JSXMLHttpRequest
              * khtml/ecma/JSXMLHttpRequest.cpp:
              (KJS::JSXMLHttpRequest::getValueProperty): fix switch to compile
              * platform/PlugInInfoStore.h:
              * platform/mac/PlugInInfoStoreMac.mm:
              * platform/win/TemporaryLinkStubs.cpp: add a bunch of stubs.
              (WebCore::TransferJob::errorText):
              (WebCore::TransferJob::isErrorPage):
              (WebCore::Widget::hide):
              (PlugInInfoStore::createPluginInfoForPluginAtIndex):
              (PlugInInfoStore::pluginCount):
              (WebCore::refreshPlugins):
              (QFont::QFont):
              (QFont::~QFont):
              (QFont::italic):
              (QFont::weight):
              (QFontMetrics::QFontMetrics):
              (QFontMetrics::~QFontMetrics):
              (QFontMetrics::xHeight):
              (Widget::setActiveWindow):
              (WebCore::ScrollView::contentsX):
              (WebCore::ScrollView::contentsY):
              (WebCore::ScrollView::contentsHeight):
              (WebCore::ScrollView::contentsWidth):
              (WebCore::ScrollView::visibleHeight):
              (WebCore::ScrollView::visibleWidth):
              (WebCore::ScrollView::hScrollBarMode):
              (WebCore::ScrollView::vScrollBarMode):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13026 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4927d4b9
    • eseidel's avatar
      2006-02-27 Eric Seidel <eseidel@apple.com> · de63e678
      eseidel authored
              Reviewed by timo.
      
              Add missing include to fix build.
      
              * platform/win/TemporaryLinkStubs.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13023 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      de63e678
    • eseidel's avatar
      2006-02-25 Eric Seidel <eseidel@apple.com> · a992df03
      eseidel authored
              Reviewed by ggaren.
              
              Test new PlugInInfoStore class (used to be KConfig).
              
              * plugins/plugin-javascript-access-expected.txt: Added.
              * plugins/plugin-javascript-access.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13022 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a992df03
    • eseidel's avatar
      2006-02-27 Eric Seidel <eseidel@apple.com> · d70f5671
      eseidel authored
              Reviewed by ggaren.
      
              Test new KConfig -> PlugInInfoStore change.
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7498
      
              * DumpRenderTree/DumpRenderTree.m:
              (main): load test netscape plugin
              * Scripts/run-webkit-tests: style update
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13021 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d70f5671
    • eseidel's avatar
      2006-02-27 Eric Seidel <eseidel@apple.com> · b502dd04
      eseidel authored
              Reviewed by ggaren.
      
              Move KConfig to platform/PlugInInfoStore and add test.
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7498
      
              Test: plugins/plugin-javascript-access.html
      
              * ForwardingHeaders/kconfig.h: Removed.
              * WebCore.xcodeproj/project.pbxproj:
              * khtml/ecma/kjs_navigator.cpp:
              (KJS::PluginBase::PluginBase):
              * khtml/ecma/kjs_window.cpp:
              * kwq/KWQKConfigBase.h: Removed.
              * kwq/KWQKConfigBase.mm: Removed.
              * platform/PlugInInfoStore.h: Added.
              * platform/mac/PlugInInfoStoreMac.mm: Added.
              (WebCore::PlugInInfoStore::createPluginInfoForPluginAtIndex):
              (WebCore::PlugInInfoStore::pluginCount):
              (WebCore::refreshPlugins):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13020 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b502dd04
    • darin's avatar
      Reviewed by Eric. · d5f933d8
      darin authored
              * platform/win/TemporaryLinkStubs.cpp: Added more stubs.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13019 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d5f933d8
    • thatcher's avatar
      Build fix for i386. Workaround for 4213314 · 5eede2f3
      thatcher authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13018 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5eede2f3
    • darin's avatar
      - fixed Mac Debug build, there was an unused parameter · 04c3a118
      darin authored
              * kxmlcore/FastMalloc.cpp: (KXMLCore::fastMallocRegisterThread):
              Remove parameter name.
      
              * kjs/debugger.h: Fixed comment.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13017 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      04c3a118
    • eseidel's avatar
      2006-02-27 Eric Seidel <eseidel@apple.com> · e6be61ae
      eseidel authored
              Reviewed by darin.
      
              * kxmlcore/Vector.h:
              (KXMLCore::deleteAllValues): fix unused variable warning
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13016 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e6be61ae
    • mjs's avatar
      Reviewed by Darin. · 05585423
      mjs authored
              
              - Turn off -Wno-unused-param for JavaScriptCore and get rid of unused params
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7384
      
              * JavaScriptCore.xcodeproj/project.pbxproj:
              * bindings/NP_jsobject.cpp:
              (jsAllocate):
              (_NPN_InvokeDefault):
              (_NPN_Evaluate):
              (_NPN_GetProperty):
              (_NPN_SetProperty):
              (_NPN_RemoveProperty):
              (_NPN_HasProperty):
              (_NPN_HasMethod):
              * bindings/c/c_class.h:
              (KJS::Bindings::CClass::constructorAt):
              * bindings/c/c_utility.cpp:
              (KJS::Bindings::convertNPVariantToValue):
              * bindings/jni/jni_class.cpp:
              (JavaClass::methodsNamed):
              (JavaClass::fieldNamed):
              * bindings/jni/jni_instance.cpp:
              (JavaInstance::invokeDefaultMethod):
              * bindings/jni/jni_jsobject.cpp:
              * bindings/jni/jni_objc.mm:
              (-[NSObject KJS::Bindings::]):
              * bindings/objc/WebScriptObject.mm:
              (+[WebUndefined allocWithZone:]):
              (-[WebUndefined initWithCoder:]):
              (-[WebUndefined encodeWithCoder:]):
              (-[WebUndefined copyWithZone:]):
              * bindings/objc/objc_class.h:
              (KJS::Bindings::ObjcClass::constructorAt):
              * bindings/objc/objc_class.mm:
              (KJS::Bindings::ObjcClass::methodsNamed):
              (KJS::Bindings::ObjcClass::fallbackObject):
              * bindings/objc/objc_instance.mm:
              (ObjcInstance::getValueOfUndefinedField):
              * bindings/objc/objc_runtime.mm:
              (ObjcFallbackObjectImp::getOwnPropertySlot):
              (ObjcFallbackObjectImp::put):
              (ObjcFallbackObjectImp::canPut):
              (ObjcFallbackObjectImp::deleteProperty):
              (ObjcFallbackObjectImp::toBoolean):
              * bindings/runtime.cpp:
              (KJS::Bindings::Instance::createLanguageInstanceForValue):
              * bindings/runtime.h:
              (KJS::Bindings::Instance::getValueOfUndefinedField):
              (KJS::Bindings::Instance::setValueOfUndefinedField):
              * bindings/runtime_array.cpp:
              (RuntimeArray::lengthGetter):
              (RuntimeArray::indexGetter):
              (RuntimeArray::put):
              (RuntimeArray::deleteProperty):
              * bindings/runtime_method.cpp:
              (RuntimeMethod::lengthGetter):
              (RuntimeMethod::execute):
              * bindings/runtime_object.cpp:
              (RuntimeObjectImp::fallbackObjectGetter):
              (RuntimeObjectImp::fieldGetter):
              (RuntimeObjectImp::methodGetter):
              (RuntimeObjectImp::put):
              (RuntimeObjectImp::canPut):
              (RuntimeObjectImp::deleteProperty):
              (RuntimeObjectImp::defaultValue):
              (RuntimeObjectImp::callAsFunction):
              * bindings/runtime_root.cpp:
              (performJavaScriptAccess):
              * kjs/array_object.cpp:
              (ArrayInstance::lengthGetter):
              (ArrayInstance::getOwnPropertySlot):
              (ArrayPrototype::ArrayPrototype):
              (ArrayPrototype::getOwnPropertySlot):
              * kjs/bool_object.cpp:
              (BooleanObjectImp::BooleanObjectImp):
              * kjs/date_object.cpp:
              (KJS::DateObjectFuncImp::DateObjectFuncImp):
              (KJS::DateObjectFuncImp::callAsFunction):
              * kjs/error_object.cpp:
              (ErrorObjectImp::ErrorObjectImp):
              (NativeErrorPrototype::NativeErrorPrototype):
              (NativeErrorImp::NativeErrorImp):
              * kjs/function.cpp:
              (KJS::FunctionImp::argumentsGetter):
              (KJS::FunctionImp::lengthGetter):
              (KJS::Arguments::mappedIndexGetter):
              (KJS::ActivationImp::argumentsGetter):
              (KJS::ActivationImp::put):
              * kjs/function_object.cpp:
              (FunctionObjectImp::FunctionObjectImp):
              * kjs/internal.cpp:
              (KJS::GetterSetterImp::toPrimitive):
              (KJS::GetterSetterImp::toBoolean):
              * kjs/interpreter.cpp:
              (KJS::Interpreter::evaluate):
              * kjs/interpreter.h:
              (KJS::Interpreter::isGlobalObject):
              (KJS::Interpreter::interpreterForGlobalObject):
              (KJS::Interpreter::isSafeScript):
              * kjs/lexer.cpp:
              (Lexer::makeIdentifier):
              (Lexer::makeUString):
              * kjs/lookup.h:
              (KJS::staticFunctionGetter):
              (KJS::staticValueGetter):
              * kjs/nodes.cpp:
              (StatementNode::processFuncDecl):
              (PropertyNode::evaluate):
              (PropertyNameNode::evaluate):
              * kjs/number_object.cpp:
              (NumberObjectImp::NumberObjectImp):
              (NumberObjectImp::getOwnPropertySlot):
              * kjs/object.cpp:
              (KJS::JSObject::defineGetter):
              (KJS::JSObject::defineSetter):
              (KJS::JSObject::hasInstance):
              (KJS::JSObject::propertyIsEnumerable):
              * kjs/object_object.cpp:
              (ObjectObjectImp::ObjectObjectImp):
              * kjs/property_slot.cpp:
              (KJS::PropertySlot::undefinedGetter):
              (KJS::PropertySlot::functionGetter):
              * kjs/reference.cpp:
              (KJS::Reference::getPropertyName):
              * kjs/reference_list.cpp:
              (ReferenceListIterator::operator++):
              * kjs/regexp_object.cpp:
              (RegExpObjectImp::RegExpObjectImp):
              (RegExpObjectImp::getValueProperty):
              (RegExpObjectImp::putValueProperty):
              * kjs/string_object.cpp:
              (StringInstance::lengthGetter):
              (StringInstance::indexGetter):
              (StringPrototype::StringPrototype):
              * kxmlcore/Assertions.mm:
              * kxmlcore/FastMalloc.cpp:
              (KXMLCore::TCMalloc_PageHeap::CheckList):
              * kxmlcore/HashTable.h:
              (KXMLCore::HashTableConstIterator::checkValidity):
              (KXMLCore::IdentityHashTranslator::translate):
              * pcre/pcre_get.c:
              (pcre_get_stringnumber):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13015 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      05585423
    • eseidel's avatar
      2006-02-27 Eric Seidel <eseidel@apple.com> · 7991caa2
      eseidel authored
              Reviewed by darin.
      
              Reworked KConfig and plugin architecture to be much more sane.
              This is part one.  Once this lands, I'll move it under platform with a better name.
      
              Darin had several great suggested further improvements as part of:
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7451
              I'll make some of those when I move this to platform.
      
              No layout test possible (no way to control which plugins DRT sees).
      
              * khtml/ecma/kjs_navigator.cpp:
              (KJS::PluginBase::PluginBase):
              (KJS::PluginBase::~PluginBase):
              (KJS::PluginBase::refresh):
              (KJS::Plugins::getValueProperty):
              (KJS::Plugins::nameGetter):
              (KJS::Plugins::getOwnPropertySlot):
              (KJS::MimeTypes::getValueProperty):
              (KJS::MimeTypes::nameGetter):
              (KJS::MimeTypes::getOwnPropertySlot):
              (KJS::Plugin::getValueProperty):
              (KJS::Plugin::nameGetter):
              (KJS::Plugin::getOwnPropertySlot):
              * khtml/ecma/kjs_navigator.h:
              * khtml/ecma/kjs_window.cpp:
              * kwq/KWQKConfigBase.h:
              (WebCore::PluginInfoStore::PluginInfoStore):
              * kwq/KWQKConfigBase.mm:
              (WebCore::PluginInfoStore::createPluginInfoForPluginAtIndex):
              (WebCore::PluginInfoStore::pluginCount):
              (WebCore::refreshPlugins):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13014 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7991caa2
    • eseidel's avatar
      2006-02-27 Eric Seidel <eseidel@apple.com> · 070491d1
      eseidel authored
              Reviewed by darin.
      
              Build fix: cast to unsigned from size_t.
      
              * platform/StreamingTextDecoder.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13013 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      070491d1
    • mjs's avatar
      Reviewed by Darin. · 8aa39fce
      mjs authored
              - add Selection.cpp to win32 build
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7490
      
              * WebCore.vcproj/WebCore/WebCore.vcproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13012 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8aa39fce
    • mjs's avatar
      - use proper header for std::min. · 0266ac14
      mjs authored
              * platform/StreamingTextDecoder.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13011 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0266ac14
    • mjs's avatar
      Reviewed by Darin. · 0908026c
      mjs authored
              - add new TextEncoding stuff to win32 build
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7491
      
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.vcproj/WebCore/build-generated-files.sh:
              * platform/StreamingTextDecoder.cpp:
              (WebCore::StreamingTextDecoder::convertUTF16):
              * platform/TextEncoding.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13010 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0908026c
    • darin's avatar
      - try to fix Windows build · cfdf6823
      darin authored
              * WebCore.vcproj/WebCore/WebCore.vcproj: Removed rendering/font.* and added platform/Font.*.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13009 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cfdf6823
    • darin's avatar
      * css/csshelper.cpp: (WebCore::parseURL): Actually, the second version was fine. Rolling · de7df06f
      darin authored
              back to that; apologies for the churn.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13008 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      de7df06f
    • darin's avatar
      * css/csshelper.cpp: (WebCore::parseURL): Third time's the charm. · 520b1f17
      darin authored
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13007 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      520b1f17
    • darin's avatar
    • darin's avatar
      Reviewed by Maciej. · 9907729d
      darin authored
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=7486
                a first step in improving String/StringImpl API -- use "s" and "l" less
      
              * css/csshelper.cpp: (WebCore::parseURL): Use a local buffer rather than
              manipulating the characters directly inside a StringImpl buffer.
      
              * css/cssstyleselector.cpp: (WebCore::parseUASheet): Copy the data to parse
              it rather than going out of our way to hack StringImpl to not copy the data.
              It would be better not to copy, but this is one-time work.
      
              * dom/DOMImplementationImpl.cpp: (WebCore::DOMImplementationImpl::createDocument):
              * dom/dom2_viewsimpl.cpp: (DOM::AbstractViewImpl::getMatchedCSSRules):
              * dom/dom_elementimpl.cpp: (WebCore::StyledElementImpl::addCSSLength):
              * dom/dom_xmlimpl.cpp: (WebCore::EntityImpl::toString):
              * editing/CompositeEditCommand.cpp: (WebCore::CompositeEditCommand::deleteInsignificantText):
              * khtml/html/htmlparser.cpp: (WebCore::HTMLParser::handleError):
              * platform/AtomicString.cpp:
              (WebCore::CStringTranslator::equal):
              (WebCore::QCharBufferTranslator::equal):
              (WebCore::AtomicString::add):
              * platform/StringImpl.h:
              (WebCore::StringImpl::unicode): Added.
              (KXMLCore::CaseInsensitiveHash::hash): 
              (KXMLCore::CaseInsensitiveHash::equal):
              * rendering/InlineTextBox.cpp: (khtml::InlineTextBox::selectionStartEnd):
              * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateFirstLetter):
              * rendering/RenderText.cpp:
              (WebCore::getCharacterBreakIterator):
              (WebCore::RenderText::RenderText):
              (WebCore::RenderText::atLineWrap):
              (WebCore::RenderText::allAscii):
              (WebCore::RenderText::widthFromCache):
              (WebCore::RenderText::trimmedMinMaxWidth):
              (WebCore::RenderText::containsOnlyWhitespace):
              (WebCore::RenderText::setSelectionState):
              (WebCore::RenderText::setTextWithOffset):
              (WebCore::RenderText::setText):
              (WebCore::RenderText::width):
              (WebCore::RenderText::selectionRect):
              (WebCore::RenderText::caretMaxOffset):
              * rendering/RenderTextFragment.cpp:
              (khtml::RenderTextFragment::RenderTextFragment):
              (khtml::RenderTextFragment::originalString):
              Use length() instead of l, unicode() instead of s, and (*x)[] instead of x->s[].
      
              * editing/visible_units.cpp:
              (WebCore::startOfParagraph): Use const.
              (WebCore::endOfParagraph): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13005 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9907729d
    • mjs's avatar
      - fix problem with a prototype that broke win32 build · 012a6725
      mjs authored
              * platform/StreamingTextDecoder.h:
              (WebCore::StreamingTextDecoder::convert):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13004 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      012a6725
    • mjs's avatar
      - fix debug build (broken by my last commit) · 50f32109
      mjs authored
              * platform/StreamingTextDecoder.cpp:
              (WebCore::StreamingTextDecoder::createICUConverter):
              (WebCore::StreamingTextDecoder::convertUsingICU):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13003 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      50f32109
    • mjs's avatar
      Reviewed by Darin. · 4235891a
      mjs authored
              - platformize KWQTextCodec
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7487
              
              I renamed QTextCodec to TextEncoding and QTextDecoder to
              StreamingTextDecoder. I also made a bunch of other changes to make
              the API more sensible.
              
              * ForwardingHeaders/qtextcodec.h: Removed.
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/MacFrame.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge URLWithAttributeString:]):
              (-[WebCoreFrameBridge textEncoding]):
              (+[WebCoreFrameBridge stringWithData:textEncoding:]):
              (+[WebCoreFrameBridge stringWithData:textEncodingName:]):
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::completeURL):
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMDocument::getValueProperty):
              (KJS::DOMDocument::putValueProperty):
              * khtml/html/FormDataList.cpp:
              (DOM::FormDataList::FormDataList):
              (DOM::FormDataList::appendString):
              * khtml/html/FormDataList.h:
              * khtml/html/HTMLFormElementImpl.cpp:
              (WebCore::HTMLFormElementImpl::HTMLFormElementImpl):
              (WebCore::HTMLFormElementImpl::formData):
              * khtml/html/htmltokenizer.cpp:
              * khtml/misc/decoder.cpp:
              (Decoder::Decoder):
              (Decoder::setEncodingName):
              (Decoder::encodingName):
              (Decoder::decode):
              * khtml/misc/decoder.h:
              (khtml::Decoder::):
              (khtml::Decoder::visuallyOrdered):
              (khtml::Decoder::encoding):
              * khtml/xsl/xslt_processorimpl.cpp:
              (DOM::XSLTProcessorImpl::createDocumentFromSource):
              * kwq/KWQCharsets.cpp: Removed.
              * kwq/KWQCharsets.h: Removed.
              * kwq/KWQTextCodec.cpp: Removed.
              * kwq/KWQTextCodec.h: Removed.
              * kwq/WebCoreTextDecoder.h:
              * kwq/WebCoreTextDecoder.mm:
              * kwq/can-convert.mm: Removed.
              * kwq/character-sets.txt: Removed.
              * kwq/mac-encodings.txt: Removed.
              * kwq/make-charset-table.pl: Removed.
              * loader/CachedCSSStyleSheet.cpp:
              (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet):
              (WebCore::CachedCSSStyleSheet::setCharset):
              (WebCore::CachedCSSStyleSheet::data):
              * loader/CachedCSSStyleSheet.h:
              * loader/CachedScript.cpp:
              (WebCore::CachedScript::CachedScript):
              (WebCore::CachedScript::setCharset):
              (WebCore::CachedScript::data):
              * loader/CachedScript.h:
              * loader/CachedXSLStyleSheet.cpp:
              (WebCore::CachedXSLStyleSheet::setCharset):
              * page/Frame.cpp:
              (WebCore::Frame::write):
              (WebCore::Frame::gotoAnchor):
              (WebCore::Frame::encoding):
              (WebCore::Frame::backslashAsCurrencySymbol):
              * platform/CharsetNames.cpp: Added.
              (KXMLCore::):
              (WebCore::EncodingHash::equal):
              (WebCore::EncodingHash::hash):
              (WebCore::buildDictionaries):
              (WebCore::textEncodingIDFromCharsetName):
              (WebCore::charsetNameFromTextEncodingID):
              * platform/CharsetNames.h: Added.
              * platform/KURL.cpp:
              (KURL::KURL):
              (KURL::decode_string):
              (encodeRelativeString):
              * platform/KURL.h:
              * platform/QString.cpp:
              (QString::fromUtf8):
              * platform/StreamingTextDecoder.cpp: Added.
              (WebCore::StreamingTextDecoder::StreamingTextDecoder):
              (WebCore::StreamingTextDecoder::convertLatin1):
              (WebCore::StreamingTextDecoder::~StreamingTextDecoder):
              (WebCore::StreamingTextDecoder::convertUTF16):
              (WebCore::effectiveEncoding):
              (WebCore::StreamingTextDecoder::createICUConverter):
              (WebCore::unwanted):
              (WebCore::StreamingTextDecoder::appendOmittingUnwanted):
              (WebCore::StreamingTextDecoder::convertUsingICU):
              (WebCore::StreamingTextDecoder::convert):
              (WebCore::StreamingTextDecoder::toUnicode):
              * platform/StreamingTextDecoder.h: Added.
              (WebCore::StreamingTextDecoder::convert):
              * platform/TextEncoding.cpp: Added.
              (WebCore::TextEncoding::TextEncoding):
              (WebCore::TextEncoding::name):
              (WebCore::effectiveEncoding):
              (WebCore::TextEncoding::backslashAsCurrencySymbol):
              (WebCore::TextEncoding::toUnicode):
              * platform/TextEncoding.h: Added.
              (WebCore::):
              (WebCore::TextEncoding::):
              (WebCore::TextEncoding::TextEncoding):
              (WebCore::TextEncoding::isValid):
              (WebCore::TextEncoding::usesVisualOrdering):
              (WebCore::TextEncoding::isJapanese):
              (WebCore::TextEncoding::encodingID):
              (WebCore::TextEncoding::flags):
              (WebCore::operator==):
              (WebCore::operator!=):
              * platform/character-sets.txt: Added.
              * platform/mac/ExtraCFEncodings.h: Added.
              * platform/mac/QStringMac.mm:
              * platform/mac/TextEncodingMac.cpp: Added.
              (WebCore::effectiveEncoding):
              (WebCore::TextEncoding::fromUnicode):
              * platform/mac/can-convert.mm: Added.
              * platform/mac/mac-encodings.txt: Added.
              * platform/make-charset-table.pl: Added.
              * platform/win/win-encodings.txt: Added.
              * rendering/render_object.cpp:
              (WebCore::RenderObject::backslashAsCurrencySymbol):
              * xml/xmlhttprequest.cpp:
              (WebCore::XMLHttpRequest::send):
              (WebCore::XMLHttpRequest::slotData):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13002 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4235891a
    • darin's avatar
      - fix Windows build · f516d4b0
      darin authored
              * platform/win/TemporaryLinkStubs.cpp: Change KIO::TransferJob to WebCore::TransferJob.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13001 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f516d4b0
    • darin's avatar
      Reviewed by Maciej. · 2aa6f9a4
      darin authored
              - merged Job and TransferJob into TransferJob and moved it to WebCore namespace
              - changed TransferJob to use a TransferJobClient object instead of signals
      
              * ForwardingHeaders/kio/job.h: Changed to point to "KWQKJobClasses.h".
              * kwq/KWQKJob.h: Removed.
              * kwq/TransferJobClient.h: Added.
      
              * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for file changes.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
      
              * dom/xml_tokenizer.cpp: (WebCore::openFunc):
              * khtml/xsl/xslt_processorimpl.cpp: (DOM::docLoaderFunc):
              Use "new TransferJob" instead of "KIO::get" and "KIO::http_post".
      
              * kwq/KWQKJobClasses.h: Eliminate Job. Add a TransferJobClient* parameter to
              TransferJob. Eliminate the deliverAllData parameter to TransferJob constructor.
              Remove the signals from TransferJob.
              * kwq/KWQKJobClasses.mm:
              (WebCore::TransferJobPrivate::TransferJobPrivate): Store a client pointer.
              (WebCore::TransferJob::TransferJob): Store a client pointer, remove the
              deliverAllData boolean.
              (WebCore::TransferJob::receivedResponse): Added. Replaces the old emitReceivedResponse
              function; uses client instead of a signal.
              (WebCore::TransferJob::client): Added.
      
              * kwq/KWQLoader.h: Switched things to mention the WebCore namespace.
              Changed KIO::TransferJob to WebCore::TransferJob.
              * kwq/KWQLoader.mm: Ditto.
      
              * kwq/KWQObject.h:
              * kwq/KWQObject.cpp: Removed isKHTMLLoader.
      
              * kwq/KWQResourceLoader.h: Changed KIO::TransferJob to WebCore::TransferJob.
              * kwq/KWQResourceLoader.mm:
              (-[KWQResourceLoader receivedResponse:]): Call receivedResponse function on
              the job instead of emitReceivedResponse.
              (-[KWQResourceLoader redirectedToURL:]): Call receivedRedirect function on the
              client directly instead of emitRedirection on the job.
              (-[KWQResourceLoader addData:]): Call receivedData function on the
              client directly instead of emitData on the job.
              (-[KWQResourceLoader finishJobAndHandle:]): Call receivedAllData function on the
              client directly instead of emitResult on the job. Also fixed a potential memory leak
              where the handle was not released if the job was 0.
      
              * kwq/KWQSignal.h:
              * kwq/KWQSignal.cpp:
              * kwq/KWQSlot.h:
              * kwq/KWQSlot.cpp:
              Removed the job-related signals and slots.
      
              * loader/CachedObject.h: Removed unneeded declaration of TransferJob.
      
              * loader/loader.h:
              * loader/loader.cpp:
              (WebCore::Loader::servePendingRequests): Use "new TransferJob" instead of "KIO::get".
              Also don't connect signals.
              (WebCore::Loader::receivedAllData): New name for slotFinished.
              (WebCore::Loader::receivedResponse): New name for slotReceivedResponse.
              (WebCore::Loader::receivedData): New name for slotData.
              (WebCore::Loader::cancelRequests): Changed KIO::Job to TransferJob.
              (WebCore::Loader::jobForRequest): Ditto.
      
              * page/Frame.h:
              * page/Frame.cpp:
              (WebCore::Frame::didOpenURL): Use "new TransferJob" instead of "KIO::get" and
              "KIO::http_post". Also don't connect signals.
              (WebCore::Frame::receivedAllData): Renamed from slotFinished. Also slightly
              cleaned up the logic.
              (WebCore::Frame::receivedRedirect): Renamed from slotRedirection.
              * page/FramePrivate.h: Changed KIO::TransferJob to WebCore::TransferJob.
      
              * xml/xmlhttprequest.h:
              * xml/xmlhttprequest.cpp:
              (WebCore::XMLHttpRequest::XMLHttpRequest): Eliminate XMLHttpRequestQObject.
              (WebCore::XMLHttpRequest::send): Use "new TransferJob" instead of
              "KIO::get" and "KIO::http_post". Also don't connect signals.
              (WebCore::XMLHttpRequest::processSyncLoadResults): Change to call the functions
              by their new names (names changed to use with TransferJobClient).
              (WebCore::XMLHttpRequest::receivedAllData): Renamed from slotFinished.
              (WebCore::XMLHttpRequest::receivedRedirect): Renamed from slotRedirection.
              (WebCore::XMLHttpRequest::receivedData): Renamed from slotData.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13000 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2aa6f9a4
  2. 26 Feb, 2006 9 commits
  3. 25 Feb, 2006 2 commits
    • darin's avatar
      Added reviewer to an old change; I just noticed it was missing. · beed99a3
      darin authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12990 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      beed99a3
    • ggaren's avatar
      RS by mjs. · 68b793a2
      ggaren authored
              -tests for http://bugzilla.opendarwin.org/show_bug.cgi?id=5146
              Re-landing results after adding missing png's to the test.
      
              * fast/replaced/resources/1x1-blue.png: Added.
              * fast/replaced/resources/square-blue-100x100.png: Added.
              * fast/replaced/maxheight-percent-expected.checksum: Added.
              * fast/replaced/maxheight-percent-expected.png: Added.
              * fast/replaced/maxheight-percent-expected.txt:
              * fast/replaced/maxheight-pxs-expected.checksum: Added.
              * fast/replaced/maxheight-pxs-expected.png: Added.
              * fast/replaced/maxheight-pxs-expected.txt:
              * fast/replaced/maxwidth-percent-expected.checksum: Added.
              * fast/replaced/maxwidth-percent-expected.png: Added.
              * fast/replaced/maxwidth-percent-expected.txt:
              * fast/replaced/maxwidth-pxs-expected.checksum: Added.
              * fast/replaced/maxwidth-pxs-expected.png: Added.
              * fast/replaced/maxwidth-pxs-expected.txt:
              * fast/replaced/minheight-percent-expected.checksum: Added.
              * fast/replaced/minheight-percent-expected.png: Added.
              * fast/replaced/minheight-percent-expected.txt:
              * fast/replaced/minheight-pxs-expected.checksum: Added.
              * fast/replaced/minheight-pxs-expected.png: Added.
              * fast/replaced/minheight-pxs-expected.txt:
              * fast/replaced/minwidth-percent-expected.checksum: Added.
              * fast/replaced/minwidth-percent-expected.png: Added.
              * fast/replaced/minwidth-percent-expected.txt:
              * fast/replaced/minwidth-pxs-expected.checksum: Added.
              * fast/replaced/minwidth-pxs-expected.png: Added.
              * fast/replaced/minwidth-pxs-expected.txt:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12989 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      68b793a2
  4. 24 Feb, 2006 4 commits
    • antti's avatar
      Reviewed by Hyatt. · 6bead9c2
      antti authored
              - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=7440
              Floats not positioned correctly
      
              * fast/block/float/multiple-float-positioning-expected.checksum: Added.
              * fast/block/float/multiple-float-positioning-expected.png: Added.
              * fast/block/float/multiple-float-positioning-expected.txt: Added.
              * fast/block/float/multiple-float-positioning.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12988 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6bead9c2
    • antti's avatar
      Reviewed by Hyatt. · 4851572d
      antti authored
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7440
              Floats not positioned correctly
      
              Test: fast/block/float/multiple-float-positioning.html
      
              * rendering/RenderBlock.cpp: 
              (WebCore::RenderBlock::positionNewFloats): Correct iteration of the float list
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12987 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4851572d
    • justing's avatar
      LayoutTests: · 68658dd7
      justing authored
              Reviewed by justin
              
              <http://bugzilla.opendarwin.org/show_bug.cgi?id=6933>
              Selection extends beyond focus ring for some contentEditable divs
      
              * editing/selection/extend-by-word-002-expected.checksum:
              * editing/selection/extend-by-word-002-expected.png:
              * editing/selection/select-all-001-expected.checksum:
              * editing/selection/select-all-001-expected.png:
              * editing/selection/select-all-002-expected.checksum:
              * editing/selection/select-all-002-expected.png:
      
      WebCore:
      
              <http://bugzilla.opendarwin.org/show_bug.cgi?id=6933>
              Selection extends beyond focus ring for some contentEditable divs
      
              Reviewed by justin
      
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::isSelectionRoot): Have root editable elements paint their
              own selection gaps.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12986 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      68658dd7
    • darin's avatar
      LayoutTests: · eca8abf8
      darin authored
              - test <rdar://problem/4456287> REGRESSION: assertion failure at mypage.apple.com
                in WebCore::TimerBase::nextFireInterval() const + 100 (Timer.cpp:188)
      
              * fast/dom/Window/redirect-with-timer.html: Added.
              * fast/dom/Window/redirect-with-timer-expected.txt: Added.
      
      WebCore:
      
              Reviewed by Maciej.
      
              - fix <rdar://problem/4456287> REGRESSION: assertion failure at mypage.apple.com
                in WebCore::TimerBase::nextFireInterval() const + 100 (Timer.cpp:188)
      
              Test: fast/dom/Window/redirect-with-timer.html
      
              * platform/Timer.h: Made isActive no longer inline. Added inHeap function.
              * platform/Timer.cpp: Changed assertions to use inHeap function for clarity.
              (WebCore::TimerBase::isActive): Return true for timers that are ready to fire.
              They have a next fire time of 0, but they should still be considered active.
              (WebCore::TimerBase::checkConsistency): Correct the consistency check. The new
              rule is that timers with a next fire time of 0 are not in the heap, and all other
              timers are.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12985 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eca8abf8