1. 13 May, 2006 10 commits
    • ap's avatar
      2006-05-13 Kevin M. Ollivier <kevino@theolliviers.com> · f3516ff1
      ap authored
              Reviewed by Darin, landed by ap.
      
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=8528
                Bakefiles (and generated Makefiles) for wx and gdk ports
      
      JavaScriptCore:
              * make-generated-sources.sh: 
              Added script to configure environment to run DerivedSources.make
              
              * JavaScriptCoreSources.bkl:
              Added JavaScriptCore sources list for Bakefile.
              
              * jscore.bkl:
              Bakefile used to generate JavaScriptCore project files 
              (currently only used by wx and gdk ports)
      
      WebCore:
              * make-generated-sources.sh: 
              Added script to configure environment to run DerivedSources.make
              
              * move-js-headers.sh:
              Added script to copy JavaScriptCore includes into one dir so that 
              Framework-style includes will work on all OSes. (written by Mike Emmel)
              
              * platform/wx: New dir, home for the wxWidgets port
              * platform/wx/wx-encodings.txt: Added temp. stub for wx encodings file.
              
              * Projects: New dir, for various project files for ports.
              
              * Projects/gdk: New dir, GDK port files.
              * Projects/webcore-gdk.bkl: Bakefile to generate GDK port project files
              
              * Projects/wx: New dir, wxWidgets port files.
              * Projects/webcore-wx.bkl: Bakefile to generate wxWidgets port project files
      
      WebKitTools:
              * Scripts/install-unix-extras: Added.
              * Scripts/regenerate-makefiles: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14359 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f3516ff1
    • ap's avatar
      2006-05-13 Mitz Pettel <opendarwin.org@mitzpettel.com> · 593ea526
      ap authored
              Reviewed by Darin, landed by ap.
      
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8485
                iExploder(#11705): Freeze in RenderBlock::layout()
      
              Test: fast/text/midword-break-hang.html
      
              * rendering/bidi.cpp:
              (WebCore::RenderBlock::findNextLineBreak): If this is a mid-word break,
              ignore breakOnlyAfterWhiteSpace.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14358 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      593ea526
    • ap's avatar
      Ok, now RenderBox.cpp actually compiles for me. · d3a46e07
      ap authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14357 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d3a46e07
    • ap's avatar
      Same fix for calcAbsoluteVerticalValues(). · 7a3dbb64
      ap authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14356 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7a3dbb64
    • ap's avatar
      Try to fix release build. · 8056857c
      ap authored
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::calcAbsoluteHorizontalValues): Initialize leftValue. 
              This value will never be used, because 'left' and 'right' cannot both be 'auto'.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14355 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8056857c
    • ap's avatar
      Re-applied the fix for bug 8835 (REGRESSION: Line moves but selection · f9c06630
      ap authored
              highlight stays behind) to a correct file; removed the stale one.
      
              * rendering/RootInlineBox.cpp:
              (WebCore::RootInlineBox::adjustPosition): Adjust m_selectionTop
              and m_selectionBottom.
              * rendering/render_line.cpp: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14354 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f9c06630
    • ap's avatar
      Corrected a path in ChangeLog. · 26e92423
      ap authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14353 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      26e92423
    • ap's avatar
      2006-05-13 Rob Buis <buis@kde.org> · 7882f0fd
      ap authored
              Reviewed by Darin, landed by ap.
      
              Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8132
              CSS parser sometimes accepts real number as integer
      
              Add a boolean variable per css value to catch whether values
              are specified as floats or integers.
      
              Test: fast/css/rgb-float.html
      
              * css/CSSGrammar.y:
              * css/cssparser.cpp:
              (WebCore::CSSParser::validUnit):
              (WebCore::CSSParser::lex):
              * css/cssparser.h:
              * css/tokenizer.flex:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14352 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7882f0fd
    • ap's avatar
      2006-05-13 Sam Weinig <sam.weinig@gmail.com> · bcb495f0
      ap authored
              Reviewed by Hyatt, landed by ap.
      
      WebCore:
              Patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=7604
              calcAbsoluteHorizontalValues() is being getting passed arguments
              in the wrong order in calcAbsoluteHorizontal()
      
              Cleans up the RenderBox code for absolutely positioned elements
              and adds new functions for replaced absolutely positioned 
              elements. Now uses Length so that magic number -666666 for 
              auto lengths is no longer used.
      
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::calcAbsoluteHorizontal):
              (WebCore::RenderBox::calcAbsoluteHorizontalValues):
              (WebCore::RenderBox::calcAbsoluteVertical):
              (WebCore::RenderBox::calcAbsoluteVerticalValues): 
              (WebCore::RenderBox::calcAbsoluteHorizontalReplaced): Handle replaced
              case separately.
              (WebCore::RenderBox::calcAbsoluteVerticalReplaced): ditto.
              * rendering/RenderBox.h:
      
      LayoutTests:
              * fast/block/positioning/absolute-length-of-neg-666666.html: Added.
              * fast/block/positioning/absolute-positioned-overconstrained.html: Added.
              * fast/block/positioning/auto/006.html: Updated to reflect that the containing
              block's direction, not the parent's is used.
              * fast/css/absolute-poition-in-rtl-parent.html: Updated and cleaned up.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14351 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bcb495f0
    • hyatt's avatar
      Bug 8880, remove the remaining drawing/hit testing code from · a624128a
      hyatt authored
              FontData.
      
              Reviewed by tim h
      
              * platform/Font.cpp:
              (WebCore::m_finalRoundingWidth):
              (WebCore::WidthIterator::advanceOneCharacter):
              (WebCore::Font::selectionRectForText):
              (WebCore::Font::selectionRectForSimpleText):
              (WebCore::Font::offsetForPosition):
              (WebCore::Font::offsetForPositionForSimpleText):
              * platform/Font.h:
              (WebCore::TextRun::makeComplete):
              * platform/FontData.h:
              * platform/GlyphBuffer.h:
              (WebCore::GlyphBuffer::clear):
              * platform/mac/FontData.mm:
              * platform/mac/FontMac.mm:
              (WebCore::Font::selectionRectForComplexText):
              (WebCore::Font::offsetForPositionForComplexText):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14350 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a624128a
  2. 12 May, 2006 21 commits
    • darin's avatar
      Reviewed by Maciej. · c46d8099
      darin authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14349 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c46d8099
    • darin's avatar
      Reviewed by Darin. · d0a43673
      darin authored
              Add missing include.
              
              * dom/Node.h: Add missing include for DeprecatedString.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14348 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d0a43673
    • darin's avatar
      LayoutTests: · d3681ff4
      darin authored
              Reviewed by Darin.
      
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8835
                REGRESSION: Line moves but selection highlight stays behind
      
              * fast/dynamic/selection-highlight-adjust-expected.checksum: Added.
              * fast/dynamic/selection-highlight-adjust-expected.png: Added.
              * fast/dynamic/selection-highlight-adjust-expected.txt: Added.
              * fast/dynamic/selection-highlight-adjust.html: Added.
      
      WebCore:
      
              Reviewed by Darin.
      
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8835
                REGRESSION: Line moves but selection highlight stays behind
      
              Test: fast/dynamic/selection-highlight-adjust.html
      
              * rendering/render_line.cpp:
              (WebCore::RootInlineBox::adjustPosition): Adjust m_selectionTop
              and m_selectionBottom.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14347 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d3681ff4
    • thatcher's avatar
      Reviewed by Darin. · 55bae5be
      thatcher authored
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7156
              Bug 7156: TinyMCE: Links are actually activated in editable area, not editable.
              
              Links in editable areas will not activate or perform a navigation
              change (on par with WinIE and Firefox.) To visit the link
              you can shift-click. Manual test added.
      
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::adjustRenderStyle):
              * html/HTMLAnchorElement.cpp:
              (WebCore::HTMLAnchorElement::defaultEventHandler):
              (WebCore::HTMLAnchorElement::setActive):
              * html/HTMLAnchorElement.h:
              * manual-tests/contenteditable-link.html: Added.
              * page/FrameView.cpp:
              (WebCore::selectCursor):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14346 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      55bae5be
    • eseidel's avatar
      2006-05-12 Eric Seidel <eseidel@apple.com> · 62bd68c4
      eseidel authored
              Reviewed by timo.
      
              Split out html_inlineimpl.* into separate files (one per class).
      
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/kjs_html.cpp:
              * bindings/objc/DOMHTML.mm:
              * editing/CreateLinkCommand.cpp:
              * editing/UnlinkCommand.cpp:
              * html/HTMLAnchorElement.cpp: Added.
              (WebCore::HTMLAnchorElement::HTMLAnchorElement):
              * html/HTMLAnchorElement.h: Added.
              * html/HTMLBRElement.cpp: Added.
              * html/HTMLBRElement.h: Added.
              * html/HTMLElementFactory.cpp:
              * html/HTMLFontElement.cpp: Added.
              (WebCore::HTMLFontElement::HTMLFontElement):
              (WebCore::HTMLFontElement::setColor):
              (WebCore::HTMLFontElement::setFace):
              (WebCore::HTMLFontElement::setSize):
              * html/HTMLFontElement.h: Added.
              * html/HTMLModElement.cpp: Added.
              (WebCore::HTMLModElement::setCite):
              (WebCore::HTMLModElement::setDateTime):
              * html/HTMLModElement.h: Added.
              * html/HTMLQuoteElement.cpp: Added.
              * html/HTMLQuoteElement.h: Added.
              * html/html_imageimpl.h:
              * html/html_inlineimpl.cpp: Removed.
              * html/html_inlineimpl.h: Removed.
              * page/FrameView.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14345 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      62bd68c4
    • eseidel's avatar
      2006-05-12 Eric Seidel <eseidel@apple.com> · 05539a03
      eseidel authored
              Reviewed by beth.
      
              Fix build error.
      
              * rendering/InlineFlowBox.cpp:
              * rendering/RootInlineBox.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14344 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      05539a03
    • eseidel's avatar
      2006-05-12 Eric Seidel <eseidel@apple.com> · e619f1c8
      eseidel authored
              Reviewed by beth.
      
              Split out render_line.* into separate files (one per class).
      
              * WebCore.xcodeproj/project.pbxproj:
              * dom/ContainerNode.cpp:
              * rendering/EllipsisBox.cpp: Added.
              * rendering/EllipsisBox.h: Added.
              (WebCore::EllipsisBox::EllipsisBox):
              * rendering/InlineBox.cpp: Added.
              * rendering/InlineBox.h: Added.
              (WebCore::InlineBox::InlineBox):
              (WebCore::InlineBox::~InlineBox):
              (WebCore::InlineBox::bottomOverflow):
              (WebCore::InlineBox::rightOverflow):
              * rendering/InlineFlowBox.cpp: Added.
              (WebCore::InlineFlowBox::placeBoxesHorizontally):
              * rendering/InlineFlowBox.h: Added.
              * rendering/InlineRunBox.h: Added.
              (WebCore::InlineRunBox::InlineRunBox):
              (WebCore::InlineRunBox::paintBackgroundAndBorder):
              (WebCore::InlineRunBox::paintDecorations):
              * rendering/InlineTextBox.h:
              * rendering/RenderBlock.h:
              * rendering/RenderFlow.h:
              * rendering/RenderReplaced.cpp:
              * rendering/RootInlineBox.cpp: Added.
              * rendering/RootInlineBox.h: Added.
              (WebCore::RootInlineBox::RootInlineBox):
              * rendering/render_line.h: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14343 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e619f1c8
    • eseidel's avatar
      spelling fix · 7b2f89d0
      eseidel authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14342 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7b2f89d0
    • eseidel's avatar
      2006-05-12 Eric Seidel <eseidel@apple.com> · e8ab6a14
      eseidel authored
              Reviewed by hyatt.
      
              Split out table_layout.* into separate files (one per class).
              Search replace instnace variables "foo" with "m_foo" to comply with modern style.
      
              * WebCore.xcodeproj/project.pbxproj:
              * rendering/AutoTableLayout.cpp: Added.
              (WebCore::AutoTableLayout::AutoTableLayout):
              (WebCore::AutoTableLayout::recalcColumn):
              (WebCore::AutoTableLayout::fullRecalc):
              (WebCore::AutoTableLayout::calcMinMaxWidth):
              (WebCore::AutoTableLayout::calcEffectiveWidth):
              (WebCore::AutoTableLayout::insertSpanCell):
              (WebCore::AutoTableLayout::layout):
              (WebCore::AutoTableLayout::calcPercentages):
              * rendering/AutoTableLayout.h: Added.
              (WebCore::AutoTableLayout::totalPercent):
              (WebCore::AutoTableLayout::Layout::Layout):
              * rendering/FixedTableLayout.cpp: Added.
              (WebCore::FixedTableLayout::FixedTableLayout):
              (WebCore::FixedTableLayout::calcWidthArray):
              (WebCore::FixedTableLayout::calcMinMaxWidth):
              (WebCore::FixedTableLayout::layout):
              * rendering/FixedTableLayout.h: Added.
              * rendering/RenderTable.cpp:
              * rendering/TableLayout.h: Added.
              (WebCore::TableLayout::TableLayout):
              * rendering/table_layout.cpp: Removed.
              * rendering/table_layout.h: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14341 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e8ab6a14
    • hyatt's avatar
      Bug 8877. Change form controls and the bridge entry points from the · 29e8eac4
      hyatt authored
              Safari UI to use Font instead of FontData.
      
              Reviewed by mjs
      
              * bridge/mac/WebCoreStringTruncator.mm:
              (stringWidth):
              (truncateString):
              (+[WebCoreStringTruncator widthOfString:font:]):
              (+[WebCoreStringTruncator clear]):
              * kwq/KWQComboBox.mm:
              (QComboBox::sizeHint):
              * kwq/KWQLineEdit.mm:
              (QLineEdit::sizeForCharacterWidth):
              * kwq/KWQListBox.mm:
              (itemTextRenderer):
              (groupLabelTextRenderer):
              (QListBox::sizeForNumberOfLines):
              (QListBox::clearCachedTextRenderers):
              (-[KWQTableView drawRow:clipRect:]):
              * platform/Font.cpp:
              (WebCore::Font::drawSimpleText):
              (WebCore::Font::drawText):
              * platform/Font.h:
              (WebCore::TextStyle::disableRoundingHacks):
              (WebCore::TextStyle::setRTL):
              * platform/FontData.h:
              * platform/FontFallbackList.h:
              * platform/FontPlatformData.h:
              (WebCore::FontPlatformData::syntheticOblique):
              * platform/Pen.h:
              * platform/mac/FontData.mm:
              (WebCore::FontData::smallCapsFontData):
              (WebCore::findSubstituteRenderer):
              * platform/mac/FontMac.mm:
              (WebCore::FontFallbackList::setPlatformFont):
              (WebCore::m_wordSpacing):
              (WebCore::Font::drawComplexText):
              * platform/mac/WebCoreTextRenderer.mm:
              (WebCoreDrawTextAtPoint):
              (WebCoreTextFloatWidth):
              * platform/win/FontWin.cpp:
              (WebCore::Font::drawText):
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::positionForOffset):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14337 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      29e8eac4
    • eseidel's avatar
      2006-05-12 Eric Seidel <eseidel@apple.com> · ba1a963d
      eseidel authored
              Reviewed by kevin.
      
              Move render_button to RenderButton.
              Various small style cleanup.
      
              * WebCore.xcodeproj/project.pbxproj:
              * html/HTMLButtonElement.cpp:
              * html/HTMLElement.cpp:
              * html/HTMLGenericFormElement.cpp:
              * html/HTMLInputElement.cpp:
              * platform/mac/WebCoreTextArea.mm:
              * rendering/RenderApplet.h:
              * rendering/RenderBox.cpp:
              * rendering/RenderButton.cpp: Added.
              (WebCore::RenderButton::RenderButton):
              (WebCore::RenderButton::addChild):
              (WebCore::RenderButton::removeChild):
              * rendering/RenderButton.h: Added.
              * rendering/RenderEmptyApplet.h:
              * rendering/RenderHTMLCanvas.h:
              * rendering/RenderTreeAsText.cpp:
              * rendering/render_button.cpp: Removed.
              * rendering/render_button.h: Removed.
              * rendering/table_layout.cpp:
              (WebCore::FixedTableLayout::FixedTableLayout):
              (WebCore::FixedTableLayout::calcWidthArray):
              (WebCore::FixedTableLayout::calcMinMaxWidth):
              (WebCore::FixedTableLayout::layout):
              (WebCore::AutoTableLayout::AutoTableLayout):
              (WebCore::AutoTableLayout::recalcColumn):
              (WebCore::AutoTableLayout::fullRecalc):
              (WebCore::AutoTableLayout::calcMinMaxWidth):
              (WebCore::AutoTableLayout::calcEffectiveWidth):
              (WebCore::AutoTableLayout::insertSpanCell):
              (WebCore::AutoTableLayout::layout):
              * rendering/table_layout.h:
              (WebCore::TableLayout::TableLayout):
              (WebCore::AutoTableLayout::totalPercent):
              (WebCore::AutoTableLayout::Layout::Layout):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14336 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ba1a963d
    • eseidel's avatar
      2006-05-12 Eric Seidel <eseidel@apple.com> · 409f4301
      eseidel authored
              Reviewed by mjs.
      
              Split render_frames.* render_replaced.* and html_baseimpl.* into separate files (one class per file).
              http://bugzilla.opendarwin.org/show_bug.cgi?id=8878
      
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/kjs_html.cpp:
              (KJS::JSHTMLDocumentProtoFunc::callAsFunction):
              (KJS::JSHTMLDocument::namedItemGetter):
              (KJS::JSHTMLDocument::getValueProperty):
              (KJS::JSHTMLDocument::getOwnPropertySlot):
              (KJS::JSHTMLDocument::putValueProperty):
              (KJS::JSHTMLElement::formIndexGetter):
              (KJS::JSHTMLElement::formNameGetter):
              (KJS::JSHTMLElement::selectIndexGetter):
              (KJS::JSHTMLElement::framesetNameGetter):
              (KJS::JSHTMLElement::runtimeObjectGetter):
              (KJS::JSHTMLElement::runtimeObjectPropertyGetter):
              (KJS::JSHTMLElement::getOwnPropertySlot):
              (KJS::JSHTMLElement::implementsCall):
              (KJS::JSHTMLElement::callAsFunction):
              (KJS::JSHTMLElement::getValueProperty):
              (KJS::JSHTMLElement::toString):
              (KJS::getForm):
              (KJS::JSHTMLElement::pushEventHandlerScope):
              (KJS::HTMLElementFunction::callAsFunction):
              (KJS::JSHTMLElement::put):
              (KJS::JSHTMLElement::selectSetter):
              (KJS::JSHTMLElement::putValueProperty):
              (KJS::toHTMLElement):
              (KJS::toHTMLTableCaptionElement):
              (KJS::toHTMLTableSectionElement):
              (KJS::JSHTMLCollection::lengthGetter):
              (KJS::JSHTMLCollection::indexGetter):
              (KJS::JSHTMLCollection::nameGetter):
              (KJS::JSHTMLCollection::getOwnPropertySlot):
              (KJS::HTMLCollectionProtoFunc::callAsFunction):
              (KJS::JSHTMLSelectCollection::selectedIndexGetter):
              (KJS::JSHTMLSelectCollection::put):
              (KJS::OptionConstructorImp::construct):
              (KJS::getSelectHTMLCollection):
              * bindings/objc/DOMHTML.mm:
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::createFrame):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge copyRenderNode:copier:]):
              * dom/Document.cpp:
              (WebCore::widgetForNode):
              * html/HTMLBodyElement.cpp: Added.
              (WebCore::HTMLBodyElement::HTMLBodyElement):
              (WebCore::HTMLBodyElement::parseMappedAttribute):
              * html/HTMLBodyElement.h: Added.
              * html/HTMLDocument.cpp:
              * html/HTMLElementFactory.cpp:
              * html/HTMLEmbedElement.cpp:
              * html/HTMLFrameElement.cpp: Added.
              (WebCore::HTMLFrameElement::isURLAllowed):
              (WebCore::HTMLFrameElement::parseMappedAttribute):
              (WebCore::HTMLFrameElement::setLocation):
              * html/HTMLFrameElement.h: Added.
              * html/HTMLFrameSetElement.cpp: Added.
              (WebCore::HTMLFrameSetElement::HTMLFrameSetElement):
              (WebCore::HTMLFrameSetElement::parseMappedAttribute):
              (WebCore::HTMLFrameSetElement::attach):
              (WebCore::HTMLFrameSetElement::defaultEventHandler):
              (WebCore::HTMLFrameSetElement::recalcStyle):
              * html/HTMLFrameSetElement.h: Added.
              * html/HTMLHeadElement.cpp: Added.
              (WebCore::HTMLHeadElement::HTMLHeadElement):
              * html/HTMLHeadElement.h: Added.
              * html/HTMLHtmlElement.cpp: Added.
              (WebCore::HTMLHtmlElement::HTMLHtmlElement):
              * html/HTMLHtmlElement.h: Added.
              * html/HTMLIFrameElement.cpp: Added.
              (WebCore::HTMLIFrameElement::HTMLIFrameElement):
              * html/HTMLIFrameElement.h: Added.
              * html/HTMLObjectElement.cpp:
              * html/HTMLParser.cpp:
              * html/html_baseimpl.cpp: Removed.
              * html/html_baseimpl.h: Removed.
              * kwq/WebCoreAXObject.mm:
              * page/Frame.cpp:
              (WebCore::isFrameElement):
              (WebCore::Frame::applyEditingStyleToBodyElement):
              (WebCore::Frame::removeEditingStyleFromBodyElement):
              (WebCore::Frame::applyEditingStyleToElement):
              (WebCore::Frame::removeEditingStyleFromElement):
              (WebCore::Frame::selectionRect):
              (WebCore::Frame::isFrameSet):
              (WebCore::scanForForm):
              (WebCore::Frame::currentForm):
              (WebCore::Frame::nodeInfoAtPoint):
              (WebCore::Frame::adjustPageHeight):
              (WebCore::Frame::frameForWidget):
              (WebCore::Frame::forceLayoutWithPageWidthRange):
              (WebCore::Frame::passWidgetMouseDownEventToWidget):
              * page/FrameView.cpp:
              * rendering/RenderFrame.cpp: Added.
              (WebCore::RenderFrame::viewCleared):
              * rendering/RenderFrame.h: Added.
              * rendering/RenderFrameSet.cpp: Added.
              (WebCore::RenderFrameSet::RenderFrameSet):
              (WebCore::RenderFrameSet::~RenderFrameSet):
              (WebCore::RenderFrameSet::layout):
              (WebCore::RenderFrameSet::positionFrames):
              (WebCore::RenderFrameSet::userResize):
              (WebCore::RenderFrameSet::canResize):
              (WebCore::RenderFrameSet::dump):
              * rendering/RenderFrameSet.h: Added.
              * rendering/RenderImage.h:
              * rendering/RenderPart.cpp: Added.
              (WebCore::RenderPart::RenderPart):
              * rendering/RenderPart.h: Added.
              * rendering/RenderPartObject.cpp: Added.
              (WebCore::isURLAllowed):
              (WebCore::RenderPartObject::updateWidget):
              (WebCore::RenderPartObject::viewCleared):
              * rendering/RenderPartObject.h: Added.
              * rendering/RenderReplaced.cpp: Added.
              (WebCore::RenderReplaced::selectionColor):
              * rendering/RenderReplaced.h: Added.
              * rendering/RenderWidget.cpp: Added.
              (WebCore::RenderWidget::deleteWidget):
              * rendering/RenderWidget.h: Added.
              * rendering/render_form.h:
              * rendering/render_frames.cpp: Removed.
              * rendering/render_frames.h: Removed.
              * rendering/render_replaced.cpp: Removed.
              * rendering/render_replaced.h: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14334 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      409f4301
    • mjs's avatar
      Reviewed by Brady. · d2eb1dea
      mjs authored
              
              http://bugzilla.opendarwin.org/show_bug.cgi?id=8876
              - move most private WebDataSource methods to uninstalled header
              
              I put the declarations for the ones only used in WebKit in WebDataSourceInternal.h
              and removed two entirey unused ones.
      
              * Plugins/WebNetscapePluginRepresentation.m:
              * Plugins/WebNetscapePluginStream.m:
              * Plugins/WebPluginController.m:
              * Plugins/WebPluginDocumentView.m:
              * WebCoreSupport/WebFrameBridge.m:
              (-[WebFrameBridge dataSource]):
              * WebCoreSupport/WebSubresourceLoader.m:
              * WebKit.xcodeproj/project.pbxproj:
              * WebView/WebDataSource.m:
              (-[WebDataSource _updateIconDatabaseWithURL:]):
              (-[WebDataSource _loadIcon]):
              (-[WebDataSource _clearErrors]):
              (-[WebDataSource _commitLoadWithData:]):
              (-[WebDataSource _doesProgressiveLoadWithMIMEType:]):
              (-[WebDataSource _addResponse:]):
              * WebView/WebDataSourceInternal.h: Added.
              * WebView/WebDataSourcePrivate.h:
              * WebView/WebFrame.m:
              * WebView/WebHTMLRepresentation.m:
              * WebView/WebHTMLView.m:
              * WebView/WebImageView.m:
              * WebView/WebLoader.m:
              * WebView/WebMainResourceLoader.m:
              * WebView/WebPDFView.m:
              * WebView/WebRenderNode.m:
              * WebView/WebView.m:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14333 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d2eb1dea
    • eseidel's avatar
      2006-05-12 Eric Seidel <eseidel@apple.com> · 1bdb6f51
      eseidel authored
              Reviewed by beth.
      
              Split html_headimpl.* into separate files (one per class)
              http://bugzilla.opendarwin.org/show_bug.cgi?id=8875
      
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/kjs_css.cpp:
              * bindings/js/kjs_html.cpp:
              (KJS::JSHTMLElement::headGetter):
              (KJS::JSHTMLElement::linkGetter):
              * bindings/objc/DOMCSS.mm:
              (+[DOMCounter _counterWith:]):
              (-[DOMCounter finalize]):
              (-[DOMCounter _DOMStyleSheet]):
              (-[DOMStyleSheet _initWithStyleSheet:]):
              (-[DOMStyleSheetList dealloc]):
              (-[DOMStyleSheetList finalize]):
              (-[DOMStyleSheetList _styleSheetList]):
              (-[DOMStyleSheetList _initWithStyleSheetList:]):
              (-[DOMCSSStyleSheet _CSSStyleSheet]):
              (-[DOMMediaList dealloc]):
              (-[DOMMediaList finalize]):
              (-[DOMMediaList _mediaList]):
              (-[DOMMediaList _initWithMediaList:]):
              (-[DOMCSSRuleList dealloc]):
              (-[DOMCSSRuleList finalize]):
              (-[DOMCSSRuleList _ruleList]):
              (-[DOMCSSRuleList _initWithRuleList:]):
              (-[DOMCSSRule dealloc]):
              (-[DOMCSSRule finalize]):
              (-[DOMCSSRule _rule]):
              (-[DOMCSSRule _initWithRule:]):
              (-[DOMCSSStyleRule _styleRule]):
              (-[DOMCSSMediaRule _mediaRule]):
              (-[DOMCSSFontFaceRule _fontFaceRule]):
              (-[DOMCSSPageRule _pageRule]):
              (-[DOMCSSImportRule _importRule]):
              (-[DOMCSSCharsetRule _importRule]):
              (-[DOMCSSStyleDeclaration dealloc]):
              (-[DOMCSSStyleDeclaration finalize]):
              (-[DOMCSSStyleDeclaration _initWithStyleDeclaration:]):
              (-[DOMCSSStyleDeclaration _styleDeclaration]):
              (-[DOMCSSValue dealloc]):
              (-[DOMCSSValue finalize]):
              (-[DOMCSSValue _value]):
              (-[DOMCSSValue _initWithValue:]):
              (-[DOMCSSPrimitiveValue _primitiveValue]):
              (-[DOMCSSValueList _valueList]):
              (getWrapperForRGB):
              (setWrapperForRGB):
              (removeWrapperForRGB):
              (-[DOMRGBColor _initWithRGB:]):
              (-[DOMRect dealloc]):
              (-[DOMRect finalize]):
              (-[DOMRect _rect]):
              (-[DOMRect _initWithRect:]):
              (-[DOMCounter dealloc]):
              (-[DOMCounter _counter]):
              (-[DOMCounter _initWithCounter:]):
              (-[DOMObject sheet]):
              * bindings/objc/DOMHTML.mm:
              (-[DOMHTMLCollection dealloc]):
              (-[DOMHTMLCollection finalize]):
              (-[DOMHTMLCollection _collection]):
              (-[DOMHTMLCollection _initWithCollection:]):
              (-[DOMHTMLOptionsCollection dealloc]):
              (-[DOMHTMLOptionsCollection finalize]):
              (-[DOMHTMLOptionsCollection _initWithOptionsCollection:]):
              (-[DOMHTMLOptionsCollection _optionsCollection]):
              (+[DOMHTMLElement _elementWith:]):
              (-[DOMHTMLElement _HTMLElement]):
              (-[DOMHTMLDocument _HTMLDocument]):
              (-[DOMHTMLHtmlElement _HTMLHtmlElement]):
              (-[DOMHTMLHeadElement _headElement]):
              (-[DOMHTMLLinkElement _linkElement]):
              (-[DOMHTMLTitleElement _titleElement]):
              (-[DOMHTMLMetaElement _metaElement]):
              (-[DOMHTMLBaseElement _baseElement]):
              (-[DOMHTMLStyleElement _styleElement]):
              (-[DOMHTMLBodyElement _bodyElement]):
              (-[DOMHTMLFormElement _formElement]):
              (+[DOMHTMLFormElement _formElementWith:]):
              (-[DOMHTMLIsIndexElement _isIndexElement]):
              (-[DOMHTMLSelectElement _selectElement]):
              (-[DOMHTMLOptGroupElement _optGroupElement]):
              (-[DOMHTMLOptionElement _optionElement]):
              (-[DOMHTMLInputElement _inputElement]):
              (-[DOMHTMLTextAreaElement _textAreaElement]):
              (-[DOMHTMLButtonElement _buttonElement]):
              (-[DOMHTMLLabelElement _labelElement]):
              (-[DOMHTMLLabelElement form]):
              (-[DOMHTMLFieldSetElement _fieldSetElement]):
              (-[DOMHTMLLegendElement _legendElement]):
              (-[DOMHTMLUListElement _uListElement]):
              (-[DOMHTMLOListElement _oListElement]):
              (-[DOMHTMLDListElement _dListElement]):
              (-[DOMHTMLDirectoryElement _directoryListElement]):
              (-[DOMHTMLMenuElement _menuListElement]):
              (-[DOMHTMLLIElement _liElement]):
              (-[DOMHTMLQuoteElement _quoteElement]):
              (-[DOMHTMLDivElement _divElement]):
              (-[DOMHTMLParagraphElement _paragraphElement]):
              (-[DOMHTMLHeadingElement _headingElement]):
              (-[DOMHTMLPreElement _preElement]):
              (-[DOMHTMLBRElement _BRElement]):
              (-[DOMHTMLBaseFontElement _baseFontElement]):
              (-[DOMHTMLFontElement _fontElement]):
              (-[DOMHTMLHRElement _HRElement]):
              (-[DOMHTMLModElement _modElement]):
              (-[DOMHTMLAnchorElement _anchorElement]):
              (-[DOMHTMLImageElement _imageElement]):
              (-[DOMHTMLObjectElement _objectElement]):
              (-[DOMHTMLParamElement _paramElement]):
              (-[DOMHTMLMapElement _mapElement]):
              (-[DOMHTMLAreaElement _areaElement]):
              (-[DOMHTMLScriptElement _scriptElement]):
              (+[DOMHTMLTableCaptionElement _tableCaptionElementWith:]):
              (-[DOMHTMLTableCaptionElement _tableCaptionElement]):
              (+[DOMHTMLTableSectionElement _tableSectionElementWith:]):
              (-[DOMHTMLTableSectionElement _tableSectionElement]):
              (-[DOMHTMLTableElement createTHead]):
              (-[DOMHTMLTableElement createTFoot]):
              (-[DOMHTMLTableElement createCaption]):
              (-[DOMHTMLTableElement insertRow:]):
              (+[DOMHTMLTableElement _tableElementWith:]):
              (-[DOMHTMLTableElement _tableElement]):
              (-[DOMHTMLTableColElement _tableColElement]):
              (-[DOMHTMLTableRowElement _tableRowElement]):
              (-[DOMHTMLTableRowElement insertCell:]):
              (+[DOMHTMLTableCellElement _tableCellElementWith:]):
              (-[DOMHTMLTableCellElement _tableCellElement]):
              (-[DOMHTMLFrameSetElement _frameSetElement]):
              (-[DOMHTMLFrameElement _frameElement]):
              (-[DOMHTMLIFrameElement _IFrameElement]):
              (-[DOMHTMLEmbedElement _embedElement]):
              (viewForElement):
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::searchForLabelsAboveCell):
              (WebCore::FrameMac::searchForLabelsBeforeElement):
              (WebCore::FrameMac::createFrame):
              (WebCore::FrameMac::passMouseDownEventToWidget):
              (WebCore::FrameMac::passSubframeEventToSubframe):
              (WebCore::FrameMac::passWheelEventToChildWidget):
              (WebCore::FrameMac::fileWrapperForElement):
              (WebCore::listParent):
              (WebCore::FrameMac::attributedString):
              (WebCore::FrameMac::shouldBeginEditing):
              (WebCore::FrameMac::shouldEndEditing):
              (WebCore::FrameMac::setMarkedTextRange):
              * dom/Document.cpp:
              * dom/xml_tokenizer.cpp:
              * html/HTMLBaseElement.cpp: Added.
              (WebCore::HTMLBaseElement::removedFromDocument):
              (WebCore::HTMLBaseElement::process):
              * html/HTMLBaseElement.h: Added.
              * html/HTMLDocument.cpp:
              * html/HTMLElementFactory.cpp:
              * html/HTMLLinkElement.cpp: Added.
              (WebCore::HTMLLinkElement::HTMLLinkElement):
              (WebCore::HTMLLinkElement::process):
              * html/HTMLLinkElement.h: Added.
              * html/HTMLMetaElement.cpp: Added.
              (WebCore::HTMLMetaElement::HTMLMetaElement):
              (WebCore::HTMLMetaElement::parseMappedAttribute):
              (WebCore::HTMLMetaElement::process):
              (WebCore::HTMLMetaElement::setContent):
              (WebCore::HTMLMetaElement::setHttpEquiv):
              (WebCore::HTMLMetaElement::setName):
              * html/HTMLMetaElement.h: Added.
              * html/HTMLParser.cpp:
              * html/HTMLScriptElement.cpp: Added.
              (WebCore::HTMLScriptElement::HTMLScriptElement):
              (WebCore::HTMLScriptElement::parseMappedAttribute):
              (WebCore::HTMLScriptElement::evaluateScript):
              * html/HTMLScriptElement.h: Added.
              * html/HTMLStyleElement.cpp: Added.
              (WebCore::HTMLStyleElement::HTMLStyleElement):
              * html/HTMLStyleElement.h: Added.
              * html/HTMLTitleElement.cpp: Added.
              (WebCore::HTMLTitleElement::HTMLTitleElement):
              (WebCore::HTMLTitleElement::text):
              (WebCore::HTMLTitleElement::setText):
              * html/HTMLTitleElement.h: Added.
              * html/html_headimpl.cpp: Removed.
              * html/html_headimpl.h: Removed.
              * loader/CachedCSSStyleSheet.h:
              * rendering/RenderTableCell.cpp:
              (WebCore::RenderTableCell::updateFromElement):
              * rendering/RenderTableCol.cpp:
              (WebCore::RenderTableCol::updateFromElement):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14332 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1bdb6f51
    • eseidel's avatar
      2006-05-12 Eric Seidel <eseidel@apple.com> · 787da6bd
      eseidel authored
              Reviewed by beth.
      
              Split out html_tableimpl.* into multiple files (one per class)
              http://bugzilla.opendarwin.org/show_bug.cgi?id=8873
      
              * WebCore.xcodeproj/project.pbxproj:
              * html/HTMLTableCaptionElement.cpp: Added.
              (WebCore::HTMLTableCaptionElement::HTMLTableCaptionElement):
              * html/HTMLTableCaptionElement.h: Added.
              * html/HTMLTableCellElement.cpp: Added.
              (WebCore::HTMLTableCellElement::HTMLTableCellElement):
              * html/HTMLTableCellElement.h: Added.
              * html/HTMLTableColElement.cpp: Added.
              (WebCore::HTMLTableColElement::HTMLTableColElement):
              (WebCore::HTMLTableColElement::endTagRequirement):
              (WebCore::HTMLTableColElement::tagPriority):
              (WebCore::HTMLTableColElement::checkDTD):
              * html/HTMLTableColElement.h: Added.
              * html/HTMLTableElement.cpp: Added.
              (WebCore::HTMLTableElement::HTMLTableElement):
              (WebCore::HTMLTableElement::setCaption):
              (WebCore::HTMLTableElement::setTHead):
              (WebCore::HTMLTableElement::setTFoot):
              (WebCore::HTMLTableElement::setTBody):
              (WebCore::HTMLTableElement::createTHead):
              (WebCore::HTMLTableElement::deleteTHead):
              (WebCore::HTMLTableElement::createTFoot):
              (WebCore::HTMLTableElement::deleteTFoot):
              (WebCore::HTMLTableElement::createCaption):
              (WebCore::HTMLTableElement::deleteCaption):
              (WebCore::HTMLTableElement::insertRow):
              (WebCore::HTMLTableElement::deleteRow):
              (WebCore::HTMLTableElement::addChild):
              (WebCore::HTMLTableElement::parseMappedAttribute):
              (WebCore::HTMLTableElement::attach):
              * html/HTMLTableElement.h: Added.
              * html/HTMLTablePartElement.cpp: Added.
              (WebCore::HTMLTablePartElement::parseMappedAttribute):
              * html/HTMLTablePartElement.h: Added.
              * html/HTMLTableRowElement.cpp: Added.
              (WebCore::HTMLTableRowElement::HTMLTableRowElement):
              (WebCore::HTMLTableRowElement::rowIndex):
              * html/HTMLTableRowElement.h: Added.
              * html/HTMLTableSectionElement.cpp: Added.
              (WebCore::HTMLTableSectionElement::insertRow):
              * html/HTMLTableSectionElement.h: Added.
              * html/html_tableimpl.cpp: Removed.
              * html/html_tableimpl.h: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14331 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      787da6bd
    • eseidel's avatar
      2006-05-10 Eric Seidel <eseidel@apple.com> · d2f36a16
      eseidel authored
              Reviewed by mjs & adele.
      
              Split html_objectimpl.* into multiple files (one per class)
              http://bugzilla.opendarwin.org/show_bug.cgi?id=8836
      
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/kjs_dom.cpp:
              (KJS::DOMNamedNodeMap::lengthGetter):
              (KJS::DOMNamedNodeMap::indexGetter):
              (KJS::DOMNamedNodeMap::nameGetter):
              (KJS::DOMNamedNodeMapProtoFunc::callAsFunction):
              (KJS::getRuntimeObject):
              * bindings/js/kjs_html.cpp:
              * html/HTMLAppletElement.cpp: Added.
              * html/HTMLAppletElement.h: Added.
              * html/HTMLElementFactory.cpp:
              * html/HTMLEmbedElement.cpp: Added.
              (WebCore::HTMLEmbedElement::HTMLEmbedElement):
              (WebCore::HTMLEmbedElement::getInstance):
              (WebCore::HTMLEmbedElement::parseMappedAttribute):
              * html/HTMLEmbedElement.h: Added.
              * html/HTMLNameCollection.cpp:
              (WebCore::HTMLNameCollection::traverseNextItem):
              * html/HTMLObjectElement.cpp: Added.
              (WebCore::HTMLObjectElement::getInstance):
              (WebCore::HTMLObjectElement::form):
              (WebCore::HTMLObjectElement::parseMappedAttribute):
              (WebCore::HTMLObjectElement::updateDocNamedItem):
              * html/HTMLObjectElement.h: Added.
              * html/HTMLParamElement.cpp: Added.
              * html/HTMLParamElement.h: Added.
              * html/HTMLParser.cpp:
              * html/HTMLPlugInElement.cpp: Added.
              * html/HTMLPlugInElement.h: Added.
              * html/html_objectimpl.cpp: Removed.
              * html/html_objectimpl.h: Removed.
              * page/Frame.cpp:
              (WebCore::Frame::handleFallbackContent):
              * rendering/RenderApplet.cpp:
              * rendering/render_frames.cpp:
              (WebCore::RenderPartObject::updateWidget):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14327 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d2f36a16
    • tomernic's avatar
      Reviewed by John Sullivan. · 320591a5
      tomernic authored
              <rdar://problem/4542808> REGRESSION: benchjs test 1 has slowed by over 150% (8740)
              <http://bugzilla.opendarwin.org/show_bug.cgi?id=8740>
      
              Improvement to my NSWindow display throttle hack.  Remember the last flush time instead of the last display time.
              Our goal is to never draw less than 1/60th of a second after the window is flushed in order to avoid blocking on
              a CG coalesced update.  Using the last display time is close, but this is much more accurate.  I have verified that
              this further improves our score on BenchJS Test 1 (by 9.8% with the status bar shown compared to the previous build),
              as well as on our internal PLT scores by a smaller percentage.
      
              * Misc/WebNSWindowExtras.m:
              Renamed lastDisplayTime to lastFlushTime.
              (+[NSWindow _webkit_enableWindowDisplayThrottle]):
              Replace -[NSWindow flushWindow] with our own implementation.
              (+[NSWindow _webkit_disableWindowDisplayThrottle]):
              Restore -[NSWindow flushWindow].
              (replacementFlushWindow):
              Use the last flush time instead of the last display time.
              (getWindowDisplayInfo):
              Renamed lastDisplayTime to lastFlushTime.
              (requestWindowDisplay):
              Moved some code to replacementFlushWindow().
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14325 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      320591a5
    • darin's avatar
      Reviewed by Adele. · 8f5eacbc
      darin authored
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8521
                crash bringing up context menu with CSS generated content
      
              * bridge/mac/FrameMac.mm: (WebCore::FrameMac::sendContextMenuEvent):
              Added a null check.
      
              * manual-tests/context-click-generated-content.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14324 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8f5eacbc
    • darin's avatar
      Reviewed by Adele. · 973fff96
      darin authored
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8715
                REGRESSION: Caret to the right of an image is a big black rectangle.
      
              * rendering/RenderBox.cpp: (WebCore::RenderBox::caretRect): Move caret to the
              right side of the rect when the offset is non-zero, rather than expanding it.
      
              * manual-tests/caret-image.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14323 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      973fff96
    • andersca's avatar
      WebCore: · 3c10e11d
      andersca authored
      2006-05-12  Mitz Pettel  <opendarwin.org@mitzpettel.com>
      
              Reviewed and landed by Anders.
              
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8866
                REGRESSION: Incorrect caret position in RTL text
      
              Test: fast/text/international/rtl-caret.html
      
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::positionForOffset): Added missing m_toAdd argument.
      
      
      LayoutTests:
      
      2006-05-12  Mitz Pettel  <opendarwin.org@mitzpettel.com>
      
              Reviewed and landed by Anders.
              
              - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=8866
                REGRESSION: Incorrect caret position in RTL text
      
              * fast/text/international/rtl-caret-expected.checksum: Added.
              * fast/text/international/rtl-caret-expected.png: Added.
              * fast/text/international/rtl-caret-expected.txt: Added.
              * fast/text/international/rtl-caret.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14322 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3c10e11d
    • hyatt's avatar
      Bug 8864. Lift WebCoreTextStyle up into the API (as TextStyle). · 5678a616
      hyatt authored
              Reviewed by mjs
      
              * platform/Font.cpp:
              (WebCore::m_finalRoundingWidth):
              (WebCore::WidthIterator::advance):
              (WebCore::Font::width):
              (WebCore::Font::drawSimpleText):
              (WebCore::Font::drawText):
              (WebCore::Font::floatWidth):
              (WebCore::Font::floatWidthForSimpleText):
              * platform/Font.h:
              (WebCore::TextStyle::m_attemptFontSubstitution):
              (WebCore::TextStyle::tabWidth):
              (WebCore::TextStyle::xPos):
              (WebCore::TextStyle::padding):
              (WebCore::TextStyle::rtl):
              (WebCore::TextStyle::ltr):
              (WebCore::TextStyle::directionalOverride):
              (WebCore::TextStyle::applyRunRounding):
              (WebCore::TextStyle::applyWordRounding):
              (WebCore::TextStyle::attemptFontSubstitution):
              (WebCore::Font::operator==):
              * platform/GraphicsContext.cpp:
              (WebCore::GraphicsContext::drawText):
              (WebCore::GraphicsContext::drawHighlightForText):
              * platform/GraphicsContext.h:
              * platform/mac/FontMac.mm:
              (WebCore::overrideLayoutOperation):
              (WebCore::ATSULayoutParameters::initialize):
              (WebCore::Font::selectionRectForText):
              (WebCore::Font::drawComplexText):
              (WebCore::Font::floatWidthForComplexText):
              (WebCore::Font::offsetForPosition):
              * 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/RenderText.cpp:
              (WebCore::RenderText::widthFromCache):
              (WebCore::RenderText::calcMinMaxWidth):
              (WebCore::RenderText::width):
              * rendering/RenderTextField.cpp:
              (WebCore::RenderTextField::calcMinMaxWidth):
              * rendering/render_line.cpp:
              (WebCore::EllipsisBox::paint):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14321 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5678a616
  3. 11 May, 2006 9 commits
    • ap's avatar
      Reviewed by Darin. · 2f541e58
      ap authored
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=8770
                XMLHttpRequest should strip CR/LF characters from the URL
      
              Test: fast/loader/url-strip-cr-lf-tab.html
      
              * platform/KURL.cpp:
              (appendEscapingBadChars): Strip CR, LF and TAB, as Firefox and IE do.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14320 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2f541e58
    • thatcher's avatar
      Reviewed by Darin. · 664a41c2
      thatcher authored
              Bug 8856: Web Inspector should show the Xpath for the selected node
              http://bugzilla.opendarwin.org/show_bug.cgi?id=8856
              
              Adds an Xpath area to the Node panel.
      
              * WebInspector/webInspector/inspector.css:
              * WebInspector/webInspector/inspector.html:
              * WebInspector/webInspector/inspector.js:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14319 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      664a41c2
    • hyatt's avatar
      Remove the misspelling drawing code from Font and FontData. Implement it · a19cbc48
      hyatt authored
              natively in GraphicContext instead.
      
              Reviewed by maciej
      
              * platform/FontData.h:
              * platform/GraphicsContext.cpp:
              * platform/GraphicsContext.h:
              * platform/cairo/GraphicsContextCairo.cpp:
              (WebCore::GraphicsContext::drawLineForMisspelling):
              * platform/mac/FontData.mm:
              * platform/mac/FontMac.mm:
              * platform/mac/GraphicsContextMac.mm:
              (WebCore::GraphicsContext::drawLineForMisspelling):
              * platform/win/FontWin.cpp:
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::paintSpellingMarker):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14318 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a19cbc48
    • hyatt's avatar
      Remove drawLineForText from the Font API. Implement it natively in · e9911eaa
      hyatt authored
              the two GraphicsContexts (CG and Cairo) instead.
      
              Reviewed by maciej
      
              * platform/Font.h:
              * platform/FontData.h:
              * platform/GraphicsContext.cpp:
              * platform/GraphicsContext.h:
              * platform/cairo/GraphicsContextCairo.cpp:
              (WebCore::GraphicsContext::drawLineForText):
              * platform/cg/GraphicsContextCG.cpp:
              (WebCore::GraphicsContext::drawLineForText):
              * platform/mac/FontData.mm:
              * platform/mac/FontMac.mm:
              * platform/win/FontWin.cpp:
              (WebCore::Font::drawLineForText):
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::paintDecoration):
              (WebCore::InlineTextBox::paintMarkedTextUnderline):
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::paintDecorations):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14317 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e9911eaa
    • sfalken's avatar
      2006-05-11 Steve Falkenburg <sfalken@apple.com> · ca2bba62
      sfalken authored
              Reviewed by eric.
      
              Fix last fix.
      
              * dom/QualifiedName.h:
              (WebCore::QualifiedName::QualifiedName):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14315 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ca2bba62
    • sfalken's avatar
      2006-05-11 Steve Falkenburg <sfalken@apple.com> · 65576505
      sfalken authored
              Reviewed by eric.
      
              Fix crash on static constructors builds at exit due to qualified name default constructor not
              initializing m_impl.
      
              * dom/QualifiedName.cpp:
              (WebCore::QualifiedName::deref):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14314 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      65576505
    • hyatt's avatar
      Reviewed by hyatt · 636f3212
      hyatt authored
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8851
                REGRESSION: RTL text shifted to the right
      
              Already covered by several tests in fast/text
      
              * platform/Font.h:
              (WebCore::TextRun::TextRun): Added length parameter.
              * rendering/InlineTextBox.cpp: Pass the length to the TextRun constructor.
              (WebCore::InlineTextBox::selectionRect):
              (WebCore::InlineTextBox::paint):
              (WebCore::InlineTextBox::paintSelection):
              (WebCore::InlineTextBox::paintMarkedTextBackground):
              (WebCore::InlineTextBox::paintTextMatchMarker):
              (WebCore::InlineTextBox::offsetForPosition):
              (WebCore::InlineTextBox::positionForOffset):
              * rendering/RenderText.cpp:
              (WebCore::RenderText::widthFromCache): Pass length and from instead of from and to
              to the TextRun constructor.
              (WebCore::RenderText::width): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14313 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      636f3212
    • hyatt's avatar
      Fix a regression from the TextRun landing. Delete the characters in · 10407bd5
      hyatt authored
              the adjustedRun, not the ones in the original run!
      
              Reviewed by beth
      
              * platform/mac/FontMac.mm:
              (WebCore::Font::drawComplexText):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14311 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      10407bd5
    • justing's avatar
      LayoutTests: · 4a5959b4
      justing authored
              Reviewed by thatcher, levi
              
              Inserting an <hr> into <div>foo^bar</div> now produces 
              <div>foo</div><hr><div>bar</div>, instead of <div>foo<hr>bar</div>, 
              which means that removing an inserted <hr> programmatically from 
              javascript produces a different visual result than before (the 
              new result is arguably more correct):
              * editing/execCommand/insertHorizontalRule.html:
              * editing/execCommand/insertHorizontalRule-expected.checksum:
              * editing/execCommand/insertHorizontalRule-expected.png:
              * editing/execCommand/insertHorizontalRule-expected.txt:
              
              Equivalent render trees or changes in the editing delegate
              notifications that reflect the fact that we are doing an end
              merge more often:
              * editing/pasteboard/paste-text-001-expected.txt:
              * editing/pasteboard/paste-text-at-tabspan-001-expected.txt:
              * editing/pasteboard/paste-text-at-tabspan-002-expected.txt:
              * editing/pasteboard/paste-text-at-tabspan-003-expected.txt:
              * editing/pasteboard/smart-paste-003-expected.txt:
              * editing/pasteboard/smart-paste-004-expected.txt:
              * editing/pasteboard/smart-paste-005-expected.txt:
              * editing/pasteboard/smart-paste-006-expected.txt:
              * editing/pasteboard/smart-paste-007-expected.txt:
              * editing/style/smoosh-styles-001-expected.txt:
              * editing/style/smoosh-styles-002-expected.txt:
      
      WebCore:
      
              Reviewed by thatcher, levi
      
              * editing/ReplaceSelectionCommand.cpp:
              (WebCore::ReplaceSelectionCommand::doApply):
              Removed a use fragment.hasMoreThanOneBlock to decide if the paragraph containing the
              position pasted into must be split to avoid block nesting.  We now split unnecessarily
              some times, but the end merge cleans up for us.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14310 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4a5959b4