WebKit-https.git
15 years ago2006-12-21 Mark Rowe <bdash@webkit.org>
bdash [Thu, 21 Dec 2006 08:08:59 +0000 (08:08 +0000)]
2006-12-21  Mark Rowe  <bdash@webkit.org>

        Reviewed by Geoff.

        http://bugs.webkit.org/show_bug.cgi?id=11888
        Bug 11888: REGRESSION (r18320): Web Inspector panes broken

        * WebInspector/webInspector/inspector.js: Use removeProperty to reset a style property to its
        initial value.  Bail out early from updateNodePane if Inspector has not yet been set.

2006-12-21  Mark Rowe  <bdash@webkit.org>

        Reviewed by Geoff.

        http://bugs.webkit.org/show_bug.cgi?id=11888
        Bug 11888: REGRESSION (r18320): Web Inspector panes broken

        * Drosera/debugger.js: Use removeProperty to reset a style property to its initial value.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18374 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoLand updated results for computed style test.
hyatt [Thu, 21 Dec 2006 07:53:18 +0000 (07:53 +0000)]
Land updated results  for computed style test.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18373 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Make sure the execrable match-nearest-mail-blockquote-color CSS property...
hyatt [Thu, 21 Dec 2006 07:41:41 +0000 (07:41 +0000)]
    Make sure the execrable match-nearest-mail-blockquote-color CSS property is actually initialized (amazingly
        it started off with the value "match", since it wasn't even initialized).  Now that it is actually being
        initialized and properly copied and assigned to, tests have failed.  It seems that we were getting the
        behavior of "match" by default, when the initial value was supposed to be "normal."

        Because this property really should not exist at all, it's unclear to me what the right solution is here.

        * rendering/RenderStyle.cpp:
        (WebCore::StyleCSS3NonInheritedData::StyleCSS3NonInheritedData):
        (WebCore::StyleCSS3NonInheritedData::operator==):
        * rendering/RenderStyle.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18372 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Reviewed by Adam's rubberstamp
beidson [Thu, 21 Dec 2006 05:43:32 +0000 (05:43 +0000)]
    Reviewed by Adam's rubberstamp

        Accidentally left a logging channel on in my checkin

        * platform/Logging.cpp:
        (WebCore::):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18371 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoReviewed by Oliver.
zimmermann [Thu, 21 Dec 2006 01:42:38 +0000 (01:42 +0000)]
Reviewed by Oliver.

Fix removeItem recursively calling itself (!). It was meant to call m_vector.remove(index)
not removeItem(index, ec). This bug is in SVN for quite some time now :-)

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18370 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Reviewed by John Sullivan.
harrison [Thu, 21 Dec 2006 01:29:17 +0000 (01:29 +0000)]
    Reviewed by John Sullivan.

        <rdar://problem/4893376> REGRESSION: Crash occurs at WebCoreFrameBridge fontForSelection: when drag selecting from a line break

        No layout test added because crash only happens in path where editing window is key,
        which is never the case for the automated tests.

        * page/mac/WebCoreFrameBridge.mm:
        (-[WebCoreFrameBridge fontForSelection:]):
        Add nil check of fontForSelection() result.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18369 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoReviewed by Adam.
zimmermann [Thu, 21 Dec 2006 00:53:02 +0000 (00:53 +0000)]
Reviewed by Adam.

Adding new test js-update-style.svg, testing
dynamic style updates via JS (here: stroke-width change)

Setting eol-style native property for all the js-update*.svg
files, as requested by Adam.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18368 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoReviewed by Beth.
zimmermann [Thu, 21 Dec 2006 00:26:38 +0000 (00:26 +0000)]
Reviewed by Beth.

Adding new test js-update-pattern.svg, testing
dynamic pattern updates via JS.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18367 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoReviewed by Maciej.
zimmermann [Thu, 21 Dec 2006 00:13:42 +0000 (00:13 +0000)]
Reviewed by Maciej.

Fix dynamic gradient changes, via JS. It actually worked before, but it
wasn't repainted. Behave just like the pattern notifyAttributeChange() code now.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18366 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Reviewed by Darin Adler.
ggaren [Wed, 20 Dec 2006 23:57:05 +0000 (23:57 +0000)]
    Reviewed by Darin Adler.

        Fixed <rdar://problem/4809825>. We need to check isSafeScript when converting
        a Location to string.

        It's really a bug, and poor design, for objects to override toString.
        Subclasses that want custom toString implementations should add a toString
        function to their prototypes instead of overriding the JavaScript ToString
        operation. Following this design pattern would have avoided this bug in the
        first place.

        * bindings/js/kjs_window.cpp:
        (KJS::Location::toString):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18365 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoReviewed by Sam.
zimmermann [Wed, 20 Dec 2006 23:09:40 +0000 (23:09 +0000)]
Reviewed by Sam.
Add a new set of SVG JavaScript testcases, mostly using SVG DOM.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18364 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoUpdate computed style layout test results.
hyatt [Wed, 20 Dec 2006 22:30:47 +0000 (22:30 +0000)]
Update computed style layout test results.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18361 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Fix SVG stroking. Make strokeThickness() get pushed into CG immediately
hyatt [Wed, 20 Dec 2006 22:25:31 +0000 (22:25 +0000)]
    Fix SVG stroking.  Make strokeThickness() get pushed into CG immediately
        when set in the GraphicsContext.  Remove setLineWidth since it is
        redundant with setStrokeThickness now.

        Reviewed by mitz

        * html/CanvasRenderingContext2D.cpp:
        (WebCore::CanvasRenderingContext2D::setLineWidth):
        * platform/graphics/GraphicsContext.cpp:
        (WebCore::GraphicsContext::setPlatformStrokeThickness):
        (WebCore::GraphicsContext::setPlatformStrokeStyle):
        * platform/graphics/GraphicsContext.h:
        * platform/graphics/cg/GraphicsContextCG.cpp:
        (WebCore::GraphicsContext::drawLine):
        (WebCore::GraphicsContext::drawEllipse):
        (WebCore::GraphicsContext::strokeArc):
        (WebCore::GraphicsContext::drawConvexPolygon):
        (WebCore::GraphicsContext::setPlatformStrokeThickness):
        * platform/graphics/qt/GraphicsContextQt.cpp:
        * platform/mac/FontMac.mm:
        (WebCore::Font::drawComplexText):
        (WebCore::Font::drawGlyphs):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18360 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Fix for bug 11893, white text on form controls. Just make sure that
hyatt [Wed, 20 Dec 2006 21:55:41 +0000 (21:55 +0000)]
    Fix for bug 11893, white text on form controls.  Just make sure that
        all form control drawing in RenderTheme is bracketed by save/restore
        calls.

        Reviewed by adele

        * platform/mac/LocalCurrentGraphicsContext.h:
        * platform/mac/LocalCurrentGraphicsContext.mm:
        (WebCore::LocalCurrentGraphicsContext::LocalCurrentGraphicsContext):
        (WebCore::LocalCurrentGraphicsContext::~LocalCurrentGraphicsContext):
        * rendering/RenderThemeMac.mm:
        (WebCore::RenderThemeMac::paintTextField):
        (WebCore::RenderThemeMac::paintTextArea):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18359 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago2006-12-20 Mark Rowe <bdash@webkit.org>
bdash [Wed, 20 Dec 2006 21:54:10 +0000 (21:54 +0000)]
2006-12-20  Mark Rowe  <bdash@webkit.org>

        Reviewed by Anders.

        Fix leak of CGContextRef from GraphicsContext::createImageBuffer.

        * platform/graphics/cg/GraphicsContextCG.cpp:
        (WebCore::GraphicsContext::createImageBuffer): Release newly-created CGContextRef after passing it to GraphicsContext.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18358 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Rubber-stamped by Darin.
bdakin [Wed, 20 Dec 2006 21:28:57 +0000 (21:28 +0000)]
    Rubber-stamped by Darin.

        This test also needs updated results after my clone node check-in.
        Somehow, the fix to clone node eliminated the dummy spans in both
        of these tests. This is an improvement.

        * editing/style/remove-underline-expected.checksum:
        * editing/style/remove-underline-expected.png:
        * editing/style/remove-underline-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18357 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago * kjs/string_object.cpp:
andersca [Wed, 20 Dec 2006 20:25:51 +0000 (20:25 +0000)]
    * kjs/string_object.cpp:
        (localeCompare):
        Another speculative Win32 fix.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18356 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago * kjs/string_object.cpp:
andersca [Wed, 20 Dec 2006 20:20:20 +0000 (20:20 +0000)]
    * kjs/string_object.cpp:
        (localeCompare):
        Speculative Win32 fix.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18355 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Reviewed by Darin.
andersca [Wed, 20 Dec 2006 20:11:47 +0000 (20:11 +0000)]
    Reviewed by Darin.

        <rdar://problem/4235733>
        <http://bugs.webkit.org/?show_bug.cgi?id=10193>
        support String.localeCompare.

        Implement localeCompare.

        * JavaScriptCore.xcodeproj/project.pbxproj:
        * kjs/string_object.cpp:
        (localeCompare):
        (StringProtoFunc::callAsFunction):
        * kjs/string_object.h:
        (KJS::StringProtoFunc::):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18354 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Reviewed by Mark Rowe.
thatcher [Wed, 20 Dec 2006 19:20:00 +0000 (19:20 +0000)]
    Reviewed by Mark Rowe.

        * JavaScriptCore.xcodeproj/project.pbxproj: use GCC 4.0 for all the other test targets

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18353 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Reviewed by Mark Rowe.
thatcher [Wed, 20 Dec 2006 18:54:38 +0000 (18:54 +0000)]
    Reviewed by Mark Rowe.

        <rdar://problem/4871993> WebCore-421.31 build fails with "Public API change" error when gcc 3.3 is the default compiler

        * bindings/scripts/CodeGeneratorObjC.pm: ignore blank lines in the public API check

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18352 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Rubber stamped by Darin.
bdakin [Wed, 20 Dec 2006 18:50:31 +0000 (18:50 +0000)]
    Rubber stamped by Darin.

        Updated results for this test after my clone node check-in
        yesterday.

        * editing/style/remove-underline-across-paragraph-expected.checksum:
        * editing/style/remove-underline-across-paragraph-expected.png:
        * editing/style/remove-underline-across-paragraph-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18351 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Updated for Justin's checkin that added properties.
harrison [Wed, 20 Dec 2006 18:41:55 +0000 (18:41 +0000)]
    Updated for Justin's checkin that added properties.

        * fast/dom/Window/window-properties-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18350 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Reviewed by Mark Rowe.
thatcher [Wed, 20 Dec 2006 18:36:23 +0000 (18:36 +0000)]
    Reviewed by Mark Rowe.

        <rdar://problem/4871613> JavaScriptCore-421.31's dftables target needs to override default compiler and use gcc-4.0

        * JavaScriptCore.xcodeproj/project.pbxproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18349 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoLayoutTests:
harrison [Wed, 20 Dec 2006 15:40:34 +0000 (15:40 +0000)]
LayoutTests:

        Reviewed by John Sullivan.

        Test for <rdar://problem/4570218> REGRESSION (?-10.4.7): cntl-K only works the first time

        * editing/deleting/delete-to-end-of-paragraph-expected.checksum: Added.
        * editing/deleting/delete-to-end-of-paragraph-expected.png: Added.
        * editing/deleting/delete-to-end-of-paragraph-expected.txt: Added.
        * editing/deleting/delete-to-end-of-paragraph.html: Added.

