sullivan [Tue, 16 Oct 2007 16:55:13 +0000 (16:55 +0000)]
Reviewed by Adam Roben
Cleaned up localizable strings
* English.lproj/Localizable.strings:
updated
* StringsNotToBeLocalized.txt:
updated
* WebKit.xcodeproj/project.pbxproj:
StringsNotToBeLocalized.txt recently moved but project file wasn't updated to match; now it is
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26661
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ddkilzer [Tue, 16 Oct 2007 11:19:54 +0000 (11:19 +0000)]
Removed conflict markers.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26656
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ap [Tue, 16 Oct 2007 07:04:40 +0000 (07:04 +0000)]
Reviewed by Maciej.
http://bugs.webkit.org/show_bug.cgi?id=15506
editing/pasteboard/paste-into-anchor-text.html accesses an external resource
Removed the external resource reference and made the test dump as text.
* editing/pasteboard/paste-into-anchor-text-expected.txt: Copied from platform/mac/editing/pasteboard/paste-into-anchor-text-expected.txt.
* editing/pasteboard/paste-into-anchor-text.html:
* platform/mac/editing/pasteboard/paste-into-anchor-text-expected.checksum: Removed.
* platform/mac/editing/pasteboard/paste-into-anchor-text-expected.png: Removed.
* platform/mac/editing/pasteboard/paste-into-anchor-text-expected.txt: Removed.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26654
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ddkilzer [Tue, 16 Oct 2007 05:53:03 +0000 (05:53 +0000)]
WebKitTools:
Reviewed by Eric.
- fix http://bugs.webkit.org/show_bug.cgi?id=15002
Script to automatically search nightly builds for regressions (bisect-builds)
* Scripts/bisect-builds: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26653
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Tue, 16 Oct 2007 05:17:06 +0000 (05:17 +0000)]
2007-10-15 Mark Rowe <mrowe@apple.com>
Reviewed by John.
<rdar://problem/
5494040> Reproducible assertion failure in WebCore::IconDatabase::iconForPageURL
A race condition between icon database import and Safari asking for an icon for the empty URL
was resulting in a PageURLRecord being created for a URL that can never be retained. By enforcing
that PageURLRecord's cannot be created for the empty URL we can prevent the assertion from failing.
* loader/icon/IconDatabase.cpp:
(WebCore::IconDatabase::iconForPageURL):
(WebCore::IconDatabase::getOrCreatePageURLRecord): Bail out early if the URL is empty.
(WebCore::IconDatabase::performURLImport): Don't create the PageURLRecord if the URL is empty.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26652
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
honeycutt [Tue, 16 Oct 2007 04:51:40 +0000 (04:51 +0000)]
2007-10-15 Jon Honeycutt <jhoneycutt@apple.com>
Reviewed by Ollie.
Use OwnPtr for m_deliveryData, and fix a bug where we were memmove()ing
over m_deliveryData instead of its data buffer
* plugins/win/PluginStreamWin.cpp:
(WebCore::PluginStreamWin::~PluginStreamWin): Don't delete
m_deliveryData
(WebCore::PluginStreamWin::deliverData): Fix memmove() call
(WebCore::PluginStreamWin::didReceiveData): Assign using OwnPtr::set()
* plugins/win/PluginStreamWin.h: Use OwnPtr
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26651
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
sfalken [Tue, 16 Oct 2007 03:39:05 +0000 (03:39 +0000)]
Reviewed by Oliver.
Add missing null check.
* platform/network/cf/AuthenticationCF.cpp:
(WebCore::core):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26646
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
kdecker [Tue, 16 Oct 2007 03:30:38 +0000 (03:30 +0000)]
Reviewed by Darin Adler.
Fixed: <rdar://problem/
5520541> REGRESSION: Broken image when forwarding certain email on Tiger
* WebCoreSupport/WebFrameBridge.mm: The problem was that we were loading Mail's WebKit plug-in
too soon, which borked some necessary housekeeping on behalf of Mail. The fix is to add a quirk
that treats Tiger Mail's WebKit plug-in like a Netscape plug-in, thus ensuring the plug-in will
load during first layout and not attach time. For this plug-in, loading at first layout is
expected and is consistent with Safari 2 behavior.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26645
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Tue, 16 Oct 2007 02:34:04 +0000 (02:34 +0000)]
2007-10-15 Mark Rowe <mrowe@apple.com>
Fix the no-SVG build again. Add new transform CSS properties to the switch statements.
* css/CSSComputedStyleDeclaration.cpp:
(WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::applyProperty):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26644
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
mjs [Tue, 16 Oct 2007 01:30:22 +0000 (01:30 +0000)]
JavaScriptCore:
Reviewed by Darin.
- fixes for "New JavaScript benchmark"
http://bugs.webkit.org/show_bug.cgi?id=15515
* kjs/testkjs.cpp:
(TestFunctionImp::callAsFunction): Implement "load" for compatibility
with SpiderMonkey.
(TestFunctionImp::): ditto
(doIt): ditto
(kjsmain): Drop useless --> from output.
SunSpider:
Reviewed by Darin.
- New JavaScript benchmark
http://bugs.webkit.org/show_bug.cgi?id=15515
A start on a new JavaScript benchmark, with standalone and
browser-hosted drivers.
The test content is still incomplete and the drivers could use
some more features but there is enough here to make a good start.
The drivers compute a 95% confidence interval on the mean for the
whole test, each category, and each individual test to make it
easier to tell whether differences are statistically
significant. The confidence interval can be narrowed by running
the test more times.
* TODO: Added. Remaining things that need to be done.
* sunspider: Added. Perl script that acts as the standalone test driver.
* resources/sunspider-standalone-driver.js: Added. JavaScript part
of standalone test driver.
* resources/sunspider-analyze-results.js: Added. JavaScript statistical
analysis code.
* resources/TEMPLATE.html: Added. Template for browser-hosted tests.
* make-hosted: Added. Script to generate browser-hosted tests.
* hosted/sunspider.html: Added. Start page for browser-hosted test.
* hosted/sunspider-driver.html: Added. Driver for browser-hosted tests.
* hosted/sunspider-results.html: Added. Results page for browser-hosted
tests.
* hosted/sunspider-record-result.js: Added. Helper file for browser-hosted
tests.
* tests/LIST: Added. List of tests to use.
* tests/bitops-3bit-bits-in-byte.js: Added. Some initial test content.
* tests/bitops-bits-in-byte.js: Added. Ditto.
* tests/bitops-bitwise-and.js: Added. Ditto.
* tests/math-cordic.js: Added. Ditto.
WebKitTools:
Reviewed by Darin.
- New JavaScript benchmark
http://bugs.webkit.org/show_bug.cgi?id=15515
* Scripts/run-sunspider: Added. Wrapper to run sunspider on the
current development or release build of JavaScriptCore.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26639
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
darin [Mon, 15 Oct 2007 23:54:32 +0000 (23:54 +0000)]
Reviewed by Mitz.
- http://bugs.webkit.org/show_bug.cgi?id=15518
Remove the unused attemptFontSubstitution feature and do some
cleanup of glyphDataForCharacter.
* platform/Font.h:
* platform/Font.cpp:
(WebCore::WidthIterator::advance): Eliminated uneeded attemptFontSubstitution
and cluster parameters to the glyphDataForCharacter function.
(WebCore::Font::glyphDataForCharacter): Removed the cluster parameter and
attemptFontSubstitution parameter. Removed the isUpper check before calling
toUpper in the small caps code path. Split up the inner loop into separate
copies for non-small-caps and small caps. Broke out the system fallback
page handling so it's not inside the loop. Changed system fallback so it uses
the character and breaks it up into UTF-16 as needed, instead of using a
passed-in "character cluster".
* platform/TextStyle.h:
(WebCore::TextStyle::TextStyle): Removed attemptFontSubstitution.
(WebCore::TextStyle::applyWordRounding): Ditto.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26638
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren [Mon, 15 Oct 2007 23:52:50 +0000 (23:52 +0000)]
Fixed layout test for reals. Changed \r\n to \n, fixing mass confusion.
* fast/js/do-while-expression-value-expected.txt:
* fast/js/do-while-expression-value.html:
* fast/js/nested-function-scope.html:
* fast/js/while-expression-value-expected.txt:
* fast/js/while-expression-value.html:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26637
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
honeycutt [Mon, 15 Oct 2007 23:18:46 +0000 (23:18 +0000)]
2007-10-15 Jon Honeycutt <jhoneycutt@apple.com>
Reviewed by Ollie.
Remove an operator precedence warning on Windows
* editing/markup.cpp:
(WebCore::escapeContentText): Use (a) | (b)
(WebCore::appendEscapedContent): Use (a) | (b)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26636
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
kmccullo [Mon, 15 Oct 2007 22:59:48 +0000 (22:59 +0000)]
WebCore:
Reviewed by Darin.
- <rdar://problem/
5238818> window.resizeTo doesn't restrict the resized window to the size of the screen
- Now we take the doc into account when resizing.
- Also I found an issue where we would resize to outside the window, because the resize would be smaller than the window size but the location of the window would make the resize go off-screen. Now we move the window back into the screen.
* bindings/js/kjs_window.cpp:
(KJS::adjustWindowRect):
(KJS::WindowFunc::callAsFunction):
LayoutTests:
Reviewed by Darin.
- <rdar://problem/
5238818> window.resizeTo doesn't restrict the resized window to the size of the screen
- Now we take the dock into account when resizing.
- Also I found an issue where we would resize to outside the window, because the resize would be smaller than the window size but the location of the window would make the resize go off-screen. Now we move the window back into the screen.
* fast/dom/Window/window-resize-expected.txt:
* fast/dom/Window/window-resize.html:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26635
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Mon, 15 Oct 2007 22:34:27 +0000 (22:34 +0000)]
2007-10-15 Mark Rowe <mrowe@apple.com>
Reviewed by Sam.
Fix 'run-webkit-tests --qt' complaining about the --qt argument.
* Scripts/webkitdirs.pm:
- Change checkArgv to remove the options from @ARGV to prevent
them from interfering with further option processing.
- Fix logic error in determineIsQt that would prevent it from bailing out early.
- Change isOSX to mean OS X and not Qt or Gtk. Most of our uses of isOSX assume that this is the meaning
already, so this change fixes several broken areas of the scripts including 'run-webkit-tests --qt' on a Mac
incorrectly using the Mac results, and 'run-webkit-tests --gtk' attempting to build the Mac DumpRenderTree.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26633
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
honeycutt [Mon, 15 Oct 2007 22:27:31 +0000 (22:27 +0000)]
2007-10-15 Jon Honeycutt <jhoneycutt@apple.com>
Reviewed by Anders.
<rdar://
5510700> Repro crash loading embedded Windows Media Player
content
Anders noticed that the older Windows Media Player plugin (npdsplay.dll)
will crash if it receives its resource requests out of order, whereas we
were immediately fulfilling untargeted, non-JavaScript requests and
scheduling targeted or JavaScript resource requests. Implement his
suggested fix, which is to schedule PluginRequests for all resource
requests
* plugins/win/PluginViewWin.cpp:
(WebCore::getString):
(WebCore::PluginViewWin::performRequest): If this non-JavaScript request
has no target, create a stream for it
(WebCore::PluginViewWin::load): Schedule PluginRequests for all resource
requests
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26632
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Mon, 15 Oct 2007 22:12:26 +0000 (22:12 +0000)]
2007-10-15 Mark Rowe <mrowe@apple.com>
Gtk and Qt build fix. Add new .cpp file to project.
* WebCore.pro:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26631
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
sullivan [Mon, 15 Oct 2007 21:59:48 +0000 (21:59 +0000)]
* platform/mac/FontDataMac.mm:
D'oh! Added missing #import to fix build
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26630
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
sullivan [Mon, 15 Oct 2007 21:42:57 +0000 (21:42 +0000)]
Reviewed by Geoff Garen
Replaced NS_DURING/NS_HANDLER with @try/@catch throughout WebKit
I made the following changes:
- replaced NS_DURING with @try, and added opening brace if there wasn't one
- replaced NS_HANDLER with @catch (NSException *localException), and added braces if there weren't any
- removed NS_ENDHANDLER, and added a closing brace if there wasn't one
- in a couple of places, fixed indentation therein
* Misc/WebIconDatabase.mm:
(objectFromPathForKey):
* WebView/WebHTMLView.mm:
(-[WebHTMLView drawSingleRect:]):
(-[WebHTMLView beginDocument]):
(-[WebHTMLView deleteToMark:]):
* WebView/WebView.mm:
(-[WebView initWithCoder:]):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26629
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
sullivan [Mon, 15 Oct 2007 21:41:36 +0000 (21:41 +0000)]
Reviewed by Geoff
* platform/mac/FontDataMac.mm:
(WebCore::FontData::smallCapsFontData):
replace NS_DURING/NS_HANDLER with WebCore-style BEGIN/END_BLOCK_OBJC_EXCEPTIONS
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26628
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren [Mon, 15 Oct 2007 21:25:07 +0000 (21:25 +0000)]
Changed line ending style of results file to fix layout test that was
failing locally on my machine.
* fast/js/nested-function-scope-expected.txt:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26627
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt [Mon, 15 Oct 2007 21:15:48 +0000 (21:15 +0000)]
The CSS WG has been discussing the concept of rotation. In the latest draft specification, two properties
have been introduced: rotation and rotation-point. I believe these properties should be generalized to
allow for arbitrary transformations (e.g., translation, skew, rotate, scale).
This patch adds support for the back-end parsing of two new CSS properties: transform and transform-origin.
They are directly analogous to the properties specified by the CSS WG, except that they are designed to allow
for arbitrary affine transforms rather than just rotation.
Reviewed by Beth Dakin
* WebCore.xcodeproj/project.pbxproj:
* WebCore.vcproj/WebCore.vcproj:
* css/CSSComputedStyleDeclaration.cpp:
(WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
* css/CSSParser.cpp:
(WebCore::CSSParser::parseValue):
(WebCore::TransformParseContext:::m_list):
(WebCore::TransformParseContext::list):
(WebCore::TransformParseContext::failed):
(WebCore::TransformParseContext::addValue):
(WebCore::TransformOperationInfo::TransformOperationInfo):
(WebCore::TransformOperationInfo::type):
(WebCore::TransformOperationInfo::argCount):
(WebCore::TransformOperationInfo::unit):
(WebCore::TransformOperationInfo::unknown):
(WebCore::TransformOperationInfo::hasCorrectArgCount):
(WebCore::CSSParser::parseTransform):
(WebCore::CSSParser::parseTransformOrigin):
* css/CSSParser.h:
* css/CSSPropertyNames.in:
* css/CSSTransformValue.cpp: Added.
(WebCore::CSSTransformValue::CSSTransformValue):
(WebCore::CSSTransformValue::~CSSTransformValue):
(WebCore::CSSTransformValue::addValue):
(WebCore::CSSTransformValue::cssText):
* css/CSSTransformValue.h: Added.
(WebCore::CSSTransformValue::):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26626
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren [Mon, 15 Oct 2007 20:58:28 +0000 (20:58 +0000)]
Removed unnecessary #include.
* API/JSObjectRef.cpp:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26625
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren [Mon, 15 Oct 2007 20:57:12 +0000 (20:57 +0000)]
Double-reverse build fix. My tree was out of date.
* kjs/nodes.cpp:
(NumberNode::evaluate):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26624
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Mon, 15 Oct 2007 20:53:35 +0000 (20:53 +0000)]
2007-10-15 Mark Rowe <mrowe@apple.com>
Reviewed by Oliver.
Fix the no-SVG build.
* DerivedSources.make: Use the correct file as input to generate CSSPropertyNames.h.
* rendering/RenderObject.cpp:
(WebCore::objectIsRelayoutBoundary):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26623
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren [Mon, 15 Oct 2007 20:47:23 +0000 (20:47 +0000)]
Build fix.
* kjs/nodes.cpp:
(NumberNode::evaluate):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26622
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren [Mon, 15 Oct 2007 20:44:09 +0000 (20:44 +0000)]
JavaScriptCore:
Reviewed by Darin Adler.
Removed surprising self-named "hack" that made nested functions
available as named properties of their containing functions, and placed
containing function objects in the scope chains of nested functions.
There were a few reasons to remove this "hack:"
1. It contradicted FF, IE, and the ECMA spec.
2. It incurred a performance penalty, since merely parsing a function
required parsing its body for nested functions (and so on).
3. SVN history contains no explanation for why it was added. It was just
legacy code in a large merge a long, long time ago.
[ Patch broken off from http://bugs.webkit.org/show_bug.cgi?id=14868 ]
* kjs/nodes.cpp:
(FuncDeclNode::processFuncDecl):
LayoutTests:
Reviewed by Darin Adler.
Removed surprising self-named "hack" that made nested functions
available as named properties of their containing functions, and placed
containing function objects in the scope chains of nested functions.
[ Patch broken off from http://bugs.webkit.org/show_bug.cgi?id=14868 ]
Changed this test to reflect correct behavior:
* fast/js/kde/function-expected.txt:
* fast/js/kde/resources/function.js: (Also removed tab characters.)
Added this test to flesh out the behavior more:
* fast/js/nested-function-scope-expected.txt: Added.
* fast/js/nested-function-scope.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26621
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren [Mon, 15 Oct 2007 20:41:39 +0000 (20:41 +0000)]
Reviewed by Darin Adler.
Removed the concept of AnonymousCode. It was unused, and it doesn't
exist in the ECMA spec.
[ Patch broken off from http://bugs.webkit.org/show_bug.cgi?id=14868 ]
* kjs/Context.cpp:
(KJS::Context::Context):
* kjs/function.h:
(KJS::):
* kjs/nodes.cpp:
(ReturnNode::execute):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26620
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren [Mon, 15 Oct 2007 20:40:50 +0000 (20:40 +0000)]
JavaScriptCore:
Reviewed by Darin Adler.
Made function parameters DontDelete. This matches FF and the vague
description in ECMA 10.1.3. It's also required in order to make
symbol table based lookup of function parameters valid. (If the
parameters aren't DontDelete, you can't guarantee that you'll find
them later in the symbol table.)
[ Patch broken off from http://bugs.webkit.org/show_bug.cgi?id=14868 ]
* kjs/function.cpp:
(KJS::FunctionImp::passInParameters):
LayoutTests:
Committed revision 26618.
Made function parameters DontDelete.
* fast/js/delete-function-parameter-expected.txt: Added.
* fast/js/delete-function-parameter.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26619
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren [Mon, 15 Oct 2007 20:39:10 +0000 (20:39 +0000)]
Reviewed by Maciej Stachowiak.
Some Vector optimizations. These are especially important when using
Vector as a stack for implementing recursive algorithms iteratively.
[ Broken off from http://bugs.webkit.org/show_bug.cgi?id=14868 ]
1. Added shrink(), which is a version of resize() that you can call
to save a branch / improve code generation and inlining when you know
that the vector is not getting bigger.
2. Changed subclassing relationship in VectorBuffer to remove a call to
fastFree() in the destructor for the inlineCapacity != 0 template
specialization. This brings inline Vectors one step closer to true
stack-allocated arrays.
Also changed abort() to CRASH(), since the latter works better.
* wtf/Vector.h:
(WTF::VectorBufferBase::allocateBuffer):
(WTF::VectorBufferBase::deallocateBuffer):
(WTF::VectorBufferBase::VectorBufferBase):
(WTF::VectorBufferBase::~VectorBufferBase):
(WTF::):
(WTF::VectorBuffer::VectorBuffer):
(WTF::VectorBuffer::~VectorBuffer):
(WTF::VectorBuffer::deallocateBuffer):
(WTF::VectorBuffer::releaseBuffer):
(WTF::Vector::clear):
(WTF::Vector::removeLast):
(WTF::::operator):
(WTF::::fill):
(WTF::::shrink):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26618
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren [Mon, 15 Oct 2007 20:36:57 +0000 (20:36 +0000)]
JavaScriptCore:
Reviewed by Maciej Stachowiak.
Fixed http://bugs.webkit.org/show_bug.cgi?id=15490
Iteration statements sometimes incorrectly evaluate to the empty value
(KDE r670547).
[ Broken off from http://bugs.webkit.org/show_bug.cgi?id=14868 ]
This patch is a merge of KDE r670547, with substantial modification
for performance.
It fixes do-while statements to evaluate to a value. (They used
to evaluate to the empty value in all cases.)
It also fixes SourceElementsNode to maintain the value of abnormal
completions like "break" and "continue."
It also re-works the main execution loop in SourceElementsNode so that
it (1) makes a little more sense and (2) avoids unnecessary work. This
is a .28% speedup on command-line JS iBench.
* kjs/nodes.cpp:
(DoWhileNode::execute):
(SourceElementsNode::execute):
LayoutTests:
Reviewed by Maciej Stachowiak.
Layout tests for http://bugs.webkit.org/show_bug.cgi?id=15490
Iteration statements sometimes incorrectly evaluate to the empty value
(KDE r670547)
* fast/js/do-while-expression-value-expected.txt: Added.
* fast/js/do-while-expression-value.html: Added.
* fast/js/while-expression-value-expected.txt: Added.
* fast/js/while-expression-value.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26617
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
darin [Mon, 15 Oct 2007 19:02:41 +0000 (19:02 +0000)]
WebCore:
Reviewed by Sam.
- fix http://bugs.webkit.org/show_bug.cgi?id=15520
alert(undefined) should say "undefined" in the alert
Test: fast/dom/Window/alert-undefined.html
* page/DOMWindow.idl: Remove ConvertUndefinedOrNullToNullString from alert, confirm, and prompt.
It turns out that the default behavior is what the other browsers do (browsers tested: IE 7,
Firefox 2).
LayoutTests:
Reviewed by Sam.
- fix http://bugs.webkit.org/show_bug.cgi?id=15520
alert(undefined) should say "undefined" in the alert
* fast/dom/Window/alert-undefined.html: Added tests of null and both confirm and prompt.
* fast/dom/Window/alert-undefined-expected.txt: Updated.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26616
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
darin [Mon, 15 Oct 2007 18:47:56 +0000 (18:47 +0000)]
Reviewed by Sam.
- added logging of window.prompt and window.confirm
* DumpRenderTree/mac/UIDelegate.mm:
(-[UIDelegate webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:]):
Implement the recommended delegate rather than the deprecated one.
(-[UIDelegate webView:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:]):
Added.
(-[UIDelegate webView:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:]):
Added.
* DumpRenderTree/win/UIDelegate.h:
* DumpRenderTree/win/UIDelegate.cpp:
(UIDelegate::runJavaScriptAlertPanelWithMessage): Got rid of unnecessary check for null string.
(UIDelegate::runJavaScriptConfirmPanelWithMessage): Added.
(UIDelegate::runJavaScriptTextInputPanelWithPrompt): Added.
(UIDelegate::webViewAddMessageToConsole): Got rid of unnecessary check for null string.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26615
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
adele [Mon, 15 Oct 2007 18:39:05 +0000 (18:39 +0000)]
WebCore:
Reviewed by Darin.
Fix for http://bugs.webkit.org/show_bug.cgi?id=15252
<rdar://problem/
5498184> REGRESSION: <select multiple> doesn't scroll to top when old options are removed and new ones are added, leaving listbox empty-looking
* rendering/RenderListBox.cpp: (WebCore::RenderListBox::calcHeight): If the scrollbar is disabled, make sure the scroll offset gets reset to 0. In general,
we don't want to unnecessarily adjust the scroll offset, but in this case, there won't be an obvious way for the user to adjust the scroller position once it's disabled.
LayoutTests:
Reviewed by Darin.
Test for http://bugs.webkit.org/show_bug.cgi?id=15252
<rdar://problem/
5498184> REGRESSION: <select multiple> doesn't scroll to top when old options are removed and new ones are added, leaving listbox empty-looking
* fast/forms/listbox-scroll-after-options-removed-expected.txt: Added.
* fast/forms/listbox-scroll-after-options-removed.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26614
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
honeycutt [Mon, 15 Oct 2007 18:01:47 +0000 (18:01 +0000)]
Fixing a date in the ChangeLog
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26610
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
aliceli1 [Mon, 15 Oct 2007 17:25:49 +0000 (17:25 +0000)]
WebKitTools:
Reviewed by Sam Weinig.
Fixed <rdar://
5382546> layoutTestController.setCustomPolicyDelegate is unimplemented causing tests to fail
* DumpRenderTree/win/DumpRenderTree.cpp:
(runTest): Like on mac, before running each test, set the webview's policy delegate to null
(main): allocate the global policy delegate for DRT's custom use
* DumpRenderTree/win/DumpRenderTree.vcproj:
Adding files to project
* DumpRenderTree/win/DumpRenderTreeWin.h: declaring global DRT policy delegate
* DumpRenderTree/win/LayoutTestControllerWin.cpp:
(LayoutTestController::setCustomPolicyDelegate):
set the webview's policy delegate to DRT's custom one if the test requests it.
* DumpRenderTree/win/PolicyDelegate.cpp: Added.
Implementation is a direct port of DumpRenderTree/mac/PolicyDelegate.mm
(PolicyDelegate::PolicyDelegate):
(PolicyDelegate::QueryInterface):
(PolicyDelegate::AddRef):
(PolicyDelegate::Release):
(PolicyDelegate::decidePolicyForNavigationAction):
* DumpRenderTree/win/PolicyDelegate.h: Added.
(PolicyDelegate::decidePolicyForNewWindowAction):
(PolicyDelegate::decidePolicyForMIMEType):
(PolicyDelegate::unableToImplementPolicyWithError):
win:
Reviewed by Sam Weinig.
Fixed <rdar://
5382546> layoutTestController.setCustomPolicyDelegate is unimplemented causing tests to fail
* DefaultPolicyDelegate.cpp: Added.
Implementation is a direct port of WebKit/DefaultDelegates/WebDefaultPolicyDelegate.m
(DefaultPolicyDelegate::DefaultPolicyDelegate):
(DefaultPolicyDelegate::~DefaultPolicyDelegate):
(DefaultPolicyDelegate::sharedInstance):
(DefaultPolicyDelegate::createInstance):
(DefaultPolicyDelegate::QueryInterface):
(DefaultPolicyDelegate::AddRef):
(DefaultPolicyDelegate::Release):
(DefaultPolicyDelegate::decidePolicyForNavigationAction):
(DefaultPolicyDelegate::decidePolicyForNewWindowAction):
(DefaultPolicyDelegate::decidePolicyForMIMEType):
(DefaultPolicyDelegate::unableToImplementPolicyWithError):
* DefaultPolicyDelegate.h: Added.
* WebFrame.cpp:
(WebFrame::dispatchDecidePolicyForNavigationAction):
Implemented default action
* WebKit.vcproj/WebKit.vcproj:
Adding files to project
LayoutTests:
removing fixed test
* platform/win/Skipped:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26609
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
honeycutt [Mon, 15 Oct 2007 17:20:31 +0000 (17:20 +0000)]
2007-10-12 Jon Honeycutt <jhoneycutt@apple.com>
Reviewed by Maciej.
Return a more appropriate error from NPN_RequestRange, which is
currently unimplemented
* plugins/win/npapi.cpp: return NPERR_STREAM_NOT_SEEKABLE
(NPN_RequestRead):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26608
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
honeycutt [Mon, 15 Oct 2007 17:15:54 +0000 (17:15 +0000)]
2007-10-15 Jon Honeycutt <jhoneycutt@apple.com>
Reviewed by Maciej.
Add a missing function pointer to the m_browserFuncs structure
* plugins/win/PluginPackageWin.cpp:
(WebCore::PluginPackageWin::load):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26607
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
kmccullo [Mon, 15 Oct 2007 16:46:32 +0000 (16:46 +0000)]
Reviewed by Sam.
- <rdar://problem/
5536630> fast/dom/Window/new-window-opener.html fails
- This test used to pass because of a mistake in js-test-pre.js.
Now that the js file has been fixed this test has been updated, some
of the test cases fail because DRT does not implement delegate methods
for the bars for each WebView.
- See <rdar://problem/
5538752> DumpRenderTree does not have a UIDelegate for each WebView.
- Also changed the test to correctly wait for the window to close before
starting a new testcase. This is necessary because all the windows have
the same name and cannot override the settings of a pre-existing window.
* fast/dom/Window/new-window-opener-expected.txt:
* fast/dom/Window/new-window-opener.html:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26606
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hausmann [Mon, 15 Oct 2007 15:59:03 +0000 (15:59 +0000)]
Fix the compilation of the Font code in the Qt port by adding the necessary stubs to support downloadable fonts through the @font-face rules.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26605
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hausmann [Mon, 15 Oct 2007 15:58:57 +0000 (15:58 +0000)]
Adapt to the latest API changes in the SVG API/Code.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26604
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hausmann [Mon, 15 Oct 2007 15:58:50 +0000 (15:58 +0000)]
Fix compilation with gcc 4.3 by including 'limits' due to the use of std::numeric_limits.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26603
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
oliver [Mon, 15 Oct 2007 10:04:25 +0000 (10:04 +0000)]
Reset svg pixel tests to a tiger baseline and move them to platform/mac
RS=Maciej
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26602
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
darin [Sun, 14 Oct 2007 23:46:36 +0000 (23:46 +0000)]
- added exceptions for all the tests failing on my personal Leopard machine
This may or may not get the buildbot green. I'll file separate bugs for each
of the tests with changed results.
* platform/mac-leopard/dom: Added.
* platform/mac-leopard/dom/xhtml: Added.
* platform/mac-leopard/dom/xhtml/level2: Added.
* platform/mac-leopard/dom/xhtml/level2/html: Added.
* platform/mac-leopard/dom/xhtml/level2/html/HTMLDocument12-expected.txt: Added.
* platform/mac-leopard/editing: Added.
* platform/mac-leopard/editing/pasteboard: Added.
* platform/mac-leopard/editing/pasteboard/paste-RTFD-expected.txt: Added.
* platform/mac-leopard/http: Added.
* platform/mac-leopard/http/tests: Added.
* platform/mac-leopard/http/tests/security: Added.
* platform/mac-leopard/http/tests/security/dataURL: Added.
* platform/mac-leopard/http/tests/security/dataURL/xss-DENIED-to-data-url-sub-frame-uppercase-expected.txt: Added.
* platform/mac-leopard/svg/custom: Added.
* platform/mac-leopard/svg/custom/stroke-width-click-expected.txt: Added.
* platform/mac-leopard/webarchive: Added.
* platform/mac-leopard/webarchive/test-xml-stylesheet-expected.txt: Added.
* platform/mac-leopard/security/block-test-expected.txt: Changed results.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26601
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
darin [Sun, 14 Oct 2007 23:20:48 +0000 (23:20 +0000)]
- moved a test that somehow ended up doubly-nested in platform/mac
* platform/mac/fast/text/justified-text-rect-expected.checksum: Copied from platform/mac/platform/mac/fast/text/justified-text-rect-expected.checksum.
* platform/mac/fast/text/justified-text-rect-expected.png: Copied from platform/mac/platform/mac/fast/text/justified-text-rect-expected.png.
* platform/mac/fast/text/justified-text-rect-expected.txt: Copied from platform/mac/platform/mac/fast/text/justified-text-rect-expected.txt.
* platform/mac/platform: Removed.
* platform/mac/platform/mac: Removed.
* platform/mac/platform/mac/fast: Removed.
* platform/mac/platform/mac/fast/text: Removed.
* platform/mac/platform/mac/fast/text/justified-text-rect-expected.checksum: Removed.
* platform/mac/platform/mac/fast/text/justified-text-rect-expected.png: Removed.
* platform/mac/platform/mac/fast/text/justified-text-rect-expected.txt: Removed.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26600
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
oliver [Sun, 14 Oct 2007 22:30:25 +0000 (22:30 +0000)]
Revert "Rubberstamped by Eric."
This reverts commit
4ae99caea8eb153f9b85e86d1819b19b4af12fb4.
RS=Niko
Revert layout test move.
Filed http://bugs.webkit.org/show_bug.cgi?id=15513 to track correction for even earlier change
Conflicts:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26599
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zimmermann [Sun, 14 Oct 2007 20:15:01 +0000 (20:15 +0000)]
Not reviewed. Don't list all individual files in the ChangeLog -> make Mark happy
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26598
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zimmermann [Sun, 14 Oct 2007 19:09:00 +0000 (19:09 +0000)]
Rubberstamped by Eric.
Move current layout tests results from platform/mac/svg to platform/mac-tiger/svg.
The problem is that the current results have accidently been generated with Leopard,
I'm still moving this to mac-tiger so we don't loose the history for all the results.
After this commit, the baseline will be regenerated in mac-tiger/svg, and someone with
Leopard needs to generate new results in mac-leopard/svg.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26597
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
zimmermann [Sun, 14 Oct 2007 17:45:09 +0000 (17:45 +0000)]
Reviewed by Eric.
Fix bad abstraction in ImageBuffer class.
While the class itself is platform-aware and thus it's location in platform/graphics
is fine, it contains the "renderSubtreeToImage" method which operates on RenderObject.
As it's SVG specific I decided to move this method into SVGRenderSupport, to avoid
implicit platform/ <-> rendering/ dependencies.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26595
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
sfalken [Sun, 14 Oct 2007 17:40:32 +0000 (17:40 +0000)]
Move pthreads up in the linker order and don't mark it for delay load.
Fixes crash during regsvr32 of WebKit (currently repro if you do a spade ti).
Reviewed by Darin, Ada.
* WebKit.vcproj/WebKit.vcproj:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26594
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Sun, 14 Oct 2007 13:02:48 +0000 (13:02 +0000)]
2007-10-14 Holger Hans Peter Freyther <zecke@selfish.org>
Reviewed by Mark.
* Scripts/webkitdirs.pm: Use qmake binary specified via --qmake on command-line
when querying for QMAKE_MKSPECS.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26593
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
andrew [Sun, 14 Oct 2007 12:06:28 +0000 (12:06 +0000)]
Reviewed by Adam Roben.
Fix run-webkit-tests is too greedy calculating platform hierarchy
http://bugs.webkit.org/show_bug.cgi?id=15465
Fix run-webkit-tests being too greedy in trying to split the platform name up
causing it to try and find tests in every directory above the first "-" in the
path to the LayoutTests
* Scripts/run-webkit-tests:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26592
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Sun, 14 Oct 2007 11:59:35 +0000 (11:59 +0000)]
2007-10-14 Peter Kasting <zerodpx@gmail.com>
Reviewed by Maciej.
http://bugs.webkit.org/show_bug.cgi?id=15210
Draw the image outline even for broken images.
* rendering/RenderImage.cpp:
(WebCore::RenderImage::paint):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26591
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Sun, 14 Oct 2007 11:58:18 +0000 (11:58 +0000)]
2007-10-14 Jan Michael Alonzo <jmalonzo@unpluggable.com>
Reviewed by Adam.
http://bugs.webkit.org/show_bug.cgi?id=15299
Fix "hovering_over_link" signal not emitted when consecutive links
are hovered.
* WebCoreSupport/ChromeClientGtk.cpp:
(WebKit::ChromeClient::mouseDidMoveOverElement):
* WebCoreSupport/ChromeClientGtk.h:
- Remove m_didSendLinkSignal as it is superseded by m_hoveredLinkURL
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26590
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Sun, 14 Oct 2007 11:55:02 +0000 (11:55 +0000)]
2007-10-14 Kevin Ollivier <kevino@theolliviers.com>
Reviewed by Adam.
Add support for MSVC7, and fix cases where PLATFORM(WIN) should
be PLATFORM(WIN_OS) for other ports building on Windows.
* dom/XMLTokenizer.cpp:
* page/FrameTree.cpp:
* platform/StaticConstructors.h:
* platform/String.cpp:
2007-10-5 Kevin Ollivier <kevino@theolliviers.com>
Reviewed by Adam.
Add support for MSVC7, and fix cases where PLATFORM(WIN) should
be PLATFORM(WIN_OS) for other ports building on Windows.
* kjs/DateMath.cpp:
(KJS::getDSTOffsetSimple):
* kjs/JSImmediate.h:
* wtf/Assertions.cpp:
* wtf/Assertions.h:
* wtf/Platform.h:
* wtf/StringExtras.h:
(snprintf):
(vsnprintf):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26589
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Sun, 14 Oct 2007 11:49:39 +0000 (11:49 +0000)]
2007-10-14 Maxime Britto <mbritto@pleyo.com>
Reviewed by Mitz.
Fix an error in the goBackOrForward() function : confusion between forwardListCount and backListCount.
http://bugs.webkit.org/show_bug.cgi?id=15212
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::goBackOrForward):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26588
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Sun, 14 Oct 2007 11:44:20 +0000 (11:44 +0000)]
2007-10-14 Mitz Pettel <mitz@webkit.org>
Reviewed by Darin.
- fix http://bugs.webkit.org/show_bug.cgi?id=15181
text-transform: uppercase not working in input (submit, reset, button) elements
<rdar://problem/
5474647>
Test: fast/forms/button-text-transform.html
Text transformations require access to the original text. The button's inner
text was an anonymous RenderText, meaning it did not have a node to retrieve
the original text from. The patch fixes this by changing the inner text into a
RenderTextFragment, which stores its own original text.
* rendering/RenderButton.cpp:
(WebCore::RenderButton::setText):
* rendering/RenderButton.h:
2007-10-14 Mitz Pettel <mitz@webkit.org>
Reviewed by Darin.
- test for http://bugs.webkit.org/show_bug.cgi?id=15181
text-transform: uppercase not working in input (submit, reset, button) elements
<rdar://problem/
5474647>
* fast/forms/button-text-transform.html: Added.
* platform/mac/fast/forms/button-text-transform-expected.checksum: Added.
* platform/mac/fast/forms/button-text-transform-expected.png: Added.
* platform/mac/fast/forms/button-text-transform-expected.txt: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26587
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Sun, 14 Oct 2007 11:42:44 +0000 (11:42 +0000)]
2007-10-14 Oleg Sukhodolsky <son.two@gmail.com>
Reviewed by Darin.
http://bugs.webkit.org/show_bug.cgi?id=15006
Refactoring of buildQMakeGdkProject()/buildQMakeQtProject() and isGdk()/isQt()
to reduce code duplication.
* Scripts/build-webkit:
* Scripts/webkitdirs.pm:
buildQMakeProject() renamed to buildQMakeQtProject().
buildQMakeGdkProject()/buildQMakeQtProject() now take just one parameter (directory),
unused $colorize has been removed.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26586
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Sun, 14 Oct 2007 11:39:54 +0000 (11:39 +0000)]
2007-10-14 Eric Seidel <eric@webkit.org>
Reviewed by Maciej.
REGRESSION: Javascript bug in getElementsByName
http://bugs.webkit.org/show_bug.cgi?id=15274
Test: fast/dom/getelementbyname-invalidation.html
* dom/NameNodeList.h: remove empty rootNodeChildrenChanged override
2007-10-14 Eric Seidel <eric@webkit.org>
Reviewed by Maciej.
Test for http://bugs.webkit.org/show_bug.cgi?id=15274
REGRESSION: Javascript bug in getElementsByName
* fast/dom/getelementbyname-invalidation-expected.txt: Added.
* fast/dom/getelementbyname-invalidation.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26585
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Sun, 14 Oct 2007 11:35:27 +0000 (11:35 +0000)]
2007-10-14 Mitz Pettel <mitz@webkit.org>
Reviewed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=15303
Remove now-redundant code to restore dialog arguments after clear
This patch reverts the kjs_window.* parts of r25576 because following
r25783, window properties, including dialog arguments, are not cleared
when the newly created modal dialog transitions to the document.
* bindings/js/kjs_window.cpp:
(KJS::WindowPrivate::WindowPrivate):
(KJS::createWindow):
(KJS::showModalDialog):
(KJS::Window::clear):
(KJS::WindowFunc::callAsFunction):
(KJS::Window::setReturnValueSlot):
* bindings/js/kjs_window.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26584
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Sun, 14 Oct 2007 11:33:56 +0000 (11:33 +0000)]
2007-10-14 Mitz Pettel <mitz@webkit.org>
Reviewed by Dave Hyatt.
- fix http://bugs.webkit.org/show_bug.cgi?id=15309
<rdar://problem/
5512020> Crash due to infinite recursion in RenderTable::addChild
Test: fast/table/generated-caption.html
* rendering/RenderTable.cpp:
(WebCore::RenderTable::addChild): Changed to make sure that the child is
not added into generated after content. Also made adding a child before
a table caption work correctly instead of adding the child after the caption.
2007-10-14 Mitz Pettel <mitz@webkit.org>
Reviewed by Dave Hyatt.
- test for http://bugs.webkit.org/show_bug.cgi?id=15309
<rdar://problem/
5512020> Crash due to infinite recursion in RenderTable::addChild
* fast/table/generated-caption.html: Added.
* platform/mac/fast/table/generated-caption-expected.checksum: Added.
* platform/mac/fast/table/generated-caption-expected.png: Added.
* platform/mac/fast/table/generated-caption-expected.txt: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26583
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Sun, 14 Oct 2007 11:31:58 +0000 (11:31 +0000)]
2007-10-14 Cameron Zwarich <cwzwarich@uwaterloo.ca>
Reviewed by Darin.
Adds NegateNode optimization from KJS. The relevant revision in KDE
is 666736.
* kjs/grammar.y:
* kjs/nodes.cpp:
(NumberNode::evaluate):
* kjs/nodes.h:
(KJS::Node::):
(KJS::NumberNode::):
* kjs/nodes2string.cpp:
(NumberNode::streamTo):
2007-10-14 Cameron Zwarich <cwzwarich@uwaterloo.ca>
Reviewed by Darin.
Adds serialization test cases for NegateNode optimization from KDE.
* fast/js/function-decompilation-operators-expected.txt:
* fast/js/function-decompilation-operators.html:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26582
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Sun, 14 Oct 2007 11:30:16 +0000 (11:30 +0000)]
2007-10-14 Jason Foreman <jason@threeve.org>
Reviewed by Maciej.
Fix http://bugs.webkit.org/show_bug.cgi?id=15145
Ensure that if adjusting n to minimize the difference of n*intPow10(e-p+1) to x,
that the property n < intPow10(p) is maintained.
* kjs/number_object.cpp:
(NumberProtoFunc::callAsFunction):
2007-10-14 Jason Foreman <jason@threeve.org>
Reviewed by Maciej.
Adding test for http://bugs.webkit.org/show_bug.cgi?id=15145.
* ChangeLog:
* fast/js/number-toprecision-expected.txt: Added.
* fast/js/number-toprecision.html: Added.
* fast/js/resources/number-toprecision.js: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26581
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Sun, 14 Oct 2007 11:28:20 +0000 (11:28 +0000)]
2007-10-14 Peter Kasting <zerodpx@gmail.com>
Reviewed by Maciej.
http://bugs.webkit.org/show_bug.cgi?id=15141
Feed GIF reader data from the point in the stream it expects. Also,
mirror the reader's failure state up to the wrapping decoder.
* platform/image-decoders/gif/GIFImageReader.cpp:
(GIFImageReader::read):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26580
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Sun, 14 Oct 2007 11:27:13 +0000 (11:27 +0000)]
2007-10-14 Peter Kasting <zerodpx@gmail.com>
Reviewed by Maciej.
http://bugs.webkit.org/show_bug.cgi?id=15142
Return correct frame count in GIFImageDecoder::frameBufferAtIndex(),
even if more data has arrived since the last decoding pass.
* platform/image-decoders/gif/GIFImageDecoder.cpp:
(WebCore::GIFImageDecoder::frameBufferAtIndex):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26579
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Sun, 14 Oct 2007 11:25:22 +0000 (11:25 +0000)]
2007-10-14 Feng Qian <ian.eng.webkit@gmail.com>
Reviewed by Maciej.
* fast/events/window-events-bubble2.html:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26578
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Sun, 14 Oct 2007 11:02:41 +0000 (11:02 +0000)]
Roll over ChangeLogs for JavaScriptCore, LayoutTests, WebCore and WebKit.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26574
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
eseidel [Sun, 14 Oct 2007 09:03:22 +0000 (09:03 +0000)]
2007-10-14 Eric Seidel <eric@webkit.org>
Reviewed by aroben.
Remove senseless malloc from paintOutline
No tests needed, no functional change.
* rendering/RenderFlow.cpp:
(WebCore::RenderFlow::paintOutline): remove unneeded malloc
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26573
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
oliver [Sun, 14 Oct 2007 04:12:36 +0000 (04:12 +0000)]
Adding leopard specific results to a few SVG specific tests
RS=Maciej.
* platform/mac-leopard/svg/batik/text/smallFonts-expected.txt: Added.
* platform/mac-leopard/svg/batik/text/textBiDi-expected.txt: Added.
* platform/mac-leopard/svg/hixie/text/003-expected.txt:
* platform/mac-leopard/svg/hixie/text/003a-expected.txt:
* platform/mac-leopard/svg/hixie/viewbox/preserveAspectRatio/001-expected.txt: Added.
* platform/mac-leopard/svg/hixie/viewbox/preserveAspectRatio/002-expected.txt:
* platform/mac-leopard/svg/text/text-path-01-b-expected.txt: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26572
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
eseidel [Sun, 14 Oct 2007 02:07:12 +0000 (02:07 +0000)]
2007-10-13 Eric Seidel <eric@webkit.org>
Reviewed by Mark Rowe.
Fix SVGSVGElement::currentView() to not leak by using an OwnPtr.
This fix is incompatible with changes eventually needed for supporting
SVGSVGElement.currentView in the bindings (that needs a ref'd object)
There are also several parser crashers in SVGViewSpec, but those will be fixed
in my next patch.
Leak fix only, no additional tests needed.
* ksvg2/svg/SVGSVGElement.cpp:
(WebCore::SVGSVGElement::currentView): call .get() and .set()
* ksvg2/svg/SVGSVGElement.h: use OwnPtr
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26571
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
oliver [Sat, 13 Oct 2007 22:36:36 +0000 (22:36 +0000)]
Make svg/batik/text/textDecoration2.svg use Lucida Grande
RS=Eric.
This test case used to use Lucida Sans which is apparently available on some
systems, but not all. Switching to Lucida Grande results in a slight change
but we'll be testing with a font that everyone has.
* svg/batik/text/textDecoration2-expected.checksum:
* svg/batik/text/textDecoration2-expected.png:
* svg/batik/text/textDecoration2-expected.txt:
* svg/batik/text/textDecoration2.svg:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26570
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
oliver [Sat, 13 Oct 2007 21:41:15 +0000 (21:41 +0000)]
Fixing a few testcases by enabling SVG_EXPERIMENTAL on windows, and making the required fixes and corrections.
Reviewed by Maciej
* WebCore.vcproj/WebCore.vcproj:
* WebCore.vcproj/build-generated-files.sh:
* bindings/scripts/CodeGeneratorJS.pm:
* ksvg2/scripts/make_names.pl:
* ksvg2/svg/SVGColor.cpp:
(WebCore::SVGColor::colorFromRGBColorString):
* page/DOMWindow.idl:
* platform/graphics/svg/cg/SVGResourceFilterCg.cpp:
* platform/win/WebCoreTextRenderer.cpp:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26569
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
weinig [Sat, 13 Oct 2007 01:16:14 +0000 (01:16 +0000)]
Reviewed by Darin.
* platform/mac/editing/pasteboard/paste-RTFD-expected.txt: Update results to reflect current
tree. Reopening <rdar://problem/
5483567> (see below) to note the potential bug.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26568
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
darin [Sat, 13 Oct 2007 01:11:07 +0000 (01:11 +0000)]
Reviewed by Oliver Hunt.
- change test that was accidentally detecting changes in frame load delegate
calls to run in a directory where we do not log frame load delegate calls
At some point we may want to test them (and so re-add the test that is
currently intermittently giving different results), but this test is about
the DOMContentLoaded event and we want to test just that.
* http/tests/loading/DOMContentLoaded-event-expected.txt: Removed.
* http/tests/loading/DOMContentLoaded-event.html: Removed.
* http/tests/misc/DOMContentLoaded-event-expected.txt: Copied from http/tests/loading/DOMContentLoaded-event-expected.txt.
* http/tests/misc/DOMContentLoaded-event.html: Copied from http/tests/loading/DOMContentLoaded-event.html.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26567
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
darin [Sat, 13 Oct 2007 01:03:22 +0000 (01:03 +0000)]
Reviewed by Stephanie and Oliver.
* platform/mac/fast/forms/select-change-listbox-to-popup-expected.txt:
Update result to reflect current behavior. This is a bug and we wrote
a bug report in Radar, <rdar://problem/
5538793>.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26564
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
darin [Sat, 13 Oct 2007 00:44:04 +0000 (00:44 +0000)]
Reviewed by Sam.
- more float/int conversion (to try to get the old builbot up)
* rendering/RenderSVGRoot.cpp:
(WebCore::RenderSVGRoot::layout): Cast to int.
(WebCore::RenderSVGRoot::applyContentTransforms): Ditto.
(WebCore::RenderSVGRoot::nodeAtPoint): Ditto.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26559
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
justing [Sat, 13 Oct 2007 00:40:48 +0000 (00:40 +0000)]
WebCore:
Reviewed by Harrison.
<rdar://problem/
5483370> GoogleDocs: Deleting cell text in a table row also removes any empty rows beneath the row being edited
<rdar://problem/
5482524> GoogleDocs: A hang occurs when applying list to selected table
* editing/DeleteSelectionCommand.cpp:
(WebCore::DeleteSelectionCommand::removePreviouslySelectedEmptyTableRows):
* editing/InsertListCommand.cpp:
(WebCore::InsertListCommand::modifyRange):
(WebCore::InsertListCommand::doApply):
LayoutTests:
Reviewed by Harrison.
<rdar://problem/
5483370> GoogleDocs: Deleting cell text in a table row also removes any empty rows beneath the row being edited
<rdar://problem/
5482524> GoogleDocs: A hang occurs when applying list to selected table
* editing/deleting/
5483370.html: Added.
* editing/pasteboard/
5483567.html-disabled: Removed.
* editing/execCommand/
5482524.html: Added.
* platform/mac/editing/deleting/
5483370-expected.checksum: Added.
* platform/mac/editing/deleting/
5483370-expected.png: Added.
* platform/mac/editing/deleting/
5483370-expected.txt: Added.
* platform/mac/editing/execCommand/
5482524-expected.checksum: Added.
* platform/mac/editing/execCommand/
5482524-expected.png: Added.
* platform/mac/editing/execCommand/
5482524-expected.txt: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26558
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
darin [Sat, 13 Oct 2007 00:17:04 +0000 (00:17 +0000)]
- fix another float/int conversion
* platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
(WebCore::SVGResourceMasker::applyMask): Explicitly cast to int.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26557
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
darin [Fri, 12 Oct 2007 23:41:55 +0000 (23:41 +0000)]
Reviewed by Oliver Hunt.
- more work toward getting layout tests passing
* fast/images/svg-background-crash-on-refresh.html: Removed.
* fast/images/svg-background-crash-on-refresh.html-disabled: Copied from fast/images/svg-background-crash-on-refresh.html.
Needed to disable this test because it causes a hang; not necessarily right after
this test, sometimes quite a few tests later.
* platform/mac-leopard/Skipped: Re-enabled a test that's fixed.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26556
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
darin [Fri, 12 Oct 2007 23:41:02 +0000 (23:41 +0000)]
* fast/css/computed-style-expected.txt: Again, but right this time.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26555
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
darin [Fri, 12 Oct 2007 23:03:30 +0000 (23:03 +0000)]
Reviewed by Oliver Hunt.
- fix float/int conversions that cause warnings on older versions
of gcc (like the version currently being used on the PowerPC
buildbot slave)
* rendering/RenderPath.cpp:
(WebCore::RenderPath::paint): Explicitly cast to int.
(WebCore::RenderPath::addFocusRingRects): Use enclosingIntRect
to convert a FloatRect to an IntRect.
* rendering/SVGRootInlineBox.cpp:
(WebCore::SVGRootInlineBoxPaintWalker::chunkPortionCallback):
Use 0 for the initial value of an int, rather than 0.0f.
(WebCore::svgTextStyleForInlineTextBox): Explicitly cast to int.
(WebCore::applyTextAnchorToTextChunk): Ditto.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26554
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
darin [Fri, 12 Oct 2007 21:19:23 +0000 (21:19 +0000)]
Reviewed by Oliver Hunt.
* fast/css/computed-style-expected.txt: Added SVG CSS properties.
* fast/css/computed-style-without-renderer-expected.txt: Ditto.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26553
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
oliver [Fri, 12 Oct 2007 20:54:15 +0000 (20:54 +0000)]
Correct date in merge markers
RS=Darin
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26552
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
oliver [Fri, 12 Oct 2007 20:40:05 +0000 (20:40 +0000)]
Cast zoom factor to int as the original patch did. This is necessary to appease some versions of gcc.
Reviewed by Mark.
* ksvg2/svg/SVGSVGElement.cpp:
(WebCore::SVGSVGElement::setCurrentScale):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26550
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
eseidel [Fri, 12 Oct 2007 20:13:26 +0000 (20:13 +0000)]
2007-10-12 Eric Seidel <eric@webkit.org>
Reviewed by Mark Rowe.
Fix leaks in SVG code from feature-branch.
* ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
(WebCore::SVGFEDiffuseLightingElement::filterEffect):
* ksvg2/svg/SVGFEFloodElement.cpp:
(WebCore::SVGFEFloodElement::filterEffect):
* ksvg2/svg/SVGFESpecularLightingElement.cpp:
(WebCore::SVGFESpecularLightingElement::filterEffect):
* ksvg2/svg/SVGGradientElement.cpp:
(WebCore::SVGGradientElement::buildStops):
* ksvg2/svg/SVGStyledElement.cpp:
(WebCore::SVGStyledElement::resolveStyle): always refs style
* platform/graphics/cg/ImageBufferCG.cpp:
(WebCore::ImageBuffer::create): fastFree buffer if CG Context creation fails
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26549
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
oliver [Fri, 12 Oct 2007 18:58:47 +0000 (18:58 +0000)]
More Layout test tidying
RS=Alexey
Move dom/xhtml/level2/html/HTMLBaseElement0[12].xhtml expected output
to cross platform directory, remove unnecessary pixel results.
* dom/xhtml/level2/html/HTMLBaseElement01-expected.txt: Added.
* dom/xhtml/level2/html/HTMLBaseElement02-expected.txt: Added.
* platform/mac/dom/xhtml/level2/html/HTMLBaseElement01-expected.checksum: Removed.
* platform/mac/dom/xhtml/level2/html/HTMLBaseElement01-expected.png: Removed.
* platform/mac/dom/xhtml/level2/html/HTMLBaseElement01-expected.txt: Removed.
* platform/mac/dom/xhtml/level2/html/HTMLBaseElement02-expected.checksum: Removed.
* platform/mac/dom/xhtml/level2/html/HTMLBaseElement02-expected.png: Removed.
* platform/mac/dom/xhtml/level2/html/HTMLBaseElement02-expected.txt: Removed.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26547
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
oliver [Fri, 12 Oct 2007 18:35:44 +0000 (18:35 +0000)]
Correct expected output of a few test cases
RS=Eric
* platform/mac/dom/xhtml/level2/html/HTMLBaseElement01-expected.txt:
* platform/mac/dom/xhtml/level2/html/HTMLBaseElement02-expected.txt:
* platform/mac/fast/dom/dom-parse-serialize-expected.txt:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26546
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Fri, 12 Oct 2007 17:32:14 +0000 (17:32 +0000)]
2007-10-12 Mark Rowe <mrowe@apple.com>
Windows, Gtk and Qt build fixes. Add new files to projects.
* WebCore.pro:
* WebCore.vcproj/WebCore.vcproj:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26545
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
oliver [Fri, 12 Oct 2007 15:41:23 +0000 (15:41 +0000)]
Add merge markers
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26544
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
oliver [Fri, 12 Oct 2007 15:41:08 +0000 (15:41 +0000)]
Fix Bug 15469: feature branch has 100's of implicit double -> float conversions
Reviewed by Sam.
Re-enable -Wshorten-64-to-32, and make required code changes to make us build sanely again.
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/JSSVGMatrixCustom.cpp:
(WebCore::JSSVGMatrix::translate):
(WebCore::JSSVGMatrix::scale):
(WebCore::JSSVGMatrix::scaleNonUniform):
(WebCore::JSSVGMatrix::rotate):
(WebCore::JSSVGMatrix::skewX):
(WebCore::JSSVGMatrix::skewY):
* bindings/scripts/CodeGeneratorJS.pm:
* bindings/scripts/CodeGeneratorObjC.pm:
* ksvg2/css/SVGRenderStyle.cpp:
(WebCore::SVGRenderStyle::cssPrimitiveToLength):
* ksvg2/css/SVGRenderStyle.h:
* ksvg2/svg/SVGAnimateMotionElement.cpp:
(WebCore::SVGAnimateMotionElement::parseMappedAttribute):
(WebCore::SVGAnimateMotionElement::updateAnimatedValue):
(WebCore::parsePoint):
(WebCore::SVGAnimateMotionElement::calculateFromAndToValues):
* ksvg2/svg/SVGAnimationElement.cpp:
(WebCore::SVGAnimationElement::parseKeyNumbers):
(WebCore::parseKeySplines):
* ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
(WebCore::SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement):
(WebCore::SVGComponentTransferFunctionElement::parseMappedAttribute):
* ksvg2/svg/SVGFECompositeElement.cpp:
(WebCore::SVGFECompositeElement::SVGFECompositeElement):
(WebCore::SVGFECompositeElement::parseMappedAttribute):
* ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
(WebCore::SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement):
(WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
* ksvg2/svg/SVGFEDisplacementMapElement.cpp:
(WebCore::SVGFEDisplacementMapElement::SVGFEDisplacementMapElement):
(WebCore::SVGFEDisplacementMapElement::parseMappedAttribute):
* ksvg2/svg/SVGFEGaussianBlurElement.cpp:
(WebCore::SVGFEGaussianBlurElement::SVGFEGaussianBlurElement):
(WebCore::SVGFEGaussianBlurElement::parseMappedAttribute):
* ksvg2/svg/SVGFELightElement.cpp:
(WebCore::SVGFELightElement::SVGFELightElement):
(WebCore::SVGFELightElement::parseMappedAttribute):
* ksvg2/svg/SVGFEOffsetElement.cpp:
(WebCore::SVGFEOffsetElement::SVGFEOffsetElement):
(WebCore::SVGFEOffsetElement::parseMappedAttribute):
* ksvg2/svg/SVGFESpecularLightingElement.cpp:
(WebCore::SVGFESpecularLightingElement::SVGFESpecularLightingElement):
(WebCore::SVGFESpecularLightingElement::parseMappedAttribute):
* ksvg2/svg/SVGFETurbulenceElement.cpp:
(WebCore::SVGFETurbulenceElement::SVGFETurbulenceElement):
(WebCore::SVGFETurbulenceElement::parseMappedAttribute):
* ksvg2/svg/SVGFitToViewBox.cpp:
(WebCore::SVGFitToViewBox::parseMappedAttribute):
* ksvg2/svg/SVGFitToViewBox.h:
* ksvg2/svg/SVGLength.cpp:
(WebCore::SVGLength::setValueAsString):
(WebCore::SVGLength::PercentageOfViewport):
* ksvg2/svg/SVGNumber.idl:
* ksvg2/svg/SVGNumberList.cpp:
(WebCore::SVGNumberList::parse):
* ksvg2/svg/SVGNumberList.h:
* ksvg2/svg/SVGParserUtilities.cpp:
(WebCore::_parseNumber):
(WebCore::parseNumber):
(WebCore::pointsListFromSVGData):
(WebCore::PathBuilder::svgMoveTo):
(WebCore::PathBuilder::svgLineTo):
(WebCore::PathBuilder::svgCurveToCubic):
(WebCore::SVGPathSegListBuilder::svgMoveTo):
(WebCore::SVGPathSegListBuilder::svgLineTo):
(WebCore::SVGPathSegListBuilder::svgLineToHorizontal):
(WebCore::SVGPathSegListBuilder::svgLineToVertical):
(WebCore::SVGPathSegListBuilder::svgCurveToCubic):
(WebCore::SVGPathSegListBuilder::svgCurveToCubicSmooth):
(WebCore::SVGPathSegListBuilder::svgCurveToQuadratic):
(WebCore::SVGPathSegListBuilder::svgCurveToQuadraticSmooth):
(WebCore::SVGPathSegListBuilder::svgArcTo):
* ksvg2/svg/SVGParserUtilities.h:
* ksvg2/svg/SVGPathElement.cpp:
(WebCore::SVGPathElement::SVGPathElement):
* ksvg2/svg/SVGSVGElement.cpp:
(WebCore::SVGSVGElement::pixelUnitToMillimeterX):
(WebCore::SVGSVGElement::pixelUnitToMillimeterY):
* ksvg2/svg/SVGSVGElement.h:
* ksvg2/svg/SVGTransformDistance.cpp:
(WebCore::SVGTransformDistance::addToSVGTransform):
(WebCore::SVGTransformDistance::distance):
* ksvg2/svg/SVGTransformDistance.h:
* ksvg2/svg/SVGTransformable.cpp:
(WebCore::SVGTransformable::parseTransformValue):
* ksvg2/svg/SVGViewSpec.cpp:
(WebCore::SVGViewSpec::parseViewSpec):
* platform/graphics/svg/SVGResourceFilter.cpp:
(WebCore::SVGResourceFilter::filterBBoxForItemBBox):
* platform/graphics/svg/cg/CgSupport.cpp:
(WebCore::applyStrokeStyleToContext):
* platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
(WebCore::SVGPaintServerPattern::setup):
* platform/graphics/svg/cg/SVGResourceFilterCg.mm:
(WebCore::SVGResourceFilter::applyFilter):
* platform/graphics/svg/filters/SVGFEComponentTransfer.h:
(WebCore::SVGComponentTransferFunction::SVGComponentTransferFunction):
* platform/graphics/svg/filters/SVGFEComposite.cpp:
(WebCore::SVGFEComposite::SVGFEComposite):
* platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp:
(WebCore::SVGFEConvolveMatrix::SVGFEConvolveMatrix):
* platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp:
(WebCore::SVGFEDiffuseLighting::SVGFEDiffuseLighting):
* platform/graphics/svg/filters/SVGFEFlood.cpp:
(WebCore::SVGFEFlood::SVGFEFlood):
* platform/graphics/svg/filters/SVGFEGaussianBlur.cpp:
(WebCore::SVGFEGaussianBlur::SVGFEGaussianBlur):
* platform/graphics/svg/filters/SVGFEMorphology.cpp:
(WebCore::SVGFEMorphology::SVGFEMorphology):
* platform/graphics/svg/filters/SVGFEOffset.cpp:
(WebCore::SVGFEOffset::SVGFEOffset):
* platform/graphics/svg/filters/SVGFESpecularLighting.cpp:
(WebCore::SVGFESpecularLighting::SVGFESpecularLighting):
* platform/graphics/svg/filters/SVGFETurbulence.cpp:
(WebCore::SVGFETurbulence::SVGFETurbulence):
* platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm:
(WebCore::SVGFEColorMatrix::getCIFilter):
* platform/graphics/svg/filters/cg/SVGFEHelpersCg.mm:
(WebCore::getVectorForChannel):
(WebCore::getLightVectors):
* platform/graphics/svg/filters/cg/SVGFEImageCg.mm:
(WebCore::SVGFEImage::getCIFilter):
* rendering/RenderPath.cpp:
(WebCore::RenderPath::drawMarkersIfNeeded):
* rendering/RenderSVGImage.cpp:
(WebCore::RenderSVGImage::paint):
* rendering/RenderSVGInlineText.cpp:
(WebCore::RenderSVGInlineText::computeAbsoluteRectForRange):
* rendering/RenderSVGRoot.cpp:
(WebCore::RenderSVGRoot::applyContentTransforms):
(WebCore::RenderSVGRoot::calcViewport):
(WebCore::RenderSVGRoot::nodeAtPoint):
* rendering/RenderSVGText.cpp:
(WebCore::RenderSVGText::absoluteRects):
(WebCore::RenderSVGText::relativeBBox):
* rendering/RenderSVGTextPath.cpp:
* rendering/SVGCharacterLayoutInfo.cpp:
(WebCore::calculateBaselineShift):
(WebCore::SVGCharacterLayoutInfo::SVGCharacterLayoutInfo):
(WebCore::SVGCharacterLayoutInfo::processedChunk):
(WebCore::SVGCharacterLayoutInfo::nextPathLayoutPointAndAngle):
(WebCore::SVGCharacterLayoutInfo::addLayoutInformation):
* rendering/SVGCharacterLayoutInfo.h:
* rendering/SVGInlineTextBox.cpp:
(WebCore::SVGInlineTextBox::calculateGlyphBoundaries):
(WebCore::SVGInlineTextBoxClosestCharacterToPositionWalker::chunkPortionCallback):
(WebCore::pathForDecoration):
* rendering/SVGRenderTreeAsText.cpp:
(WebCore::writeStyle):
* rendering/SVGRootInlineBox.cpp:
(WebCore::SVGRootInlineBoxPaintWalker::chunkPortionCallback):
(WebCore::applyTextAnchorToTextChunk):
(WebCore::SVGRootInlineBox::buildLayoutInformation):
(WebCore::SVGRootInlineBox::buildLayoutInformationForTextBox):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26543
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
oliver [Fri, 12 Oct 2007 15:40:54 +0000 (15:40 +0000)]
JavaScriptCore:
Reviewed by Eric Seidel.
Fix for http://bugs.webkit.org/show_bug.cgi?id=15076
"deg2rad has multiple definitions"
Define deg2rad, rad2deg, deg2grad, grad2deg, rad2grad, grad2rad
These are used through WebKit.
Change based on original patch by Rob Buis.
* wtf/MathExtras.h:
(deg2rad):
(rad2deg):
(deg2grad):
(grad2deg):
(rad2grad):
(grad2rad):
WebCore:
Reviewed by Eric Seidel.
Fix for http://bugs.webkit.org/show_bug.cgi?id=15076
"deg2rad has multiple definitions"
Use deg2rad, rad2deg, deg2grad, grad2deg, rad2grad, grad2rad
from wtf where appropriate.
No test cases as this doesn't change behaviour.
Change based on original patch by Rob Buis.
* ksvg2/svg/SVGAngle.cpp:
(WebCore::SVGAngle::calculate):
(WebCore::SVGAngle::convertToSpecifiedUnits):
(WebCore::SVGAngle::todeg):
(WebCore::SVGAngle::torad):
* platform/graphics/AffineTransform.cpp:
(WebCore::AffineTransform::rotateFromVector):
(WebCore::AffineTransform::skewX):
(WebCore::AffineTransform::skewY):
* platform/graphics/cg/AffineTransformCG.cpp:
(WebCore::AffineTransform::rotate):
* platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm:
* platform/graphics/svg/filters/cg/SVGFEHelpersCg.h:
* platform/graphics/svg/filters/cg/SVGFEHelpersCg.mm:
* rendering/RenderPath.cpp:
(WebCore::drawMarkerWithData):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26542
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
oliver [Fri, 12 Oct 2007 15:40:39 +0000 (15:40 +0000)]
Reviewed by Oliver.
Fixes: http://bugs.webkit.org/show_bug.cgi?id=6421 (<text> textLength attribute is not respected)
Fixes: http://bugs.webkit.org/show_bug.cgi?id=6422 (<text> lengthAdjust attribute is not respected)
Implement textLength and full lengthAdjust (both 'spacing' & 'spacingAndGlyphs' mode)
for <text> & <tspan> & friends. <textPath> is still todo, as it's special.
Also fix usage of cummulatedGlyphWidth/Height in SVGInlineTextBox, calculateGlyphBoundaries was
supposed to be used in the distance calculations, to take per character transformations into account (ie. rotation).
Fixes: svg/W3C-SVG-1.1/text-text-01-b.svg (complelty fixed the single W3C textLength testcase)
Partly fixed: svg/batik/text/textOnPathSpaces.svg (kerning support missing)
Partly fixed: svg/batik/text/textLayout.svg (word-letter spacing & textLength is todo)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26541
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
oliver [Fri, 12 Oct 2007 15:40:24 +0000 (15:40 +0000)]
Fix for Bug 15468: Parsing of numbers and lists is too lenient in SVG
Reviewed by Niko.
Correct parsing of numbers, number lists, and length lists in SVG.
* ksvg2/svg/SVGLength.cpp:
(WebCore::SVGLength::setValueAsString):
* ksvg2/svg/SVGLength.h:
* ksvg2/svg/SVGLengthList.cpp:
(WebCore::SVGLengthList::parse):
* ksvg2/svg/SVGParserUtilities.cpp:
(WebCore::parseNumber):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26540
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
oliver [Fri, 12 Oct 2007 15:40:08 +0000 (15:40 +0000)]
2007-10-11 Allan Sandfeld Jensen <sandfeld@kde.org>
Reviewed by Maciej and Eric.
Implement CSS selector combinators nondeterministic matching.
Fixes http://bugs.webkit.org/show_bug.cgi?id=3428
* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::matchRulesForList):
(WebCore::CSSStyleSelector::checkSelector): Split the function and make the second part recursive
(WebCore::CSSStyleSelector::checkOneSelector): Handle pseodo-elements rules and hoveractive quirks
here instead of in checkSelector.
* css/CSSStyleSelector.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26539
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
oliver [Fri, 12 Oct 2007 15:39:51 +0000 (15:39 +0000)]
2007-10-10 Eric Seidel <eric@webkit.org>
Reviewed by Nikolas Zimmermann.
Fix the SVG dom so that rect.x.baseVal = rect.x.baseVal like it should.
http://bugs.webkit.org/show_bug.cgi?id=14150
Test: svg/dom/animated-tearoff-equlity.xhtml
* ksvg2/svg/SVGAnimatedTemplate.h:
(WebCore::SVGAnimatedTypeWrapperKey::SVGAnimatedTypeWrapperKey):
(WebCore::SVGAnimatedTypeWrapperKey::operator==):
(WebCore::SVGAnimatedTypeWrapperKeyHash::hash):
(WebCore::SVGAnimatedTypeWrapperKeyHash::equal):
(WebCore::SVGAnimatedTypeWrapperKeyHashTraits::deletedValue):
(WebCore::SVGAnimatedTypeWrapperKeyHashTraits::emptyValue):
(WebCore::SVGAnimatedTemplate::~SVGAnimatedTemplate):
(WebCore::SVGAnimatedTemplate::wrapperCache):
(WebCore::SVGAnimatedTemplate::forgetWrapper):
(WebCore::lookupOrCreateWrapper):
* ksvg2/svg/SVGElement.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26538
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
oliver [Fri, 12 Oct 2007 15:39:33 +0000 (15:39 +0000)]
Correcting expected output of svg/batik/text/textOnPathSpaces
RS = Eric.
* svg/batik/text/textOnPathSpaces-expected.txt
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26537
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
oliver [Fri, 12 Oct 2007 15:39:15 +0000 (15:39 +0000)]
Leopard build fix -- SVGDocument should not trty to make read/write properties read-only
Reviewed by Maciej.
Remove those API definitions SVGDocument now inherits from Document
* ksvg2/svg/SVGDocument.idl:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26536
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
oliver [Fri, 12 Oct 2007 15:38:55 +0000 (15:38 +0000)]
Reviewed by Eric.
- fix assertion failures on quit.
* kjs/array_object.cpp:
(ArrayProtoFunc::callAsFunction): Dynamically alocate function-scope static
UStrings to avoid the static destructor getting called later.
* kjs/lookup.h: Dynamically alocate function-scope static
Identifiers to avoid the static destructor getting called later.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26535
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
oliver [Fri, 12 Oct 2007 15:38:34 +0000 (15:38 +0000)]
2007-10-10 Eric Seidel <eric@webkit.org>
Reviewed by Oliver.
Make renderers pull localTransform instead of depending on DOM elements to push
This allows for cleaner invalidation code, and makes writing animation easier.
Also fixed a tiny bug in SVGRenderImage focus ring calculations while there
Updated test results for svg/custom/focus-ring.svg
* WebCore.xcodeproj/project.pbxproj:
* ksvg2/svg/SVGAElement.cpp:
(WebCore::SVGAElement::createRenderer):
* ksvg2/svg/SVGAnimateMotionElement.cpp:
(WebCore::SVGAnimateMotionElement::applyAnimatedValueToElement):
* ksvg2/svg/SVGAnimateTransformElement.cpp:
(WebCore::SVGAnimateTransformElement::applyAnimatedValueToElement):
* ksvg2/svg/SVGClipPathElement.cpp:
(WebCore::SVGClipPathElement::canvasResource):
* ksvg2/svg/SVGElement.h:
* ksvg2/svg/SVGGElement.cpp:
(WebCore::SVGGElement::createRenderer):
* ksvg2/svg/SVGImageElement.cpp:
* ksvg2/svg/SVGLocatable.cpp:
(WebCore::SVGLocatable::getCTM):
(WebCore::SVGLocatable::getScreenCTM):
* ksvg2/svg/SVGMarkerElement.cpp:
(WebCore::SVGMarkerElement::canvasResource):
(WebCore::SVGMarkerElement::notifyAttributeChange):
* ksvg2/svg/SVGSVGElement.h:
* ksvg2/svg/SVGStyledElement.cpp:
(WebCore::SVGStyledElement::rendererIsNeeded):
(WebCore::SVGStyledElement::notifyResourceParentIfExistant):
* ksvg2/svg/SVGStyledElement.h:
(WebCore::SVGStyledElement::style):
* ksvg2/svg/SVGStyledTransformableElement.cpp:
(WebCore::SVGStyledTransformableElement::animatedLocalTransform):
(WebCore::SVGStyledTransformableElement::parseMappedAttribute):
(WebCore::SVGStyledTransformableElement::notifyAttributeChange):
(WebCore::SVGStyledTransformableElement::createRenderer):
* ksvg2/svg/SVGStyledTransformableElement.h:
(WebCore::SVGStyledTransformableElement::toPathData):
* ksvg2/svg/SVGSwitchElement.cpp:
(WebCore::SVGSwitchElement::createRenderer):
* ksvg2/svg/SVGTRefElement.cpp:
(WebCore::SVGTRefElement::updateReferencedText):
* ksvg2/svg/SVGTextElement.cpp:
(WebCore::SVGTextElement::parseMappedAttribute):
(WebCore::SVGTextElement::animatedLocalTransform):
* ksvg2/svg/SVGTextElement.h:
* ksvg2/svg/SVGTextPathElement.cpp:
* ksvg2/svg/SVGTextPathElement.h:
* ksvg2/svg/SVGTransformable.cpp:
(WebCore::SVGTransformable::getCTM):
(WebCore::SVGTransformable::getScreenCTM):
* ksvg2/svg/SVGTransformable.h:
* ksvg2/svg/SVGUseElement.cpp:
(WebCore::SVGUseElement::createRenderer):
(WebCore::SVGUseElement::attachShadowTree):
* platform/graphics/AffineTransform.h:
(WebCore::AffineTransform::operator!=):
* platform/graphics/svg/SVGResourceMarker.cpp:
(WebCore::SVGResourceMarker::setMarker):
* platform/graphics/svg/SVGResourceMarker.h:
* rendering/RenderForeignObject.cpp:
(WebCore::RenderForeignObject::calculateLocalTransform):
(WebCore::RenderForeignObject::layout):
* rendering/RenderForeignObject.h:
(WebCore::RenderForeignObject::localTransform):
* rendering/RenderObject.cpp:
* rendering/RenderObject.h:
* rendering/RenderPath.cpp:
(WebCore::RenderPath::RenderPath):
(WebCore::RenderPath::localTransform):
(WebCore::RenderPath::calculateLocalTransform):
(WebCore::RenderPath::layout):
* rendering/RenderPath.h:
* rendering/RenderSVGContainer.cpp:
(WebCore::RenderSVGContainer::localTransform):
(WebCore::RenderSVGContainer::calculateLocalTransform):
(WebCore::RenderSVGContainer::layout):
* rendering/RenderSVGContainer.h:
* rendering/RenderSVGImage.h:
(WebCore::RenderSVGImage::localTransform):
* rendering/RenderSVGText.cpp:
(WebCore::RenderSVGText::calculateLocalTransform):
(WebCore::RenderSVGText::layout):
* rendering/RenderSVGText.h:
(WebCore::RenderSVGText::isSVGText):
(WebCore::RenderSVGText::localTransform):
* rendering/RenderSVGTextPath.cpp:
(WebCore::RenderSVGTextPath::layoutPath):
(WebCore::RenderSVGTextPath::startOffset):
(WebCore::RenderSVGTextPath::exactAlignment):
(WebCore::RenderSVGTextPath::stretchMethod):
* rendering/RenderSVGTextPath.h:
* rendering/RenderSVGTransformableContainer.cpp: Added.
(WebCore::RenderSVGTransformableContainer::RenderSVGTransformableContainer):
(WebCore::RenderSVGTransformableContainer::calculateLocalTransform):
* rendering/RenderSVGTransformableContainer.h: Added.
* rendering/RenderSVGViewportContainer.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26534
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
oliver [Fri, 12 Oct 2007 15:38:12 +0000 (15:38 +0000)]
Bug 15451: SVGStyledElement must unregister itself from Resources on detach
Reviewed by Eric.
Use a global hashtable to maintain the relationship between the
various SVG resources and their clients, across dom updates, etc.
* ChangeLog:
* ksvg2/svg/SVGStyledElement.cpp:
(WebCore::SVGStyledElement::detach):
* ksvg2/svg/SVGStyledElement.h:
* platform/graphics/svg/SVGPaintServer.h:
* platform/graphics/svg/SVGResource.cpp:
(WebCore::ResourceSet::ResourceSet):
(WebCore::clientMap):
(WebCore::SVGResource::~SVGResource):
(WebCore::SVGResource::invalidate):
(WebCore::SVGResource::removeClient):
(WebCore::SVGResource::addClient):
* platform/graphics/svg/SVGResource.h:
(WebCore::):
(WebCore::SVGResource::isPaintServer):
(WebCore::SVGResource::isFilter):
(WebCore::SVGResource::isClipper):
(WebCore::SVGResource::isMarker):
(WebCore::SVGResource::isMasker):
* platform/graphics/svg/SVGResourceClipper.h:
(WebCore::SVGResourceClipper::resourceType):
* platform/graphics/svg/SVGResourceFilter.h:
* platform/graphics/svg/SVGResourceMarker.h:
* platform/graphics/svg/SVGResourceMasker.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26533
268f45cc-cd09-0410-ab3c-
d52691b4dbfc