1. 12 May, 2011 1 commit
    • inferno@chromium.org's avatar
      2011-05-12 Carol Szabo <carol@webkit.org> · a0b824e8
      inferno@chromium.org authored
              Reviewed by David Hyatt.
      
              Fix reparenting and destruction of counter nodes. 
              https://bugs.webkit.org/show_bug.cgi?id=57929
      
              Fixed several issues related to not met assertions.
              See below in the per file description.
      
              Test: fast/css/counters/element-removal-crash.xhtml
      
              * dom/ContainerNode.cpp:
              (WebCore::ContainerNode::removeChildren):
              Fixed the fact that Node::detach() used to be called
              while the DOM tree was in an inconsistent state.
              * rendering/RenderCounter.cpp:
              (WebCore::RenderCounter::rendererRemovedFromTree):
              Introduced this function to remove counters from
              descendents of renderers removed from the renderer
              tree not only from the removed renderers themselves.
              * rendering/RenderCounter.h:
              * rendering/RenderObjectChildList.cpp:
              (WebCore::RenderObjectChildList::removeChildNode):
              Changed to call RenderCounter::rendererRemovedFromTree
              instead of RenderCounter::destroyCounters.
      2011-05-08 Abhishek Arya <inferno@chromium.org> and Carol Szabo  <carol@webkit.org>
      
              Reviewed by David Hyatt.
      
              Fix reparenting and destruction of counter nodes.
              https://bugs.webkit.org/show_bug.cgi?id=57929
      
              * fast/css/counters/element-removal-crash-expected.txt: Added.
              * fast/css/counters/element-removal-crash.xhtml: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86358 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a0b824e8
  2. 22 Mar, 2011 1 commit
    • carol.szabo@nokia.com's avatar
      2011-03-22 Carol Szabo <carol.szabo@nokia.com> · 7cf0a555
      carol.szabo@nokia.com authored
              Reviewed by David Hyatt.
      
              Introduced double linkage between a CounterNode and its display renderer.
      
              use of freed pointer in WebCore::RenderCounter::originalText()
              https://bugs.webkit.org/show_bug.cgi?id=56065
      
              No new tests. This bug could only be reproduced manually by
              refreshing the page during load at a critical point.
              See bug attachment for testing.
      
              * rendering/CounterNode.cpp:
              Introduced new member "m_owner" to store the renderer that has the
              style directives that produce the CounterNode.
              Repurposed m_renderer to reffer to the RenderCounter that shows the
              CounterNode.
              (WebCore::CounterNode::CounterNode):
              Updated member initialization.
              (WebCore::CounterNode::create):
              (WebCore::CounterNode::addRenderer):
              (WebCore::CounterNode::removeRenderer):
              Introduced to manage the renderer list associated wit this CounterNode.
              (WebCore::CounterNode::resetRenderers):
              This is the old resetRenderer. Renamed to take into account that there may be
              more than one renderer to a CounterNode.
              (WebCore::CounterNode::resetThisAndDescendantsRenderers):
              This is the old resetRenderers renamed for clarity.
              (WebCore::CounterNode::recount):
              (WebCore::CounterNode::insertAfter):
              (WebCore::CounterNode::removeChild):
              No functional changes.
              (WebCore::showTreeAndMark):
              Added flushing to ensure that the output is complete.
              * rendering/CounterNode.h:
              (WebCore::CounterNode::owner):
              Renamed from renderer()
              * rendering/RenderCounter.cpp:
              (WebCore::findPlaceForCounter):
              Fixed comments. No functional changes.
              (WebCore::RenderCounter::~RenderCounter):
              Made sure that the CounterNode that this renderers displays is
              detached from this.
              (WebCore::RenderCounter::originalText):
              (WebCore::RenderCounter::invalidate):
              Changed to maintain the bidirectional relationship with the displayed CounterNode.
              Also made "invalidate" private as it should be used only by CounterNode.
              (WebCore::destroyCounterNodeWithoutMapRemoval):
              (WebCore::RenderCounter::destroyCounterNodes):
              (WebCore::RenderCounter::destroyCounterNode):
              (WebCore::updateCounters):
              No change, just kept code in line with the changes above.
              (showCounterRendererTree):
              Added fflush to ensure complete display.
              * rendering/RenderCounter.h:
              * rendering/RenderObjectChildList.cpp:
              * rendering/RenderObjectChildList.h:
              Removed unneeded invalidateCounters related functions.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@81724 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7cf0a555
  3. 13 Mar, 2011 1 commit
    • commit-queue@webkit.org's avatar
      2011-03-12 Sheriff Bot <webkit.review.bot@gmail.com> · c6feefb0
      commit-queue@webkit.org authored
              Unreviewed, rolling out r80895.
              http://trac.webkit.org/changeset/80895
              https://bugs.webkit.org/show_bug.cgi?id=56261
      
              Causing crashes in several tests including
              t1202-counters-16-c.html (see
              http://build.webkit.org/results/SnowLeopard%20Intel%20Leaks/r80956%20(15528)/results.html)
              (Requested by dave_levin on #webkit).
      
              * rendering/CounterNode.cpp:
              (WebCore::CounterNode::CounterNode):
              (WebCore::CounterNode::create):
              (WebCore::CounterNode::resetRenderer):
              (WebCore::CounterNode::resetRenderers):
              (WebCore::CounterNode::recount):
              (WebCore::CounterNode::insertAfter):
              (WebCore::CounterNode::removeChild):
              (WebCore::showTreeAndMark):
              * rendering/CounterNode.h:
              (WebCore::CounterNode::renderer):
              * rendering/RenderCounter.cpp:
              (WebCore::findPlaceForCounter):
              (WebCore::RenderCounter::~RenderCounter):
              (WebCore::RenderCounter::originalText):
              (WebCore::RenderCounter::invalidate):
              (WebCore::destroyCounterNodeWithoutMapRemoval):
              (WebCore::RenderCounter::destroyCounterNodes):
              (WebCore::RenderCounter::destroyCounterNode):
              (WebCore::updateCounters):
              (showCounterRendererTree):
              * rendering/RenderCounter.h:
              * rendering/RenderObjectChildList.cpp:
              (WebCore::invalidateCountersInContainer):
              (WebCore::RenderObjectChildList::invalidateCounters):
              * rendering/RenderObjectChildList.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80957 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c6feefb0
  4. 11 Mar, 2011 1 commit
    • carol.szabo@nokia.com's avatar
      2011-03-11 Carol Szabo <carol.szabo@nokia.com> · 8b37d19c
      carol.szabo@nokia.com authored
              Reviewed by David Hyatt.
      
              Introduced double linkage between a CounterNode and its display renderer.
      
              use of freed pointer in WebCore::RenderCounter::originalText()
              https://bugs.webkit.org/show_bug.cgi?id=56065
      
              No new tests. This bug could only be reproduced manually by
              refreshing the page during load at a critical point.
              See bug attachment for testing.
      
              * rendering/CounterNode.cpp:
              Introduced new member "m_owner" to store the renderer that has the
              style directives that produce the CounterNode.
              Repurposed m_renderer to reffer to the RenderCounter that shows the
              CounterNode.
              (WebCore::CounterNode::CounterNode):
              Updated member initialization.
              (WebCore::CounterNode::create):
              (WebCore::CounterNode::resetRenderer):
              (WebCore::CounterNode::resetRenderers):
              (WebCore::CounterNode::recount):
              (WebCore::CounterNode::removeChild):
              (WebCore::CounterNode::insertAfter):
              No functional changes.
              (WebCore::showTreeAndMark):
              Added flushing to ensure that the output is complete.
              * rendering/CounterNode.h:
              (WebCore::CounterNode::owner):
              Renamed from renderer()
              (WebCore::CounterNode::renderer):
              (WebCore::CounterNode::setRenderer):
              Added new accessors for the display renderer.
              * rendering/RenderCounter.cpp:
              (WebCore::findPlaceForCounter):
              Fixed comments. No functional changes.
              (WebCore::RenderCounter::~RenderCounter):
              Made sure that the CounterNode that this renderers displays is
              detached from this.
              (WebCore::RenderCounter::originalText):
              (WebCore::RenderCounter::invalidate):
              Added code to update m_renderer on the displayed CounterNode.
              (WebCore::destroyCounterNodeWithoutMapRemoval):
              (WebCore::RenderCounter::destroyCounterNodes):
              (WebCore::RenderCounter::destroyCounterNode):
              (WebCore::updateCounters):
              No change, just kept code in line with the changes above.
              (showCounterRendererTree):
              Added fflush to ensure complete display.
              * rendering/RenderCounter.h:
              * rendering/RenderObjectChildList.cpp:
              * rendering/RenderObjectChildList.h:
              Removed unneeded invalidateCounters related functions.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80895 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8b37d19c
  5. 17 Feb, 2011 1 commit
    • hyatt@apple.com's avatar
      https://bugs.webkit.org/show_bug.cgi?id=54244 · 0acc935b
      hyatt@apple.com authored
              
      Reviewed by Dan Bernstein.
      
      Convert the line box tree to floating point and eliminate font rounding hacks.  This patch removes all of the rounding
      hacks from the Font code and makes sure all Font APIs involving width measurement and width offsets use floats.
              
      The line box tree's x, y and logicalWidth members have all been converted to floats and all of the line box APIs have
      been changed as well.
              
      In terms of pixel adjustments, overflow is using an enclosing model (so it will be enclosingIntRect of a line box's x/y/width/height).
              
      Background and border painting is using a rounding model, so borders and backgrounds will round to the nearest pixel when painting.
              
      Replaced elements still snap to integer positions on lines, and they use a rounding model as well, although their underlying line boxes
      still have a precise floating point position.
      
      Justification will now allow subpixel positioning to occur as well.  Platforms that don't support subpixel positioning should already
      be rounding justification spacing in their font code.
      
      Many layout test results change on Mac, since rounding hacks were used there and are now gone.
      
      ../WebCore: 
      
      * WebCore.exp.in:
      * html/canvas/CanvasRenderingContext2D.cpp:
      (WebCore::CanvasRenderingContext2D::drawTextInternal):
      * platform/chromium/FileChooserChromium.cpp:
      (WebCore::FileChooser::basenameForWidth):
      * platform/graphics/Font.cpp:
      (WebCore::Font::width):
      * platform/graphics/Font.h:
      (WebCore::Font::spaceWidth):
      (WebCore::Font::tabWidth):
      * platform/graphics/FontFastPath.cpp:
      (WebCore::Font::getGlyphsAndAdvancesForSimpleText):
      * platform/graphics/GraphicsContext.cpp:
      (WebCore::GraphicsContext::drawText):
      (WebCore::GraphicsContext::drawEmphasisMarks):
      (WebCore::GraphicsContext::drawBidiText):
      (WebCore::GraphicsContext::drawHighlightForText):
      * platform/graphics/GraphicsContext.h:
      * platform/graphics/SimpleFontData.cpp:
      (WebCore::SimpleFontData::SimpleFontData):
      (WebCore::SimpleFontData::platformGlyphInit):
      * platform/graphics/SimpleFontData.h:
      (WebCore::SimpleFontData::spaceWidth):
      * platform/graphics/StringTruncator.cpp:
      (WebCore::stringWidth):
      (WebCore::truncateString):
      (WebCore::StringTruncator::centerTruncate):
      (WebCore::StringTruncator::rightTruncate):
      (WebCore::StringTruncator::width):
      * platform/graphics/StringTruncator.h:
      * platform/graphics/TextRun.h:
      (WebCore::TextRun::TextRun):
      (WebCore::TextRun::xPos):
      (WebCore::TextRun::expansion):
      (WebCore::TextRun::directionalOverride):
      (WebCore::TextRun::disableSpacing):
      * platform/graphics/WidthIterator.cpp:
      (WebCore::WidthIterator::WidthIterator):
      (WebCore::WidthIterator::advance):
      * platform/graphics/WidthIterator.h:
      * platform/graphics/cairo/GraphicsContextCairo.cpp:
      (WebCore::GraphicsContext::drawLineForText):
      (WebCore::GraphicsContext::drawLineForTextChecking):
      * platform/graphics/cg/GraphicsContextCG.cpp:
      (WebCore::GraphicsContext::drawLineForText):
      * platform/graphics/mac/ComplexTextController.cpp:
      (WebCore::ComplexTextController::ComplexTextController):
      (WebCore::ComplexTextController::advance):
      (WebCore::ComplexTextController::adjustGlyphsAndAdvances):
      * platform/graphics/mac/ComplexTextController.h:
      * platform/graphics/mac/FontComplexTextMac.cpp:
      (WebCore::Font::getGlyphsAndAdvancesForComplexText):
      * platform/graphics/mac/GraphicsContextMac.mm:
      (WebCore::GraphicsContext::drawLineForTextChecking):
      * platform/graphics/qt/GraphicsContextQt.cpp:
      (WebCore::GraphicsContext::drawLineForText):
      (WebCore::GraphicsContext::drawLineForTextChecking):
      * platform/graphics/qt/SimpleFontDataQt.cpp:
      (WebCore::SimpleFontData::platformGlyphInit):
      * platform/graphics/skia/GraphicsContextSkia.cpp:
      (WebCore::GraphicsContext::drawLineForTextChecking):
      (WebCore::GraphicsContext::drawLineForText):
      * platform/graphics/win/GraphicsContextCGWin.cpp:
      (WebCore::GraphicsContext::drawLineForTextChecking):
      * platform/graphics/win/UniscribeController.cpp:
      (WebCore::UniscribeController::shapeAndPlaceItem):
      * platform/gtk/FileChooserGtk.cpp:
      (WebCore::FileChooser::basenameForWidth):
      * platform/mac/DragImageMac.mm:
      (WebCore::widthWithFont):
      (WebCore::drawAtPoint):
      * platform/mac/FileChooserMac.mm:
      (WebCore::FileChooser::basenameForWidth):
      * platform/win/DragImageWin.cpp:
      (WebCore::createDragImageForLink):
      * platform/win/FileChooserWin.cpp:
      (WebCore::FileChooser::basenameForWidth):
      * platform/win/PopupMenuWin.cpp:
      (WebCore::PopupMenuWin::calculatePositionAndSize):
      * platform/win/WebCoreTextRenderer.cpp:
      (WebCore::WebCoreTextFloatWidth):
      * rendering/HitTestResult.cpp:
      (WebCore::HitTestResult::addNodeToRectBasedTestResult):
      * rendering/HitTestResult.h:
      * rendering/InlineBox.cpp:
      (WebCore::InlineBox::adjustPosition):
      (WebCore::InlineBox::placeEllipsisBox):
      (WebCore::InlineBox::locationIncludingFlipping):
      (WebCore::InlineBox::flipForWritingMode):
      * rendering/InlineBox.h:
      (WebCore::InlineBox::InlineBox):
      (WebCore::InlineBox::adjustLineDirectionPosition):
      (WebCore::InlineBox::adjustBlockDirectionPosition):
      (WebCore::InlineBox::setX):
      (WebCore::InlineBox::x):
      (WebCore::InlineBox::setY):
      (WebCore::InlineBox::y):
      (WebCore::InlineBox::width):
      (WebCore::InlineBox::height):
      (WebCore::InlineBox::logicalLeft):
      (WebCore::InlineBox::logicalRight):
      (WebCore::InlineBox::setLogicalLeft):
      (WebCore::InlineBox::pixelSnappedLogicalLeft):
      (WebCore::InlineBox::pixelSnappedLogicalRight):
      (WebCore::InlineBox::setLogicalWidth):
      (WebCore::InlineBox::logicalWidth):
      (WebCore::InlineBox::verticalAlign):
      * rendering/InlineFlowBox.cpp:
      (WebCore::InlineFlowBox::roundedFrameRect):
      (WebCore::InlineFlowBox::adjustPosition):
      (WebCore::InlineFlowBox::placeBoxesInInlineDirection):
      (WebCore::InlineFlowBox::adjustMaxAscentAndDescent):
      (WebCore::verticalPositionForBox):
      (WebCore::InlineFlowBox::computeLogicalBoxHeights):
      (WebCore::InlineFlowBox::placeBoxesInBlockDirection):
      (WebCore::InlineFlowBox::addBoxShadowVisualOverflow):
      (WebCore::InlineFlowBox::addTextBoxVisualOverflow):
      (WebCore::InlineFlowBox::computeOverflow):
      (WebCore::InlineFlowBox::setLayoutOverflow):
      (WebCore::InlineFlowBox::setVisualOverflow):
      (WebCore::InlineFlowBox::nodeAtPoint):
      (WebCore::InlineFlowBox::paintBoxDecorations):
      (WebCore::InlineFlowBox::paintMask):
      (WebCore::InlineFlowBox::placeEllipsisBox):
      * rendering/InlineFlowBox.h:
      (WebCore::InlineFlowBox::maxYLayoutOverflow):
      (WebCore::InlineFlowBox::maxXLayoutOverflow):
      (WebCore::InlineFlowBox::layoutOverflowRect):
      (WebCore::InlineFlowBox::maxYVisualOverflow):
      (WebCore::InlineFlowBox::maxXVisualOverflow):
      (WebCore::InlineFlowBox::visualOverflowRect):
      * rendering/InlineTextBox.cpp:
      (WebCore::InlineTextBox::placeEllipsisBox):
      (WebCore::InlineTextBox::nodeAtPoint):
      (WebCore::paintTextWithShadows):
      (WebCore::InlineTextBox::paint):
      (WebCore::InlineTextBox::paintSelection):
      (WebCore::InlineTextBox::paintCompositionBackground):
      (WebCore::InlineTextBox::paintDecoration):
      (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
      (WebCore::InlineTextBox::paintTextMatchMarker):
      (WebCore::InlineTextBox::paintDocumentMarkers):
      (WebCore::InlineTextBox::paintCompositionUnderline):
      (WebCore::InlineTextBox::textPos):
      (WebCore::InlineTextBox::offsetForPosition):
      (WebCore::InlineTextBox::positionForOffset):
      * rendering/InlineTextBox.h:
      (WebCore::InlineTextBox::setExpansion):
      * rendering/RenderBR.h:
      (WebCore::RenderBR::width):
      * rendering/RenderBlock.cpp:
      (WebCore::stripTrailingSpace):
      (WebCore::updatePreferredWidth):
      (WebCore::RenderBlock::computeInlinePreferredLogicalWidths):
      (WebCore::RenderBlock::adjustForBorderFit):
      (WebCore::RenderBlock::addFocusRingRects):
      * rendering/RenderBlock.h:
      * rendering/RenderBlockLineLayout.cpp:
      (WebCore::RenderBlock::computeInlineDirectionPositionsForLine):
      (WebCore::RenderBlock::fitBelowFloats):
      (WebCore::textWidth):
      (WebCore::tryHyphenating):
      (WebCore::RenderBlock::findNextLineBreak):
      * rendering/RenderBox.cpp:
      (WebCore::RenderBox::positionLineBox):
      (WebCore::RenderBox::flipForWritingMode):
      * rendering/RenderBox.h:
      * rendering/RenderCombineText.cpp:
      (WebCore::RenderCombineText::width):
      (WebCore::RenderCombineText::adjustTextOrigin):
      (WebCore::RenderCombineText::combineText):
      * rendering/RenderCombineText.h:
      (WebCore::RenderCombineText::combinedTextWidth):
      * rendering/RenderCounter.cpp:
      (WebCore::RenderCounter::computePreferredLogicalWidths):
      * rendering/RenderCounter.h:
      * rendering/RenderEmbeddedObject.cpp:
      (WebCore::RenderEmbeddedObject::getReplacementTextGeometry):
      * rendering/RenderFileUploadControl.cpp:
      (WebCore::RenderFileUploadControl::computePreferredLogicalWidths):
      * rendering/RenderImage.cpp:
      * rendering/RenderInline.cpp:
      (WebCore::RenderInline::linesBoundingBox):
      (WebCore::RenderInline::linesVisualOverflowBoundingBox):
      (WebCore::RenderInline::addFocusRingRects):
      (WebCore::RenderInline::paintOutline):
      * rendering/RenderListBox.cpp:
      (WebCore::RenderListBox::updateFromElement):
      (WebCore::RenderListBox::paintItemForeground):
      * rendering/RenderMenuList.cpp:
      (WebCore::RenderMenuList::updateOptionsWidth):
      * rendering/RenderText.cpp:
      (WebCore::RenderText::localCaretRect):
      (WebCore::RenderText::widthFromCache):
      (WebCore::RenderText::trimmedPrefWidths):
      (WebCore::RenderText::minLogicalWidth):
      (WebCore::RenderText::maxLogicalWidth):
      (WebCore::RenderText::computePreferredLogicalWidths):
      (WebCore::RenderText::firstRunOrigin):
      (WebCore::RenderText::firstRunX):
      (WebCore::RenderText::firstRunY):
      (WebCore::RenderText::width):
      (WebCore::RenderText::linesBoundingBox):
      * rendering/RenderText.h:
      * rendering/RenderTextControl.cpp:
      (WebCore::RenderTextControl::getAvgCharWidth):
      (WebCore::RenderTextControl::paintPlaceholder):
      * rendering/RenderTreeAsText.cpp:
      (WebCore::writeTextRun):
      * rendering/RootInlineBox.cpp:
      (WebCore::RootInlineBox::placeEllipsis):
      (WebCore::RootInlineBox::placeEllipsisBox):
      (WebCore::RootInlineBox::adjustPosition):
      (WebCore::RootInlineBox::beforeAnnotationsAdjustment):
      (WebCore::RootInlineBox::paddedLayoutOverflowRect):
      * rendering/RootInlineBox.h:
      * rendering/VerticalPositionCache.h:
      * rendering/svg/SVGInlineTextBox.cpp:
      (WebCore::SVGInlineTextBox::offsetForPosition):
      (WebCore::SVGInlineTextBox::positionForOffset):
      (WebCore::SVGInlineTextBox::constructTextRun):
      * rendering/svg/SVGInlineTextBox.h:
      * rendering/svg/SVGRenderTreeAsText.cpp:
      (WebCore::writeRenderSVGTextBox):
      * rendering/svg/SVGTextMetrics.cpp:
      (WebCore::SVGTextMetrics::SVGTextMetrics):
      (WebCore::constructTextRun):
      * svg/SVGFont.cpp:
      (WebCore::floatWidthMissingGlyphCallback):
      (WebCore::Font::drawTextUsingSVGFont):
      
      ../WebKit/mac: 
      
      * Misc/WebKitNSStringExtras.mm:
      (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
      (-[NSString _web_widthWithFont:]):
      
      ../WebKit/win: 
      
      * WebKitGraphics.cpp:
      (CenterTruncateStringToWidth):
      (RightTruncateStringToWidth):
      
      ../WebKit2: 
      
      * WebProcess/WebCoreSupport/win/WebPopupMenuWin.cpp:
      (WebKit::WebPopupMenu::setUpPlatformData):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78846 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0acc935b
  6. 04 Feb, 2011 1 commit
    • carol.szabo@nokia.com's avatar
      2011-02-04 Carol Szabo <carol.szabo@nokia.com> · 02635bf9
      carol.szabo@nokia.com authored
              Reviewed by David Hyatt.
      
              Code Changes.
      
              CSS 2.1 failure: content-*
              https://bugs.webkit.org/show_bug.cgi?id=52126
      
              * fast/css/counters/content-021-expected.txt: Added.
              * fast/css/counters/content-021.html: Added.
              This is a copy of the test with the same name from the
              official css test suite, adapted for DumpRenderTree.
      2011-02-04  Carol Szabo  <carol.szabo@nokia.com>
      
              Reviewed by David Hyatt.
      
              Code Changes.
      
              CSS 2.1 failure: content-*
              https://bugs.webkit.org/show_bug.cgi?id=52126
      
              Test: fast/css/counters/content-021.html
      
              * rendering/CounterNode.cpp:
              (showCounterTree):
              Made parameter const because it is supposed to be so.
              * rendering/RenderCounter.cpp:
              (WebCore::previousInPreOrder):
              (WebCore::previousSiblingOrParent):
              (WebCore::parentElement):
              (WebCore::areRenderersElementsSiblings):
              (WebCore::nextInPreOrder):
              Added these local helper functions to help navigate the DOM tree
              enriched with :before and :after pseudo elements.
              (WebCore::planCounter):
              Fixed bug that would create a repeat counter for second and
              subsequent renderers associated with the same DOM element.
              (WebCore::findPlaceForCounter):
              (WebCore::makeCounterNode):
              Changed to use the new tree navigation functions described above
              instead of the Renderer Tree navigation functions.
              (WebCore::RenderCounter::rendererSubtreeAttached):
              (WebCore::RenderCounter::rendererStyleChanged):
              Optimized to not bother about counters until the renderers are
              finally attached.
              (showRendererTree):
              (showNodeTree):
              Debug helper functions used to debug Counter bugs.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77702 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      02635bf9
  7. 08 Jan, 2011 1 commit
  8. 08 Oct, 2010 1 commit
    • commit-queue@webkit.org's avatar
      2010-10-08 James Robinson <jamesr@chromium.org> · 7538c25f
      commit-queue@webkit.org authored
              Reviewed by Adam Barth.
      
              Avoid inlining large and/or virtual functions in widely included header files
              https://bugs.webkit.org/show_bug.cgi?id=47230
      
              Functions with very large bodies should not be included in widely included header files.
              This results in the function's code ending up included in hundreds of object files that
              the linker has to discard, at a cost of linker memory use, link time, and disk space. This
              is a particular problem in the Chromium windows build where MSVC often exhausts its 32-bit
              virtual address space and completely fails to link.
      
              This patch moves function definitions from the .h to the corresponding .cpp when the function
              is large and not a candidate for inlining either because it is virtual or because its size is
              above any reasonable compiler's threshhold for inlining.  The most common case by far in this
              patch is changing a class' implicitly defined destructor to an explicitly declared d'tor in
              the header and an explicitly defined d'tor in the .cpp.  This is important since many of our
              container and utility classes (especially Vector, String, and HashSet) have quite large
              destructors.
      
              This patch removes 22.4MB of object file size in a debug 64 bit compile.
      
              * css/CSSBorderImageValue.cpp:
              (WebCore::CSSBorderImageValue::~CSSBorderImageValue):
              * css/CSSBorderImageValue.h:
              * css/CSSFontFaceSrcValue.cpp:
              (WebCore::CSSFontFaceSrcValue::~CSSFontFaceSrcValue):
              * css/CSSFontFaceSrcValue.h:
              * css/CSSFunctionValue.h:
              * dom/BeforeTextInsertedEvent.cpp:
              (WebCore::BeforeTextInsertedEvent::~BeforeTextInsertedEvent):
              * dom/BeforeTextInsertedEvent.h:
              * dom/BeforeUnloadEvent.cpp:
              (WebCore::BeforeUnloadEvent::~BeforeUnloadEvent):
              * dom/BeforeUnloadEvent.h:
              * dom/ClassNodeList.h:
              * dom/ClipboardEvent.cpp:
              (WebCore::ClipboardEvent::~ClipboardEvent):
              * dom/ClipboardEvent.h:
              * dom/CustomEvent.cpp:
              (WebCore::CustomEvent::~CustomEvent):
              * dom/CustomEvent.h:
              * dom/Element.cpp:
              * dom/Element.h:
              * dom/EventTarget.cpp:
              (WebCore::EventTargetData::EventTargetData):
              * dom/EventTarget.h:
              * dom/InputElement.cpp:
              (WebCore::InputElementData::~InputElementData):
              * dom/InputElement.h:
              * dom/MutationEvent.cpp:
              (WebCore::MutationEvent::~MutationEvent):
              * dom/MutationEvent.h:
              * dom/Node.cpp:
              (WebCore::Node::refEventTarget):
              (WebCore::Node::derefEventTarget):
              * dom/Node.h:
              * dom/OptionElement.cpp:
              (WebCore::OptionElementData::~OptionElementData):
              * dom/OptionElement.h:
              * dom/PopStateEvent.cpp:
              (WebCore::PopStateEvent::~PopStateEvent):
              * dom/PopStateEvent.h:
              * dom/QualifiedName.cpp:
              (WebCore::QualifiedName::~QualifiedName):
              * dom/QualifiedName.h:
              * dom/SelectElement.cpp:
              (WebCore::SelectElementData::~SelectElementData):
              * dom/SelectElement.h:
              * dom/StaticHashSetNodeList.cpp:
              (WebCore::StaticHashSetNodeList::StaticHashSetNodeList):
              (WebCore::StaticHashSetNodeList::~StaticHashSetNodeList):
              * dom/StaticHashSetNodeList.h:
              * dom/StyleElement.cpp:
              (WebCore::StyleElement::~StyleElement):
              * dom/StyleElement.h:
              * dom/TouchEvent.cpp:
              (WebCore::TouchEvent::TouchEvent):
              (WebCore::TouchEvent::~TouchEvent):
              * dom/TouchEvent.h:
              * editing/CompositeEditCommand.cpp:
              (WebCore::CompositeEditCommand::~CompositeEditCommand):
              * editing/CompositeEditCommand.h:
              * editing/TextIterator.cpp:
              (WebCore::BitStack::~BitStack):
              (WebCore::TextIterator::~TextIterator):
              (WebCore::WordAwareIterator::~WordAwareIterator):
              * editing/TextIterator.h:
              * inspector/InspectorValues.cpp:
              (WebCore::InspectorObject::~InspectorObject):
              (WebCore::InspectorObject::InspectorObject):
              (WebCore::InspectorArray::~InspectorArray):
              (WebCore::InspectorArray::InspectorArray):
              * inspector/InspectorValues.h:
              * loader/CachedResource.cpp:
              (WebCore::CachedResource::registerHandle):
              (WebCore::CachedResource::unregisterHandle):
              * loader/CachedResource.h:
              * platform/network/HTTPHeaderMap.cpp:
              (WebCore::HTTPHeaderMap::HTTPHeaderMap):
              (WebCore::HTTPHeaderMap::~HTTPHeaderMap):
              (WebCore::HTTPHeaderMap::get):
              (WebCore::HTTPHeaderMap::add):
              * platform/network/HTTPHeaderMap.h:
              * rendering/RenderApplet.cpp:
              (WebCore::RenderApplet::~RenderApplet):
              * rendering/RenderApplet.h:
              * rendering/RenderButton.cpp:
              (WebCore::RenderButton::~RenderButton):
              * rendering/RenderButton.h:
              * rendering/RenderCounter.cpp:
              (WebCore::RenderCounter::~RenderCounter):
              * rendering/RenderCounter.h:
              * rendering/RenderFieldset.h:
              * rendering/RenderForeignObject.cpp:
              (WebCore::RenderForeignObject::~RenderForeignObject):
              * rendering/RenderForeignObject.h:
              * rendering/RenderFrame.h:
              * rendering/RenderFrameBase.h:
              * rendering/RenderHTMLCanvas.h:
              * rendering/RenderIFrame.h:
              * rendering/RenderInline.h:
              * rendering/RenderListItem.h:
              * rendering/RenderMarquee.cpp:
              (WebCore::RenderMarquee::~RenderMarquee):
              * rendering/RenderMarquee.h:
              * rendering/RenderPath.cpp:
              (WebCore::RenderPath::~RenderPath):
              * rendering/RenderPath.h:
              * rendering/RenderSVGBlock.h:
              * rendering/RenderSVGContainer.cpp:
              (WebCore::RenderSVGContainer::~RenderSVGContainer):
              * rendering/RenderSVGContainer.h:
              * rendering/RenderSVGHiddenContainer.h:
              * rendering/RenderSVGInline.h:
              * rendering/RenderSVGInlineText.cpp:
              (WebCore::RenderSVGInlineText::~RenderSVGInlineText):
              * rendering/RenderSVGInlineText.h:
              * rendering/RenderSVGModelObject.h:
              * rendering/RenderSVGResourceFilterPrimitive.h:
              * rendering/RenderSVGRoot.cpp:
              (WebCore::RenderSVGRoot::~RenderSVGRoot):
              * rendering/RenderSVGRoot.h:
              * rendering/RenderSVGTSpan.h:
              * rendering/RenderSVGText.h:
              * rendering/RenderSVGTextPath.h:
              * rendering/RenderSVGTransformableContainer.h:
              * rendering/RenderSVGViewportContainer.h:
              * rendering/RenderTable.cpp:
              (WebCore::RenderTable::~RenderTable):
              * rendering/RenderTable.h:
              * rendering/RenderTableCell.h:
              * rendering/RenderTableCol.h:
              * rendering/RenderTableRow.h:
              * rendering/RenderTextFragment.cpp:
              (WebCore::RenderTextFragment::~RenderTextFragment):
              * rendering/RenderTextFragment.h:
              * rendering/RenderWordBreak.h:
              * svg/SVGStyledElement.cpp:
              (WebCore::SVGStyledElement::~SVGStyledElement):
              * svg/SVGStyledElement.h:
              * svg/SVGStyledTransformableElement.cpp:
              (WebCore::SVGStyledTransformableElement::~SVGStyledTransformableElement):
              * svg/SVGStyledTransformableElement.h:
              * xml/XPathParser.cpp:
              (WebCore::XPath::Parser::~Parser):
              * xml/XPathParser.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@69437 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7538c25f
  9. 24 Sep, 2010 1 commit
    • hyatt@apple.com's avatar
      https://bugs.webkit.org/show_bug.cgi?id=46482, rename the various prefWidth functions to use · 75dad74e
      hyatt@apple.com authored
      preferredLogicalWidth.
      
      Reviewed by Simon Fraser.
      
      * rendering/AutoTableLayout.cpp:
      (WebCore::AutoTableLayout::recalcColumn):
      (WebCore::AutoTableLayout::computePreferredLogicalWidths):
      (WebCore::AutoTableLayout::calcEffectiveWidth):
      * rendering/AutoTableLayout.h:
      * rendering/FixedTableLayout.cpp:
      (WebCore::FixedTableLayout::calcWidthArray):
      (WebCore::FixedTableLayout::computePreferredLogicalWidths):
      * rendering/FixedTableLayout.h:
      * rendering/RenderBlock.cpp:
      (WebCore::RenderBlock::layoutBlockChildren):
      (WebCore::RenderBlock::layoutPositionedObjects):
      (WebCore::RenderBlock::getClearDelta):
      (WebCore::RenderBlock::computePreferredLogicalWidths):
      (WebCore::RenderBlock::computeInlinePreferredLogicalWidths):
      (WebCore::RenderBlock::computeBlockPreferredLogicalWidths):
      * rendering/RenderBlock.h:
      * rendering/RenderBlockLineLayout.cpp:
      (WebCore::dirtyLineBoxesForRenderer):
      (WebCore::RenderBlock::layoutInlineChildren):
      * rendering/RenderBox.cpp:
      (WebCore::RenderBox::RenderBox):
      (WebCore::RenderBox::minPreferredLogicalWidth):
      (WebCore::RenderBox::maxPreferredLogicalWidth):
      (WebCore::RenderBox::computeLogicalWidth):
      (WebCore::RenderBox::computeLogicalWidthUsing):
      (WebCore::RenderBox::computePositionedLogicalWidth):
      (WebCore::RenderBox::computePositionedLogicalWidthUsing):
      * rendering/RenderBox.h:
      (WebCore::RenderBox::computePreferredLogicalWidths):
      * rendering/RenderCounter.cpp:
      (WebCore::RenderCounter::computePreferredLogicalWidths):
      * rendering/RenderCounter.h:
      * rendering/RenderDataGrid.cpp:
      (WebCore::RenderDataGrid::computePreferredLogicalWidths):
      * rendering/RenderDataGrid.h:
      * rendering/RenderFieldset.cpp:
      (WebCore::RenderFieldset::computePreferredLogicalWidths):
      * rendering/RenderFieldset.h:
      * rendering/RenderFileUploadControl.cpp:
      (WebCore::RenderFileUploadControl::computePreferredLogicalWidths):
      * rendering/RenderFileUploadControl.h:
      * rendering/RenderFlexibleBox.cpp:
      (WebCore::RenderFlexibleBox::calcHorizontalPrefWidths):
      (WebCore::RenderFlexibleBox::calcVerticalPrefWidths):
      (WebCore::RenderFlexibleBox::computePreferredLogicalWidths):
      (WebCore::RenderFlexibleBox::allowedChildFlex):
      * rendering/RenderFlexibleBox.h:
      * rendering/RenderFrameBase.cpp:
      (WebCore::RenderFrameBase::layoutWithFlattening):
      * rendering/RenderHTMLCanvas.cpp:
      (WebCore::RenderHTMLCanvas::canvasSizeChanged):
      * rendering/RenderImage.cpp:
      (WebCore::RenderImage::imageChanged):
      * rendering/RenderListBox.cpp:
      (WebCore::RenderListBox::computePreferredLogicalWidths):
      * rendering/RenderListBox.h:
      * rendering/RenderListItem.cpp:
      (WebCore::RenderListItem::updateMarkerLocation):
      (WebCore::RenderListItem::computePreferredLogicalWidths):
      * rendering/RenderListItem.h:
      * rendering/RenderListMarker.cpp:
      (WebCore::RenderListMarker::layout):
      (WebCore::RenderListMarker::computePreferredLogicalWidths):
      (WebCore::RenderListMarker::updateMargins):
      * rendering/RenderListMarker.h:
      * rendering/RenderMenuList.cpp:
      (WebCore::RenderMenuList::computePreferredLogicalWidths):
      * rendering/RenderMenuList.h:
      * rendering/RenderObject.cpp:
      (WebCore::RenderObject::RenderObject):
      (WebCore::RenderObject::setPreferredLogicalWidthsDirty):
      (WebCore::RenderObject::invalidateContainerPreferredLogicalWidths):
      * rendering/RenderObject.h:
      (WebCore::RenderObject::preferredLogicalWidthsDirty):
      (WebCore::RenderObject::setNeedsLayoutAndPrefWidthsRecalc):
      (WebCore::RenderObject::minPreferredLogicalWidth):
      (WebCore::RenderObject::maxPreferredLogicalWidth):
      * rendering/RenderReplaced.cpp:
      (WebCore::RenderReplaced::computePreferredLogicalWidths):
      * rendering/RenderReplaced.h:
      * rendering/RenderReplica.cpp:
      (WebCore::RenderReplica::computePreferredLogicalWidths):
      * rendering/RenderReplica.h:
      * rendering/RenderSVGRoot.cpp:
      (WebCore::RenderSVGRoot::computePreferredLogicalWidths):
      * rendering/RenderSVGRoot.h:
      * rendering/RenderScrollbarPart.cpp:
      (WebCore::RenderScrollbarPart::computePreferredLogicalWidths):
      * rendering/RenderScrollbarPart.h:
      * rendering/RenderSlider.cpp:
      (WebCore::RenderSlider::computePreferredLogicalWidths):
      * rendering/RenderSlider.h:
      * rendering/RenderTable.cpp:
      (WebCore::RenderTable::computeLogicalWidth):
      (WebCore::RenderTable::computePreferredLogicalWidths):
      * rendering/RenderTable.h:
      * rendering/RenderTableCell.cpp:
      (WebCore::RenderTableCell::computePreferredLogicalWidths):
      * rendering/RenderTableCell.h:
      * rendering/RenderTableCol.cpp:
      (WebCore::RenderTableCol::computePreferredLogicalWidths):
      * rendering/RenderTableCol.h:
      * rendering/RenderText.cpp:
      (WebCore::RenderText::trimmedPrefWidths):
      (WebCore::RenderText::minPreferredLogicalWidth):
      (WebCore::RenderText::maxPreferredLogicalWidth):
      (WebCore::RenderText::computePreferredLogicalWidths):
      (WebCore::RenderText::width):
      * rendering/RenderText.h:
      * rendering/RenderTextControl.cpp:
      (WebCore::RenderTextControl::computePreferredLogicalWidths):
      * rendering/RenderTextControl.h:
      * rendering/RenderTextControlSingleLine.cpp:
      (WebCore::RenderTextControlSingleLine::preferredContentWidth):
      (WebCore::RenderTextControlSingleLine::preferredDecorationWidthRight):
      * rendering/RenderVideo.cpp:
      (WebCore::RenderVideo::updateIntrinsicSize):
      * rendering/RenderView.cpp:
      (WebCore::RenderView::RenderView):
      (WebCore::RenderView::computePreferredLogicalWidths):
      (WebCore::RenderView::layout):
      * rendering/RenderView.h:
      * rendering/TableLayout.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68276 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      75dad74e
  10. 19 Jan, 2010 1 commit
    • eric@webkit.org's avatar
      2010-01-19 Carol Szabo <carol.szabo@nokia.com> · a3241cb8
      eric@webkit.org authored
              Reviewed by Darin Adler.
      
              Another crazy counters bug
              https://bugs.webkit.org/show_bug.cgi?id=11031
              Added tests for dynamic DOM changes affecting counters.
      
              * fast/css/counters/counter-increment-002.html: Added.
              * fast/css/counters/counter-reset-000.html: Added.
              * fast/css/counters/counter-reset-002.html: Added.
              * fast/css/counters/counter-increment-002-expected.txt: Added.
              * fast/css/counters/counter-reset-000-expected.txt: Added.
              * fast/css/counters/counter-reset-002-expected.txt: Added.
      2010-01-19  Carol Szabo  <carol.szabo@nokia.com>
      
              Reviewed by Darin Adler.
      
              Another crazy counters bug
              https://bugs.webkit.org/show_bug.cgi?id=11031
      
              This patch actually provides for counter updating when the style
              of a renderer changes.
      
              Tests: fast/css/counters/counter-increment-002.html
                     fast/css/counters/counter-reset-000.html
                     fast/css/counters/counter-reset-002.html
      
              * rendering/RenderCounter.cpp:
              (WebCore::RenderCounter::rendererStyleChanged):
              This function is added to update the counter hierarchy in
              response to changes to the style of a renderer.
              * rendering/RenderCounter.h:
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::styleDidChange):
              For changes that may include the counter directives added a
              call to RenderCounter::rendererStyleChanged.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@53506 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a3241cb8
  11. 15 Jan, 2010 1 commit
    • eric@webkit.org's avatar
      2010-01-15 Carol Szabo <carol.szabo@nokia.com> · ae29b2f4
      eric@webkit.org authored
              Reviewed by Darin Adler.
      
              CSS2.1 Counters not updated when new elements are inserted in the DOM.
              https://bugs.webkit.org/show_bug.cgi?id=32884
      
              * fast/css/counters/adding-nodes-expected.txt: Added.
              * fast/css/counters/adding-nodes.html: Added.
      2010-01-15  Carol Szabo  <carol.szabo@nokia.com>
      
              Reviewed by Darin Adler.
      
              CSS2.1 Counters not updated when new elements are inserted in the DOM.
              https://bugs.webkit.org/show_bug.cgi?id=32884
      
              Test: fast/css/counters/adding-nodes.html
      
              * rendering/CounterNode.cpp:
              (WebCore::CounterNode::insertAfter):
              Modified to handle the addition of nodes with children. Needed when formerly
              root nodes become descendants of a new node.
              * rendering/RenderCounter.cpp:
              (WebCore::makeCounterNode):
              Changed to handle the case when root counter nodes lose their root
              status as a result of a new root counter node creation.
              (WebCore::destroyCounterNodeWithoutMapRemoval):
              Refactored more code into destroyCounterNodeChildren and renamed the
              function according to its new action.
              (WebCore::RenderCounter::destroyCounterNodes):
              Simplified to share more code with the new destroyCounterNode.
              (WebCore::RenderCounter::destroyCounterNode):
              Added to allow for selective counterNode destruction.
              (WebCore::RenderCounter::rendererSubtreeAttached):
              Added to refresh counter values in response to DOM changes.
              For renderers with no attached counters the execution time of this
              function cannot be discerned in comparison with the time needed to
              add a node or change the style of a node.
              (WebCore::updateCounters):
              Helper function for rendererSubtreeAttached. Updates the counters
              attached to a Renderer in response to the renderer or its ancestors
              being attached to the renderer tree.
              * rendering/RenderCounter.h:
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::addChild):
              Changed to update counter values if needed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@53355 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ae29b2f4
  12. 13 Nov, 2009 1 commit
    • eric@webkit.org's avatar
      2009-11-13 Carol Szabo <carol.szabo@nokia.com> · 02482716
      eric@webkit.org authored
              Reviewed by Darin Adler.
      
              The CounterNode class is missing some basic tree navigation methods common in other WebKit trees such as the rendering tree
              https://bugs.webkit.org/show_bug.cgi?id=31213
              Added tree navigation methods that permit full implementation of CSS2.1
              counter feature without using recursion proportional to the counter
              tree depth.
              No new tests because I did not find any bug that is fixed by this
              commit yet, this just reduces the size of the patch for 11031 and
              helps respond to some concerns regarding that patch.
      
              * rendering/CounterNode.cpp:
              (WebCore::CounterNode::CounterNode):
      
              (WebCore::CounterNode::nextInPreOrderAfterChildren):
              (WebCore::CounterNode::nextInPreOrder):
              Added to support non-recursive tree traversal necessary for
              efficient full implementation of CSS2.1 counters.
      
              (WebCore::CounterNode::lastDescendant):
              (WebCore::CounterNode::previousInPreOrder):
              Moved this methods such that they occupy a place similar to that of
              identically named methods on the render tree. This allows for their
              broader use needed in full implementation of CSS2.1 counters.
      
              (WebCore::CounterNode::resetRenderer):
              (WebCore::CounterNode::resetRenderers):
              (WebCore::CounterNode::recount):
              (WebCore::CounterNode::insertAfter):
              (WebCore::CounterNode::removeChild):
              Changed such that insertion/removal of a counter, triggers not only
              recalculation of PrefixWidths, but also reassesment of values in
              counter nodes. This is the basis full implementation of CSS2.1
              counters. It does not change current behavior by much because of
              changes needed to the recalculation algorithm, but those are comming
              in the patch for 11031.
              (WebCore::showTreeAndMark):
              * rendering/CounterNode.h:
              * rendering/RenderCounter.cpp:
              (WebCore::counter):
              Only changed argument type to prepare for implementation of Darin
              Adler's recommendation for the patch to 11031.
      
              (WebCore::RenderCounter::invalidate):
              (WebCore::destroyCounterNodeChildren):
              (WebCore::RenderCounter::destroyCounterNodes):
              * rendering/RenderCounter.h:
              * rendering/RenderObjectChildList.cpp:
              (WebCore::invalidateCountersInContainer):
              (WebCore::RenderObjectChildList::invalidateCounters):
              * rendering/RenderObjectChildList.h:
              Added the ability to restrict invalidation to counters with a given
              identifier.
              Also invalidated counters that are on the child container itself
              which were missed by the previous algorithm, but were a valid case.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50960 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      02482716
  13. 05 Aug, 2009 1 commit
    • darin@apple.com's avatar
      2009-08-05 Darin Adler <darin@apple.com> · b6cb2561
      darin@apple.com authored
              Reviewed by David Levin.
      
              Use checked casts for render tree
              https://bugs.webkit.org/show_bug.cgi?id=23522
      
              Last patch. Makes all the casts of RenderObject use checked
              casts instead of using static_cast directly.
      
              * accessibility/AccessibilityListBox.cpp:
              (WebCore::AccessibilityListBox::visibleChildren):
              (WebCore::AccessibilityListBox::doAccessibilityHitTest):
              * accessibility/AccessibilityListBoxOption.cpp:
              (WebCore::AccessibilityListBoxOption::elementRect):
              * accessibility/AccessibilityRenderObject.cpp:
              (WebCore::AccessibilityRenderObject::textUnderElement):
              (WebCore::AccessibilityRenderObject::stringValue):
              (WebCore::AccessibilityRenderObject::titleUIElement):
              (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
              * accessibility/AccessibilitySlider.cpp:
              (WebCore::AccessibilitySliderThumb::elementRect):
              * dom/InputElement.cpp:
              (WebCore::InputElement::updatePlaceholderVisibility):
              * dom/SelectElement.cpp:
              (WebCore::SelectElement::scrollToSelection):
              (WebCore::SelectElement::recalcStyle):
              (WebCore::SelectElement::setRecalcListItems):
              (WebCore::SelectElement::menuListDefaultEventHandler):
              (WebCore::SelectElement::listBoxDefaultEventHandler):
              * editing/BreakBlockquoteCommand.cpp:
              (WebCore::BreakBlockquoteCommand::doApply):
              * html/HTMLAppletElement.cpp:
              (WebCore::HTMLAppletElement::renderWidgetForJSBindings):
              * html/HTMLCanvasElement.cpp:
              (WebCore::HTMLCanvasElement::reset):
              * html/HTMLEmbedElement.cpp:
              (WebCore::HTMLEmbedElement::updateWidget):
              * html/HTMLFrameElementBase.cpp:
              (WebCore::HTMLFrameElementBase::attach):
              * html/HTMLFrameSetElement.cpp:
              (WebCore::HTMLFrameSetElement::defaultEventHandler):
              * html/HTMLIFrameElement.cpp:
              (WebCore::HTMLIFrameElement::attach):
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::defaultEventHandler):
              (WebCore::HTMLInputElement::addSearchResult):
              (WebCore::HTMLInputElement::onSearch):
              * html/HTMLLIElement.cpp:
              (WebCore::HTMLLIElement::parseMappedAttribute):
              (WebCore::HTMLLIElement::attach):
              * html/HTMLMediaElement.cpp:
              (WebCore::HTMLMediaElement::setReadyState):
              (WebCore::HTMLMediaElement::mediaPlayerDurationChanged):
              (WebCore::HTMLMediaElement::mediaPlayerSizeChanged):
              (WebCore::HTMLMediaElement::mediaPlayerRenderingCanBeAccelerated):
              (WebCore::HTMLMediaElement::mediaPlayerGraphicsLayer):
              (WebCore::HTMLMediaElement::defaultEventHandler):
              (WebCore::HTMLMediaElement::finishParsingChildren):
              * html/HTMLOListElement.cpp:
              (WebCore::HTMLOListElement::parseMappedAttribute):
              * html/HTMLObjectElement.cpp:
              (WebCore::HTMLObjectElement::updateWidget):
              * html/HTMLTextAreaElement.cpp:
              (WebCore::HTMLTextAreaElement::defaultEventHandler):
              * page/DragController.cpp:
              (WebCore::DragController::concludeEditDrag):
              * page/EventHandler.cpp:
              (WebCore::EventHandler::selectCursor):
              (WebCore::EventHandler::capsLockStateMayHaveChanged):
              * page/Frame.cpp:
              (WebCore::Frame::ownerRenderer):
              * page/FrameView.cpp:
              (WebCore::FrameView::detachCustomScrollbars):
              * page/wince/FrameWince.cpp:
              (WebCore::computePageRectsForFrame):
              * rendering/InlineFlowBox.cpp:
              (WebCore::InlineFlowBox::placeBoxesHorizontally):
              * rendering/MediaControlElements.cpp:
              (WebCore::MediaControlTimelineElement::defaultEventHandler):
              * rendering/RenderBlockLineLayout.cpp:
              (WebCore::RenderBlock::findNextLineBreak):
              * rendering/RenderCounter.cpp:
              (WebCore::planCounter):
              * rendering/RenderFrameSet.cpp:
              (WebCore::RenderFrameSet::computeEdgeInfo):
              (WebCore::RenderFrameSet::setIsResizing):
              * rendering/RenderLayerBacking.cpp:
              (WebCore::RenderLayerBacking::contentsBox):
              * rendering/RenderLayerCompositor.cpp:
              (WebCore::RenderLayerCompositor::updateBacking):
              (WebCore::RenderLayerCompositor::requiresCompositingForVideo):
              * rendering/RenderListItem.cpp:
              (WebCore::previousListItem):
              (WebCore::RenderListItem::explicitValueChanged):
              * rendering/RenderObject.cpp:
              (WebCore::updateListMarkerNumbers):
              * rendering/RenderObjectChildList.cpp:
              (WebCore::updateListMarkerNumbers):
              (WebCore::invalidateCountersInContainer):
              * rendering/RenderScrollbarTheme.cpp:
              (WebCore::RenderScrollbarTheme::minimumThumbLength):
              (WebCore::RenderScrollbarTheme::backButtonRect):
              (WebCore::RenderScrollbarTheme::forwardButtonRect):
              (WebCore::RenderScrollbarTheme::trackRect):
              (WebCore::RenderScrollbarTheme::constrainTrackRectToTrackPieces):
              (WebCore::RenderScrollbarTheme::paintScrollbarBackground):
              (WebCore::RenderScrollbarTheme::paintTrackBackground):
              (WebCore::RenderScrollbarTheme::paintTrackPiece):
              (WebCore::RenderScrollbarTheme::paintButton):
              (WebCore::RenderScrollbarTheme::paintThumb):
              * rendering/RenderSlider.cpp:
              (WebCore::SliderThumbElement::defaultEventHandler):
              * rendering/RenderThemeChromiumMac.mm:
              (WebCore::RenderThemeChromiumMac::paintSliderThumb):
              (WebCore::RenderThemeChromiumMac::paintMediaSliderTrack):
              * rendering/RenderThemeChromiumWin.cpp:
              (WebCore::RenderThemeChromiumWin::determineSliderThumbState):
              * rendering/RenderThemeMac.mm:
              (WebCore::RenderThemeMac::paintSliderThumb):
              * rendering/RenderThemeSafari.cpp:
              (WebCore::RenderThemeSafari::paintSliderThumb):
              * rendering/RenderThemeWin.cpp:
              (WebCore::RenderThemeWin::determineSliderThumbState):
              * rendering/SVGCharacterLayoutInfo.cpp:
              (WebCore::SVGCharacterLayoutInfo::addLayoutInformation):
              * rendering/SVGRootInlineBox.cpp:
              (WebCore::findSVGRootObject):
              * rendering/TextControlInnerElements.cpp:
              (WebCore::RenderTextControlInnerBlock::nodeAtPoint):
              (WebCore::SearchFieldResultsButtonElement::defaultEventHandler):
              * svg/SVGImageElement.cpp:
              (WebCore::SVGImageElement::attach):
              * svg/SVGMarkerElement.cpp:
              (WebCore::SVGMarkerElement::canvasResource):
              * svg/SVGTextContentElement.cpp:
              (WebCore::rootInlineBoxForTextContentElement):
              * wml/WMLInputElement.cpp:
              (WebCore::WMLInputElement::defaultEventHandler):
              Use checked casts.
      
              * rendering/RenderApplet.h:
              * rendering/RenderCounter.h:
              * rendering/RenderFieldset.h:
              * rendering/RenderFileUploadControl.h:
              * rendering/RenderFrame.h:
              * rendering/RenderFrameSet.h:
              * rendering/RenderHTMLCanvas.h:
              * rendering/RenderListBox.h:
              * rendering/RenderListItem.h:
              * rendering/RenderListMarker.h:
              * rendering/RenderMedia.h:
              * rendering/RenderMenuList.h:
              * rendering/RenderPart.h:
              * rendering/RenderPartObject.h:
              * rendering/RenderPath.h:
              * rendering/RenderSVGContainer.h:
              * rendering/RenderSVGRoot.h:
              * rendering/RenderSVGTextPath.h:
              * rendering/RenderSVGViewportContainer.h:
              * rendering/RenderScrollbar.h:
              * rendering/RenderSlider.h:
              * rendering/RenderTextControlMultiLine.h:
              * rendering/RenderTextControlSingleLine.h:
              * rendering/RenderVideo.h:
              Added a checked cast. Also made most members protected or private.
      
              * rendering/RenderBlock.h:
              * rendering/RenderInline.h:
              * rendering/RenderReplaced.h:
              * rendering/RenderSVGBlock.h:
              * rendering/RenderSVGImage.h:
              * rendering/RenderSVGInlineText.h:
              * rendering/RenderSVGText.h:
              * rendering/RenderTextControl.h:
              Made most members protected or private.
      
              * rendering/RenderInline.cpp:
              * rendering/RenderSVGContainer.cpp:
              * rendering/RenderSVGHiddenContainer.cpp:
              * rendering/RenderSVGImage.cpp:
              * rendering/RenderSVGRoot.cpp:
              Removed unneeded destructor.
      
              * rendering/RenderSVGHiddenContainer.h:
              Removed unneeded virtual function overrides that did the same as
              the default and base class.
      
              * rendering/RenderSVGViewportContainer.cpp:
              (WebCore::RenderSVGViewportContainer::paint): Updated to use m_viewport
              directly instead of using a function call.
              (WebCore::RenderSVGViewportContainer::applyViewportClip): Ditto.
              (WebCore::RenderSVGViewportContainer::viewportTransform): Ditto.
              (WebCore::RenderSVGViewportContainer::localToParentTransform): Ditto.
              (WebCore::RenderSVGViewportContainer::pointIsInsideViewportClip): Ditto.
      
              * rendering/RenderScrollbar.cpp:
              (WebCore::pseudoForScrollbarPart): Changed switch statement to use cases for
              all values instead of using a default case.
      
              * rendering/RenderTreeAsText.cpp:
              (WebCore::operator<<): Removed dependency on casting to types that don't
              have any public members we need to get at. Instead, use function names to
              identify the type rather than doing so much overloading. Changed to use
              checked casts.
              (WebCore::write): Ditto.
      
              * rendering/SVGRenderSupport.cpp:
              (WebCore::renderSubtreeToImage): Changed to use a checked cast and also
              added a comment about the fact that the code does not do sufficient type
              checking before doing the cast.
      
              * rendering/SVGRenderTreeAsText.cpp:
              (WebCore::writeRenderSVGTextBox): Renamed this from operator<<.
              (WebCore::writeSVGInlineTextBoxes): Renamed this from writeSVGInlineText.
              (WebCore::writeSVGText): Renamed this from write.
              (WebCore::writeSVGInlineText): Ditto.
              (WebCore::writeSVGImage): Ditto.
              * rendering/SVGRenderTreeAsText.h: Updated for name changes. Removed
              unneeded default arguments.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@46815 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b6cb2561
  14. 11 Feb, 2009 1 commit
    • hyatt@apple.com's avatar
      2009-02-11 David Hyatt <hyatt@apple.com> · c92b7358
      hyatt@apple.com authored
              Eliminate createInlineBox and dirtyLineBoxes from RenderObject.  These functions have been devirtualized.
              The single call site now calls a helper function that just bit checks and casts before calling the correct
              type.  RenderBlock's dirtyLineBoxes function was dead code (caused by the RenderFlow deletion), so it has
              just been removed.
      
              Reviewed by Eric Seidel
      
              * rendering/RenderBR.cpp:
              * rendering/RenderBR.h:
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::createRootInlineBox):
              * rendering/RenderBlock.h:
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::createInlineBox):
              * rendering/RenderBox.h:
              * rendering/RenderCounter.cpp:
              * rendering/RenderCounter.h:
              * rendering/RenderInline.cpp:
              (WebCore::RenderInline::createInlineFlowBox):
              * rendering/RenderInline.h:
              * rendering/RenderObject.cpp:
              * rendering/RenderObject.h:
              * rendering/RenderSVGInlineText.cpp:
              (WebCore::RenderSVGInlineText::createTextBox):
              * rendering/RenderSVGInlineText.h:
              (WebCore::RenderSVGInlineText::isSVGText):
              * rendering/RenderText.cpp:
              (WebCore::RenderText::createTextBox):
              (WebCore::RenderText::createInlineTextBox):
              * rendering/RenderText.h:
              * rendering/bidi.cpp:
              (WebCore::createInlineBoxForRenderer):
              (WebCore::RenderBlock::createLineBoxes):
              (WebCore::RenderBlock::constructLine):
              (WebCore::RenderBlock::layoutInlineChildren):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40880 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c92b7358
  15. 18 Sep, 2008 1 commit
    • weinig@apple.com's avatar
      2008-09-18 Sam Weinig <sam@webkit.org> · caf2df4b
      weinig@apple.com authored
              Rubber-stamped in exile by David Hyatt.
      
              Split Animation, AnimationList, BindingURI, ContentData, CounterContent,
              KeyframeList, ShadowData, StyleFlexibleBoxData and TimingFunction out of
              RenderStyle.h/cpp
      
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * css/CSSStyleSelector.cpp:
              * css/CSSStyleSelector.h:
              * page/animation/CompositeAnimation.cpp:
              * page/animation/KeyframeAnimation.cpp:
              * page/animation/KeyframeAnimation.h:
              * rendering/RenderCounter.h:
              * rendering/style/Animation.cpp: Copied from rendering/style/RenderStyle.cpp.
              (WebCore::Animation::~Animation):
              (WebCore::Animation::animationsMatch):
              (WebCore::Animation::keyframeList):
              (WebCore::Animation::setAnimationKeyframe):
              * rendering/style/Animation.h: Copied from rendering/style/RenderStyle.h.
              * rendering/style/AnimationList.cpp: Copied from rendering/style/RenderStyle.cpp.
              * rendering/style/AnimationList.h: Copied from rendering/style/RenderStyle.h.
              * rendering/style/BindingURI.cpp: Copied from rendering/style/RenderStyle.cpp.
              * rendering/style/BindingURI.h: Copied from rendering/style/RenderStyle.h.
              (WebCore::BindingURI::operator!=):
              * rendering/style/ContentData.cpp: Copied from rendering/style/RenderStyle.cpp.
              * rendering/style/ContentData.h: Copied from rendering/style/RenderStyle.h.
              (WebCore::ContentData::ContentData):
              (WebCore::ContentData::~ContentData):
              * rendering/style/CounterContent.h: Copied from rendering/style/RenderStyle.h.
              (WebCore::CounterContent::CounterContent):
              * rendering/style/CounterDirectives.cpp: Copied from rendering/style/RenderStyle.cpp.
              * rendering/style/CounterDirectives.h: Copied from rendering/style/RenderStyle.h.
              (WebCore::CounterDirectives::CounterDirectives):
              * rendering/style/KeyframeList.cpp: Copied from rendering/style/RenderStyle.cpp.
              (WebCore::KeyframeList::insert):
              * rendering/style/KeyframeList.h: Copied from rendering/style/RenderStyle.h.
              (WebCore::KeyframeValue::KeyframeValue):
              (WebCore::KeyframeList::create):
              (WebCore::KeyframeList::KeyframeList):
              * rendering/style/RenderStyle.cpp:
              * rendering/style/RenderStyle.h:
              * rendering/style/ShadowData.cpp: Copied from rendering/style/RenderStyle.cpp.
              * rendering/style/ShadowData.h: Copied from rendering/style/RenderStyle.h.
              (WebCore::ShadowData::ShadowData):
              (WebCore::ShadowData::~ShadowData):
              (WebCore::ShadowData::operator!=):
              * rendering/style/StyleFlexibleBoxData.cpp: Copied from rendering/style/RenderStyle.cpp.
              * rendering/style/StyleFlexibleBoxData.h: Copied from rendering/style/RenderStyle.h.
              (WebCore::StyleFlexibleBoxData::operator!=):
              * rendering/style/TimingFunction.h: Copied from rendering/style/RenderStyle.h.
              (WebCore::TimingFunction::TimingFunction):
              (WebCore::TimingFunction::operator==):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@36619 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      caf2df4b
  16. 11 Aug, 2008 1 commit
    • mitz@apple.com's avatar
      WebCore: · 3f0060f8
      mitz@apple.com authored
              Reviewed by Darin Adler.
      
              - fix <rdar://problem/6131096> Reproducible crash in CounterNode::isReset under guard malloc
      
              Test: fast/css/counters/invalidate-cached-counter-node.html
      
              * rendering/RenderContainer.cpp:
              (WebCore::RenderContainer::invalidateCounters): Added. Invalidates all
              RenderCounters in :before and :after content.
              * rendering/RenderContainer.h:
              * rendering/RenderCounter.cpp:
              (WebCore::RenderCounter::isCounter): Renamed isRenderCounter() to this
              to match the RenderObject method.
              (WebCore::RenderCounter::invalidate): Added. Resets the cached
              CounterNode and invalidates the object's layout and preferred widths.
              (WebCore::destroyCounterNodeChildren): Added a call to
              invalidateCounters().
              * rendering/RenderCounter.h:
              * rendering/RenderObject.h:
              (WebCore::RenderObject::invalidateCounters):
      
      LayoutTests:
      
              Reviewed by Darin Adler.
      
              - test for <rdar://problem/6131096> Reproducible crash in CounterNode::isReset under guard malloc
      
              * fast/css/counters/invalidate-cached-counter-node.html: Added.
              * platform/mac/fast/css/counters/invalidate-cached-counter-node-expected.checksum: Added.
              * platform/mac/fast/css/counters/invalidate-cached-counter-node-expected.png: Added.
              * platform/mac/fast/css/counters/invalidate-cached-counter-node-expected.txt: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@35667 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3f0060f8
  17. 25 Sep, 2007 1 commit
    • ddkilzer's avatar
      JavaScriptCore: · c8eccecd
      ddkilzer authored
              Reviewed by Adam.
      
              - Fix http://bugs.webkit.org/show_bug.cgi?id=14885
                LGPL'ed files contain incorrect FSF address
      
              * COPYING.LIB:
              * bindings/testbindings.cpp:
              * kjs/AllInOneFile.cpp:
              * kjs/DateMath.cpp:
              * kjs/PropertyNameArray.cpp:
              * kjs/PropertyNameArray.h:
              * kjs/config.h:
      
      WebCore:
      
              Reviewed by Adam.
      
              - Fix http://bugs.webkit.org/show_bug.cgi?id=14885
                LGPL'ed files contain incorrect FSF address
      
              * LICENSE-LGPL-2:
              * LICENSE-LGPL-2.1:
              * WebCorePrefix.h:
              * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
              * bindings/js/JSDOMWindowCustom.cpp:
              * bindings/js/JSDocumentCustom.cpp:
              * bindings/js/JSHTMLCollectionCustom.cpp:
              * bindings/js/JSHTMLElementWrapperFactory.cpp:
              * bindings/js/JSHTMLElementWrapperFactory.h:
              * bindings/js/JSHTMLInputElementBase.cpp:
              * bindings/js/JSHTMLInputElementBase.h:
              * bindings/js/JSHTMLOptionElementConstructor.cpp:
              * bindings/js/JSHTMLOptionElementConstructor.h:
              * bindings/js/JSHTMLOptionsCollectionCustom.cpp:
              * bindings/js/JSHTMLSelectElementCustom.cpp:
              * bindings/js/JSNodeFilterCondition.cpp:
              * bindings/js/JSNodeFilterCondition.h:
              * bindings/js/JSNodeIteratorCustom.cpp:
              * bindings/js/JSSVGElementWrapperFactory.cpp:
              * bindings/js/JSSVGElementWrapperFactory.h:
              * bindings/js/JSSVGMatrixCustom.cpp:
              * bindings/js/JSSVGPathSegCustom.cpp:
              * bindings/js/JSSVGPathSegListCustom.cpp:
              * bindings/js/JSSVGPointListCustom.cpp:
              * bindings/js/JSTreeWalkerCustom.cpp:
              * bindings/js/JSXMLHttpRequest.cpp:
              * bindings/js/JSXMLHttpRequest.h:
              * bindings/js/kjs_binding.cpp:
              * bindings/js/kjs_binding.h:
              * bindings/js/kjs_css.cpp:
              * bindings/js/kjs_css.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_html.h:
              * bindings/js/kjs_navigator.cpp:
              * bindings/js/kjs_navigator.h:
              * bindings/js/kjs_proxy.cpp:
              * bindings/js/kjs_proxy.h:
              * bindings/js/kjs_window.cpp:
              * bindings/js/kjs_window.h:
              * bindings/objc/DOMImplementationFront.cpp:
              * bindings/objc/DOMImplementationFront.h:
              * bindings/scripts/CodeGenerator.pm:
              * bindings/scripts/CodeGeneratorJS.pm:
              * bindings/scripts/CodeGeneratorObjC.pm:
              * bindings/scripts/IDLParser.pm:
              * bindings/scripts/IDLStructure.pm:
              * bindings/scripts/generate-bindings.pl:
              * config.h:
              * css/CSSBorderImageValue.cpp:
              * css/CSSBorderImageValue.h:
              * css/CSSCharsetRule.cpp:
              * css/CSSCharsetRule.h:
              * css/CSSCharsetRule.idl:
              * css/CSSComputedStyleDeclaration.cpp:
              * css/CSSComputedStyleDeclaration.h:
              * css/CSSCursorImageValue.cpp:
              * css/CSSCursorImageValue.h:
              * css/CSSFontFaceRule.cpp:
              * css/CSSFontFaceRule.h:
              * css/CSSFontFaceRule.idl:
              * css/CSSGrammar.y:
              * css/CSSHelper.cpp:
              * css/CSSHelper.h:
              * css/CSSImageValue.cpp:
              * css/CSSImageValue.h:
              * css/CSSImportRule.cpp:
              * css/CSSImportRule.h:
              * css/CSSImportRule.idl:
              * css/CSSInheritedValue.cpp:
              * css/CSSInheritedValue.h:
              * css/CSSInitialValue.cpp:
              * css/CSSInitialValue.h:
              * css/CSSMediaRule.cpp:
              * css/CSSMediaRule.h:
              * css/CSSMediaRule.idl:
              * css/CSSMutableStyleDeclaration.cpp:
              * css/CSSMutableStyleDeclaration.h:
              * css/CSSNamespace.h:
              * css/CSSPageRule.cpp:
              * css/CSSPageRule.h:
              * css/CSSPageRule.idl:
              * css/CSSParser.cpp:
              * css/CSSParser.h:
              * css/CSSPrimitiveValue.cpp:
              * css/CSSPrimitiveValue.h:
              * css/CSSPrimitiveValue.idl:
              * css/CSSProperty.cpp:
              * css/CSSProperty.h:
              * css/CSSQuirkPrimitiveValue.h:
              * css/CSSRule.cpp:
              * css/CSSRule.h:
              * css/CSSRule.idl:
              * css/CSSRuleList.cpp:
              * css/CSSRuleList.h:
              * css/CSSSelector.cpp:
              * css/CSSSelector.h:
              * css/CSSStyleDeclaration.cpp:
              * css/CSSStyleDeclaration.h:
              * css/CSSStyleDeclaration.idl:
              * css/CSSStyleRule.cpp:
              * css/CSSStyleRule.h:
              * css/CSSStyleRule.idl:
              * css/CSSStyleSelector.cpp:
              * css/CSSStyleSelector.h:
              * css/CSSStyleSheet.cpp:
              * css/CSSStyleSheet.h:
              * css/CSSStyleSheet.idl:
              * css/CSSUnknownRule.h:
              * css/CSSUnknownRule.idl:
              * css/CSSValue.h:
              * css/CSSValue.idl:
              * css/CSSValueList.cpp:
              * css/CSSValueList.h:
              * css/Counter.h:
              * css/Counter.idl:
              * css/DashboardRegion.h:
              * css/FontFamilyValue.cpp:
              * css/FontFamilyValue.h:
              * css/FontValue.cpp:
              * css/FontValue.h:
              * css/MediaFeatureNames.cpp:
              * css/MediaFeatureNames.h:
              * css/MediaList.cpp:
              * css/MediaList.h:
              * css/Pair.h:
              * css/RGBColor.idl:
              * css/Rect.h:
              * css/Rect.idl:
              * css/ShadowValue.cpp:
              * css/ShadowValue.h:
              * css/StyleBase.cpp:
              * css/StyleBase.h:
              * css/StyleList.cpp:
              * css/StyleList.h:
              * css/StyleSheet.cpp:
              * css/StyleSheet.h:
              * css/StyleSheet.idl:
              * css/StyleSheetList.cpp:
              * css/StyleSheetList.h:
              * css/StyleSheetList.idl:
              * css/html4.css:
              * css/make-css-file-arrays.pl:
              * css/makegrammar.pl:
              * css/makeprop.pl:
              * css/maketokenizer:
              * css/makevalues.pl:
              * css/quirks.css:
              * dom/AtomicStringList.h:
              * dom/Attr.cpp:
              * dom/Attr.h:
              * dom/Attr.idl:
              * dom/Attribute.cpp:
              * dom/Attribute.h:
              * dom/BeforeUnloadEvent.cpp:
              * dom/BeforeUnloadEvent.h:
              * dom/CDATASection.cpp:
              * dom/CDATASection.h:
              * dom/CDATASection.idl:
              * dom/CSSMappedAttributeDeclaration.cpp:
              * dom/CSSMappedAttributeDeclaration.h:
              * dom/CharacterData.cpp:
              * dom/CharacterData.h:
              * dom/CharacterData.idl:
              * dom/ChildNodeList.cpp:
              * dom/ChildNodeList.h:
              * dom/Clipboard.h:
              * dom/ClipboardEvent.cpp:
              * dom/ClipboardEvent.h:
              * dom/Comment.cpp:
              * dom/Comment.h:
              * dom/Comment.idl:
              * dom/ContainerNode.cpp:
              * dom/ContainerNode.h:
              * dom/DOMImplementation.cpp:
              * dom/DOMImplementation.h:
              * dom/DOMImplementation.idl:
              * dom/DocPtr.h:
              * dom/Document.cpp:
              * dom/Document.h:
              * dom/Document.idl:
              * dom/DocumentFragment.cpp:
              * dom/DocumentFragment.h:
              * dom/DocumentFragment.idl:
              * dom/DocumentMarker.h:
              * dom/DocumentType.cpp:
              * dom/DocumentType.h:
              * dom/DocumentType.idl:
              * dom/EditingText.cpp:
              * dom/EditingText.h:
              * dom/Element.cpp:
              * dom/Element.h:
              * dom/Element.idl:
              * dom/Entity.cpp:
              * dom/Entity.h:
              * dom/Entity.idl:
              * dom/EntityReference.cpp:
              * dom/EntityReference.h:
              * dom/EntityReference.idl:
              * dom/Event.cpp:
              * dom/Event.h:
              * dom/Event.idl:
              * dom/EventListener.h:
              * dom/EventListener.idl:
              * dom/EventNames.cpp:
              * dom/EventNames.h:
              * dom/EventTarget.idl:
              * dom/EventTargetNode.cpp:
              * dom/EventTargetNode.h:
              * dom/ExceptionCode.h:
              * dom/KeyboardEvent.cpp:
              * dom/KeyboardEvent.h:
              * dom/KeyboardEvent.idl:
              * dom/MappedAttribute.cpp:
              * dom/MappedAttribute.h:
              * dom/MappedAttributeEntry.h:
              * dom/MouseEvent.cpp:
              * dom/MouseEvent.h:
              * dom/MouseEvent.idl:
              * dom/MouseRelatedEvent.cpp:
              * dom/MouseRelatedEvent.h:
              * dom/MutationEvent.cpp:
              * dom/MutationEvent.h:
              * dom/MutationEvent.idl:
              * dom/NameNodeList.cpp:
              * dom/NameNodeList.h:
              * dom/NamedAttrMap.cpp:
              * dom/NamedAttrMap.h:
              * dom/NamedMappedAttrMap.cpp:
              * dom/NamedMappedAttrMap.h:
              * dom/NamedNodeMap.h:
              * dom/NamedNodeMap.idl:
              * dom/Node.cpp:
              * dom/Node.h:
              * dom/Node.idl:
              * dom/NodeFilter.cpp:
              * dom/NodeFilter.h:
              * dom/NodeFilter.idl:
              * dom/NodeFilterCondition.cpp:
              * dom/NodeFilterCondition.h:
              * dom/NodeIterator.cpp:
              * dom/NodeIterator.h:
              * dom/NodeIterator.idl:
              * dom/NodeList.cpp:
              * dom/NodeList.h:
              * dom/NodeList.idl:
              * dom/Notation.cpp:
              * dom/Notation.h:
              * dom/Notation.idl:
              * dom/ProcessingInstruction.cpp:
              * dom/ProcessingInstruction.h:
              * dom/ProcessingInstruction.idl:
              * dom/QualifiedName.cpp:
              * dom/QualifiedName.h:
              * dom/Range.cpp:
              * dom/Range.h:
              * dom/Range.idl:
              * dom/RangeException.h:
              * dom/RangeException.idl:
              * dom/RegisteredEventListener.cpp:
              * dom/RegisteredEventListener.h:
              * dom/StyleElement.cpp:
              * dom/StyleElement.h:
              * dom/StyledElement.cpp:
              * dom/StyledElement.h:
              * dom/Text.cpp:
              * dom/Text.h:
              * dom/Text.idl:
              * dom/Tokenizer.h:
              * dom/Traversal.cpp:
              * dom/Traversal.h:
              * dom/TreeWalker.cpp:
              * dom/TreeWalker.h:
              * dom/TreeWalker.idl:
              * dom/UIEvent.cpp:
              * dom/UIEvent.h:
              * dom/UIEvent.idl:
              * dom/UIEventWithKeyState.cpp:
              * dom/UIEventWithKeyState.h:
              * dom/WheelEvent.cpp:
              * dom/WheelEvent.h:
              * dom/WheelEvent.idl:
              * dom/XMLTokenizer.cpp:
              * dom/XMLTokenizer.h:
              * html/FormDataList.cpp:
              * html/FormDataList.h:
              * html/HTMLAnchorElement.cpp:
              * html/HTMLAnchorElement.h:
              * html/HTMLAnchorElement.idl:
              * html/HTMLAppletElement.cpp:
              * html/HTMLAppletElement.h:
              * html/HTMLAppletElement.idl:
              * html/HTMLAreaElement.cpp:
              * html/HTMLAreaElement.h:
              * html/HTMLAreaElement.idl:
              * html/HTMLBRElement.cpp:
              * html/HTMLBRElement.h:
              * html/HTMLBRElement.idl:
              * html/HTMLBaseElement.cpp:
              * html/HTMLBaseElement.h:
              * html/HTMLBaseElement.idl:
              * html/HTMLBaseFontElement.cpp:
              * html/HTMLBaseFontElement.h:
              * html/HTMLBaseFontElement.idl:
              * html/HTMLBlockquoteElement.cpp:
              * html/HTMLBlockquoteElement.h:
              * html/HTMLBlockquoteElement.idl:
              * html/HTMLBodyElement.cpp:
              * html/HTMLBodyElement.h:
              * html/HTMLBodyElement.idl:
              * html/HTMLButtonElement.cpp:
              * html/HTMLButtonElement.h:
              * html/HTMLButtonElement.idl:
              * html/HTMLCollection.cpp:
              * html/HTMLCollection.h:
              * html/HTMLCollection.idl:
              * html/HTMLDListElement.cpp:
              * html/HTMLDListElement.h:
              * html/HTMLDListElement.idl:
              * html/HTMLDirectoryElement.cpp:
              * html/HTMLDirectoryElement.h:
              * html/HTMLDirectoryElement.idl:
              * html/HTMLDivElement.cpp:
              * html/HTMLDivElement.h:
              * html/HTMLDivElement.idl:
              * html/HTMLDocument.cpp:
              * html/HTMLDocument.h:
              * html/HTMLDocument.idl:
              * html/HTMLElement.cpp:
              * html/HTMLElement.h:
              * html/HTMLElement.idl:
              * html/HTMLElementFactory.cpp:
              * html/HTMLElementFactory.h:
              * html/HTMLEmbedElement.cpp:
              * html/HTMLEmbedElement.h:
              * html/HTMLEmbedElement.idl:
              * html/HTMLEntityNames.gperf:
              * html/HTMLFieldSetElement.cpp:
              * html/HTMLFieldSetElement.h:
              * html/HTMLFieldSetElement.idl:
              * html/HTMLFontElement.cpp:
              * html/HTMLFontElement.h:
              * html/HTMLFontElement.idl:
              * html/HTMLFormCollection.cpp:
              * html/HTMLFormCollection.h:
              * html/HTMLFormElement.cpp:
              * html/HTMLFormElement.h:
              * html/HTMLFormElement.idl:
              * html/HTMLFrameElement.cpp:
              * html/HTMLFrameElement.h:
              * html/HTMLFrameElement.idl:
              * html/HTMLFrameElementBase.cpp:
              * html/HTMLFrameElementBase.h:
              * html/HTMLFrameOwnerElement.cpp:
              * html/HTMLFrameOwnerElement.h:
              * html/HTMLFrameSetElement.cpp:
              * html/HTMLFrameSetElement.h:
              * html/HTMLFrameSetElement.idl:
              * html/HTMLGenericFormElement.cpp:
              * html/HTMLGenericFormElement.h:
              * html/HTMLHRElement.cpp:
              * html/HTMLHRElement.h:
              * html/HTMLHRElement.idl:
              * html/HTMLHeadElement.cpp:
              * html/HTMLHeadElement.h:
              * html/HTMLHeadElement.idl:
              * html/HTMLHeadingElement.cpp:
              * html/HTMLHeadingElement.h:
              * html/HTMLHeadingElement.idl:
              * html/HTMLHtmlElement.cpp:
              * html/HTMLHtmlElement.h:
              * html/HTMLHtmlElement.idl:
              * html/HTMLIFrameElement.cpp:
              * html/HTMLIFrameElement.h:
              * html/HTMLIFrameElement.idl:
              * html/HTMLImageElement.cpp:
              * html/HTMLImageElement.h:
              * html/HTMLImageElement.idl:
              * html/HTMLImageLoader.cpp:
              * html/HTMLImageLoader.h:
              * html/HTMLInputElement.cpp:
              * html/HTMLInputElement.h:
              * html/HTMLInputElement.idl:
              * html/HTMLIsIndexElement.cpp:
              * html/HTMLIsIndexElement.h:
              * html/HTMLIsIndexElement.idl:
              * html/HTMLKeygenElement.cpp:
              * html/HTMLKeygenElement.h:
              * html/HTMLLIElement.cpp:
              * html/HTMLLIElement.h:
              * html/HTMLLIElement.idl:
              * html/HTMLLabelElement.cpp:
              * html/HTMLLabelElement.h:
              * html/HTMLLabelElement.idl:
              * html/HTMLLegendElement.cpp:
              * html/HTMLLegendElement.h:
              * html/HTMLLegendElement.idl:
              * html/HTMLLinkElement.cpp:
              * html/HTMLLinkElement.h:
              * html/HTMLLinkElement.idl:
              * html/HTMLMapElement.cpp:
              * html/HTMLMapElement.h:
              * html/HTMLMapElement.idl:
              * html/HTMLMarqueeElement.cpp:
              * html/HTMLMarqueeElement.h:
              * html/HTMLMarqueeElement.idl:
              * html/HTMLMenuElement.cpp:
              * html/HTMLMenuElement.h:
              * html/HTMLMenuElement.idl:
              * html/HTMLMetaElement.cpp:
              * html/HTMLMetaElement.h:
              * html/HTMLMetaElement.idl:
              * html/HTMLModElement.cpp:
              * html/HTMLModElement.h:
              * html/HTMLModElement.idl:
              * html/HTMLNameCollection.cpp:
              * html/HTMLNameCollection.h:
              * html/HTMLOListElement.cpp:
              * html/HTMLOListElement.h:
              * html/HTMLOListElement.idl:
              * html/HTMLObjectElement.cpp:
              * html/HTMLObjectElement.h:
              * html/HTMLObjectElement.idl:
              * html/HTMLOptGroupElement.cpp:
              * html/HTMLOptGroupElement.h:
              * html/HTMLOptGroupElement.idl:
              * html/HTMLOptionElement.cpp:
              * html/HTMLOptionElement.h:
              * html/HTMLOptionElement.idl:
              * html/HTMLOptionsCollection.cpp:
              * html/HTMLOptionsCollection.h:
              * html/HTMLOptionsCollection.idl:
              * html/HTMLParagraphElement.cpp:
              * html/HTMLParagraphElement.h:
              * html/HTMLParagraphElement.idl:
              * html/HTMLParamElement.cpp:
              * html/HTMLParamElement.h:
              * html/HTMLParamElement.idl:
              * html/HTMLParser.cpp:
              * html/HTMLParser.h:
              * html/HTMLPlugInElement.cpp:
              * html/HTMLPlugInElement.h:
              * html/HTMLPreElement.cpp:
              * html/HTMLPreElement.h:
              * html/HTMLPreElement.idl:
              * html/HTMLQuoteElement.cpp:
              * html/HTMLQuoteElement.h:
              * html/HTMLQuoteElement.idl:
              * html/HTMLScriptElement.cpp:
              * html/HTMLScriptElement.h:
              * html/HTMLScriptElement.idl:
              * html/HTMLSelectElement.cpp:
              * html/HTMLSelectElement.h:
              * html/HTMLSelectElement.idl:
              * html/HTMLStyleElement.cpp:
              * html/HTMLStyleElement.h:
              * html/HTMLStyleElement.idl:
              * html/HTMLTableCaptionElement.cpp:
              * html/HTMLTableCaptionElement.h:
              * html/HTMLTableCaptionElement.idl:
              * html/HTMLTableCellElement.cpp:
              * html/HTMLTableCellElement.h:
              * html/HTMLTableCellElement.idl:
              * html/HTMLTableColElement.cpp:
              * html/HTMLTableColElement.h:
              * html/HTMLTableColElement.idl:
              * html/HTMLTableElement.cpp:
              * html/HTMLTableElement.h:
              * html/HTMLTableElement.idl:
              * html/HTMLTablePartElement.cpp:
              * html/HTMLTablePartElement.h:
              * html/HTMLTableRowElement.cpp:
              * html/HTMLTableRowElement.h:
              * html/HTMLTableRowElement.idl:
              * html/HTMLTableSectionElement.cpp:
              * html/HTMLTableSectionElement.h:
              * html/HTMLTableSectionElement.idl:
              * html/HTMLTextAreaElement.cpp:
              * html/HTMLTextAreaElement.h:
              * html/HTMLTextAreaElement.idl:
              * html/HTMLTitleElement.cpp:
              * html/HTMLTitleElement.h:
              * html/HTMLTitleElement.idl:
              * html/HTMLTokenizer.cpp:
              * html/HTMLTokenizer.h:
              * html/HTMLUListElement.cpp:
              * html/HTMLUListElement.h:
              * html/HTMLUListElement.idl:
              * ksvg2/css/SVGCSSParser.cpp:
              * ksvg2/css/SVGCSSStyleSelector.cpp:
              * ksvg2/css/SVGRenderStyle.cpp:
              * ksvg2/css/SVGRenderStyle.h:
              * ksvg2/css/SVGRenderStyleDefs.cpp:
              * ksvg2/css/SVGRenderStyleDefs.h:
              * ksvg2/events/JSSVGLazyEventListener.cpp:
              * ksvg2/events/JSSVGLazyEventListener.h:
              * ksvg2/events/SVGZoomEvent.cpp:
              * ksvg2/events/SVGZoomEvent.h:
              * ksvg2/misc/KCanvasRenderingStyle.cpp:
              * ksvg2/misc/KCanvasRenderingStyle.h:
              * ksvg2/misc/PointerEventsHitRules.cpp:
              * ksvg2/misc/PointerEventsHitRules.h:
              * ksvg2/misc/SVGDocumentExtensions.cpp:
              * ksvg2/misc/SVGDocumentExtensions.h:
              * ksvg2/misc/SVGImageLoader.cpp:
              * ksvg2/misc/SVGImageLoader.h:
              * ksvg2/misc/SVGTimer.cpp:
              * ksvg2/misc/SVGTimer.h:
              * ksvg2/misc/TimeScheduler.cpp:
              * ksvg2/misc/TimeScheduler.h:
              * ksvg2/scripts/cssmakeprops:
              * ksvg2/scripts/cssmakevalues:
              * ksvg2/svg/ColorDistance.cpp:
              * ksvg2/svg/ColorDistance.h:
              * ksvg2/svg/GradientAttributes.h:
              * ksvg2/svg/LinearGradientAttributes.h:
              * ksvg2/svg/PatternAttributes.h:
              * ksvg2/svg/RadialGradientAttributes.h:
              * ksvg2/svg/SVGAElement.cpp:
              * ksvg2/svg/SVGAElement.h:
              * ksvg2/svg/SVGAngle.cpp:
              * ksvg2/svg/SVGAngle.h:
              * ksvg2/svg/SVGAngle.idl:
              * ksvg2/svg/SVGAnimateColorElement.cpp:
              * ksvg2/svg/SVGAnimateColorElement.h:
              * ksvg2/svg/SVGAnimateElement.cpp:
              * ksvg2/svg/SVGAnimateElement.h:
              * ksvg2/svg/SVGAnimateMotionElement.cpp:
              * ksvg2/svg/SVGAnimateMotionElement.h:
              * ksvg2/svg/SVGAnimateTransformElement.cpp:
              * ksvg2/svg/SVGAnimateTransformElement.h:
              * ksvg2/svg/SVGAnimatedPathData.cpp:
              * ksvg2/svg/SVGAnimatedPathData.h:
              * ksvg2/svg/SVGAnimatedPoints.cpp:
              * ksvg2/svg/SVGAnimatedPoints.h:
              * ksvg2/svg/SVGAnimatedTemplate.h:
              * ksvg2/svg/SVGAnimationElement.cpp:
              * ksvg2/svg/SVGAnimationElement.h:
              * ksvg2/svg/SVGCircleElement.cpp:
              * ksvg2/svg/SVGCircleElement.h:
              * ksvg2/svg/SVGClipPathElement.cpp:
              * ksvg2/svg/SVGClipPathElement.h:
              * ksvg2/svg/SVGColor.cpp:
              * ksvg2/svg/SVGColor.h:
              * ksvg2/svg/SVGColor.idl:
              * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
              * ksvg2/svg/SVGComponentTransferFunctionElement.h:
              * ksvg2/svg/SVGCursorElement.cpp:
              * ksvg2/svg/SVGCursorElement.h:
              * ksvg2/svg/SVGDefsElement.cpp:
              * ksvg2/svg/SVGDefsElement.h:
              * ksvg2/svg/SVGDescElement.cpp:
              * ksvg2/svg/SVGDescElement.h:
              * ksvg2/svg/SVGDocument.cpp:
              * ksvg2/svg/SVGDocument.h:
              * ksvg2/svg/SVGDocument.idl:
              * ksvg2/svg/SVGElement.cpp:
              * ksvg2/svg/SVGElement.h:
              * ksvg2/svg/SVGElement.idl:
              * ksvg2/svg/SVGElementInstance.cpp:
              * ksvg2/svg/SVGElementInstance.h:
              * ksvg2/svg/SVGElementInstanceList.cpp:
              * ksvg2/svg/SVGElementInstanceList.h:
              * ksvg2/svg/SVGEllipseElement.cpp:
              * ksvg2/svg/SVGEllipseElement.h:
              * ksvg2/svg/SVGException.h:
              * ksvg2/svg/SVGExternalResourcesRequired.cpp:
              * ksvg2/svg/SVGExternalResourcesRequired.h:
              * ksvg2/svg/SVGFEBlendElement.cpp:
              * ksvg2/svg/SVGFEBlendElement.h:
              * ksvg2/svg/SVGFEColorMatrixElement.cpp:
              * ksvg2/svg/SVGFEColorMatrixElement.h:
              * ksvg2/svg/SVGFEComponentTransferElement.cpp:
              * ksvg2/svg/SVGFEComponentTransferElement.h:
              * ksvg2/svg/SVGFECompositeElement.cpp:
              * ksvg2/svg/SVGFECompositeElement.h:
              * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
              * ksvg2/svg/SVGFEDiffuseLightingElement.h:
              * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
              * ksvg2/svg/SVGFEDisplacementMapElement.h:
              * ksvg2/svg/SVGFEDistantLightElement.cpp:
              * ksvg2/svg/SVGFEDistantLightElement.h:
              * ksvg2/svg/SVGFEFloodElement.cpp:
              * ksvg2/svg/SVGFEFloodElement.h:
              * ksvg2/svg/SVGFEFuncAElement.cpp:
              * ksvg2/svg/SVGFEFuncAElement.h:
              * ksvg2/svg/SVGFEFuncBElement.cpp:
              * ksvg2/svg/SVGFEFuncBElement.h:
              * ksvg2/svg/SVGFEFuncGElement.cpp:
              * ksvg2/svg/SVGFEFuncGElement.h:
              * ksvg2/svg/SVGFEFuncRElement.cpp:
              * ksvg2/svg/SVGFEFuncRElement.h:
              * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
              * ksvg2/svg/SVGFEGaussianBlurElement.h:
              * ksvg2/svg/SVGFEImageElement.cpp:
              * ksvg2/svg/SVGFEImageElement.h:
              * ksvg2/svg/SVGFELightElement.cpp:
              * ksvg2/svg/SVGFELightElement.h:
              * ksvg2/svg/SVGFEMergeElement.cpp:
              * ksvg2/svg/SVGFEMergeElement.h:
              * ksvg2/svg/SVGFEMergeNodeElement.cpp:
              * ksvg2/svg/SVGFEMergeNodeElement.h:
              * ksvg2/svg/SVGFEOffsetElement.cpp:
              * ksvg2/svg/SVGFEOffsetElement.h:
              * ksvg2/svg/SVGFEPointLightElement.cpp:
              * ksvg2/svg/SVGFEPointLightElement.h:
              * ksvg2/svg/SVGFESpecularLightingElement.cpp:
              * ksvg2/svg/SVGFESpecularLightingElement.h:
              * ksvg2/svg/SVGFESpotLightElement.cpp:
              * ksvg2/svg/SVGFESpotLightElement.h:
              * ksvg2/svg/SVGFETileElement.cpp:
              * ksvg2/svg/SVGFETileElement.h:
              * ksvg2/svg/SVGFETurbulenceElement.cpp:
              * ksvg2/svg/SVGFETurbulenceElement.h:
              * ksvg2/svg/SVGFilterElement.cpp:
              * ksvg2/svg/SVGFilterElement.h:
              * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
              * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
              * ksvg2/svg/SVGFitToViewBox.cpp:
              * ksvg2/svg/SVGFitToViewBox.h:
              * ksvg2/svg/SVGForeignObjectElement.cpp:
              * ksvg2/svg/SVGForeignObjectElement.h:
              * ksvg2/svg/SVGGElement.cpp:
              * ksvg2/svg/SVGGElement.h:
              * ksvg2/svg/SVGGradientElement.cpp:
              * ksvg2/svg/SVGGradientElement.h:
              * ksvg2/svg/SVGImageElement.cpp:
              * ksvg2/svg/SVGImageElement.h:
              * ksvg2/svg/SVGLangSpace.cpp:
              * ksvg2/svg/SVGLangSpace.h:
              * ksvg2/svg/SVGLength.cpp:
              * ksvg2/svg/SVGLength.h:
              * ksvg2/svg/SVGLength.idl:
              * ksvg2/svg/SVGLengthList.cpp:
              * ksvg2/svg/SVGLengthList.h:
              * ksvg2/svg/SVGLineElement.cpp:
              * ksvg2/svg/SVGLineElement.h:
              * ksvg2/svg/SVGLinearGradientElement.cpp:
              * ksvg2/svg/SVGLinearGradientElement.h:
              * ksvg2/svg/SVGList.h:
              * ksvg2/svg/SVGListTraits.h:
              * ksvg2/svg/SVGLocatable.cpp:
              * ksvg2/svg/SVGLocatable.h:
              * ksvg2/svg/SVGMPathElement.cpp:
              * ksvg2/svg/SVGMPathElement.h:
              * ksvg2/svg/SVGMarkerElement.cpp:
              * ksvg2/svg/SVGMarkerElement.h:
              * ksvg2/svg/SVGMaskElement.cpp:
              * ksvg2/svg/SVGMaskElement.h:
              * ksvg2/svg/SVGMatrix.idl:
              * ksvg2/svg/SVGMetadataElement.cpp:
              * ksvg2/svg/SVGMetadataElement.h:
              * ksvg2/svg/SVGMetadataElement.idl:
              * ksvg2/svg/SVGNumber.idl:
              * ksvg2/svg/SVGNumberList.cpp:
              * ksvg2/svg/SVGNumberList.h:
              * ksvg2/svg/SVGPaint.cpp:
              * ksvg2/svg/SVGPaint.h:
              * ksvg2/svg/SVGParserUtilities.cpp:
              * ksvg2/svg/SVGParserUtilities.h:
              * ksvg2/svg/SVGPathElement.cpp:
              * ksvg2/svg/SVGPathElement.h:
              * ksvg2/svg/SVGPathSeg.h:
              * ksvg2/svg/SVGPathSegArc.cpp:
              * ksvg2/svg/SVGPathSegArc.h:
              * ksvg2/svg/SVGPathSegClosePath.cpp:
              * ksvg2/svg/SVGPathSegClosePath.h:
              * ksvg2/svg/SVGPathSegCurvetoCubic.cpp:
              * ksvg2/svg/SVGPathSegCurvetoCubic.h:
              * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp:
              * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
              * ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp:
              * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
              * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp:
              * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
              * ksvg2/svg/SVGPathSegLineto.cpp:
              * ksvg2/svg/SVGPathSegLineto.h:
              * ksvg2/svg/SVGPathSegLinetoHorizontal.cpp:
              * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
              * ksvg2/svg/SVGPathSegLinetoVertical.cpp:
              * ksvg2/svg/SVGPathSegLinetoVertical.h:
              * ksvg2/svg/SVGPathSegList.cpp:
              * ksvg2/svg/SVGPathSegList.h:
              * ksvg2/svg/SVGPathSegMoveto.cpp:
              * ksvg2/svg/SVGPathSegMoveto.h:
              * ksvg2/svg/SVGPatternElement.cpp:
              * ksvg2/svg/SVGPatternElement.h:
              * ksvg2/svg/SVGPoint.idl:
              * ksvg2/svg/SVGPointList.cpp:
              * ksvg2/svg/SVGPointList.h:
              * ksvg2/svg/SVGPolyElement.cpp:
              * ksvg2/svg/SVGPolyElement.h:
              * ksvg2/svg/SVGPolygonElement.cpp:
              * ksvg2/svg/SVGPolygonElement.h:
              * ksvg2/svg/SVGPolylineElement.cpp:
              * ksvg2/svg/SVGPolylineElement.h:
              * ksvg2/svg/SVGPreserveAspectRatio.cpp:
              * ksvg2/svg/SVGPreserveAspectRatio.h:
              * ksvg2/svg/SVGRadialGradientElement.cpp:
              * ksvg2/svg/SVGRadialGradientElement.h:
              * ksvg2/svg/SVGRect.idl:
              * ksvg2/svg/SVGRectElement.cpp:
              * ksvg2/svg/SVGRectElement.h:
              * ksvg2/svg/SVGRenderingIntent.h:
              * ksvg2/svg/SVGSVGElement.cpp:
              * ksvg2/svg/SVGSVGElement.h:
              * ksvg2/svg/SVGSVGElement.idl:
              * ksvg2/svg/SVGScriptElement.cpp:
              * ksvg2/svg/SVGScriptElement.h:
              * ksvg2/svg/SVGSetElement.cpp:
              * ksvg2/svg/SVGSetElement.h:
              * ksvg2/svg/SVGStopElement.cpp:
              * ksvg2/svg/SVGStopElement.h:
              * ksvg2/svg/SVGStringList.cpp:
              * ksvg2/svg/SVGStringList.h:
              * ksvg2/svg/SVGStylable.cpp:
              * ksvg2/svg/SVGStylable.h:
              * ksvg2/svg/SVGStyleElement.cpp:
              * ksvg2/svg/SVGStyleElement.h:
              * ksvg2/svg/SVGStyledElement.cpp:
              * ksvg2/svg/SVGStyledElement.h:
              * ksvg2/svg/SVGStyledLocatableElement.cpp:
              * ksvg2/svg/SVGStyledLocatableElement.h:
              * ksvg2/svg/SVGStyledTransformableElement.cpp:
              * ksvg2/svg/SVGStyledTransformableElement.h:
              * ksvg2/svg/SVGSwitchElement.cpp:
              * ksvg2/svg/SVGSwitchElement.h:
              * ksvg2/svg/SVGSymbolElement.cpp:
              * ksvg2/svg/SVGSymbolElement.h:
              * ksvg2/svg/SVGTRefElement.cpp:
              * ksvg2/svg/SVGTRefElement.h:
              * ksvg2/svg/SVGTSpanElement.cpp:
              * ksvg2/svg/SVGTSpanElement.h:
              * ksvg2/svg/SVGTests.cpp:
              * ksvg2/svg/SVGTests.h:
              * ksvg2/svg/SVGTextContentElement.cpp:
              * ksvg2/svg/SVGTextContentElement.h:
              * ksvg2/svg/SVGTextElement.cpp:
              * ksvg2/svg/SVGTextElement.h:
              * ksvg2/svg/SVGTextPositioningElement.cpp:
              * ksvg2/svg/SVGTextPositioningElement.h:
              * ksvg2/svg/SVGTitleElement.cpp:
              * ksvg2/svg/SVGTitleElement.h:
              * ksvg2/svg/SVGTransform.cpp:
              * ksvg2/svg/SVGTransform.h:
              * ksvg2/svg/SVGTransform.idl:
              * ksvg2/svg/SVGTransformDistance.cpp:
              * ksvg2/svg/SVGTransformDistance.h:
              * ksvg2/svg/SVGTransformList.cpp:
              * ksvg2/svg/SVGTransformList.h:
              * ksvg2/svg/SVGTransformable.cpp:
              * ksvg2/svg/SVGTransformable.h:
              * ksvg2/svg/SVGURIReference.cpp:
              * ksvg2/svg/SVGURIReference.h:
              * ksvg2/svg/SVGUnitTypes.h:
              * ksvg2/svg/SVGUseElement.cpp:
              * ksvg2/svg/SVGUseElement.h:
              * ksvg2/svg/SVGViewElement.cpp:
              * ksvg2/svg/SVGViewElement.h:
              * ksvg2/svg/SVGZoomAndPan.cpp:
              * ksvg2/svg/SVGZoomAndPan.h:
              * loader/Cache.cpp:
              * loader/Cache.h:
              * loader/CachedCSSStyleSheet.cpp:
              * loader/CachedCSSStyleSheet.h:
              * loader/CachedImage.cpp:
              * loader/CachedImage.h:
              * loader/CachedResource.cpp:
              * loader/CachedResource.h:
              * loader/CachedResourceClient.h:
              * loader/CachedResourceClientWalker.cpp:
              * loader/CachedResourceClientWalker.h:
              * loader/CachedScript.cpp:
              * loader/CachedScript.h:
              * loader/CachedXBLDocument.cpp:
              * loader/CachedXBLDocument.h:
              * loader/CachedXSLStyleSheet.cpp:
              * loader/CachedXSLStyleSheet.h:
              * loader/DocLoader.cpp:
              * loader/DocLoader.h:
              * loader/FTPDirectoryParser.cpp:
              * loader/FTPDirectoryParser.h:
              * loader/Request.cpp:
              * loader/Request.h:
              * loader/TextResourceDecoder.cpp:
              * loader/TextResourceDecoder.h:
              * loader/loader.cpp:
              * loader/loader.h:
              * page/Chrome.cpp:
              * page/Chrome.h:
              * page/ChromeClient.h:
              * page/Frame.cpp:
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/FrameTree.cpp:
              * page/FrameTree.h:
              * page/FrameView.cpp:
              * page/FrameView.h:
              * page/MouseEventWithHitTestResults.cpp:
              * page/MouseEventWithHitTestResults.h:
              * page/Page.cpp:
              * page/Page.h:
              * page/Plugin.h:
              * page/mac/ChromeMac.mm:
              * platform/Arena.cpp:
              * platform/Arena.h:
              * platform/AtomicString.cpp:
              * platform/AtomicString.h:
              * platform/AtomicStringImpl.h:
              * platform/BidiContext.cpp:
              * platform/BidiContext.h:
              * platform/BidiResolver.h:
              * platform/Font.cpp:
              * platform/Font.h:
              * platform/FontData.h:
              * platform/FontDescription.h:
              * platform/FontFallbackList.h:
              * platform/PlatformString.h:
              * platform/PopupMenu.h:
              * platform/PopupMenuClient.h:
              * platform/SearchPopupMenu.h:
              * platform/SegmentedString.cpp:
              * platform/SegmentedString.h:
              * platform/Shared.h:
              * platform/StaticConstructors.h:
              * platform/String.cpp:
              * platform/StringHash.h:
              * platform/StringImpl.cpp:
              * platform/StringImpl.h:
              * platform/TextBreakIterator.h:
              * platform/TextBreakIteratorICU.cpp:
              * platform/TextBreakIteratorInternalICU.h:
              * platform/TextStyle.h:
              * platform/UnicodeRange.cpp:
              * platform/UnicodeRange.h:
              * platform/cf/StringCF.cpp:
              * platform/cf/StringImplCF.cpp:
              * platform/graphics/FloatPoint3D.cpp:
              * platform/graphics/FloatPoint3D.h:
              * platform/graphics/Icon.h:
              * platform/graphics/IntSizeHash.h:
              * platform/graphics/PathTraversalState.cpp:
              * platform/graphics/cairo/CairoPath.h:
              * platform/graphics/cairo/PathCairo.cpp:
              * platform/graphics/mac/IconMac.mm:
              * platform/graphics/qt/IconQt.cpp:
              * platform/graphics/svg/SVGResourceFilter.cpp:
              * platform/graphics/svg/SVGResourceFilter.h:
              * platform/graphics/svg/cg/SVGPaintServerCg.cpp:
              * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
              * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
              * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp:
              * platform/graphics/svg/filters/SVGDistantLightSource.h:
              * platform/graphics/svg/filters/SVGFEBlend.cpp:
              * platform/graphics/svg/filters/SVGFEBlend.h:
              * platform/graphics/svg/filters/SVGFEColorMatrix.cpp:
              * platform/graphics/svg/filters/SVGFEColorMatrix.h:
              * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp:
              * platform/graphics/svg/filters/SVGFEComponentTransfer.h:
              * platform/graphics/svg/filters/SVGFEComposite.cpp:
              * platform/graphics/svg/filters/SVGFEComposite.h:
              * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp:
              * platform/graphics/svg/filters/SVGFEConvolveMatrix.h:
              * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp:
              * platform/graphics/svg/filters/SVGFEDiffuseLighting.h:
              * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp:
              * platform/graphics/svg/filters/SVGFEDisplacementMap.h:
              * platform/graphics/svg/filters/SVGFEFlood.cpp:
              * platform/graphics/svg/filters/SVGFEFlood.h:
              * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp:
              * platform/graphics/svg/filters/SVGFEGaussianBlur.h:
              * platform/graphics/svg/filters/SVGFEImage.cpp:
              * platform/graphics/svg/filters/SVGFEImage.h:
              * platform/graphics/svg/filters/SVGFEMerge.cpp:
              * platform/graphics/svg/filters/SVGFEMerge.h:
              * platform/graphics/svg/filters/SVGFEMorphology.cpp:
              * platform/graphics/svg/filters/SVGFEMorphology.h:
              * platform/graphics/svg/filters/SVGFEOffset.cpp:
              * platform/graphics/svg/filters/SVGFEOffset.h:
              * platform/graphics/svg/filters/SVGFESpecularLighting.cpp:
              * platform/graphics/svg/filters/SVGFESpecularLighting.h:
              * platform/graphics/svg/filters/SVGFETile.h:
              * platform/graphics/svg/filters/SVGFETurbulence.cpp:
              * platform/graphics/svg/filters/SVGFETurbulence.h:
              * platform/graphics/svg/filters/SVGFilterEffect.cpp:
              * platform/graphics/svg/filters/SVGFilterEffect.h:
              * platform/graphics/svg/filters/SVGLightSource.cpp:
              * platform/graphics/svg/filters/SVGLightSource.h:
              * platform/graphics/svg/filters/SVGPointLightSource.h:
              * platform/graphics/svg/filters/SVGSpotLightSource.h:
              * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm:
              * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEGaussianBlurCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h:
              * platform/graphics/svg/filters/cg/SVGFEHelpersCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEImageCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm:
              * platform/graphics/svg/filters/cg/SVGFEOffsetCg.mm:
              * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm:
              * platform/graphics/svg/filters/cg/SVGFETileCg.mm:
              * platform/graphics/svg/filters/cg/SVGFilterEffectCg.mm:
              * platform/graphics/svg/qt/RenderPathQt.cpp:
              * platform/graphics/svg/qt/SVGPaintServerGradientQt.cpp:
              * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp:
              * platform/graphics/svg/qt/SVGPaintServerPatternQt.cpp:
              * platform/graphics/svg/qt/SVGPaintServerQt.cpp:
              * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp:
              * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp:
              * platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
              * platform/graphics/svg/qt/SVGResourceFilterQt.cpp:
              * platform/graphics/svg/qt/SVGResourceMaskerQt.cpp:
              * platform/graphics/win/IconWin.cpp:
              * platform/gtk/FontPlatformData.h:
              * platform/gtk/FontPlatformDataGtk.cpp:
              * platform/gtk/PopupMenuGtk.cpp:
              * platform/gtk/RenderThemeGtk.cpp:
              * platform/gtk/RenderThemeGtk.h:
              * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
              * platform/image-decoders/png/PNGImageDecoder.cpp:
              * platform/mac/FontMac.mm:
              * platform/mac/FontPlatformData.h:
              * platform/mac/LocalCurrentGraphicsContext.h:
              * platform/mac/LocalCurrentGraphicsContext.mm:
              * platform/mac/PopupMenuMac.mm:
              * platform/mac/SearchPopupMenuMac.mm:
              * platform/mac/StringImplMac.mm:
              * platform/mac/StringMac.mm:
              * platform/mac/TextBreakIteratorInternalICUMac.mm:
              * platform/network/FormData.cpp:
              * platform/network/FormData.h:
              * platform/qt/FileChooserQt.cpp:
              * platform/qt/FontQt.cpp:
              * platform/qt/MenuEventProxy.h:
              * platform/qt/PlugInInfoStoreQt.cpp:
              * platform/qt/PopupMenuQt.cpp:
              * platform/qt/QWebPopup.cpp:
              * platform/qt/QWebPopup.h:
              * platform/qt/RenderThemeQt.cpp:
              * platform/qt/RenderThemeQt.h:
              * platform/qt/SearchPopupMenuQt.cpp:
              * platform/qt/TextBreakIteratorQt.cpp:
              * platform/qt/WheelEventQt.cpp:
              * platform/win/FontPlatformData.h:
              * platform/win/FontPlatformDataWin.cpp:
              * platform/win/PopupMenuWin.cpp:
              * platform/win/SearchPopupMenuWin.cpp:
              * platform/win/TextBreakIteratorInternalICUWin.cpp:
              * rendering/AutoTableLayout.cpp:
              * rendering/AutoTableLayout.h:
              * rendering/CounterNode.cpp:
              * rendering/CounterNode.h:
              * rendering/DataRef.h:
              * rendering/EllipsisBox.cpp:
              * rendering/EllipsisBox.h:
              * rendering/FixedTableLayout.cpp:
              * rendering/FixedTableLayout.h:
              * rendering/GapRects.h:
              * rendering/HitTestRequest.h:
              * rendering/HitTestResult.cpp:
              * rendering/HitTestResult.h:
              * rendering/InlineBox.cpp:
              * rendering/InlineBox.h:
              * rendering/InlineFlowBox.cpp:
              * rendering/InlineFlowBox.h:
              * rendering/InlineRunBox.h:
              * rendering/InlineTextBox.cpp:
              * rendering/InlineTextBox.h:
              * rendering/Length.h:
              * rendering/ListMarkerBox.cpp:
              * rendering/ListMarkerBox.h:
              * rendering/RenderApplet.cpp:
              * rendering/RenderApplet.h:
              * rendering/RenderArena.cpp:
              * rendering/RenderArena.h:
              * rendering/RenderBR.cpp:
              * rendering/RenderBR.h:
              * rendering/RenderBlock.cpp:
              * rendering/RenderBlock.h:
              * rendering/RenderBox.cpp:
              * rendering/RenderBox.h:
              * rendering/RenderButton.cpp:
              * rendering/RenderButton.h:
              * rendering/RenderContainer.cpp:
              * rendering/RenderContainer.h:
              * rendering/RenderCounter.cpp:
              * rendering/RenderCounter.h:
              * rendering/RenderFieldset.cpp:
              * rendering/RenderFieldset.h:
              * rendering/RenderFileUploadControl.cpp:
              * rendering/RenderFileUploadControl.h:
              * rendering/RenderFlexibleBox.cpp:
              * rendering/RenderFlexibleBox.h:
              * rendering/RenderFlow.cpp:
              * rendering/RenderFlow.h:
              * rendering/RenderForeignObject.cpp:
              * rendering/RenderForeignObject.h:
              * rendering/RenderFrame.cpp:
              * rendering/RenderFrame.h:
              * rendering/RenderFrameSet.cpp:
              * rendering/RenderFrameSet.h:
              * rendering/RenderImage.cpp:
              * rendering/RenderImage.h:
              * rendering/RenderInline.cpp:
              * rendering/RenderInline.h:
              * rendering/RenderLayer.cpp:
              * rendering/RenderLayer.h:
              * rendering/RenderLegend.cpp:
              * rendering/RenderLegend.h:
              * rendering/RenderListItem.cpp:
              * rendering/RenderListItem.h:
              * rendering/RenderListMarker.cpp:
              * rendering/RenderListMarker.h:
              * rendering/RenderMenuList.cpp:
              * rendering/RenderMenuList.h:
              * rendering/RenderObject.cpp:
              * rendering/RenderObject.h:
              * rendering/RenderPart.cpp:
              * rendering/RenderPart.h:
              * rendering/RenderPartObject.cpp:
              * rendering/RenderPartObject.h:
              * rendering/RenderPath.cpp:
              * rendering/RenderPath.h:
              * rendering/RenderReplaced.cpp:
              * rendering/RenderReplaced.h:
              * rendering/RenderSVGBlock.cpp:
              * rendering/RenderSVGBlock.h:
              * rendering/RenderSVGContainer.cpp:
              * rendering/RenderSVGContainer.h:
              * rendering/RenderSVGGradientStop.cpp:
              * rendering/RenderSVGGradientStop.h:
              * rendering/RenderSVGHiddenContainer.cpp:
              * rendering/RenderSVGHiddenContainer.h:
              * rendering/RenderSVGImage.cpp:
              * rendering/RenderSVGImage.h:
              * rendering/RenderSVGInline.cpp:
              * rendering/RenderSVGInline.h:
              * rendering/RenderSVGInlineText.cpp:
              * rendering/RenderSVGInlineText.h:
              * rendering/RenderSVGTSpan.cpp:
              * rendering/RenderSVGTSpan.h:
              * rendering/RenderSVGText.cpp:
              * rendering/RenderSVGText.h:
              * rendering/RenderSlider.cpp:
              * rendering/RenderSlider.h:
              * rendering/RenderStyle.cpp:
              * rendering/RenderStyle.h:
              * rendering/RenderTable.cpp:
              * rendering/RenderTable.h:
              * rendering/RenderTableCell.cpp:
              * rendering/RenderTableCell.h:
              * rendering/RenderTableCol.cpp:
              * rendering/RenderTableCol.h:
              * rendering/RenderTableRow.cpp:
              * rendering/RenderTableRow.h:
              * rendering/RenderTableSection.cpp:
              * rendering/RenderTableSection.h:
              * rendering/RenderText.cpp:
              * rendering/RenderText.h:
              * rendering/RenderTextControl.cpp:
              * rendering/RenderTextControl.h:
              * rendering/RenderTextFragment.cpp:
              * rendering/RenderTextFragment.h:
              * rendering/RenderTheme.cpp:
              * rendering/RenderTheme.h:
              * rendering/RenderThemeMac.h:
              * rendering/RenderThemeMac.mm:
              * rendering/RenderThemeSafari.cpp:
              * rendering/RenderThemeSafari.h:
              * rendering/RenderThemeWin.cpp:
              * rendering/RenderThemeWin.h:
              * rendering/RenderView.cpp:
              * rendering/RenderView.h:
              * rendering/RenderWidget.cpp:
              * rendering/RenderWidget.h:
              * rendering/RootInlineBox.cpp:
              * rendering/RootInlineBox.h:
              * rendering/SVGInlineFlowBox.cpp:
              * rendering/SVGInlineFlowBox.h:
              * rendering/SVGInlineTextBox.cpp:
              * rendering/SVGInlineTextBox.h:
              * rendering/SVGRootInlineBox.cpp:
              * rendering/SVGRootInlineBox.h:
              * rendering/TableLayout.h:
              * rendering/bidi.cpp:
              * rendering/bidi.h:
              * rendering/break_lines.cpp:
              * rendering/break_lines.h:
              * xml/DOMParser.cpp:
              * xml/DOMParser.h:
              * xml/DOMParser.idl:
              * xml/XMLHttpRequest.cpp:
              * xml/XMLHttpRequest.h:
              * xml/XMLSerializer.cpp:
              * xml/XMLSerializer.h:
              * xml/XMLSerializer.idl:
              * xml/XPathEvaluator.idl:
              * xml/XPathExpression.idl:
              * xml/XPathNSResolver.idl:
              * xml/XPathResult.idl:
              * xml/XSLImportRule.cpp:
              * xml/XSLImportRule.h:
              * xml/XSLStyleSheet.cpp:
              * xml/XSLStyleSheet.h:
              * xml/XSLTProcessor.cpp:
              * xml/XSLTProcessor.h:
      
      WebKitQt:
      
              Reviewed by Adam.
      
              - Fix http://bugs.webkit.org/show_bug.cgi?id=14885
                LGPL'ed files contain incorrect FSF address
      
              * Api/qcookiejar.cpp:
              * Api/qcookiejar.h:
              * Api/qwebframe.cpp:
              * Api/qwebframe.h:
              * Api/qwebframe_p.h:
              * Api/qwebhistoryinterface.cpp:
              * Api/qwebhistoryinterface.h:
              * Api/qwebkitglobal.h:
              * Api/qwebnetworkinterface.cpp:
              * Api/qwebnetworkinterface.h:
              * Api/qwebnetworkinterface_p.h:
              * Api/qwebobjectplugin.cpp:
              * Api/qwebobjectplugin.h:
              * Api/qwebobjectpluginconnector.cpp:
              * Api/qwebobjectpluginconnector.h:
              * Api/qwebpage.cpp:
              * Api/qwebpage.h:
              * Api/qwebpage_p.h:
              * Api/qwebpagehistory.cpp:
              * Api/qwebpagehistory.h:
              * Api/qwebsettings.cpp:
              * Api/qwebsettings.h:
              * WebCoreSupport/EditCommandQt.cpp:
              * WebCoreSupport/EditCommandQt.h:
      
      WebKitSite:
      
              Reviewed by Adam.
      
              - Fix http://bugs.webkit.org/show_bug.cgi?id=14885
                LGPL'ed files contain incorrect FSF address
      
              * blog/wp-content/plugins/wp-cache/wp-cache.php:
              * blog/wp-includes/class-snoopy.php:
              * blog/wp-includes/gettext.php:
              * blog/wp-includes/js/tinymce/license.html:
              * blog/wp-includes/streams.php:
      
      WebKitTools:
      
              Reviewed by Adam.
      
              - Fix http://bugs.webkit.org/show_bug.cgi?id=14885
                LGPL'ed files contain incorrect FSF address
      
              * Drosera/config.h:
      
      LayoutTests:
      
              Reviewed by Adam.
      
              - Fix http://bugs.webkit.org/show_bug.cgi?id=14885
                LGPL'ed files contain incorrect FSF address
      
              * svg/carto.net/resources/button.js:
              * svg/carto.net/resources/colourPicker.js:
              * svg/carto.net/resources/comboBox.js:
              * svg/carto.net/resources/helper_functions.js:
              * svg/carto.net/resources/mapApp.js:
              * svg/carto.net/resources/scrollbar.js:
              * svg/carto.net/resources/selectionList.js:
              * svg/carto.net/resources/slider.js:
              * svg/carto.net/resources/tabgroup.js:
              * svg/carto.net/resources/textbox.js:
              * svg/carto.net/resources/window.js:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@25754 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c8eccecd
  18. 25 Apr, 2007 1 commit
    • hyatt's avatar
      Rearchitect calcPrefWidths. The calculation is now done lazily only when minPrefWidth · 818bb121
      hyatt authored
              or maxPrefWidth are asked for.  The result of the calculation is cached.
      
              The new invalidation scheme for pref width invalidation follows the
              containing block hierarchy and knows to halt at positioned objects, since
              they cannot influence the size of their containers.
      
              Reviewed by darin
      
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::init):
              (WebCore::CSSStyleSelector::initForStyleResolve):
              * page/FrameView.cpp:
              (WebCore::FrameView::layout):
              * rendering/RenderApplet.cpp:
              (WebCore::RenderApplet::layout):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::makeChildrenNonInline):
              (WebCore::RenderBlock::removeChild):
              (WebCore::RenderBlock::layout):
              (WebCore::RenderBlock::layoutBlock):
              (WebCore::RenderBlock::calcPrefWidths):
              (WebCore::InlineMinMaxIterator::endOfInline):
              (WebCore::shouldGrowTableCellForImage):
              (WebCore::RenderBlock::calcInlinePrefWidths):
              (WebCore::RenderBlock::calcBlockPrefWidths):
              * rendering/RenderBlock.h:
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::setStyle):
              (WebCore::RenderBox::minPrefWidth):
              (WebCore::RenderBox::maxPrefWidth):
              (WebCore::RenderBox::calcWidth):
              (WebCore::RenderBox::calcWidthUsing):
              (WebCore::RenderBox::calcAbsoluteHorizontal):
              (WebCore::RenderBox::calcAbsoluteHorizontalValues):
              * rendering/RenderBox.h:
              * rendering/RenderContainer.cpp:
              (WebCore::RenderContainer::removeChildNode):
              (WebCore::RenderContainer::appendChildNode):
              (WebCore::RenderContainer::insertChildNode):
              (WebCore::RenderContainer::layout):
              * rendering/RenderContainer.h:
              (WebCore::RenderContainer::moveChildNode):
              * rendering/RenderCounter.cpp:
              (WebCore::RenderCounter::dirtyLineBoxes):
              (WebCore::RenderCounter::calcPrefWidths):
              * rendering/RenderCounter.h:
              * rendering/RenderFileUploadControl.cpp:
              (WebCore::RenderFileUploadControl::calcPrefWidths):
              * rendering/RenderFlexibleBox.cpp:
              (WebCore::RenderFlexibleBox::calcHorizontalPrefWidths):
              (WebCore::RenderFlexibleBox::calcVerticalPrefWidths):
              (WebCore::RenderFlexibleBox::calcPrefWidths):
              (WebCore::RenderFlexibleBox::layoutBlock):
              * rendering/RenderForeignObject.cpp:
              (WebCore::RenderForeignObject::layout):
              * rendering/RenderFrameSet.cpp:
              (WebCore::RenderFrameSet::layout):
              * rendering/RenderHTMLCanvas.cpp:
              (WebCore::RenderHTMLCanvas::layout):
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::layout):
              * rendering/RenderInline.cpp:
              * rendering/RenderInline.h:
              * rendering/RenderListBox.cpp:
              (WebCore::RenderListBox::updateFromElement):
              (WebCore::RenderListBox::calcPrefWidths):
              * rendering/RenderListItem.cpp:
              (WebCore::firstNonMarkerChild):
              (WebCore::RenderListItem::updateMarkerLocation):
              (WebCore::RenderListItem::calcPrefWidths):
              (WebCore::RenderListItem::layout):
              * rendering/RenderListMarker.cpp:
              (WebCore::RenderListMarker::layout):
              (WebCore::RenderListMarker::calcPrefWidths):
              (WebCore::RenderListMarker::updateMargins):
              * rendering/RenderListMarker.h:
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::RenderObject):
              (WebCore::RenderObject::removeChildNode):
              (WebCore::RenderObject::moveChildNode):
              (WebCore::RenderObject::appendChildNode):
              (WebCore::RenderObject::insertChildNode):
              (WebCore::RenderObject::setPrefWidthsDirty):
              (WebCore::RenderObject::invalidateContainingBlockPrefWidths):
              (WebCore::RenderObject::information):
              (WebCore::RenderObject::setStyle):
              * rendering/RenderObject.h:
              (WebCore::RenderObject::layer):
              (WebCore::RenderObject::hasLayer):
              (WebCore::RenderObject::prefWidthsDirty):
              (WebCore::RenderObject::setNeedsLayoutAndPrefWidthsRecalc):
              (WebCore::RenderObject::setHasLayer):
              * rendering/RenderPartObject.cpp:
              (WebCore::RenderPartObject::layout):
              * rendering/RenderSVGContainer.cpp:
              (WebCore::RenderSVGContainer::layout):
              * rendering/RenderSVGContainer.h:
              * rendering/RenderSVGHiddenContainer.cpp:
              * rendering/RenderSVGHiddenContainer.h:
              * rendering/RenderSVGText.cpp:
              (WebCore::RenderSVGText::layout):
              * rendering/RenderTable.cpp:
              (WebCore::RenderTable::calcWidth):
              (WebCore::RenderTable::layout):
              (WebCore::RenderTable::removeChildNode):
              * rendering/RenderTable.h:
              * rendering/RenderTableRow.cpp:
              (WebCore::RenderTableRow::layout):
              * rendering/RenderTableSection.cpp:
              (WebCore::RenderTableSection::removeChildNode):
              * rendering/RenderTableSection.h:
              * rendering/RenderText.cpp:
              (WebCore::RenderText::trimmedPrefWidths):
              (WebCore::isSpaceAccordingToStyle):
              (WebCore::RenderText::minPrefWidth):
              (WebCore::RenderText::maxPrefWidth):
              (WebCore::RenderText::calcPrefWidths):
              (WebCore::RenderText::width):
              * rendering/RenderText.h:
              * rendering/RenderView.cpp:
              (WebCore::RenderView::RenderView):
              (WebCore::RenderView::calcPrefWidths):
              (WebCore::RenderView::layout):
              * rendering/RenderWidget.cpp:
              (WebCore::RenderWidget::layout):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21093 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      818bb121
  19. 24 Apr, 2007 1 commit
    • darin's avatar
      Reviewed by Adele. · 7e7c8e41
      darin authored
              - first round of preparation for Hyatt's "lazy minMaxWidth" change
                http://bugs.webkit.org/show_bug.cgi?id=13431
      
              This patch limits itself to renaming and making other super-simple
              changes so that the above change will be smaller and easier to review
              and understand.
      
              Rename:
      
                  calcHorizontalMinMaxWidth -> calcHorizontalPrefWidths
                  calcMinMaxWidth -> calcPrefWidths
                  calcMinMaxWidthInternal -> calcPrefWidthsInternal
                  calcVerticalMinMaxWidth -> calcVerticalPrefWidths
                  setNeedsLayoutAndMinMaxRecalc -> setNeedsLayoutAndPrefWidthsRecalc
                  trimmedMinMaxWidth -> trimmedPrefWidths
      
                  RenderObject::m_maxWidth -> RenderObject::m_maxPrefWidth
                  RenderObject::m_minWidth -> RenderObject::m_minPrefWidth
                  RenderObject::maxWidth() -> RenderObject::maxPrefWidth()
                  RenderObject::minWidth() -> RenderObject::minPrefWidth()
      
              Replace m_minMaxKnown, minMaxKnown(), and setMinMaxKnown() with
              m_prefWidthsDirty, prefWidthsDirty(), and setPrefWidthsDirty(),
              a boolean with the opposite sense.
      
              Convert some uses of if statements into "max".
      
              Change many uses of layer() to hasLayer(). For now it's just a boolean
              version of layer(), but Hyatt's patch makes it faster by using a bit.
      
              Added a guard to use of axObjectCache() to make RenderObject destruction
              a little faster for the normal case.
      
              Removed some assertions that will be removed in Hyatt's patch.
      
              Made some functions const that will be const in Hyatt's patch.
      
              Put in some revised comments from Hyatt's patch.
      
              Removed an unneeded nil check from RenderListMarker::setStyle.
      
              Moved RootInlineBox::setHorizontalOverflowPositions and
              RootInlineBox::setVerticalSelectionPositions to the RootInlineBox.h
              header and marked them inline.
      
              * dom/Document.cpp:
              (WebCore::Document::updateStyleSelector):
              * html/HTMLTextAreaElement.cpp:
              (WebCore::HTMLTextAreaElement::parseMappedAttribute):
              * page/Frame.cpp:
              (WebCore::Frame::forceLayoutWithPageWidthRange):
              * rendering/AutoTableLayout.cpp:
              (WebCore::AutoTableLayout::recalcColumn):
              (WebCore::AutoTableLayout::calcPrefWidths):
              (WebCore::AutoTableLayout::calcEffectiveWidth):
              * rendering/AutoTableLayout.h:
              * rendering/CounterNode.cpp:
              (WebCore::CounterNode::recount):
              * rendering/FixedTableLayout.cpp:
              (WebCore::FixedTableLayout::calcPrefWidths):
              * rendering/FixedTableLayout.h:
              * rendering/InlineFlowBox.cpp:
              (WebCore::InlineFlowBox::paint):
              * rendering/RenderApplet.cpp:
              (WebCore::RenderApplet::layout):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::removeChild):
              (WebCore::RenderBlock::layoutBlock):
              (WebCore::RenderBlock::handleCompactChild):
              (WebCore::RenderBlock::getClearDelta):
              (WebCore::RenderBlock::calcPrefWidths):
              (WebCore::RenderBlock::calcInlinePrefWidths):
              (WebCore::RenderBlock::calcBlockPrefWidths):
              * rendering/RenderBlock.h:
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::RenderBox):
              (WebCore::RenderBox::nodeAtPoint):
              (WebCore::RenderBox::calcWidth):
              (WebCore::RenderBox::calcWidthUsing):
              (WebCore::RenderBox::calcAbsoluteHorizontal):
              (WebCore::RenderBox::calcAbsoluteHorizontalValues):
              * rendering/RenderBox.h:
              (WebCore::RenderBox::minPrefWidth):
              (WebCore::RenderBox::maxPrefWidth):
              * rendering/RenderContainer.cpp:
              (WebCore::RenderContainer::removeChildNode):
              (WebCore::RenderContainer::appendChildNode):
              (WebCore::RenderContainer::insertChildNode):
              (WebCore::RenderContainer::layout):
              * rendering/RenderContainer.h:
              (WebCore::RenderContainer::calcPrefWidths):
              * rendering/RenderCounter.cpp:
              (WebCore::RenderCounter::calcPrefWidths):
              * rendering/RenderCounter.h:
              * rendering/RenderFieldset.cpp:
              (WebCore::RenderFieldset::calcPrefWidths):
              * rendering/RenderFieldset.h:
              * rendering/RenderFileUploadControl.cpp:
              (WebCore::RenderFileUploadControl::calcPrefWidths):
              * rendering/RenderFileUploadControl.h:
              * rendering/RenderFlexibleBox.cpp:
              (WebCore::RenderFlexibleBox::calcHorizontalPrefWidths):
              (WebCore::RenderFlexibleBox::calcVerticalPrefWidths):
              (WebCore::RenderFlexibleBox::calcPrefWidths):
              (WebCore::RenderFlexibleBox::layoutBlock):
              (WebCore::RenderFlexibleBox::allowedChildFlex):
              * rendering/RenderFlexibleBox.h:
              (WebCore::RenderFlexibleBox::hasMultipleLines):
              (WebCore::RenderFlexibleBox::isVertical):
              (WebCore::RenderFlexibleBox::isHorizontal):
              * rendering/RenderFlow.cpp:
              (WebCore::RenderFlow::absoluteClippedOverflowRect):
              * rendering/RenderForeignObject.cpp:
              (WebCore::RenderForeignObject::layout):
              * rendering/RenderFrameSet.cpp:
              (WebCore::RenderFrameSet::layout):
              * rendering/RenderHTMLCanvas.cpp:
              (WebCore::RenderHTMLCanvas::layout):
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::imageChanged):
              (WebCore::RenderImage::layout):
              (WebCore::RenderImage::calcPrefWidths):
              * rendering/RenderImage.h:
              * rendering/RenderInline.cpp:
              (WebCore::RenderInline::addChildToFlow):
              (WebCore::RenderInline::splitInlines):
              (WebCore::RenderInline::splitFlow):
              (WebCore::RenderInline::calcPrefWidths):
              * rendering/RenderInline.h:
              * rendering/RenderListBox.cpp:
              (WebCore::RenderListBox::updateFromElement):
              (WebCore::RenderListBox::calcPrefWidths):
              * rendering/RenderListBox.h:
              * rendering/RenderListItem.cpp:
              (WebCore::RenderListItem::updateValue):
              (WebCore::RenderListItem::updateMarkerLocation):
              (WebCore::RenderListItem::calcPrefWidths):
              (WebCore::RenderListItem::layout):
              (WebCore::RenderListItem::explicitValueChanged):
              * rendering/RenderListItem.h:
              * rendering/RenderListMarker.cpp:
              (WebCore::RenderListMarker::setStyle):
              (WebCore::RenderListMarker::layout):
              (WebCore::RenderListMarker::imageChanged):
              (WebCore::RenderListMarker::calcPrefWidths):
              (WebCore::RenderListMarker::calcWidth):
              * rendering/RenderListMarker.h:
              * rendering/RenderMenuList.cpp:
              (WebCore::RenderMenuList::updateOptionsWidth):
              (WebCore::RenderMenuList::calcPrefWidths):
              * rendering/RenderMenuList.h:
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::RenderObject):
              (WebCore::addLayers):
              (WebCore::RenderObject::removeLayers):
              (WebCore::RenderObject::moveLayers):
              (WebCore::RenderObject::addAbsoluteRectForLayer):
              (WebCore::RenderObject::checkForRepaintDuringLayout):
              (WebCore::RenderObject::dump):
              (WebCore::RenderObject::setStyle):
              (WebCore::RenderObject::destroy):
              (WebCore::RenderObject::recalcMinMaxWidths):
              * rendering/RenderObject.h:
              (WebCore::RenderObject::hasLayer):
              (WebCore::RenderObject::prefWidthsDirty):
              (WebCore::RenderObject::setPrefWidthsDirty):
              (WebCore::RenderObject::setNeedsLayoutAndPrefWidthsRecalc):
              (WebCore::RenderObject::calcPrefWidths):
              (WebCore::RenderObject::minPrefWidth):
              (WebCore::RenderObject::maxPrefWidth):
              * rendering/RenderPart.cpp:
              (WebCore::RenderPart::setWidget):
              * rendering/RenderPartObject.cpp:
              (WebCore::RenderPartObject::updateWidget):
              (WebCore::RenderPartObject::layout):
              * rendering/RenderReplaced.cpp:
              (WebCore::RenderReplaced::calcPrefWidths):
              * rendering/RenderReplaced.h:
              * rendering/RenderSVGContainer.cpp:
              (WebCore::RenderSVGContainer::calcPrefWidths):
              (WebCore::RenderSVGContainer::layout):
              * rendering/RenderSVGContainer.h:
              * rendering/RenderSVGHiddenContainer.cpp:
              (WebCore::RenderSVGHiddenContainer::calcPrefWidths):
              * rendering/RenderSVGHiddenContainer.h:
              * rendering/RenderSVGText.cpp:
              (WebCore::RenderSVGText::layout):
              * rendering/RenderSlider.cpp:
              (WebCore::RenderSlider::calcPrefWidths):
              * rendering/RenderSlider.h:
              * rendering/RenderTable.cpp:
              (WebCore::RenderTable::calcWidth):
              (WebCore::RenderTable::layout):
              (WebCore::RenderTable::calcPrefWidths):
              (WebCore::RenderTable::splitColumn):
              (WebCore::RenderTable::appendColumn):
              * rendering/RenderTable.h:
              * rendering/RenderTableCell.cpp:
              (WebCore::RenderTableCell::updateFromElement):
              (WebCore::RenderTableCell::styleOrColWidth):
              (WebCore::RenderTableCell::calcPrefWidths):
              * rendering/RenderTableCell.h:
              * rendering/RenderTableCol.cpp:
              (WebCore::RenderTableCol::updateFromElement):
              * rendering/RenderTableRow.cpp:
              (WebCore::RenderTableRow::layout):
              * rendering/RenderTableSection.cpp:
              (WebCore::RenderTableSection::paint):
              * rendering/RenderText.cpp:
              (WebCore::RenderText::trimmedPrefWidths):
              (WebCore::RenderText::calcPrefWidths):
              (WebCore::RenderText::calcPrefWidthsInternal):
              (WebCore::RenderText::setText):
              * rendering/RenderText.h:
              (WebCore::RenderText::minPrefWidth):
              (WebCore::RenderText::maxPrefWidth):
              * rendering/RenderTextControl.cpp:
              (WebCore::RenderTextControl::calcPrefWidths):
              * rendering/RenderTextControl.h:
              * rendering/RenderView.cpp:
              (WebCore::RenderView::RenderView):
              (WebCore::RenderView::calcPrefWidths):
              (WebCore::RenderView::layout):
              * rendering/RenderView.h:
              * rendering/RenderWidget.cpp:
              (WebCore::RenderWidget::layout):
              * rendering/RootInlineBox.cpp:
              * rendering/RootInlineBox.h:
              (WebCore::RootInlineBox::setHorizontalOverflowPositions):
              (WebCore::RootInlineBox::setVerticalSelectionPositions):
              * rendering/TableLayout.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21079 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7e7c8e41
  20. 22 Jan, 2007 1 commit
    • darin's avatar
      LayoutTests: · 42563ac5
      darin authored
              Test by Andrew Wellington <proton@wiretapped.net>.
              Reviewed by Darin.
              
              - test for fix to http://bugs.webkit.org/show_bug.cgi?id=11197
                REGRESSION: Specifying a counter for a CODE tag's content style
                property on before or after causes a crash.
      
              * fast/css/beforeSelectorOnCodeElement-expected.checksum: Added.
              * fast/css/beforeSelectorOnCodeElement-expected.png: Added.
              * fast/css/beforeSelectorOnCodeElement-expected.txt: Added.
              * fast/css/beforeSelectorOnCodeElement.html: Added.
      
              Test by Mitz.
              Reviewed by Darin.
      
              - test for monospace problem mentioned in the above bug
              
              * fast/text/monospace-width-cache-expected.checksum: Added.
              * fast/text/monospace-width-cache-expected.png: Added.
              * fast/text/monospace-width-cache-expected.txt: Added.
              * fast/text/monospace-width-cache.html: Added.
      
      WebCore:
      
              Reviewed by Mitz.
      
              Inspired by a much simpler patch by Andrew Wellington <proton@wiretapped.net>.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=11197
                REGRESSION: Specifying a counter for a CODE tag's content style property
                on before or after causes a crash.
      
              Test: fast/css/beforeSelectorOnCodeElement.html
      
              - fix regression I recently introduced where the monospace cache could be
                used for text that was not ASCII, if text was changed after the style was set
      
              Test: fast/text/monospace-width-cache.html
      
              - streamline RenderText.h -- remove unneeded functions, make some needlessly
                virtual functions non-virtual, remove unneeded header includes, replace use
                of Font* with Font& for consistency with RenderStyle, use "text" consistently
                instead of "string"
      
              * rendering/RenderText.h: Removed unneeded include of "Text.h", declarations of
              SOFT_HYPHEN, DocumentMarker, InlineBox, Position, String. Got rid of friend
              declaration for InlineTextBox. Changed constructor to take a PassRefPtr since
              we do take owership of the passed-in text. Made deleteTextBoxes() private.
              Removed unneeded data(). Made override of length() private so people will use
              the faster textLength() instead. Renamed string() to text() so it matches up
              better with setText(). Same for stringLength(), originalString(), and
              setInternalString(), which are now textLength(), originalText(), and
              setTextInternal(). Renamed the old text() function to characters(), since it
              returns a pointer as StringImpl::characters does. Changed Font* to Font& everywhere.
              Renamed the internal calcMinMaxWidth() function to calcMinMaxWidthInternal() and
              made it non-virtual since it's not overriden anywhere. Also made the
              trimmedMinMaxWidth() function non-virtual. Made containsOnlyWhitespace() private.
              Removed both font() functions (one was needlessly virtual) and element().
              Renamed cacheWidths() to updateMonospaceCharacterWidth() and removed the
              shouldUseMonospaceCache() function. Renamed allAscii() to isAllASCII() and made
              it an inline function. Removed the m_allAsciiChecked flag and renamed the
              m_allAscii flag to m_isAllASCII.
              * rendering/RenderText.cpp:
              (WebCore::RenderText::RenderText): Removed initialization of m_allAsciiChecked.
              Initialize m_isAllASCII. Changed all occurrences of m_str->length() and
              m_str->characters () to use the stringLength() and characters() inline functions
              instead.
              (WebCore::RenderText::setStyle): Replaced the unconditional call to cacheWidths
              with a conditional call to updateMonospaceCharacterWidth. This speeds up the common
              case where style is changed without changing the font.
              (WebCore::RenderText::originalText): Changed code to not depend on overridden
              element() function with casts to a Text node -- this was one of only two call sites.
              Also renamed.
              (WebCore::RenderText::positionForCoordinates): Name change.
              (WebCore::RenderText::caretRect): Ditto.
              (WebCore::RenderText::updateMonospaceCharacterWidth): Renamed from cacheWidths and
              incorporate the check that was formerly in a separate shouldUseMonospaceCache
              function.
              (WebCore::RenderText::widthFromCache): Changed to take a Font& instead of Font*.
              Changed to take advantage of the fact that the string is known to be all ASCII in
              the m_monospaceCharacterWidth code path.
              (WebCore::RenderText::trimmedMinMaxWidth): Ditto. Also use style()->font() instead
              of font(false).
              (WebCore::RenderText::calcMinMaxWidth): Ditto. Also changed to use softHyphen instead
              of SOFT_HYPHEN.
              (WebCore::RenderText::containsOnlyWhitespace): More of the same.
              (WebCore::RenderText::setSelectionState): Ditto.
              (WebCore::RenderText::setTextWithOffset): Ditto.
              (WebCore::isInlineFlowOrEmptyText): Ditto.
              (WebCore::RenderText::setTextInternal): Updated for name changes. Also changed to
              set the m_isAllASCII flag every time, in the more-efficient way we use elsewhere
              (or'ing all the characters together), and to call updateMonospaceCharacterWidth
              if the "all ASCII"-ness of the text changes.
              (WebCore::RenderText::setText): Updated for name changes.
              (WebCore::RenderText::width): More like above.
              (WebCore::RenderText::selectionRect): Ditto.
              (WebCore::RenderText::caretMaxOffset): Ditto.
              (WebCore::RenderText::previousOffset): Ditto.
              (WebCore::RenderText::nextOffset): Ditto.
      
              * dom/Position.cpp:
              * dom/Range.cpp:
              * editing/CompositeEditCommand.cpp:
              * editing/DeleteSelectionCommand.cpp:
              * editing/VisiblePosition.cpp:
              * html/HTMLElement.cpp:
              Added now-needed include of "Text.h" which is no longer included by "RenderText.h".
      
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::debugRenderer):
              * editing/TextIterator.cpp:
              (WebCore::TextIterator::handleTextNode):
              (WebCore::TextIterator::handleTextBox):
              (WebCore::SimplifiedBackwardsTextIterator::handleTextNode):
              Update for name changes of stringLength(), string(), and originalString() to
              textLength(), text(), and originalText(), and to always use textLength() instead
              of length() when we have a RenderText* rather than a RenderObject*.
              * editing/visible_units.cpp:
              (WebCore::startOfParagraph): Ditto.
              (WebCore::endOfParagraph): Ditto.
              * rendering/InlineFlowBox.cpp:
              (WebCore::InlineFlowBox::placeBoxesHorizontally): Ditto. Also removed use of the
              RenderObject::font() function and replaced it with explicit access to the style.
              (WebCore::InlineFlowBox::placeBoxesVertically): Ditto.
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::selectionRect): Ditto.
              (WebCore::InlineTextBox::isLineBreak): Ditto.
              (WebCore::InlineTextBox::paint): Ditto.
              (WebCore::InlineTextBox::selectionStartEnd): Ditto.
              (WebCore::InlineTextBox::paintSelection): Ditto.
              (WebCore::InlineTextBox::paintMarkedTextBackground): Ditto.
              (WebCore::InlineTextBox::paintSpellingOrGrammarMarker): Ditto.
              (WebCore::InlineTextBox::paintTextMatchMarker): Ditto.
              (WebCore::InlineTextBox::offsetForPosition): Ditto.
              (WebCore::InlineTextBox::positionForOffset): Ditto.
              * rendering/RenderContainer.cpp:
              (WebCore::RenderContainer::addChild): Ditto.
              * rendering/RenderCounter.cpp:
              (WebCore::RenderCounter::originalText): Ditto.
              (WebCore::RenderCounter::calcMinMaxWidth): Ditto.
              * rendering/RenderCounter.h: Ditto.
              * rendering/RenderTextFragment.cpp:
              (WebCore::RenderTextFragment::originalText): Ditto.
              * rendering/RenderTextFragment.h: Ditto.
              * rendering/SVGInlineFlowBox.cpp:
              (WebCore::placePositionedBoxesHorizontally): Ditto.
              (WebCore::placeBoxesVerticallyWithAbsBaseline): Ditto.
              * rendering/bidi.cpp:
              (WebCore::BidiIterator::increment): Ditto.
              (WebCore::BidiIterator::current): Ditto.
              (WebCore::BidiIterator::direction): Ditto.
              (WebCore::addRun): Ditto.
              (WebCore::checkMidpoints): Ditto.
              (WebCore::RenderBlock::computeHorizontalPositionsForLine): Ditto.
              (WebCore::RenderBlock::skipWhitespace): Ditto.
              (WebCore::RenderBlock::findNextLineBreak): Ditto.
      
              * rendering/RenderBR.h: Updated signature of width function which now takes a
              Font& instead of a Font*.
      
              * rendering/RenderBlock.cpp: (WebCore::stripTrailingSpace): Updated to no longer
              use the RenderObject::font() function, and added a comment about first-line, which
              is not handled properly here.
      
              * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::text):
              * rendering/RenderTreeAsText.cpp: (WebCore::writeTextRun):
              Eliminated use of RenderText::data().
      
              * rendering/RenderObject.h: Removed RenderObject::font(). This had the bad effect of
              having everyone pass in a boolean rather than using the cleaner style() and
              firstLineStyle() functions in cases where there's no a firstLineStyle boolean.
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::getVerticalPosition): Replaced use of RenderObject::font()
              with direct use of the style instead, which is arguably easier to understand anyway.
              (WebCore::RenderObject::baselinePosition): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19027 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      42563ac5
  21. 09 Jan, 2007 1 commit
    • darin's avatar
      JavaScriptCore: · b5a0e3df
      darin authored
              - update 2007 Apple copyright for the new company name
      
              * kjs/DateMath.cpp:
      
      WebCore:
      
              - update all 2007 Apple copyrights for the new company name
      
              * css/cssstyleselector.cpp:
              * html/HTMLLIElement.cpp:
              * platform/CharacterNames.h:
              * platform/TextBreakIterator.h:
              * platform/TextBreakIteratorICU.cpp:
              * platform/graphics/ImageBuffer.h:
              * rendering/CounterNode.cpp:
              * rendering/CounterNode.h:
              * rendering/RenderBox.h:
              * rendering/RenderContainer.cpp:
              * rendering/RenderCounter.cpp:
              * rendering/RenderCounter.h:
              * rendering/RenderImage.h:
              * rendering/RenderListItem.h:
              * rendering/RenderListMarker.h:
              * rendering/RenderObject.cpp:
              * rendering/RenderObject.h:
              * rendering/RenderStyle.cpp:
              * rendering/RenderStyle.h:
              * rendering/RenderTable.cpp:
              * rendering/RenderTableCell.cpp:
              * rendering/RenderTableCell.h:
              * rendering/RenderText.cpp:
              * rendering/RenderText.h:
              * rendering/RenderTreeAsText.cpp:
              * rendering/SVGRenderTreeAsText.cpp:
              * rendering/break_lines.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18724 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b5a0e3df
  22. 05 Jan, 2007 1 commit
    • darin's avatar
      LayoutTests: · ec37548b
      darin authored
              Reviewed by Hyatt.
      
              - added a new version of the CSS 2.1 test from the W3C site
              - added counters, list, and other CSS tests for my counter-related check-in
      
              * css2.1: Updated to the 2006-10-11 version of the test suite.
              I downloaded it from http://www.w3.org/Style/CSS/Test/CSS2.1/20061011/
              added UTF-8 BOMs to the beginning of all the files, and generated expected
              results.
      
              * fast/css-generated-content/reset-content-to-initial-expected.txt: Updated
              to reflect a bug fix in CSS content property support.
      
              * fast/css/counters/*: Removed all the existing tests since they are now part
              of the CSS 2.1 test suite.
      
              * fast/css/counters/counter-text-security-expected.checksum:  Added. New test.
              * fast/css/counters/counter-text-security-expected.png: Ditto.
              * fast/css/counters/counter-text-security-expected.txt: Ditto.
              * fast/css/counters/counter-text-security.html: Ditto.
      
              * fast/css/counters/counter-text-transform-expected.checksum: Added. New test.
              * fast/css/counters/counter-text-transform-expected.png: Ditto.
              * fast/css/counters/counter-text-transform-expected.txt: Ditto.
              * fast/css/counters/counter-text-transform.html: Ditto.
      
              * fast/lists/decimal-leading-zero-expected.checksum: Added. New test.
              * fast/lists/decimal-leading-zero-expected.png: Ditto.
              * fast/lists/decimal-leading-zero-expected.txt: Ditto.
              * fast/lists/decimal-leading-zero.html: Ditto.
      
              * fast/css/text-security-expected.checksum:  Added. New test.
              * fast/css/text-security-expected.png: Ditto.
              * fast/css/text-security-expected.txt: Ditto.
              * fast/css/text-security.html: Ditto.
      
              * fast/lists/decimal-leading-zero-expected.checksum: Added. New test.
              * fast/lists/decimal-leading-zero-expected.png: Ditto.
              * fast/lists/decimal-leading-zero-expected.txt: Ditto.
              * fast/lists/decimal-leading-zero.html: Ditto.
      
              * fast/lists/li-values-expected.checksum: Added. New test.
              * fast/lists/li-values-expected.png: Ditto.
              * fast/lists/li-values-expected.txt: Ditto.
              * fast/lists/li-values.html: Ditto.
      
              * fast/css/import-rule-regression-11590-expected.checksum: Added. Missing
              pixel-test results.
              * fast/css/import-rule-regression-11590-expected.png: Ditto.
              * fast/dom/css-insert-import-rule-expected.checksum: Ditto.
              * fast/dom/css-insert-import-rule-expected.png: Ditto.
              * fast/forms/encoding-test-expected.checksum: Ditto.
              * fast/forms/encoding-test-expected.png: Ditto.
              * fast/frames/frame-src-attribute-expected.checksum: Ditto.
              * fast/frames/frame-src-attribute-expected.png: Ditto.
              * fast/frames/onlyCommentInIFrame-expected.png: Ditto.
              * fast/frames/viewsource-attribute-expected.checksum: Ditto.
              * fast/frames/viewsource-attribute-expected.png: Ditto.
              * fast/loader/start-load-in-unload-expected.checksum: Ditto.
              * fast/loader/start-load-in-unload-expected.png: Ditto.
      
      WebCore:
      
              Reviewed by Hyatt.
      
              - eliminated use of DeprecatedString for list item markers
              - eliminated use of DeprecatedValueList for border style collapsing
              - made many members private instead of protected or public
      
              - reworked counter implementation to fix most of the CSS 2.1 counter tests;
                  made CounterNode be a simple non-polymorphic class, moved most counter-
                  specific code out of RenderObject into RenderCounter, changed the data
                  structure in RenderStyle to be more speed-efficient but less space-
                  efficient for nodes with counter styles
              - fixed http://bugs.webkit.org/show_bug.cgi?id=11557
      
              Tests: css2.1
      
              - fixed a bug where counter text did not have text transform or text security
                applied to it
      
              Test: fast/css/counters/counter-text-security.html
              Test: fast/css/counters/counter-text-transform.html
      
              - improved handling of CSS content property values with data of the wrong
                type; this probably needs a bit more refinement
      
              Test: fast/css-generated-content/reset-content-to-initial-expected.txt
      
              - fixed a bug where removing the value attribute from an HTMLLIElement would
                set the list item's value to 0 instead of restoring it to normal
      
              Test: fast/lists/li-values.html
      
              - fixed a bug where changing the text security style from one style to another
                would not change the displayed text
      
              Test: fast/css/text-security.html
      
              - fixed some problems handling long sequences of counter-related styles;
                still needs more work and some super-large test cases to check if
                recursive algorithms for these that will overflow stack remain
      
              - added support for list styles decimal-leading-zero, hiragana, hirigana-iroha,
                katakana, katakana-iroha, cjk-ideographic, armenian, and georgian
      
              Test: fast/lists/decimal-leading-zero.html
      
              - minor tweaks and bug fixes for other list styles, including range checking
      
              * WebCore.exp: Updated for RenderListItem change.
      
              * bridge/mac/WebCoreAXObject.mm: (-[WebCoreAXObject value]): Updated to use
              String instead of DeprecatedString.
      
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Removed
              implementation for counter styles for now. We should probably restore it
              later, but we need to make sure the returned list is separate from the
              original list in the DOM -- modifying the list should not change the element
              it was computed from.
      
              * css/Counter.h: Removed unneeded empty constructor and destructor.
      
              * css/cssstyleselector.cpp:
              (WebCore::applyCounterList): Added. Stores counter directives in hash tables
              that should allow us to efficiently implement dynamic counter changes. Full
              support will have to wait for a future check-in.
              (WebCore::CSSStyleSelector::applyProperty): Changed counter properties to
              call applyCounterList. Reformatted the code to parse the content property for
              changes to RenderStyle and to handle the case where some the items in the
              content list don't generate any content.
      
              * editing/visible_units.cpp:
              * rendering/RenderBox.cpp:
              * rendering/RenderFlexibleBox.cpp:
              * rendering/RenderFlow.cpp:
              * rendering/RenderSlider.cpp:
              Added includes needed because of header changes.
      
              * html/HTMLLIElement.H: Removed unneeded m_isValued.
              * html/HTMLLIElement.cpp:
              (WebCore::HTMLLIElement::parseMappedAttribute): To match test results seen
              in WinIE, ignore values that are 0 or negative, and use new functions in
              RenderListItem to communicate the lack of a valid value.
              (WebCore::HTMLLIElement::attach): More of the same.
      
              * rendering/CounterNode.h: Made CounterNode be a non-polymorphic class,
              removing all the subclasses. Merged in CounterResetNode. Removed
              m_total from CounterResetNode, because it isn't needed for any of
              the styles (decimal-leading-zero always uses two digits). Removed
              m_hasSeparator and m_willNeedLayout since they aren't needed any more.
              Renamed m_count to m_countInParent for clarify, and named the list
              links the same as their associated functions. Removed many functions
              as well.
              * rendering/CounterNode.cpp:
              (WebCore::CounterNode::CounterNode): Added new fields.
              (WebCore::CounterNode::computeCountInParent): Added. Used by recount.
              (WebCore::CounterNode::recount): Simplified by removing unused parameter and the
              "get next" idiom. Changed to be iterative instead of recursive so we can handle
              arbitrarily long lists.
              (WebCore::CounterNode::insertAfter): Moved here from CounterResetNode. Updated
              for field name changes. Corrected rule for when to recount.
              (WebCore::CounterNode::removeChild): Moved here from CounterResetNode. Changed
              to only work on nodes without children. Corrected rule for when to recount.
              (WebCore::nextInPreOrderAfterChildren): Added. For debugging only.
              (WebCore::nextInPreOrder): Ditto.
              (WebCore::showTreeAndMark): Ditto.
              (showTree): Ditto.
      
              * rendering/CounterListItem.h:
              * rendering/CounterResetNode.h:
              * rendering/CounterResetNode.cpp:
              Marked ready to remove. I'll do the remove in a separate patch, since I have
              to update a lot of different make files when I do.
      
              * rendering/ListMarkerBox.cpp: (WebCore::ListMarkerBox::isText): Changed for the
              change to RenderListMarker.
      
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::addChildToFlow): Changed to use functions instead of
              direct field access so the fields can be private and we don't need to be friends.
              (WebCore::RenderBlock::getBaselineOfFirstLineBox): Ditto.
              (WebCore::RenderBlock::getBaselineOfLastLineBox): Ditto.
              * rendering/RenderBlock.h:
              (WebCore::RenderBlock::initMaxMarginValues): Ditto.
              (WebCore::RenderBlock::firstRootBox): Ditto.
              (WebCore::RenderBlock::lastRootBox): Ditto.
              * rendering/RenderBox.h:
              (WebCore::RenderBox::setWidth): Ditto.
              (WebCore::RenderBox::setHeight): Ditto.
              * rendering/RenderButton.cpp:
              (WebCore::RenderButton::addChild): Ditto.
              * rendering/bidi.cpp:
              (WebCore::RenderBlock::determineStartPosition): Ditto.
      
              * rendering/RenderContainer.h: Renamed m_first and m_last to m_firstChild
              and m_lastChild. Made them private instead of proected. Removed the
              setFirstChild and setLastChild functions.
              * rendering/RenderContainer.cpp:
              (WebCore::RenderContainer::RenderContainer): Updated for field name change.
              Changed all calls to get at fields directly instead of using functions.
              (WebCore::RenderContainer::destroyLeftoverChildren): Ditto.
              (WebCore::updateListMarkerNumbers): Updated for RenderListItem change.
              (WebCore::RenderContainer::addChild): Changed to get at fields directly
              instead of using functions. Also used release() since RenderText::setText
              now takes PassRefPtr.
              (WebCore::RenderContainer::removeChildNode): Changed to get at fields directly
              instead of using functions.
              (WebCore::RenderContainer::updatePseudoChildForObject): Create the anonymous
              box only if at least one of of the items in the content list actually
              generates content. Since a RenderCounter is a RenderText, don't bother making
              a new style for it -- it just shares the style with its parent. Changed code
              to use RenderImage::setCachedImage() instead of of setContentObject().
              Added a call to setIsAnonymousImage() here, which was the only special thing
              that setContentObject() used to do. Pass a reference to the counter to the
              RenderCounter rather than a pointer. Pass document() as the node instead of
              passing the element to RenderCounter, which makes it anonymous automatically,
              and removed the setIsAnonymous call.
              (WebCore::RenderContainer::appendChildNode): Chagned to get at fields directly
              instead of using functions.
              (WebCore::RenderContainer::insertChildNode): Ditto.
              (WebCore::RenderContainer::layout): Ditto.
              (WebCore::RenderContainer::removeLeftoverAnonymousBoxes): Ditto.
              (WebCore::RenderContainer::positionForCoordinates): Ditto.
              (WebCore::RenderContainer::addLineBoxRects): Ditto.
      
              * rendering/RenderCounter.h: Removed unneeded layout override, never called on a
              text node. Added override of originalString. Replaced CounterData* with a copy of
              the CounterContent -- it's two atomic strings and an integer so it's efficient
              enough to store all three in the render object, and this eliminates the lifetime
              problems we could have if we used a pointer.
              * rendering/RenderCounter.cpp: Removed duplicate copy of list marker code.
              (WebCore::counterMaps): Moved these maps here from RenderObject.
              (WebCore::previousSiblingOrParent): Added.
              (WebCore::lastDescendant): Added.
              (WebCore::previousInPreOrder): Added.
              (WebCore::planCounter): Added.
              (WebCore::findPlaceForCounter): Added.
              (WebCore::counter): New name of function that was named RenderObject::findCounter.
              Also uses a new algorithm that passes all the CSS 2.1 tests.
              (WebCore::RenderCounter::RenderCounter): Changed to take a Document* instead of a
              Node*, since at the moment counters are always anonymous.
              (WebCore::RenderCounter::originalString): Added. This overrides the originalString
              in the RenderText base class so that any text transforms will use the counter's
              value. This code was previously in calcMinMaxWidth.
              (WebCore::RenderCounter::calcMinMaxWidth): Changed to call setInternalString and
              pass originalString -- this uses the counter's value from the counter tree.
              (WebCore::destroyCounterNodeChildren): Added.
              (WebCore::RenderCounter::destroyCounterNodes): Added. Called as needed from
              RenderObject::destroy for objects that have counter nodes.
      
              * rendering/RenderFlow.h: Made m_continuation private instead of protected.
      
              * rendering/RenderImage.h: Removed unneeded includes, and unnecessary element()
              function that casts to HTMLElement*. Made image() protected, and made the two
              calcAspectRatio functions private. Removed setContentObject(). Renamed the
              errorOccured() function to isErrorImage() and made it private.
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::RenderImage): Removed initialization of removed
              m_selectionState field.
              (WebCore::RenderImage::setCachedImage): Rearrange code so it won't try to
              call isErrorImage() on a null image.
              (WebCore::RenderImage::paint): Updated for name change.
      
              * rendering/RenderListBox.h: Removed unneeded forward declarations.
      
              * rendering/RenderListItem.h:
              Renamed markerStringValue() to markerText() and made it return a String instead of
              a DeprecatedString. Renamed m_prededfVal to m_explicitValue. Added booleans named
              m_hasExplicitValue and m_isValueUpToDate and marked m_value mutable so it can be
              computed in const member functions.
              (WebCore::RenderListItem::value): Changed to update value on demand at the time
              you ask for it.
              (WebCore::RenderListItem::hasExplicitValue): Added. Use instead of magic -1 value
              to indicate that the item does or does not have an explicit value.
              (WebCore::RenderListItem::explicitValue): Added.
              (WebCore::RenderListItem::setExplicitValue): Added.
              (WebCore::RenderListItem::clearExplicitValue): Added.
              * rendering/RenderListItem.cpp:
              (WebCore::RenderListItem::RenderListItem): Updated to not use magic -1 values.
              (WebCore::RenderListItem::setStyle): Removed call to RenderListMarker::setListItem
              since it's not needed any more, and instead pass the list item to the constructor.
              (WebCore::previousListItem): Made parameter const.
              (WebCore::RenderListItem::calcValue): Restructed the function a bit.
              (WebCore::RenderListItem::updateValueNow): Added. Calls calcValue.
              (WebCore::RenderListItem::updateValue): Added. New name for resetValue(). Unlike
              the old version, this no longer calculates the value until it's asked-for later.
              (WebCore::RenderListItem::markerText): Changed to return String rather than a
              DeprecatedString and to return a null string rather than empty string when there
              is no marker.
      
              * rendering/RenderListMarker.h: Added listMarkerText function -- common code shared
              with anyone who needs to convert a value into text given a list style.
              Changed constructor to take a RenderListItem and figure out the document from that.
              Added isImage() and isText() functions and removed listImage() function. Changed the
              type of the text() function from DeprecatedString to String. Removed the listItem()
              and seListeItem() functions. Made the getRelativeMarkerRect() function private.
              Renamed m_item to m_text and chagned it from DeprecatedString to String. Renamed
              m_listImage to m_image.
              * rendering/RenderListMarker.cpp:
              (WebCore::toRoman): Added range checking to fix buffer overrun for large or negative
              numbers. Rewrote to use a local UChar array and String rather than prepending to a
              DeprecatedString.
              (WebCore::toAlphabetic): Replaces toLetterString, and is more flexible since it takes
              an alphabet array. Changed to match CSS 3 specification by using decimal numbering for
              0 and negative numbers. Rewrote to use a local UChar array and String rather than
              prepending to a DeprecatedString.
              (WebCore::toHebrewUnder1000): Added. Helper function for Hebrew numbers so we can
              handle numbers up to a million.
              (WebCore::toHebrew): Changed to use toHebrewUnder1000, added a special case for
              zero, negative, and too-large numbers.
              (WebCore::toArmenianUnder10000): Added. Used by toArmenian.
              (WebCore::toArmenian): Added.
              (WebCore::toGeorgian): Added.
              (WebCore::toCJKIdeographic): Added.
              (WebCore::listMarkerText): Added. Moved the code here from calcMinMaxWidth, but added
              support for text for the styles disc, circle, square, decimal-leading-zero, hiragana,
              hirigana-iroha, katakana, katakana-iroha, cjk-ideographic, armenian, and georgian.
              Also changed some of the styles to share the new toAlphabetic function.
              (WebCore::RenderListMarker::RenderListMarker): Updated for name changes and list
              item parameter.
              (WebCore::RenderListMarker::~RenderListMarker): Updated for name changes.
              (WebCore::RenderListMarker::setStyle): Updated for name changes.
              (WebCore::RenderListMarker::isImage): Added. Useful helper that unifies the check
              for no image and the error image.
              (WebCore::RenderListMarker::paint): Updated for name changes to to use isImage()
              and rearranged the code a bit.
              (WebCore::RenderListMarker::imageChanged): Updated for name change
              (WebCore::RenderListMarker::calcMinMaxWidth): Updated for name change, fixed a bug
              where we'd leave the old text around if we were using an image-based marker. Also
              changed the code to use isImage() instead of checking m_listImage.
              (WebCore::RenderListMarker::calcWidth): Changed to use isImage().
              (WebCore::RenderListMarker::lineHeight): Changed to use isImage().
              (WebCore::RenderListMarker::baselinePosition): Changed to use isImage().
              (WebCore::RenderListMarker::getRelativeMarkerRect): Changed to use isImage(),
              restructured the code a little.
      
              * rendering/RenderObject.h: Removed now-uneeded includes. Removed collectBorders()
              and isFormElement(). Made remove() function and m_hasCounterNodeMap public so
              we could remove friend declarations for RenderListItem and RenderView.
              Moved findCounter() to become a private function inside RenderCounter.cpp.
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::createObject): Fix bug where a contentData() with
              CONTENT_NONE is treated as image content -- only look at the content property
              if it has exactly one entry which is a CONTENT_OBJECT.
              (WebCore::RenderObject::selectionStartEnd): Add const.
              (WebCore::RenderObject::destroy): Moved counter-specific code to
              RenderCounter::destroyCounterNodes.
              (WebCore::RenderObject::recalcMinMaxWidths): Changed code to set m_recalcMinMax
              near the top of the function -- the old code would potentially reset it after it
              was set by the calcMinMaxWidths functions, and possibly skip a future needed
              recalc. That came up in counter test cases. Removed unneeded boolean check right
              after an assertion.
      
              * rendering/RenderPart.h: Marked two virtual functions virtual for clarity.
      
              * rendering/RenderReplaced.h: Made shouldPaint be protected, and made
              m_intrinsicWidth, m_intrinsicHeight, and m_selectionState be private.
              Also marked isSelected() const.
              * rendering/RenderReplaced.cpp: Added newly-needed include.
              (WebCore::RenderReplaced::RenderReplaced): Use constructor syntax.
              (WebCore::RenderReplaced::isSelected): Made const and changed to call the
              selectionStartEnd function in the straightforward way.
      
              * rendering/RenderSVGText.cpp:
              (WebCore::RenderSVGText::absoluteRects): Use functions instead of direct field
              access so the fields can be private.
              (WebCore::RenderSVGText::relativeBBox): Ditto.
      
              * rendering/RenderStyle.h: Tweaked formatting. Changed names of CSS3 holders
              to say "rare" instead, since it's not all CSS 3. Renamed CounterData to
              CounterContent, since it's used inside ContentData. Changed names of fields in
              ContentData to have m prefix. Moved content and counter fields into the rare
              non-inherited data object. Removed unneeded assignment operator from a class
              that already inherits from Shared which makes it start out noncopyable.
              * rendering/RenderStyle.cpp: Name changes, plus:
              (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
              Updated for added fields (content, counter-reset, counter-increment).
              (WebCore::StyleRareNonInheritedData::~StyleRareNonInheritedData): Ditto.
              (WebCore::StyleRareNonInheritedData::operator==): Reformatted and sorted so it's
              easy to see if any fields are missing.
              (WebCore::operator!=): Added. Compares two CounterContent objects.
              (WebCore::RenderStyle::arenaDelete): Removed code to handle content, which is
              now in the rareNonInheritedData structure.
              (WebCore::RenderStyle::RenderStyle): Ditto.
              (WebCore::RenderStyle::inheritFrom): Ditto.
              (WebCore::RenderStyle::operator==): Ditto.
              (WebCore::RenderStyle::inheritedNotEqual):
              (WebCore::RenderStyle::diff):
              (WebCore::RenderStyle::contentDataEquivalent): Added case for counter,
              which previously would be ignored when determining if content is equivalent.
              (WebCore::RenderStyle::clearContent): Added.
              (WebCore::RenderStyle::setContent): Updated for change in content location.
              (WebCore::ContentData::clear): Changed algorithm so that it's not recursive
              and thus can handle a very long list of ContentData.
              (WebCore::operator==): Added. Compares two CounterDirective objects.
              (WebCore::RenderStyle::counterDirectives): Added.
              (WebCore::RenderStyle::accessCounterDirectives): Added.
      
              * rendering/RenderTable.h: Made m_currentBorder const to better reflect the
              paint algorithm.
              * rendering/RenderTable.cpp: (WebCore::RenderTable::paint): Changed to use
              Vector instead of DeprecatedValueList for the border styles, and to sort
              rather than inserting in sorted order as we go. Put the code to loop through
              the nodes and collect border styles here instead of in a RenderObject virtual
              function. Also set m_currentBorder to 0 after the loop for greater clarity.
      
              * rendering/RenderTableCell.h: Added a typedef for a vector of border values.
              Removed the virtual collectBorders and replaced with the non-virtual named
              collectBorderStyles. Also added a static member function named sortBorderStyles.
              * rendering/RenderTableCell.cpp:
              (WebCore::CollapsedBorders::CollapsedBorders): Removed unneeded constructor
              parameter.
              (WebCore::addBorderStyle): Changed to use a vector instead of a
              DeprecatedValueList. Wrote out a loop since Vector doesn't have a contains
              member function. Removed the code to insert the border at a sorted location;
              instead we have a separate call to sort the border styles
              (WebCore::RenderTableCell::collectBorderStyles): Renamed, and changed the
              parameter type.
              (WebCore::compareBorderStylesForQSort): Added.
              (WebCore::RenderTableCell::sortBorderStyles): Added.
      
              * rendering/RenderText.h: Changed StringImpl parameters in setText functions
              to be PassRefPtr; added a new setInternalString function. Made a bunch of the
              member functions private and made all the data members private instead of
              protected.
              * rendering/RenderText.cpp:
              (WebCore::RenderText::setStyle): Restructure a bit for clarity. Fix case where
              the old style has a different security than the new style. Use release() since
              RenderText::setText now takes PassRefPtr. Always call cacheWidths here.
              (WebCore::RenderText::setTextWithOffset): Changed to take the string as a
              PassRefPtr instead of a raw pointer.
              (WebCore::isInlineFlowOrEmptyText): Added.
              (WebCore::RenderText::setInternalString): Refactored core of setText into a
              separate protected member function that can be used RenderCounter. Changed
              the text security square character to match what's used in list markers.
              Changed the text transform switch statement so that gcc will warn us if we add
              a new value and don't add a case for it.
              (WebCore::RenderText::setText): Refactored most of the function into
              setInternalString. Removed the call to cacheWidths -- that's now done in the
              setStyle function only.
      
              * rendering/RenderView.h:
              * rendering/RenderView.cpp: (WebCore::RenderView::selectionStartEnd): Now const.
      
              * rendering/RenderWidget.cpp: Added newly-needed include.
              (WebCore::RenderWidget::setSelectionState): Don't bother setting m_selectionState
              here since RenderReplaced::setSelectionState already does that.
      
      WebKit:
      
              Reviewed by Hyatt.
      
              * Misc/WebNSAttributedStringExtras.m:
              (+[NSAttributedString _web_attributedStringFromRange:]):
              Updated to use new list marker text API that is String rather than
              DeprecatedString. Also removed code to do text form of non-text list
              markers since the list marker class now deals with that.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18637 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ec37548b
  23. 30 Oct, 2006 1 commit
    • weinig's avatar
      Reviewed by Mitz. · c24ab182
      weinig authored
              Fix for http://bugs.webkit.org/show_bug.cgi?id=11441
              More rendering code cleaning
      
              * WebCore.xcodeproj/project.pbxproj:
              * rendering/RenderApplet.cpp:
              (WebCore::RenderApplet::RenderApplet):
              (WebCore::RenderApplet::createWidgetIfNecessary):
              * rendering/RenderApplet.h:
              * rendering/RenderArena.cpp:
              (WebCore::):
              (WebCore::RenderArena::RenderArena):
              (WebCore::RenderArena::allocate):
              (WebCore::RenderArena::free):
              * rendering/RenderArena.h:
              * rendering/RenderBR.cpp:
              (WebCore::RenderBR::RenderBR):
              (WebCore::RenderBR::baselinePosition):
              (WebCore::RenderBR::lineHeight):
              (WebCore::RenderBR::setStyle):
              (WebCore::RenderBR::caretMinOffset):
              (WebCore::RenderBR::positionForCoordinates):
              (WebCore::RenderBR::inlineBox):
              * rendering/RenderBR.h:
              * rendering/RenderBlock.cpp:
              * rendering/RenderBlock.h:
              (WebCore::RenderBlock::maxTopMargin):
              (WebCore::RenderBlock::maxBottomMargin):
              (WebCore::RenderBlock::initMaxMarginValues):
              (WebCore::RenderBlock::containsFloats):
              (WebCore::RenderBlock::setHasMarkupTruncation):
              (WebCore::RenderBlock::BlockSelectionInfo::BlockSelectionInfo):
              (WebCore::RenderBlock::BlockSelectionInfo::block):
              (WebCore::RenderBlock::BlockSelectionInfo::state):
              (WebCore::RenderBlock::FloatingObject::FloatingObject):
              (WebCore::RenderBlock::CompactInfo::clear):
              * rendering/RenderButton.cpp:
              (WebCore::RenderButton::removeChild):
              (WebCore::RenderButton::paintObject):
              * rendering/RenderButton.h:
              (WebCore::RenderButton::renderName):
              (WebCore::RenderButton::removeLeftoverAnonymousBoxes):
              * rendering/RenderContainer.cpp:
              (WebCore::RenderContainer::RenderContainer):
              * rendering/RenderContainer.h:
              (WebCore::RenderContainer::firstChild):
              (WebCore::RenderContainer::lastChild):
              (WebCore::RenderContainer::calcMinMaxWidth):
              * rendering/RenderCounter.cpp:
              (WebCore::RenderCounter::RenderCounter):
              (WebCore::toRoman):
              (WebCore::toHebrew):
              (WebCore::RenderCounter::calcMinMaxWidth):
              * rendering/RenderCounter.h:
              * rendering/RenderFieldset.cpp:
              (WebCore::RenderFieldset::paintBoxDecorations):
              (WebCore::RenderFieldset::paintBorderMinusLegend):
              (WebCore::RenderFieldset::setStyle):
              * rendering/RenderFileUploadControl.cpp:
              (WebCore::RenderFileUploadControl::~RenderFileUploadControl):
              (WebCore::RenderFileUploadControl::setStyle):
              (WebCore::RenderFileUploadControl::paintObject):
              (WebCore::RenderFileUploadControl::calcMinMaxWidth):
              * rendering/RenderFileUploadControl.h:
              (WebCore::RenderFileUploadControl::renderName):
              * rendering/RenderFlexibleBox.h:
              * rendering/RenderFlow.cpp:
              * rendering/RenderFlow.h:
              * rendering/RenderForeignObject.cpp:
              (WebCore::RenderForeignObject::RenderForeignObject):
              (WebCore::RenderForeignObject::paint):
              (WebCore::RenderForeignObject::computeAbsoluteRepaintRect):
              (WebCore::RenderForeignObject::layout):
              (WebCore::RenderForeignObject::nodeAtPoint):
              * rendering/RenderForeignObject.h:
              (WebCore::RenderForeignObject::renderName):
              * rendering/RenderFormElement.cpp:
              (WebCore::RenderFormElement::setStyle):
              (WebCore::RenderFormElement::layout):
              (WebCore::RenderFormElement::textAlignment):
              * rendering/RenderFormElement.h:
              * rendering/RenderFrame.cpp:
              * rendering/RenderFrame.h:
              (WebCore::RenderFrame::element):
              * rendering/RenderFrameSet.cpp:
              * rendering/RenderFrameSet.h:
              (WebCore::RenderFrameSet::element):
              * rendering/RenderHTMLCanvas.cpp:
              (WebCore::RenderHTMLCanvas::RenderHTMLCanvas):
              (WebCore::RenderHTMLCanvas::paint):
              * rendering/RenderHTMLCanvas.h:
              (WebCore::RenderHTMLCanvas::renderName):
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::RenderImage):
              (WebCore::RenderImage::setStyle):
              (WebCore::RenderImage::setContentObject):
              (WebCore::RenderImage::setCachedImage):
              (WebCore::RenderImage::imageChanged):
              (WebCore::RenderImage::paint):
              (WebCore::RenderImage::layout):
              (WebCore::RenderImage::updateAltText):
              * rendering/RenderImage.h:
              (WebCore::RenderImage::element):
              * rendering/RenderInline.cpp:
              (WebCore::RenderInline::RenderInline):
              (WebCore::RenderInline::~RenderInline):
              (WebCore::RenderInline::setStyle):
              (WebCore::RenderInline::addChildToFlow):
              (WebCore::RenderInline::cloneInline):
              (WebCore::RenderInline::splitInlines):
              (WebCore::RenderInline::splitFlow):
              (WebCore::RenderInline::paint):
              (WebCore::RenderInline::absoluteRects):
              (WebCore::RenderInline::calcMinMaxWidth):
              (WebCore::RenderInline::requiresLayer):
              (WebCore::RenderInline::width):
              (WebCore::RenderInline::height):
              (WebCore::RenderInline::renderName):
              (WebCore::RenderInline::nodeAtPoint):
              (WebCore::RenderInline::positionForCoordinates):
              * rendering/RenderInline.h:
              (WebCore::RenderInline::layout):
              * rendering/RenderLayer.cpp:
              * rendering/RenderLayer.h:
              (WebCore::ClipRects::ClipRects):
              (WebCore::RenderLayer::nextSibling):
              (WebCore::RenderLayer::root):
              (WebCore::RenderLayer::setPos):
              (WebCore::RenderLayer::height):
              (WebCore::RenderLayer::relativePositionOffset):
              * rendering/RenderLineEdit.cpp:
              (WebCore::RenderLineEdit::setStyle):
              (WebCore::RenderLineEdit::updateFromElement):
              (WebCore::RenderLineEdit::selectionStart):
              (WebCore::RenderLineEdit::selectionEnd):
              (WebCore::RenderLineEdit::setSelectionStart):
              (WebCore::RenderLineEdit::setSelectionEnd):
              (WebCore::RenderLineEdit::setSelectionRange):
              * rendering/RenderLineEdit.h:
              * rendering/RenderListBox.cpp:
              * rendering/RenderListBox.h:
              (WebCore::RenderListBox::renderName):
              * rendering/RenderListItem.cpp:
              (WebCore::RenderListItem::setStyle):
              (WebCore::getParentOfFirstLineBox):
              (WebCore::RenderListItem::updateMarkerLocation):
              (WebCore::RenderListItem::positionListMarker):
              (WebCore::RenderListItem::paint):
              * rendering/RenderListItem.h:
              * rendering/RenderListMarker.cpp:
              * rendering/RenderListMarker.h:
              (WebCore::RenderListMarker::renderName):
              (WebCore::RenderListMarker::isListMarker):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17448 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c24ab182
  24. 02 Oct, 2006 1 commit
    • bdakin's avatar
      Reviewed by Darin. · 5d6edd41
      bdakin authored
              Initial implementation of CSS2 counters. See http://
              bugs.webkit.org/show_bug.cgi?id=4980 for more details.
      
              * WebCore.xcodeproj/project.pbxproj:
              * css/CSSComputedStyleDeclaration.cpp: 
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Return 
              the increment/reset list now that this is implemented.
              * css/CSSPrimitiveValue.cpp:
              (WebCore::CSSPrimitiveValue::cssText): 
              * css/Counter.h:
              (WebCore::Counter::Counter):
              (WebCore::Counter::~Counter):
              (WebCore::Counter::identifier):
              (WebCore::Counter::listStyle):
              (WebCore::Counter::separator):
              (WebCore::Counter::listStyleNumber):
              (WebCore::Counter::setIdentifier):
              (WebCore::Counter::setListStyle):
              (WebCore::Counter::setSeparator):
              * css/cssparser.cpp:
              (WebCore::CSSParser::addProperty): Take care of reset/increment
              (WebCore::CSSParser::parseValue):
              (WebCore::CSSParser::parseContent): content can now take counters
              (WebCore::CSSParser::parseCounterContent): Parse counter() and 
              counters()
              (WebCore::CSSParser::parseCounter): Parse counter-reset and 
              counter-increment
              * css/cssparser.h:
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::matchUARules):
              (WebCore::CSSStyleSelector::applyProperty):
              * platform/PlatformString.h:
              * platform/String.cpp:
              (WebCore::String::insert): Implemented a version of insert that 
              accepts a UChar* and a length.
              * platform/StringImpl.cpp:
              (WebCore::StringImpl::insert): Same as above.
              * platform/StringImpl.h:
              * rendering/CounterListItem.h: Added.
              * rendering/CounterNode.cpp: Added.
              (WebCore::CounterNode::CounterNode):
              (WebCore::CounterNode::insertAfter):
              (WebCore::CounterNode::removeChild):
              (WebCore::CounterNode::remove):
              (WebCore::CounterNode::setUsesSeparator):
              (WebCore::CounterNode::recountAndGetNext):
              (WebCore::CounterNode::recountTree):
              (WebCore::CounterNode::setSelfDirty):
              (WebCore::CounterNode::setParentDirty):
              * rendering/CounterNode.h: Added.
              (WebCore::CounterNode::~CounterNode):
              (WebCore::CounterNode::parent):
              (WebCore::CounterNode::previousSibling):
              (WebCore::CounterNode::nextSibling):
              (WebCore::CounterNode::firstChild):
              (WebCore::CounterNode::lastChild):
              (WebCore::CounterNode::value):
              (WebCore::CounterNode::setValue):
              (WebCore::CounterNode::count):
              (WebCore::CounterNode::setCount):
              (WebCore::CounterNode::setHasSeparator):
              (WebCore::CounterNode::isReset):
              (WebCore::CounterNode::hasSeparator):
              (WebCore::CounterNode::willNeedLayout):
              (WebCore::CounterNode::setWillNeedLayout):
              (WebCore::CounterNode::isRoot):
              (WebCore::CounterNode::setRenderer):
              (WebCore::CounterNode::renderer):
              * rendering/CounterResetNode.cpp: Added.
              (WebCore::CounterResetNode::CounterResetNode):
              (WebCore::CounterResetNode::insertAfter):
              (WebCore::CounterResetNode::removeChild):
              (WebCore::CounterResetNode::recountAndGetNext):
              (WebCore::CounterResetNode::setParentDirty):
              (WebCore::CounterResetNode::updateTotal):
              * rendering/CounterResetNode.h: Added.
              (WebCore::CounterResetNode::firstChild):
              (WebCore::CounterResetNode::lastChild):
              (WebCore::CounterResetNode::isReset):
              (WebCore::CounterResetNode::total):
              * rendering/RenderContainer.cpp:
              (WebCore::RenderContainer::updatePseudoChildForObject): Account for 
              counter content.
              * rendering/RenderCounter.cpp: Added.
              (WebCore::RenderCounter::RenderCounter):
              (WebCore::RenderCounter::layout):
              (WebCore::toRoman):
              (WebCore::toLetterString):
              (WebCore::toHebrew):
              (WebCore::RenderCounter::convertValueToType):
              (WebCore::RenderCounter::calcMinMaxWidth):
              * rendering/RenderCounter.h: Added.
              (WebCore::RenderCounter::renderName):
              (WebCore::RenderCounter::isCounter):
              * rendering/RenderObject.cpp:
              (WebCore::getRenderObjectsToCounterNodeMaps): Maps RenderObjects to 
              maps of CounterNodes
              (WebCore::RenderObject::RenderObject):
              (WebCore::RenderObject::destroy): Destroy the maps.
              (WebCore::RenderObject::findCounter): Finds/creates counters.
              * rendering/RenderObject.h:
              (WebCore::RenderObject::isCounter):
              * rendering/RenderStyle.cpp:
              (WebCore::StyleVisualData::StyleVisualData):
              (WebCore::RenderStyle::arenaDelete):
              (WebCore::RenderStyle::RenderStyle):
              (WebCore::RenderStyle::diff):
              (WebCore::RenderStyle::setContent):
              (WebCore::ContentData::clearContent):
              (WebCore::RenderStyle::counterDataEquivalent):
              (WebCore::hasCounter):
              (WebCore::RenderStyle::hasCounterReset):
              (WebCore::RenderStyle::hasCounterIncrement):
              (WebCore::readCounter):
              (WebCore::RenderStyle::counterReset):
              (WebCore::RenderStyle::counterIncrement):
              * rendering/RenderStyle.h:
              (WebCore::StyleVisualData::operator==):
              (WebCore::CounterData::CounterData):
              (WebCore::CounterData::identifier):
              (WebCore::CounterData::listStyle):
              (WebCore::CounterData::separator):
              (WebCore::ContentData::contentCounter):
              (WebCore::ContentData::):
              (WebCore::RenderStyle::counterIncrement):
              (WebCore::RenderStyle::counterReset):
              (WebCore::RenderStyle::setCounterIncrement):
              (WebCore::RenderStyle::setCounterReset):
              (WebCore::RenderStyle::setCounterResetList):
              (WebCore::RenderStyle::setCounterIncrementList):
              (WebCore::RenderStyle::counterResetValueList):
              (WebCore::RenderStyle::counterIncrementValueList):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16721 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5d6edd41
  25. 12 May, 2006 1 commit
    • 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
  26. 13 Apr, 2006 1 commit
    • darin's avatar
      Reviewed by Geoff. · 68ba2c09
      darin authored
              - moved a few things out of kwq and cleaned up the
                Java-applet-related renderers
      
              * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for file location
              and name changes.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
      
              * kwq/JavaAppletWidget.h: Moved.
              * kwq/JavaAppletWidget.mm: Moved.
              * kwq/RegularExpression.cpp: Moved.
              * kwq/RegularExpression.h: Moved.
              * kwq/RenderTreeAsText.cpp: Moved.
              * kwq/RenderTreeAsText.h: Moved.
              * rendering/render_applet.cpp: Moved.
              * rendering/render_applet.h: Moved.
      
              * bridge/JavaAppletWidget.h: Moved here.
              * bridge/mac/JavaAppletWidget.mm: Moved here.
              * platform/RegularExpression.cpp: Moved here.
              * platform/RegularExpression.h: Moved here.
              * rendering/RenderTreeAsText.cpp: Moved here.
              * rendering/RenderTreeAsText.h: Moved here.
      
              * rendering/RenderApplet.h: Moved here and made changes.
              Removed unused element() function.
              * rendering/RenderApplet.cpp: Moved here and made changes.
              (WebCore::RenderApplet::RenderApplet): Changed parameter type to
              be more precise (HTMLAppletElement).
              (WebCore::RenderApplet::intrinsicWidth): Removed unnecessary type
              cast and simplified.
              (WebCore::RenderApplet::intrinsicHeight): Ditto.
              (WebCore::RenderApplet::createWidgetIfNecessary): Straightened out
              the if statements and changed to use node() instead of element().
              (WebCore::RenderApplet::layout): Removed unneeded check before
              calling createWidgetIfNecessary.
      
              * rendering/RenderEmptyApplet.h: Moved here and made changes.
              Removed unneeded overrides of intrinsicWidth and intrinsicHeight.
              * rendering/RenderEmptyApplet.cpp: Moved here and made changes.
              (WebCore::RenderEmptyApplet::RenderEmptyApplet): Added code to
              set the intrinsic width and height.
      
              * rendering/render_replaced.cpp:
              (WebCore::RenderWidget::RenderWidget): Initialize m_widget
              with contructor syntax.
              (WebCore::RenderWidget::paint): Changed _tx and _ty to be just
              tx and ty. Rearranged the code so the transparent wash will draw
              even if m_widget is 0.
      
              * html/html_objectimpl.cpp: Update includes for new file names.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13867 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      68ba2c09
  27. 19 Mar, 2006 1 commit
  28. 06 Mar, 2006 1 commit
    • darin's avatar
      Reviewed by Maciej. · 8d1badc7
      darin authored
              - moved all the remnants of the public C++ DOM API out of khtml/dom
              - changed from "int" to "ExceptionCode" for DOM exceptions
              - removed unused CSS_HTML_RELATIVE
              - changed offsetInCharacters to be a member function of NodeImpl
              - changed DOM functions that take a NodeType to use NodeType instead of
                unsigned short for clarity (will still be unsigned short in bindings)
              - changed exception constants so they can be used directly in the
                implementation code (added in the offsets for different types of exceptions)
              - replaced the eventListenerType function with an isHTMLEventListener function
              - got rid of EventListenerEvent, which is a synonym for EventImpl*
              - eliminated handleEventImpl, whish is now the same as handleEvent
      
              - did other preparation for the "remove Impl suffix" renaming
                (tested by using a script that does the renaming)
      
              * khtml/dom/css_rule.h: Removed.
              * khtml/dom/css_stylesheet.h: Removed.
              * khtml/dom/css_value.h: Removed.
              * khtml/dom/dom2_events.cpp: Removed.
              * khtml/dom/dom2_events.h: Removed.
              * khtml/dom/dom2_range.h: Removed.
              * khtml/dom/dom2_traversal.cpp: Removed.
              * khtml/dom/dom2_traversal.h: Removed.
              * khtml/dom/dom_exception.h: Removed.
              * khtml/dom/dom_node.h: Removed.
      
              * dom/EventListener.h: Added.
              * dom/ExceptionCode.h: Added.
      
              * WebCore+SVG/kdom.h: Removed NodeType and ExceptionCodes
              * WebCore+SVG/kdomevents.h: Removed.
      
              * WebCore.xcodeproj/project.pbxproj: Updated for file changes.
              * WebCore.xcodeproj/project.pbxproj: Updated for file changes.
      
              * bindings/scripts/CodeGeneratorJS.pm: Removed unneeded DOM:: prefix. Updated file
              names and exception prefix for changes in DOM exceptions.
      
              * bindings/js/JSDOMCore.cpp: Touched to cause auto-generated code to be
              recompiled. We need to get this fixed!
              * bindings/js/JSDOMEvents.cpp: Ditto.
      
              * dom/Attr.idl:
              * dom/CharacterData.idl:
              * dom/DOMImplementation.idl:
              * dom/DocumentType.idl:
              * dom/Element.idl:
              * dom/Entity.idl:
              * dom/MutationEvent.idl:
              * dom/Notation.idl:
              * dom/ProcessingInstruction.idl:
              * dom/Text.idl:
              * dom/WheelEvent.idl:
              Touched all IDL files so that changes in CodeGeneratorJS.pm would take effect.
              Added license headers.
      
              * bindings/objc/DOM.mm: Fixed garbled license agreement. Updated includes.
              Changed from a single "using namespace WebCore" to individual using statements
              because of the imminent conflict between DOMImplementation in Objective C
              and WebCore::DOMImplementation (currently has an Impl suffix). Added a typedef
              for WebCore::DOMImplementationImpl. Changed to use ExceptionCode instead of int.
      
              * bindings/objc/DOMCSS.h: Removed DOMCSSException and the special CSS exception
              codes. This is a feature of DOM Level 1 only. In DOM Level 2 these were eliminated
              and use basic DOM exception codes instead. We might have to do something for binary
              compatibility eventually, but perhaps not.
      
              * bindings/objc/DOMCSS.mm:
              * bindings/objc/DOMEvents.mm:
              * bindings/objc/DOMEventsInternal.h:
              * bindings/objc/DOMHTML.mm:
              * bindings/objc/DOMHTMLInternal.h:
              * bindings/objc/DOMViews.mm:
              * bindings/objc/DOMViewsInternal.h:
              Fixed garbled license agreements.
              Changed to use ExceptionCode instead of int and name the variable "ec".
      
              * bindings/objc/DOMInternal.h: Changed addDOMWrapperImpl to take NSObject* instead
              of id. This helps with overload resolution when addDOMWrapperImpl is renamed to be
              addDOMWrapper. Changed ALLOW_DOM_CAST to always use "class" in from of the type name
              of the WebCore class. This helps work around what seems like a bug in namespace support
              in Objective-C mode, although the bug only happens after the "remove Impl" renaming.
              * bindings/objc/DOMInternal.mm:
              (getDOMWrapperImpl): Changed to use HashMap.
              (addDOMWrapperImpl): Ditto.
              (removeDOMWrapper): Ditto.
              (raiseDOMException): Update to use new names for exception number ranges.
      
              * bridge/mac/WebCoreFrameBridge.mm:
              * khtml/ecma/xmlserializer.cpp:
              * kwq/KWQAccObject.mm:
              Removed unneeded includes.
      
              * css/css_ruleimpl.h: Moved "rule type" into this header.
      
              * dom/CommentImpl.h:
              * dom/CommentImpl.cpp: (WebCore::CommentImpl::offsetInCharacters): Added. Returns true.
      
              * khtml/ecma/XSLTProcessor.cpp: (KJS::XSLTProcessorProtoFunc::callAsFunction):
              Changed this around so we don't have a local variable named docImpl.
      
              * khtml/ecma/kjs_binding.cpp: (KJS::setDOMException): Updated for new form of exception
              constants.
      
              * khtml/ecma/kjs_events.h:
              * khtml/ecma/kjs_events.cpp:
              (KJS::JSAbstractEventListener::handleEvent): Changed to no longer use EventListenerEvent.
              (KJS::JSAbstractEventListener::isHTMLEventListener): Added.
      
              * rendering/RenderTextField.h: Updated includes. Tweaked the code formatting of
              InputMutationListener. (Might be unnecessary since this class might be deleted soon.)
      
              * bridge/mac/MacFrame.mm:
              * css/css_computedstyle.cpp:
              * css/css_computedstyle.h:
              * css/css_ruleimpl.cpp:
              * css/css_stylesheetimpl.cpp:
              * css/css_stylesheetimpl.h:
              * css/css_valueimpl.cpp:
              * css/css_valueimpl.cpp:
              * css/css_valueimpl.h:
              * css/css_valueimpl.h:
              * css/cssparser.cpp:
              * css/cssstyleselector.cpp:
              * dom/CDATASectionImpl.cpp:
              * dom/CDATASectionImpl.h:
              * dom/CharacterDataImpl.cpp:
              * dom/CharacterDataImpl.h:
              * dom/ContainerNodeImpl.cpp:
              * dom/DOMImplementationImpl.cpp:
              * dom/DocumentFragmentImpl.cpp:
              * dom/DocumentFragmentImpl.h:
              * dom/DocumentImpl.cpp:
              * dom/DocumentImpl.h:
              * dom/DocumentTypeImpl.cpp:
              * dom/DocumentTypeImpl.h:
              * dom/NamedNodeMapImpl.h:
              * dom/NodeImpl.cpp:
              * dom/NodeImpl.h:
              * dom/NodeListImpl.cpp:
              * dom/TextImpl.cpp:
              * dom/TextImpl.h:
              * dom/dom2_eventsimpl.cpp:
              * dom/dom2_eventsimpl.h:
              * dom/dom2_rangeimpl.cpp:
              * dom/dom2_rangeimpl.h:
              * dom/dom2_traversalimpl.cpp:
              * dom/dom2_traversalimpl.h:
              * dom/dom_elementimpl.cpp:
              * dom/dom_elementimpl.h:
              * dom/dom_position.cpp:
              * dom/dom_xmlimpl.cpp:
              * dom/dom_xmlimpl.h:
              * dom/xml_tokenizer.cpp:
              * editing/AppendNodeCommand.cpp:
              * editing/ApplyStyleCommand.cpp:
              * editing/CompositeEditCommand.cpp:
              * editing/DeleteFromTextNodeCommand.cpp:
              * editing/InsertIntoTextNodeCommand.cpp:
              * editing/InsertLineBreakCommand.cpp:
              * editing/InsertNodeBeforeCommand.cpp:
              * editing/InsertParagraphSeparatorCommand.cpp:
              * editing/JoinTextNodesCommand.cpp:
              * editing/MergeIdenticalElementsCommand.cpp:
              * editing/RemoveNodeAttributeCommand.cpp:
              * editing/RemoveNodeCommand.cpp:
              * editing/ReplaceSelectionCommand.cpp:
              * editing/Selection.cpp:
              * editing/SelectionController.cpp:
              * editing/SelectionController.h:
              * editing/SetNodeAttributeCommand.cpp:
              * editing/SplitElementCommand.cpp:
              * editing/SplitTextNodeCommand.cpp:
              * editing/VisiblePosition.cpp:
              * editing/WrapContentsInDummySpanCommand.cpp:
              * editing/htmlediting.cpp:
              * editing/markup.cpp:
              * editing/visible_text.cpp:
              * khtml/ecma/kjs_binding.h:
              * khtml/ecma/kjs_css.cpp:
              * khtml/ecma/kjs_dom.cpp:
              * khtml/ecma/kjs_html.cpp:
              * khtml/ecma/kjs_range.cpp:
              * khtml/ecma/kjs_traversal.cpp:
              * khtml/ecma/kjs_traversal.h:
              * khtml/ecma/kjs_window.cpp:
              * khtml/html/HTMLElementImpl.cpp:
              * khtml/html/HTMLOptionElementImpl.cpp:
              * khtml/html/HTMLOptionElementImpl.h:
              * khtml/html/HTMLOptionsCollectionImpl.cpp:
              * khtml/html/HTMLSelectElementImpl.cpp:
              * khtml/html/HTMLTextAreaElementImpl.cpp:
              * khtml/html/html_documentimpl.cpp:
              * khtml/html/html_documentimpl.h:
              * khtml/html/html_headimpl.cpp:
              * khtml/html/html_tableimpl.cpp:
              * khtml/html/html_tableimpl.h:
              * khtml/html/htmlparser.cpp:
              * khtml/xbl/xbl_tokenizer.cpp:
              * khtml/xsl/xsl_stylesheetimpl.cpp:
              * ksvg2/misc/SVGDocumentExtensions.cpp:
              * ksvg2/svg/SVGAnimationElementImpl.cpp:
              * ksvg2/svg/SVGDOMImplementationImpl.cpp:
              * ksvg2/svg/SVGDOMImplementationImpl.h:
              * ksvg2/svg/SVGDocumentImpl.cpp:
              * ksvg2/svg/SVGDocumentImpl.h:
              * ksvg2/svg/SVGElementImpl.cpp:
              * ksvg2/svg/SVGLengthImpl.cpp:
              * ksvg2/svg/SVGLocatableImpl.cpp:
              * ksvg2/svg/SVGPolyElementImpl.cpp:
              * ksvg2/svg/SVGSVGElementImpl.cpp:
              * ksvg2/svg/SVGStyleElementImpl.cpp:
              * ksvg2/svg/SVGStyleElementImpl.h:
              * ksvg2/svg/SVGUseElementImpl.cpp:
              * page/Frame.cpp:
              * page/FrameView.cpp:
              * rendering/render_object.cpp:
              * xml/xmlhttprequest.cpp:
              Changed to use ExceptionCode instead of int and name the variable "ec".
              Also updated use of exception codes and other constants to get them from
              their new locations.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13167 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8d1badc7
  29. 05 Feb, 2006 1 commit
    • darin's avatar
      Rubber stamped by Maciej. · ea944763
      darin authored
              - renamed DOMString and DOMStringImpl to String and StringImpl, and moved into platform
      
              * config.h: Put in transitional defines so old code can still refer to the classes
              as DOMString and DOMStringImpl.
      
              * platform/AtomicString.cpp: Added.
              * platform/AtomicString.h: Added.
              * platform/AtomicStringImpl.h: Added.
              * platform/PlatformString.h: Added.
              * platform/String.cpp: Added.
              * platform/StringImpl.cpp: Added.
              * platform/StringImpl.h: Added.
              Moved files here and renamed them. PlatformString.h would be named String.h except
              that conflicts with <string.h> on non-case-sensitive file systems.
      
              * khtml/xml/dom_atomicstring.cpp: Removed.
              * khtml/xml/dom_atomicstring.h: Removed.
              * khtml/xml/dom_stringimpl.cpp: Removed.
              * khtml/xml/dom_stringimpl.h: Removed.
              * khtml/dom/dom_string.cpp: Removed.
              * khtml/dom/dom_string.h: Removed.
      
              * WebCore.xcodeproj/project.pbxproj: Updated for file adds and removes.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Ditto.
      
              * WebCore+SVG/KDOMHeaders.h:
              * WebCore+SVG/Namespace.h:
              * WebCore+SVG/kdom.h:
              * bindings/objc/DOM.mm:
              * bindings/objc/DOMCSS.mm:
              * bindings/objc/DOMHTML.mm:
              * bindings/objc/DOMInternal.mm:
              * bridge/BrowserExtension.h:
              * css/css_base.h:
              * css/css_computedstyle.cpp:
              * css/css_grammar.y:
              * css/css_ruleimpl.h:
              * css/css_stylesheetimpl.cpp:
              * css/css_stylesheetimpl.h:
              * css/css_valueimpl.cpp:
              * css/csshelper.cpp:
              * css/csshelper.h:
              * css/cssparser.h:
              * css/cssstyleselector.h:
              * kcanvas/KCanvasTreeDebug.cpp:
              * khtml/dom/dom2_events.h:
              * khtml/ecma/JSXMLHttpRequest.cpp:
              * khtml/ecma/kjs_html.cpp:
              * khtml/ecma/kjs_window.cpp:
              * khtml/editing/SelectionController.cpp:
              * khtml/editing/apply_style_command.cpp:
              * khtml/editing/delete_from_text_node_command.h:
              * khtml/editing/insert_into_text_node_command.h:
              * khtml/editing/jsediting.h:
              * khtml/editing/rebalance_whitespace_command.h:
              * khtml/editing/remove_css_property_command.h:
              * khtml/editing/typing_command.h:
              * khtml/html/FormDataList.h:
              * khtml/html/HTMLNameCollectionImpl.h:
              * khtml/html/html_baseimpl.cpp:
              * khtml/html/html_objectimpl.cpp:
              * khtml/khtml_events.h:
              * khtml/xbl/xbl_binding.h:
              * khtml/xbl/xbl_protobinding.h:
              * khtml/xbl/xbl_protohandler.h:
              * khtml/xbl/xbl_protoimplementation.h:
              * khtml/xml/DOMImplementationImpl.cpp:
              * khtml/xml/EventNames.h:
              * khtml/xml/NameNodeListImpl.h:
              * khtml/xml/NamedNodeMapImpl.h:
              * khtml/xml/NodeImpl.cpp:
              * khtml/xml/NodeImpl.h:
              * khtml/xml/dom2_eventsimpl.h:
              * khtml/xml/dom_atomicstringlist.h:
              * khtml/xml/dom_elementimpl.h:
              * khtml/xml/dom_qname.h:
              * khtml/xml/dom_xmlimpl.cpp:
              * khtml/xml/xml_tokenizer.h:
              * khtml/xsl/xsl_stylesheetimpl.cpp:
              * khtml/xsl/xslt_processorimpl.h:
              * ksvg2/misc/KCanvasRenderingStyle.cpp:
              * ksvg2/svg/SVGAngleImpl.h:
              * ksvg2/svg/SVGAnimateColorElementImpl.cpp:
              * ksvg2/svg/SVGAnimatedStringImpl.h:
              * ksvg2/svg/SVGAnimationElementImpl.cpp:
              * ksvg2/svg/SVGColorImpl.h:
              * ksvg2/svg/SVGDOMImplementationImpl.cpp:
              * ksvg2/svg/SVGElementImpl.cpp:
              * ksvg2/svg/SVGFitToViewBoxImpl.cpp:
              * ksvg2/svg/SVGLangSpaceImpl.cpp:
              * ksvg2/svg/SVGLangSpaceImpl.h:
              * ksvg2/svg/SVGLengthImpl.h:
              * ksvg2/svg/SVGMarkerElementImpl.cpp:
              * ksvg2/svg/SVGPaintImpl.h:
              * ksvg2/svg/SVGPathSegImpl.h:
              * ksvg2/svg/SVGPreserveAspectRatioImpl.cpp:
              * ksvg2/svg/SVGSVGElementImpl.cpp:
              * ksvg2/svg/SVGScriptElementImpl.cpp:
              * ksvg2/svg/SVGStringListImpl.h:
              * ksvg2/svg/SVGStylableImpl.h:
              * ksvg2/svg/SVGStyleElementImpl.cpp:
              * ksvg2/svg/SVGStyledElementImpl.cpp:
              * ksvg2/svg/SVGSymbolElementImpl.cpp:
              * ksvg2/svg/SVGViewElementImpl.cpp:
              * kwq/KWQAccObject.mm:
              * kwq/KWQFontFamily.h:
              * kwq/KWQFontFamily.mm:
              * kwq/KWQKJobClasses.h:
              * kwq/KWQKJobClasses.mm:
              * loader/Cache.h:
              * loader/CachedObject.h:
              * loader/CachedXBLDocument.h:
              * loader/CachedXSLStyleSheet.h:
              * loader/DocLoader.h:
              * page/Frame.cpp:
              * page/FrameTreeNode.h:
              * platform/SegmentedString.h:
              * rendering/render_image.h:
              * rendering/render_style.cpp:
              * xml/xmlhttprequest.cpp:
              Updated all includes to use new filenames.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12573 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ea944763
  30. 22 Jan, 2006 1 commit
    • darin's avatar
      LayoutTests: · 82447ad9
      darin authored
              Reviewed by Maciej.
      
              - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=5656
              REGRESSION: Buttons on Yahoo! Mail misplaced in ToT
              <rdar://problem/4404335>
              Tests whether white-space mode on buttons is inherited and not forced.
      
              * fast/forms/button-white-space-expected.checksum: Added.
              * fast/forms/button-white-space-expected.png: Added.
              * fast/forms/button-white-space-expected.txt: Added.
              * fast/forms/button-white-space.html: Added.
      
      WebCore:
      
              Reviewed by Maciej.
      
              - fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=5656
              REGRESSION: Buttons on Yahoo! Mail misplaced in ToT
              <rdar://problem/4404335>
              Tests whether white-space mode on buttons is inheritied and not forced.
              Originally broken in Subversion revision r10909.
      
              * css/html4.css: Remove default white-space value for <button> tag to
              allow it to be inherited.
              * rendering/render_theme_mac.mm:
              (khtml::RenderThemeMac::adjustButtonStyle): Fix misleading comment.
      
              * css/UserAgentStyleSheets.cpp: Touched this file to make the rebuild
              of html4.css work (shouldn't have to do this).
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12294 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      82447ad9
  31. 18 Jan, 2006 1 commit
    • darin's avatar
      Reviewed by Hyatt. · 4ecb97ed
      darin authored
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6646
                compile CSS sources in instead of reading them from disk
      
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.vcproj/WebCore/build-generated-files.sh:
      
              * css/make-css-file-arrays.pl: Added. Used to generate C array forms of the ".css" files.
              * css/UserAgentStyleSheets.cpp: Added. Used to indirectly compile the generated file.
      
              * WebCore.xcodeproj/project.pbxproj: Added new source files. Added a build phase to
              invoke the make-css-file-arrays.pl script. Removed the .css files, which no longer need
              to be installed as part of the final package.
      
              * css/cssstyleselector.cpp: (WebCore::parseUASheet): Removed code to read user agent
              sheets from disk. Replaced with code that gets them from compiled-in arrays instead.
              Uses a pretty lame DOMString hack that could be reworked some day.
              (WebCore::CSSStyleSelector::loadDefaultStyle): Change to load from arrays intead of disk.
      
              * css/html4.css: Added missing license header, tweaked format a bit.
              * css/quirks.css: Added missing license header, tweaked format.
              * css/svg.css: Moved from ksvg2/css directory.
              * ksvg2/css/svg.css: Moved to top level css directory.
      
              * page/Frame.cpp: Removed includes of qfile.h and kstandarddirs.h.
      
              * ForwardingHeaders/kstandarddirs.h: Removed.
              * ForwardingHeaders/qfile.h: Removed.
              * kwq/KWQFile.h: Removed.
              * kwq/KWQFile.mm: Removed.
              * kwq/KWQKStandardDirs.h: Removed.
              * kwq/KWQKStandardDirs.mm: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12167 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4ecb97ed
  32. 04 Dec, 2005 3 commits
    • eseidel's avatar
      Bug #: 5930 · f0d2eefd
      eseidel authored
      Submitted by: eseidel
      Reviewed by: ggaren
              No additional test cases needed (or possible).
      
              Further dom/* cleanup, also removing extra forwarding headers
              http://bugzilla.opendarwin.org/show_bug.cgi?id=5930
      
              * ForwardingHeaders/dom/dom2_views.h: Removed.
              * ForwardingHeaders/dom/dom_core.h: Removed.
              * ForwardingHeaders/dom/dom_doc.h: Removed.
              * ForwardingHeaders/dom/dom_element.h: Removed.
              * ForwardingHeaders/dom/dom_misc.h: Removed.
              * ForwardingHeaders/dom/dom_text.h: Removed.
              * ForwardingHeaders/dom/dom_xml.h: Removed.
              * ForwardingHeaders/dom/html_base.h: Removed.
              * ForwardingHeaders/dom/html_block.h: Removed.
              * ForwardingHeaders/dom/html_document.h: Removed.
              * ForwardingHeaders/dom/html_element.h: Removed.
              * ForwardingHeaders/dom/html_form.h: Removed.
              * ForwardingHeaders/dom/html_head.h: Removed.
              * ForwardingHeaders/dom/html_image.h: Removed.
              * ForwardingHeaders/dom/html_inline.h: Removed.
              * ForwardingHeaders/dom/html_list.h: Removed.
              * ForwardingHeaders/dom/html_misc.h: Removed.
              * ForwardingHeaders/dom/html_object.h: Removed.
              * ForwardingHeaders/dom/html_table.h: Removed.
              * ForwardingHeaders/ecma/kjs_css.h: Removed.
              * ForwardingHeaders/ecma/kjs_html.h: Removed.
              * ForwardingHeaders/ecma/kjs_html.lut.h: Removed.
              * ForwardingHeaders/ecma/kjs_views.h: Removed.
              * ForwardingHeaders/ecma/kjs_views.lut.h: Removed.
              * ForwardingHeaders/ecma/kjs_window.h: Removed.
              * ForwardingHeaders/html/dtd.h: Removed.
              * ForwardingHeaders/kdom/KDOMPart.h: Removed.
              * ForwardingHeaders/kdom/KDOMView.h: Removed.
              * ForwardingHeaders/kdom/core/NodeListImpl.h: Removed.
              * ForwardingHeaders/kdom/css/CSSMediaRuleImpl.h: Removed.
              * ForwardingHeaders/kdom/css/CSSRuleImpl.h: Removed.
              * ForwardingHeaders/kdom/css/CSSRuleListImpl.h: Removed.
              * ForwardingHeaders/kdom/css/cssproperties.h: Removed.
              * ForwardingHeaders/kdom/css/cssvalues.h: Removed.
              * ForwardingHeaders/kdom/events/DocumentEventImpl.h: Removed.
              * ForwardingHeaders/kdom/parser/KDOMDocumentBuilder.h: Removed.
              * ForwardingHeaders/kdomcssproperties.h: Removed.
              * ForwardingHeaders/kdomcssvalues.h: Removed.
              * ForwardingHeaders/kinstance.h: Removed.
              * ForwardingHeaders/kjs/identifier.h: Removed.
              * ForwardingHeaders/kjs/property_map.h: Removed.
              * ForwardingHeaders/kjs/protected_object.h: Removed.
              * ForwardingHeaders/kjs/scope_chain.h: Removed.
              * ForwardingHeaders/kjs/ustring.h: Removed.
              * ForwardingHeaders/kjs/value.h: Removed.
              * ForwardingHeaders/ksvg2/svg/svgtags.h: Removed.
              * ForwardingHeaders/q3intdict.h: Removed.
              * ForwardingHeaders/q3memarray.h: Removed.
              * ForwardingHeaders/q3ptrcollection.h: Removed.
              * ForwardingHeaders/q3ptrdict.h: Removed.
              * ForwardingHeaders/qcstring.h: Removed.
              * ForwardingHeaders/qcursor.h: Removed.
              * ForwardingHeaders/qintdict.h: Removed.
              * ForwardingHeaders/qpair.h: Removed.
              * ForwardingHeaders/qprinter.h: Removed.
              * ForwardingHeaders/qptrcollection.h: Removed.
              * ForwardingHeaders/qsize.h: Removed.
              * ForwardingHeaders/qsortedlist.h: Removed.
              * ForwardingHeaders/qvaluevector.h: Removed.
              * ForwardingHeaders/xml/dom_positioniterator.h: Removed.
              * khtml/css/css_ruleimpl.cpp:
              * khtml/dom/css_value.h:
              * khtml/dom/dom2_events.cpp:
              * khtml/dom/dom2_events.h:
              * khtml/dom/dom2_range.h:
              * khtml/dom/dom2_traversal.cpp:
              * khtml/dom/dom_exception.h:
              * khtml/dom/dom_node.h:
              * khtml/dom/dom_string.cpp:
              * khtml/ecma/kjs_traversal.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11446 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f0d2eefd
    • eseidel's avatar
      Bug #: 5929 · 7d605a21
      eseidel authored
      Submitted by: eseidel
      Reviewed by: darin
              No functionality changes, no test cases possible or necessary.
      
              Removed dom_misc.* and changed to use Shared instead of DOMShared.
              Also removed FilterNode typedef, now using NodeImpl* directly.
              http://bugzilla.opendarwin.org/show_bug.cgi?id=5929
      
              * WebCore.xcodeproj/project.pbxproj:
              * khtml/css/css_base.h:
              * khtml/dom/dom2_events.h:
              * khtml/dom/dom2_traversal.cpp:
              (DOM::NodeFilterCondition::acceptNode):
              * khtml/dom/dom2_traversal.h:
              * khtml/dom/dom_exception.h:
              * khtml/dom/dom_misc.cpp: Removed.
              * khtml/dom/dom_misc.h: Removed.
              * khtml/ecma/kjs_traversal.cpp:
              (KJS::JSNodeFilterCondition::acceptNode):
              * khtml/ecma/kjs_traversal.h:
              * kwq/DOM.mm:
              (ObjCNodeFilterCondition::acceptNode):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11431 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7d605a21
    • eseidel's avatar
      Bug #: 5877 · 2928be58
      eseidel authored
      Submitted by: eseidel
      Reviewed by: mjs
              No test cases needed/possible, only removing dead code.
      
              Remove rotten #ifdef'd code from the source:
              APPLE_CHANGES & KHTML_NO_CPLUSPLUS_DOM
              http://bugzilla.opendarwin.org/show_bug.cgi?id=5877
      
              * khtml/dom/css_rule.h:
              (DOM::CSSRule::):
              * khtml/dom/css_stylesheet.h:
              * khtml/dom/css_value.h:
              (DOM::CSSValue::):
              (DOM::CSSPrimitiveValue::):
              * khtml/dom/dom2_events.cpp:
              (DOM::EventListener::handleEventImpl):
              * khtml/dom/dom2_events.h:
              (DOM::Event::):
              (DOM::EventException::):
              (DOM::MutationEvent::):
              * khtml/dom/dom2_range.h:
              (DOM::RangeException::):
              (DOM::Range::):
              * khtml/dom/dom2_traversal.cpp:
              * khtml/dom/dom2_traversal.h:
              (DOM::NodeFilter::):
              * khtml/dom/dom_exception.h:
              (DOM::DOMException::):
              * khtml/dom/dom_misc.cpp:
              (DOM::DomShared::~DomShared):
              * khtml/dom/dom_misc.h:
              (DOM::DomShared::deleteMe):
              * khtml/dom/dom_node.h:
              (DOM::Node::):
              * khtml/ecma/kjs_events.cpp:
              (KJS::JSAbstractEventListener::handleEvent):
              * khtml/ecma/kjs_traversal.cpp:
              (KJS::JSNodeFilterCondition::acceptNode):
              * khtml/khtml_part.cpp:
              (KHTMLPart::stopLoading):
              * khtml/khtml_part.h:
              * khtml/khtmlview.cpp:
              (KHTMLView::viewportMousePressEvent):
              (KHTMLView::focusNextPrevNode):
              * kwq/KWQKConfigBase.h:
              * kwq/KWQKHTMLPageCache.h:
              * kwq/KWQPointArray.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11430 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2928be58
  33. 03 Oct, 2005 1 commit
    • mjs's avatar
      JavaScriptCore: · b64c50a2
      mjs authored
              Reviewed by Darin.
      
      	<rdar://problem/4283967> REGRESSION: 3% regression on PLT from new FastMalloc
      	http://bugzilla.opendarwin.org/show_bug.cgi?id=5243
      
      	A number of optimizations to the new threadsafe malloc that make it actually as fast
      	as dlmalloc (I measured wrong before) and as memory-efficient as the system malloc.
      
      	- use fastMalloc for everything - it now gets applied to all new/delete allocations
      	via a private inline operator new that is now included into every file via config.h.
      
      	- tweaked some of the numeric parameters for size classes and amount of wasted memory
      	allowed per allocation - this saves on memory use and consequently improves speed.
      
      	- so long as the allocator is not being used on background threads, get the per-thread
      	cache from a global variable instead of from pthread_getspecific, since the latter is slow.
      
      	- inline more functions, and force the ones GCC refuses to inline with
      	attribute(always_inline), nearly all of these have one call site so inlining them has
      	to be a win.
      
      	- use some tricks to calculate allocation size more efficiently and fewer times for small
      	allocations, to avoid hitting the huge size table array.
      
      	- avoid hitting the per-thread cache on code paths that don't need it.
      
      	- implement inline assembly version of spinlock for PowerPC (was already done for x86)
      
              * bindings/NP_jsobject.cpp:
              * bindings/c/c_class.cpp:
              * bindings/c/c_instance.cpp:
              * bindings/c/c_runtime.cpp:
              * bindings/c/c_utility.cpp:
              * bindings/jni/jni_class.cpp:
              * bindings/jni/jni_instance.cpp:
              * bindings/jni/jni_jsobject.cpp:
              * bindings/jni/jni_objc.mm:
              * bindings/jni/jni_runtime.cpp:
              * bindings/jni/jni_utility.cpp:
              * bindings/npruntime.cpp:
              * bindings/objc/WebScriptObject.mm:
              * bindings/objc/objc_class.mm:
              * bindings/objc/objc_instance.mm:
              * bindings/objc/objc_runtime.mm:
              * bindings/objc/objc_utility.mm:
              * bindings/runtime.cpp:
              * bindings/runtime_array.cpp:
              * bindings/runtime_method.cpp:
              * bindings/runtime_object.cpp:
              * bindings/runtime_root.cpp:
              * bindings/testbindings.cpp:
              * bindings/testbindings.mm:
              * kjs/array_object.cpp:
              (ArrayInstanceImp::ArrayInstanceImp):
              (ArrayInstanceImp::~ArrayInstanceImp):
              (ArrayInstanceImp::resizeStorage):
              * kjs/bool_object.cpp:
              * kjs/collector.cpp:
              (KJS::Collector::registerThread):
              * kjs/config.h:
              * kjs/debugger.cpp:
              * kjs/error_object.cpp:
              * kjs/function.cpp:
              * kjs/function_object.cpp:
              * kjs/identifier.cpp:
              (KJS::Identifier::rehash):
              * kjs/internal.cpp:
              (KJS::Parser::saveNewNode):
              (KJS::clearNewNodes):
              * kjs/interpreter.cpp:
              * kjs/lexer.cpp:
              (Lexer::doneParsing):
              (Lexer::makeIdentifier):
              (Lexer::makeUString):
              * kjs/list.cpp:
              * kjs/math_object.cpp:
              * kjs/nodes.cpp:
              * kjs/nodes.h:
              * kjs/nodes2string.cpp:
              * kjs/number_object.cpp:
              (integer_part_noexp):
              (char_sequence):
              * kjs/object.cpp:
              * kjs/object_object.cpp:
              * kjs/property_map.cpp:
              * kjs/property_slot.cpp:
              * kjs/protected_values.cpp:
              (KJS::ProtectedValues::rehash):
              * kjs/reference.cpp:
              * kjs/reference_list.cpp:
              * kjs/regexp.cpp:
              * kjs/regexp_object.cpp:
              * kjs/scope_chain.cpp:
              * kjs/scope_chain.h:
              * kjs/string_object.cpp:
              * kjs/testkjs.cpp:
              * kjs/ustring.h:
              * kjs/value.cpp:
              * kxmlcore/Assertions.mm:
              * kxmlcore/FastMalloc.cpp:
              (KXMLCore::InitSizeClasses):
              (KXMLCore::DLL_IsEmpty):
              (KXMLCore::DLL_Prepend):
              (KXMLCore::TCMalloc_Central_FreeList::Insert):
              (KXMLCore::TCMalloc_Central_FreeList::Remove):
              (KXMLCore::TCMalloc_Central_FreeList::Populate):
              (KXMLCore::TCMalloc_ThreadCache::Allocate):
              (KXMLCore::TCMalloc_ThreadCache::FetchFromCentralCache):
              (KXMLCore::fastMallocRegisterThread):
              (KXMLCore::TCMalloc_ThreadCache::GetCache):
              (KXMLCore::TCMalloc_ThreadCache::GetCacheIfPresent):
              (KXMLCore::TCMalloc_ThreadCache::CreateCacheIfNecessary):
              (KXMLCore::do_malloc):
              (KXMLCore::do_free):
              (KXMLCore::realloc):
              * kxmlcore/FastMalloc.h:
              (operator new):
              (operator delete):
              (operator new[]):
              (operator delete[]):
              * kxmlcore/HashTable.cpp:
              * kxmlcore/TCSpinLock.h:
              (TCMalloc_SpinLock::Lock):
              (TCMalloc_SpinLock::Unlock):
              (TCMalloc_SlowLock):
              * kxmlcore/TCSystemAlloc.cpp:
      
      WebCore:
      
              Reviewed by Darin.
      
      	<rdar://problem/4283967> REGRESSION: 3% regression on PLT from new FastMalloc
      	http://bugzilla.opendarwin.org/show_bug.cgi?id=5243
      
      	- use fastMalloc for everything - it now gets applied to all new/delete allocations
              via a private inline operator new that is now included into every file via config.h
      
              * WebCore.xcodeproj/project.pbxproj:
              * WebCorePrefix.h:
              * khtml/css/css_base.cpp:
              * khtml/css/css_base.h:
              * khtml/css/css_computedstyle.cpp:
              * khtml/css/css_ruleimpl.cpp:
              * khtml/css/css_stylesheetimpl.cpp:
              * khtml/css/css_valueimpl.cpp:
              * khtml/css/css_valueimpl.h:
              * khtml/css/csshelper.cpp:
              * khtml/css/cssparser.cpp:
              (ValueList::ValueList):
              (ValueList::~ValueList):
              (ValueList::addValue):
              (CSSParser::CSSParser):
              (CSSParser::~CSSParser):
              (CSSParser::setupParser):
              (CSSParser::addProperty):
              * khtml/css/cssstyleselector.cpp:
              * khtml/css/cssstyleselector.h:
              * khtml/dom/dom2_events.cpp:
              * khtml/dom/dom2_traversal.cpp:
              * khtml/dom/dom_misc.cpp:
              * khtml/dom/dom_string.cpp:
              * khtml/ecma/domparser.cpp:
              * khtml/ecma/kjs_binding.cpp:
              * khtml/ecma/kjs_css.cpp:
              * khtml/ecma/kjs_dom.cpp:
              * khtml/ecma/kjs_events.cpp:
              * khtml/ecma/kjs_html.cpp:
              (KJS::KJS::Context2DFunction::callAsFunction):
              (KJS::Gradient::~Gradient):
              (KJS::Gradient::addColorStop):
              (KJS::Gradient::colorStops):
              * khtml/ecma/kjs_navigator.cpp:
              * khtml/ecma/kjs_proxy.cpp:
              * khtml/ecma/kjs_range.cpp:
              * khtml/ecma/kjs_traversal.cpp:
              * khtml/ecma/kjs_views.cpp:
              * khtml/ecma/kjs_window.cpp:
              * khtml/ecma/xmlhttprequest.cpp:
              * khtml/ecma/xmlserializer.cpp:
              * khtml/editing/SelectionController.cpp:
              * khtml/editing/append_node_command.cpp:
              * khtml/editing/apply_style_command.cpp:
              * khtml/editing/break_blockquote_command.cpp:
              * khtml/editing/composite_edit_command.cpp:
              * khtml/editing/delete_from_text_node_command.cpp:
              * khtml/editing/delete_selection_command.cpp:
              * khtml/editing/edit_command.cpp:
              * khtml/editing/html_interchange.cpp:
              * khtml/editing/htmlediting.cpp:
              * khtml/editing/insert_into_text_node_command.cpp:
              * khtml/editing/insert_line_break_command.cpp:
              * khtml/editing/insert_node_before_command.cpp:
              * khtml/editing/insert_paragraph_separator_command.cpp:
              * khtml/editing/insert_text_command.cpp:
              * khtml/editing/join_text_nodes_command.cpp:
              * khtml/editing/jsediting.cpp:
              * khtml/editing/markup.cpp:
              * khtml/editing/merge_identical_elements_command.cpp:
              * khtml/editing/move_selection_command.cpp:
              * khtml/editing/rebalance_whitespace_command.cpp:
              * khtml/editing/remove_css_property_command.cpp:
              * khtml/editing/remove_node_attribute_command.cpp:
              * khtml/editing/remove_node_command.cpp:
              * khtml/editing/remove_node_preserving_children_command.cpp:
              * khtml/editing/replace_selection_command.cpp:
              * khtml/editing/set_node_attribute_command.cpp:
              * khtml/editing/split_element_command.cpp:
              * khtml/editing/split_text_node_command.cpp:
              * khtml/editing/split_text_node_containing_element.cpp:
              * khtml/editing/typing_command.cpp:
              * khtml/editing/visible_position.cpp:
              * khtml/editing/visible_range.cpp:
              * khtml/editing/visible_text.cpp:
              (khtml::CircularSearchBuffer::~CircularSearchBuffer):
              (khtml::CircularSearchBuffer::CircularSearchBuffer):
              * khtml/editing/visible_units.cpp:
              * khtml/editing/wrap_contents_in_dummy_span_command.cpp:
              * khtml/html/html_baseimpl.cpp:
              * khtml/html/html_blockimpl.cpp:
              * khtml/html/html_canvasimpl.cpp:
              * khtml/html/html_documentimpl.cpp:
              * khtml/html/html_elementimpl.cpp:
              * khtml/html/html_formimpl.cpp:
              * khtml/html/html_headimpl.cpp:
              * khtml/html/html_imageimpl.cpp:
              * khtml/html/html_inlineimpl.cpp:
              * khtml/html/html_listimpl.cpp:
              * khtml/html/html_miscimpl.cpp:
              * khtml/html/html_objectimpl.cpp:
              * khtml/html/html_tableimpl.cpp:
              * khtml/html/htmlfactory.cpp:
              * khtml/html/htmlnames.cpp:
              * khtml/html/htmlparser.cpp:
              * khtml/html/htmltokenizer.cpp:
              (khtml::HTMLTokenizer::enlargeBuffer):
              (khtml::HTMLTokenizer::enlargeScriptBuffer):
              * khtml/khtml_events.cpp:
              * khtml/khtml_part.cpp:
              * khtml/khtmlview.cpp:
              * khtml/misc/arena.cpp:
              * khtml/misc/arena.h:
              * khtml/misc/decoder.cpp:
              * khtml/misc/formdata.cpp:
              * khtml/misc/helper.cpp:
              * khtml/misc/loader.cpp:
              * khtml/misc/stringit.cpp:
              * khtml/rendering/bidi.cpp:
              * khtml/rendering/break_lines.cpp:
              * khtml/rendering/font.cpp:
              * khtml/rendering/render_arena.cpp:
              * khtml/rendering/render_block.cpp:
              * khtml/rendering/render_box.cpp:
              * khtml/rendering/render_br.cpp:
              * khtml/rendering/render_canvas.cpp:
              * khtml/rendering/render_canvasimage.cpp:
              (RenderCanvasImage::~RenderCanvasImage):
              (RenderCanvasImage::createDrawingContext):
              * khtml/rendering/render_container.cpp:
              * khtml/rendering/render_flexbox.cpp:
              * khtml/rendering/render_flow.cpp:
              * khtml/rendering/render_form.cpp:
              * khtml/rendering/render_frames.cpp:
              * khtml/rendering/render_image.cpp:
              * khtml/rendering/render_inline.cpp:
              * khtml/rendering/render_layer.cpp:
              * khtml/rendering/render_line.cpp:
              * khtml/rendering/render_list.cpp:
              * khtml/rendering/render_object.cpp:
              * khtml/rendering/render_replaced.cpp:
              * khtml/rendering/render_style.cpp:
              * khtml/rendering/render_style.h:
              * khtml/rendering/render_table.cpp:
              * khtml/rendering/render_text.cpp:
              * khtml/rendering/render_theme.cpp:
              * khtml/rendering/render_theme_mac.mm:
              * khtml/rendering/table_layout.cpp:
              * khtml/xbl/xbl_binding.cpp:
              * khtml/xbl/xbl_binding_manager.cpp:
              * khtml/xbl/xbl_docimpl.cpp:
              * khtml/xbl/xbl_protobinding.cpp:
              * khtml/xbl/xbl_protohandler.cpp:
              * khtml/xbl/xbl_protoimplementation.cpp:
              * khtml/xbl/xbl_tokenizer.cpp:
              * khtml/xml/EventNames.cpp:
              * khtml/xml/dom2_eventsimpl.cpp:
              * khtml/xml/dom2_eventsimpl.h:
              * khtml/xml/dom2_rangeimpl.cpp:
              * khtml/xml/dom2_rangeimpl.h:
              * khtml/xml/dom2_traversalimpl.cpp:
              * khtml/xml/dom2_traversalimpl.h:
              * khtml/xml/dom2_viewsimpl.cpp:
              * khtml/xml/dom2_viewsimpl.h:
              * khtml/xml/dom_atomicstring.cpp:
              * khtml/xml/dom_docimpl.cpp:
              * khtml/xml/dom_docimpl.h:
              * khtml/xml/dom_elementimpl.cpp:
              * khtml/xml/dom_elementimpl.h:
              * khtml/xml/dom_nodeimpl.cpp:
              * khtml/xml/dom_nodeimpl.h:
              * khtml/xml/dom_position.cpp:
              * khtml/xml/dom_qname.cpp:
              * khtml/xml/dom_stringimpl.cpp:
              * khtml/xml/dom_stringimpl.h:
              * khtml/xml/dom_textimpl.cpp:
              * khtml/xml/dom_xmlimpl.cpp:
              * khtml/xml/xml_tokenizer.cpp:
              * khtml/xsl/xsl_stylesheetimpl.cpp:
              * khtml/xsl/xslt_processorimpl.cpp:
              * kwq/DOM-CSS.mm:
              * kwq/DOM.mm:
              * kwq/DOMEvents.mm:
              * kwq/DOMHTML.mm:
              * kwq/DOMInternal.mm:
              (DOMString::DOMString):
              * kwq/DOMUtility.mm:
              * kwq/DOMViews.mm:
              * kwq/KWQAccObject.mm:
              * kwq/KWQAccObjectCache.mm:
              * kwq/KWQApplication.mm:
              * kwq/KWQArrayImpl.h:
              * kwq/KWQArrayImpl.mm:
              * kwq/KWQBuffer.mm:
              * kwq/KWQButton.mm:
              * kwq/KWQCString.mm:
              * kwq/KWQCharsets.mm:
              * kwq/KWQClipboard.mm:
              * kwq/KWQCollection.mm:
              * kwq/KWQColor.mm:
              * kwq/KWQComboBox.mm:
              * kwq/KWQCursor.mm:
              * kwq/KWQDateTime.mm:
              * kwq/KWQDictImpl.mm:
              * kwq/KWQEditCommand.mm:
              * kwq/KWQEvent.mm:
              * kwq/KWQExceptions.mm:
              * kwq/KWQFile.mm:
              * kwq/KWQFileButton.mm:
              * kwq/KWQFont.mm:
              * kwq/KWQFontFamily.h:
              * kwq/KWQFontFamily.mm:
              * kwq/KWQFontMetrics.mm:
              * kwq/KWQFormData.mm:
              * kwq/KWQFrame.mm:
              * kwq/KWQGlobal.mm:
              * kwq/KWQGuardedPtr.mm:
              * kwq/KWQKCharsets.mm:
              * kwq/KWQKConfigBase.mm:
              * kwq/KWQKCookieJar.mm:
              * kwq/KWQKCursor.mm:
              * kwq/KWQKGlobal.mm:
              * kwq/KWQKGlobalSettings.mm:
              * kwq/KWQKHTMLFactory.mm:
              * kwq/KWQKHTMLPart.cpp:
              * kwq/KWQKHTMLPart.mm:
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              * kwq/KWQKHTMLView.mm:
              * kwq/KWQKHistoryProvider.mm:
              * kwq/KWQKJavaAppletWidget.mm:
              * kwq/KWQKJob.mm:
              * kwq/KWQKJobClasses.mm:
              * kwq/KWQKLocale.mm:
              * kwq/KWQKPartsBrowserInterface.mm:
              * kwq/KWQKPartsEvent.mm:
              * kwq/KWQKPartsPart.mm:
              * kwq/KWQKSSLKeyGen.mm:
              * kwq/KWQKStandardDirs.mm:
              * kwq/KWQKStringHandler.mm:
              * kwq/KWQKURL.mm:
              (KURL::KURL):
              (KURL::decode_string):
              (KURL::parse):
              (KURL::encode_string):
              (encodeRelativeString):
              * kwq/KWQKWin.mm:
              * kwq/KWQKWinModule.mm:
              * kwq/KWQLabel.mm:
              * kwq/KWQLineEdit.mm:
              * kwq/KWQListBox.mm:
              * kwq/KWQListImpl.mm:
              * kwq/KWQLoader.mm:
              (KWQIsResponseURLEqualToURL):
              * kwq/KWQMapImpl.h:
              * kwq/KWQMapImpl.mm:
              * kwq/KWQMovie.mm:
              * kwq/KWQObject.mm:
              * kwq/KWQPageState.mm:
              * kwq/KWQPaintDeviceMetrics.mm:
              * kwq/KWQPainter.mm:
              * kwq/KWQPalette.mm:
              * kwq/KWQPen.mm:
              * kwq/KWQPixmap.mm:
              * kwq/KWQPoint.mm:
              * kwq/KWQPointArray.mm:
              * kwq/KWQPtrDictImpl.mm:
              * kwq/KWQPushButton.mm:
              * kwq/KWQRect.mm:
              * kwq/KWQRegExp.mm:
              * kwq/KWQRegion.mm:
              * kwq/KWQRenderTreeDebug.cpp:
              * kwq/KWQResourceLoader.mm:
              * kwq/KWQScrollBar.mm:
              * kwq/KWQScrollView.mm:
              * kwq/KWQSignal.mm:
              * kwq/KWQSignalStubs.mm:
              * kwq/KWQSize.mm:
              * kwq/KWQSlider.mm:
              * kwq/KWQSlot.mm:
              * kwq/KWQString.h:
              * kwq/KWQString.mm:
              (ALLOC_CHAR):
              (REALLOC_CHAR):
              (DELETE_CHAR):
              (ALLOC_QCHAR):
              (REALLOC_QCHAR):
              (DELETE_QCHAR):
              (_printQStringAllocationStatistics):
              (allocateHandle):
              (KWQStringData::operator new):
              (KWQStringData::operator delete):
              (freeHandle):
              * kwq/KWQStringList.mm:
              * kwq/KWQStyle.mm:
              * kwq/KWQTextArea.mm:
              * kwq/KWQTextCodec.mm:
              * kwq/KWQTextEdit.mm:
              * kwq/KWQTextField.mm:
              * kwq/KWQTextStream.mm:
              * kwq/KWQTextUtilities.mm:
              * kwq/KWQTimer.mm:
              * kwq/KWQValueListImpl.h:
              * kwq/KWQValueListImpl.mm:
              * kwq/KWQVariant.mm:
              * kwq/KWQVectorImpl.mm:
              (KWQVectorImpl::KWQVectorImpl):
              (KWQVectorImpl::~KWQVectorImpl):
              (KWQVectorImpl::clear):
              (KWQVectorImpl::resize):
              (KWQVectorImpl::assign):
              * kwq/KWQWMatrix.mm:
              * kwq/KWQWidget.mm:
              * kwq/KWQWindowWidget.mm:
              * kwq/WebCoreBridge.mm:
              * kwq/WebCoreCache.mm:
              * kwq/WebCoreEncodings.mm:
              * kwq/WebCoreJavaScript.mm:
              * kwq/WebCoreScriptDebugger.mm:
              * kwq/WebCoreSettings.mm:
              * kwq/WebCoreTextRendererFactory.mm:
              * kwq/can-convert.mm:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10701 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b64c50a2
  34. 16 Sep, 2005 1 commit
    • adele's avatar
      JavaScriptCore: · 704e8bb4
      adele authored
              Change by Darin, reviewed by me and Maciej.
      
              Fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=4547
              use int instead of long for 32-bit (to prepare for LP64 compiling)
      
              * bindings/c/c_class.h:
              (KJS::Bindings::CClass::constructorAt):
              (KJS::Bindings::CClass::numConstructors):
              * bindings/c/c_runtime.h:
              (KJS::Bindings::CMethod::numParameters):
              * bindings/jni/jni_class.cpp:
              (JavaClass::JavaClass):
              * bindings/jni/jni_class.h:
              (KJS::Bindings::JavaClass::constructorAt):
              (KJS::Bindings::JavaClass::numConstructors):
              * bindings/jni/jni_instance.cpp:
              (JavaInstance::invokeMethod):
              * bindings/jni/jni_jsobject.cpp:
              (JSObject::convertJObjectToValue):
              (JSObject::listFromJArray):
              * bindings/jni/jni_runtime.cpp:
              (JavaMethod::JavaMethod):
              * bindings/jni/jni_runtime.h:
              (KJS::Bindings::JavaConstructor::_commonCopy):
              (KJS::Bindings::JavaConstructor::parameterAt):
              (KJS::Bindings::JavaConstructor::numParameters):
              (KJS::Bindings::JavaMethod::_commonCopy):
              (KJS::Bindings::JavaMethod::parameterAt):
              (KJS::Bindings::JavaMethod::numParameters):
              * bindings/npapi.h:
              * bindings/objc/WebScriptObject.mm:
              (listFromNSArray):
              * bindings/objc/objc_class.h:
              (KJS::Bindings::ObjcClass::constructorAt):
              (KJS::Bindings::ObjcClass::numConstructors):
              * bindings/objc/objc_instance.h:
              * bindings/objc/objc_runtime.h:
              * bindings/objc/objc_runtime.mm:
              (ObjcMethod::numParameters):
              * bindings/runtime.h:
              * kjs/identifier.h:
              * kjs/internal.h:
              * kjs/property_slot.h:
              (KJS::PropertySlot::setCustomIndex):
              (KJS::PropertySlot::index):
              (KJS::PropertySlot::):
              * kjs/regexp_object.cpp:
              (RegExpObjectImp::backrefGetter):
              (RegExpObjectImp::getOwnPropertySlot):
              * kjs/simple_number.h:
              (KJS::SimpleNumber::):
              (KJS::SimpleNumber::value):
              (KJS::SimpleNumber::fits):
              (KJS::SimpleNumber::integerFits):
              (KJS::SimpleNumber::make):
              * kjs/string_object.cpp:
              (substituteBackreferences):
              * kjs/ustring.cpp:
              (KJS::UString::from):
              (KJS::UString::toUInt32):
              (KJS::UString::find):
              (KJS::UString::rfind):
              * kjs/ustring.h:
              * kjs/value.cpp:
              (KJS::jsNumber):
              * kjs/value.h:
      
      WebCore:
      
              Change by Darin, reviewed by me and Maciej.
      
              Fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=4547
              use int instead of long for 32-bit (to prepare for LP64 compiling)
      
              Changed longs (which IDL files use as 32-bit) to ints
      
              * ForwardingHeaders/khtml_pagecache.h:
              * khtml/css/css_base.h:
              (DOM::StyleListImpl::length):
              (DOM::StyleListImpl::item):
              * khtml/css/css_computedstyle.cpp:
              (DOM::CSSComputedStyleDeclarationImpl::length):
              (DOM::CSSComputedStyleDeclarationImpl::item):
              * khtml/css/css_computedstyle.h:
              * khtml/css/css_ruleimpl.cpp:
              (CSSMediaRuleImpl::append):
              (CSSMediaRuleImpl::insertRule):
              (CSSMediaRuleImpl::cssText):
              (CSSRuleListImpl::CSSRuleListImpl):
              (CSSRuleListImpl::deleteRule):
              (CSSRuleListImpl::insertRule):
              * khtml/css/css_ruleimpl.h:
              (DOM::CSSRuleListImpl::length):
              (DOM::CSSRuleListImpl::item):
              (DOM::CSSMediaRuleImpl::deleteRule):
              * khtml/css/css_stylesheetimpl.cpp:
              (CSSStyleSheetImpl::insertRule):
              (CSSStyleSheetImpl::addRule):
              (CSSStyleSheetImpl::deleteRule):
              (StyleSheetListImpl::length):
              (StyleSheetListImpl::item):
              * khtml/css/css_stylesheetimpl.h:
              (DOM::MediaListImpl::length):
              (DOM::MediaListImpl::item):
              * khtml/css/css_valueimpl.cpp:
              (DOM::CSSMutableStyleDeclarationImpl::length):
              (DOM::CSSMutableStyleDeclarationImpl::item):
              * khtml/css/css_valueimpl.h:
              (DOM::CSSValueListImpl::length):
              (DOM::CSSValueListImpl::item):
              * khtml/dom/css_rule.h:
              * khtml/dom/css_stylesheet.h:
              * khtml/dom/css_value.h:
              * khtml/dom/dom2_events.cpp:
              (DOM::UIEvent::detail):
              (DOM::UIEvent::initUIEvent):
              (DOM::MouseEvent::screenX):
              (DOM::MouseEvent::screenY):
              (DOM::MouseEvent::clientX):
              (DOM::MouseEvent::clientY):
              (DOM::MouseEvent::initMouseEvent):
              (DOM::KeyboardEvent::keyLocation):
              (DOM::KeyboardEvent::initKeyboardEvent):
              * khtml/dom/dom2_events.h:
              * khtml/dom/dom2_range.h:
              * khtml/dom/dom2_traversal.cpp:
              (DOM::NodeIterator::whatToShow):
              (DOM::TreeWalker::whatToShow):
              * khtml/dom/dom2_traversal.h:
              * khtml/dom/dom_node.h:
              * khtml/ecma/kjs_css.cpp:
              (KJS::DOMCSSStyleDeclaration::getOwnPropertySlot):
              (KJS::DOMStyleSheetList::getOwnPropertySlot):
              (KJS::DOMMediaList::getOwnPropertySlot):
              (KJS::DOMCSSStyleSheetProtoFunc::callAsFunction):
              (KJS::DOMCSSRuleList::getOwnPropertySlot):
              (KJS::DOMCSSValueList::getOwnPropertySlot):
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMNodeList::getOwnPropertySlot):
              (KJS::DOMNodeList::callAsFunction):
              (KJS::DOMNamedNodeMap::getOwnPropertySlot):
              (KJS::DOMNamedNodesCollection::getOwnPropertySlot):
              * khtml/ecma/kjs_events.cpp:
              (KJS::DOMEvent::getValueProperty):
              * khtml/ecma/kjs_html.cpp:
              (KJS::HTMLElement::getOwnPropertySlot):
              (KJS::KJS::HTMLElement::put):
              (KJS::HTMLCollection::getOwnPropertySlot):
              (KJS::KJS::HTMLCollection::callAsFunction):
              (KJS::KJS::HTMLSelectCollection::put):
              * khtml/ecma/kjs_navigator.cpp:
              (KJS::Plugins::getOwnPropertySlot):
              (KJS::MimeTypes::getOwnPropertySlot):
              (KJS::Plugin::getOwnPropertySlot):
              * khtml/editing/apply_style_command.cpp:
              (khtml::ApplyStyleCommand::splitTextAtStartIfNeeded):
              (khtml::ApplyStyleCommand::splitTextElementAtStartIfNeeded):
              (khtml::ApplyStyleCommand::mergeStartWithPreviousIfIdentical):
              * khtml/editing/break_blockquote_command.cpp:
              (khtml::BreakBlockquoteCommand::doApply):
              * khtml/editing/composite_edit_command.cpp:
              (khtml::CompositeEditCommand::insertNodeAt):
              (khtml::CompositeEditCommand::splitTextNode):
              (khtml::CompositeEditCommand::splitTextNodeContainingElement):
              (khtml::CompositeEditCommand::insertTextIntoNode):
              (khtml::CompositeEditCommand::deleteTextFromNode):
              (khtml::CompositeEditCommand::replaceTextInNode):
              (khtml::CompositeEditCommand::deleteInsignificantText):
              * khtml/editing/composite_edit_command.h:
              * khtml/editing/delete_from_text_node_command.cpp:
              (khtml::DeleteFromTextNodeCommand::DeleteFromTextNodeCommand):
              * khtml/editing/delete_from_text_node_command.h:
              (khtml::DeleteFromTextNodeCommand::offset):
              (khtml::DeleteFromTextNodeCommand::count):
              * khtml/editing/insert_into_text_node_command.cpp:
              (khtml::InsertIntoTextNodeCommand::InsertIntoTextNodeCommand):
              * khtml/editing/insert_into_text_node_command.h:
              (khtml::InsertIntoTextNodeCommand::offset):
              * khtml/editing/insert_paragraph_separator_command.cpp:
              (khtml::InsertParagraphSeparatorCommand::doApply):
              * khtml/editing/insert_text_command.cpp:
              (khtml::InsertTextCommand::input):
              (khtml::InsertTextCommand::insertSpace):
              * khtml/editing/insert_text_command.h:
              (khtml::InsertTextCommand::charactersAdded):
              * khtml/editing/join_text_nodes_command.h:
              * khtml/editing/markup.cpp:
              (khtml::startMarkup):
              (khtml::completeURLs):
              * khtml/editing/move_selection_command.cpp:
              (khtml::MoveSelectionCommand::doApply):
              * khtml/editing/rebalance_whitespace_command.cpp:
              (khtml::RebalanceWhitespaceCommand::doApply):
              * khtml/editing/rebalance_whitespace_command.h:
              * khtml/editing/replace_selection_command.cpp:
              (khtml::ReplaceSelectionCommand::insertNodeAtAndUpdateNodesInserted):
              * khtml/editing/replace_selection_command.h:
              * khtml/editing/selection.cpp:
              (khtml::Selection::debugPosition):
              * khtml/editing/split_text_node_command.cpp:
              (khtml::SplitTextNodeCommand::SplitTextNodeCommand):
              * khtml/editing/split_text_node_command.h:
              (khtml::SplitTextNodeCommand::offset):
              * khtml/editing/split_text_node_containing_element.cpp:
              (khtml::SplitTextNodeContainingElementCommand::SplitTextNodeContainingElementCommand):
              * khtml/editing/split_text_node_containing_element_command.h:
              * khtml/editing/visible_position.cpp:
              (khtml::VisiblePosition::VisiblePosition):
              (khtml::VisiblePosition::deepEquivalent):
              (khtml::VisiblePosition::rangeCompliantEquivalent):
              (khtml::VisiblePosition::maxOffset):
              (khtml::VisiblePosition::character):
              (khtml::VisiblePosition::debugPosition):
              * khtml/editing/visible_position.h:
              * khtml/editing/visible_range.h:
              * khtml/editing/visible_text.cpp:
              (khtml::CircularSearchBuffer::length):
              (khtml::TextIterator::TextIterator):
              (khtml::TextIterator::handleTextNode):
              (khtml::TextIterator::handleTextBox):
              (khtml::TextIterator::emitCharacter):
              (khtml::TextIterator::range):
              (khtml::SimplifiedBackwardsTextIterator::SimplifiedBackwardsTextIterator):
              (khtml::SimplifiedBackwardsTextIterator::handleReplacedElement):
              (khtml::SimplifiedBackwardsTextIterator::emitCharacter):
              (khtml::SimplifiedBackwardsTextIterator::emitNewlineForBROrText):
              (khtml::CharacterIterator::range):
              (khtml::CharacterIterator::advance):
              (khtml::CharacterIterator::string):
              (khtml::WordAwareIterator::length):
              (khtml::CircularSearchBuffer::append):
              (khtml::CircularSearchBuffer::neededCharacters):
              (khtml::CircularSearchBuffer::isMatch):
              (khtml::TextIterator::rangeLength):
              (khtml::TextIterator::rangeFromLocationAndLength):
              (khtml::plainText):
              (khtml::findPlainText):
              * khtml/editing/visible_text.h:
              (khtml::TextIterator::length):
              (khtml::SimplifiedBackwardsTextIterator::length):
              (khtml::CharacterIterator::length):
              (khtml::CharacterIterator::characterOffset):
              * khtml/editing/visible_units.cpp:
              (khtml::startOfLine):
              (khtml::endOfLine):
              (khtml::startOfParagraph):
              (khtml::endOfParagraph):
              * khtml/html/html_blockimpl.cpp:
              (HTMLPreElementImpl::width):
              (HTMLPreElementImpl::setWidth):
              * khtml/html/html_blockimpl.h:
              * khtml/html/html_formimpl.cpp:
              (DOM::HTMLFormElementImpl::length):
              (DOM::HTMLGenericFormElementImpl::tabIndex):
              (DOM::HTMLGenericFormElementImpl::setTabIndex):
              (DOM::HTMLInputElementImpl::selectionStart):
              (DOM::HTMLInputElementImpl::selectionEnd):
              (DOM::HTMLInputElementImpl::setSelectionStart):
              (DOM::HTMLInputElementImpl::setSelectionEnd):
              (DOM::HTMLInputElementImpl::setSelectionRange):
              (DOM::HTMLInputElementImpl::setMaxLength):
              (DOM::HTMLInputElementImpl::setSize):
              (DOM::HTMLSelectElementImpl::selectedIndex):
              (DOM::HTMLSelectElementImpl::setSelectedIndex):
              (DOM::HTMLSelectElementImpl::length):
              (DOM::HTMLSelectElementImpl::remove):
              (DOM::HTMLSelectElementImpl::setSize):
              (DOM::HTMLOptionElementImpl::index):
              (DOM::HTMLOptionElementImpl::setIndex):
              (DOM::HTMLTextAreaElementImpl::selectionStart):
              (DOM::HTMLTextAreaElementImpl::selectionEnd):
              (DOM::HTMLTextAreaElementImpl::setSelectionStart):
              (DOM::HTMLTextAreaElementImpl::setSelectionEnd):
              (DOM::HTMLTextAreaElementImpl::setSelectionRange):
              (DOM::HTMLTextAreaElementImpl::setCols):
              (DOM::HTMLTextAreaElementImpl::setRows):
              (DOM::HTMLOptionsCollectionImpl::length):
              (DOM::HTMLOptionsCollectionImpl::setLength):
              (DOM::HTMLOptionsCollectionImpl::item):
              * khtml/html/html_formimpl.h:
              (DOM::HTMLInputElementImpl::maxLength):
              (DOM::HTMLInputElementImpl::maxResults):
              (DOM::HTMLSelectElementImpl::minWidth):
              (DOM::HTMLSelectElementImpl::size):
              (DOM::HTMLTextAreaElementImpl::cols):
              (DOM::HTMLTextAreaElementImpl::rows):
              * khtml/html/html_imageimpl.cpp:
              (HTMLImageElementImpl::width):
              (HTMLImageElementImpl::height):
              (HTMLImageElementImpl::border):
              (HTMLImageElementImpl::setBorder):
              (HTMLImageElementImpl::setHeight):
              (HTMLImageElementImpl::hspace):
              (HTMLImageElementImpl::setHspace):
              (HTMLImageElementImpl::vspace):
              (HTMLImageElementImpl::setVspace):
              (HTMLImageElementImpl::setWidth):
              (HTMLImageElementImpl::x):
              (HTMLImageElementImpl::y):
              (HTMLAreaElementImpl::tabIndex):
              (HTMLAreaElementImpl::setTabIndex):
              * khtml/html/html_imageimpl.h:
              * khtml/html/html_inlineimpl.cpp:
              (DOM::HTMLAnchorElementImpl::tabIndex):
              (DOM::HTMLAnchorElementImpl::setTabIndex):
              * khtml/html/html_inlineimpl.h:
              * khtml/html/html_listimpl.cpp:
              (DOM::HTMLOListElementImpl::setStart):
              (DOM::HTMLLIElementImpl::value):
              (DOM::HTMLLIElementImpl::setValue):
              * khtml/html/html_listimpl.h:
              (DOM::HTMLUListElementImpl::start):
              (DOM::HTMLOListElementImpl::start):
              * khtml/html/html_miscimpl.cpp:
              (DOM::HTMLCollectionImpl::calcLength):
              (DOM::HTMLCollectionImpl::length):
              (DOM::HTMLCollectionImpl::item):
              (DOM::HTMLFormCollectionImpl::calcLength):
              (DOM::HTMLFormCollectionImpl::item):
              * khtml/html/html_miscimpl.h:
              * khtml/html/html_objectimpl.cpp:
              (DOM::HTMLObjectElementImpl::tabIndex):
              (DOM::HTMLObjectElementImpl::setTabIndex):
              * khtml/html/html_objectimpl.h:
              * khtml/html/html_tableimpl.cpp:
              (DOM::HTMLTableElementImpl::insertRow):
              (DOM::HTMLTableElementImpl::deleteRow):
              (DOM::HTMLTableSectionElementImpl::insertRow):
              (DOM::HTMLTableSectionElementImpl::deleteRow):
              (DOM::HTMLTableRowElementImpl::rowIndex):
              (DOM::HTMLTableRowElementImpl::sectionRowIndex):
              (DOM::HTMLTableRowElementImpl::insertCell):
              (DOM::HTMLTableRowElementImpl::deleteCell):
              (DOM::HTMLTableCellElementImpl::cellIndex):
              (DOM::HTMLTableCellElementImpl::setColSpan):
              (DOM::HTMLTableCellElementImpl::setRowSpan):
              (DOM::HTMLTableColElementImpl::setSpan):
              * khtml/html/html_tableimpl.h:
              (DOM::HTMLTableColElementImpl::span):
              * khtml/html/htmlparser.cpp:
              (HTMLParser::handleError):
              * khtml/html/htmltokenizer.cpp:
              (khtml::HTMLTokenizer::processToken):
              * khtml/khtml_events.cpp:
              (khtml::MouseEvent::offset):
              * khtml/khtml_events.h:
              (khtml::MouseReleaseEvent::MouseReleaseEvent):
              * khtml/khtml_part.cpp:
              (KHTMLPart::restoreURL):
              (KHTMLPart::stopLoading):
              (KHTMLPart::receivedFirstData):
              (KHTMLPart::slotFinished):
              (KHTMLPart::begin):
              (KHTMLPart::slotViewFrameSource):
              (KHTMLPart::selectFrameElementInParentIfFullySelected):
              * khtml/khtml_part.h:
              * khtml/khtmlpart_p.h:
              (KHTMLPartPrivate::KHTMLPartPrivate):
              * khtml/misc/loader.h:
              * khtml/rendering/render_block.cpp:
              (khtml::RenderBlock::positionForRenderer):
              * khtml/rendering/render_br.cpp:
              (RenderBR::caretMinOffset):
              (RenderBR::caretMaxOffset):
              (RenderBR::caretMaxRenderedOffset):
              (RenderBR::inlineBox):
              * khtml/rendering/render_br.h:
              * khtml/rendering/render_form.cpp:
              (RenderLineEdit::selectionStart):
              (RenderLineEdit::selectionEnd):
              (RenderLineEdit::setSelectionStart):
              (RenderLineEdit::setSelectionEnd):
              (RenderLineEdit::setSelectionRange):
              (RenderTextArea::calcMinMaxWidth):
              (RenderTextArea::selectionStart):
              (RenderTextArea::selectionEnd):
              (RenderTextArea::setSelectionStart):
              (RenderTextArea::setSelectionEnd):
              (RenderTextArea::setSelectionRange):
              * khtml/rendering/render_form.h:
              * khtml/rendering/render_frames.cpp:
              (RenderPartObject::updateWidget):
              * khtml/rendering/render_line.cpp:
              (khtml::InlineBox::caretMinOffset):
              (khtml::InlineBox::caretMaxOffset):
              (khtml::InlineBox::caretMaxRenderedOffset):
              * khtml/rendering/render_line.h:
              * khtml/rendering/render_list.cpp:
              (RenderListMarker::calcMinMaxWidth):
              * khtml/rendering/render_list.h:
              (khtml::RenderListItem::value):
              (khtml::RenderListItem::setValue):
              * khtml/rendering/render_object.cpp:
              (RenderObject::caretMinOffset):
              (RenderObject::caretMaxOffset):
              (RenderObject::caretMaxRenderedOffset):
              (RenderObject::previousOffset):
              (RenderObject::nextOffset):
              (RenderObject::inlineBox):
              * khtml/rendering/render_object.h:
              * khtml/rendering/render_replaced.cpp:
              (RenderReplaced::caretMinOffset):
              (RenderReplaced::caretMaxOffset):
              (RenderReplaced::caretMaxRenderedOffset):
              * khtml/rendering/render_replaced.h:
              * khtml/rendering/render_table.h:
              (khtml::RenderTableCell::cellIndex):
              (khtml::RenderTableCell::setCellIndex):
              * khtml/rendering/render_text.cpp:
              (InlineTextBox::paintMarker):
              (InlineTextBox::paintMarkedTextUnderline):
              (InlineTextBox::caretMinOffset):
              (InlineTextBox::caretMaxOffset):
              (InlineTextBox::caretMaxRenderedOffset):
              (RenderText::previousOffset):
              (RenderText::nextOffset):
              (InlineTextBox::positionForOffset):
              (RenderText::caretMinOffset):
              (RenderText::caretMaxOffset):
              (RenderText::caretMaxRenderedOffset):
              (RenderText::inlineBox):
              * khtml/rendering/render_text.h:
              * khtml/xml/dom2_eventsimpl.cpp:
              (DOM::EventImpl::timeStamp):
              (DOM::UIEventImpl::UIEventImpl):
              (DOM::UIEventImpl::initUIEvent):
              (DOM::UIEventImpl::layerX):
              (DOM::UIEventImpl::layerY):
              (DOM::UIEventImpl::pageX):
              (DOM::UIEventImpl::pageY):
              (DOM::UIEventImpl::which):
              (DOM::MouseRelatedEventImpl::MouseRelatedEventImpl):
              (DOM::MouseRelatedEventImpl::pageX):
              (DOM::MouseRelatedEventImpl::pageY):
              (DOM::MouseEventImpl::MouseEventImpl):
              (DOM::MouseEventImpl::initMouseEvent):
              (DOM::MouseEventImpl::which):
              (DOM::KeyboardEventImpl::KeyboardEventImpl):
              (DOM::KeyboardEventImpl::initKeyboardEvent):
              (DOM::KeyboardEventImpl::which):
              (DOM::WheelEventImpl::WheelEventImpl):
              * khtml/xml/dom2_eventsimpl.h:
              (DOM::UIEventImpl::detail):
              (DOM::UIEventWithKeyStateImpl::UIEventWithKeyStateImpl):
              (DOM::MouseRelatedEventImpl::screenX):
              (DOM::MouseRelatedEventImpl::screenY):
              (DOM::MouseRelatedEventImpl::clientX):
              (DOM::MouseRelatedEventImpl::clientY):
              (DOM::MouseRelatedEventImpl::layerX):
              (DOM::MouseRelatedEventImpl::layerY):
              (DOM::KeyboardEventImpl::keyLocation):
              (DOM::WheelEventImpl::wheelDelta):
              * khtml/xml/dom2_rangeimpl.cpp:
              (DOM::RangeImpl::RangeImpl):
              (DOM::RangeImpl::startOffset):
              (DOM::RangeImpl::endOffset):
              (DOM::RangeImpl::setStart):
              (DOM::RangeImpl::setEnd):
              (DOM::RangeImpl::compareBoundaryPoints):
              (DOM::RangeImpl::processContents):
              (DOM::RangeImpl::checkNodeWOffset):
              * khtml/xml/dom2_rangeimpl.h:
              * khtml/xml/dom2_traversalimpl.cpp:
              (DOM::TraversalImpl::TraversalImpl):
              (DOM::TreeWalkerImpl::TreeWalkerImpl):
              * khtml/xml/dom2_traversalimpl.h:
              (DOM::TraversalImpl::whatToShow):
              * khtml/xml/dom_docimpl.cpp:
              (DocumentImpl::createNodeIterator):
              (DocumentImpl::createTreeWalker):
              (DocumentImpl::processHttpEquiv):
              (DocumentImpl::removeMarkers):
              (DocumentImpl::copyMarkers):
              (DocumentImpl::markersForNode):
              (DocumentImpl::shiftMarkers):
              * khtml/xml/dom_docimpl.h:
              * khtml/xml/dom_elementimpl.cpp:
              (ElementImpl::openTagStartToString):
              (NamedAttrMapImpl::item):
              (NamedAttrMapImpl::getAttributeItem):
              (NamedAttrMapImpl::removeAttribute):
              * khtml/xml/dom_elementimpl.h:
              (DOM::NamedAttrMapImpl::length):
              (DOM::NamedAttrMapImpl::attributeItem):
              (DOM::NamedMappedAttrMapImpl::attributeItem):
              * khtml/xml/dom_nodeimpl.cpp:
              (DOM::NodeImpl::normalize):
              (DOM::NodeImpl::nodeIndex):
              (DOM::NodeImpl::childNodeCount):
              (DOM::NodeImpl::childNode):
              (DOM::NodeImpl::maxOffset):
              (DOM::NodeImpl::maxDeepOffset):
              (DOM::NodeImpl::caretMinOffset):
              (DOM::NodeImpl::caretMaxOffset):
              (DOM::NodeImpl::caretMaxRenderedOffset):
              (DOM::NodeImpl::previousOffset):
              (DOM::NodeImpl::nextOffset):
              (DOM::ContainerNodeImpl::childNodeCount):
              (DOM::ContainerNodeImpl::childNode):
              (DOM::NodeListImpl::recursiveLength):
              (DOM::NodeListImpl::recursiveItem):
              (DOM::NodeListImpl::itemById):
              (DOM::ChildNodeListImpl::length):
              (DOM::ChildNodeListImpl::item):
              (DOM::TagNodeListImpl::length):
              (DOM::TagNodeListImpl::item):
              (DOM::NameNodeListImpl::length):
              (DOM::NameNodeListImpl::item):
              * khtml/xml/dom_nodeimpl.h:
              * khtml/xml/dom_position.cpp:
              (DOM::Position::Position):
              (DOM::Position::previous):
              (DOM::Position::next):
              (DOM::Position::renderedOffset):
              (DOM::Position::equivalentRangeCompliantPosition):
              (DOM::Position::rendersInDifferentPosition):
              (DOM::Position::trailingWhitespacePosition):
              (DOM::Position::debugPosition):
              * khtml/xml/dom_position.h:
              (DOM::Position::offset):
              * khtml/xml/dom_textimpl.cpp:
              (CharacterDataImpl::length):
              (CharacterDataImpl::substringData):
              (CharacterDataImpl::insertData):
              (CharacterDataImpl::deleteData):
              (CharacterDataImpl::replaceData):
              (CharacterDataImpl::checkCharDataOperation):
              (CharacterDataImpl::maxOffset):
              (CharacterDataImpl::caretMinOffset):
              (CharacterDataImpl::caretMaxOffset):
              (CharacterDataImpl::caretMaxRenderedOffset):
              (TextImpl::splitText):
              * khtml/xml/dom_textimpl.h:
              * kwq/DOM-CSS.mm:
              (-[DOMStyleSheetList length]):
              (-[DOMStyleSheetList item:]):
              (-[DOMCSSStyleSheet insertRule::]):
              (-[DOMCSSStyleSheet deleteRule:]):
              (-[DOMMediaList length]):
              (-[DOMMediaList item:]):
              (-[DOMCSSRuleList length]):
              (-[DOMCSSRuleList item:]):
              (-[DOMCSSMediaRule insertRule::]):
              (-[DOMCSSMediaRule deleteRule:]):
              (-[DOMCSSStyleDeclaration length]):
              (-[DOMCSSStyleDeclaration item:]):
              (-[DOMCSSValueList length]):
              (-[DOMCSSValueList item:]):
              * kwq/DOM.mm:
              (-[DOMNamedNodeMap item:]):
              (-[DOMNamedNodeMap length]):
              (-[DOMNodeList item:]):
              (-[DOMNodeList length]):
              (-[DOMCharacterData length]):
              (-[DOMCharacterData substringData::]):
              (-[DOMCharacterData insertData::]):
              (-[DOMCharacterData deleteData::]):
              (-[DOMCharacterData replaceData:::]):
              (-[DOMText splitText:]):
              (-[DOMRange description]):
              (-[DOMRange startOffset]):
              (-[DOMRange endOffset]):
              (-[DOMRange setStart::]):
              (-[DOMRange setEnd::]):
              (-[DOMNodeIterator whatToShow]):
              (-[DOMTreeWalker whatToShow]):
              (-[DOMDocument createNodeIterator::::]):
              (-[DOMDocument createTreeWalker::::]):
              * kwq/DOMCSS.h:
              * kwq/DOMCore.h:
              * kwq/DOMEvents.h:
              (-[DOMMouseEvent initMouseEvent:::::::::::::::]):
              * kwq/DOMEvents.mm:
              (-[DOMMouseEvent screenX]):
              (-[DOMMouseEvent screenY]):
              (-[DOMMouseEvent clientX]):
              (-[DOMMouseEvent clientY]):
              (-[DOMMouseEvent initMouseEvent:::::::::::::::]):
              (-[DOMUIEvent detail]):
              (-[DOMUIEvent initUIEvent:::::]):
              * kwq/DOMExtensions.h:
              * kwq/DOMHTML.h:
              * kwq/DOMHTML.mm:
              (-[DOMHTMLCollection length]):
              (-[DOMHTMLCollection item:]):
              (-[DOMHTMLOptionsCollection length]):
              (-[DOMHTMLOptionsCollection setLength:]):
              (-[DOMHTMLOptionsCollection item:]):
              (-[DOMHTMLFormElement length]):
              (-[DOMHTMLSelectElement selectedIndex]):
              (-[DOMHTMLSelectElement setSelectedIndex:]):
              (-[DOMHTMLSelectElement length]):
              (-[DOMHTMLSelectElement setLength:]):
              (-[DOMHTMLSelectElement size]):
              (-[DOMHTMLSelectElement setSize:]):
              (-[DOMHTMLSelectElement tabIndex]):
              (-[DOMHTMLSelectElement setTabIndex:]):
              (-[DOMHTMLSelectElement remove:]):
              (-[DOMHTMLOptionElement index]):
              (-[DOMHTMLInputElement maxLength]):
              (-[DOMHTMLInputElement setMaxLength:]):
              (-[DOMHTMLInputElement size]):
              (-[DOMHTMLInputElement setSize:]):
              (-[DOMHTMLInputElement tabIndex]):
              (-[DOMHTMLInputElement setTabIndex:]):
              (-[DOMHTMLTextAreaElement cols]):
              (-[DOMHTMLTextAreaElement setCols:]):
              (-[DOMHTMLTextAreaElement rows]):
              (-[DOMHTMLTextAreaElement setRows:]):
              (-[DOMHTMLTextAreaElement tabIndex]):
              (-[DOMHTMLTextAreaElement setTabIndex:]):
              (-[DOMHTMLButtonElement tabIndex]):
              (-[DOMHTMLButtonElement setTabIndex:]):
              (-[DOMHTMLOListElement start]):
              (-[DOMHTMLOListElement setStart:]):
              (-[DOMHTMLLIElement value]):
              (-[DOMHTMLLIElement setValue:]):
              (-[DOMHTMLPreElement width]):
              (-[DOMHTMLPreElement setWidth:]):
              (-[DOMHTMLAnchorElement tabIndex]):
              (-[DOMHTMLAnchorElement setTabIndex:]):
              (-[DOMHTMLImageElement height]):
              (-[DOMHTMLImageElement setHeight:]):
              (-[DOMHTMLImageElement hspace]):
              (-[DOMHTMLImageElement setHspace:]):
              (-[DOMHTMLImageElement vspace]):
              (-[DOMHTMLImageElement setVspace:]):
              (-[DOMHTMLImageElement width]):
              (-[DOMHTMLImageElement setWidth:]):
              (-[DOMHTMLObjectElement hspace]):
              (-[DOMHTMLObjectElement setHspace:]):
              (-[DOMHTMLObjectElement tabIndex]):
              (-[DOMHTMLObjectElement setTabIndex:]):
              (-[DOMHTMLObjectElement vspace]):
              (-[DOMHTMLObjectElement setVspace:]):
              (-[DOMHTMLAppletElement hspace]):
              (-[DOMHTMLAppletElement setHspace:]):
              (-[DOMHTMLAppletElement vspace]):
              (-[DOMHTMLAppletElement setVspace:]):
              (-[DOMHTMLAreaElement tabIndex]):
              (-[DOMHTMLAreaElement setTabIndex:]):
              (-[DOMHTMLTableSectionElement insertRow:]):
              (-[DOMHTMLTableSectionElement deleteRow:]):
              (-[DOMHTMLTableElement insertRow:]):
              (-[DOMHTMLTableElement deleteRow:]):
              (-[DOMHTMLTableColElement span]):
              (-[DOMHTMLTableColElement setSpan:]):
              (-[DOMHTMLTableRowElement rowIndex]):
              (-[DOMHTMLTableRowElement sectionRowIndex]):
              (-[DOMHTMLTableRowElement insertCell:]):
              (-[DOMHTMLTableRowElement deleteCell:]):
              (-[DOMHTMLTableCellElement cellIndex]):
              (-[DOMHTMLTableCellElement colSpan]):
              (-[DOMHTMLTableCellElement setColSpan:]):
              (-[DOMHTMLTableCellElement rowSpan]):
              (-[DOMHTMLTableCellElement setRowSpan:]):
              (-[DOMHTMLEmbedElement height]):
              (-[DOMHTMLEmbedElement setHeight:]):
              (-[DOMHTMLEmbedElement width]):
              (-[DOMHTMLEmbedElement setWidth:]):
              * kwq/DOMRange.h:
              * kwq/DOMStylesheets.h:
              * kwq/DOMTraversal.h:
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::advanceToNextMisspelling):
              (KWQKHTMLPart::openURLFromPageCache):
              (KWQKHTMLPart::markMisspellings):
              * kwq/KWQString.h:
              * kwq/KWQString.mm:
              (QString::toShort):
              (QString::toUShort):
              (QString::toInt):
              (QString::toUInt):
              * kwq/KWQTextEdit.h:
              * kwq/KWQTextEdit.mm:
              (QTextEdit::selectionStart):
              (QTextEdit::selectionEnd):
              (QTextEdit::setSelectionStart):
              (QTextEdit::setSelectionEnd):
              (QTextEdit::setSelectionRange):
              * kwq/WebCoreBridge.mm:
              (-[WebCoreBridge convertToNSRange:DOM::]):
      
      WebKit:
      
              Change by Darin, reviewed by me and Maciej.
      
              Fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=4547
              use int instead of long for 32-bit (to prepare for LP64 compiling)
      
              * Plugins.subproj/npapi.m: changed types to match those defined in npapi.h
              (NPN_MemAlloc):
              (NPN_MemFlush):
              (NPN_PostURLNotify):
              (NPN_PostURL):
              (NPN_Write):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10556 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      704e8bb4
  35. 18 May, 2005 1 commit
    • darin's avatar
      Reviewed by Maciej. · cfa71ee8
      darin authored
              No new layout tests required.
      
              - remove all dependencies on exceptions and RTTI (but don't turn them off yet, that will be in a later patch)
      
              * WebCore.pbproj/project.pbxproj: Set a new KHTML_NO_CPLUSPLUS_DOM define.
              Removed all C++ DOM wrapper files that we don't need to compile any more.
      
              * khtml/dom/css_stylesheet.h: Added more KHTML_NO_CPLUSPLUS_DOM checks so we don't include any
              headers when including this file.
      
              * khtml/dom/dom2_events.h: Fixed up KHTML_NO_CPLUSPLUS_DOM checks so that everything but EventListener
              is turned off when that's on. Also moved the public so that the constants from KeyboardEvent are public.
              * khtml/dom/dom2_events.cpp: Put everything except for EventListener inside KHTML_NO_CPLUSPLUS_DOM.
      
              * khtml/dom/dom2_range.h: Added KHTML_NO_CPLUSPLUS_DOM checks so that only the constants are defined,
              no classes.
      
              * khtml/dom/dom2_traversal.cpp: Put everything except for NodeFilterCondition inside KHTML_NO_CPLUSPLUS_DOM.
      
              * khtml/dom/dom_node.h: Added more KHTML_NO_CPLUSPLUS_DOM checks so we don't include any
              headers when including this file.
      
              * khtml/ecma/kjs_binding.cpp:
              (KJS::DOMObject::get): Removed exception-handling code. Now we can eliminate tryGet altogether.
              (KJS::DOMObject::put): Ditto.
              (KJS::DOMFunction::get): Ditto.
              (KJS::DOMFunction::call): Ditto.
      
              * khtml/editing/visible_text.h: Added an include of <qstring.h>.
      
              * khtml/misc/loader.h: Added isKHTMLLoader.
              * khtml/misc/loader.cpp: (Loader::isKHTMLLoader): Added. Poor-man's replacement for dynamic_cast.
      
              * khtml/rendering/render_form.h:
              * khtml/rendering/render_form.cpp: (RenderFormElement::slotTextChanged): Added. Hack to make KWQSlot work
              for this function.
      
              * khtml/xml/dom2_rangeimpl.h: Added a forward declaration of class DOMString, needed now that the C++
              DOM wrappers aren't defining it.
      
              * khtml/xml/dom_docimpl.cpp:
              (DocumentImpl::defaultEventHandler): Changed to call handleEventImpl so we don't have to make the
              C++ DOM wrapper for the event.
              * khtml/xml/dom_nodeimpl.cpp:
              (NodeImpl::handleLocalEvents): Ditto.
              (ContainerNodeImpl::insertBefore): Used SharedPtr<NodeImpl> rather than Node to protect the child node.
              (ContainerNodeImpl::replaceChild): Ditto.
              (ContainerNodeImpl::appendChild): Ditto.
              (ContainerNodeImpl::addChild): Ditto.
      
              * kwq/DOM.mm:
              (ObjCNodeFilterCondition::acceptNode): Update to add a KHTML_NO_CPLUSPLUS_DOM check since FilterCondition
              has a different API depending on the state.
              (-[DOMDocument createNodeIterator::::]): Rewrote to use NodeFilterImpl instead of NodeFilter.
              (-[DOMDocument createTreeWalker::::]): Ditto.
      
              * kwq/KWQAccObject.mm:
              (-[KWQAccObject role]): Use identifier instead of casting to Node and using elementId.
              (-[KWQAccObject title]): Ditto.
              (-[KWQAccObject accessibilityIsIgnored]): Ditto.
              (-[KWQAccObject rendererForView:]): Ditto.
      
              * kwq/KWQFrame.mm: (QFrame::setFrameStyle): Use isKHTMLView instead of dynamic_cast.
      
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::currentForm): Use focusNode instead of activeNode.
              (KWQKHTMLPart::nextKeyViewInFrame): Use isWidget instead of dynamic_cast.
              (KWQKHTMLPart::currentEventIsMouseDownInWidget): Use KHTMLView's nodeUnderMouse instead of our public one
              that uses a DOM C++ wrapper.
              (KWQKHTMLPart::partForWidget): Use isKHTMLView instead of dynamic_cast.
              (KWQKHTMLPart::passSubframeEventToSubframe): Use isWidget instead of dynamic_cast.
      
              * kwq/KWQObject.h: Made isXXX functions all public since we use them in a few more places now.
              Also added isKHTMLLoader.
              * kwq/KWQObject.mm: (QObject::isKHTMLLoader): Added. Returns false by default.
      
              * kwq/KWQSlot.mm: Removed all uses of dynamic_cast.
      
              * kwq/WebCoreBridge.mm:
              (-[WebCoreBridge stringForRange:]): Used plainText instead of text.
              (-[WebCoreBridge copyRenderNode:copier:]): Used isWidget instead of dynamic_cast.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9178 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cfa71ee8
  36. 04 May, 2004 1 commit
    • kocienda's avatar
      WebCore: · f6ea03ef
      kocienda authored
              Reviewed by Hyatt
      
              Implemented DOM traversal objects, NodeIterator and TreeWalker.
      
              * WebCore-combined.exp: Regenerate
              * WebCore.exp: Export DOMNodeFilter protocol
              * khtml/dom/dom2_traversal.cpp: Completed half-done implementation pulled from KDE tree.
              * khtml/dom/dom2_traversal.h: Ditto.
              * khtml/dom/dom_doc.cpp:
              (DOM::Document::createNodeIterator): Ditto.
              (DOM::Document::createTreeWalker): Ditto.
              * khtml/dom/dom_doc.h: Ditto.
              * khtml/ecma/kjs_dom.cpp:
              (DOMDocumentProtoFunc::tryCall): Fix cases that create traversal objects.
              * khtml/ecma/kjs_traversal.cpp:
              (DOMNodeIterator::getValueProperty): Add referenceNode and pointerBeforeReferenceNode
              properties to node interator.
              (DOMTreeWalkerProtoFunc::tryCall): Fix typo where DOMTreeWalker::PreviousNode case called previousSibling function.
              (JSNodeFilterCondition::JSNodeFilterCondition): Implement JS glue class for node filter conditions.
              (JSNodeFilterCondition::acceptNode): Ditto.
              * khtml/ecma/kjs_traversal.h:
              (KJS::DOMNodeIterator::): Add ReferenceNode and PointerBeforeReferenceNode constants.
              * khtml/ecma/kjs_traversal.lut.h:
              (KJS::): Regenerated
              * khtml/xml/dom2_traversalimpl.cpp: Completed half-done implementation pulled from KDE tree.
              * khtml/xml/dom2_traversalimpl.h: Ditto.
              * khtml/xml/dom_docimpl.cpp:
              (DocumentImpl::createNodeIterator): Ditto.
              (DocumentImpl::createTreeWalker): Ditto.
              * khtml/xml/dom_docimpl.h: Ditto.
              * khtml/xml/dom_nodeimpl.cpp:
              (NodeImpl::checkAddChild): Patched due to change in isAncestor function. This was the one pre-existing caller.
              (NodeImpl::isAncestor): Changed so that it does not return true for itself: node->isAncestor(node) now returns false.
              * khtml/xml/dom_nodeimpl.h: Made isAncestor const.
              * kwq/DOM.mm: Implemented obj-c glue for traversal objects.
              * kwq/DOMInternal.h: Ditto.
              * kwq/DOMTraversal.h: Ditto.
      
      WebKit:
      
              Reviewed by Hyatt
      
              * DOM.subproj/DOMTraversal.h: File coppied from WebCore
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@6535 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f6ea03ef
  37. 15 Apr, 2002 1 commit
    • darin's avatar
      Merged KDE 3.0 final code in and: · b70665a4
      darin authored
      JavaScriptCore:
      
      	* kjs/internal.cpp:
      	* kjs/property_map.cpp:
      	* kjs/ustring.h:
      	Removed some unneeded <config.h> includes so we are more similar
      	to the real KDE sources.
      
      	Merged changes from KDE 3.0 final and did some build fixes.
      
      	* JavaScriptCore.pbproj/project.pbxproj: Added nodes2string.cpp.
      
      	* kjs/grammar.*: Regenerated.
      	* kjs/*.lut.h: Regenerated.
      
      WebCore:
      
      	* src/kdelibs/khtml/rendering/render_text.cpp: (TextSlave::printDecoration):
      	Remove some minor gratuitous diffs vs. KDE.
      
      	* src/kdelibs/khtml/rendering/render_text.cpp: (TextSlave::printDecoration):
              Richard updated to reflect changes in KDE.
      
      	* src/kdelibs/khtml/css/css_valueimpl.cpp:
      	(FontFamilyValueImpl::FontFamilyValueImpl): Fix comment.
      	* src/kdelibs/khtml/css/cssstyleselector.cpp: Remove some gratuitous diffs vs. KDE.
      	* src/kdelibs/khtml/html/html_objectimpl.cpp:
      	(HTMLEmbedElementImpl::parseAttribute): Remove unneeded copy from KWQ's early days.
      	* src/kdelibs/khtml/html/html_tableimpl.cpp:
      	(HTMLTableElementImpl::parseAttribute),
      	(HTMLTablePartElementImpl::parseAttribute): Remove unneeded copy from KWQ's early days.
      	* src/kdelibs/khtml/html/htmltokenizer.cpp: (HTMLTokenizer::processToken): Redo the
      	APPLE_CHANGES ifdef here.
      	* src/kdelibs/khtml/khtmlpart_p.h: Update to latest kde.
      	* src/kdelibs/khtml/khtmlview.cpp: (KHTMLView::KHTMLView): Add ifdef APPLE_CHANGES.
      	(KHTMLView::~KHTMLView): Add ifdef APPLE_CHANGES.
      	(KHTMLView::print): Remove code left in here during merge process.
      	* src/kwq/KWQKHTMLPart.mm: Remove unused setFontSizes(), fontSizes(), and
      	resetFontSizes(). After the merge is landed, remove more.
      	* src/libwebcore.exp: Export updateStyleSelector() for WebKit.
      
      	Fix text to it displays at the right font size.
      
      	* src/kdelibs/khtml/css/cssstyleselector.cpp:
      	(CSSStyleSelector::computeFontSizes): Apply the same SCREEN_RESOLUTION hack here
      	that we do elsewhere.
      	* src/kdelibs/khtml/rendering/font.cpp: (Font::width): Use kMin instead of max (oops).
      	(Font::update): Turn off font database chicanery.
      	* src/kwq/KWQKHTMLPart.mm: (KHTMLPart::zoomFactor): Use zoom factor 100, not 1.
      
      	More fixes so text displays (still at wrong font size).
      
      	* src/kdelibs/khtml/rendering/font.cpp: (max): New helper.
      	(Font::drawText): Simplified implementation for now.
      	(Font::width): Simplified implementation for now.
      	* src/kwq/KWQColorGroup.mm: Reinstated QCOLOR_GROUP_SIZE.
      
      	* src/kwq/qt/qfontmetrics.h: Removed charWidth and changed _width to take QChar *.
      	* src/kwq/KWQFontMetrics.mm: Removed charWidth and changed _width to take QChar *.
      
      	Merged changes from KDE 3.0 final. Other fixes to get things compiling.
      
      	* src/kdelibs/khtml/css/css_valueimpl.cpp:
      	(CSSStyleDeclarationImpl::setProperty): Fix unused variable.
      	* src/kdelibs/khtml/khtmlview.cpp: (KHTMLView::contentsContextMenuEvent):
      	Fix unused variable.
      	* src/kdelibs/khtml/rendering/font.cpp: (Font::drawText), (Font::width),
      	(Font::update): Disable special "nsbp" logic for now. We can reenable it
      	if necessary.
      	* src/kdelibs/khtml/rendering/render_replaced.cpp: Fix mismerge.
      	* src/kdelibs/khtml/rendering/render_text.cpp: (RenderText::nodeAtPoint):
      	Fix unused variable.
      	* src/kwq/KWQApplication.mm: (QDesktopWidget::width), (QApplication::desktop):
      	Fix mismerge.
      	* src/kwq/KWQColorGroup.mm: Fix QCOLOR_GROUP_SIZE.
      	* src/kwq/KWQFontMetrics.mm: (QFontMetrics::lineSpacing): New.
      	(QFontMetrics::width): Remove unused optimization.
      	* src/kwq/qt/qfontmetrics.h: Add lineSpacing().
      
              Merged changes from previous merge pass.
      
              2002-03-25  Darin Adler  <darin@apple.com>
      
              Last bit of making stuff compile and link. Probably will drop the merge now
              and take it up again when it's time to merge in KDE 3.0 final.
      
      	* src/kwq/KWQEvent.mm: (QFocusEvent::reason): New.
      	* src/kwq/KWQPainter.mm: (QPainter::drawText): New overload.
      
              2002-03-25  Darin Adler  <darin@apple.com>
      
      	* src/kdelibs/khtml/rendering/font.cpp: (Font::width): Make it call _width so we
              don't lose the optimization.
      
      	* src/kwq/KWQApplication.mm: (QDesktopWidget::screenNumber): New.
      	(QDesktopWidget::screenGeometry): New.
              (QApplication::style): New.
      	* src/kwq/KWQColorGroup.mm: (QColorGroup::highlight): New.
      	(QColorGroup::highlightedText): New.
      	* src/kwq/KWQFont.mm: (QFont::setPixelSize): New.
      	* src/kwq/KWQFontMetrics.mm: (QFontMetrics::charWidth): New.
      	* src/kwq/KWQKGlobal.mm: (KGlobal::locale): Implement.
              (KLocale::KLocale): New.
      	(KLocale::languageList): New.
      	* src/kwq/KWQKHTMLPart.mm: (KHTMLPart::sheetUsed): New.
      	(KHTMLPart::setSheetUsed): New.
              (KHTMLPart::zoomFactor): New.
      	* src/kwq/KWQKHTMLSettings.mm: (KHTMLSettings::mediumFontSize): New.
      	* src/kwq/KWQScrollView.mm: (QScrollView::childX): New.
              (QScrollView::childY): New.
      
      	* src/kwq/qt/qapplication.h: style() returns a QStyle &.
      	* src/kwq/qt/qpalette.h: Add Highlight and HighlightedText.
      
              2002-03-24  Darin Adler  <darin@apple.com>
      
              More compiling. Still won't link.
      
      	* src/kdelibs/khtml/khtmlview.cpp: Disable printing and drag and drop code.
      	* src/kdelibs/khtml/rendering/render_text.cpp: (TextSlave::printDecoration):
              Temporarily turn off our smarter underlining since it relies on access to the
              string, and TextSlave doesn't have that any more.
      	(RenderText::nodeAtPoint): Get rid of a workaround we don't need any more for
              a bug that was fixed by KDE folks.
      	* src/kwq/KWQApplication.mm: (QApplication::desktop): Make the desktop be a
              QDesktopWidget.
      	* src/kwq/qt/qnamespace.h: Add MetaButton.
      	* src/kwq/qt/qtooltip.h: Add a maybeTip virtual function member and a virtual
              destructor.
      
              2002-03-24  Darin Adler  <darin@apple.com>
      
              Some fixes to get more stuff to compile.
      
      	* src/kdelibs/khtml/ecma/kjs_dom.cpp: (DOMDocument::getValueProperty):
              Don't try to look at the private m_bComplete to display "complete". Just do
              "loading" and "loaded".
              * src/kdelibs/khtml/khtmlpart_p.h: #ifdef this all out for APPLE_CHANGES.
      	* src/kdelibs/khtml/rendering/font.cpp: (Font::update): Add an explicit cast to
              int to avoid float -> int warning.
      	* src/kdelibs/khtml/rendering/render_table.cpp: (RenderTable::calcColMinMax):
              Add an explicit cast to int to avoid uint compared with int warning.
      	* src/kdelibs/khtml/xml/dom_docimpl.cpp: (DocumentImpl::recalcStyleSelector):
              Use sheetUsed() and setSheetUsed() functions on KHTMLPart intead of getting
              at private fields the way the real KDE code does.
      
              * src/kwq/KWQKHTMLPart.h: Declare zoomFactor(), sheetUsed(), and setSheetUsed().
      	* src/kwq/KWQStyle.h: Add PM_DefaultFramWidth as another metric.
      	* src/kwq/kdecore/klocale.h: Add languageList().
      	* src/kwq/khtml/khtml_settings.h: Add mediumFontSize().
      	* src/kwq/qt/qapplication.h: Add style() and QDesktopWidget.
      	* src/kwq/qt/qevent.h: Add reason().
      	* src/kwq/qt/qfont.h: Add setPixelSize(int).
      	* src/kwq/qt/qfontmetrics.h: Add charWidth() and _charWidth() functions.
      	* src/kwq/qt/qpainter.h: Add drawText() overload with position parameter.
      	* src/kwq/qt/qpalette.h: Add highlight() and highlightedText().
      	* src/kwq/qt/qscrollview.h: Add childX() and childY().
      
      	* src/kwq/KWQApplication.mm: Change KWQDesktopWidget to QDesktopWidget.
      
      WebKit:
      
      	* WebView.subproj/IFPreferences.h:
      	* WebView.subproj/IFPreferences.mm: (+[IFPreferences load]): Remove the old
      	WebKitFontSizes preference.
      	(-[IFPreferences mediumFontSize]), (-[IFPreferences setMediumFontSize:]): New.
      
      	* WebView.subproj/IFWebView.mm: (-[IFWebView reapplyStyles]): Call
      	updateStyleSelector() instead of recalcStyle().
      
              Merged changes from previous merge branch.
      
              2002-03-25  Darin Adler  <darin@apple.com>
      
      	* WebView.subproj/IFPreferences.mm: (+[IFPreferences load]):
              Add WebKitMediumFontSizePreferenceKey.
      
      WebBrowser:
      
      	* Preferences.subproj/TextPreferences.m: (-[TextPreferences defaultFontSize]),
      	(-[TextPreferences setDefaultFontSize:]): Just get and set the new mediumFontSize
      	preference rather than doing the whole fontSizes preference dance.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1024 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b70665a4
  38. 21 Mar, 2002 1 commit