WebCore:

        Reviewed by John Sullivan.

        <rdar://problem/4570218> REGRESSION (?-10.4.7): cntl-K only works the first time

        Test:
        * editing/deleting/delete-to-end-of-paragraph.html

        * editing/TypingCommand.cpp:
        (WebCore::TypingCommand::forwardDeleteKeyPressed):
        If the selection was a caret at the end of the paragraph, extend selection so it wraps to the start of next paragraph (if any),

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18345 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoBuild fix, reviewed by Mitz.
zimmermann [Wed, 20 Dec 2006 14:16:38 +0000 (14:16 +0000)]
Build fix, reviewed by Mitz.
Fix mac build, by using proper float -> int conversion.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18344 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoFix warning on buildbot on mac.
hyatt [Wed, 20 Dec 2006 11:32:54 +0000 (11:32 +0000)]
Fix warning on buildbot on mac.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18343 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Make sure text decoration colors prefer stroke over fill (and honor both...
hyatt [Wed, 20 Dec 2006 11:16:20 +0000 (11:16 +0000)]
    Make sure text decoration colors prefer stroke over fill (and honor both of the new CSS properties added
        for these values over color).

        Reviewed by mitz

        Added fast/text/stroking-decorations.html

        * rendering/InlineFlowBox.cpp:
        (WebCore::InlineFlowBox::paintDecorations):
        * rendering/RenderObject.cpp:
        (WebCore::decorationColor):
        (WebCore::RenderObject::getTextDecorationColors):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18342 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoLayoutTests:
ddkilzer [Wed, 20 Dec 2006 11:05:35 +0000 (11:05 +0000)]
LayoutTests:

        Reviewed by Darin.

        Test for http://bugs.webkit.org/show_bug.cgi?id=11746
        REGRESSION(r14931): Outlook Web Access incorrectly positions the insertion point when replying to e-mail

        * editing/selection/move-begin-end-expected.txt: Updated editing delegate results.
        * fast/forms/onselect-textarea-expected.txt: Updated selection start/end positions.
        * fast/forms/textarea-initial-caret-position-expected.txt: Added.
        * fast/forms/textarea-initial-caret-position.html: Added.
        * fast/forms/textarea-no-scroll-on-blur.html:
        Updated to position caret at end of text to match previous initial focus behavior for this test.
        * fast/forms/textarea-scrollbar.html: Ditto.
        * fast/forms/textarea-scrolled-endline-caret.html: Ditto.
        * fast/forms/textarea-scrolled-type.html: Ditto.

WebCore:

        Reviewed by Darin.

        http://bugs.webkit.org/show_bug.cgi?id=11746
        REGRESSION(r14931): Outlook Web Access incorrectly positions the insertion point when replying to e-mail

        Set caret at beginning of text on initial focus.

        Test: fast/forms/textarea-initial-caret-position.html

        * html/HTMLTextAreaElement.cpp:
        (WebCore::HTMLTextAreaElement::updateFocusAppearance):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18341 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Fix for bug 11889, support stroking and filling of HTML text from CSS. This...
hyatt [Wed, 20 Dec 2006 10:31:33 +0000 (10:31 +0000)]
    Fix for bug 11889, support stroking and filling of HTML text from CSS.  This patch adds four new CSS properties:
        text-fill-color, text-stroke-color, text-stroke-width and text-stroke (a shorthand for the other two).  Text
        is filled and not stroked by default and does so using the text-fill-color.  If this property is not set, then
        color is used.

        Stroking is accomplished by setting a stroke width.  Stroke color, if omitted, will be picked up from the color
        property.  You can set either color to be transparent or partially transparent.  A fully transparent fill color is
        the way to achieve an "outline" effect where only stroking happens.

        Stroking and filling are both customizable inside the ::selection pseudo-element, and so when selecting you can
        vary colors and widths.

        text-shadow applies to both the stroke and the fill.

        text-decorations do not yet respect the stroke/fill colors.  This will follow in a later patch.

        Reviewed by mitz

        Added fast/text/stroking.html as a layout test.  Enhanced RenderTreeAsText.cpp to dump fill and stroke information.

        * css/CSSComputedStyleDeclaration.cpp:
        (WebCore::):
        (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
        * css/CSSPropertyNames.in:
        * css/cssparser.cpp:
        (WebCore::CSSParser::parseValue):
        * css/cssstyleselector.cpp:
        (WebCore::CSSStyleSelector::applyProperty):
        * platform/mac/FontMac.mm:
        (WebCore::Font::drawComplexText):
        (WebCore::Font::drawGlyphs):
        * rendering/InlineFlowBox.cpp:
        (WebCore::InlineFlowBox::placeBoxesHorizontally):
        * rendering/InlineFlowBox.h:
        (WebCore::InlineFlowBox::InlineFlowBox):
        (WebCore::InlineFlowBox::maxHorizontalVisualOverflow):
        * rendering/InlineTextBox.cpp:
        (WebCore::updateGraphicsContext):
        (WebCore::InlineTextBox::paint):
        (WebCore::InlineTextBox::paintSelection):
        (WebCore::InlineTextBox::paintMarkedTextBackground):
        (WebCore::InlineTextBox::paintTextMatchMarker):
        * rendering/RenderObject.cpp:
        (WebCore::RenderObject::selectionForegroundColor):
        * rendering/RenderStyle.cpp:
        (WebCore::StyleCSS3InheritedData::StyleCSS3InheritedData):
        (WebCore::StyleCSS3InheritedData::operator==):
        (WebCore::RenderStyle::diff):
        * rendering/RenderStyle.h:
        (WebCore::RenderStyle::textStrokeColor):
        (WebCore::RenderStyle::textStrokeWidth):
        (WebCore::RenderStyle::textFillColor):
        (WebCore::RenderStyle::setTextStrokeColor):
        (WebCore::RenderStyle::setTextStrokeWidth):
        (WebCore::RenderStyle::setTextFillColor):
        (WebCore::RenderStyle::initialTextStrokeWidth):
        * rendering/RenderTreeAsText.cpp:
        (WebCore::operator<<):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18340 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoAdded support to bind QObject's to JavaScript.
lars [Wed, 20 Dec 2006 10:05:24 +0000 (10:05 +0000)]
Added support to bind QObject's to JavaScript.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18339 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoLayoutTests:
adele [Wed, 20 Dec 2006 07:18:26 +0000 (07:18 +0000)]
LayoutTests:

        Reviewed by Anders.

        Test for <rdar://problem/3824247> Select All works even if -khtml-user-select:none; style is set

        * editing/selection/select-all-user-select-none-expected.txt: Added.
        * editing/selection/select-all-user-select-none.html: Added.

WebCore:

        Reviewed by Anders.

        - Fix for <rdar://problem/3824247> Select All works even if -khtml-user-select:none; style is set

        Also made user-select:none work on new list boxes, and cleaned up the list box defaultEventHandler.

        Test: editing/selection/select-all-user-select-none.html

        * editing/SelectionController.cpp: (WebCore::SelectionController::selectAll): Make sure canSelect is true on the root renderer.
        * html/HTMLSelectElement.cpp:
        (WebCore::HTMLSelectElement::canSelectAll): Check canSelect here.
        (WebCore::HTMLSelectElement::selectAll): Added nil check for renderer.
        (WebCore::HTMLSelectElement::defaultEventHandler): Return early if the event has been handled.
        (WebCore::HTMLSelectElement::listBoxDefaultEventHandler): Check canSelect here.
        * html/HTMLSelectElement.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18338 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Reviewed by Geoff.
andersca [Wed, 20 Dec 2006 06:52:38 +0000 (06:52 +0000)]
    Reviewed by Geoff.

        Add -p option to testkjs which pretty prints the files instead of executing them.

        * JavaScriptCore.exp:
        * JavaScriptCore.xcodeproj/project.pbxproj:
        * kjs/Parser.cpp:
        (KJS::Parser::prettyPrint):
        * kjs/Parser.h:
        * kjs/testkjs.cpp:
        (doIt):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18337 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoFix bug numbers (Thanks Mitz!)
andersca [Wed, 20 Dec 2006 06:22:28 +0000 (06:22 +0000)]
Fix bug numbers (Thanks Mitz!)

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18336 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoLayoutTests:
andersca [Wed, 20 Dec 2006 06:00:38 +0000 (06:00 +0000)]
LayoutTests:

        Reviewed by Adele.

        <rdar://problem/4726407>
        [9A255] Crash in WebCore::EventTargetNode::dispatchEvent

        * fast/dom/resources/script-element-gc.js: Added.
        * fast/dom/script-element-gc-expected.txt: Added.
        * fast/dom/script-element-gc.html: Added.

WebCore:

        Reviewed by Adele.

        <rdar://problem/4726407>
        [9A255] Crash in WebCore::EventTargetNode::dispatchEvent

        * html/HTMLScriptElement.cpp:
        (WebCore::HTMLScriptElement::notifyFinished):
        Ref the script element while running the script since it can be freed
        when executing the script.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18335 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Reviewed by Geoff.
darin [Wed, 20 Dec 2006 01:49:03 +0000 (01:49 +0000)]
    Reviewed by Geoff.

        - <rdar://problem/4885227>
          frame resizing is now live and no longer does direct drawing

        * html/HTMLFrameSetElement.h: Made frameBorder() and noResize() const.
        Added rowLengths() and colLengths() getters so that we don't have to
        have RenderFrameSet as a friend. Stopped using bit fields.

        * html/HTMLFrameSetElement.cpp:
        (WebCore::HTMLFrameSetElement::defaultEventHandler): Removed now-uneeded
        check for contextmenu events. Look at return value from userResize to
        decide whether to mark the event as "default handled". In the case where
        the event is handled, don't call through to the base class.

        * rendering/RenderFrameSet.h: No longer mark HTMLFrameSetElement as a
        friend. Made positionFrames and canResize private, and changed canResize
        to take an IntPoint. Added isResizingRow, isResizingColumn, canResizeRow,
        and canResizeColumn functions to be used soon for cursor feedback.
        Removed override of non-virtual element() function and replaced it with
        a private frameSet() inline function. Grouped all the data members for
        each axis into a GridAxis class, and made one called m_cols and one called
        m_rows. Used vectors for the resizable bits of this instead of new/delete
        arrays. Added a constant named "noSplit" so we don't have to use -1
        everywhere explicitly for this purpose. Renamed setResizing to
        setIsResizing and made it private. Eliminated resizing() function.
        Added new private helper functions, layOutAxis, findNonResizableSplits,
        splitPosition, hitTestSplit, startResizing, and continueResizing.
        Renamed m_resizing to m_isResizing, and m_clientResizing to
        m_isChildResizing.

        * rendering/RenderFrameSet.cpp:
        (WebCore::RenderFrameSet::RenderFrameSet): Removed now-unneeded initialization
        that is handled by the GridAxis and Vector constructors.
        (WebCore::RenderFrameSet::~RenderFrameSet): Ditto (for destructors).
        (WebCore::RenderFrameSet::GridAxis::GridAxis): Added.
        (WebCore::RenderFrameSet::frameSet): Added. Inline function so we don't have
        to cast the result of node() or element() everywhere.
        (WebCore::RenderFrameSet::nodeAtPoint): Updated for name changes.
        (WebCore::RenderFrameSet::GridAxis::resize): Added. Helper function to be used
        in the layout function.
        (WebCore::RenderFrameSet::layOutAxis): Added. Factored out the part of the
        layout function that used to be inside a for loop for the two axes.
        The algorithm is otherwise unchanged.
        (WebCore::RenderFrameSet::findNonResizableSplits): Added. Factored out the
        code that set up the "split variable" arrays from the layout function.
        (WebCore::RenderFrameSet::layout): Moved the bulk of this function into the
        new helpers. This allowed me to remove the use of goto.
        (WebCore::RenderFrameSet::positionFrames): Updated for change to data structures.
        Also added some more local variables for clarity.
        (WebCore::RenderFrameSet::startResizing): Added. Code factored out of the
        userResize function that handles mousedown events that might begin a resize.
        (WebCore::RenderFrameSet::continueResizing): Added. Code factored out of the
        userResize function that handles mouse events that continue a resize already
        in progress, including mouseup events that end the resizing. Uses the new
        splitPosition function so it can be used over and over again while resizing.
        (WebCore::RenderFrameSet::userResize): Restructured to use the new helper
        functions. Removed the direct drawing of a gray bar during mouse movement;
        instead we do the resizing live.
        (WebCore::RenderFrameSet::setIsResizing): Updated for name changes.
        (WebCore::RenderFrameSet::isResizingRow): Added.
        (WebCore::RenderFrameSet::isResizingColumn): Added.
        (WebCore::RenderFrameSet::canResize): Changed to use hitTestSplit for clarity.
        (WebCore::RenderFrameSet::canResizeRow): Added.
        (WebCore::RenderFrameSet::canResizeColumn): Added.
        (WebCore::RenderFrameSet::splitPosition): Added.
        (WebCore::RenderFrameSet::hitTestSplit): Added. Contains the guts of the code
        that was used both in canResize and userResize before -- now it's shared.
        (WebCore::RenderFrameSet::dump): Updated for name changes.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18333 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoLayoutTests:
justing [Wed, 20 Dec 2006 01:16:17 +0000 (01:16 +0000)]
LayoutTests:

        Reviewed by harrison

        Added Selection::removeAllRanges() and ::addRange()

        * editing/selection/addRange-expected.checksum: Added.
        * editing/selection/addRange-expected.png: Added.
        * editing/selection/addRange-expected.txt: Added.
        * editing/selection/addRange.html: Added.
        * editing/selection/removeAllRanges-expected.txt: Added.
        * editing/selection/removeAllRanges.html: Added.

WebCore:

        Reviewed by harrison

        Added Selection::removeAllRanges() and ::addRange()

        * bindings/js/kjs_window.cpp:
        (KJS::SelectionFunc::callAsFunction): Added the bindings for
        the two new functions.
        * bindings/js/kjs_window.h:
        (KJS::Selection::):
        * editing/SelectionController.cpp:
        (WebCore::SelectionController::removeAllRanges): Equivalent
        to clear().
        (WebCore::SelectionController::addRange): Until we support
        discontiguous selections, the new selected range is the
        union of the old selected range and the passed range if
        the two intersect, and the old range if they don't.
        * editing/SelectionController.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18332 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Reviewed by Darin
sullivan [Wed, 20 Dec 2006 01:07:15 +0000 (01:07 +0000)]
    Reviewed by Darin

        - fix for unrepro infinite recursion bug:
        <rdar://problem/4448181> CrashTracer: 154 crashes in Safari at com.apple.AppKit:
        -[NSView isDescendantOf:] + 24; infinite recursion in makeFirstResponder logic

        * WebView/WebView.mm:
        added becomingFirstResponder BOOL to private struct
        (-[WebView becomeFirstResponder]):
        use _private->becomingFirstResponder to guard against infinite recursion; complain on
        debug builds if we run into this problem

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18331 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agom2006-12-19 Oliver Hunt <oliver@apple.com>
oliver [Wed, 20 Dec 2006 00:41:58 +0000 (00:41 +0000)]
m2006-12-19  Oliver Hunt  <oliver@apple.com>

        rs=ggaren.
        Fix expected output of layout test to not rely on ms fonts

        * svg/custom/js-font-test-expected.checksum:
        * svg/custom/js-font-test-expected.png:
        * svg/custom/js-font-test-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18329 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Reviewed by Hyatt.
bdakin [Wed, 20 Dec 2006 00:32:37 +0000 (00:32 +0000)]
    Reviewed by Hyatt.

        Fix for <rdar://problem/4860924> outerHTML gives an out-of-date
        result when applied to a clone

        We were only copying the m_inlineStyleDecl over to clones, but we
        need to copy m_isStyleAttributeValid and
        m_synchronizingStyleAttribute as well to know when we have to
        update style, etc.

        * dom/StyledElement.cpp:
        (WebCore::StyledElement::copyNonAttributeProperties): Copy over all
        three member variables.
        * dom/StyledElement.h:
        * html/HTMLElement.cpp:
        (WebCore::HTMLElement::cloneNode): No longer need to copy the
        inline style decl explicitly because copyNonAttributeProperties()
        will take care of it.
        * html/HTMLInputElement.cpp:
        (WebCore::HTMLInputElement::copyNonAttributeProperties): Call into
        parent class implementation. This is important now that there is
        more than one implementation of this function.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18328 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Reviewed by Darin Adler.
ggaren [Tue, 19 Dec 2006 23:39:03 +0000 (23:39 +0000)]
    Reviewed by Darin Adler.

        Fixed http://bugs.webkit.org/show_bug.cgi?id=11880
        REGRESSION (r18304): Assertion failure in -[WebHTMLView _canProcessDragWithDraggingInfo:]
        when dragging over the window's a scroll bar (innerFrame)

        RenderLayer needs to check 'active,' when deciding what to do if hit testing
        hasn't hit anything, because we want the default hit testing mechanism to return the
        document when we hit a scrollbar.

        This problem shows that the idea of 'capturing' was a little too ambitious
        in hit testing, at least given the current state of things. So, I've replaced
        'capturing' with 'mouseUp,' the condition that provided the immediate need
        for the capturing flag in the first place.

        * page/EventHandler.cpp:
        (WebCore::EventHandler::handleMouseMoveEvent):
        * rendering/HitTestRequest.h: Removed 'capturing'
        (WebCore::HitTestRequest::HitTestRequest):
        * rendering/RenderLayer.cpp:
        (WebCore::RenderLayer::hitTestLayer):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18327 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoJavaScriptCore:
beidson [Tue, 19 Dec 2006 23:08:10 +0000 (23:08 +0000)]
JavaScriptCore:

        Rubberstamped by Lou

        Removed unneccessary "else"

        * wtf/Assertions.cpp:

WebCore:

        Reviewed by Ada

        Added a logging channel for network activity for loader work

        * platform/Logging.cpp:
        (WebCore::):
        * platform/Logging.h:
        * platform/mac/LoggingMac.mm:
        (WebCore::InitializeLoggingChannelsIfNecessary):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18326 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoLayoutTests:
justing [Tue, 19 Dec 2006 22:06:53 +0000 (22:06 +0000)]
LayoutTests:

        Reviewed by hyatt

        <rdar://problem/4888891>
        Docs & Spreadsheets: Comment fails to insert if text is selected in the document

        * fast/dom/Range/surroundContents-1-expected.checksum: Added.
        * fast/dom/Range/surroundContents-1-expected.png: Added.
        * fast/dom/Range/surroundContents-1-expected.txt: Added.
        * fast/dom/Range/surroundContents-1.html: Added.

WebCore:

        Reviewed by hyatt

        <rdar://problem/4888891>
        Docs & Spreadsheets: Comment fails to insert if text is selected in the document

        * dom/Range.cpp:
        (WebCore::Range::surroundContents): If startContainer is a text node,
        it will be split when the range is extracted, and it will be its parent
        that will have to accept newParent.  Also cleaned up some code with
        isDescendantOf.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18325 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoJavaScriptCore:
thatcher [Tue, 19 Dec 2006 21:43:27 +0000 (21:43 +0000)]
JavaScriptCore:

        Reviewed by Darin.

        <rdar://problem/4891774> Local WebCore/WebBrowser builds fail in 9A328 due to warning about ObjC-2.0 language features

        * JavaScriptCore.xcodeproj/project.pbxproj:

JavaScriptGlue:

        Reviewed by Darin.

        <rdar://problem/4891774> Local WebCore/WebBrowser builds fail in 9A328 due to warning about ObjC-2.0 language features

        * JavaScriptGlue.xcodeproj/project.pbxproj:

WebCore:

        Reviewed by Darin.

        <rdar://problem/4891774> Local WebCore/WebBrowser builds fail in 9A328 due to warning about ObjC-2.0 language features

        * WebCore.xcodeproj/project.pbxproj:

WebKit:

        Reviewed by Darin.

        <rdar://problem/4891774> Local WebCore/WebBrowser builds fail in 9A328 due to warning about ObjC-2.0 language features

        * WebKit.xcodeproj/project.pbxproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18324 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoReviewed by Oliver.
zimmermann [Tue, 19 Dec 2006 21:38:54 +0000 (21:38 +0000)]
Reviewed by Oliver.
Fix SVGList index validation (off-by-one error).

Adding new testcase js-font-test.svg, which uses SVGLengthList interface.
(This is a very old ksvg1 testcase, adopted for SVG1.1)

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18323 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoReviewed by Oliver.
zimmermann [Tue, 19 Dec 2006 20:17:21 +0000 (20:17 +0000)]
Reviewed by Oliver.

Fixes: http://bugs.webkit.org/show_bug.cgi?id=11879
Fix pattern on stroke/fill of text.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18322 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Build fix
aliceli1 [Tue, 19 Dec 2006 19:58:46 +0000 (19:58 +0000)]
    Build fix

        * platform/graphics/ImageBuffer.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18321 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Reviewed by Darin.
ap [Tue, 19 Dec 2006 18:56:45 +0000 (18:56 +0000)]
    Reviewed by Darin.

        http://bugs.webkit.org/show_bug.cgi?id=7296
        JavaScript error not thrown when trying to set a CSS property to an invalid value

WebCore:
        * bindings/js/kjs_css.cpp:
        (KJS::DOMCSSStyleDeclaration::put): When not in Dashboard compatibility mode,
        raise exception for invalid values. Also removed an unnecessary call to
        removeProperty(), which prevented the property value from being preserved in
        error case.

        * css/CSSMutableStyleDeclaration.cpp:
        (WebCore::CSSMutableStyleDeclaration::setProperty): Moved the handling of
        empty property values here. Also removed an unnecessary call to removeProperty().

LayoutTests:
        * fast/block/positioning/relayout-on-position-change.html: This test was setting
        position property to an invalid value, expecting that it will be removed. Changed
        it to set the property to an empty value (now the test passes in Firefox, too).

        * fast/dom/css-set-property-exception-expected.txt:
        * fast/dom/css-set-property-exception.html:
        Updated the results, added a new case and made the output more verbose.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18320 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Reviewed by Adam.
andersca [Tue, 19 Dec 2006 18:45:12 +0000 (18:45 +0000)]
    Reviewed by Adam.

        * dom/Document.h:
        * page/EventHandler.h:
        Use correct forward declarations for HitTestRequest.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18319 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoBuild fix, not reviewed.
zimmermann [Tue, 19 Dec 2006 15:09:04 +0000 (15:09 +0000)]
Build fix, not reviewed.

Fix Qt/Linux build. Missing GraphicsContext.h include.
Fix Mac build, by adding lroundf() (I swear this compiled w/o that, locally :-)

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18316 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoReviewed by Sam. Previous attempts reviewed by Oliver & Eric.
zimmermann [Tue, 19 Dec 2006 14:51:13 +0000 (14:51 +0000)]
Reviewed by Sam. Previous attempts reviewed by Oliver & Eric.

Fixes: http://bugs.webkit.org/show_bug.cgi?id=11867
Bring back masking, by adding off-screen rendering functionality in GraphicsContext.
Add new "static GraphicsContext* createImageContext(const IntSize& size, bool grayScale)"
function, and implement it with CGBitmapContext in the GraphicsContextCG (stubs for Qt.)

Mask image sizes are dynamically calculated using the passed bounding box in applyMask,
as it was orignally planned. Gradient stroke mask image sizes aren't hardcoded to 2048x2048
anymore, but are as well dynamically calculated using getAbsoluteRepaintRect().

Add new ImageBuffer class encapsulating the size of the image, a platform-specific
handle (ie. CGImageRef for CG platform) plus the GraphicsContext pointer, obtained
via GraphicsContext::createImageBuffer. Offer a generic logic for rendering subtrees
of the rendering tree into a ImageBuffer (see renderSubtreeToImage function)
ImageBufferCG is completly implemented, ImageBufferQt is stubbed.

Also add correct default values for x/y/width/height of <mask>.
Fixes masking related LayoutTests, and speeds up gradient-on-stroke a lot.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18315 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoFix spelling error in Cairo graphics context.
hyatt [Tue, 19 Dec 2006 11:22:53 +0000 (11:22 +0000)]
Fix spelling error in Cairo graphics context.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18314 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoRemove save()/restore()... forgot they are more expensive.
hyatt [Tue, 19 Dec 2006 11:07:56 +0000 (11:07 +0000)]
Remove save()/restore()... forgot they are more expensive.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18313 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Make sure to initialize the CG fill and stroke colors to our initial fill...
hyatt [Tue, 19 Dec 2006 11:04:18 +0000 (11:04 +0000)]
    Make sure to initialize the CG fill and stroke colors to our initial fill/stroke colors when first
        constructing a GraphicsContextCG.  Because Safari actually draws text in the bookmarks bar using GraphicsContext
        and sets a fill color, this could only really be seen in another WebKit app.

        Patched GraphicsContextQt as well, since it has the same pattern.

        Reviewed by bdash

        * platform/graphics/cg/GraphicsContextCG.cpp:
        (WebCore::setCGFillColor):
        (WebCore::setCGStrokeColor):
        (WebCore::GraphicsContext::GraphicsContext):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18312 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoRemove an unnecessary cgsetfill in drawEllipse.
hyatt [Tue, 19 Dec 2006 10:47:28 +0000 (10:47 +0000)]
Remove an unnecessary cgsetfill in drawEllipse.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18311 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoFix buildbot bustage with conversion of stroke thickness.
hyatt [Tue, 19 Dec 2006 10:26:03 +0000 (10:26 +0000)]
Fix buildbot bustage with conversion of stroke thickness.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18310 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoFix drawing of image alt text..
hyatt [Tue, 19 Dec 2006 10:20:38 +0000 (10:20 +0000)]
Fix drawing of image alt text..

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18309 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoFix stroking of error image borders.
hyatt [Tue, 19 Dec 2006 10:08:50 +0000 (10:08 +0000)]
Fix stroking of error image borders.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18308 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoFix the Qt build and make sure it doesn't crash.
lars [Tue, 19 Dec 2006 09:53:45 +0000 (09:53 +0000)]
Fix the Qt build and make sure it doesn't crash.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18307 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Convert stroke thickness to a float. This allows the thickness argument...
hyatt [Tue, 19 Dec 2006 08:54:00 +0000 (08:54 +0000)]
    Convert stroke thickness to a float.  This allows the thickness argument to strokeArc to be eliminated.

        Reviewed by olliej

        * platform/graphics/GraphicsContext.cpp:
        (WebCore::GraphicsContext::setStrokeThickness):
        (WebCore::GraphicsContext::strokeThickness):
        (WebCore::GraphicsContext::setPlatformStrokeThickness):
        * platform/graphics/GraphicsContext.h:
        * platform/graphics/cg/GraphicsContextCG.cpp:
        (WebCore::GraphicsContext::drawEllipse):
        (WebCore::GraphicsContext::strokeArc):
        * platform/graphics/qt/GraphicsContextQt.cpp:
        (WebCore::GraphicsContext::strokeArc):
        (WebCore::GraphicsContext::setPlatformStrokeThickness):
        * rendering/RenderObject.cpp:
        (WebCore::RenderObject::drawBorderArc):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18306 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Rename drawArc to strokeArc and remove its strange behavior of trying to...
hyatt [Tue, 19 Dec 2006 08:39:13 +0000 (08:39 +0000)]
    Rename drawArc to strokeArc and remove its strange behavior of trying to "fill" by stroking using the passed in
        thickness.  Now the method is purely about stroking an arc and always uses the passed in thickness.   Fix the
        border-radius code that calls the method so that it makes more sense now.  If stroke thickness is converted
        to a float, then even the extra argument can go away, and this method can be a clean stroke of an arc.

        Make sure to get square list markers right by setting both stroke and fill color properly.

        Reviewed by mitz, olliej

        * platform/graphics/GraphicsContext.h:
        * platform/graphics/cg/GraphicsContextCG.cpp:
        (WebCore::GraphicsContext::strokeArc):
        * platform/graphics/qt/GraphicsContextQt.cpp:
        (WebCore::GraphicsContext::strokeArc):
        * rendering/RenderListMarker.cpp:
        (WebCore::RenderListMarker::paint):
        * rendering/RenderObject.cpp:
        (WebCore::RenderObject::drawBorderArc):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18305 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoLayoutTests:
ggaren [Tue, 19 Dec 2006 08:04:48 +0000 (08:04 +0000)]
LayoutTests:

        Reviewed by Beth Dakin.

        Test cases for capturing of mouse up events.

        * fast/events/mouseup-outside-button-expected.txt: Added.
        * fast/events/mouseup-outside-button.html: Added.
        * fast/events/mouseup-outside-document-expected.txt: Added.
        * fast/events/mouseup-outside-document.html: Added.

WebCore:

        Reviewed by Beth Dakin.

        Fixed <rdar://problem/4549745> REGRESSION: scrolling on Google maps
        continues after the mouse is released outside the window (8137)

        The RenderLayer hit testing code assumed that, when the mouse was outside
        the WebView, we only needed to capture mouse events while the mouse was
        down (in other words, mouse move events). We actually need to capture mouse
        up events, as well.

        * dom/Document.cpp:
        (WebCore::Document::prepareMouseEvent): To match EventHandler::prepareMouseEvent,
        I changed this function to take a HitTestRequest instead of the broken-out values of one.
        For clarity, I moved an assert to top of function.
        (WebCore::Document::addMarker): Removed stray character.
        * dom/Document.h:

        * page/EventHandler.cpp: Changed prepareMouseEvent to take a HitTestRequest,
        instead of the broken-out values of one. This simplified the code, and made
        the task of adding an extra, optional parameter to hit testing much easier.
        (WebCore::EventHandler::handleMousePressEvent):
        (WebCore::EventHandler::handleMouseDoubleClickEvent):
        (WebCore::EventHandler::handleMouseMoveEvent): Set the 'capturing' flag
        if the move occurs while the mouse is down. This replaces RenderLayer's
        heavy-handed assumption that we should always capture if the mouse is down.
        (WebCore::EventHandler::handleMouseReleaseEvent): Set the 'capturing'
        flag, since we assume every mouse up follows a mouse down inside the WebView.
        (We'd like to ASSERT as much, but DRT's event sending mechanism is crazy, and
        violates this axiom.)
        (WebCore::EventHandler::updateDragAndDrop):
        (WebCore::EventHandler::prepareMouseEvent):
        (WebCore::EventHandler::handleWheelEvent):
        (WebCore::EventHandler::sendContextMenuEvent):
        (WebCore::EventHandler::hoverTimerFired):
        * page/EventHandler.h:

        * rendering/HitTestRequest.h:
        (WebCore::HitTestRequest::HitTestRequest): Added 'capturing' data member,
        which specifies whether the hit test should capture mouse events that occur
        outside the WebView.

        * rendering/RenderLayer.cpp:
        (WebCore::RenderLayer::hitTestLayer): Moved misleading comment to where
        it actually applies. Changed 'active' test to new 'capturing' test, so
        the hit test requester can decide whether we need to capture mouse events
        that don't intersect any layer.

WebKitTools:

        Reviewed by Beth Dakin.

        Updated EventSender to be able to send mouse up events outside the WebView.
        This is a minor tweak to a hackish implementation. The real solution
        should be to use NSApplication's event sending model instead of rolling
        our own, but I don't have time for that right now.

        * DumpRenderTree/EventSendingController.m:
        (-[EventSendingController mouseUp]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18304 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Make sure a stroke style is set for list bullets.
hyatt [Tue, 19 Dec 2006 07:45:43 +0000 (07:45 +0000)]
    Make sure a stroke style is set for list bullets.

        Reviewed by mitz

        * rendering/RenderListMarker.cpp:
        (WebCore::RenderListMarker::paint):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18303 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago2006-12-18 Ada Chan <adachan@apple.com>
adachan [Tue, 19 Dec 2006 06:15:09 +0000 (06:15 +0000)]
2006-12-18  Ada Chan  <adachan@apple.com>

        Reviewed by Adam.

        Moved canRunBeforeUnloadConfirmPanel, runBeforeUnloadConfirmPanel, and closeWindowSoon
        from WebCoreFrameBridge to Chrome.
        Moved implementation of Frame::scheduleClose to Frame.cpp.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18302 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoLayoutTests:
aliceli1 [Tue, 19 Dec 2006 05:30:46 +0000 (05:30 +0000)]
LayoutTests:

        Reviewed by Adam.

        Test case for <rdar://problem/4766174> REGRESSION(r16081): Aspect eWFM: Unable to log in

        * http/tests/misc/location-test-xsl-style-sheet-expected.txt: Added.
        * http/tests/misc/location-test-xsl-style-sheet.xml: Added.
        * http/tests/misc/resources/location-test-xsl-style-sheet.xsl: Added.

WebCore:

        Reviewed by Adam.

        Fixed <rdar://problem/4766174> REGRESSION(r16081): Aspect eWFM: Unable to log in

        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::didExplicitOpen):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18301 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoFix Qt build bustage by removing uses of Pen and replacing with new stroke APIS.
hyatt [Tue, 19 Dec 2006 05:23:52 +0000 (05:23 +0000)]
Fix Qt build bustage by removing uses of Pen and replacing with new stroke APIS.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18300 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoFix spelling error in Qt code..
hyatt [Tue, 19 Dec 2006 05:18:33 +0000 (05:18 +0000)]
Fix spelling error in Qt code..

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18299 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoFix Qt build bustage by removing uses of Pen and replacing with new stroke APIS.
hyatt [Tue, 19 Dec 2006 05:17:43 +0000 (05:17 +0000)]
Fix Qt build bustage by removing uses of Pen and replacing with new stroke APIS.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18298 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoFix Qt build bustage by removing setPlatformPen.
hyatt [Tue, 19 Dec 2006 05:02:57 +0000 (05:02 +0000)]
Fix Qt build bustage by removing setPlatformPen.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18297 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Add save/restore calls around the painting of text areas on Mac, since the...
hyatt [Tue, 19 Dec 2006 04:58:05 +0000 (04:58 +0000)]
    Add save/restore calls around the painting of text areas on Mac, since the methods in question
        alter the current fill color in CG destructively.

        Reviewed by olliej

        * rendering/RenderThemeMac.mm:
        (WebCore::RenderThemeMac::paintButton):
        (WebCore::RenderThemeMac::paintTextField):
        (WebCore::RenderThemeMac::paintTextArea):
        (WebCore::RenderThemeMac::paintSliderTrack):
        (WebCore::RenderThemeMac::paintSliderThumb):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18296 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Fix list markers to properly stroke and fill. I screwed this up when changin...
hyatt [Tue, 19 Dec 2006 04:31:18 +0000 (04:31 +0000)]
    Fix list markers to properly stroke and fill.  I screwed this up when changing how text draws.

        Reviewed by olliej

        * rendering/RenderListMarker.cpp:
        (WebCore::RenderListMarker::paint):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18295 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Eliminate the Pen object in favor of separate stroke variables, since most...
hyatt [Tue, 19 Dec 2006 04:00:11 +0000 (04:00 +0000)]
    Eliminate the Pen object in favor of separate stroke variables, since most code just wants to set the
        stroke color.  This also makes it easier for us to push only stroke color through into CG synchronously
        while leaving the others alone.

        Reviewed by olliej

        * platform/graphics/GraphicsContext.cpp:
        (WebCore::GraphicsContextState::GraphicsContextState):
        (WebCore::GraphicsContext::setStrokeThickness):
        (WebCore::GraphicsContext::setStrokeStyle):
        (WebCore::GraphicsContext::setStrokeColor):
        (WebCore::GraphicsContext::strokeThickness):
        (WebCore::GraphicsContext::strokeStyle):
        (WebCore::GraphicsContext::strokeColor):
        (WebCore::GraphicsContext::setPlatformStrokeStyle):
        (WebCore::GraphicsContext::setPlatformStrokeThickness):
        * platform/graphics/GraphicsContext.h:
        (WebCore::):
        * platform/graphics/cg/GraphicsContextCG.cpp:
        (WebCore::GraphicsContext::drawRect):
        (WebCore::GraphicsContext::drawLine):
        (WebCore::GraphicsContext::drawEllipse):
        (WebCore::GraphicsContext::drawArc):
        (WebCore::GraphicsContext::drawConvexPolygon):
        (WebCore::GraphicsContext::drawLineForText):
        (WebCore::GraphicsContext::setPlatformStrokeColor):
        * platform/graphics/qt/GraphicsContextQt.cpp:
        (WebCore::toQPenStyle):
        (WebCore::GraphicsContext::setPlatformStrokeColor):
        (WebCore::GraphicsContext::setPlatformStrokeStyle):
        (WebCore::GraphicsContext::setPlatformStrokeThickness):
        * platform/mac/FontMac.mm:
        (WebCore::Font::drawComplexText):
        (WebCore::Font::drawGlyphs):
        * rendering/InlineFlowBox.cpp:
        (WebCore::InlineFlowBox::paintDecorations):
        * rendering/InlineTextBox.cpp:
        (WebCore::updateTextColor):
        (WebCore::InlineTextBox::paint):
        (WebCore::InlineTextBox::paintDecoration):
        (WebCore::InlineTextBox::paintMarkedTextUnderline):
        * rendering/RenderBlock.cpp:
        (WebCore::RenderBlock::paintObject):
        * rendering/RenderBox.cpp:
        * rendering/RenderBox.h:
        * rendering/RenderFrameSet.cpp:
        (WebCore::RenderFrameSet::userResize):
        * rendering/RenderImage.cpp:
        (WebCore::RenderImage::paint):
        * rendering/RenderObject.cpp:
        (WebCore::RenderObject::drawBorderArc):
        (WebCore::RenderObject::drawBorder):
        * rendering/RenderTable.cpp:
        (WebCore::RenderTable::paint):
        * rendering/RenderTableCell.cpp:
        (WebCore::RenderTableCell::paint):
        * rendering/RenderText.cpp:
        * rendering/RenderThemeMac.mm:
        (WebCore::RenderThemeMac::paintMenuListButton):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18294 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Reviewed by Adele.
darin [Tue, 19 Dec 2006 02:30:15 +0000 (02:30 +0000)]
    Reviewed by Adele.

        - fix <rdar://problem/4889565> REGRESSION (r17597): Command-clicking a submit
          button does not submit in a new tab/window
          http://bugs.webkit.org/show_bug.cgi?id=11858

        - change DOMActivate events to be created as a part of default handling of
          click events instead of having the sender of the click event also send
          a DOMActivate event

        - fixed some edge cases in the slider thumb element handler; since this is
          inside a shadow DOM, it's likely none of these can arise in practice

        No easy way to test the command-click part since the behavior is in Safari.
        To make a test we'd have to provide JavaScript access to the modifiers passed
        to the policy delegate or have some way to query the underlying event from
        JavaScript.

        * dom/EventTargetNode.cpp: Change all assert to ASSERT.
        (WebCore::EventTargetNode::dispatchMouseEvent): Renamed some local variables
        for clarity. Added a RefPtr for relatedTarget since it might be deallocated
        by the handlers for the click event and is used in the code that creates the
        dblclick event. Removed the code to create a DOMActivate event, since that's
        now done in the default event handler for the click event.
        (WebCore::EventTargetNode::defaultEventHandler): Added code to check for a
        click event and dispatch a DOMActivate event using the click event as the
        underlying event. The part of this that fixes the bug is that we use the
        click event as the underlying event; the old code used the same underlying
        event as for the click event, not the click event itself. The underlying event
        for the click event is usually 0, since we propagate the key state to the click
        event instead of using an underlying event in the common case.

        * dom/Document.cpp: (WebCore::Document::defaultEventHandler): Added call
        to the base class's defaultEventHandler function, except in the case where
        the event is already handled.

        * html/HTMLInputElement.h: Removed clickX() and clickY().
        * html/HTMLInputElement.cpp:
        (WebCore::HTMLInputElement::appendFormData): Use xPos and yPos directly,
        so we can remove clickX() and clickY().
        (WebCore::HTMLInputElement::defaultEventHandler): Removed code that calls
        setDefaultHandled for click events since we are just recording the x and y
        coordinates of the events; that's not "handling" an event, and setting
        the flag prevents us from calling the base class's default event handler,
        which is now needed to submmit the form.

        * rendering/RenderSlider.cpp:
        (WebCore::HTMLSliderThumbElement::defaultEventHandler):
        Added some missing isMouseEvent checks in code that casts to a MouseEvent.
        Added check document()->frame() in code that manipulates the frame so that
        fake events, which might happen when there's no frame, can't cause a crash.
        Added an m_inDragMode check so we don't try to handle mouseup events when
        we are not handling a drag. Remove the setDefaultHandled call from the
        mousemove case, because mousemove events are observed, and not "handled"
        in the "nobody else should look at this event" sense. Added a call to the
        base class's default event handler, and some return statements so that we
        won't call it when the event has been handled.

        * html/HTMLLabelElement.cpp: (WebCore::HTMLLabelElement::defaultEventHandler):
        Removed an unneeded "return" for a function that has no return value.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18293 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago2006-12-18 Mark Rowe <bdash@webkit.org>
bdash [Tue, 19 Dec 2006 02:04:36 +0000 (02:04 +0000)]
2006-12-18  Mark Rowe  <bdash@webkit.org>

        Reviewed by Brady.

        Bug 11870: Bug 11866 caused layout test regression in fast/forms/input-value.html
        http://bugs.webkit.org/show_bug.cgi?id=11870

        * fast/forms/input-value-expected.txt: Updated results.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18292 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoWebCore:
bdakin [Tue, 19 Dec 2006 01:38:34 +0000 (01:38 +0000)]
WebCore:
        Fix for <rdar://problem/4749770> WebCore crashes on a blog website
        in WebCore::InlineBox::root() + 6

        We null-check inlineBoxWrapper everywhere else in the code except
        for these 3 spots. This patch adds them in. Only one of the checks
        is required to fix the crash. What we render for the test case now
        matches shipping Safari, but still seems wrong because we do not
        match Firefox. I will file a follow-up about the rendering problem.

        * rendering/RenderListItem.cpp:
        (WebCore::RenderListItem::positionListMarker): This is the required
        null-check.
        * rendering/RenderListMarker.cpp:
        (WebCore::RenderListMarker::setSelectionState): Null-check for
        safety.
        (WebCore::RenderListMarker::selectionRect): Same.

LayoutTests:
        Reviewed by Adele.

        Test case for <rdar://problem/4749770> WebCore crashes on a blog
        website in WebCore::InlineBox::root() + 6

        * fast/lists/inlineBoxWrapperNullCheck-expected.checksum: Added.
        * fast/lists/inlineBoxWrapperNullCheck-expected.png: Added.
        * fast/lists/inlineBoxWrapperNullCheck-expected.txt: Added.
        * fast/lists/inlineBoxWrapperNullCheck.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18291 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Fix performance regression caused by adding setting of stroke colors as well...
hyatt [Tue, 19 Dec 2006 01:18:07 +0000 (01:18 +0000)]
    Fix performance regression caused by adding setting of stroke colors as well as fill colors to every font drawing
        call on Mac.  Fix is rather involved:

        (1) Fill color is now updated in CG synchronously.  There is no more delay in the push.  I used the model that
        Qt added for this, setPlatformFillColor, so we're the same now.

        (2) Text was being drawn using the pen color, which is tantamount to using the stroke color.  Since text in HTML
        is really a fill and not a stroke, all cross-platform code that draws text has been patched to use fill instead
        of the pen.

        (3) Added a new API to GraphicsContext to set the text drawing mode to any combination of fill/stroke/clip.
        Ports should implement setPlatformTextDrawingMode or just query the mode in their drawGlyphs/drawComplexText
        method on their Font class to get the new functionality.

        (4) InlineTextBox will set the fill and stroke colors appropriately now rather than always assuming fill.

        (5) Fixed a bug in GraphicsContextCG where fillRectWithColor was updating the CG fill color in the state object
        as a side effect, creating a mismatch between CG's fill color and the stored cross-platform fill color.

        Reviewed by olliej

        * platform/graphics/GraphicsContext.cpp:
        (WebCore::GraphicsContextState::GraphicsContextState):
        (WebCore::GraphicsContext::textDrawingMode):
        (WebCore::GraphicsContext::setTextDrawingMode):
        (WebCore::GraphicsContext::setPlatformTextDrawingMode):
        (WebCore::GraphicsContext::setPlatformPen):
        * platform/graphics/GraphicsContext.h:
        * platform/graphics/cg/GraphicsContextCG.cpp:
        (WebCore::GraphicsContext::fillRect):
        (WebCore::GraphicsContext::setPlatformTextDrawingMode):
        (WebCore::GraphicsContext::setPlatformFillColor):
        * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
        (WebCore::SVGPaintServerGradient::teardown):
        (WebCore::SVGPaintServerGradient::setup):
        * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
        (WebCore::SVGPaintServerPattern::setup):
        (WebCore::SVGPaintServerPattern::teardown):
        * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp:
        (WebCore::SVGPaintServerSolid::setup):
        * platform/mac/FontMac.mm:
        (WebCore::Font::drawComplexText):
        (WebCore::Font::drawGlyphs):
        * platform/mac/WebCoreTextRenderer.mm:
        (WebCoreDrawTextAtPoint):
        * rendering/EllipsisBox.cpp:
        (WebCore::EllipsisBox::paint):
        * rendering/InlineTextBox.cpp:
        (WebCore::correctedTextColor):
        (WebCore::updateTextColor):
        (WebCore::InlineTextBox::paint):
        (WebCore::InlineTextBox::paintSelection):
        (WebCore::InlineTextBox::paintMarkedTextBackground):
        (WebCore::InlineTextBox::paintTextMatchMarker):
        * rendering/RenderFileUploadControl.cpp:
        (WebCore::RenderFileUploadControl::paintObject):
        * rendering/RenderListBox.cpp:
        (WebCore::RenderListBox::paintItemForeground):
        * rendering/RenderListMarker.cpp:
        (WebCore::RenderListMarker::paint):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18290 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago2006-12-18 Dex Deacon <occupant4@gmail.com>
bdash [Mon, 18 Dec 2006 23:28:08 +0000 (23:28 +0000)]
2006-12-18  Dex Deacon  <occupant4@gmail.com>

        Reviewed by Maciej.

        Bug 11760: Animated GIFs with offsets crash WebKit
        http://bugs.webkit.org/show_bug.cgi?id=11760

        * platform/image-decoders/gif/GIFImageDecoder.cpp:
        ensure we don't write past the end of the image buffer when the offset
        is nonzero.  also fix the way we composite frames when animating.
        (WebCore::GIFImageDecoder::initFrameBuffer):
        (WebCore::GIFImageDecoder::haveDecodedRow):

2006-12-18  Dex Deacon  <occupant4@gmail.com>

        Reviewed by Maciej.

        Layout tests for http://bugs.webkit.org/show_bug.cgi?id=11760

        * ChangeLog:
        * fast/images/animated-gif-with-offsets-expected.txt: Added.
        * fast/images/animated-gif-with-offsets.html: Added.
        * fast/images/resources/animated-gif-with-offsets.gif: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18289 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago2006-12-18 Kirby White <KWhiteRight@gmail.com>
bdash [Mon, 18 Dec 2006 23:22:20 +0000 (23:22 +0000)]
2006-12-18  Kirby White  <KWhiteRight@gmail.com>

        Reviewed by Darin.

        Changed hidden input controls to reset to their initial values
        when the form is reset.  Also added layout tests for resetting
        other input controls.

        Fixes http://bugs.webkit.org/show_bug.cgi?id=11866

        * html/HTMLInputElement.cpp:
        (WebCore::HTMLInputElement::setValue):
        (WebCore::HTMLInputElement::storesValueSeparateFromAttribute):

2006-12-18  Kirby White  <KWhiteRight@gmail.com>

        Reviewed by Darin.

        Layout tests for http://bugs.webkit.org/show_bug.cgi?id=11866

        * fast/dom/HTMLInputElement/input-checked-reset-expected.txt: Added.
        * fast/dom/HTMLInputElement/input-checked-reset.html: Added.
        * fast/dom/HTMLInputElement/input-text-reset-expected.txt: Added.
        * fast/dom/HTMLInputElement/input-text-reset.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18288 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Oops forgot a file.
aliceli1 [Mon, 18 Dec 2006 22:49:32 +0000 (22:49 +0000)]
    Oops forgot a file.

        * editing/EditorDeleteAction.h: Added.
        (WebCore::):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18287 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoWebCore:
aliceli1 [Mon, 18 Dec 2006 22:47:27 +0000 (22:47 +0000)]
WebCore:

        Reviewed by Adam.

        Have the Editor handle deletion instead of WebHTMLView

        * WebCore.exp:
        Exposed Editor::deleteWithDirection and ::deleteRange()

        * WebCore.xcodeproj/project.pbxproj:
        Added EditorDeleteAction.h

        * editing/Editor.cpp:
        (WebCore::Editor::deleteRange):
        (WebCore::Editor::deleteWithDirection):
        Implemented

        (WebCore::Editor::deleteSelectionWithSmartDelete):
        Overloaded to take no params, in which case canSmartCopyOrDelete is called

        (WebCore::execCopy):
        (WebCore::execCut):
        (WebCore::execDelete):
        (WebCore::execPaste):
        Call the editor instead of asking frame to cut/copy/paste/delete

        (WebCore::execBackwardDelete):
        (WebCore::execForwardDelete):
        Call deleteWithDirection instead of just executing a TypingCommand

        (WebCore::CommandEntry::):
        distinguished delete (which deletes selection) from backwards delete (single character, no selection)

        (WebCore::Editor::cut):
        (WebCore::Editor::performDelete):
        Trivial changes

        * editing/Editor.h:
        Added some functons.
        (WebCore::Editor::setStartNewKillRingSequence):
        (WebCore::Editor::propogateDOMException):
        (WebCore::Editor::addToKillRing):
        * editing/mac/EditorMac.mm:
        Factored out support for Kill Rings to this file

        * platform/mac/PasteboardMac.mm:
        Trivial change

WebKit:

        Reviewed by Adam.

        Have the Editor handle deletion instead of WebHTMLView

        * WebKitPrefix.h:
        Turned on WebCore deletion

        * WebView/WebHTMLViewInternal.h:
        Moved ownership of startNewKillRingSequence to the WebCore::Editor

        * WebView/WebHTMLView.m:
        (-[NSArray becomeFirstResponder]):
        Use the Editor's startNewKillRingSequence flag

        (-[NSArray deleteForward:]):
        (-[NSArray deleteBackward:]):
        (-[NSArray deleteWordForward:]):
        (-[NSArray deleteWordBackward:]):
        (-[NSArray deleteToBeginningOfLine:]):
        (-[NSArray deleteToEndOfLine:]):
        (-[NSArray deleteToBeginningOfParagraph:]):
        (-[NSArray deleteToEndOfParagraph:]):
        (-[NSArray deleteToMark:]):
        use Editor::deleteWithDirection instead of WebHTMLView's

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18286 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Reviewed by Oliver.
kmccullo [Mon, 18 Dec 2006 22:32:56 +0000 (22:32 +0000)]
    Reviewed by Oliver.

        - Removed CG header include

        * platform/graphics/ImageSource.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18285 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Reviewed by Tim Hatcher
sullivan [Mon, 18 Dec 2006 22:18:34 +0000 (22:18 +0000)]
    Reviewed by Tim Hatcher

        - fixed <rdar://problem/4887764> GMAIL: Crash occurs at WebCore::Range::cloneRange()
          when I ctrl-click in a empty list item

        * editing/mac/EditorMac.mm:
        (WebCore::isRangeUngrammatical):
        bail out immediately for nil range (which selectionController()->toRange().get()
        can return). Also save some work by bailing out immediately for collapsed ranges.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18284 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Reviewed by Mitz.
ap [Mon, 18 Dec 2006 20:27:58 +0000 (20:27 +0000)]
    Reviewed by Mitz.

        Test for http://bugs.webkit.org/show_bug.cgi?id=7170
        `window.parent.[frameName].location=' fails if the target frame has not yet loaded a document

        * fast/frames/resources/set-unloaded-frame-location-1.html: Added.
        * fast/frames/resources/set-unloaded-frame-location-2.html: Added.
        * fast/frames/set-unloaded-frame-location-expected.txt: Added.
        * fast/frames/set-unloaded-frame-location.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18278 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Leopard build fix.
aliceli1 [Mon, 18 Dec 2006 18:44:52 +0000 (18:44 +0000)]
    Leopard build fix.

        * platform/ContextMenu.cpp:
        (WebCore::ContextMenu::checkOrEnableIfNeeded):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18274 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agofix compiltion, after the const changes
zack [Sun, 17 Dec 2006 22:23:28 +0000 (22:23 +0000)]
fix compiltion, after the const changes

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18273 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Reviewed by Eric.
rwlbuis [Sun, 17 Dec 2006 21:48:12 +0000 (21:48 +0000)]
Reviewed by Eric.

    Add missing checksum file, thnx to Wildfox for noticing.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18272 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoReviewed by Eric.
zimmermann [Sun, 17 Dec 2006 21:29:15 +0000 (21:29 +0000)]
Reviewed by Eric.

Fixes: http://bugs.webkit.org/show_bug.cgi?id=10956
Long standing regression. The old code in FontMac.mm, used set the fill/stroke
color "[nsColor(graphicsContext->pen().color()) set];", and current code only
sets the fill color. Reverting to old behaviour fixes gradient-on-stroke-of-text.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18271 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago2006-12-17 Lars Naesbye Christensen <larsnaesbye@stud.ku.dk>
ap [Sun, 17 Dec 2006 19:25:47 +0000 (19:25 +0000)]
2006-12-17  Lars Naesbye Christensen  <larsnaesbye@stud.ku.dk>

        Reviewed, tweaked and landed by Alexey.

        http://bugs.webkit.org/show_bug.cgi?id=11798
        [CSS 3] missing cursor support for 'none'

        * Resources/noneCursor.png: Added.
        * WebCore.xcodeproj/project.pbxproj:
        * css/CSSComputedStyleDeclaration.cpp:
        (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
        * css/CSSValueKeywords.in:
        * css/cssparser.cpp: Also fixed previously broken -webkit-background-composite: copy.
        * manual-tests/cursor.html:
        * page/EventHandler.cpp:
        (WebCore::selectCursor):
        * platform/Cursor.h:
        * platform/gdk/CursorGdk.cpp:
        (WebCore::noneCursor):
        * platform/mac/CursorMac.mm:
        (WebCore::noneCursor):
        * platform/qt/CursorQt.cpp:
        (WebCore::noneCursor):
        * platform/win/CursorWin.cpp:
        (WebCore::noneCursor):
        * rendering/RenderStyle.h:
        (WebCore::):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18270 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoBuild fix, not reviewed.
zimmermann [Sun, 17 Dec 2006 12:52:00 +0000 (12:52 +0000)]
Build fix, not reviewed.

This should hopefully fix Qt build.
* ksvg2/svg/SVGLength.cpp: Include math.h for Qt/Linux build.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18269 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoReviewed by Rob.
zimmermann [Sun, 17 Dec 2006 12:47:18 +0000 (12:47 +0000)]
Reviewed by Rob.

Remove SVGHelper class. Move the last static function "parseSeparatedList"
to the only place using it: SVGAnimationElement. Update all build files.

Remove any lazy_create macro usage, by what it does - cleaner.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18268 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoReviewed by Rob.
zimmermann [Sun, 17 Dec 2006 12:16:31 +0000 (12:16 +0000)]
Reviewed by Rob.

Fixes: http://bugs.webkit.org/show_bug.cgi?id=11813
Pass SVGLength around by value, remove any SVGLength* usage.
Bindings work fine, as the SVG POD JS Wrapper stuff is already in svn.

No new regressions, none fixed. But the code itself is much cleaner.
And some problems with width-full-percentage.svg have been fixed, viewport
clipping works in any case now, also for percentual width/height values set on <svg>.

Still unsure if we can simulate window resizes in a layout test,
not through "width/height" property changes, but directly in any way.
If anyone knows if we can do that, please drop me a line.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18267 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agomake testkjs.pro work on machines other than mine :)
hausmann [Sun, 17 Dec 2006 11:58:39 +0000 (11:58 +0000)]
make testkjs.pro work on machines other than mine :)

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18266 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agofor the Qt build also build testkjs now
hausmann [Sun, 17 Dec 2006 10:50:27 +0000 (10:50 +0000)]
for the Qt build also build testkjs now

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18265 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoLayoutTests:
weinig [Sun, 17 Dec 2006 04:11:20 +0000 (04:11 +0000)]
LayoutTests:

        Reviewed by Maciej.

        Update tests for http://bugs.webkit.org/show_bug.cgi?id=11856
        Update renderName() methods to return current class names.

        * dom/svg/level3/xpath/Conformance_ID-expected.txt:
        * editing/inserting/before-after-input-element-expected.txt:
        * editing/pasteboard/4806874-expected.txt:
        * editing/pasteboard/drop-text-without-selection-expected.txt:
        * editing/pasteboard/input-field-1-expected.txt:
        * editing/pasteboard/nested-blocks-with-text-area-expected.txt:
        * editing/pasteboard/nested-blocks-with-text-field-expected.txt:
        * editing/pasteboard/pasting-tabs-expected.txt:
        * editing/selection/3690703-2-expected.txt:
        * editing/selection/3690703-expected.txt:
        * editing/selection/3690719-expected.txt:
        * editing/selection/drag-select-1-expected.txt:
        * editing/selection/select-from-textfield-outwards-expected.txt:
        * fast/block/float/032-expected.txt:
        * fast/block/margin-collapse/103-expected.txt:
        * fast/css/resize-corner-tracking-expected.txt:
        * fast/dom/HTMLTextAreaElement/reset-textarea-expected.txt:
        * fast/dom/isindex-002-expected.txt:
        * fast/dynamic/008-expected.txt:
        * fast/events/label-focus-expected.txt:
        * fast/forms/8250-expected.txt:
        * fast/forms/encoding-test-expected.txt:
        * fast/forms/fieldset-align-expected.txt:
        * fast/forms/floating-textfield-relayout-expected.txt:
        * fast/forms/form-element-geometry-expected.txt:
        * fast/forms/input-appearance-bkcolor-expected.txt:
        * fast/forms/input-appearance-default-bkcolor-expected.txt:
        * fast/forms/input-appearance-disabled-expected.txt:
        * fast/forms/input-appearance-focus-expected.txt:
        * fast/forms/input-appearance-height-expected.txt:
        * fast/forms/input-appearance-minWidth-expected.txt:
        * fast/forms/input-appearance-preventDefault-expected.txt:
        * fast/forms/input-appearance-readonly-expected.txt:
        * fast/forms/input-appearance-selection-expected.txt:
        * fast/forms/input-appearance-visibility-expected.txt:
        * fast/forms/input-appearance-width-expected.txt:
        * fast/forms/input-baseline-expected.txt:
        * fast/forms/input-disabled-color-expected.txt:
        * fast/forms/input-double-click-selection-gap-bug-expected.txt:
        * fast/forms/input-maxlength-2-expected.txt:
        * fast/forms/input-paste-undo-expected.txt:
        * fast/forms/input-readonly-dimmed-expected.txt:
        * fast/forms/input-readonly-empty-expected.txt:
        * fast/forms/input-spaces-expected.txt:
        * fast/forms/input-table-expected.txt:
        * fast/forms/input-text-click-inside-expected.txt:
        * fast/forms/input-text-click-outside-expected.txt:
        * fast/forms/input-text-double-click-expected.txt:
        * fast/forms/input-text-drag-down-expected.txt:
        * fast/forms/input-text-maxlength-expected.txt:
        * fast/forms/input-text-option-delete-expected.txt:
        * fast/forms/input-text-paste-maxlength-expected.txt:
        * fast/forms/input-text-scroll-left-on-blur-expected.txt:
        * fast/forms/input-text-self-emptying-click-expected.txt:
        * fast/forms/input-type-change2-expected.txt:
        * fast/forms/input-value-expected.txt:
        * fast/forms/input-width-expected.txt:
        * fast/forms/minWidthPercent-expected.txt:
        * fast/forms/negativeLineHeight-expected.txt:
        * fast/forms/plaintext-mode-2-expected.txt:
        * fast/forms/tabbing-input-iframe-expected.txt:
        * fast/forms/textAreaLineHeight-expected.txt:
        * fast/forms/textarea-scroll-height-expected.txt:
        * fast/forms/textarea-scrollbar-expected.txt:
        * fast/forms/textarea-scrolled-type-expected.txt:
        * fast/forms/textarea-setinnerhtml-expected.txt:
        * fast/forms/textfield-drag-into-disabled-expected.txt:
        * fast/forms/visual-hebrew-text-field-expected.txt:
        * fast/lists/dynamic-marker-crash-expected.txt:
        * fast/overflow/overflow-x-y-expected.txt:
        * fast/replaced/width100percent-expected.txt:
        * fast/table/003-expected.txt:
        * fast/table/colspanMinWidth-expected.txt:
        * fast/table/spanOverlapRepaint-expected.txt:
        * fast/table/text-field-baseline-expected.txt:
        * fast/text/international/rtl-white-space-pre-wrap-expected.txt:
        * fast/text/textIteratorNilRenderer-expected.txt:
        * http/tests/navigation/anchor-basic-expected.txt:
        * http/tests/navigation/anchor-frames-expected.txt:
        * http/tests/navigation/anchor-goback-expected.txt:
        * http/tests/navigation/anchor-subframeload-expected.txt:
        * http/tests/navigation/javascriptlink-basic-expected.txt:
        * http/tests/navigation/javascriptlink-frames-expected.txt:
        * http/tests/navigation/javascriptlink-goback-expected.txt:
        * http/tests/navigation/javascriptlink-subframeload-expected.txt:
        * http/tests/navigation/metaredirect-basic-expected.txt:
        * http/tests/navigation/metaredirect-frames-expected.txt:
        * http/tests/navigation/metaredirect-goback-expected.txt:
        * http/tests/navigation/metaredirect-subframeload-expected.txt:
        * http/tests/navigation/post-goback2-expected.txt:
        * http/tests/navigation/postredirect-goback2-expected.txt:
        * http/tests/navigation/redirect302-basic-expected.txt:
        * http/tests/navigation/redirect302-frames-expected.txt:
        * http/tests/navigation/redirect302-goback-expected.txt:
        * http/tests/navigation/redirect302-subframeload-expected.txt:
        * http/tests/navigation/relativeanchor-basic-expected.txt:
        * http/tests/navigation/relativeanchor-frames-expected.txt:
        * http/tests/navigation/relativeanchor-goback-expected.txt:
        * http/tests/navigation/slowmetaredirect-basic-expected.txt:
        * http/tests/navigation/slowtimerredirect-basic-expected.txt:
        * http/tests/navigation/success200-basic-expected.txt:
        * http/tests/navigation/success200-frames-expected.txt:
        * http/tests/navigation/success200-frames-loadsame-expected.txt:
        * http/tests/navigation/success200-goback-expected.txt:
        * http/tests/navigation/success200-loadsame-expected.txt:
        * http/tests/navigation/success200-reload-expected.txt:
        * http/tests/navigation/success200-subframeload-expected.txt:
        * http/tests/navigation/timerredirect-basic-expected.txt:
        * http/tests/navigation/timerredirect-frames-expected.txt:
        * http/tests/navigation/timerredirect-goback-expected.txt:
        * http/tests/navigation/timerredirect-subframeload-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-02-t-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-03-t-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-04-t-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-05-t-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-06-t-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-07-t-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-08-t-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-09-t-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-10-t-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-11-t-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-12-t-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-13-t-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-14-t-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-15-t-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-16-t-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-17-t-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-18-t-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-19-t-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-20-t-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-21-t-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-22-b-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-23-t-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-24-t-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-25-t-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-26-t-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-27-t-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-28-t-expected.txt:
        * svg/W3C-SVG-1.1/animate-elem-29-b-expected.txt:
        * svg/W3C-SVG-1.1/color-prof-01-f-expected.txt:
        * svg/W3C-SVG-1.1/color-prop-01-b-expected.txt:
        * svg/W3C-SVG-1.1/color-prop-02-f-expected.txt:
        * svg/W3C-SVG-1.1/color-prop-03-t-expected.txt:
        * svg/W3C-SVG-1.1/coords-trans-01-b-expected.txt:
        * svg/W3C-SVG-1.1/coords-trans-02-t-expected.txt:
        * svg/W3C-SVG-1.1/coords-trans-03-t-expected.txt:
        * svg/W3C-SVG-1.1/coords-trans-04-t-expected.txt:
        * svg/W3C-SVG-1.1/coords-trans-05-t-expected.txt:
        * svg/W3C-SVG-1.1/coords-trans-06-t-expected.txt:
        * svg/W3C-SVG-1.1/coords-units-01-b-expected.txt:
        * svg/W3C-SVG-1.1/coords-units-02-b-expected.txt:
        * svg/W3C-SVG-1.1/coords-units-03-b-expected.txt:
        * svg/W3C-SVG-1.1/coords-viewattr-01-b-expected.txt:
        * svg/W3C-SVG-1.1/coords-viewattr-02-b-expected.txt:
        * svg/W3C-SVG-1.1/extend-namespace-01-f-expected.txt:
        * svg/W3C-SVG-1.1/filters-blend-01-b-expected.txt:
        * svg/W3C-SVG-1.1/filters-color-01-b-expected.txt:
        * svg/W3C-SVG-1.1/filters-composite-02-b-expected.txt:
        * svg/W3C-SVG-1.1/filters-comptran-01-b-expected.txt:
        * svg/W3C-SVG-1.1/filters-conv-01-f-expected.txt:
        * svg/W3C-SVG-1.1/filters-diffuse-01-f-expected.txt:
        * svg/W3C-SVG-1.1/filters-displace-01-f-expected.txt:
        * svg/W3C-SVG-1.1/filters-example-01-b-expected.txt:
        * svg/W3C-SVG-1.1/filters-gauss-01-b-expected.txt:
        * svg/W3C-SVG-1.1/filters-image-01-b-expected.txt:
        * svg/W3C-SVG-1.1/filters-light-01-f-expected.txt:
        * svg/W3C-SVG-1.1/filters-morph-01-f-expected.txt:
        * svg/W3C-SVG-1.1/filters-offset-01-b-expected.txt:
        * svg/W3C-SVG-1.1/filters-specular-01-f-expected.txt:
        * svg/W3C-SVG-1.1/filters-tile-01-b-expected.txt:
        * svg/W3C-SVG-1.1/filters-turb-01-f-expected.txt:
        * svg/W3C-SVG-1.1/fonts-elem-01-t-expected.txt:
        * svg/W3C-SVG-1.1/fonts-elem-02-t-expected.txt:
        * svg/W3C-SVG-1.1/fonts-elem-03-b-expected.txt:
        * svg/W3C-SVG-1.1/fonts-elem-04-b-expected.txt:
        * svg/W3C-SVG-1.1/interact-cursor-01-f-expected.txt:
        * svg/W3C-SVG-1.1/interact-dom-01-b-expected.txt:
        * svg/W3C-SVG-1.1/interact-events-01-b-expected.txt:
        * svg/W3C-SVG-1.1/interact-order-01-b-expected.txt:
        * svg/W3C-SVG-1.1/interact-order-02-b-expected.txt:
        * svg/W3C-SVG-1.1/interact-order-03-b-expected.txt:
        * svg/W3C-SVG-1.1/interact-zoom-01-t-expected.txt:
        * svg/W3C-SVG-1.1/linking-a-01-b-expected.txt:
        * svg/W3C-SVG-1.1/linking-a-02-b-expected.txt:
        * svg/W3C-SVG-1.1/linking-a-03-b-expected.txt:
        * svg/W3C-SVG-1.1/linking-a-04-t-expected.txt:
        * svg/W3C-SVG-1.1/linking-uri-01-b-expected.txt:
        * svg/W3C-SVG-1.1/linking-uri-02-b-expected.txt:
        * svg/W3C-SVG-1.1/linking-uri-03-t-expected.txt:
        * svg/W3C-SVG-1.1/masking-mask-01-b-expected.txt:
        * svg/W3C-SVG-1.1/masking-opacity-01-b-expected.txt:
        * svg/W3C-SVG-1.1/masking-path-01-b-expected.txt:
        * svg/W3C-SVG-1.1/masking-path-02-b-expected.txt:
        * svg/W3C-SVG-1.1/masking-path-03-b-expected.txt:
        * svg/W3C-SVG-1.1/masking-path-04-b-expected.txt:
        * svg/W3C-SVG-1.1/masking-path-05-f-expected.txt:
        * svg/W3C-SVG-1.1/metadata-example-01-b-expected.txt:
        * svg/W3C-SVG-1.1/painting-fill-01-t-expected.txt:
        * svg/W3C-SVG-1.1/painting-fill-02-t-expected.txt:
        * svg/W3C-SVG-1.1/painting-fill-03-t-expected.txt:
        * svg/W3C-SVG-1.1/painting-fill-04-t-expected.txt:
        * svg/W3C-SVG-1.1/painting-marker-01-f-expected.txt:
        * svg/W3C-SVG-1.1/painting-marker-02-f-expected.txt:
        * svg/W3C-SVG-1.1/painting-render-01-b-expected.txt:
        * svg/W3C-SVG-1.1/painting-stroke-01-t-expected.txt:
        * svg/W3C-SVG-1.1/painting-stroke-02-t-expected.txt:
        * svg/W3C-SVG-1.1/painting-stroke-03-t-expected.txt:
        * svg/W3C-SVG-1.1/painting-stroke-04-t-expected.txt:
        * svg/W3C-SVG-1.1/paths-data-01-t-expected.txt:
        * svg/W3C-SVG-1.1/paths-data-02-t-expected.txt:
        * svg/W3C-SVG-1.1/paths-data-03-f-expected.txt:
        * svg/W3C-SVG-1.1/paths-data-04-t-expected.txt:
        * svg/W3C-SVG-1.1/paths-data-05-t-expected.txt:
        * svg/W3C-SVG-1.1/paths-data-06-t-expected.txt:
        * svg/W3C-SVG-1.1/paths-data-07-t-expected.txt:
        * svg/W3C-SVG-1.1/pservers-grad-01-b-expected.txt:
        * svg/W3C-SVG-1.1/pservers-grad-02-b-expected.txt:
        * svg/W3C-SVG-1.1/pservers-grad-03-b-expected.txt:
        * svg/W3C-SVG-1.1/pservers-grad-04-b-expected.txt:
        * svg/W3C-SVG-1.1/pservers-grad-05-b-expected.txt:
        * svg/W3C-SVG-1.1/pservers-grad-06-b-expected.txt:
        * svg/W3C-SVG-1.1/pservers-grad-07-b-expected.txt:
        * svg/W3C-SVG-1.1/pservers-grad-08-b-expected.txt:
        * svg/W3C-SVG-1.1/pservers-grad-09-b-expected.txt:
        * svg/W3C-SVG-1.1/pservers-grad-10-b-expected.txt:
        * svg/W3C-SVG-1.1/pservers-grad-11-b-expected.txt:
        * svg/W3C-SVG-1.1/pservers-grad-12-b-expected.txt:
        * svg/W3C-SVG-1.1/pservers-pattern-01-b-expected.txt:
        * svg/W3C-SVG-1.1/render-elems-01-t-expected.txt:
        * svg/W3C-SVG-1.1/render-elems-02-t-expected.txt:
        * svg/W3C-SVG-1.1/render-elems-03-t-expected.txt:
        * svg/W3C-SVG-1.1/render-elems-06-t-expected.txt:
        * svg/W3C-SVG-1.1/render-elems-07-t-expected.txt:
        * svg/W3C-SVG-1.1/render-elems-08-t-expected.txt:
        * svg/W3C-SVG-1.1/render-groups-01-b-expected.txt:
        * svg/W3C-SVG-1.1/render-groups-03-t-expected.txt:
        * svg/W3C-SVG-1.1/script-handle-01-b-expected.txt:
        * svg/W3C-SVG-1.1/script-handle-02-b-expected.txt:
        * svg/W3C-SVG-1.1/script-handle-03-b-expected.txt:
        * svg/W3C-SVG-1.1/script-handle-04-b-expected.txt:
        * svg/W3C-SVG-1.1/shapes-circle-01-t-expected.txt:
        * svg/W3C-SVG-1.1/shapes-ellipse-01-t-expected.txt:
        * svg/W3C-SVG-1.1/shapes-line-01-t-expected.txt:
        * svg/W3C-SVG-1.1/shapes-polygon-01-t-expected.txt:
        * svg/W3C-SVG-1.1/shapes-polyline-01-t-expected.txt:
        * svg/W3C-SVG-1.1/shapes-rect-01-t-expected.txt:
        * svg/W3C-SVG-1.1/struct-cond-01-t-expected.txt:
        * svg/W3C-SVG-1.1/struct-cond-02-t-expected.txt:
        * svg/W3C-SVG-1.1/struct-defs-01-t-expected.txt:
        * svg/W3C-SVG-1.1/struct-dom-01-b-expected.txt:
        * svg/W3C-SVG-1.1/struct-dom-02-b-expected.txt:
        * svg/W3C-SVG-1.1/struct-dom-03-b-expected.txt:
        * svg/W3C-SVG-1.1/struct-dom-04-b-expected.txt:
        * svg/W3C-SVG-1.1/struct-dom-05-b-expected.txt:
        * svg/W3C-SVG-1.1/struct-dom-06-b-expected.txt:
        * svg/W3C-SVG-1.1/struct-frag-01-t-expected.txt:
        * svg/W3C-SVG-1.1/struct-group-01-t-expected.txt:
        * svg/W3C-SVG-1.1/struct-group-02-b-expected.txt:
        * svg/W3C-SVG-1.1/struct-image-01-t-expected.txt:
        * svg/W3C-SVG-1.1/struct-image-02-b-expected.txt:
        * svg/W3C-SVG-1.1/struct-image-03-t-expected.txt:
        * svg/W3C-SVG-1.1/struct-image-04-t-expected.txt:
        * svg/W3C-SVG-1.1/struct-image-05-b-expected.txt:
        * svg/W3C-SVG-1.1/struct-symbol-01-b-expected.txt:
        * svg/W3C-SVG-1.1/styling-css-01-b-expected.txt:
        * svg/W3C-SVG-1.1/styling-css-02-b-expected.txt:
        * svg/W3C-SVG-1.1/styling-css-03-b-expected.txt:
        * svg/W3C-SVG-1.1/styling-inherit-01-b-expected.txt:
        * svg/W3C-SVG-1.1/styling-pres-01-t-expected.txt:
        * svg/W3C-SVG-1.1/text-align-01-b-expected.txt:
        * svg/W3C-SVG-1.1/text-align-02-b-expected.txt:
        * svg/W3C-SVG-1.1/text-align-03-b-expected.txt:
        * svg/W3C-SVG-1.1/text-align-04-b-expected.txt:
        * svg/W3C-SVG-1.1/text-align-05-b-expected.txt:
        * svg/W3C-SVG-1.1/text-align-06-b-expected.txt:
        * svg/W3C-SVG-1.1/text-altglyph-01-b-expected.txt:
        * svg/W3C-SVG-1.1/text-deco-01-b-expected.txt:
        * svg/W3C-SVG-1.1/text-fonts-01-t-expected.txt:
        * svg/W3C-SVG-1.1/text-fonts-02-t-expected.txt:
        * svg/W3C-SVG-1.1/text-intro-01-t-expected.txt:
        * svg/W3C-SVG-1.1/text-intro-02-b-expected.txt:
        * svg/W3C-SVG-1.1/text-intro-03-b-expected.txt:
        * svg/W3C-SVG-1.1/text-intro-04-t-expected.txt:
        * svg/W3C-SVG-1.1/text-path-01-b-expected.txt:
        * svg/W3C-SVG-1.1/text-spacing-01-b-expected.txt:
        * svg/W3C-SVG-1.1/text-text-01-b-expected.txt:
        * svg/W3C-SVG-1.1/text-text-03-b-expected.txt:
        * svg/W3C-SVG-1.1/text-tref-01-b-expected.txt:
        * svg/W3C-SVG-1.1/text-tselect-01-b-expected.txt:
        * svg/W3C-SVG-1.1/text-tspan-01-b-expected.txt:
        * svg/W3C-SVG-1.1/text-ws-01-t-expected.txt:
        * svg/W3C-SVG-1.1/text-ws-02-t-expected.txt:
        * svg/custom/SVGNumber-interface-expected.txt:
        * svg/custom/SVGPoint-interface-expected.txt:
        * svg/custom/SVGPoint-matrixTransform-expected.txt:
        * svg/custom/SVGRect-interface-expected.txt:
        * svg/custom/baseval-animval-equality-expected.txt:
        * svg/custom/class-selector-expected.txt:
        * svg/custom/clip-path-with-transform-expected.txt:
        * svg/custom/conditional-processing-outside-switch-expected.txt:
        * svg/custom/control-points-for-S-and-T-expected.txt:
        * svg/custom/coords-relative-units-transforms-expected.txt:
        * svg/custom/create-metadata-element-expected.txt:
        * svg/custom/createelement-expected.txt:
        * svg/custom/dasharrayOrigin-expected.txt:
        * svg/custom/display-none-expected.txt:
        * svg/custom/dynamic-empty-path-expected.txt:
        * svg/custom/empty-merge-expected.txt:
        * svg/custom/evt-onload-expected.txt:
        * svg/custom/feComponentTransfer-Discrete-expected.txt:
        * svg/custom/feComponentTransfer-Gamma-expected.txt:
        * svg/custom/feComponentTransfer-Linear-expected.txt:
        * svg/custom/feComponentTransfer-Table-expected.txt:
        * svg/custom/feDisplacementMap-01-expected.txt:
        * svg/custom/fill-update-expected.txt:
        * svg/custom/filter-source-alpha-expected.txt:
        * svg/custom/foreign-object-skew-expected.txt:
        * svg/custom/fractional-rects-expected.txt:
        * svg/custom/getTransformToElement-expected.txt:
        * svg/custom/getsvgdocument-expected.txt:
        * svg/custom/gradient-attr-update-expected.txt:
        * svg/custom/gradient-stroke-width-expected.txt:
        * svg/custom/grayscale-gradient-mask-expected.txt:
        * svg/custom/hover-default-fill-expected.txt:
        * svg/custom/image-clipped-hit-expected.txt:
        * svg/custom/image-with-transform-clip-filter-expected.txt:
        * svg/custom/inner-percent-expected.txt:
        * svg/custom/invalid-css-expected.txt:
        * svg/custom/invalid-fill-expected.txt:
        * svg/custom/invalid-transforms-expected.txt:
        * svg/custom/invalid-viewbox1-expected.txt:
        * svg/custom/invalid-viewbox2-expected.txt:
        * svg/custom/junk-data-expected.txt:
        * svg/custom/marker-overflow-clip-expected.txt:
        * svg/custom/mask-inside-defs-expected.txt:
        * svg/custom/missing-xlink-expected.txt:
        * svg/custom/non-opaque-filters-expected.txt:
        * svg/custom/path-bad-data-expected.txt:
        * svg/custom/path-update-expected.txt:
        * svg/custom/pattern-in-defs-expected.txt:
        * svg/custom/pattern-y-offset-expected.txt:
        * svg/custom/percentage-rect-expected.txt:
        * svg/custom/percentage-rect2-expected.txt:
        * svg/custom/pointer-events-path-expected.txt:
        * svg/custom/polyline-hittest-expected.txt:
        * svg/custom/polyline-invalid-points-expected.txt:
        * svg/custom/polyline-setattribute-points-null-expected.txt:
        * svg/custom/recursive-clippath-expected.txt:
        * svg/custom/rootelement-expected.txt:
        * svg/custom/rounded-rects-expected.txt:
        * svg/custom/sheet-title-expected.txt:
        * svg/custom/simpleCDF-expected.txt:
        * svg/custom/svg-overflow-types-expected.txt:
        * svg/custom/svgpolyparser-extra-space-expected.txt:
        * svg/custom/text-clip-expected.txt:
        * svg/custom/text-ctm-expected.txt:
        * svg/custom/text-filter-expected.txt:
        * svg/custom/text-gradient-no-content-expected.txt:
        * svg/custom/text-hit-test-expected.txt:
        * svg/custom/text-image-opacity-expected.txt:
        * svg/custom/transform-ignore-after-invalid-expected.txt:
        * svg/custom/transform-invalid-expected.txt:
        * svg/custom/transform-scale-parse-expected.txt:
        * svg/custom/transform-with-ending-space-expected.txt:
        * svg/custom/tref-update-expected.txt:
        * svg/custom/use-forward-refs-expected.txt:
        * svg/custom/viewport-clip-expected.txt:
        * svg/custom/viewport-em-expected.txt:
        * svg/custom/viewport-no-width-height-expected.txt:
        * svg/custom/viewport-update-expected.txt:
        * svg/custom/viewport-update2-expected.txt:
        * svg/custom/width-full-percentage-expected.txt:
        * svg/hixie/cascade/002-expected.txt:
        * svg/hixie/viewbox/003-expected.txt:
        * tables/mozilla/bugs/45621-expected.txt:
        * tables/mozilla/bugs/bug1188-expected.txt:
        * tables/mozilla/bugs/bug12384-expected.txt:
        * tables/mozilla/bugs/bug18359-expected.txt:
        * tables/mozilla/bugs/bug194024-expected.txt:
        * tables/mozilla/bugs/bug24200-expected.txt:
        * tables/mozilla/bugs/bug2479-3-expected.txt:
        * tables/mozilla/bugs/bug2479-4-expected.txt:
        * tables/mozilla/bugs/bug28928-expected.txt:
        * tables/mozilla/bugs/bug30559-expected.txt:
        * tables/mozilla/bugs/bug30692-expected.txt:
        * tables/mozilla/bugs/bug4382-expected.txt:
        * tables/mozilla/bugs/bug4527-expected.txt:
        * tables/mozilla/bugs/bug46368-1-expected.txt:
        * tables/mozilla/bugs/bug46368-2-expected.txt:
        * tables/mozilla/bugs/bug51037-expected.txt:
        * tables/mozilla/bugs/bug55545-expected.txt:
        * tables/mozilla/bugs/bug59354-expected.txt:
        * tables/mozilla/bugs/bug7342-expected.txt:
        * tables/mozilla/bugs/bug96334-expected.txt:
        * tables/mozilla/bugs/bug99948-expected.txt:
        * tables/mozilla/dom/tableDom-expected.txt:
        * tables/mozilla/other/move_row-expected.txt:
        * tables/mozilla_expected_failures/bugs/bug2479-2-expected.txt:
        * tables/mozilla_expected_failures/bugs/bug2479-5-expected.txt:
        * tables/mozilla_expected_failures/bugs/bug45621-expected.txt:
        * tables/mozilla_expected_failures/bugs/bug92647-1-expected.txt:

WebCore:

        Reviewed by Maciej.

        Patch for http://bugs.webkit.org/show_bug.cgi?id=11856
        Update renderName() methods to return current class names.

        * rendering/RenderPath.h:
        (WebCore::RenderPath::renderName): Returns "RenderPath" instead of "KCanvasItem".
        * rendering/RenderSVGContainer.h:
        (WebCore::RenderSVGContainer::renderName): Returns "RenderSVGContainer" instead of "KCanvasContainer".
        * rendering/RenderTextControl.h:
        (WebCore::RenderTextControl::renderName): Returns "RenderTextControl" instead of "RenderTextField".

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18264 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Reviewed by Mitz.
weinig [Sat, 16 Dec 2006 23:36:48 +0000 (23:36 +0000)]
    Reviewed by Mitz.

        Patch for http://bugs.webkit.org/show_bug.cgi?id=11844
        Code Cleanup for more of the rendering code

        * WebCore.xcodeproj/project.pbxproj:
        * rendering/RenderCounter.cpp:
        (WebCore::RenderCounter::calcMinMaxWidth):
        * rendering/RenderText.cpp:
        (WebCore::RenderText::RenderText):
        (WebCore::RenderText::setStyle):
        (WebCore::RenderText::destroy):
        (WebCore::RenderText::attachTextBox):
        (WebCore::RenderText::findNextInlineTextBox):
        (WebCore::RenderText::positionForCoordinates):
        (WebCore::firstRendererOnNextLine):
        (WebCore::lastRendererOnPrevLine):
        (WebCore::RenderText::caretRect):
        (WebCore::RenderText::posOfChar):
        (WebCore::RenderText::allAscii):
        (WebCore::RenderText::shouldUseMonospaceCache):
        (WebCore::RenderText::cacheWidths):
        (WebCore::RenderText::widthFromCache):
        (WebCore::RenderText::trimmedMinMaxWidth):
        (WebCore::RenderText::calcMinMaxWidth):
        (WebCore::isSpaceAccordingToStyle):
        (WebCore::RenderText::containsOnlyWhitespace):
        (WebCore::RenderText::minXPos):
        (WebCore::RenderText::setSelectionState):
        (WebCore::RenderText::setTextWithOffset):
        (WebCore::RenderText::setText):
        (WebCore::RenderText::position):
        (WebCore::RenderText::width):
        (WebCore::RenderText::getAbsoluteRepaintRect):
        (WebCore::RenderText::selectionRect):
        (WebCore::RenderText::verticalPositionHint):
        (WebCore::RenderText::font):
        (WebCore::RenderText::caretMinOffset):
        (WebCore::RenderText::caretMaxOffset):
        (WebCore::RenderText::previousOffset):
        (WebCore::RenderText::nextOffset):
        (WebCore::RenderText::inlineBox):
        * rendering/RenderText.h:
        (WebCore::RenderText::isTextFragment):
        (WebCore::RenderText::data):
        (WebCore::RenderText::string):
        (WebCore::RenderText::paint):
        (WebCore::RenderText::layout):
        (WebCore::RenderText::nodeAtPoint):
        (WebCore::RenderText::length):
        (WebCore::RenderText::text):
        (WebCore::RenderText::stringLength):
        * rendering/RenderTextControl.cpp:
        (WebCore::RenderTextControl::setStyle):
        (WebCore::disabledTextColor):
        (WebCore::RenderTextControl::createInnerBlockStyle):
        (WebCore::RenderTextControl::createInnerTextStyle):
        (WebCore::RenderTextControl::createResultsButtonStyle):
        (WebCore::RenderTextControl::createCancelButtonStyle):
        (WebCore::RenderTextControl::showPlaceholderIfNeeded):
        (WebCore::RenderTextControl::hidePlaceholderIfNeeded):
        (WebCore::RenderTextControl::createSubtreeIfNeeded):
        (WebCore::RenderTextControl::updateFromElement):
        (WebCore::RenderTextControl::selectionStart):
        (WebCore::RenderTextControl::setSelectionRange):
        (WebCore::RenderTextControl::visiblePositionForIndex):
        (WebCore::RenderTextControl::subtreeHasChanged):
        (WebCore::RenderTextControl::textWithHardLineBreaks):
        (WebCore::RenderTextControl::calcHeight):
        (WebCore::RenderTextControl::nodeAtPoint):
        (WebCore::RenderTextControl::layout):
        (WebCore::RenderTextControl::calcMinMaxWidth):
        (WebCore::RenderTextControl::addSearchResult):
        (WebCore::RenderTextControl::showPopup):
        (WebCore::RenderTextControl::itemText):
        (WebCore::RenderTextControl::itemIsEnabled):
        (WebCore::RenderTextControl::listSize):
        (WebCore::RenderTextControl::scroll):
        * rendering/RenderTextControl.h:
        (WebCore::RenderTextControl::renderName):
        (WebCore::RenderTextControl::removeLeftoverAnonymousBoxes):
        * rendering/RenderTextFragment.cpp:
        (WebCore::RenderTextFragment::RenderTextFragment):
        (WebCore::RenderTextFragment::originalString):
        * rendering/RenderTextFragment.h:
        (WebCore::RenderTextFragment::isTextFragment):
        * rendering/RenderTheme.cpp:
        (WebCore::RenderTheme::adjustStyle):
        (WebCore::RenderTheme::isControlStyled):
        (WebCore::RenderTheme::stateChanged):
        (WebCore::RenderTheme::adjustCheckboxStyle):
        (WebCore::RenderTheme::adjustRadioStyle):
        * rendering/RenderTheme.h:
        (WebCore::):
        * rendering/RenderThemeMac.h:
        * rendering/RenderThemeMac.mm:
        (WebCore::RenderThemeMac::RenderThemeMac):
        (WebCore::RenderThemeMac::platformActiveSelectionBackgroundColor):
        (WebCore::RenderThemeMac::platformInactiveSelectionBackgroundColor):
        (WebCore::RenderThemeMac::activeListBoxSelectionBackgroundColor):
        (WebCore::RenderThemeMac::systemFont):
        (WebCore::RenderThemeMac::isControlStyled):
        (WebCore::RenderThemeMac::adjustRepaintRect):
        (WebCore::RenderThemeMac::updateCheckedState):
        (WebCore::RenderThemeMac::controlSupportsTints):
        (WebCore::RenderThemeMac::setFontFromControlSize):
        (WebCore::RenderThemeMac::paintCheckbox):
        (WebCore::RenderThemeMac::checkboxMargins):
        (WebCore::RenderThemeMac::setCheckboxCellState):
        (WebCore::RenderThemeMac::setCheckboxSize):
        (WebCore::RenderThemeMac::paintRadio):
        (WebCore::RenderThemeMac::radioMargins):
        (WebCore::RenderThemeMac::setRadioCellState):
        (WebCore::RenderThemeMac::setRadioSize):
        (WebCore::RenderThemeMac::adjustButtonStyle):
        (WebCore::RenderThemeMac::buttonMargins):
        (WebCore::RenderThemeMac::setButtonSize):
        (WebCore::RenderThemeMac::setButtonCellState):
        (WebCore::RenderThemeMac::adjustTextFieldStyle):
        (WebCore::RenderThemeMac::adjustTextAreaStyle):
        (WebCore::RenderThemeMac::popupButtonMargins):
        (WebCore::RenderThemeMac::popupButtonPadding):
        (WebCore::TopGradientInterpolate):
        (WebCore::BottomGradientInterpolate):
        (WebCore::MainGradientInterpolate):
        (WebCore::TrackGradientInterpolate):
        (WebCore::RenderThemeMac::paintMenuListButtonGradients):
        (WebCore::RenderThemeMac::paintMenuListButton):
        (WebCore::RenderThemeMac::adjustMenuListStyle):
        (WebCore::RenderThemeMac::adjustMenuListButtonStyle):
        (WebCore::RenderThemeMac::paintSliderTrack):
        (WebCore::RenderThemeMac::paintSliderThumb):
        (WebCore::RenderThemeMac::paintSearchField):
        (WebCore::RenderThemeMac::setSearchCellState):
        (WebCore::RenderThemeMac::adjustSearchFieldStyle):
        (WebCore::RenderThemeMac::paintSearchFieldCancelButton):
        (WebCore::RenderThemeMac::paintSearchFieldResultsDecoration):
        * rendering/RenderTreeAsText.cpp:
        (WebCore::operator<<):
        (WebCore::writeIndent):
        (WebCore::printBorderStyle):
        (WebCore::getTagName):
        (WebCore::isEmptyOrUnstyledAppleStyleSpan):
        (WebCore::writeTextRun):
        (WebCore::write):
        (WebCore::writeLayers):
        (WebCore::nodePosition):
        (WebCore::writeSelection):
        * rendering/RenderTreeAsText.h:
        * rendering/RenderView.cpp:
        (WebCore::RenderView::RenderView):
        (WebCore::RenderView::calcMinMaxWidth):
        (WebCore::RenderView::layout):
        (WebCore::RenderView::absolutePosition):
        (WebCore::RenderView::paint):
        (WebCore::RenderView::repaintViewRectangle):
        (WebCore::rendererAfterPosition):
        (WebCore::RenderView::selectionRect):
        (WebCore::RenderView::setSelection):
        (WebCore::RenderView::selectionStartEnd):
        (WebCore::RenderView::updateWidgetPositions):
        (WebCore::RenderView::addWidget):
        (WebCore::RenderView::removeWidget):
        (WebCore::RenderView::viewRect):
        (WebCore::RenderView::docHeight):
        (WebCore::RenderView::docWidth):
        (WebCore::RenderView::setBestTruncatedAt):
        * rendering/RenderView.h:
        (WebCore::RenderView::renderName):
        (WebCore::RenderView::selectionStart):
        (WebCore::RenderView::selectionEnd):
        * rendering/RenderWidget.cpp:
        (WebCore::RenderWidget::destroy):
        (WebCore::RenderWidget::resizeWidget):
        (WebCore::RenderWidget::setStyle):
        (WebCore::RenderWidget::paint):
        (WebCore::RenderWidget::updateWidgetPosition):
        (WebCore::RenderWidget::setSelectionState):
        * rendering/RootInlineBox.cpp:
        (WebCore::RootInlineBox::placeEllipsis):
        (WebCore::RootInlineBox::fillLineSelectionGap):
        (WebCore::RootInlineBox::selectionState):
        (WebCore::RootInlineBox::firstSelectedBox):
        (WebCore::RootInlineBox::lastSelectedBox):
        (WebCore::RootInlineBox::selectionTop):
        (WebCore::RootInlineBox::closestLeafChildForXPos):
        * rendering/RootInlineBox.h:
        (WebCore::RootInlineBox::isRootInlineBox):
        (WebCore::RootInlineBox::setVerticalOverflowPositions):
        (WebCore::RootInlineBox::setHorizontalOverflowPositions):
        (WebCore::RootInlineBox::setVerticalSelectionPositions):
        (WebCore::RootInlineBox::lineBreakObj):
        (WebCore::RootInlineBox::lineBreakPos):
        (WebCore::RootInlineBox::setLineBreakPos):
        (WebCore::RootInlineBox::blockHeight):
        (WebCore::RootInlineBox::setBlockHeight):
        (WebCore::RootInlineBox::endsWithBreak):
        (WebCore::RootInlineBox::setEndsWithBreak):
        * rendering/SVGInlineFlowBox.cpp:
        (WebCore::SVGInlineFlowBox::paint):
        (WebCore::paintSVGInlineFlow):
        (WebCore::translateBox):
        (WebCore::placePositionedBoxesHorizontally):
        (WebCore::placeBoxesVerticallyWithAbsBaseline):
        (WebCore::placeSVGFlowVertically):
        * rendering/SVGInlineFlowBox.h:
        * rendering/SVGRenderTreeAsText.cpp:
        (WebCore::TextStreamSeparator::TextStreamSeparator):
        (WebCore::operator<<):
        (WebCore::hasFractions):
        (WebCore::writeIndent):
        (WebCore::writeStyle):
        (WebCore::getTagName):
        (WebCore::write):
        (WebCore::writeRenderResources):
        * rendering/SVGRenderTreeAsText.h:
        (WebCore::operator<<):
        * rendering/SVGRootInlineBox.cpp:
        (WebCore::SVGRootInlineBox::paint):
        (WebCore::SVGRootInlineBox::placeBoxesHorizontally):
        * rendering/SVGRootInlineBox.h:
        * rendering/TableLayout.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18263 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Build fixes.
aroben [Sat, 16 Dec 2006 23:34:50 +0000 (23:34 +0000)]
    Build fixes.

        * platform/ContextMenuItem.h: Fixed const declarations.
        * platform/mac/ContextMenuItemMac.mm: Dito.
        (WebCore::ContextMenuItem::type):
        (WebCore::ContextMenuItem::setTitle):
        (WebCore::ContextMenuItem::setChecked):
        (WebCore::ContextMenuItem::setEnabled):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18262 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoLayoutTests:
adele [Sat, 16 Dec 2006 21:30:18 +0000 (21:30 +0000)]
LayoutTests:

        Reviewed by Maciej.

        Test for http://bugs.webkit.org/show_bug.cgi?id=11189
        <rdar://problem/4770249> REGRESSION (NativeListBox): When a list box has focus, pressing command- A (select all) doesn't selected all items in list

        * fast/forms/listbox-select-all-expected.txt: Added.
        * fast/forms/listbox-select-all.html: Added.

WebCore:

        Reviewed by Maciej.

        Fix for http://bugs.webkit.org/show_bug.cgi?id=11189
        <rdar://problem/4770249> REGRESSION (NativeListBox): When a list box has focus, pressing command- A (select all) doesn't selected all items in list

        Test: fast/forms/listbox-select-all.html

        * dom/Node.h: We should try to find a more appropriate place to put these methods.
        (WebCore::Node::canSelectAll): Added.
        (WebCore::Node::selectAll): Added.
        * editing/SelectionController.cpp: (WebCore::SelectionController::selectAll): Before selecting editable content, give the focused node
          a chance to select its content.
        * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::selectAll): Selects all items in a multi-select list box.  Single-select
          list boxes will just do nothing, but we still want the select to handle this case when it has focus, rather than selecting other content.
        * html/HTMLSelectElement.h: (WebCore::HTMLSelectElement::canSelectAll): Returns true for list boxes.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18261 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoAdd a stub for SearchPopupMenu for Qt.
zack [Sat, 16 Dec 2006 16:54:34 +0000 (16:54 +0000)]
Add a stub for SearchPopupMenu for Qt.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18258 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years agoAdjust Qt code to the last nights changes (make it compile)
zack [Sat, 16 Dec 2006 16:45:36 +0000 (16:45 +0000)]
Adjust Qt code to the last nights changes (make it compile)

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18257 268f45cc-cd09-0410-ab3c-d52691b4dbfc

15 years ago Reviewed by Rob.
ap [Sat, 16 Dec 2006 12:31:30 +0000 (12:31 +0000)]
    Reviewed by Rob.

        A deleted object was accessed to prepare RegExp construction error messages.

        * kjs/regexp_object.cpp:
        (RegExpObjectImp::construct): Wrap the RegExp into an OwnPtr.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18256 268f45cc-cd09-0410-ab3c-d52691b4dbfc