1. 06 Jun, 2006 1 commit
    • andersca's avatar
      WebCore: · a70ccbc8
      andersca authored
      2006-06-06  Anders Carlsson  <acarlsson@apple.com>
      
              Reviewed by John.
      
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge containsPlugins]):
              * page/Frame.cpp:
              (WebCore::Frame::containsPlugins):
              * page/Frame.h:
              Add containsPlugins function which returns whether a frame contains plugins
              or not.
      
      WebKit:
      
      2006-06-06  Anders Carlsson  <acarlsson@apple.com>
      
              Reviewed by John.
      
              * WebView/WebFrame.m:
              (-[WebFrame _reloadForPluginChanges]):
              Don't traverse the view hierarchy looking for plugin views. Instead, just
              ask the frame whether it contains any plugins.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14743 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a70ccbc8
  2. 31 May, 2006 1 commit
    • hyatt's avatar
      WebCore: · c45a6f84
      hyatt authored
              Fix for the gmail tab-focus-stealing bug.
      
              Reviewed by darin
      
              * bindings/js/kjs_window.cpp:
              (KJS::WindowFunc::callAsFunction):
              * bridge/mac/BrowserExtensionMac.mm:
              (WebCore::BrowserExtensionMac::createNewWindow):
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::focusWindow):
              (WebCore::FrameMac::unfocusWindow):
              * bridge/mac/WebCoreFrameBridge.h:
              * page/Frame.h:
              * platform/Widget.h:
              * platform/mac/WidgetMac.mm:
              * platform/win/TemporaryLinkStubs.cpp:
              (FrameWin::focusWindow):
              * platform/win/WidgetWin.cpp:
      
      WebKit:
      
              Make programmatic focus/blur actually work on sub-frames.  Make the
              top-level UI delegate get called for deactivation of windows.
      
              Reviewed by darin
      
              * WebCoreSupport/WebFrameBridge.m:
              (-[WebFrameBridge activateWindow]):
              (-[WebFrameBridge deactivateWindow]):
              (-[WebFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
              (-[WebFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
              * WebKit.xcodeproj/project.pbxproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14651 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c45a6f84
  3. 17 May, 2006 2 commits
    • adele's avatar
      LayoutTests: · 275a6ad0
      adele authored
              Reviewed by Hyatt.
      
              Updated test results for changes to prepare for 
              http://bugzilla.opendarwin.org/show_bug.cgi?id=8948
              Switch to use new text field implementation for <textarea>
      
              * fast/block/float/032-expected.txt:
      
      WebCore:
      
              Reviewed by Hyatt.
      
              First step for http://bugzilla.opendarwin.org/show_bug.cgi?id=8948
              Switch to use new text field implementation for <textarea>
      
              New textareas can be turned on by setting -webkit-appearance:textarea.
      
              Tests:
              * LayoutTests/fast/block/float/032.html - Updated results.
      
              * bridge/mac/FrameMac.h: Added textDidChangeinTextArea to send notification over the bridge to form delegate.
              * bridge/mac/FrameMac.mm: (WebCore::FrameMac::textDidChangeInTextArea): ditto.
              * page/Frame.cpp: (WebCore::Frame::textDidChangeInTextArea): ditto.
              * page/Frame.h: ditto.
      
              * css/CSSValueKeywords.in: Added textarea.
              * css/cssparser.cpp: (WebCore::CSSParser::parseValue): Updates to check for textarea.
              * css/html4.css: Added style for textarea.  Leaved background-color and appearance values commented out.
              * rendering/render_style.h: (WebCore::): Added TextAreaAppearance.
      
              * rendering/RenderTheme.cpp:
              (WebCore::RenderTheme::adjustStyle): Updated for textarea.
              (WebCore::RenderTheme::paint): ditto.
              (WebCore::RenderTheme::paintBorderOnly): ditto.
              (WebCore::RenderTheme::isControlStyled): ditto.
              (WebCore::RenderTheme::supportsFocusRing): ditto.
              (WebCore::RenderTheme::adjustTextFieldStyle): ditto.
              (WebCore::RenderTheme::adjustTextAreaStyle): ditto.
              * rendering/RenderTheme.h: (WebCore::RenderTheme::paintTextArea): Added.
              * rendering/RenderThemeMac.h: Added adjustTextAreaStyle.
              Note- I didn't add a paintTextArea function for RenderThemeMac, since we can just paint the border 
              specified in html4.css to match the NSTextView border.  Added a paintTextArea function to the Windows
              theme can override that border.
              * rendering/RenderThemeMac.mm:
              (WebCore::RenderThemeMac::isControlStyled): Updated for textarea.
              (WebCore::RenderThemeMac::adjustTextAreaStyle): ditto.
      
              * html/HTMLGenericFormElement.cpp: (WebCore::HTMLGenericFormElement::HTMLGenericFormElement):
              Moved m_valueMatchesRenderer and its setters and getters into this class so HTMLInputElement and
              HTMLTextArea can share.
              * html/HTMLGenericFormElement.h:
              (WebCore::HTMLGenericFormElement::valueMatchesRenderer): Added.
              (WebCore::HTMLGenericFormElement::setValueMatchesRenderer): Added.
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::init): Remove m_valueMatchesRenderer intialization.
              (WebCore::HTMLInputElement::isKeyboardFocusable): Updated spelling.
              (WebCore::HTMLInputElement::createRenderer): Pass multiLine bool to RenderTextField constructor.
              (WebCore::HTMLInputElement::parseMappedAttribute): Use setValueMatchesRenderer instead of m_valueMatchesRenderer.
              (WebCore::HTMLInputElement::detach): ditto.
              (WebCore::HTMLInputElement::setValue): ditto.
              (WebCore::HTMLInputElement::setValueFromRenderer): ditto.
              * html/HTMLInputElement.h: Remove setValueMatchesRenderer and valueMatchesRenderer and m_valueMatchesRenderer.
              * html/HTMLTextAreaElement.cpp:
              (WebCore::HTMLTextAreaElement::HTMLTextAreaElement): Calls setValueMatchesRenderer to intialize m_valueMatchesRenderer.
              (WebCore::HTMLTextAreaElement::selectionStart): Uses appearance to determine which renderer to use.
              (WebCore::HTMLTextAreaElement::selectionEnd): ditto.
              (WebCore::HTMLTextAreaElement::setSelectionStart): ditto.
              (WebCore::HTMLTextAreaElement::setSelectionEnd): ditto.
              (WebCore::HTMLTextAreaElement::select): ditto.
              (WebCore::HTMLTextAreaElement::setSelectionRange): ditto.
              (WebCore::HTMLTextAreaElement::createRenderer): ditto.
              (WebCore::HTMLTextAreaElement::appendFormData): ditto.
              (WebCore::HTMLTextAreaElement::updateValue): ditto.
              (WebCore::HTMLTextAreaElement::isKeyboardFocusable): Added.
              (WebCore::HTMLTextAreaElement::isMouseFocusable): Added.
              (WebCore::HTMLTextAreaElement::focus): Added.
              (WebCore::HTMLTextAreaElement::defaultEventHandler): Added to forward events to the inner div.
              (WebCore::HTMLTextAreaElement::setValue): Calls setValueMatchesRenderer.
              * html/HTMLTextAreaElement.h: Added defaultEventHandler, isMouseFocusable, isKeyboardFocusable, and focus methods.
              Removed invalidateValue and m_valueMatchesRenderer since those are now handled in the base class.
              * html/HTMLTextFieldInnerElement.cpp: (WebCore::HTMLTextFieldInnerElement::defaultEventHandler):
              Updated to handle textareas.
              * rendering/RenderTextArea.cpp: (WebCore::RenderTextArea::valueChanged):
              Calls setValueMatchesRenderer(false) instead of invalidateValue.
      
              * rendering/RenderTextField.h: Changed to be a RenderFlexibleBox instead of a RenderBlock.
              This was necessary to get the inner div's height to grow and shrink with the size of the textarea.
              Added m_multiLine bool, and calcHeight, canHaveChildren, baselinePosition, isTextArea, textWithHardLineBreaks, selectionChanged.
              (WebCore::RenderTextField::canHaveChildren): Returns false now so that no renderer gets created for
              the textarea's child text node for its initial contents.
              (WebCore::RenderTextField::isTextField): Returns true if m_multiLine is false.
              (WebCore::RenderTextField::isTextArea): Returns true if m_multiLine is true.
              * rendering/RenderTextField.cpp:
              (WebCore::RenderTextField::RenderTextField):  Initializes m_multiLine.
              (WebCore::RenderTextField::~RenderTextField): Notifies HTMLTextAreaElement that the renderer is being destroyed so the value gets updated.
              (WebCore::RenderTextField::setStyle): Makes sure there's no overflow clip on the RenderTextField, since we're handling overflow on the inner div.
              (WebCore::RenderTextField::createDivStyle): Sets white-space, box-flex, overflow, word-wrap styles needed for text area.
              (WebCore::RenderTextField::updateFromElement): Updated for textarea elements.
              (WebCore::RenderTextField::setSelectionRange): Optimized caret case by checking to see if start is equal to end before calculating
              the same VisiblePosition twice.
              (WebCore::RenderTextField::subtreeHasChanged): Updated for textarea elements.
              (WebCore::RenderTextField::text): Use innerText so newlines are considered.
              (WebCore::RenderTextField::textWithHardLineBreaks): Added.  Not implemented yet. Just calls text method.
              (WebCore::RenderTextField::calcHeight): Added. Sets initial height based on specified number of rows, and then calls the base class.
              (WebCore::RenderTextField::baselinePosition): Added. Unlike text fields, textareas align to the bottom.
              (WebCore::RenderTextField::calcMinMaxWidth): Updated for textareas.
              (WebCore::RenderTextField::selectionChanged): Added. Not implemented yet.
      
      WebKit:
      
              Reviewed by Hyatt.
      
              WebKit part of initial checkin to prepare for http://bugzilla.opendarwin.org/show_bug.cgi?id=8948
              Switch to use new text field implementation for <textarea>
      
              * WebView/WebHTMLView.m:
              (-[NSArray insertNewline:]): If we're in plain text mode, insert a line break instead of a paragraph separator.
              (-[NSArray insertParagraphSeparator:]): ditto.
              * WebView/WebView.m: (-[WebView _menuForElement:defaultItems:]):
              Checks for textareas as well as textfields before allowing the delegate to control
              the context menu.  This won't affect the old textareas because AppKit handles those context menus.
      
      WebKitTools:
      
              Reviewed by Hyatt.
      
              * Scripts/do-webcore-rename: Added RenderTextField => RenderTextControl and 
              HTMLTextFieldInnerElement => HTMLTextControlInnerElement to list for future renames.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14451 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      275a6ad0
    • sullivan's avatar
      Reviewed by Maciej. · db5fb961
      sullivan authored
              
              First step towards making text-matching mechanism more flexible; now caller can 
              control whether or not the matches are highlighted.
      
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge markAllMatchesForText:caseSensitive:]):
              renamed from highlightAllMatchesForString:
              (-[WebCoreFrameBridge markedTextMatchesAreHighlighted]):
              new getter method
              (-[WebCoreFrameBridge setMarkedTextMatchesAreHighlighted:]):
              new setter method
              (-[WebCoreFrameBridge unmarkAllTextMatches]):
              renamed from clearHighlightedMatches
              
              * page/Frame.h:
              * page/Frame.cpp:
              (WebCore::Frame::markAllMatchesForText):
              renamed from highlightAllMatchesForString
              (WebCore::Frame::markedTextMatchesAreHighlighted):
              new getter method, uses boolean ivar in FramePrivate
              (WebCore::Frame::setMarkedTextMatchesAreHighlighted):
              new setter method, uses boolean ivar in FramePrivate
              
              * page/FramePrivate.h:
              (WebCore::FramePrivate::FramePrivate):
              added boolean ivar m_highlightTextMatches, initialized to 0
              
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::paint):
              respect markedTextMatchesAreHighlighted
      
              * WebCore.xcodeproj/project.pbxproj:
              newer Xcode removed some obsolete settings
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14447 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      db5fb961
  4. 09 May, 2006 2 commits
    • darin's avatar
      LayoutTests: · 7ab3109f
      darin authored
              - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=6310
                text-transform: uppercase/lowercase don't handle cases one character becomes two
      
              * fast/css/case-transform.html: Added.
              * fast/css/case-transform-expected.txt: Added.
      
      WebCore:
      
              Rubber stamped by Hyatt.
      
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=8782
                use ICU and UChar more, QChar less
      
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6310
                text-transform: uppercase/lowercase don't handle cases one character becomes two
      
              Test: fast/css/case-transform.html
      
              By using ICU more, this fixes some bugs in a few places.
      
              * bindings/js/JSXMLSerializer.cpp:
              * css/css_valueimpl.h:
              * kwq/KWQTextStream.cpp:
              * loader/CachedObject.h:
              * platform/Color.cpp:
              Add includes of DeprecatedString.h as needed, now that StringImpl.h no longer
              includes it.
      
              * bindings/js/kjs_css.cpp: (KJS::cssPropertyName):
              Eliminate use of QChar::latin1() in a case where it's not helpful.
      
              * bindings/js/kjs_proxy.cpp: (WebCore::KJSProxy::evaluate):
              Use characters() function instead of the old unicode() function.
      
              * bindings/js/kjs_window.cpp: (KJS::isSeparator):
              Use UChar instead of QChar.
      
              * bindings/objc/DOMInternal.mm:
              (StringImpl::operator NSString*): Remove typecast that's no longer needed.
              (String::String): Ditto. Also use Vector for local buffer to make code read simpler.
      
              * bridge/mac/FrameMac.mm:
              (WebCore::selectorForKeyEvent): Remove call to unicode() function, no longer needed.
              (WebCore::FrameMac::setTitle): Remove QChar cast, no longer needed.
              (WebCore::FrameMac::setStatusBarText): Ditto.
              (WebCore::FrameMac::advanceToNextMisspelling): Use UChar instead of QChar.
              (WebCore::FrameMac::runJavaScriptAlert): Remove QChar cast, no longer needed.
              (WebCore::FrameMac::runJavaScriptConfirm): Ditto.
              (WebCore::FrameMac::runJavaScriptPrompt): Ditto.
              (WebCore::FrameMac::attributedString): Replaces calls of QChar::direction() with
              calls to u_charDirection and use ICU constants instead of QChar ones.
              (WebCore::FrameMac::markMisspellings): Remove QChar cast, no longer needed. Added a
              QChar cast so we can call isSpace -- slated to be removed later.
              (WebCore::FrameMac::shouldClose): Remove QChar cast, no longer needed.
      
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge selectedString]): Remove QChar cast, no longer needed.
              (-[WebCoreFrameBridge stringForRange:]): Ditto.
      
              * css/CSSGrammar.y: Update for field name change from string to characters.
              Use UChar instead of unsigned short. 
      
              * css/css_valueimpl.cpp:
              (WebCore::propertyID): Use UChar instead of unsigned short and get rid of call to
              unicode() function, no longer needed.
              (WebCore::quoteStringIfNeeded): Use strings when building up a resulting string,
              instead of depending on the feature where you can append characters to a string.
      
              * css/csshelper.cpp: (WebCore::parseURL): Remove calls to unicode() function and
              rewrite to obviate the need to call lower() just to check for a few constant
              character values. Also remove a now-unneeded type cast.
      
              * css/cssparser.h: Changed ParseString field to use UChar and to be named characters
              instead of string. Changed many other fields to be UChar instead of unsigned short.
              (WebCore::domString): Update for that.
              (WebCore::atomicString): Ditto.
              * css/cssparser.cpp:
              (WebCore::ParseString::lower): Use u_tolower instead of QChar::lower(). Also change
              name to characters from string.
              (WebCore::CSSParser::setupParser): Use UChar instead of unsigned short.
              (WebCore::CSSParser::lex): Ditto. Also update for characters name change.
              (WebCore::CSSParser::text): Use UChar instead of unsigned short. Also tweak some
              of the code a little bit to handle a couple of overflow cases better and reduce
              type casting.
              (WebCore::deprecatedString): Moved here so we don't have to include DeprecatedString.h
              in the header file.
      
              * css/cssstyleselector.cpp: (WebCore::checkPseudoState): Added a type cast since this
              code now bridges the world between modern code and QChar/DeprecatedString.
      
              * dom/CharacterData.cpp: (WebCore::CharacterData::CharacterData): Changed QChar to UChar.
      
              * dom/Document.h:
              * dom/Document.cpp:
              (WebCore::Document::isValidName): Updated for name change from unicode to characters.
              (WebCore::Document::parseQualifiedName): Ditto.
              (WebCore::Document::backslashAsCurrencySymbol): Changed return type to UChar.
      
              * dom/NamedMappedAttrMap.cpp:
              (WebCore::isClassWhitespace): Changed parameter to UChar from QChar.
              (WebCore::NamedMappedAttrMap::parseClassAttribute): Changed from UChar to QChar and
              from unicode to characters.
      
              * dom/Position.cpp:
              (WebCore::Position::leadingWhitespacePosition): Changed from QChar to UChar.
              (WebCore::Position::trailingWhitespacePosition): Ditto.
      
              * dom/StyledElement.cpp:
              (WebCore::isClassWhitespace): Changed from QChar to UChar.
              (WebCore::StyledElement::addCSSLength): Changed from QChar to UChar, and remove one
              case where latin1() was used and was not helpful.
              (WebCore::StyledElement::addCSSColor): Removed unicode() function call, no longer needed.
      
              * dom/dom2_eventsimpl.cpp: (WebCore::KeyboardEvent::charCode):
              * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::constrainValue):
              Removed unicode() function call, no longer needed.
      
              * dom/xml_tokenizer.h: Removed default parameter for xmlDocPtrForString so we don't have
              to include the DeprecatedString.h header in this file (and since no one uses it).
      
              * editing/HTMLInterchange.cpp: (convertHTMLTextToInterchangeFormat): Added a couple calls
              to the unicode() function to bridge the gap from QChar/DeprecatedString back to modern
              code.
      
              * editing/InsertTextCommand.cpp: Removed unused function.
      
              * editing/TextIterator.h: Changed from QChar to UChar.
              * editing/TextIterator.cpp:
              (WebCore::TextIterator::TextIterator): Initialize m_lastCharacter since it's now a UChar
              (which is just a typedef) rather than a QChar (which was a class with a default value of 0).
              (WebCore::TextIterator::handleTextNode): Updated to use characters() instead of unicode().
              (WebCore::TextIterator::handleTextBox): Removed unicode() call since it's now a UChar instead
              of a QChar.
              (WebCore::TextIterator::emitCharacter): More of the same.
              (WebCore::SimplifiedBackwardsTextIterator::handleTextNode): Ditto.
              (WebCore::SimplifiedBackwardsTextIterator::emitCharacter): Ditto.
              (WebCore::CharacterIterator::string): Ditto.
              (WebCore::WordAwareIterator::advance): Ditto.
              (WebCore::WordAwareIterator::length): Ditto.
              (WebCore::WordAwareIterator::characters): Ditto.
              (WebCore::CircularSearchBuffer::CircularSearchBuffer): Changed to use UChar
              instead of QChar, but also to use foldCase() instead of lower(), because
              we want case folding here, not lowercasing.
              (WebCore::CircularSearchBuffer::append): Ditto, with u_foldCase.
              (WebCore::CircularSearchBuffer::isMatch): Ditto.
              (WebCore::plainText): Added type cast since this bridges the gap from the modern stuff
              to QChar/DeprecatedString.
      
              * editing/VisiblePosition.h: Changed from QChar to UChar.
              * editing/VisiblePosition.cpp: (WebCore::VisiblePosition::characterAfter): Ditto.
      
              * editing/markup.cpp: (WebCore::escapeTextForMarkup): Changed code that used latin1()
              for no good reason to use unicode() instead.
       
              * html/HTMLTokenizer.h: Changed from QChar to UChar.
              * html/HTMLTokenizer.cpp: Changed from QChar to UChar, including removing the
              KHTML_ALLOC_QCHAR_VEC and KHTML_DELETE_QCHAR_VEC macros, which weren't being
              used consistently anyway.
              (WebCore::fixUpChar): More of the same.
              (WebCore::tagMatch): Ditto.
              (WebCore::HTMLTokenizer::reset): Ditto.
              (WebCore::HTMLTokenizer::begin): Ditto. Also corrected anomaly where buffer
              size was not the same as the size value -- this was only true in the initial
              allocation, so I believe there was no value in it.
              (WebCore::HTMLTokenizer::parseSpecial): Ditto. Also removed a use of latin1()
              that was unnnecessary extra work.
              (WebCore::HTMLTokenizer::scriptHandler): More of the same.
              (WebCore::HTMLTokenizer::parseComment): Ditto.
              (WebCore::HTMLTokenizer::parseServer): Ditto.
              (WebCore::HTMLTokenizer::parseProcessingInstruction): Ditto. Another unnecessary
              use of latin1() removed.
              (WebCore::HTMLTokenizer::parseText): Ditto.
              (WebCore::HTMLTokenizer::parseEntity): Ditto. Changed hex-parsing code to handle
              uppercase hex a more-efficient way than calling QChar::lower() on each character.
              Also changed surrogate code logic to fix a couple things -- reject character codes
              > 0x10FFFF as it should and use U16_LEAD and U16_TRAIL instead of writing our
              own versions of these.
              (WebCore::HTMLTokenizer::parseTag): Ditto.
              (WebCore::HTMLTokenizer::write): Ditto.
              (WebCore::HTMLTokenizer::end): Ditto.
              (WebCore::HTMLTokenizer::finish): Ditto.
              (WebCore::HTMLTokenizer::enlargeBuffer): Ditto.
              (WebCore::HTMLTokenizer::enlargeScriptBuffer): Ditto.
              (WebCore::HTMLTokenizer::notifyFinished):
              (WebCore::decodeNamedEntity): Ditto.
      
              * html/html_inlineimpl.cpp: (WebCore::parseFontSizeNumber): Changed from QChar
              to UChar, including using u_isdigit and u_charDigitValue instead of QChar::isNumber
              and QChar::digitValue. Also removed unneeded range checking that's already done
              by WebCore::String.
      
              * kwq/KWQLoader.mm: (KWQIsResponseURLEqualToURL): Rewrote to use Vector and UChar,
              removing all the type casts and making the whole function much shorter.
      
              * kwq/WebCoreAXObject.mm:
              (AXAttributedStringAppendText): Use UChar instead of QChar.
              (-[WebCoreAXObject doAXAttributedStringForTextMarkerRange:]): More of the same.
      
              * loader/Cache.h: Remove unnecessary default parameters, preventing the need to
              include the DeprecatedString.h header in this header. Cleaned up the header
              structure a bit, removing some obsolete and redundant comments and fixing typos.
              * loader/Cache.cpp: Removed unused preload functions.
      
              * page/Frame.h:
              * page/Frame.cpp:
              (WebCore::UserStyleSheetLoader::UserStyleSheetLoader): Added explicit arguments.
              This was the only caller anywhere that took advantage of the default parameter
              values in one of the Cache class request functions.
              (WebCore::Frame::backslashAsCurrencySymbol): Changed QChar to UChar.
      
              * platform/AtomicString.h: Changed QChar to UChar. Removed constructor that makes
              an AtomicString from a single character. Renamed unicode() function to characters().
              Renamed KHTML_ATOMICSTRING_HIDE_GLOBALS to ATOMICSTRING_HIDE_GLOBALS.
              * platform/AtomicString.cpp:
              (WebCore::CStringTranslator::equal): Changed QChar to UChar.
              (WebCore::operator==): Changed unicode() to characters().
              (WebCore::UCharBufferTranslator::hash): More of the same.
              (WebCore::UCharBufferTranslator::equal): Ditto.
              (WebCore::UCharBufferTranslator::translate): Ditto.
              (WebCore::AtomicString::add): Ditto.
              (WebCore::AtomicString::operator Identifier): Ditto.
              (WebCore::AtomicString::operator UString): Ditto.
              (WebCore::AtomicString::AtomicString): Moved here so we don't need DeprecatedString.h
              in the header.
              (WebCore::AtomicString::deprecatedString): Ditto.
      
              * platform/DeprecatedString.h: Removed QChar::Direction enum and all the DirXXX values,
              isDigit, isLetter, isNumber, isLetterOrNumber, isPunct, digitValue, and direction functions.
              (QChar::isSpace): Changed to use u_charDirection instead of QChar::direction.
      
              * platform/Font.h: (WebCore::Font::width): Changed QChar to UChar.
              * platform/Font.cpp: (WebCore::Font::width): Ditto.
      
              * platform/GraphicsContext.h:
              * platform/GraphicsContext.cpp:
              (WebCore::GraphicsContext::drawText): Changed QChar to UChar. Removed horizontalAlignment
              parameter from simplified string drawing entry point, since it's not used.
              (WebCore::GraphicsContext::drawHighlightForText): Changed QChar to UChar.
      
              * platform/PlatformString.h: Changed QChar to UChar. Removed constructor that makes
              a String from a single character. Renamed unicode() function to characters(). Added
              an append function and changed += operator to just call that. Added a foldCase() function.
              Removed the concatenation operators that add individual strings before or after.
              * platform/String.cpp:
              (WebCore::String::String): Changed QChar to UChar.
              (WebCore::String::append): Renamed from operator+= and removed the return value.
              (WebCore::String::operator[]): Changed QChar to UChar.
              (WebCore::String::foldCase): Added.
              (WebCore::String::percentage): More of the same.
              (WebCore::String::characters): Renamed from unicode().
              (WebCore::String::deprecatedString): More of the same.
              (WebCore::String::sprintf): Fixed mistakes in the comments.
              (WebCore::String::isEmpty): Tweaked a bit.
              (WebCore::operator==): More of the same.
              (WebCore::String::operator Identifier): Ditto.
              (WebCore::String::operator UString): Ditto.
      
              * platform/SegmentedString.h: Changed from QChar to UChar. Had to initialize
              data members that are now UChar.
              * platform/SegmentedString.cpp:
              (WebCore::SegmentedString::length): Updated for change from QChar to UChar.
              (WebCore::SegmentedString::append): Ditto.
              (WebCore::SegmentedString::prepend): Ditto.
              (WebCore::SegmentedString::toString): Ditto.
      
              * platform/StringHash.h: Updated to use UChar instead of QChar and for name changes.
              Also changed to use case folding intead of lowercasing for case insensitive hashing.
      
              * platform/StringImpl.h:
              * platform/StringImpl.cpp:
              (WebCore::newUCharVector): Changed to UChar from QChar.
              (WebCore::deleteUCharVector): Ditto.
              (WebCore::StringImpl::StringImpl): Ditto.
              (WebCore::StringImpl::init): Ditto. Also renamed from initWithChar and initWithQChar.
              (WebCore::StringImpl::~StringImpl): Ditto.
              (WebCore::StringImpl::append): Ditto.
              (WebCore::StringImpl::insert): Ditto.
              (WebCore::StringImpl::truncate): Ditto.
              (WebCore::StringImpl::remove): Ditto.
              (WebCore::StringImpl::split): Ditto.
              (WebCore::StringImpl::containsOnlyWhitespace): Ditto. Also added comment because this
              function seems a little broken.
              (WebCore::parseLength): More of the same.
              (WebCore::StringImpl::toCoordsArray): Ditto.
              (WebCore::StringImpl::toLengthArray): Ditto.
              (WebCore::StringImpl::isLower): Ditto.
              (WebCore::StringImpl::lower): Rewrote to use u_strToLower.
              (WebCore::StringImpl::upper): Rewrote to use u_strToUpper.
              (WebCore::StringImpl::foldCase): Added. Uses u_strFoldCase.
              (WebCore::getWordBreakIterator): Changed to use U_FAILURE instead of accepting only
              U_ZERO_ERROR as a success code.
              (WebCore::StringImpl::capitalize): More QChar to UChar changes.
              (WebCore::StringImpl::toInt): Ditto.
              (WebCore::equal): Changed from QChar to UChar and was careful to preserve the old
              semantics where "high ASCII" is treated as U+0080-U+00FF even though I don't know
              if this feature is important.
              (WebCore::equalIgnoringCase): Ditto, but used case folding instead of lowercasing
              by using the u_foldCase and u_memcasecmp functions. Also renamed from
              equalCaseInsensitive for more-consistent naming.
              (WebCore::StringImpl::find): Ditto. Use case folding for the case insensitive branch.
              (WebCore::StringImpl::replace): More of the same.
              (WebCore::StringImpl::computeHash): Ditto.
              (WebCore::StringImpl::ascii): Ditto.
      
              * platform/TextBoundaries.h: Changed from QChar to UChar.
              * platform/mac/TextBoundaries.mm:
              (WebCore::findWordBoundary): Made the change to UChar and removed some type casts.
              (WebCore::findNextWordFromIndex): Ditto.
              (WebCore::findSentenceBoundary): Ditto.
              (WebCore::findNextSentenceFromIndex): Ditto.
      
              * platform/TextEncoding.h:
              * platform/TextEncoding.cpp:
              (WebCore::TextEncoding::backslashAsCurrencySymbol): Changed from QChar to UChar.
              (WebCore::TextEncoding::fromUnicode): More of the same.
              * platform/mac/TextEncodingMac.cpp: (WebCore::TextEncoding::fromUnicode): More
              of the same.
      
              * platform/mac/FontFamilyMac.mm: (WebCore::FontFamily::getNSFamily): Removed a
              now-unneeded type cast.
      
              * platform/mac/FontMac.mm:
              (WebCore::Font::selectionRectForText):
              (WebCore::Font::drawText):
              (WebCore::Font::drawHighlightForText):
              (WebCore::Font::floatWidth):
              (WebCore::Font::checkSelectionPoint):
              Changed QChar to UChar and removed some now-unneeded type casts.
      
              * editing/RebalanceWhitespaceCommand.cpp: (WebCore::isWhitespace):
              * editing/ReplaceSelectionCommand.cpp: (WebCore::ReplaceSelectionCommand::doApply):
              * editing/visible_units.cpp:
              (WebCore::previousBoundary):
              (WebCore::nextBoundary):
              (WebCore::startWordBoundary):
              (WebCore::endWordBoundary):
              (WebCore::previousWordPositionBoundary):
              (WebCore::nextWordPositionBoundary):
              (WebCore::startSentenceBoundary):
              (WebCore::endSentenceBoundary):
              (WebCore::previousSentencePositionBoundary):
              (WebCore::nextSentencePositionBoundary):
              (WebCore::startOfParagraph):
              (WebCore::endOfParagraph):
              * html/HTMLParser.cpp: (WebCore::HTMLParser::handleError):
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::selectionRect):
              (WebCore::InlineTextBox::paint):
              (WebCore::InlineTextBox::paintSelection):
              (WebCore::InlineTextBox::paintMarkedTextBackground):
              (WebCore::InlineTextBox::paintTextMatchMarker):
              (WebCore::InlineTextBox::offsetForPosition):
              (WebCore::InlineTextBox::positionForOffset):
              * rendering/RenderBlock.cpp:
              (WebCore::stripTrailingSpace):
              (WebCore::RenderBlock::updateFirstLetter):
              * rendering/RenderFlexibleBox.cpp:
              (WebCore::RenderFlexibleBox::layoutVerticalBox):
              * rendering/RenderObject.h:
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::backslashAsCurrencySymbol):
              * rendering/RenderTreeAsText.cpp: (quoteAndEscapeNonPrintables):
              * rendering/break_lines.cpp: (WebCore::nextBreakablePosition):
              * rendering/break_lines.h: (WebCore::isBreakable):
              * rendering/render_style.h: (WebCore::RenderStyle::isCollapsibleWhiteSpace):
              * xml/XSLStyleSheet.cpp: (WebCore::XSLStyleSheet::parseString):
              * xml/xmlhttprequest.cpp:
              (WebCore::getMIMEType):
              (WebCore::getCharset):
              Changed QChar to UChar.
      
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::imageChanged): Changed QChar to UChar.
              (WebCore::RenderImage::paint): Changed callers of drawText to no-longer pass 0
              for the horizontal alignment, since I removed that parameters.
      
              * rendering/RenderText.h: Changed QChar to UChar.
              * rendering/RenderText.cpp:
              (WebCore::characterBreakIterator): Update for name change.
              (WebCore::RenderText::RenderText): Ditto.
              (WebCore::RenderText::allAscii): Remove uneeded unicode() and allow the value
              U+007F to count as ASCII.
              (WebCore::RenderText::cacheWidths): Changed QChar to UChar.
              (WebCore::RenderText::widthFromCache): Changed code that deals with direction to
              use the ICU direction calls.
              (WebCore::RenderText::trimmedMinMaxWidth): Changed QChar to UChar.
              (WebCore::RenderText::calcMinMaxWidth): Ditto.
              (WebCore::RenderText::containsOnlyWhitespace): Ditto.
              (WebCore::RenderText::setText): Ditto.
              (WebCore::RenderText::width): Ditto.
      
              * rendering/RenderTextField.cpp:
              (WebCore::RenderTextField::updateFromElement): Removed unneeded QChar cast.
              (WebCore::RenderTextField::calcMinMaxWidth): Changed from QChar to UChar.
      
              * rendering/bidi.h:
              * rendering/bidi.cpp:
              (WebCore::BidiIterator::BidiIterator):
              (WebCore::BidiState::BidiState):
              (WebCore::BidiContext::BidiContext):
              (WebCore::bidiNext):
              (WebCore::bidiFirst):
              (WebCore::BidiIterator::current):
              (WebCore::BidiIterator::direction):
              (WebCore::addRun):
              (WebCore::checkMidpoints):
              (WebCore::appendRun):
              (WebCore::embed):
              (WebCore::RenderBlock::tabWidth):
              (WebCore::RenderBlock::computeHorizontalPositionsForLine):
              (WebCore::RenderBlock::bidiReorderLine):
              (WebCore::RenderBlock::layoutInlineChildren):
              (WebCore::skipNonBreakingSpace):
              (WebCore::RenderBlock::skipWhitespace):
              (WebCore::RenderBlock::findNextLineBreak):
              (WebCore::RenderBlock::checkLinesForTextOverflow):
              Changed from QChar to UChar and all direction from QChar constants to the
              ones from ICU.
      
              * rendering/render_form.cpp:
              (WebCore::RenderLineEdit::updateFromElement):
              (WebCore::RenderSelect::updateFromElement):
              (WebCore::RenderTextArea::updateFromElement):
              (WebCore::RenderTextArea::text):
              (WebCore::RenderTextArea::textWithHardLineBreaks):
              Got rid of now-unneeded QChar type casts.
      
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::placeBoxesHorizontally): Updated for change from QChar
              to UChar.
              (WebCore::EllipsisBox::paint): Updated for unicode() -> characters() name change.
      
              * rendering/render_list.cpp:
              (WebCore::toRoman): Updated from QChar to UChar.
              (WebCore::toLetterString): Ditto.
              (WebCore::toHebrew): More of the same, also cleaned up the logic a bit.
              (WebCore::RenderListMarker::paint): Removed the alignment parameters from the
              various functions. Also removed all reliance on the width-measuring functions
              that take a string.
              (WebCore::RenderListMarker::calcMinMaxWidth): More of the same.
              (WebCore::RenderListMarker::getRelativeMarkerRect): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14273 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7ab3109f
    • mjs's avatar
      JavaScriptCore: · bb863518
      mjs authored
              Rubber stamped by Anders.
              
              - renamed kxmlcore to wtf
              
              kxmlcore --> wtf
              KXMLCore --> WTF
              WKC --> WTF
      
              * JavaScriptCore.xcodeproj/project.pbxproj:
              * bindings/c/c_instance.cpp:
              * bindings/objc/WebScriptObject.mm:
              * kjs/JSImmediate.h:
              * kjs/Parser.cpp:
              * kjs/Parser.h:
              * kjs/array_object.cpp:
              * kjs/collector.cpp:
              (KJS::Collector::registerThread):
              * kjs/collector.h:
              * kjs/config.h:
              * kjs/function.cpp:
              (KJS::isStrWhiteSpace):
              * kjs/function.h:
              * kjs/identifier.cpp:
              * kjs/internal.cpp:
              * kjs/internal.h:
              * kjs/lexer.cpp:
              (Lexer::shift):
              (Lexer::isWhiteSpace):
              (Lexer::isIdentStart):
              (Lexer::isIdentPart):
              * kjs/lookup.cpp:
              * kjs/nodes.cpp:
              * kjs/nodes.h:
              * kjs/number_object.cpp:
              * kjs/object.h:
              * kjs/property_map.cpp:
              * kjs/property_map.h:
              * kjs/string_object.cpp:
              (StringProtoFunc::callAsFunction):
              * kjs/testkjs.cpp:
              (testIsInteger):
              * kjs/ustring.cpp:
              * kjs/ustring.h:
              * kxmlcore: Removed.
              * kxmlcore/AlwaysInline.h: Removed.
              * kxmlcore/Assertions.cpp: Removed.
              * kxmlcore/Assertions.h: Removed.
              * kxmlcore/FastMalloc.cpp: Removed.
              * kxmlcore/FastMalloc.h: Removed.
              * kxmlcore/FastMallocInternal.h: Removed.
              * kxmlcore/Forward.h: Removed.
              * kxmlcore/HashCountedSet.h: Removed.
              * kxmlcore/HashFunctions.h: Removed.
              * kxmlcore/HashMap.h: Removed.
              * kxmlcore/HashSet.h: Removed.
              * kxmlcore/HashTable.cpp: Removed.
              * kxmlcore/HashTable.h: Removed.
              * kxmlcore/HashTraits.h: Removed.
              * kxmlcore/ListRefPtr.h: Removed.
              * kxmlcore/Noncopyable.h: Removed.
              * kxmlcore/OwnArrayPtr.h: Removed.
              * kxmlcore/OwnPtr.h: Removed.
              * kxmlcore/PassRefPtr.h: Removed.
              * kxmlcore/Platform.h: Removed.
              * kxmlcore/RefPtr.h: Removed.
              * kxmlcore/TCPageMap.h: Removed.
              * kxmlcore/TCSpinLock.h: Removed.
              * kxmlcore/TCSystemAlloc.cpp: Removed.
              * kxmlcore/TCSystemAlloc.h: Removed.
              * kxmlcore/UnusedParam.h: Removed.
              * kxmlcore/Vector.h: Removed.
              * kxmlcore/VectorTraits.h: Removed.
              * kxmlcore/unicode: Removed.
              * kxmlcore/unicode/Unicode.h: Removed.
              * kxmlcore/unicode/UnicodeCategory.h: Removed.
              * kxmlcore/unicode/icu: Removed.
              * kxmlcore/unicode/icu/UnicodeIcu.h: Removed.
              * kxmlcore/unicode/posix: Removed.
              * kxmlcore/unicode/qt3: Removed.
              * kxmlcore/unicode/qt4: Removed.
              * kxmlcore/unicode/qt4/UnicodeQt4.h: Removed.
              * pcre/pcre_get.c:
              * wtf: Added.
              * wtf/Assertions.cpp:
              * wtf/Assertions.h:
              * wtf/FastMalloc.cpp:
              (WTF::TCMalloc_ThreadCache::Scavenge):
              (WTF::do_malloc):
              (WTF::do_free):
              (WTF::TCMallocGuard::TCMallocGuard):
              (WTF::malloc):
              (WTF::free):
              (WTF::calloc):
              (WTF::cfree):
              (WTF::realloc):
              * wtf/FastMalloc.h:
              * wtf/FastMallocInternal.h:
              * wtf/Forward.h:
              * wtf/HashCountedSet.h:
              * wtf/HashFunctions.h:
              * wtf/HashMap.h:
              * wtf/HashSet.h:
              * wtf/HashTable.cpp:
              * wtf/HashTable.h:
              * wtf/HashTraits.h:
              * wtf/ListRefPtr.h:
              * wtf/Noncopyable.h:
              * wtf/OwnArrayPtr.h:
              * wtf/OwnPtr.h:
              * wtf/PassRefPtr.h:
              * wtf/RefPtr.h:
              * wtf/TCSystemAlloc.cpp:
              (TCMalloc_SystemAlloc):
              * wtf/Vector.h:
              * wtf/VectorTraits.h:
              * wtf/unicode/UnicodeCategory.h:
              * wtf/unicode/icu/UnicodeIcu.h:
      
      JavaScriptGlue:
      
              Rubber stamped by Anders.
              
              - renamed kxmlcore to wtf
              
              kxmlcore --> wtf
              KXMLCore --> WTF
              WKC --> WTF
      
              * config.h:
              * kxmlcore: Removed.
              * kxmlcore/AlwaysInline.h: Removed.
              * kxmlcore/Assertions.h: Removed.
              * kxmlcore/FastMalloc.h: Removed.
              * kxmlcore/Forward.h: Removed.
              * kxmlcore/HashCountedSet.h: Removed.
              * kxmlcore/HashSet.h: Removed.
              * kxmlcore/Noncopyable.h: Removed.
              * kxmlcore/OwnArrayPtr.h: Removed.
              * kxmlcore/OwnPtr.h: Removed.
              * kxmlcore/PassRefPtr.h: Removed.
              * kxmlcore/Platform.h: Removed.
              * kxmlcore/RefPtr.h: Removed.
              * kxmlcore/Vector.h: Removed.
              * wtf: Added.
      
      WebCore:
      
              Rubber stamped by Anders.
              
              - renamed kxmlcore to wtf
              
              kxmlcore --> wtf
              KXMLCore --> WTF
              WKC --> WTF
      
              * ForwardingHeaders/kxmlcore: Removed.
              * ForwardingHeaders/kxmlcore/AlwaysInline.h: Removed.
              * ForwardingHeaders/kxmlcore/Assertions.h: Removed.
              * ForwardingHeaders/kxmlcore/FastMalloc.h: Removed.
              * ForwardingHeaders/kxmlcore/Forward.h: Removed.
              * ForwardingHeaders/kxmlcore/HashCountedSet.h: Removed.
              * ForwardingHeaders/kxmlcore/HashMap.h: Removed.
              * ForwardingHeaders/kxmlcore/HashSet.h: Removed.
              * ForwardingHeaders/kxmlcore/HashTraits.h: Removed.
              * ForwardingHeaders/kxmlcore/Noncopyable.h: Removed.
              * ForwardingHeaders/kxmlcore/OwnArrayPtr.h: Removed.
              * ForwardingHeaders/kxmlcore/OwnPtr.h: Removed.
              * ForwardingHeaders/kxmlcore/PassRefPtr.h: Removed.
              * ForwardingHeaders/kxmlcore/Platform.h: Removed.
              * ForwardingHeaders/kxmlcore/RefPtr.h: Removed.
              * ForwardingHeaders/kxmlcore/Vector.h: Removed.
              * ForwardingHeaders/wtf: Added.
              * bindings/js/JSHTMLElementWrapperFactory.h:
              * bindings/js/kjs_binding.cpp:
              * bindings/js/kjs_window.h:
              * bindings/objc/DOMImplementationFront.h:
              * bridge/JavaAppletWidget.h:
              * bridge/mac/WebCoreFrameNamespaces.mm:
              * bridge/mac/WebCorePageBridge.mm:
              (initializeLogChannel):
              * bridge/mac/WebCoreStringTruncator.mm:
              * bridge/mac/WebCoreViewFactory.m:
              * config.h:
              * css/css_base.h:
              * css/css_valueimpl.h:
              * css/csshelper.cpp:
              * css/cssparser.h:
              * dom/DOMImplementation.h:
              * dom/Document.h:
              * dom/NamedNodeMap.h:
              * dom/Node.h:
              * dom/NodeList.h:
              * dom/QualifiedName.cpp:
              * dom/Range.h:
              * dom/StyledElement.cpp:
              * dom/dom2_traversalimpl.h:
              * dom/xml_tokenizer.h:
              * editing/RebalanceWhitespaceCommand.cpp:
              * editing/RemoveCSSPropertyCommand.cpp:
              * editing/RemoveNodeAttributeCommand.cpp:
              * editing/RemoveNodeCommand.cpp:
              * editing/RemoveNodePreservingChildrenCommand.cpp:
              * editing/ReplaceSelectionCommand.h:
              * editing/Selection.cpp:
              * editing/SetNodeAttributeCommand.cpp:
              * editing/SplitElementCommand.cpp:
              * editing/SplitTextNodeCommand.cpp:
              * editing/SplitTextNodeContainingElementCommand.cpp:
              * editing/TextIterator.h:
              * editing/htmlediting.h:
              * editing/markup.h:
              * html/CanvasGradient.h:
              * html/CanvasRenderingContext2D.h:
              * html/CanvasStyle.cpp:
              * html/HTMLCollection.h:
              * html/HTMLElementFactory.h:
              * kcanvas/KCanvasFilters.cpp:
              * kcanvas/KCanvasPath.h:
              * kcanvas/RenderPath.cpp:
              * kcanvas/RenderSVGImage.cpp:
              * kcanvas/RenderSVGText.cpp:
              * kcanvas/device/quartz/KCanvasItemQuartz.mm:
              * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
              * kcanvas/device/quartz/QuartzSupport.mm:
              * ksvg2/misc/KSVGTimeScheduler.h:
              * ksvg2/misc/SVGDocumentExtensions.h:
              * ksvg2/scripts/make_names.pl:
              * ksvg2/svg/SVGDOMImplementation.cpp:
              * ksvg2/svg/SVGExternalResourcesRequired.h:
              * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
              * ksvg2/svg/SVGForeignObjectElement.cpp:
              * ksvg2/svg/SVGImageElement.cpp:
              * ksvg2/svg/SVGMaskElement.cpp:
              * ksvg2/svg/SVGStyledElement.cpp:
              * ksvg2/svg/SVGTests.h:
              * ksvg2/svg/SVGTransform.h:
              * ksvg2/svg/SVGTransformable.cpp:
              * kwq/AccessibilityObjectCache.h:
              * kwq/KWQCString.cpp:
              * kwq/KWQFormData.mm:
              * kwq/KWQListBox.mm:
              * kwq/KWQResourceLoader.mm:
              * kwq/KWQTextEdit.mm:
              * loader/Cache.h:
              * loader/CachedObject.h:
              * loader/CachedObjectClientWalker.h:
              * loader/Decoder.h:
              * loader/DocLoader.h:
              * loader/loader.cpp:
              * loader/loader.h:
              * page/DOMWindow.h:
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/FrameTree.cpp:
              * page/Page.cpp:
              * page/Page.h:
              * page/Plugin.h:
              * platform/Arena.cpp:
              * platform/ArrayImpl.h:
              * platform/AtomicString.cpp:
              * platform/CharsetNames.cpp:
              * platform/Color.cpp:
              * platform/DeprecatedPtrListImpl.cpp:
              * platform/DeprecatedValueListImpl.h:
              * platform/FontFallbackList.h:
              * platform/GraphicsContext.h:
              * platform/GraphicsTypes.cpp:
              * platform/Image.h:
              * platform/KURL.cpp:
              * platform/Logging.cpp:
              * platform/Logging.h:
              * platform/PlatformString.h:
              * platform/PlugInInfoStore.h:
              * platform/StreamingTextDecoder.cpp:
              * platform/StreamingTextDecoder.h:
              * platform/String.cpp:
              * platform/StringHash.h:
              * platform/StringImpl.cpp:
              * platform/StringImpl.h:
              * platform/TextEncoding.cpp:
              * platform/Timer.cpp:
              * platform/Timer.h:
              * platform/TransferJob.h:
              * platform/TransferJobInternal.h:
              * platform/mac/BlockExceptions.mm:
              * platform/mac/ColorMac.mm:
              * platform/mac/FontData.mm:
              * platform/mac/KURLMac.mm:
              * platform/mac/QStringMac.mm:
              * platform/mac/SharedTimerMac.cpp:
              * platform/mac/TextEncodingMac.cpp:
              * platform/mac/WebCoreImageRendererFactory.m:
              * platform/mac/WebCoreKeyGenerator.m:
              * platform/mac/WebCoreTextArea.mm:
              * platform/mac/WebCoreTextField.mm:
              * platform/mac/WebTextRendererFactory.h:
              * platform/mac/WebTextRendererFactory.mm:
              * platform/win/TemporaryLinkStubs.cpp:
              (JavaAppletWidget::JavaAppletWidget):
              * rendering/InlineTextBox.cpp:
              * rendering/RenderText.cpp:
              * rendering/RenderTreeAsText.cpp:
              * rendering/bidi.cpp:
              * xml/XSLTProcessor.h:
              * xpath/impl/XPathExpressionNode.h:
              * xpath/impl/XPathParser.h:
              * xpath/impl/XPathPath.h:
              * xpath/impl/XPathUtil.h:
      
      WebKit:
      
              Rubber stamped by Anders.
              
              - renamed kxmlcore to wtf
              
              kxmlcore --> wtf
              KXMLCore --> WTF
              WKC --> WTF
      
              * Misc/WebKitLogging.h:
              * Misc/WebKitLogging.m:
              (initializeLogChannel):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14256 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bb863518
  5. 04 May, 2006 1 commit
    • tomernic's avatar
      WebCore: · 3b1b8029
      tomernic authored
              Reviewed by John Sullivan.
      
              <rdar://problem/4480186> Give WebKit plugins access to their own DOM element
      
              * bridge/mac/WebCoreFrameBridge.h:
              Added DOMElement: parameter to -viewForPluginWithURL:attributeNames:attributueValues:MIMEType:
      
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::createPlugin):
              Added "element" parameter; wrap element in DOMElement and pass up to the bridge.
      
              * page/Frame.h:
              Added "element" parameter to createPlugin().
              * page/Frame.cpp:
              (WebCore::Frame::loadPlugin):
              Get the plugin's DOM element and pass to createPlugin().
      
      WebKit:
      
              Reviewed by John Sullivan.
      
              <rdar://problem/4480186> Give WebKit plugins access to their own DOM element
      
              This does not fix <rdar://problem/4480187> Give Netscape plugins access to their own DOM element --
              we're not going to use the ObjC DOM API for that, but rather the NP bindings API.
      
              * Plugins/WebPluginPackage.m:
              Declared WebPlugInContainingElementKey.  This is not a new plugin argument -- it's been in our public
              headers since all along, but has never been concretely declared -- plugins that referenced it would not
              link.
      
              * WebCoreSupport/WebFrameBridge.m:
              (-[WebFrameBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:DOMElement:]):
              Added DOMElement parameter, which is now included in the plugin arguments dictionary.
              (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:]):
              ditto
      
              * WebKit.exp:
              Export WebPlugInContainingElementKey.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14185 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3b1b8029
  6. 22 Apr, 2006 1 commit
    • mjs's avatar
      Reviewed by Eric. · 34c9b100
      mjs authored
              - push down a bunch of WebCoreFrameBridge code to C++ (plus some reformatting)
      
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge isDescendantOfFrame:]):
              (-[WebCoreFrameBridge traverseNextFrameStayWithin:]):
              (-[WebCoreFrameBridge nextFrameWithWrap:]):
              (-[WebCoreFrameBridge previousFrameWithWrap:]):
              (+[WebCoreFrameBridge bridgeForDOMDocument:]):
              (-[WebCoreFrameBridge parent]):
              (-[WebCoreFrameBridge addData:]):
              (-[WebCoreFrameBridge didNotOpenURL:pageCache:]):
              (-[WebCoreFrameBridge restoreDocumentState]):
              (-[WebCoreFrameBridge _stringWithDocumentTypeStringAndMarkupString:]):
              (-[WebCoreFrameBridge nodesFromList:]):
              (-[WebCoreFrameBridge markupStringFromNode:nodes:]):
              (-[WebCoreFrameBridge markupStringFromRange:nodes:]):
              (-[WebCoreFrameBridge rangeByExpandingSelectionWithGranularity:]):
              (-[WebCoreFrameBridge rangeByAlteringCurrentSelection:direction:granularity:]):
              (-[WebCoreFrameBridge alterCurrentSelection:direction:granularity:]):
              (-[WebCoreFrameBridge rangeByAlteringCurrentSelection:verticalDistance:]):
              (-[WebCoreFrameBridge alterCurrentSelection:verticalDistance:]):
              (-[WebCoreFrameBridge replaceMarkedTextWithText:]):
              (-[WebCoreFrameBridge replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
              (-[WebCoreFrameBridge increaseSelectionListLevel]):
              (-[WebCoreFrameBridge decreaseSelectionListLevel]):
              (-[WebCoreFrameBridge insertLineBreak]):
              (-[WebCoreFrameBridge insertParagraphSeparator]):
              (-[WebCoreFrameBridge insertParagraphSeparatorInQuotedContent]):
              (-[WebCoreFrameBridge insertText:selectInsertedText:]):
              (-[WebCoreFrameBridge deleteSelectionWithSmartDelete:]):
              (-[WebCoreFrameBridge ensureSelectionVisible]):
              (-[WebCoreFrameBridge RenderObject::nodeInfoAtPoint:allowShadowContent:]):
              * page/Frame.cpp:
              (WebCore::Frame::nodeInfoAtPoint):
              (WebCore::Frame::hasSelection):
              (WebCore::Frame::documentTypeString):
              * page/Frame.h:
              * page/FrameTree.cpp:
              (WebCore::FrameTree::traverseNextWithWrap):
              (WebCore::FrameTree::traversePreviousWithWrap):
              (WebCore::FrameTree::deepLastChild):
              * page/FrameTree.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14009 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      34c9b100
  7. 16 Apr, 2006 1 commit
    • darin's avatar
      Reviewed by Adele and Justin. · 817909f9
      darin authored
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8298
                REGRESSION: Crash occurs when attempting to drag selection into
                Depart/Return input fields at http://www.travelocity.com/
              - remove the mutation event listener that's installed all the time,
                since it slows things down a bit
      
              Calling SelectionController::nodeWillBeRemoved from Document::notifyBeforeNodeRemoval
              fixes the crash, which was happening because the call that was removing the text
              node, removeChildren, does not send a "node removed" mutation event (it sends a
              "subtree modified" mutation event instead). So this change alone fixes the crash.
      
              But I also changed setInnerText to not blow away the text node each time the value
              is changed, and that makes the test case behave even better -- you don't even lose
              the selection; it works as it did with the NSTextField-based text field.
      
              * manual-tests/input-empty-on-focus.html: Added.
      
              * page/Frame.h: Tweaked a few comments and functions related to selection.
              * page/Frame.cpp: (WebCore::Frame::dragCaret): Made non-const.
      
              * dom/Document.cpp: (WebCore::Document::notifyBeforeNodeRemoval):
              Call nodeWillBeRemoved on the two selection controllers before removing
              a node from the document.
      
              * editing/SelectionController.h: Tweak formatting. Remove MutationListener
              class and m_mutationListener field.
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::SelectionController): Remove code to set up
              the mutation event listener.
              (WebCore::SelectionController::setSelection): Remove code to maintain the
              mutation event listener.
      
              * html/HTMLElement.cpp:
              (WebCore::HTMLElement::setInnerHTML): In cases where the container has only a
              single child use replaceChild, and in cases where the HTML being inserted
              also has only a single child and both are text nodes use setData. It's common
              to use setInnerHTML to set something that's just text.
              (WebCore::HTMLElement::setInnerText): Same as above, but simpler since the
              thing we're replacing with is always text.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13889 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      817909f9
  8. 14 Apr, 2006 1 commit
    • hyatt's avatar
      CSS vendor-specific property/value cleanup. Properly qualify background-clip, · 21d3140f
      hyatt authored
              background-origin, border-image and the border-radius properties.  Make sure
              our overflow extensions of marquee and overlay are qualified as well.  Rename
              the -khtml- extension to -webkit.
      
              Reviewed by beth
      
              * bindings/js/kjs_css.cpp:
              (KJS::cssPropertyName):
              * bindings/objc/DOMCSS.mm:
              (-[DOMCSSStyleDeclaration _fontSizeDelta]):
              (-[DOMCSSStyleDeclaration _setFontSizeDelta:]):
              * bindings/objc/DOMHTML.mm:
              (-[DOMHTMLInputElement _setAutofilled:]):
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::):
              (WebCore::valueForTextAlign):
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              * css/CSSGrammar.y:
              * css/CSSPropertyNames.in:
              * css/CSSValueKeywords.in:
              * css/css_base.cpp:
              (WebCore::CSSSelector::extractPseudoType):
              * css/css_valueimpl.cpp:
              (WebCore::):
              * css/css_valueimpl.h:
              * css/cssparser.cpp:
              (WebCore::CSSParser::parseRule):
              (WebCore::CSSParser::parseValue):
              (WebCore::CSSParser::parseColor):
              (WebCore::CSSParser::parseDeclaration):
              (WebCore::CSSParser::parseBackgroundShorthand):
              (WebCore::CSSParser::parseBackgroundColor):
              (WebCore::CSSParser::parseBackgroundProperty):
              (WebCore::CSSParser::parseFontFamily):
              (WebCore::CSSParser::parseShadow):
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::applyDeclarations):
              (WebCore::CSSStyleSelector::applyProperty):
              (WebCore::CSSStyleSelector::getColorFromPrimitiveValue):
              * css/cssstyleselector.h:
              * css/html4.css:
              * css/quirks.css:
              * css/tokenizer.flex:
              * editing/ApplyStyleCommand.cpp:
              (WebCore::StyleChange::init):
              (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
              (WebCore::ApplyStyleCommand::removeInlineStyle):
              * editing/CompositeEditCommand.cpp:
              (WebCore::blockPlaceholderClassString):
              * editing/JSEditor.cpp:
              * editing/ReplaceSelectionCommand.cpp:
              (WebCore::ReplaceSelectionCommand::fixupNodeStyles):
              (WebCore::styleForNode):
              * editing/htmlediting.cpp:
              (WebCore::rebalanceWhitespaceInTextNode):
              * html/HTMLElement.cpp:
              (WebCore::HTMLElement::addHTMLAlignment):
              (WebCore::HTMLElement::setContentEditable):
              * html/html_blockimpl.cpp:
              (WebCore::HTMLDivElement::parseMappedAttribute):
              (WebCore::HTMLParagraphElement::parseMappedAttribute):
              (WebCore::HTMLMarqueeElement::parseMappedAttribute):
              * html/html_inlineimpl.cpp:
              (WebCore::HTMLFontElement::parseMappedAttribute):
              * html/html_tableimpl.cpp:
              (WebCore::HTMLTablePartElement::parseMappedAttribute):
              (WebCore::HTMLTableCellElement::parseMappedAttribute):
              * page/Frame.cpp:
              (WebCore::Frame::canMouseDownStartSelect):
              * page/Frame.h:
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::draggableNode):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13874 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      21d3140f
  9. 13 Apr, 2006 2 commits
    • ggaren's avatar
      JavaScriptCore: · 2f992b39
      ggaren authored
              Reviewed by Darin.
      
              * kjs/internal.cpp:
              (KJS::InterpreterImp::initGlobalObject): Add the built-in object
              prototype to the end of the global object's prototype chain instead of
              just blowing away its existing prototype. We need to do this because
              the window object has a meaningful prototype now.
      
      LayoutTests:
      
              Layout test for document.defaultView
      
              * fast/dom/defaultView-expected.txt: Added.
              * fast/dom/defaultView.html: Added.
              * fast/events/event-view-toString-expected.txt: Updated to reflect new
              prototype chain for defaultView.
      
      WebCore:
      
              Reviewed by Darin.
      
              - Fixed <rdar://problem/4478467> document.defaultView should return 
              the window object
              
              Also made part of the window object autogenerated by IDL file.
              
              * DerivedSources.make: Added /page to IDL file search path, added
              JSDOMWindow.h, removed kjs_views.lut.h
              * WebCore.xcodeproj/project.pbxproj: Added missing files, removed
              obsolete files
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_events.cpp:
              * bindings/js/kjs_proxy.cpp:
              (WebCore::KJSProxy::initScriptIfNeeded):
              * bindings/js/kjs_views.cpp: Removed.
              * bindings/js/kjs_views.h: Removed.
              * bindings/js/kjs_window.cpp: Removed document property -- it now
              belongs to JSDOMWindow. Added toJS and toDOMWindow.
              (KJS::Window::Window):
              (KJS::Window::impl):
              (KJS::Window::getValueProperty):
              (KJS::Window::clear): Added call to setPrototype to ensure
              that the prototype gets cleared during navigation. (Previously
              this wasn't an issue because the window object had no real prototype.)
              (WebCore::toJS):
              (WebCore::toDOMWindow):
              * bindings/js/kjs_window.h:
              (KJS::Window::):
              * bindings/objc/DOMCSS.mm: Added NULL checks for the AbstractView
              (Presumably this is an issue after the window is closed.) Typedef-ed
              AbstractView as DOMWindow. I could have just replaced AbstractView
              with DOMWindow, but I think it's clearer to say, "There's this thing
              called the AbstractView, but really it's just the window."
              (-[DOMDocument getComputedStyle::]):
              (-[DOMDocument getMatchedCSSRules::]):
              * bindings/objc/DOMViews.mm:
              * bindings/objc/DOMViewsInternal.h:
              * bindings/scripts/CodeGeneratorJS.pm: Removed unused
              GetLegacyImplementationIncludes. Added support for DOMWindow and new
              "DoNotCache" attribute. Replaced C macros with text because (1) it
              makes the generated source easier to read and debug and (2) it made 
              it much easier to implement the DoNotCache attribute.
              * bindings/scripts/IDLParser.pm: Return a hash reference instead of
              a hash, because otherwise an interface with more than one attribute
              returns too many arguments to be processed.
              * bridge/mac/FrameMac.mm:
              * dom/AbstractView.cpp: Removed.
              * dom/AbstractView.h: Removed.
              * dom/Document.cpp:
              (WebCore::Document::Document):
              (WebCore::Document::defaultView):
              * dom/Document.h:
              * dom/Document.idl:
              * dom/KeyboardEvent.idl:
              * dom/MouseEvent.idl:
              * dom/Position.cpp:
              * dom/UIEvent.idl:
              * dom/dom2_eventsimpl.h:
              * page/DOMWindow.cpp: Added.
              (WebCore::DOMWindow::DOMWindow):
              (WebCore::DOMWindow::frame):
              (WebCore::DOMWindow::disconnectFrame):
              (WebCore::DOMWindow::document):
              (WebCore::DOMWindow::getComputedStyle):
              (WebCore::DOMWindow::getMatchedCSSRules):
              * page/DOMWindow.h: Added.
              * page/DOMWindow.idl: Added.
              * page/Frame.cpp:
              (WebCore::Frame::~Frame): Disconnect the new DOMWindow object in
              addition to the Window object. Maybe we can unify this in the future.
              (WebCore::Frame::tree):
              (WebCore::Frame::domWindow):
              * page/Frame.h:
              * page/FramePrivate.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13865 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2f992b39
    • darin's avatar
      Rubber-stamped by Anders. · 6142065b
      darin authored
              - get ready for some more de-KWQ-ing done by the renaming script in two ways
                  1) stop using forwarding headers for things within WebCore
                  2) remove a bit of unused stuff
      
              * loader/CachedImage.h:
              * loader/CachedImage.cpp:
              * loader/DocLoader.cpp:
              * loader/DocLoader.h:
              * page/Frame.cpp:
              * xml/XSLTProcessor.cpp:
              Removed unused showAnimations functions and data. We can add back later if we need it.
              And if we do, we won't use a typedef from KHTMLSettings.
      
              * ForwardingHeaders/java: Removed.
              * ForwardingHeaders/java/kjavaappletwidget.h: Removed.
              * ForwardingHeaders/khtml_settings.h: Removed.
              * ForwardingHeaders/kio: Removed.
              * ForwardingHeaders/kio/global.h: Removed.
              * ForwardingHeaders/ksslkeygen.h: Removed.
              * ForwardingHeaders/q3ptrlist.h: Removed.
              * ForwardingHeaders/q3valuelist.h: Removed.
              * ForwardingHeaders/qcombobox.h: Removed.
              * ForwardingHeaders/qfontmetrics.h: Removed.
              * ForwardingHeaders/qlineedit.h: Removed.
              * ForwardingHeaders/qmatrix.h: Removed.
              * ForwardingHeaders/qptrlist.h: Removed.
              * ForwardingHeaders/qptrqueue.h: Removed.
              * ForwardingHeaders/qregexp.h: Removed.
              * ForwardingHeaders/qscrollbar.h: Removed.
              * ForwardingHeaders/qtextedit.h: Removed.
              * ForwardingHeaders/qtextstream.h: Removed.
              * ForwardingHeaders/qvaluelist.h: Removed.
              * ForwardingHeaders/qwmatrix.h: Removed.
      
              * WebCore+SVG/DOMList.h:
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_dom.h:
              * bindings/js/kjs_window.cpp:
              * css/css_stylesheetimpl.h:
              * css/css_valueimpl.cpp:
              * css/css_valueimpl.h:
              * css/cssstyleselector.cpp:
              * dom/CharacterData.cpp:
              * dom/Document.cpp:
              * dom/Document.h:
              * dom/EventTargetNode.cpp:
              * dom/Node.cpp:
              * editing/BreakBlockquoteCommand.h:
              * editing/htmlediting.cpp:
              * html/FormDataList.h:
              * html/HTMLKeygenElement.cpp:
              * html/HTMLTokenizer.h:
              * html/html_objectimpl.cpp:
              * kcanvas/KCanvasFilters.cpp:
              * kcanvas/KCanvasMatrix.cpp:
              * kcanvas/KCanvasMatrix.h:
              * kcanvas/KCanvasPath.cpp:
              * kcanvas/KCanvasPath.h:
              * kcanvas/KCanvasResources.cpp:
              * kcanvas/KCanvasTreeDebug.h:
              * kcanvas/RenderForeignObject.h:
              * kcanvas/RenderPath.h:
              * kcanvas/RenderSVGImage.h:
              * kcanvas/RenderSVGText.h:
              * kcanvas/device/KRenderingPaintServerGradient.cpp:
              * kcanvas/device/KRenderingPaintServerPattern.cpp:
              * kcanvas/device/KRenderingPaintServerSolid.cpp:
              * kcanvas/device/quartz/KCanvasItemQuartz.h:
              * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
              * ksvg2/svg/SVGColor.cpp:
              * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
              * ksvg2/svg/SVGDocument.h:
              * ksvg2/svg/SVGFEBlendElement.cpp:
              * ksvg2/svg/SVGFEColorMatrixElement.cpp:
              * ksvg2/svg/SVGFEComponentTransferElement.cpp:
              * ksvg2/svg/SVGFECompositeElement.cpp:
              * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
              * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
              * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
              * ksvg2/svg/SVGFELightElement.cpp:
              * ksvg2/svg/SVGFEMergeElement.cpp:
              * ksvg2/svg/SVGFEOffsetElement.cpp:
              * ksvg2/svg/SVGFESpecularLightingElement.cpp:
              * ksvg2/svg/SVGFETileElement.cpp:
              * ksvg2/svg/SVGFETurbulenceElement.cpp:
              * ksvg2/svg/SVGFitToViewBox.cpp:
              * ksvg2/svg/SVGLengthList.cpp:
              * ksvg2/svg/SVGMatrix.h:
              * ksvg2/svg/SVGNumberList.cpp:
              * ksvg2/svg/SVGPreserveAspectRatio.cpp:
              * ksvg2/svg/SVGSVGElement.cpp:
              * ksvg2/svg/SVGStringList.cpp:
              * ksvg2/svg/SVGStyledElement.h:
              * ksvg2/svg/SVGStyledTransformableElement.cpp:
              * ksvg2/svg/SVGTransformable.cpp:
              * ksvg2/svg/SVGURIReference.h:
              * ksvg2/svg/svgpathparser.cpp:
              * kwq/KWQKHTMLSettings.h:
              * loader/Cache.h:
              * loader/CachedObject.h:
              * loader/Decoder.cpp:
              * loader/FormData.h:
              * loader/loader.h:
              * page/Frame.h:
              * page/FramePrivate.h:
              * platform/Font.cpp:
              * platform/SegmentedString.h:
              * platform/mac/FontMac.mm:
              * platform/mac/WebCoreTextField.mm:
              * rendering/RenderBlock.cpp:
              * rendering/RenderObject.cpp:
              * rendering/RenderTable.cpp:
              * rendering/RenderTableCell.cpp:
              * rendering/RenderTableCol.cpp:
              * rendering/RenderTableSection.cpp:
              * rendering/bidi.h:
              * rendering/break_lines.cpp:
              * rendering/render_applet.cpp:
              * rendering/render_form.cpp:
              * rendering/render_form.h:
              * rendering/render_frames.cpp:
              * rendering/render_style.h:
              * xml/xmlhttprequest.cpp:
              Updated includes.
      
              * WebCore.xcodeproj/project.pbxproj: Resorted a couple things.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13858 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6142065b
  10. 12 Apr, 2006 1 commit
    • adele's avatar
      LayoutTests: · 174364d6
      adele authored
              Test for setSelectionRange bug in text fields.
      
              * fast/forms/input-delete-expected.txt: Added.
              * fast/forms/input-delete.html: Added.
      
      WebCore:
      
              Reviewed by Darin and Tim O.
      
              WebCore part of fix for:
              http://bugzilla.opendarwin.org/show_bug.cgi?id=8061
              REGRESSION: New text fields need to send callbacks used by autocomplete
      
              Fix for:
              http://bugzilla.opendarwin.org/show_bug.cgi?id=8156
              FrameMac::submitForm is busted after Vector changes
      
              * bindings/objc/DOMHTML.mm:
              (-[DOMHTMLInputElement _rectOnScreen]): Use boundingBox method so this no longer relies on an NSTextField.  
              The old code is no longer needed because this method was used by autocomplete, and that was not enabled for password or search fields.
              (-[DOMHTMLInputElement _replaceCharactersInRange:withString:selectingFromIndex:]): New implementation that uses setValue and setSelectionRange
              instead of NSTextField specific code.
              (-[DOMHTMLInputElement _selectedRange]): Creates range by calling selectionStart and selectionEnd on the input element.
              (-[DOMHTMLInputElement _setAutofilled:]): Provides a way for the autofill code to set a flag on the input element so
               it knows when its value is set by autofill.  This is how we change the background color.
              * bindings/objc/DOMPrivate.h: Removed _displayedValue, _setDisplayedValue, _setBackgroundColor since these are no
               longer needed for the new text field implementation, and aren't used for remaining NSView-style password and search fields.
               Added _setAutofilled method.
              * bridge/mac/FrameMac.h: Added virtual clearRecordedFormValues and recordFormValue.  These were moved into Frame.cpp recently, which broke
              how Safari asked to add form values to the keychain.
      
              * bridge/mac/FrameMac.mm:
              (WebCore::createNSDictionary): Added. Converts a hashmap to an NSDictionary for m_formValuesAboutToBeSubmitted.  This is needed to fix the submit form bug.
              (WebCore::selectorForKeyEvent): Added.  This helper function converts key events into selectors that the autocomplete code needs to know about.
              (WebCore::FrameMac::FrameMac):
              (WebCore::FrameMac::submitForm): Convert saved form and formValues into DOMElement and NSMutableDictionary.
              (WebCore::FrameMac::textFieldDidBeginEditing): Added so the input element can send this notification over the bridge.
              (WebCore::FrameMac::textFieldDidEndEditing): ditto.
              (WebCore::FrameMac::textDidChangeInTextField): ditto.
              (WebCore::FrameMac::doTextFieldCommandFromEvent): ditto. Also calls selectorForKeyEvent.
              (WebCore::FrameMac::textWillBeDeletedInTextField): ditto.
              * page/Frame.cpp:
              (WebCore::Frame::textFieldDidBeginEditing): ditto.
              (WebCore::Frame::textFieldDidEndEditing): ditto.
              (WebCore::Frame::textDidChangeInTextField): ditto.
              (WebCore::Frame::doTextFieldCommandFromEvent): ditto.
              (WebCore::Frame::textWillBeDeletedInTextField): ditto.
              * page/Frame.h: ditto.
              * platform/PlatformString.h: (WebCore::String::replace): Added to use an existing version of StringImpl::replace.
      
              * rendering/RenderTextField.cpp:
              (WebCore::RenderTextField::setSelectionRange): Setting the selection here should close the typing command.
              (WebCore::RenderTextField::subtreeHasChanged): Calls textDidChangeInTextField.
      
              * dom/Document.cpp: (WebCore::Document::setFocusNode): Calls dispatchFocusEvent and dispatchBlurEvent instead of directly dispatching the events.  This gives the node a chance to do other work before dispatching the event.
      
              * dom/EventTargetNode.cpp:
              (WebCore:: EventTargetNode::dispatchFocusEvent): Added.
              (WebCore:: EventTargetNode::dispatchBlurEvent): Added.
              * dom/EventTargetNode.h:
      
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::init): initializes m_autofilled.
              (WebCore::HTMLInputElement::dispatchFocusEvent): Calls textFieldDidBeginEditing and then calls up to the base class
              (WebCore::HTMLInputElement::dispatchBlurEvent): Calls textFieldDidEndEditing and then calls up to the base class
              (WebCore::HTMLInputElement::defaultEventHandler): For keypress events, calls doTextFieldCommandFromEvent so the form delegate will
              have a chance to say whether or not it is going to handle the event.
             (WebCore::HTMLInputElement::isKeyboardFocusable): Uses isNonWidgetTextField instead of checking the inputType.
              (WebCore::HTMLInputElement::isMouseFocusable): ditto.
              (WebCore::HTMLInputElement::focus): ditto.
              (WebCore::HTMLInputElement::constrainValue): Uses isTextField instead of checking inputType.
              * html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::submit): ditto.
              * html/HTMLInputElement.h:
              (WebCore::HTMLInputElement::isTextField): Added. Checks for TEXT, PASSWORD, and SEARCH
              (WebCore::HTMLInputElement::isNonWidgetTextField): Added.  Checks for all converted controls.
              (WebCore::HTMLInputElement::autofilled): Added.
              (WebCore::HTMLInputElement::setAutofilled): Added.
              * html/HTMLTextFieldInnerElement.cpp: (WebCore::HTMLTextFieldInnerElement::defaultEventHandler): Uses isNonWidgetTextField instead of checking the inputType.
      
              * editing/DeleteSelectionCommand.cpp: (WebCore::DeleteSelectionCommand::doApply):
               If the deletion is occuring in a text field, call textWillBeDeletedInTextField so the frame can
               call across the bridge to notify the form delegate.
      
              * css/css_base.cpp: (WebCore::CSSSelector::extractPseudoType): Added autofill string for "-khtml-autofill".
              * css/css_base.h: (WebCore::CSSSelector::): Added PseudoAutofill to enum.
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::checkOneSelector): Added case for PseudoAutofill that checks the input element's autofilled flag.
              (WebCore::CSSStyleSelector::getColorFromPrimitiveValue): Changed  -webkit-focus-ring-color to -khtml-focus-ring-color for consistency.
              * css/html4.css: Added background-color and background-image for input:-khtml-autofill style.
               Changed -webkit-focus-ring-color to -khtml-focus-ring-color for consistency.
              * css/CSSValueKeywords.in: ditto.
              * css/cssparser.cpp:
              (WebCore::CSSParser::parseValue): ditto.
              (WebCore::CSSParser::parseShadow): ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13854 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      174364d6
  11. 11 Apr, 2006 2 commits
    • darin's avatar
      JavaScriptCore: · 5a4c77f4
      darin authored
              - another attempt to fix Windows build -- Vector in Forward.h was not working
      
              * kxmlcore/Forward.h: Remove Vector.
              * kxmlcore/Vector.h: Add back default arguments, remove include of
              Forward.h.
      
      WebCore:
      
              - try to fix Windows build
      
              * html/HTMLCollection.h: Add back include of Vector.h.
              * page/Frame.h: Ditto.
              * platform/Timer.h: Ditto.
      
              - more changes for no-SVG (not working yet though)
      
              * editing/CompositeEditCommand.h: Added css_valueimpl.h include.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13832 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5a4c77f4
    • darin's avatar
      JavaScriptCore: · 36d1136a
      darin authored
              Rubber-stamped by John Sullivan.
      
              - switched from a shell script to a makefile for generated files
              - removed lots of unneeded includes
              - added new Forward.h and HashForward.h headers that allow compiling with
                fewer unneeded templates
      
              * DerivedSources.make: Added.
              * generate-derived-sources: Removed.
              * JavaScriptCore.xcodeproj/project.pbxproj: Added new files, changed to use
              DerivedSources.make.
      
              * kxmlcore/Forward.h: Added.
              * kxmlcore/HashForward.h: Added.
      
              * kxmlcore/HashCountedSet.h: Include HashForward for default args.
              * kxmlcore/HashMap.h: Ditto.
              * kxmlcore/HashSet.h: Ditto.
      
              * kjs/object.h:
              * kjs/object.cpp:
              Moved KJS_MAX_STACK into the .cpp file.
      
              * bindings/NP_jsobject.cpp:
              * bindings/c/c_instance.h:
              * bindings/jni/jni_class.h:
              * bindings/jni/jni_runtime.h:
              * bindings/jni/jni_utility.h:
              * bindings/objc/WebScriptObject.mm:
              * bindings/objc/WebScriptObjectPrivate.h:
              * bindings/objc/objc_class.h:
              * bindings/objc/objc_class.mm:
              * bindings/objc/objc_instance.h:
              * bindings/objc/objc_instance.mm:
              * bindings/objc/objc_runtime.mm:
              * bindings/objc/objc_utility.mm:
              * bindings/runtime.h:
              * bindings/runtime_array.cpp:
              * bindings/runtime_array.h:
              * bindings/runtime_method.cpp:
              * bindings/runtime_method.h:
              * bindings/runtime_object.cpp:
              * bindings/runtime_root.h:
              * kjs/JSImmediate.cpp:
              * kjs/Parser.h:
              * kjs/array_object.cpp:
              * kjs/array_object.h:
              * kjs/bool_object.cpp:
              * kjs/bool_object.h:
              * kjs/collector.h:
              * kjs/context.h:
              * kjs/debugger.cpp:
              * kjs/error_object.h:
              * kjs/function_object.h:
              * kjs/internal.h:
              * kjs/lexer.cpp:
              * kjs/math_object.cpp:
              * kjs/math_object.h:
              * kjs/nodes.cpp:
              * kjs/nodes.h:
              * kjs/number_object.cpp:
              * kjs/number_object.h:
              * kjs/object_object.cpp:
              * kjs/operations.cpp:
              * kjs/protected_reference.h:
              * kjs/reference.h:
              * kjs/reference_list.h:
              * kjs/regexp_object.h:
              * kjs/string_object.cpp:
              * kjs/string_object.h:
              * kjs/testkjs.cpp:
              * kjs/value.cpp:
              * kjs/value.h:
              * kxmlcore/HashTable.h:
              * kxmlcore/ListRefPtr.h:
              * kxmlcore/TCPageMap.h:
              * kxmlcore/Vector.h:
              Removed unneeded header includes.
      
      JavaScriptGlue:
      
              Rubber-stamped by John Sullivan.
      
              - added forwarding headers for the new Forward.h and HashForward.h files
      
              * kxmlcore/Forward.h: Added.
              * kxmlcore/HashForward.h: Added.
      
      WebCore:
      
              Rubber-stamped by John Sullivan (except for pbxproj change).
      
              - updated to use the new Forward.h and HashForward.h headers
              - moved the showTree debugging functions out of the WebCore
                namespace so they are easier to call from gdb, and renamed
                the showTree member functions so they don't get in the way;
                now you can do "call showTree(x)" in gdb and it just works
              - removed a lot of unneeded includes
      
              * WebCore.xcodeproj/project.pbxproj: Fixed a lot of paths that
              were not relative to the enclosing group.
      
              * ForwardingHeaders/kxmlcore/Forward.h: Added.
              * ForwardingHeaders/kxmlcore/HashForward.h: Added.
              * bindings/js/JSCanvasRenderingContext2DBase.cpp:
              * bindings/js/JSXMLHttpRequest.cpp:
              * bindings/js/JSXMLHttpRequest.h:
              * bindings/js/JSXSLTProcessor.h:
              * bindings/js/kjs_binding.h:
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_dom.h:
              * bindings/js/kjs_events.cpp:
              * bindings/js/kjs_events.h:
              * bindings/js/kjs_html.cpp:
              * bindings/js/kjs_navigator.cpp:
              * bindings/js/kjs_navigator.h:
              * bindings/js/kjs_proxy.cpp:
              * bindings/js/kjs_traversal.h:
              * bindings/js/kjs_window.cpp:
              * bindings/js/kjs_window.h:
              * bindings/objc/DOM.mm:
              * bindings/objc/DOMCSS.mm:
              * bindings/objc/DOMCore.h:
              * bindings/objc/DOMEvents.mm:
              * bindings/objc/DOMHTML.mm:
              * bindings/objc/DOMImplementationFront.h:
              * bindings/objc/DOMInternal.mm:
              * bindings/objc/DOMUtility.mm:
              * bindings/objc/DOMViews.mm:
              * bridge/BrowserExtension.h:
              * bridge/mac/BrowserExtensionMac.mm:
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * bridge/mac/WebCoreFrameNamespaces.mm:
              * bridge/mac/WebCoreJavaScript.mm:
              * bridge/win/PageWin.cpp:
              * css/CSSComputedStyleDeclaration.cpp:
              * css/css_base.h:
              * css/css_ruleimpl.h:
              * css/css_valueimpl.cpp:
              * css/cssparser.cpp:
              * css/cssparser.h:
              * css/cssstyleselector.cpp:
              * css/cssstyleselector.h:
              * dom/AbstractView.h:
              * dom/AtomicStringList.h:
              * dom/Attribute.cpp:
              * dom/Attribute.h:
              * dom/Comment.cpp:
              * dom/ContainerNode.cpp:
              * dom/DOMImplementation.cpp:
              * dom/DOMImplementation.h:
              * dom/Document.cpp:
              * dom/Document.h:
              * dom/Element.h:
              * dom/EventTargetNode.cpp:
              (WebCore::EventTargetNode::dump):
              (WebCore::forbidEventDispatch):
              (WebCore::allowEventDispatch):
              (WebCore::eventDispatchForbidden):
              * dom/EventTargetNode.h:
              (WebCore::EventTargetNode::postDispatchEventHandler):
              * dom/NamedAttrMap.h:
              * dom/Node.cpp:
              (WebCore::Node::showNode):
              (WebCore::Node::showTree):
              (WebCore::Node::showTreeAndMark):
              (showTree):
              * dom/Node.h:
              * dom/NodeList.cpp:
              * dom/NodeList.h:
              * dom/Position.cpp:
              (showTree):
              * dom/Position.h:
              * dom/Range.cpp:
              * dom/Range.h:
              * dom/StyledElement.cpp:
              * dom/StyledElement.h:
              * dom/dom2_eventsimpl.cpp:
              * dom/dom2_eventsimpl.h:
              * dom/dom2_traversalimpl.h:
              * dom/dom_xmlimpl.cpp:
              * dom/xml_tokenizer.cpp:
              * dom/xml_tokenizer.h:
              * editing/AppendNodeCommand.cpp:
              * editing/ApplyStyleCommand.cpp:
              * editing/ApplyStyleCommand.h:
              * editing/BreakBlockquoteCommand.cpp:
              * editing/CompositeEditCommand.cpp:
              * editing/CreateLinkCommand.cpp:
              * editing/DeleteFromTextNodeCommand.cpp:
              * editing/DeleteFromTextNodeCommand.h:
              * editing/DeleteSelectionCommand.cpp:
              * editing/EditCommand.cpp:
              * editing/EditCommand.h:
              * editing/HTMLInterchange.cpp:
              * editing/InsertIntoTextNodeCommand.cpp:
              * editing/InsertIntoTextNodeCommand.h:
              * editing/InsertLineBreakCommand.cpp:
              * editing/InsertNodeBeforeCommand.cpp:
              * editing/InsertParagraphSeparatorCommand.cpp:
              * editing/InsertTextCommand.cpp:
              * editing/JSEditor.cpp:
              * editing/JoinTextNodesCommand.cpp:
              * editing/MergeIdenticalElementsCommand.cpp:
              * editing/ModifySelectionListLevelCommand.cpp:
              * editing/MoveSelectionCommand.cpp:
              * editing/RebalanceWhitespaceCommand.h:
              * editing/RemoveCSSPropertyCommand.h:
              * editing/ReplaceSelectionCommand.cpp:
              * editing/ReplaceSelectionCommand.h:
              * editing/Selection.cpp:
              (WebCore::Selection::formatForDebugger):
              (WebCore::Selection::showTree):
              (showTree):
              * editing/Selection.h:
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::formatForDebugger):
              (WebCore::SelectionController::showTree):
              (showTree):
              * editing/SelectionController.h:
              * editing/TextIterator.cpp:
              * editing/TextIterator.h:
              * editing/TypingCommand.cpp:
              * editing/TypingCommand.h:
              * editing/UnlinkCommand.cpp:
              * editing/VisiblePosition.cpp:
              (WebCore::isEqualIgnoringAffinity):
              (WebCore::VisiblePosition::formatForDebugger):
              (WebCore::VisiblePosition::showTree):
              (showTree):
              * editing/VisiblePosition.h:
              (WebCore::VisiblePosition::VisiblePosition):
              (WebCore::operator==):
              * editing/WrapContentsInDummySpanCommand.cpp:
              * editing/htmlediting.h:
              * editing/markup.cpp:
              * editing/markup.h:
              (WebCore::):
              * editing/visible_units.cpp:
              * html/CanvasGradient.cpp:
              * html/CanvasRenderingContext2D.h:
              * html/CanvasStyle.cpp:
              * html/CanvasStyle.h:
              * html/FormDataList.cpp:
              * html/FormDataList.h:
              * html/HTMLCollection.cpp:
              * html/HTMLCollection.h:
              * html/HTMLDocument.cpp:
              * html/HTMLDocument.h:
              * html/HTMLElement.cpp:
              * html/HTMLElementFactory.cpp:
              * html/HTMLElementFactory.h:
              * html/HTMLFormCollection.cpp:
              * html/HTMLFormElement.cpp:
              * html/HTMLFormElement.h:
              * html/HTMLInputElement.cpp:
              * html/HTMLParser.cpp:
              * html/HTMLSelectElement.cpp:
              * html/HTMLSelectElement.h:
              * html/HTMLTokenizer.cpp:
              * html/HTMLTokenizer.h:
              * html/html_baseimpl.cpp:
              * html/html_headimpl.h:
              * kcanvas/KCanvasCreator.cpp:
              * kcanvas/KCanvasFilters.h:
              * kcanvas/KCanvasPath.h:
              * kcanvas/KCanvasResources.h:
              * kcanvas/KCanvasTreeDebug.cpp:
              * kcanvas/RenderPath.cpp:
              * kcanvas/RenderPath.h:
              * kcanvas/device/KRenderingDevice.h:
              * kcanvas/device/KRenderingPaintServerGradient.h:
              * kcanvas/device/KRenderingPaintServerPattern.h:
              * kcanvas/device/KRenderingPaintServerSolid.h:
              * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
              * kcanvas/device/quartz/KCanvasMaskerQuartz.h:
              * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
              * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
              * kcanvas/device/quartz/KRenderingPaintServerQuartz.h:
              * khtml/misc/decoder.cpp:
              * khtml/misc/decoder.h:
              * khtml/xsl/XSLStyleSheet.cpp:
              * khtml/xsl/XSLTProcessor.cpp:
              * khtml/xsl/XSLTProcessor.h:
              * ksvg2/css/SVGRenderStyle.h:
              * ksvg2/ecma/GlobalObject.cpp:
              * ksvg2/misc/KCanvasRenderingStyle.h:
              * ksvg2/misc/SVGDocumentExtensions.h:
              * ksvg2/svg/SVGAngle.h:
              * ksvg2/svg/SVGAnimateColorElement.h:
              * ksvg2/svg/SVGAnimatedColor.h:
              * ksvg2/svg/SVGAnimatedLengthList.h:
              * ksvg2/svg/SVGAnimatedNumberList.h:
              * ksvg2/svg/SVGAnimatedString.h:
              * ksvg2/svg/SVGAnimatedTransformList.h:
              * ksvg2/svg/SVGAnimationElement.h:
              * ksvg2/svg/SVGColor.h:
              * ksvg2/svg/SVGCursorElement.h:
              * ksvg2/svg/SVGHelper.h:
              * ksvg2/svg/SVGLength.h:
              * ksvg2/svg/SVGList.h:
              * ksvg2/svg/SVGPaint.h:
              * ksvg2/svg/SVGPathSeg.h:
              * ksvg2/svg/SVGPatternElement.h:
              * ksvg2/svg/SVGSVGElement.cpp:
              * ksvg2/svg/SVGSVGElement.h:
              * ksvg2/svg/SVGStringList.h:
              * ksvg2/svg/SVGTransform.h:
              * kwq/AccessibilityObjectCache.mm:
              * kwq/ClipboardMac.mm:
              * kwq/JavaAppletWidget.mm:
              * kwq/KWQComboBox.mm:
              * kwq/KWQEditCommand.mm:
              * kwq/KWQFileButton.mm:
              * kwq/KWQKHTMLSettings.h:
              * kwq/KWQKSSLKeyGen.mm:
              * kwq/KWQLoader.mm:
              * kwq/KWQPageState.mm:
              * kwq/KWQTextEdit.mm:
              * kwq/RegularExpression.h:
              * kwq/RenderTreeAsText.cpp:
              * kwq/RenderTreeAsText.h:
              * kwq/WebCoreAXObject.mm:
              * loader/Cache.cpp:
              * loader/Cache.h:
              * loader/CachedCSSStyleSheet.cpp:
              * loader/CachedObject.h:
              * loader/CachedScript.cpp:
              * loader/CachedXBLDocument.cpp:
              * loader/CachedXBLDocument.h:
              * loader/CachedXSLStyleSheet.cpp:
              * loader/CachedXSLStyleSheet.h:
              * loader/DocLoader.cpp:
              * page/Frame.cpp:
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/FrameTree.cpp:
              * page/FrameTree.h:
              * page/FrameView.cpp:
              * page/FrameView.h:
              * page/Page.cpp:
              * page/Page.h:
              * page/Plugin.h:
              (WebCore::Plugin::Plugin):
              (WebCore::Plugin::view):
              * platform/Color.cpp:
              * platform/FloatRect.h:
              * platform/Font.cpp:
              * platform/Font.h:
              * platform/FontFamily.cpp:
              * platform/GraphicsContext.cpp:
              * platform/Image.cpp:
              * platform/Image.h:
              * platform/IntRect.h:
              * platform/KURL.cpp:
              * platform/KURL.h:
              * platform/SegmentedString.h:
              * platform/Shared.h:
              * platform/StreamingTextDecoder.cpp:
              * platform/StringImpl.cpp:
              * platform/StringImpl.h:
              * platform/TextEncoding.h:
              * platform/Timer.cpp:
              * platform/Timer.h:
              * platform/TransferJob.cpp:
              * platform/TransferJob.h:
              * platform/TransferJobInternal.h:
              * platform/cairo/GraphicsContextCairo.cpp:
              * platform/cairo/ImageCairo.cpp:
              * platform/cairo/ImageSourceCairo.cpp:
              * platform/image-decoders/gif/GIFImageReader.cpp:
              * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
              * platform/mac/FontFamilyMac.mm:
              * platform/mac/FontMac.mm:
              * platform/mac/ImageMac.mm:
              * platform/mac/TextEncodingMac.cpp:
              * platform/mac/TransferJobMac.mm:
              * platform/win/FontPlatformDataWin.cpp:
              * platform/win/TransferJobWin.cpp:
              * rendering/RenderBlock.cpp:
              * rendering/RenderBlock.h:
              * rendering/RenderBox.cpp:
              * rendering/RenderBox.h:
              * rendering/RenderCanvas.cpp:
              * rendering/RenderCanvas.h:
              * rendering/RenderContainer.cpp:
              * rendering/RenderFlexibleBox.h:
              * rendering/RenderFlow.cpp:
              * rendering/RenderFlow.h:
              * rendering/RenderImage.cpp:
              * rendering/RenderImage.h:
              * rendering/RenderLayer.cpp:
              * rendering/RenderLayer.h:
              * rendering/RenderObject.cpp:
              (showTree):
              * rendering/RenderObject.h:
              * rendering/RenderTableCell.h:
              * rendering/RenderTableSection.h:
              * rendering/RenderText.cpp:
              * rendering/RenderText.h:
              * rendering/RenderTextField.cpp:
              * rendering/RenderTextFragment.h:
              * rendering/RenderTheme.h:
              * rendering/RenderThemeMac.mm:
              * rendering/RenderThemeWin.cpp:
              * rendering/bidi.cpp:
              * rendering/render_form.h:
              * rendering/render_line.cpp:
              (showTree):
              * rendering/render_line.h:
              * rendering/render_list.cpp:
              * rendering/render_replaced.cpp:
              * rendering/render_replaced.h:
              * rendering/render_style.cpp:
              * rendering/render_style.h:
              * xml/xmlhttprequest.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13821 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      36d1136a
  12. 04 Apr, 2006 1 commit
    • darin's avatar
      LayoutTests: · d497abd1
      darin authored
              Reviewed by Justin and Adele.
      
              * fast/forms/plaintext-mode-2-expected.txt: Updated because there's no longer
              and extra <div> element added.
      
      WebCore:
      
              Reviewed by Justin (editing parts) and Adele (the rest).
      
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8182
                some text-field-related layout tests are failing
      
              The smart paste code was getting confused and adding extra spaces.
      
              * editing/ReplaceSelectionCommand.cpp:
              (WebCore::ReplaceSelectionCommand::doApply): Use isStartOfParagraph instead of
              isStartOfLine.
              (WebCore::ReplaceSelectionCommand::removeLinePlaceholderIfNeeded): Ditto.
      
              * editing/InsertParagraphSeparatorCommand.cpp: (WebCore::enclosingEmptyListItem):
              Change to call isStart/EndOfParagraph instead of Line.
      
              * editing/InsertTextCommand.cpp: (WebCore::InsertTextCommand::input):
              Add a comment about how isStartOfLine is almost certainly wrong here.
      
              - clean up some loose ends in the Frame class from the recent renaming
      
              * page/Frame.h: Removed declarations of deleteMe1, deleteMe2, and
              handleMouseMoveEventPart2.
              * page/Frame.cpp: (WebCore::Frame::handleMouseMoveEvent): Removed
              handleMouseMoveEventPart2 by renaming it to handleMouseMoveEvent and removing
              handleMouseMoveEvent itself.
      
              - invoke the makefile directly, removing the generate-derived-sources script
      
              * WebCore.vcproj/WebCore/build-generated-files.sh: Call make directly.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
              * generate-derived-sources: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13699 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d497abd1
  13. 02 Apr, 2006 1 commit
    • darin's avatar
      Reviewed by Adele. · f5427d25
      darin authored
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8123
                focus ring on new text field doesn't look like the old one
      
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7685
                Focus ring color should change to match graphite when system theme is graphite
      
              - some cleanup to how we parse user agent style sheets
      
              * css/CSSValueKeywords.in: Added -webkit-focus-ring-color.
      
              * css/cssstyleselector.cpp:
              (WebCore::parseUASheet): Parse an array of chars instead of UTF-16.
              Cuts the size of the style sheet in half.
              (WebCore::CSSStyleSelector::applyProperty): Allow negative value for
              outline-offset. Changed shadow parsing to use getColorFromPrimitiveValue
              instead of repeating the same logic.
              (WebCore::CSSStyleSelector::getColorFromPrimitiveValue): Added a case
              for the focus ring color.
              * rendering/render_style.h: (WebCore::RenderStyle::setOutlineOffset):
              Changed to allow negative values.
      
              * css/html4.css: Removed a lot of excess spaces. Changed color of focus
              to -webkit-focus-ring-color. Changed width of focus to 5px.
              Added an outline-offset for <input type=text> of -2px.
      
              * css/cssparser.cpp:
              (WebCore::CSSParser::parseValue): Added focus ring color as an outline color all
              the time, and as any other color when not in strict mode. I'm confused about what's
              best for this whole strict mode policy, and I may need advice on Hyatt to perfect
              this one later.
              (WebCore::CSSParser::parseColorFromValue): Removed code to pin r, g, and b because
              the functions in platform already take care of that. Kept the pinning of a, though
              because that's done in floating point before converting to an integer.
              (WebCore::CSSParser::parseShadow): Allow focus ring color when not in strict mode.
      
              * bridge/mac/FrameMac.h: Eliminated the virtual detachFromView function.
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::FrameMac): Eliminated code to maintain the frame instances list.
              (WebCore::FrameMac::~FrameMac): Ditto.
              (WebCore::Frame::setNeedsReapplyStyles): Added.
      
              * bridge/mac/WebCoreSettings.mm: (-[WebCoreSettings _updateAllViews]):
              * platform/mac/WebCoreTextRendererFactory.mm:
              (-[WebCoreTextRendererFactory clearCaches]):
              Changed to call the new Page::setNeedsReapplyStylesForSettingsChange instead of using the
              obsolete Frame::instances.
      
              * page/Frame.h: Removed instances, mutableInstances, and detachFromView.
              * page/Frame.cpp: Ditto.
      
              * page/FrameTree.cpp:
              (WebCore::FrameTree::~FrameTree): Call setView(0) instead of detachFromView().
              (WebCore::FrameTree::removeChild): Ditto.
      
              * page/Page.h:
              * page/Page.cpp:
              (WebCore::Page::init): Added a set of pages instead of a page count. Also
              register a function for when the focus ring color changes the first time this
              is called.
              (WebCore::Page::~Page): Call setView(0) instead of detachFromView. Also update
              to manager the set of pages.
              (WebCore::Page::setNeedsReapplyStyles): Call setNeedsReapplyStyles on all frames.
              (WebCore::Page::setNeedsReapplyStylesForSettingsChange): Call setNeedsReapplyStyles
              on all frames with the passed-in settings.
      
              * css/make-css-file-arrays.pl: Changed to run the C preprocessor on the
              input files and to generate an array of char instead of unsigned short.
      
              * platform/PlatformString.h: Added a constructor that takes a char* and
              a length.
              * platform/String.cpp: (WebCore::String::String): Ditto.
      
              * WebCore.xcodeproj/project.pbxproj: Just some tweaks; adding in a few files like
              the user agent style sheets.
      
              * platform/Color.h: Removed all use of DeprecatedString. Cleaned up a bit.
              Added focusRingColor and setFocusRingColorChangeFunction.
              * platform/Color.cpp:
              (WebCore::makeRGB): Rewrote using max and min.
              (WebCore::makeRGBA): Ditto.
              (WebCore::parseHexColor): Cleaned up a bit; changed partway to String instead of
              DeprecatedString.
              (WebCore::Color::Color): Changed to use String and to call setNamedColor to save code.
              (WebCore::Color::setNamedColor): Changed to use String in the interface.
      
              * platform/mac/ColorMac.mm:
              (WebCore::observeTheme): Added. Function used to start up the observer.
              (WebCore::setFocusRingColorChangeFunction): Added. Used to get a call back so we can
              update all the views when the color changes (including recomputing style to get the
              color change in).
              (WebCore::setFocusRingColorChangeFunction): Added. Returns one of the two focus
              ring colors. Both of these match what AppKit uses -- neither matches what we used
              to have in the html4.css file.
              (+[WebCoreControlTintObserver controlTintDidChange]): Added. Used to update when
              the appearance is changed from blue to graphite and back. We keep a global so we
              don't have to call over to AppKit every time; that's probably overkill but we need
              the obsever for the color change function anyway.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13639 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f5427d25
  14. 31 Mar, 2006 1 commit
    • mjs's avatar
      Reviewed by Eric. · 3bd7e12a
      mjs authored
              
              - various Point / Size related cleanup
              
              First, I clarified the semantics of some operations to keep a
              better distinction between IntPoint and IntSize:
              
              * platform/IntPoint.h:
              (WebCore::IntPoint::move): new convenience to move a point by separate
              x and y deltas.
              (WebCore::operator+=): You can't add a point to a point, you can only add
              a size to a point.
              (WebCore::operator+): ditto
              (WebCore::operator-): point - point = size; point - size = point
              (WebCore::operator-=): only allow subtracting a size for the mutating version
              * platform/IntRect.h:
              (WebCore::IntRect::move): tweaked to use IntPoint::move, also, move by an IntSize,
              not an IntPoint.
              * platform/IntSize.h:
              (WebCore::IntSize::shrunkTo): analog to expandedTo
              (WebCore::IntSize::clampNegativeToZero): a handy helper
              (WebCore::operator-): Added unary minus operator
      
              Made the same changes for FloatPoint:
              
              * platform/FloatPoint.h:
              (WebCore::FloatPoint::move):
              (WebCore::operator+=):
              (WebCore::operator-=):
              (WebCore::operator+):
              (WebCore::operator-):
              * platform/FloatRect.h:
              (WebCore::FloatRect::move):
              * platform/FloatSize.h:
              (WebCore::operator-):
      
              Then I changed a bunch of stuff to pass around IntPoint instead of separate x and y
              coordinates. The main one was:
              
              * platform/ScrollView.h:
              * platform/mac/ScrollViewMac.mm:
              (WebCore::ScrollView::scrollOffset): new method, return an IntSize
              (WebCore::ScrollView::contentsToViewport): take and return an IntPoint
              (WebCore::ScrollView::viewportToContents): take and return an IntPoint
              * platform/win/ScrollViewWin.cpp:
              (WebCore::ScrollView::updateContents): handle things in terms of scrollOffset,
              not scrollPoint
              (WebCore::ScrollView::visibleContentRect):
              (WebCore::ScrollView::contentsX):
              (WebCore::ScrollView::contentsY):
              (WebCore::ScrollView::viewportToContents):
              (WebCore::ScrollView::contentsToViewport):
              (WebCore::scrollOffset):
              (WebCore::ScrollView::maximumScroll):
              (WebCore::ScrollView::scrollBy):
              (WebCore::ScrollView::updateScrollBars):
      
              The rest is mainly updates for these changes.
      
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::eventMayStartDrag):
              (WebCore::FrameMac::dragHysteresisExceeded):
              (WebCore::FrameMac::handleMouseMoveEvent):
              (WebCore::FrameMac::mouseDown):
              (WebCore::FrameMac::shouldDragAutoNode):
              (WebCore::FrameMac::sendContextMenuEvent):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge isPointInsideSelection:]):
              * dom/EventTargetNode.cpp:
              (WebCore::EventTargetNode::dispatchMouseEvent):
              (WebCore::EventTargetNode::dispatchWheelEvent):
              * khtml/ecma/kjs_window.cpp:
              (KJS::WindowFunc::callAsFunction):
              * page/Frame.cpp:
              (WebCore::Frame::shouldDragAutoNode):
              (WebCore::Frame::isPointInsideSelection):
              (WebCore::Frame::selectClosestWordFromMouseEvent):
              (WebCore::Frame::handleMousePressEventDoubleClick):
              (WebCore::Frame::handleMousePressEventTripleClick):
              (WebCore::Frame::handleMousePressEventSingleClick):
              (WebCore::Frame::handleMouseMoveEventPart2):
              (WebCore::Frame::handleMouseReleaseEvent):
              * page/Frame.h:
              * page/FrameView.cpp:
              (WebCore::FrameView::dispatchDragEvent):
              (WebCore::FrameView::prepareMouseEvent):
              (WebCore::FrameView::handleWheelEvent):
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::scrollRectToVisible):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::draggableNode):
              * rendering/RenderObject.h:
              (WebCore::RenderObject::positionForPoint):
              * rendering/render_list.cpp:
              (WebCore::RenderListMarker::paint):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13605 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3bd7e12a
  15. 22 Mar, 2006 1 commit
    • eseidel's avatar
      2006-03-22 Eric Seidel <eseidel@apple.com> · cff0a728
      eseidel authored
              Reviewed by darin.
      
              Replace more DeprecatedString with String.
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7907
      
              * WebCore+SVG/kdom.h:
              * bindings/objc/DOMHTML.mm:
              (-[DOMHTMLDocument _createDocumentFragmentWithMarkupString:baseURLString:]):
              * bridge/BrowserExtension.h:
              * bridge/mac/BrowserExtensionMac.h:
              * bridge/mac/BrowserExtensionMac.mm:
              (WebCore::BrowserExtensionMac::setTypedIconURL):
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::searchForLabelsBeforeElement):
              (WebCore::nsArray):
              (WebCore::FrameMac::createPlugin):
              (WebCore::FrameMac::bindingRootObject):
              (WebCore::FrameMac::windowScriptObject):
              (WebCore::FrameMac::windowScriptNPObject):
              (WebCore::FrameMac::partClearedInBegin):
              (WebCore::FrameMac::openURLFromPageCache):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge openURL:reload:contentType:refresh:lastModified:pageCache:]):
              (-[WebCoreFrameBridge scrollToAnchor:]):
              (-[WebCoreFrameBridge URLWithAttributeString:]):
              (-[WebCoreFrameBridge highlightAllMatchesForString:caseSensitive:]):
              * bridge/mac/WebCoreScriptDebugger.mm:
              (-[WebCoreScriptCallFrame evaluateWebScript:]):
              * bridge/mac/WebCoreSettings.mm:
              (-[WebCoreSettings _updateAllViews]):
              (-[WebCoreSettings setStandardFontFamily:]):
              (-[WebCoreSettings setMinimumFontSize:]):
              (-[WebCoreSettings setMinimumLogicalFontSize:]):
              (-[WebCoreSettings setDefaultFontSize:]):
              (-[WebCoreSettings setDefaultFixedFontSize:]):
              (-[WebCoreSettings setUserStyleSheetLocation:]):
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              * css/CSSGrammar.y:
              * css/css_stylesheetimpl.cpp:
              (WebCore::MediaList::setMediaText):
              * css/css_valueimpl.cpp:
              (WebCore::quoteStringIfNeeded):
              * css/cssparser.cpp:
              (WebCore::CSSParser::parseColor):
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::CSSStyleSelector):
              * css/cssstyleselector.h:
              * dom/Document.cpp:
              (WebCore::Document::resetActiveLinkColor):
              (WebCore::Document::nextState):
              (WebCore::Document::setUserStyleSheet):
              (WebCore::Document::processHttpEquiv):
              (WebCore::Document::recalcStyleSelector):
              * dom/Document.h:
              (WebCore::Document::userStyleSheet):
              (WebCore::Document::setPrintStyleSheet):
              (WebCore::Document::printStyleSheet):
              * editing/markup.cpp:
              (WebCore::createMarkup):
              (WebCore::createFragmentFromMarkup):
              (WebCore::createFragmentFromText):
              * editing/markup.h:
              * html/CanvasRenderingContext2D.cpp:
              (WebCore::CanvasRenderingContext2D::setGlobalCompositeOperation):
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::scriptHandler):
              * html/html_baseimpl.cpp:
              (WebCore::HTMLFrameElement::openURL):
              (WebCore::HTMLFrameElement::attach):
              * html/html_headimpl.cpp:
              (WebCore::HTMLLinkElement::process):
              (WebCore::HTMLLinkElement::setStyleSheet):
              * html/html_headimpl.h:
              * html/html_imageimpl.cpp:
              (WebCore::HTMLImageElement::parseMappedAttribute):
              * html/html_imageimpl.h:
              (WebCore::HTMLImageElement::compositeOperator):
              * html/html_objectimpl.cpp:
              (WebCore::HTMLAppletElement::createRenderer):
              * ksvg2/svg/SVGStringList.cpp:
              (SVGStringList::reset):
              * kwq/AccessibilityObjectCache.h:
              * kwq/AccessibilityObjectCache.mm:
              (AccessibilityObjectCache::textMarkerForVisiblePosition):
              (AccessibilityObjectCache::postNotificationToTopWebArea):
              (AccessibilityObjectCache::postNotification):
              * kwq/ClipboardMac.mm:
              (WebCore::cocoaTypeFromMIMEType):
              * kwq/KWQKHTMLSettings.h:
              (KHTMLSettings::userStyleSheetLocation):
              (KHTMLSettings::setUserStyleSheetLocation):
              * kwq/KWQLineEdit.h:
              * kwq/KWQLineEdit.mm:
              (QLineEdit::selectedText):
              * loader/CachedCSSStyleSheet.cpp:
              (WebCore::CachedCSSStyleSheet::ref):
              * page/Frame.cpp:
              (WebCore::UserStyleSheetLoader::setStyleSheet):
              (WebCore::Frame::jScriptEnabled):
              (WebCore::Frame::javaEnabled):
              (WebCore::Frame::pluginsEnabled):
              (WebCore::Frame::receivedFirstData):
              (WebCore::Frame::begin):
              (WebCore::Frame::setUserStyleSheet):
              (WebCore::Frame::requestObject):
              (WebCore::Frame::loadPlugin):
              (WebCore::Frame::referrer):
              (WebCore::Frame::lastModified):
              (WebCore::Frame::reparseConfiguration):
              (WebCore::Frame::handleMousePressEventSingleClick):
              (WebCore::Frame::appliedEditing):
              (WebCore::Frame::unappliedEditing):
              (WebCore::Frame::reappliedEditing):
              * page/Frame.h:
              * page/FramePrivate.h:
              (WebCore::FramePrivate::FramePrivate):
              * platform/AtomicString.h:
              (WebCore::AtomicString::AtomicString):
              * platform/DeprecatedString.cpp:
              (DeprecatedString::replace):
              * platform/GraphicsContext.h:
              * platform/Image.h:
              * platform/KURL.cpp:
              * platform/KURL.h:
              * platform/PlatformString.h:
              (WebCore::String::String):
              (WebCore::String::replace):
              * platform/String.cpp:
              (WebCore::operator+):
              * platform/StringImpl.cpp:
              (WebCore::StringImpl::remove):
              (WebCore::parseLength):
              (WebCore::StringImpl::replace):
              * platform/StringImpl.h:
              * platform/mac/GraphicsContextMac.mm:
              (WebCore::GraphicsContext::setCompositeOperation):
              * rendering/RenderHTMLCanvas.cpp:
              (WebCore::RenderHTMLCanvas::paint):
              * rendering/render_form.cpp:
              (WebCore::RenderSelect::updateFromElement):
              * rendering/render_frames.cpp:
              (WebCore::isURLAllowed):
              (WebCore::mapClassIdToServiceType):
              (WebCore::RenderPartObject::updateWidget):
              * rendering/render_style.h:
              (WebCore::RenderStyle::setDashboardRegion):
              * xml/xmlhttprequest.cpp:
              (WebCore::getCharset):
              (WebCore::XMLHttpRequest::send):
              (WebCore::XMLHttpRequest::overrideMIMEType):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13440 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cff0a728
  16. 21 Mar, 2006 1 commit
    • darin's avatar
      Reviewed by Darin. · 1a64764f
      darin authored
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7884
                REGRESSION: Selecting a custom style sheet crashes 20/3 nightly
      
              * page/Frame.cpp:
              (WebCore::UserStyleSheetLoader::setStyleSheet): This was calling the function
              that sets the stylesheet URL, passing it the actual stylesheet.
              (WebCore::Frame::begin):
              (WebCore::Frame::setUserStyleSheetLocation): Renamed the version of
              setUserStyleSheet() that takes a URL to this.
              (WebCore::Frame::reparseConfiguration):
              * page/Frame.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13428 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1a64764f
  17. 20 Mar, 2006 3 commits
    • eseidel's avatar
      2006-03-20 Eric Seidel <eseidel@apple.com> · 27707962
      eseidel authored
              Reviewed by darin.
      
              Remove many, many uses of DeprecatedString.
              Fix various style issues throughout the touched code.
      
              * bindings/objc/DOM.mm:
              (-[DOMRange _text]):
              * bridge/mac/BrowserExtensionMac.mm:
              (WebCore::BrowserExtensionMac::createNewWindow):
              * bridge/mac/FrameMac.h:
              (WebCore::FrameMac::bridge):
              (WebCore::FrameMac::markedTextRange):
              (WebCore::Mac):
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::openURLRequest):
              (WebCore::FrameMac::searchForLabelsAboveCell):
              (WebCore::FrameMac::searchForLabelsBeforeElement):
              (WebCore::FrameMac::matchLabelsAgainstElement):
              (WebCore::FrameMac::findString):
              (WebCore::FrameMac::submitForm):
              (WebCore::FrameMac::urlSelected):
              (WebCore::FrameMac::objectContentType):
              (WebCore::FrameMac::createPlugin):
              (WebCore::FrameMac::createFrame):
              (WebCore::FrameMac::setTitle):
              (WebCore::FrameMac::setStatusBarText):
              (WebCore::FrameMac::advanceToNextMisspelling):
              (WebCore::FrameMac::userAgent):
              (WebCore::FrameMac::mimeTypeForFileName):
              (WebCore::FrameMac::openURLFromPageCache):
              (WebCore::FrameMac::incomingReferrer):
              (WebCore::FrameMac::attributedString):
              (WebCore::FrameMac::overrideMediaType):
              (WebCore::FrameMac::shouldClose):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge _documentTypeString]):
              (-[WebCoreFrameBridge selectedString]):
              (-[WebCoreFrameBridge stringForRange:]):
              (-[WebCoreFrameBridge advanceToNextMisspelling]):
              (-[WebCoreFrameBridge advanceToNextMisspellingStartingJustBeforeSelection]):
              (-[WebCoreFrameBridge domain]):
              * bridge/mac/WebCoreSettings.mm:
              (-[WebCoreSettings setStandardFontFamily:]):
              (-[WebCoreSettings setFixedFontFamily:]):
              (-[WebCoreSettings setSerifFontFamily:]):
              (-[WebCoreSettings setSansSerifFontFamily:]):
              (-[WebCoreSettings setCursiveFontFamily:]):
              (-[WebCoreSettings setFantasyFontFamily:]):
              (-[WebCoreSettings setUserStyleSheetLocation:]):
              (-[WebCoreSettings setDefaultTextEncoding:]):
              * css/css_valueimpl.cpp:
              (WebCore::quoteStringIfNeeded):
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::CSSStyleSelector):
              (WebCore::CSSStyleSelector::setEncodedURL):
              (WebCore::cleanpath):
              (WebCore::checkPseudoState):
              (WebCore::CSSStyleSelector::styleForElement):
              (WebCore::CSSStyleSelector::styleRulesForElement):
              (WebCore::convertToLength):
              (WebCore::colorForCSSValue):
              (WebCore::CSSStyleSelector::applyProperty):
              (WebCore::CSSStyleSelector::getColorFromPrimitiveValue):
              * css/cssstyleselector.h:
              * dom/CDATASection.cpp:
              (WebCore::CDATASection::toString):
              * dom/Document.cpp:
              (WebCore::Document::recalcStyle):
              * dom/Document.h:
              (WebCore::Document::baseTarget):
              (WebCore::Document::setBaseTarget):
              * dom/dom_elementimpl.cpp:
              (WebCore::Element::openTagStartToString):
              * dom/xml_tokenizer.cpp:
              (WebCore::handleElementAttributes):
              (WebCore::XMLTokenizer::startElementNs):
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::type):
              * editing/TextIterator.cpp:
              (WebCore::TextIterator::advance):
              (WebCore::TextIterator::handleTextBox):
              (WebCore::TextIterator::handleNonTextNode):
              (WebCore::TextIterator::exitNode):
              (WebCore::SimplifiedBackwardsTextIterator::advance):
              (WebCore::SimplifiedBackwardsTextIterator::handleTextNode):
              (WebCore::CharacterIterator::advance):
              (WebCore::WordAwareIterator::advance):
              (WebCore::WordAwareIterator::length):
              (WebCore::WordAwareIterator::characters):
              (WebCore::CircularSearchBuffer::CircularSearchBuffer):
              (WebCore::CircularSearchBuffer::append):
              (WebCore::TextIterator::rangeFromLocationAndLength):
              (WebCore::findPlainText):
              * editing/TextIterator.h:
              * html/HTMLFormElement.cpp:
              (WebCore::HTMLFormElement::formData):
              * khtml/ecma/kjs_navigator.cpp:
              (KJS::Navigator::getValueProperty):
              * khtml/ecma/kjs_proxy.cpp:
              (WebCore::KJSProxy::initScriptIfNeeded):
              * khtml/ecma/kjs_window.cpp:
              (KJS::Location::getValueProperty):
              * ksvg2/misc/KCanvasRenderingStyle.cpp:
              (WebCore::KSVGPainterFactory::fillPaintServer):
              (WebCore::KSVGPainterFactory::strokePaintServer):
              * ksvg2/svg/SVGAngle.cpp:
              (SVGAngle::calculate):
              (SVGAngle::setValueAsString):
              (SVGAngle::valueAsString):
              (SVGAngle::convertToSpecifiedUnits):
              (SVGAngle::shortestArcBisector):
              * ksvg2/svg/SVGAngle.h:
              * ksvg2/svg/SVGAnimationElement.cpp:
              (SVGAnimationElement::targetElement):
              (SVGAnimationElement::parseMappedAttribute):
              (SVGAnimationElement::parseClockValue):
              (SVGAnimationElement::targetAttribute):
              (SVGAnimationElement::setTargetAttribute):
              (SVGAnimationElement::detectAnimationMode):
              (SVGAnimationElement::calculateCurrentValueItem):
              (SVGAnimationElement::calculateRelativeTimePercentage):
              * ksvg2/svg/SVGColor.cpp:
              (SVGColor::setRGBColor):
              * ksvg2/svg/SVGDOMImplementation.cpp:
              (svgFeatureSet):
              (SVGDOMImplementation::self):
              (SVGDOMImplementation::hasFeature):
              (SVGDOMImplementation::createDocumentType):
              (SVGDOMImplementation::createDocument):
              * ksvg2/svg/SVGDOMImplementation.h:
              * ksvg2/svg/SVGPaint.cpp:
              (SVGPaint::cssText):
              * ksvg2/svg/SVGPathSegClosePath.h:
              (WebCore::SVGPathSegClosePath::toString):
              * ksvg2/svg/SVGPreserveAspectRatio.cpp:
              (SVGPreserveAspectRatio::parsePreserveAspectRatio):
              (SVGPreserveAspectRatio::getCTM):
              * ksvg2/svg/SVGStopElement.cpp:
              (SVGStopElement::parseMappedAttribute):
              * ksvg2/svg/SVGStyleElement.cpp:
              (SVGStyleElement::childrenChanged):
              * ksvg2/svg/SVGURIReference.cpp:
              (SVGURIReference::getTarget):
              * kwq/ClipboardMac.mm:
              (WebCore::ClipboardMac::setData):
              (WebCore::ClipboardMac::types):
              (WebCore::ClipboardMac::setEffectAllowed):
              (WebCore::cocoaOpFromIEOp):
              (WebCore::IEOpFromCocoaOp):
              (WebCore::ClipboardMac::sourceOperation):
              (WebCore::ClipboardMac::destinationOperation):
              * kwq/KWQCString.cpp:
              (DeprecatedCString::append):
              * kwq/KWQKHTMLSettings.h:
              (KHTMLSettings::stdFontName):
              (KHTMLSettings::fixedFontName):
              (KHTMLSettings::serifFontName):
              (KHTMLSettings::sansSerifFontName):
              (KHTMLSettings::cursiveFontName):
              (KHTMLSettings::fantasyFontName):
              (KHTMLSettings::minFontSize):
              (KHTMLSettings::minLogicalFontSize):
              (KHTMLSettings::mediumFontSize):
              (KHTMLSettings::mediumFixedFontSize):
              (KHTMLSettings::autoLoadImages):
              (KHTMLSettings::isJavaScriptEnabled):
              (KHTMLSettings::JavaScriptCanOpenWindowsAutomatically):
              (KHTMLSettings::isJavaEnabled):
              (KHTMLSettings::isPluginsEnabled):
              (KHTMLSettings::encoding):
              (KHTMLSettings::userStyleSheet):
              (KHTMLSettings::shouldPrintBackgrounds):
              (KHTMLSettings::textAreasAreResizable):
              (KHTMLSettings::setStdFontName):
              (KHTMLSettings::setFixedFontName):
              (KHTMLSettings::setSerifFontName):
              (KHTMLSettings::setSansSerifFontName):
              (KHTMLSettings::setCursiveFontName):
              (KHTMLSettings::setFantasyFontName):
              (KHTMLSettings::setMinFontSize):
              (KHTMLSettings::setMinLogicalFontSize):
              (KHTMLSettings::setMediumFontSize):
              (KHTMLSettings::setMediumFixedFontSize):
              (KHTMLSettings::setAutoLoadImages):
              (KHTMLSettings::setIsJavaScriptEnabled):
              (KHTMLSettings::setIsJavaEnabled):
              (KHTMLSettings::setArePluginsEnabled):
              (KHTMLSettings::setJavaScriptCanOpenWindowsAutomatically):
              (KHTMLSettings::setEncoding):
              (KHTMLSettings::setUserStyleSheet):
              (KHTMLSettings::setShouldPrintBackgrounds):
              (KHTMLSettings::setTextAreasAreResizable):
              * kwq/KWQLoader.mm:
              (KWQServeSynchronousRequest):
              * kwq/KWQTextStream.cpp:
              (QTextStream::QTextStream):
              (QTextStream::operator<<):
              (QTextStream::precision):
              * kwq/KWQTextStream.h:
              * kwq/RenderTreeAsText.cpp:
              (operator<<):
              (quoteAndEscapeNonPrintables):
              (writeTextRun):
              (write):
              (writeSelection):
              * loader/Cache.cpp:
              (WebCore::Cache::init):
              (WebCore::Cache::requestImage):
              (WebCore::Cache::requestStyleSheet):
              (WebCore::Cache::preloadStyleSheet):
              (WebCore::Cache::requestScript):
              (WebCore::Cache::preloadScript):
              (WebCore::Cache::requestXSLStyleSheet):
              (WebCore::Cache::requestXBLDocument):
              (WebCore::Cache::remove):
              * loader/Cache.h:
              * loader/CachedCSSStyleSheet.cpp:
              (WebCore::CachedCSSStyleSheet::error):
              * loader/CachedCSSStyleSheet.h:
              * loader/CachedImage.cpp:
              (WebCore::CachedImage::error):
              * loader/CachedImage.h:
              * loader/CachedObject.h:
              * loader/CachedScript.cpp:
              (WebCore::CachedScript::checkNotify):
              (WebCore::CachedScript::error):
              * loader/CachedScript.h:
              * loader/CachedXBLDocument.cpp:
              (WebCore::CachedXBLDocument::error):
              * loader/CachedXBLDocument.h:
              * loader/CachedXSLStyleSheet.cpp:
              (WebCore::CachedXSLStyleSheet::error):
              * loader/CachedXSLStyleSheet.h:
              * loader/DocLoader.cpp:
              (WebCore::DocLoader::DocLoader):
              (WebCore::DocLoader::~DocLoader):
              (WebCore::DocLoader::needReload):
              (WebCore::DocLoader::requestImage):
              (WebCore::DocLoader::requestStyleSheet):
              (WebCore::DocLoader::requestScript):
              (WebCore::DocLoader::requestXSLStyleSheet):
              (WebCore::DocLoader::requestXBLDocument):
              (WebCore::DocLoader::setAutoloadImages):
              (WebCore::DocLoader::setShowAnimations):
              (WebCore::DocLoader::removeCachedObject):
              * loader/loader.cpp:
              (WebCore::Loader::receivedAllData):
              (WebCore::Loader::receivedResponse):
              * page/Frame.cpp:
              (WebCore::UserStyleSheetLoader::setStyleSheet):
              (WebCore::Frame::didOpenURL):
              (WebCore::Frame::setMetaRefreshEnabled):
              (WebCore::Frame::setAutoloadImages):
              (WebCore::Frame::autoloadImages):
              (WebCore::Frame::clear):
              (WebCore::Frame::receivedFirstData):
              (WebCore::Frame::begin):
              (WebCore::Frame::write):
              (WebCore::Frame::baseTarget):
              (WebCore::Frame::completeURL):
              (WebCore::Frame::scheduleRedirection):
              (WebCore::Frame::scheduleLocationChange):
              (WebCore::Frame::scheduleHistoryNavigation):
              (WebCore::Frame::changeLocation):
              (WebCore::Frame::redirectionTimerFired):
              (WebCore::Frame::encoding):
              (WebCore::Frame::gotoAnchor):
              (WebCore::Frame::setStandardFont):
              (WebCore::Frame::setFixedFont):
              (WebCore::Frame::selectedText):
              (WebCore::Frame::selection):
              (WebCore::Frame::dragCaret):
              (WebCore::Frame::setSelection):
              (WebCore::Frame::setDragCaret):
              (WebCore::Frame::paintCaret):
              (WebCore::Frame::paintDragCaret):
              (WebCore::Frame::urlSelected):
              (WebCore::Frame::requestFrame):
              (WebCore::Frame::requestObject):
              (WebCore::Frame::shouldUsePlugin):
              (WebCore::Frame::loadPlugin):
              (WebCore::Frame::loadSubframe):
              (WebCore::Frame::submitForm):
              (WebCore::Frame::lastModified):
              (WebCore::Frame::reparseConfiguration):
              (WebCore::Frame::shouldChangeSelection):
              (WebCore::Frame::appliedEditing):
              (WebCore::Frame::unappliedEditing):
              (WebCore::Frame::reappliedEditing):
              (WebCore::Frame::executeScript):
              (WebCore::updateState):
              (WebCore::Frame::isCharacterSmartReplaceExempt):
              (WebCore::Frame::openURL):
              (WebCore::Frame::didNotOpenURL):
              (WebCore::Frame::setEncoding):
              (WebCore::Frame::saveInterpreterBuiltins):
              (WebCore::Frame::restoreInterpreterBuiltins):
              (WebCore::Frame::mutableInstances):
              (WebCore::Frame::setPolicyBaseURL):
              (WebCore::Frame::addMetaData):
              (WebCore::Frame::scrollToAnchor):
              (WebCore::Frame::setMediaType):
              (WebCore::Frame::highlightAllMatchesForString):
              (WebCore::Frame::tree):
              * page/Frame.h:
              (WebCore::Frame::instances):
              * page/FramePrivate.h:
              * page/FrameView.cpp:
              (WebCore::FrameViewPrivate::FrameViewPrivate):
              (WebCore::FrameView::FrameView):
              (WebCore::FrameView::~FrameView):
              (WebCore::FrameView::init):
              (WebCore::FrameView::setMarginWidth):
              (WebCore::FrameView::setMarginHeight):
              (WebCore::FrameView::adjustViewSize):
              (WebCore::FrameView::layout):
              (WebCore::FrameView::dispatchDragEvent):
              (WebCore::FrameView::scrollTo):
              (WebCore::FrameView::setMediaType):
              (WebCore::FrameView::mediaType):
              (WebCore::FrameView::setResizingFrameSet):
              (WebCore::FrameView::setIgnoreWheelEvents):
              * page/FrameView.h:
              (WebCore::FrameView::frameWidth):
              (WebCore::FrameView::marginWidth):
              (WebCore::FrameView::marginHeight):
              (WebCore::FrameView::ref):
              (WebCore::FrameView::deref):
              * page/ResourceRequest.h:
              (WebCore::ResourceRequest::contentType):
              (WebCore::ResourceRequest::setContentType):
              * platform/FontFamily.h:
              * platform/Image.h:
              * platform/KURL.cpp:
              (KURL::KURL):
              (KURL::parse):
              (urlcmp):
              (KURL::encode_string):
              (encodeHostname):
              * platform/KURL.h:
              * platform/PlatformString.h:
              (WebCore::String::left):
              (WebCore::String::right):
              * platform/String.cpp:
              (WebCore::String::toInt):
              * platform/StringImpl.cpp:
              (WebCore::StringImpl::toInt):
              * platform/TransferJob.cpp:
              (WebCore::TransferJob::queryMetaData):
              (WebCore::TransferJob::addMetaData):
              * platform/TransferJob.h:
              * platform/mac/ImageMac.mm:
              (WebCore::Image::supportsType):
              * platform/mac/TransferJobMac.mm:
              (WebCore::TransferJob::start):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::information):
              * rendering/RenderTextField.cpp:
              (WebCore::RenderTextField::updateFromElement):
              * xml/xmlhttprequest.cpp:
              (WebCore::getMIMEType):
              (WebCore::getCharset):
              (WebCore::XMLHttpRequest::getReadyState):
              (WebCore::XMLHttpRequest::getResponseText):
              (WebCore::XMLHttpRequest::getResponseXML):
              (WebCore::XMLHttpRequest::XMLHttpRequest):
              (WebCore::XMLHttpRequest::~XMLHttpRequest):
              (WebCore::XMLHttpRequest::changeState):
              (WebCore::XMLHttpRequest::callReadyStateChangeListener):
              (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
              (WebCore::XMLHttpRequest::open):
              (WebCore::XMLHttpRequest::send):
              (WebCore::XMLHttpRequest::abort):
              (WebCore::XMLHttpRequest::overrideMIMEType):
              (WebCore::XMLHttpRequest::setRequestHeader):
              (WebCore::XMLHttpRequest::getRequestHeader):
              (WebCore::XMLHttpRequest::getAllResponseHeaders):
              (WebCore::XMLHttpRequest::getResponseHeader):
              (WebCore::XMLHttpRequest::responseIsXML):
              (WebCore::XMLHttpRequest::getStatus):
              (WebCore::XMLHttpRequest::getStatusText):
              (WebCore::XMLHttpRequest::processSyncLoadResults):
              (WebCore::XMLHttpRequest::receivedAllData):
              (WebCore::XMLHttpRequest::receivedRedirect):
              (WebCore::XMLHttpRequest::receivedData):
              (WebCore::XMLHttpRequest::cancelRequests):
              (WebCore::XMLHttpRequest::detachRequests):
              * xml/xmlhttprequest.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13404 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      27707962
    • ap's avatar
      Reviewed by Darin. · 1f71fdfa
      ap authored
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=3439
               mouseover effects can get stuck sometimes due to missing events
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=7701
               mouseout sent to the wrong element when layout changes simultaneously
              
              Implemented saving the previous node under the mouse, so that we don't need to 
              recalculate it, which is slow and even not really possible. This has fixed a number 
              of issues with mouse event dispatching when the content changes.
              The code still needs refactoring and cleanup, see bug 3439 for comments.
      
              Tests (both files perform multiple checks):
              - fast/events/mouseover-mouseout.html
              - fast/events/mouseover-mouseout2.html
      
              * page/Frame.h: Added a Frame parameter to passSubframeEventToSubframe(),
              used for mouseMoved events.
              * bridge/mac/FrameMac.h: Ditto.
              * bridge/mac/FrameMac.mm: 
              (WebCore::FrameMac::passSubframeEventToSubframe): Use the passed subframe to target 
              NSMouseMoved events.
              * page/FrameView.h: Added a prepareMouseEvent() helper that does viewportToContents translation.
              * page/FrameView.cpp: Added data members for storing the previous node and subframe 
              under the mouse to FrameViewPrivate. Removed the now unused prevMouseX/prevMouseY.
              (WebCore::FrameViewPrivate::reset): Reset the new data members.
              (WebCore::subframeForEvent): A temporary place for the code that extracts a subframe
              pointer from MouseEventWithHitTestResults, moved from FrameMac::passSubframeEventToSubframe().
              (WebCore::FrameView::prepareMouseEvent): The new helper.
              (WebCore::FrameView::handleMousePressEvent): Use the new helper.
              (WebCore::FrameView::handleMouseDoubleClickEvent): Ditto.
              (WebCore::FrameView::handleMouseReleaseEvent): Ditto.
              (WebCore::FrameView::updateDragAndDrop): Ditto.
              (WebCore::FrameView::hoverTimerFired): Ditto.
              (WebCore::FrameView::dispatchMouseEvent): Store and use the oldUnder node, don't store 
              or use prevMouseX/Y.
              (WebCore::FrameView::handleMouseMoveEvent): Rewrote dispatching events to subframes using 
              a stored oldSubframe reference. Protect "this" from being removed while in this function.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13402 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1f71fdfa
    • eseidel's avatar
      2006-03-17 Eric Seidel <eseidel@apple.com> · 8b17b671
      eseidel authored
              Reviewed by darin.
      
              Move Form code from MacFrame to Frame.
              Move GraphicsContext code from GraphicsContextMac to GraphicsContext.
              Use IntRect, FloatRect in more places throughout the code.
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7824
      
              * bridge/mac/MacFrame.h:
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::MacFrame):
              (WebCore::MacFrame::searchForLabelsAboveCell):
              (WebCore::MacFrame::searchForLabelsBeforeElement):
              (WebCore::dictionaryFromHashMap):
              (WebCore::MacFrame::submitForm):
              (WebCore::MacFrame::setView):
              (WebCore::MacFrame::currentEventIsMouseDownInWidget):
              (WebCore::MacFrame::currentEventIsKeyboardOptionTab):
              (WebCore::MacFrame::handleKeyboardOptionTabInView):
              (WebCore::MacFrame::tabsToAllControls):
              (WebCore::MacFrame::shouldDragAutoNode):
              (WebCore::MacFrame::selectionImage):
              (WebCore::MacFrame::snapshotDragImage):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge nextKeyView]):
              (-[WebCoreFrameBridge previousKeyView]):
              (-[WebCoreFrameBridge nextKeyViewInsideWebFrameViews]):
              (-[WebCoreFrameBridge previousKeyViewInsideWebFrameViews]):
              * kcanvas/RenderSVGImage.cpp:
              (WebCore::RenderSVGImage::paint):
              * page/Frame.cpp:
              (WebCore::Frame::Frame):
              (WebCore::Frame::clearRecordedFormValues):
              (WebCore::Frame::recordFormValue):
              (WebCore::Frame::didNotOpenURL):
              (WebCore::scanForForm):
              (WebCore::Frame::paint):
              (WebCore::Frame::prepareForUserAction):
              * page/Frame.h:
              * platform/GraphicsContext.cpp:
              (WebCore::GraphicsContextState::GraphicsContextState):
              (WebCore::GraphicsContextPrivate::GraphicsContextPrivate):
              (WebCore::GraphicsContextPrivate::~GraphicsContextPrivate):
              (WebCore::GraphicsContext::save):
              (WebCore::GraphicsContext::restore):
              (WebCore::GraphicsContext::font):
              (WebCore::GraphicsContext::setFont):
              (WebCore::GraphicsContext::pen):
              (WebCore::GraphicsContext::setPen):
              (WebCore::GraphicsContext::setBrush):
              (WebCore::GraphicsContext::brush):
              (WebCore::GraphicsContext::setUsesInactiveTextBackgroundColor):
              (WebCore::GraphicsContext::usesInactiveTextBackgroundColor):
              (WebCore::GraphicsContext::updatingControlTints):
              (WebCore::GraphicsContext::setUpdatingControlTints):
              (WebCore::GraphicsContext::setPaintingDisabled):
              (WebCore::GraphicsContext::paintingDisabled):
              (WebCore::GraphicsContext::printing):
              (WebCore::GraphicsContext::drawImageAtPoint):
              (WebCore::GraphicsContext::drawImageInRect):
              (WebCore::GraphicsContext::drawImage):
              (WebCore::GraphicsContext::initFocusRing):
              (WebCore::GraphicsContext::clearFocusRing):
              (WebCore::GraphicsContext::addFocusRingRect):
              (WebCore::GraphicsContext::focusRingWidth):
              (WebCore::GraphicsContext::focusRingOffset):
              (WebCore::GraphicsContext::focusRingRects):
              * platform/GraphicsContext.h:
              * platform/mac/GraphicsContextMac.mm:
              (WebCore::fillRectSourceOver):
              (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
              (WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate):
              (WebCore::GraphicsContext::GraphicsContext):
              (WebCore::GraphicsContext::~GraphicsContext):
              (WebCore::GraphicsContext::savePlatformState):
              (WebCore::GraphicsContext::restorePlatformState):
              (WebCore::GraphicsContext::drawRect):
              (WebCore::GraphicsContext::setColorFromBrush):
              (WebCore::GraphicsContext::setColorFromPen):
              (WebCore::GraphicsContext::drawLine):
              (WebCore::GraphicsContext::drawEllipse):
              (WebCore::GraphicsContext::drawArc):
              (WebCore::GraphicsContext::drawConvexPolygon):
              (WebCore::GraphicsContext::drawFloatImage):
              (WebCore::GraphicsContext::drawTiledImage):
              (WebCore::GraphicsContext::drawScaledAndTiledImage):
              (WebCore::GraphicsContext::selectedTextBackgroundColor):
              (WebCore::GraphicsContext::fillRect):
              (WebCore::GraphicsContext::addClip):
              (WebCore::GraphicsContext::addRoundedRectClip):
              (WebCore::GraphicsContext::beginTransparencyLayer):
              (WebCore::GraphicsContext::endTransparencyLayer):
              (WebCore::GraphicsContext::setShadow):
              (WebCore::GraphicsContext::clearShadow):
              (WebCore::GraphicsContext::drawFocusRing):
              * rendering/render_box.cpp:
              (WebCore::RenderBox::paintBackgroundExtended):
              (WebCore::RenderBox::outlineBox):
              * rendering/render_frames.cpp:
              (WebCore::RenderFrameSet::userResize):
              * rendering/render_image.cpp:
              (WebCore::RenderImage::paint):
              * rendering/render_list.cpp:
              (WebCore::RenderListMarker::paint):
              * rendering/render_object.cpp:
              (WebCore::RenderObject::drawBorder):
              (WebCore::RenderObject::paintBorderImage):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13396 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8b17b671
  18. 19 Mar, 2006 1 commit
  19. 17 Mar, 2006 1 commit
    • mjs's avatar
      Reviewed by Adele. · dcce106f
      mjs authored
              - clean up ResourceRequest to be closer to a proper request interface
      
              * page/ResourceRequest.h: folded URL into ResourceRequest, other cleanup
              (WebCore::ResourceRequest::ResourceRequest): Add new explicit constructor
              that takes a KURL.
              (WebCore::ResourceRequest::url): getter for KURL
              (WebCore::ResourceRequest::setURL): corresponding setter
              (WebCore::ResourceRequest::referrer): new getter for referrer, instead
              of storing it in m_metaData (it was the only remaining real use of it)
              (WebCore::ResourceRequest::setReferrer): corresponding setter
              * bridge/BrowserExtension.h: 
              - removed unused openURLRequest and openURLNotify methods
              - folded KURL parameter into ResourceRequest
              * bridge/mac/BrowserExtensionMac.h: remove KURL args from methods that
              also take a ResourceRequest
              * bridge/mac/BrowserExtensionMac.mm:
              (WebCore::BrowserExtensionMac::createNewWindow): adjust for ResourceRequest
              changes.
              * bridge/mac/MacFrame.h: remove KURL args from methods that also take a
              ResourceRequest
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::openURLRequest): adjust for ResourceRequest changes
              (WebCore::MacFrame::submitForm): ditto
              (WebCore::MacFrame::urlSelected): ditto
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge openURL:reload:contentType:refresh:lastModified:pageCache:]): 
              adjust for ResourceRequest changes
              * bridge/win/BrowserExtensionWin.h:
              * khtml/ecma/kjs_window.cpp:
              (KJS::createNewWindow): adjust for ResourceRequest changes
              (KJS::WindowFunc::callAsFunction): ditto
              * page/Frame.cpp:
              (WebCore::Frame::didOpenURL): adjust for ResourceRequest changes
              (WebCore::Frame::receivedFirstData): ditto
              (WebCore::Frame::begin): ditto
              (WebCore::Frame::completeURL): ditto
              (WebCore::Frame::changeLocation): ditto
              (WebCore::Frame::urlSelected): ditto
              (WebCore::Frame::requestFrame): ditto
              (WebCore::Frame::submitForm): ditto
              * page/Frame.h:
              * platform/win/TemporaryLinkStubs.cpp:
              (BrowserExtensionWin::createNewWindow): ditto
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13364 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dcce106f
  20. 16 Mar, 2006 4 commits
    • darin's avatar
      Reviewed by Eric. · 8a2a58fd
      darin authored
              - removed KWQWindowWidget
              - changed most event handling to use references instead of pointers
              - chagned PageMac to no longer be a subclass of Page
      
              Yes, I know there's no detail in this ChangeLog entry.
              No, I don't plan to make a habit of doing things this way.
              Yes, this will probably break the Windows build again.
      
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/BrowserExtensionMac.mm:
              (WebCore::BrowserExtensionMac::createNewWindow):
              * bridge/mac/FrameViewMac.mm:
              * bridge/mac/MacFrame.h:
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::MacFrame):
              (WebCore::MacFrame::~MacFrame):
              (WebCore::MacFrame::wheelEvent):
              (WebCore::MacFrame::keyEvent):
              (WebCore::MacFrame::khtmlMousePressEvent):
              (WebCore::MacFrame::khtmlMouseMoveEvent):
              (WebCore::MacFrame::khtmlMouseReleaseEvent):
              (WebCore::MacFrame::mouseDown):
              (WebCore::MacFrame::mouseDragged):
              (WebCore::MacFrame::mouseUp):
              (WebCore::MacFrame::mouseMoved):
              (WebCore::MacFrame::sendContextMenuEvent):
              (WebCore::MacFrame::setBridge):
              (WebCore::MacFrame::dragSourceMovedTo):
              (WebCore::MacFrame::dragSourceEndedAt):
              (WebCore::MacFrame::dispatchDragSrcEvent):
              * bridge/mac/PageMac.h: Removed.
              * bridge/mac/PageMac.mm: Added.
              (WebCore::Page::Page):
              (WebCore::Page::windowRect):
              (WebCore::Page::setWindowRect):
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge page]):
              (-[WebCoreFrameBridge initializeSettings:]):
              (globalPoint):
              (createMouseEventFromDraggingInfo):
              (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
              (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]):
              (-[WebCoreFrameBridge concludeDragForDraggingInfo:]):
              (-[WebCoreFrameBridge dragSourceMovedTo:]):
              (-[WebCoreFrameBridge dragSourceEndedAt:operation:]):
              * bridge/mac/WebCoreFrameNamespaces.mm:
              (WebCore::):
              * bridge/mac/WebCorePageBridge.h:
              * bridge/mac/WebCorePageBridge.mm:
              (-[WebCorePageBridge init]):
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::prepareMouseEvent):
              (WebCore::DocumentImpl::defaultEventHandler):
              * dom/DocumentImpl.h:
              * dom/NodeImpl.cpp:
              (WebCore::NodeImpl::dispatchMouseEvent):
              (WebCore::NodeImpl::dispatchKeyEvent):
              (WebCore::NodeImpl::dispatchWheelEvent):
              * dom/NodeImpl.h:
              * dom/dom2_eventsimpl.cpp:
              (WebCore::KeyboardEventImpl::KeyboardEventImpl):
              * dom/dom2_eventsimpl.h:
              (WebCore::KeyboardEventImpl::keyEvent):
              * khtml/ecma/kjs_window.cpp:
              (KJS::Window::getValueProperty):
              (KJS::WindowFunc::callAsFunction):
              * khtml/html/html_inlineimpl.cpp:
              (WebCore::HTMLAnchorElementImpl::defaultEventHandler):
              * ksvg2/svg/SVGDocumentImpl.cpp:
              * ksvg2/svg/SVGDocumentImpl.h:
              * kwq/KWQWindowWidget.h:
              * kwq/KWQWindowWidget.mm: Removed.
              * page/Frame.cpp:
              (WebCore::Frame::selectClosestWordFromMouseEvent):
              (WebCore::Frame::handleMousePressEventDoubleClick):
              (WebCore::Frame::handleMousePressEventTripleClick):
              (WebCore::Frame::handleMousePressEventSingleClick):
              (WebCore::Frame::khtmlMousePressEvent):
              (WebCore::Frame::handleMouseMoveEventSelection):
              (WebCore::Frame::khtmlMouseMoveEvent):
              (WebCore::Frame::khtmlMouseReleaseEvent):
              (WebCore::Frame::khtmlMouseDoubleClickEvent):
              (WebCore::Frame::passWidgetMouseDownEventToWidget):
              * page/Frame.h:
              * page/FrameView.cpp:
              (WebCore::FrameView::viewportMousePressEvent):
              (WebCore::FrameView::viewportMouseDoubleClickEvent):
              (WebCore::FrameView::viewportMouseMoveEvent):
              (WebCore::FrameView::viewportMouseReleaseEvent):
              (WebCore::FrameView::dispatchDragEvent):
              (WebCore::FrameView::updateDragAndDrop):
              (WebCore::FrameView::cancelDragAndDrop):
              (WebCore::FrameView::performDragAndDrop):
              (WebCore::FrameView::dispatchMouseEvent):
              (WebCore::FrameView::viewportWheelEvent):
              * page/FrameView.h:
              * page/MouseEventWithHitTestResults.h:
              (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
              (WebCore::MouseEventWithHitTestResults::event):
              * page/Page.cpp:
              (WebCore::Page::init):
              * page/Page.h:
              (WebCore::Page::bridge):
              * platform/KeyEvent.h:
              (WebCore::KeyEvent::isAutoRepeat):
              * platform/MouseEvent.h:
              (WebCore::MouseEvent::MouseEvent):
              * platform/mac/KeyEventMac.mm:
              (WebCore::KeyEvent::KeyEvent):
              * platform/win/TemporaryLinkStubs.cpp:
              (FrameView::isFrameView):
              * rendering/render_form.cpp:
              (WebCore::RenderFormElement::clicked):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13342 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8a2a58fd
    • mjs's avatar
      Reviewed by Eric. · 24636cc8
      mjs authored
              - renamed URLArgs to ResourceRequest, split it into its own header
              - moved methods to get and set ResourceRequest to Frame
      
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/BrowserExtension.h:
              * bridge/mac/BrowserExtensionMac.h:
              * bridge/mac/BrowserExtensionMac.mm:
              (WebCore::BrowserExtensionMac::openURLRequest):
              (WebCore::BrowserExtensionMac::createNewWindow):
              * bridge/mac/MacFrame.h:
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::openURLRequest):
              (WebCore::MacFrame::submitForm):
              (WebCore::MacFrame::urlSelected):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge openURL:reload:contentType:refresh:lastModified:pageCache:]):
              * khtml/ecma/kjs_window.cpp:
              (KJS::createNewWindow):
              (KJS::WindowFunc::callAsFunction):
              * page/Frame.cpp:
              (WebCore::Frame::didOpenURL):
              (WebCore::Frame::receivedFirstData):
              (WebCore::Frame::setResourceRequest):
              (WebCore::Frame::resourceRequest):
              (WebCore::Frame::begin):
              (WebCore::Frame::changeLocation):
              (WebCore::Frame::urlSelected):
              (WebCore::Frame::requestFrame):
              (WebCore::Frame::submitForm):
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/ResourceRequest.h: Added.
              (WebCore::ResourceRequest::ResourceRequest):
              (WebCore::ResourceRequest::contentType):
              (WebCore::ResourceRequest::setContentType):
              (WebCore::ResourceRequest::doPost):
              (WebCore::ResourceRequest::setDoPost):
              (WebCore::ResourceRequest::lockHistory):
              (WebCore::ResourceRequest::setLockHistory):
              (WebCore::ResourceRequest::metaData):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13337 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      24636cc8
    • eseidel's avatar
      2006-03-15 Eric Seidel <eseidel@apple.com> · c79c10b2
      eseidel authored
              Reviewed by darin.
      
              Push more of MacFrame down into Frame.
              Add visibleContentRect method to ScrollView.
      
              * bridge/mac/MacFrame.h:
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::imageFromRect):
              (WebCore::MacFrame::setDisplaysWithFocusAttributes):
              (WebCore::MacFrame::bodyBackgroundColor):
              * bridge/mac/WebCoreFrameBridge.mm:
              * page/Frame.cpp:
              (WebCore::Frame::visibleSelectionRect):
              (WebCore::Frame::setDisplaysWithFocusAttributes):
              * page/Frame.h:
              * platform/ScrollView.h:
              * platform/mac/ScrollViewMac.mm:
              (WebCore::ScrollView::visibleWidth):
              (WebCore::ScrollView::visibleHeight):
              (WebCore::ScrollView::visibleContentRect):
              (WebCore::ScrollView::contentsWidth):
              (WebCore::ScrollView::contentsHeight):
              (WebCore::ScrollView::contentsX):
              (WebCore::ScrollView::contentsY):
              (WebCore::ScrollView::scrollXOffset):
              (WebCore::ScrollView::scrollYOffset):
              (WebCore::ScrollView::inWindow):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13327 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c79c10b2
    • eseidel's avatar
      2006-03-15 Eric Seidel <eseidel@apple.com> · 877ee17a
      eseidel authored
              Reviewed by darin.
      
              Remove unused code and clean-up style.
      
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::advanceToNextMisspelling):
              (WebCore::MacFrame::wheelEvent):
              (WebCore::MacFrame::nextKeyViewInFrame):
              (WebCore::MacFrame::nextKeyViewInFrameHierarchy):
              (WebCore::MacFrame::nextKeyView):
              * page/Frame.cpp:
              * page/Frame.h:
              * page/FrameView.cpp:
              (WebCore::FrameView::dispatchMouseEvent):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13326 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      877ee17a
  21. 15 Mar, 2006 2 commits
    • ap's avatar
      Reviewed by Maciej. · 345ee334
      ap authored
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=4395
               REGRESSION: document.open doesn't clear the document
      
              Test: fast/dom/Document/document-reopen.html
              Test: fast/dom/Document/doc-open-while-parsing.html
      
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::open): Only ignore open() while the frame is still loading the main resource.
              * page/Frame.cpp:
              (WebCore::Frame::isComplete): Added const specifier.
              (WebCore::Frame::isLoadingMainResource): New function.
              * page/Frame.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13324 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      345ee334
    • adele's avatar
      Reviewed by Maciej. · f6b36494
      adele authored
              - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=7114
              Dragging to scroll doesn't work for overflow areas
      
              No test case.  There doesn't appear to be a way to trigger the autoscroll with the EventSender.
      
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::khtmlMouseMoveEvent):  If we have a layer that can scroll, let the layer handle its autoscroll.  
               Otherwise, call over the bridge to let AppKit scroll the view.
              (WebCore::MacFrame::khtmlMouseReleaseEvent): Stops the autoscroll timer.
              * page/Frame.cpp:
              (WebCore::Frame::khtmlMouseReleaseEvent): Stops the autoscroll timer.
              (WebCore::Frame::handleAutoscroll): Added. Saves the layer, and starts the timer.
              (WebCore::Frame::autoscrollTimerFired): Added. Calls autoscroll() on the layer.
              (WebCore::Frame::startAutoscrollTimer): Added.
              (WebCore::Frame::stopAutoscrollTimer): Added.
              * page/Frame.h: Added new autoscroll methods.
              * page/FramePrivate.h: (WebCore::FramePrivate::FramePrivate): Initialize m_autoscrollTimer and m_autoscrollLayer.
              * rendering/render_layer.cpp:
              (WebCore::RenderLayer::autoscroll): Calculates how much the layer should scroll, and actually scrolls.
              (WebCore::RenderLayer::shouldAutoscroll): If the layer has overflow then it should be able to scroll.  
               Except for overflow:hidden areas that aren't editable.  
               In the future, we may want to have a css property that indicates an overflow:hidden style that should also scroll.
              * rendering/render_layer.h: Added new autoscroll methods.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13302 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f6b36494
  22. 10 Mar, 2006 2 commits
    • darin's avatar
      WebCore: · 99d48e47
      darin authored
              Reviewed by Adele.
      
              - removed some unused stuff from Frame and MacFrame
      
              * page/Frame.h: Removed autoloadImages (the setter), enableMetaRefresh,
              setCharset, backgroundURL, findTextBegin, findTextNext, preloadStyleSheet,
              preloadScript, restored, onURL, selectionChanged, htmlError, openFile,
              updateActions, openURLInFrame, overURL, checkLinkSecurity, and cacheId.
              * page/FramePrivate.h: Removed m_restored, m_frameNameId, m_strSelectedURL,
              m_strSelectedURLTarget, m_bDnd, m_bClearing, m_bSecurityInQuestion,
              m_focusNodeRestored, m_focusNodeNumber, and m_newJSInterpreterExists.
              * page/Frame.cpp:
              (WebCore::Frame::didOpenURL): Removed use of m_restored, code to set
              m_bClearing.
              (WebCore::Frame::clear): Removed code to set m_bClearing and m_frameNameId.
              (WebCore::Frame::khtmlMousePressEvent): Removed code to set m_strSelectedURL
              and m_strSelectedURLTarget.
      
              * bridge/mac/MacFrame.h: Removed scheduleHistoryNavigation and
              requestedURLString.
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::openURLFromPageCache): Removed use of m_restored.
              Removed unused requestedURLString.
      
              * bridge/mac/WebCoreFrameBridge.h: Removed requestedURLString.
      
      WebKit:
      
              Reviewed by Adele.
      
              * WebCoreSupport/WebFrameBridge.m: Remove unused requestedURLString method.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13260 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      99d48e47
    • darin's avatar
      LayoutTests: · 135369e3
      darin authored
              Reviewed by Geoff, except for frame-name-reset, which was done by Alexey.
      
              - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=3308
                Pop-up blocking blocks window.open for already open windows
      
              * fast/dom/Window/open-existing-pop-up-blocking-expected.checksum: Added.
              * fast/dom/Window/open-existing-pop-up-blocking-expected.png: Added.
              * fast/dom/Window/open-existing-pop-up-blocking-expected.txt: Added.
              * fast/dom/Window/open-existing-pop-up-blocking.html: Added.
              * fast/dom/Window/resources/open-sibling-subframe.html: Added.
              * fast/dom/Window/resources/sibling-subframe-content.html: Added.
      
              - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=7422
                Setting a frame name to the same value resets it to a generated one
      
              * fast/frames/frame-name-reset.html: Added.
              * fast/frames/frame-name-reset-expected.txt: Added.
      
      WebCore:
      
              Reviewed by Geoff.
      
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=3308
                Pop-up blocking blocks window.open for already open windows
      
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7422
                Setting a frame name to the same value resets it to a generated one
      
              - refactor frame-name-related functions into the FrameTree object
      
              * WebCore.xcodeproj/project.pbxproj: Update for rename.
              * bridge/mac/MacFrame.h: Remove generateFrameName.
              * bridge/mac/MacFrame.mm: Ditto.
              * bridge/mac/PageMac.h: Added a declaration for WebCorePageBridge.
      
              * bridge/mac/WebCoreFrameBridge.h: Remove _frameNamespace, generateFrameName,
              setFrameNamespace, frameNamespace.
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge childFrameNamed:]): Change to call the new child
              function on the FrameTree.
              (-[WebCoreFrameBridge findFrameNamed:]): Change to call the new find
              function on the FrameTree.
              (-[WebCoreFrameBridge RenderObject::nodeInfoAtPoint:]): Change since the
              contentPart function has been renamed to contentFrame.
      
              * bridge/mac/WebCoreFrameNamespaces.h: Removed everything except for the
              one method still used on the WebKit side, framesInNamespace:.
              * bridge/mac/WebCoreFrameNamespaces.m: Renamed.
              * bridge/mac/WebCoreFrameNamespaces.mm: Added. Reimplemented the
              framesInNamespace method to use the namespace in WebCore::Page.
      
              * bridge/mac/WebCorePageBridge.h: Added setGroupName and groupName.
              * bridge/mac/WebCorePageBridge.mm:
              (-[WebCorePageBridge setGroupName:]): Added. Calls through to Page.
              (-[WebCorePageBridge groupName]): Ditto.
      
              * khtml/ecma/kjs_html.cpp:
              (KJS::HTMLDocument::namedItemGetter): Changed to call contentFrame by its new name.
              (KJS::HTMLElement::frameGetter): Ditto.
              (KJS::HTMLElement::iFrameGetter): Ditto.
      
              * khtml/ecma/kjs_window.cpp:
              (KJS::Window::getValueProperty): Changed to call FrameTree::childCount
              instead of Frame::frames.
              (KJS::Window::childFrameGetter): Changed to call FrameTree::child
              instead of Frame::childFrameNamed.
              (KJS::Window::namedFrameGetter): Changed to call FrameTree::find
              instead of Frame::findFrame.
              (KJS::Window::indexGetter): Changed to call FrameTree::child
              instead of Frame::frames.
              (KJS::Window::getOwnPropertySlot): Changed to call FrameTree::child,
              FrameTree::find, and FrameTree::childCount instead of Frame::childFrameNamed,
              and Frame::findFrame, and Frame::frames.
              (KJS::WindowFunc::callAsFunction): Call FrameTree::find to check if the window
              is already open when considering whether to block a pop-up.
              (KJS::FrameArray::getValueProperty): Changed to call FrameTree::childCount
              instead of Frame::frames.
              (KJS::FrameArray::indexGetter): Changed to call FrameTree::child
              instead of Frame::frames.
              (KJS::FrameArray::nameGetter): Changed to call FrameTree::child
              instead of Frame::findFrame.
              (KJS::FrameArray::getOwnPropertySlot): Changed to call FrameTree::child,
              and FrameTree::childCount instead of Frame::findFrame and Frame::frames.
      
              * khtml/html/html_baseimpl.h:
              * khtml/html/html_baseimpl.cpp:
              (WebCore::HTMLFrameElementImpl::isURLAllowed): Changed to call Page::frameCount
              instead of Frame::topLevelFrameCount.
              (WebCore::HTMLFrameElementImpl::openURL): Changed to call FrameTree::child
              instead of Frame::findFrame.
              (WebCore::HTMLFrameElementImpl::attach): Changed to call Page::incrementFrameCount
              instead of Frame::incrementFrameCount. Changed to call FrameTree::uniqueChildName
              instead of Frame::requestFrameName.
              (WebCore::HTMLFrameElementImpl::close): Changed to call Page::decrementFrameCount
              instead of Frame::decrementFrameCount. Changed to call FrameTree::child
              instead of Frame::findFrame.
              (WebCore::HTMLFrameElementImpl::contentFrame): Renamed from contentPart. Also
              changed to call FrameTree::child instead of Frame::findFrame.
              (WebCore::HTMLFrameElementImpl::contentDocument): Updated for name change of
              contentFrame from contentPart.
              (WebCore::HTMLIFrameElementImpl::attach): Changed to call Page::incrementFrameCount
              instead of Frame::incrementFrameCount. Changed to call FrameTree::uniqueChildName
              instead of Frame::requestFrameName.
      
              * rendering/render_frames.cpp: (WebCore::isURLAllowed): Changed to call Page::frameCount
              instead of Frame::topLevelFrameCount.
      
              * page/Frame.h: Removed frameNames, frames, childFrameNamed, findFrame, currentFrame,
              frameExists, incrementFrameCount, decrementFrameCount, topLevelFrameCount,
              generateFrameName, and requestFrameName functions.
              * page/Frame.cpp: (WebCore::Frame::requestFrame): Changed to use FrameTree::child
              instead of Frame::childFrameNamed.
      
              * page/FrameTree.h: Changed name to an atomic string. Changed childCount to unsigned.
              Added isDescendantOf, traverseNext, child, find, uniqueChildName.
              * page/FrameTree.cpp:
              (WebCore::FrameTree::setName): Changed to call uniqueChildName to handle name
              duplication logic.
              (WebCore::FrameTree::uniqueChildName): Added. Checks for duplication and generates
              an appropriate frame name if there is a duplicate.
              (WebCore::FrameTree::child): Added.
              (WebCore::FrameTree::find): Added.
              (WebCore::FrameTree::isDescendantOf): Added.
              (WebCore::FrameTree::traverseNext): Added.
      
              * page/Page.h: Added setGroupName, groupName, frameNamespace, incrementFrameCount,
              decrementFrameCount, and frameCount.
              * page/Page.cpp:
              (WebCore::Page::Page): Initialize m_frameCount to 0.
              (WebCore::Page::~Page): Call setGroupName to remove the page from any group it's in.
              (WebCore::Page::setGroupName): Added.
              (WebCore::Page::frameNamespace): Added.
      
              * platform/win/TemporaryLinkStubs.cpp: Removed FrameWin::generateFrameName.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13257 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      135369e3
  23. 06 Mar, 2006 1 commit
    • darin's avatar
      Reviewed by Adele. · e9700da7
      darin authored
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=7564
                remove QObject, QGuardedPtr, slots, and signals
      
              I had written a detailed change log entry, but I lost it!
              I'm too annoyed to write one all over again.
      
              * ForwardingHeaders/qguardedptr.h: Removed.
              * ForwardingHeaders/qobject.h: Removed.
      
              * kwq/KWQGuardedPtr.cpp: Removed.
              * kwq/KWQGuardedPtr.h: Removed.
              * kwq/KWQNamespace.h: Removed.
              * kwq/KWQObject.cpp: Removed.
              * kwq/KWQObject.h: Removed.
              * kwq/KWQSignal.cpp: Removed.
              * kwq/KWQSignal.h: Removed.
              * kwq/KWQSlot.cpp: Removed.
              * kwq/KWQSlot.h: Removed.
      
              * platform/WidgetClient.h: Added.
      
              * WebCore.xcodeproj/project.pbxproj: Updated for removed and added files.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Ditto.
      
              * bindings/js/JSDOMCore.cpp: Touched.
              * bindings/js/JSDOMEvents.cpp: Ditto.
      
              * bridge/BrowserExtension.h:
              (WebCore::BrowserExtension::~BrowserExtension):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge elementForView:]):
              * dom/CDATASectionImpl.cpp:
              (WebCore::CDATASectionImpl::cloneNode):
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::~DocumentImpl):
              * dom/DocumentImpl.h:
              * kcanvas/device/KRenderingDevice.h:
              * khtml/ecma/kjs_css.cpp:
              (KJS::DOMCSSStyleDeclaration::put):
              * khtml/ecma/kjs_window.cpp:
              (KJS::FrameArray::indexGetter):
              (KJS::FrameArray::nameGetter):
              * khtml/html/html_documentimpl.cpp:
              (WebCore::HTMLDocumentImpl::createTokenizer):
              * khtml/html/htmlparser.cpp:
              (WebCore::HTMLParser::HTMLParser):
              (WebCore::HTMLParser::insertNode):
              (WebCore::HTMLParser::handleError):
              (WebCore::HTMLParser::commentCreateErrorCheck):
              (WebCore::HTMLParser::noscriptCreateErrorCheck):
              (WebCore::HTMLParser::isInline):
              (WebCore::HTMLParser::finished):
              * khtml/html/htmlparser.h:
              * khtml/html/htmltokenizer.cpp:
              (WebCore::HTMLTokenizer::HTMLTokenizer):
              (WebCore::HTMLTokenizer::scriptHandler):
              (WebCore::HTMLTokenizer::scriptExecution):
              (WebCore::HTMLTokenizer::parseComment):
              (WebCore::HTMLTokenizer::parseTag):
              (WebCore::HTMLTokenizer::stopParsing):
              (WebCore::HTMLTokenizer::timerFired):
              (WebCore::HTMLTokenizer::processToken):
              (WebCore::parseHTMLDocumentFragment):
              * khtml/html/htmltokenizer.h:
              * kwq/KWQComboBox.h:
              * kwq/KWQComboBox.mm:
              (-[KWQPopUpButton setPopulatingMenu:QComboBox:::]):
              (QComboBox::itemSelected):
              (-[KWQPopUpButton becomeFirstResponder]):
              (-[KWQPopUpButton resignFirstResponder]):
              * kwq/KWQFileButton.h:
              (KWQFileButton::filename):
              * kwq/KWQFileButton.mm:
              (KWQFileButton::KWQFileButton):
              (KWQFileButton::filenameChanged):
              (-[KWQFileButtonAdapter filenameChanged:]):
              (-[KWQFileButtonAdapter focusChanged:]):
              (-[KWQFileButtonAdapter clicked]):
              * kwq/KWQLineEdit.h:
              * kwq/KWQLineEdit.mm:
              (QLineEdit::QLineEdit):
              (QLineEdit::setAlignment):
              (KWQNSTextAlignment):
              * kwq/KWQListBox.h:
              (QListBox::changingSelection):
              * kwq/KWQListBox.mm:
              (QListBox::QListBox):
              (-[KWQTableView becomeFirstResponder]):
              (-[KWQTableView resignFirstResponder]):
              (-[KWQTableView tableViewSelectionDidChange:]):
              * kwq/KWQScrollBar.h:
              (WebCore::):
              (QScrollBar::orientation):
              * kwq/KWQScrollBar.mm:
              (-[KWQScrollBar initWithQScrollBar:]):
              (QScrollBar::QScrollBar):
              (QScrollBar::valueChanged):
              (QScrollBar::scroll):
              * kwq/KWQSlider.h:
              * kwq/KWQSlider.mm:
              (-[KWQSlider mouseDown:]):
              (-[KWQSlider slide:]):
              (-[KWQSlider becomeFirstResponder]):
              (-[KWQSlider resignFirstResponder]):
              (QSlider::QSlider):
              (QSlider::sliderValueChanged):
              (QSlider::dimensions):
              * kwq/KWQTextArea.mm:
              (-[KWQTextAreaTextView textViewDidChangeSelection:]):
              (-[KWQTextAreaTextView textDidChange:]):
              (-[KWQTextAreaTextView becomeFirstResponder]):
              (-[KWQTextAreaTextView resignFirstResponder]):
              (-[KWQTextAreaTextView mouseDown:]):
              (-[KWQTextAreaTextView dispatchHTMLEvent:]):
              * kwq/KWQTextEdit.h:
              * kwq/KWQTextEdit.mm:
              (QTextEdit::QTextEdit):
              (QTextEdit::setAlignment):
              * kwq/KWQTextField.mm:
              (-[KWQTextFieldController action:]):
              (-[KWQTextFieldController controlTextDidEndEditing:]):
              (-[KWQTextFieldController controlTextDidChange:]):
              (-[KWQTextFieldController textChanged]):
              (-[KWQTextFieldController textView:didHandleEvent:]):
              (-[KWQTextFieldController setHasFocus:]):
              (-[KWQTextFieldController textViewDidChangeSelection:]):
              * loader/CachedObject.h:
              * page/Frame.cpp:
              (WebCore::Frame::Frame):
              (WebCore::Frame::~Frame):
              (WebCore::Frame::setOpener):
              (WebCore::Frame::nodeForWidget):
              (WebCore::Frame::disconnectOwnerRenderer):
              * page/Frame.h:
              * page/FramePrivate.h:
              (WebCore::FramePrivate::FramePrivate):
              * page/FrameView.cpp:
              (WebCore::FrameView::~FrameView):
              * platform/Brush.h:
              * platform/Pen.h:
              * platform/Widget.cpp:
              (WebCore::Widget::isFrameView):
              * platform/Widget.h:
              (WebCore::):
              * platform/mac/GraphicsContextMac.mm:
              (WebCore::GraphicsContext::drawText):
              * platform/mac/WidgetMac.mm:
              (WebCore::Widget::Widget):
              (WebCore::Widget::focusPolicy):
              (WebCore::Widget::sendConsumedMouseUp):
              (WebCore::Widget::setClient):
              (WebCore::Widget::client):
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::operator delete):
              * rendering/render_applet.cpp:
              (WebCore::RenderApplet::createWidgetIfNecessary):
              * rendering/render_form.cpp:
              (WebCore::RenderFormElement::clicked):
              (WebCore::RenderFormElement::textAlignment):
              (WebCore::RenderLineEdit::RenderLineEdit):
              (WebCore::RenderLineEdit::selectionChanged):
              (WebCore::RenderLineEdit::returnPressed):
              (WebCore::RenderLineEdit::performSearch):
              (WebCore::RenderLineEdit::valueChanged):
              (WebCore::RenderFileButton::RenderFileButton):
              (WebCore::RenderFileButton::returnPressed):
              (WebCore::RenderFileButton::valueChanged):
              (WebCore::RenderLegend::RenderLegend):
              (WebCore::RenderSelect::RenderSelect):
              (WebCore::RenderSelect::updateFromElement):
              (WebCore::RenderSelect::valueChanged):
              (WebCore::RenderSelect::selectionChanged):
              (WebCore::RenderSelect::createListBox):
              (WebCore::RenderTextArea::RenderTextArea):
              (WebCore::RenderTextArea::valueChanged):
              (WebCore::RenderTextArea::selectionChanged):
              (WebCore::RenderSlider::RenderSlider):
              (WebCore::RenderSlider::valueChanged):
              * rendering/render_form.h:
              (WebCore::RenderFormElement::element):
              (WebCore::RenderLineEdit::element):
              (WebCore::RenderFileButton::element):
              (WebCore::RenderFileButton::isEditable):
              (WebCore::RenderSelect::element):
              (WebCore::RenderTextArea::element):
              (WebCore::RenderSlider::element):
              * rendering/render_frames.cpp:
              (WebCore::RenderPart::RenderPart):
              (WebCore::RenderPart::~RenderPart):
              (WebCore::RenderPart::setFrame):
              (WebCore::RenderPart::setWidget):
              (WebCore::RenderPart::deleteWidget):
              (WebCore::RenderFrame::RenderFrame):
              (WebCore::RenderPartObject::RenderPartObject):
              (WebCore::RenderPartObject::layout):
              * rendering/render_frames.h:
              * rendering/render_layer.cpp:
              (WebCore::RenderLayer::RenderLayer):
              (WebCore::RenderLayer::~RenderLayer):
              (WebCore::RenderLayer::valueChanged):
              (WebCore::RenderLayer::setHasHorizontalScrollbar):
              (WebCore::RenderLayer::setHasVerticalScrollbar):
              (WebCore::RenderLayer::hitTest):
              * rendering/render_layer.h:
              (WebCore::RenderLayer::parent):
              (WebCore::RenderLayer::previousSibling):
              (WebCore::RenderLayer::nextSibling):
              (WebCore::RenderLayer::firstChild):
              (WebCore::RenderLayer::lastChild):
              * rendering/render_list.cpp:
              (WebCore::RenderListMarker::paint):
              * rendering/render_replaced.cpp:
              (WebCore::RenderWidget::RenderWidget):
              (WebCore::RenderWidget::destroy):
              (WebCore::RenderWidget::~RenderWidget):
              (WebCore::RenderWidget::setWidget):
              (WebCore::RenderWidget::layout):
              (WebCore::RenderWidget::sendConsumedMouseUp):
              (WebCore::RenderWidget::focusIn):
              (WebCore::RenderWidget::focusOut):
              (WebCore::RenderWidget::scrollToVisible):
              (WebCore::RenderWidget::isVisible):
              (WebCore::RenderWidget::element):
              (WebCore::RenderWidget::deleteWidget):
              * rendering/render_replaced.h:
              * xml/xmlhttprequest.cpp:
              (WebCore::requestsByDocument):
              (WebCore::addToRequestsByDocument):
              (WebCore::removeFromRequestsByDocument):
              (WebCore::XMLHttpRequest::getResponseText):
              (WebCore::XMLHttpRequest::getResponseXML):
              (WebCore::XMLHttpRequest::XMLHttpRequest):
              (WebCore::XMLHttpRequest::~XMLHttpRequest):
              (WebCore::XMLHttpRequest::callReadyStateChangeListener):
              (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
              (WebCore::XMLHttpRequest::open):
              (WebCore::XMLHttpRequest::send):
              (WebCore::XMLHttpRequest::abort):
              (WebCore::XMLHttpRequest::overrideMIMEType):
              (WebCore::XMLHttpRequest::setRequestHeader):
              (WebCore::XMLHttpRequest::getRequestHeader):
              (WebCore::XMLHttpRequest::getAllResponseHeaders):
              (WebCore::XMLHttpRequest::getResponseHeader):
              (WebCore::XMLHttpRequest::getSpecificHeader):
              (WebCore::XMLHttpRequest::responseIsXML):
              (WebCore::XMLHttpRequest::getStatus):
              (WebCore::XMLHttpRequest::getStatusText):
              (WebCore::XMLHttpRequest::receivedAllData):
              (WebCore::XMLHttpRequest::receivedRedirect):
              (WebCore::XMLHttpRequest::receivedData):
              (WebCore::XMLHttpRequest::cancelRequests):
              (WebCore::XMLHttpRequest::detachRequests):
              * xml/xmlhttprequest.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13176 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e9700da7
  24. 01 Mar, 2006 1 commit
    • darin's avatar
      Reviewed by Eric. · 9d0a628e
      darin authored
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=7444
                move QPainter to platform directory and name it GraphicsContext
      
              * platform/GraphicsContext.h: Added.
              * platform/TextDirection.h: Added.
              * platform/cg/GraphicsContextCG.cpp: Added.
              * platform/mac/GraphicsContextMac.mm: Added.
      
              * kwq/KWQPainter.h: Removed.
              * kwq/KWQPainter.mm: Removed.
              * ForwardingHeaders/qpainter.h: Removed.
      
              * WebCore.xcodeproj/project.pbxproj: Updated for moved files.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for moved files.
              * platform/win/TemporaryLinkStubs.cpp: Updated.
      
              * bridge/mac/MacFrame.mm: (WebCore::MacFrame::setDisplaysWithFocusAttributes):
              * bridge/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge drawRect:]):
              * editing/SelectionController.h:
              * editing/SelectionController.cpp: (WebCore::SelectionController::paintCaret):
              * kcanvas/KCanvasResources.cpp: (WebCore::KCanvasMarker::draw):
              * khtml/ecma/kjs_html.cpp:
              (KJS::KJS::Context2DFunction::callAsFunction):
              (KJS::Context2D::putValueProperty):
              (KJS::drawPattern):
              * page/Frame.h:
              * page/Frame.cpp:
              (WebCore::Frame::paintCaret):
              (WebCore::Frame::paintDragCaret):
              (WebCore::Frame::paint):
              (WebCore::Frame::adjustPageHeight):
              * page/FrameView.h:
              * platform/Font.h:
              * platform/Font.cpp:
              (WebCore::Font::selectionRectForText):
              (WebCore::Font::drawHighlightForText):
              (WebCore::Font::drawText):
              * platform/Widget.h:
              * platform/mac/WidgetMac.mm: (WebCore::Widget::paint):
              * rendering/InlineTextBox.h:
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::paint):
              (WebCore::InlineTextBox::paintSelection):
              (WebCore::InlineTextBox::paintMarkedTextBackground):
              (WebCore::InlineTextBox::paintDecoration):
              (WebCore::InlineTextBox::paintSpellingMarker):
              (WebCore::InlineTextBox::paintTextMatchMarker):
              (WebCore::InlineTextBox::paintAllMarkersOfType):
              (WebCore::InlineTextBox::paintMarkedTextUnderline):
              (WebCore::InlineTextBox::offsetForPosition):
              * rendering/RenderTableCell.cpp:
              (WebCore::outlineBox):
              (WebCore::RenderTableCell::paintCollapsedBorder):
              (WebCore::RenderTableCell::paintBoxDecorations):
              * rendering/RenderTableCell.h:
              * rendering/render_box.cpp:
              (WebCore::RenderBox::paintBackgrounds):
              (WebCore::RenderBox::paintBackground):
              (WebCore::RenderBox::paintBackgroundExtended):
              (WebCore::RenderBox::outlineBox):
              * rendering/render_box.h:
              * rendering/render_button.cpp:
              (WebCore::RenderButton::RenderButton):
              (WebCore::RenderButton::paintObject):
              * rendering/render_button.h:
              (WebCore::RenderButton::removeLeftoverAnonymousBoxes):
              * rendering/render_canvas.cpp:
              * rendering/render_canvasimage.cpp:
              (WebCore::RenderCanvasImage::paint):
              * rendering/render_flow.cpp:
              (WebCore::RenderFlow::addFocusRingRects):
              (WebCore::RenderFlow::paintFocusRing):
              (WebCore::RenderFlow::paintOutlines):
              (WebCore::RenderFlow::paintOutlineForLine):
              * rendering/render_flow.h:
              * rendering/render_form.cpp:
              (WebCore::RenderLineEdit::setStyle):
              (WebCore::RenderFieldset::paintBorderMinusLegend):
              (WebCore::RenderSelect::setWidgetWritingDirection):
              (WebCore::RenderTextArea::setStyle):
              * rendering/render_form.h:
              (WebCore::RenderFieldset::renderName):
              * rendering/render_frames.cpp:
              (WebCore::RenderFrameSet::userResize):
              * rendering/render_image.cpp:
              (WebCore::RenderImage::paint):
              * rendering/render_layer.cpp:
              (WebCore::RenderLayer::beginTransparencyLayers):
              (WebCore::RenderLayer::paintScrollbars):
              (WebCore::RenderLayer::paint):
              (WebCore::setClip):
              (WebCore::restoreClip):
              (WebCore::RenderLayer::paintLayer):
              (WebCore::Marquee::direction):
              * rendering/render_layer.h:
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::paintBackgrounds):
              (WebCore::InlineFlowBox::paintBackground):
              (WebCore::InlineFlowBox::paintBackgroundAndBorder):
              (WebCore::InlineFlowBox::paintDecorations):
              (WebCore::EllipsisBox::paint):
              * rendering/render_line.h:
              * rendering/render_list.cpp:
              (WebCore::RenderListMarker::paint):
              * rendering/render_object.cpp:
              (WebCore::RenderObject::drawBorder):
              (WebCore::RenderObject::paintBorderImage):
              (WebCore::RenderObject::paintBorder):
              (WebCore::RenderObject::addFocusRingRects):
              (WebCore::RenderObject::paintOutline):
              (WebCore::RenderObject::selectionColor):
              * rendering/render_object.h:
              (WebCore::RenderObject::element):
              (WebCore::RenderObject::document):
              (WebCore::RenderObject::setNode):
              (WebCore::RenderObject::node):
              (WebCore::RenderObject::PaintInfo::PaintInfo):
              (WebCore::RenderObject::paintBoxDecorations):
              (WebCore::RenderObject::paintBackgroundExtended):
              (WebCore::RenderObject::printBoxDecorations):
              * rendering/render_replaced.cpp: (WebCore::RenderReplaced::selectionColor):
              * rendering/render_replaced.h:
              Updated to use GraphicsContext instead of QPainter.
      
              * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::applyProperty):
              * kwq/KWQComboBox.h:
              * kwq/KWQComboBox.mm: (QComboBox::setWritingDirection):
              * kwq/KWQLineEdit.h:
              * kwq/KWQLineEdit.mm: (QLineEdit::setWritingDirection):
              * kwq/KWQListBox.h:
              * kwq/KWQListBox.mm: (QListBox::setWritingDirection):
              * kwq/KWQTextEdit.h:
              * kwq/KWQTextEdit.mm: (QTextEdit::setWritingDirection):
              * rendering/bidi.cpp:
              (khtml::bidiNext):
              (khtml::bidiFirst):
              Updated to use TextDirection instead of QPainter::TextDirection and EDirection.
      
              * kcanvas/device/KRenderingDevice.h: Added renderingDevice here to
              replace QPainter::renderingDevice for now.
      
              * khtml/ecma/kjs_html.h: Fixed comments to mention GraphicsContext.
      
              * khtml/html/html_imageimpl.h:
              * page/FrameView.cpp:
              * rendering/RenderBlock.cpp:
              Added include needed since I reduced includes elsewhere.
      
              * kwq/KWQFontMetrics.h:
              * kwq/KWQFontMetrics.mm: (QFontMetrics::checkSelectionPoint):
              Changed QChar* to be const QChar*.
      
              * platform/FontDescription.h: Added include that was missing.
              * rendering/render_theme.cpp: Ditto.
      
              * platform/Image.h: Removed unnecessary forward declaration of QPainter.
      
              * rendering/RenderText.h: Clean up types, use const.
      
              * rendering/render_style.h: Removed EDirection and replaced it with TextDirection.
      
              * kcanvas/KCanvasCreator.cpp:
              (WebCore::KCanvasCreator::createRoundedRectangle):
              (WebCore::KCanvasCreator::createRectangle):
              (WebCore::KCanvasCreator::createEllipse):
              (WebCore::KCanvasCreator::createLine):
              * kcanvas/KCanvasPath.cpp: (WebCore::operator<<):
              * kcanvas/KCanvasTreeDebug.cpp: (WebCore::operator<<):
              * kcanvas/RenderForeignObject.cpp: (WebCore::RenderForeignObject::paint):
              * kcanvas/RenderPath.cpp: (WebCore::RenderPath::paint):
              * kcanvas/RenderSVGImage.cpp:
              (WebCore::RenderSVGImage::paint):
              (WebCore::RenderSVGImage::translateForAttributes):
              * kcanvas/RenderSVGText.cpp:
              (WebCore::RenderSVGText::paint):
              * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
              (WebCore::KCanvasFilterQuartz::prepareFilter):
              (WebCore::KCanvasFilterQuartz::applyFilter):
              * kcanvas/device/quartz/KCanvasMaskerQuartz.mm:
              (WebCore::KCanvasMaskerQuartz::applyMask):
              * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
              (WebCore::KCanvasContainerQuartz::paint):
              (WebCore::KCanvasClipperQuartz::applyClip):
              * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
              (WebCore::KRenderingDeviceQuartz::pushContext):
              (WebCore::KRenderingDeviceQuartz::popContext):
              (WebCore::renderingDevice):
              * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
              (WebCore::KRenderingPaintServerGradientQuartz::setup):
              (WebCore::KRenderingPaintServerGradientQuartz::renderPath):
              (WebCore::KRenderingPaintServerGradientQuartz::teardown):
              * ksvg2/misc/KCanvasRenderingStyle.cpp: (WebCore::sharedSolidPaintServer):
              * ksvg2/svg/SVGAElementImpl.cpp: (SVGAElementImpl::createRenderer):
              * ksvg2/svg/SVGClipPathElementImpl.cpp: (SVGClipPathElementImpl::canvasResource):
              * ksvg2/svg/SVGFEBlendElementImpl.cpp: (SVGFEBlendElementImpl::filterEffect):
              * ksvg2/svg/SVGFEColorMatrixElementImpl.cpp: (SVGFEColorMatrixElementImpl::filterEffect):
              * ksvg2/svg/SVGFEComponentTransferElementImpl.cpp: (SVGFEComponentTransferElementImpl::filterEffect):
              * ksvg2/svg/SVGFECompositeElementImpl.cpp: (SVGFECompositeElementImpl::filterEffect):
              * ksvg2/svg/SVGFEDiffuseLightingElementImpl.cpp: (WebCore::SVGFEDiffuseLightingElementImpl::filterEffect):
              * ksvg2/svg/SVGFEDisplacementMapElementImpl.cpp: (SVGFEDisplacementMapElementImpl::filterEffect):
              * ksvg2/svg/SVGFEFloodElementImpl.cpp: (SVGFEFloodElementImpl::filterEffect):
              * ksvg2/svg/SVGFEGaussianBlurElementImpl.cpp: (SVGFEGaussianBlurElementImpl::filterEffect):
              * ksvg2/svg/SVGFEImageElementImpl.cpp: (SVGFEImageElementImpl::filterEffect):
              * ksvg2/svg/SVGFEMergeElementImpl.cpp: (SVGFEMergeElementImpl::filterEffect):
              * ksvg2/svg/SVGFEOffsetElementImpl.cpp: (SVGFEOffsetElementImpl::filterEffect):
              * ksvg2/svg/SVGFESpecularLightingElementImpl.cpp: (SVGFESpecularLightingElementImpl::filterEffect):
              * ksvg2/svg/SVGFETileElementImpl.cpp: (SVGFETileElementImpl::filterEffect):
              * ksvg2/svg/SVGFETurbulenceElementImpl.cpp: (SVGFETurbulenceElementImpl::filterEffect):
              * ksvg2/svg/SVGFilterElementImpl.cpp: (SVGFilterElementImpl::canvasResource):
              * ksvg2/svg/SVGGElementImpl.cpp: (SVGGElementImpl::createRenderer):
              * ksvg2/svg/SVGGradientElementImpl.cpp: (SVGGradientElementImpl::canvasResource):
              * ksvg2/svg/SVGMarkerElementImpl.cpp:
              (WebCore::SVGMarkerElementImpl::canvasResource):
              (WebCore::SVGMarkerElementImpl::createRenderer):
              * ksvg2/svg/SVGMaskElementImpl.cpp:
              (WebCore::SVGMaskElementImpl::drawMaskerContent):
              (WebCore::SVGMaskElementImpl::createRenderer):
              (WebCore::SVGMaskElementImpl::canvasResource):
              * ksvg2/svg/SVGPathElementImpl.cpp: (WebCore::SVGPathElementImpl::toPathData):
              * ksvg2/svg/SVGPatternElementImpl.cpp:
              (WebCore::SVGPatternElementImpl::drawPatternContentIntoTile):
              (WebCore::SVGPatternElementImpl::createRenderer):
              (WebCore::SVGPatternElementImpl::canvasResource):
              * ksvg2/svg/SVGPolygonElementImpl.cpp: (SVGPolygonElementImpl::toPathData):
              * ksvg2/svg/SVGPolylineElementImpl.cpp: (SVGPolylineElementImpl::toPathData):
              * ksvg2/svg/SVGSVGElementImpl.cpp: (WebCore::SVGSVGElementImpl::createRenderer):
              * ksvg2/svg/SVGStyledElementImpl.cpp: (WebCore::SVGStyledElementImpl::createRenderer):
              * ksvg2/svg/SVGSwitchElementImpl.cpp: (SVGSwitchElementImpl::createRenderer):
              * ksvg2/svg/SVGUseElementImpl.cpp: (SVGUseElementImpl::createRenderer):
              Updated to use renderingDevice instead of QPainter::renderingDevice.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13067 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9d0a628e
  25. 28 Feb, 2006 2 commits
    • eseidel's avatar
      2006-02-28 Eric Seidel <eseidel@apple.com> · 69e537ce
      eseidel authored
              Reviewed by mjs.
      
              Fix spacing/style on several of the stubs.
              Reorganize stubs, separating empty stubs.
              Remove the abort from certain stubs blocking DRT.
              Add a virtual setView call to Frame baseclass.
      
              * bridge/mac/MacFrame.h: mark setView virtual
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::attach): remove no-renderer hack
              * page/Frame.cpp:
              (WebCore::Frame::view): fix spacing
              (WebCore::Frame::setView): added.
              * page/Frame.h:
              * platform/win/TemporaryLinkStubs.cpp:
              (notImplemented): make break directly into debugger.
              Moved, modified several other stubs not mentioned here.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13059 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      69e537ce
    • mjs's avatar
      Reviewed by Darin. · d5ce6095
      mjs authored
              - make win32 DumpRenderTree run without crashing
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7511
      
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * bridge/win/BrowserExtensionWin.h: Added.
              * bridge/win/FrameWin.cpp:
              (WebCore::FrameWin::FrameWin): Initialize browser
              extension and settings.
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::attach): Don't create renderers 
              for now.
              * dom/EventNames.cpp:
              (WebCore::EventNames::init): use placement new even when
              not avoiding static constructors.
              * khtml/html/htmlnames.cpp:
              (WebCore::HTMLNames::init): ditto
              * dom/QualifiedName.cpp:
              (WebCore::QualifiedName::init): ditto
              * dom/QualifiedName.h:
              (WebCore::QualifiedName::QualifiedName): Added default
              constructor but only in ifdef.
              * page/Frame.h:
              * platform/AtomicString.cpp:
              (WebCore::AtomicString::init): use placement new even when
              not avoiding static constructors
              * platform/StaticConstructors.h: don't initialize when
              not avoiding static constructors, just default construct
              and let initialization happen normally
              * platform/win/TemporaryLinkStubs.cpp: Stub out some more things
              (Cursor::~Cursor):
              (QFont::~QFont):
              (QFontMetrics::~QFontMetrics):
              (WebCore::FrameWin::restoreDocumentState):
              (WebCore::FrameWin::partClearedInBegin):
              (WebCore::FrameWin::createEmptyDocument):
              (WebCore::BrowserExtensionWin::getHistoryLength):
              (WebCore::BrowserExtensionWin::canRunModal):
              (WebCore::BrowserExtensionWin::openURLNotify):
              (WebCore::BrowserExtensionWin::canRunModalNow):
              (WebCore::BrowserExtensionWin::runModal):
              (WebCore::BrowserExtensionWin::goBackOrForward):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13057 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d5ce6095
  26. 27 Feb, 2006 2 commits
    • eseidel's avatar
      2006-02-27 Eric Seidel <eseidel@apple.com> · 9f33d28e
      eseidel authored
              Reviewed by mjs.
      
              Move mac-specific logging logic up into WebCore (from JavaScriptCore).
              Remove KWQ prefixes from default log channels.
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7503
      
              * bridge/mac/WebCorePageBridge.mm:
              (initializeLogChannel):
              (initializeLoggingChannelsIfNecessary):
              (-[WebCorePageBridge init]):
              * page/Frame.h:
              * platform/Logging.cpp:
              * platform/Logging.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13035 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9f33d28e
    • 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
  27. 24 Feb, 2006 1 commit
    • eseidel's avatar
      2006-02-24 Eric Seidel <eseidel@apple.com> · dd1c709a
      eseidel authored
              Reviewed by beth.
      
              Made a few methods on frame pure virtual.
              Added a bunch of stub functions for win32 linking.
      
              * bridge/mac/MacFrame.h:
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::print):
              (WebCore::MacFrame::canUndo):
              (WebCore::MacFrame::canRedo):
              (WebCore::MacFrame::canPaste):
              * bridge/win/FrameWin.h:
              * page/Frame.h:
              * platform/win/TemporaryLinkStubs.cpp:
              (QTextEdit::sizeWithColumnsAndRows):
              (QLineEdit::maxLength):
              (QPainter::drawEllipse):
              (QTextEdit::setLineHeight):
              (QPainter::beginTransparencyLayer):
              (QLineEdit::selectedText):
              (Widget::setIsSelected):
              (QPainter::paintingDisabled):
              (QFontMetrics::selectionRectForText):
              (QTextEdit::getCursorPosition):
              (QSlider::QSlider):
              (WebCore::crossCursor):
              (WebCore::handCursor):
              (WebCore::moveCursor):
              (WebCore::iBeamCursor):
              (WebCore::waitCursor):
              (WebCore::helpCursor):
              (WebCore::eastResizeCursor):
              (WebCore::northResizeCursor):
              (WebCore::northEastResizeCursor):
              (WebCore::northWestResizeCursor):
              (WebCore::southResizeCursor):
              (WebCore::southEastResizeCursor):
              (WebCore::southWestResizeCursor):
              (WebCore::westResizeCursor):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12982 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dd1c709a