2008-07-25 Simon Hausmann <hausmann@webkit.org>
[WebKit-https.git] / WebCore / ChangeLog
1 2008-07-25  Simon Hausmann  <hausmann@webkit.org>
2
3         Discussed with and rubber-stamped by Lars.
4
5         Fix the build system for the Qt port.
6
7         Recent JavaScriptCore changes require the addition of JavaScriptCore/API to the
8         include search path. With a build process that combines JavaScriptCore and
9         WebCore in one build process/Makefile the existance of
10         JavaScriptCore/API/Node.h and WebCore/dom/Node.h causes include conflicts.
11
12         This commit solves this by introducing a separate build of JavaScriptCore into
13         a static library.
14
15         As a result of the split-up a race-condition due to broken dependencies of
16         regular source files to header files of generated sources showed up very
17         frequently when doing parallel builds (which the buildbot does). This commit at
18         the same time tries to address the dependency problem by making the
19         addExtraCompiler() function also generate a pseudo extra compiler that
20         represents the header file output, so that qmake is aware of the creation of
21         the header file for dependency calculation.
22
23         At the same time I removed a lot of cruft from the pro files to ease maintenance.
24
25         * WebCore.pro:
26
27 2008-07-24  kevino  <kevino@theolliviers.com>
28
29         wx build fix on Win for plugins coode.
30
31         * plugins/PluginDatabase.cpp:
32         * plugins/PluginView.cpp:
33         (WebCore::PluginView::PluginView):
34         * plugins/PluginView.h:
35
36 2008-07-24  Sam Weinig  <sam@webkit.org>
37
38         Reviewed by Anders Carlsson.
39
40         Make isElementNode() non-virtual for a speedup on many benchmarks
41         including 20% on http://ejohn.org/apps/fragment/.
42
43         - Replace Node::m_attrWasSpecifiedOrElementHasRareData with bits in 
44           Element and Attr where space was available.  Use the new free bit
45           to represent if an node is an element or not.
46
47         * dom/Attr.cpp:
48         (WebCore::Attr::Attr):
49         * dom/Attr.h:
50         (WebCore::Attr::specified):
51         (WebCore::Attr::setSpecified):
52         * dom/ContainerNode.cpp:
53         (WebCore::ContainerNode::ContainerNode):
54         * dom/ContainerNode.h:
55         * dom/Element.cpp:
56         (WebCore::Element::Element):
57         * dom/Element.h:
58         (WebCore::Element::hasRareData):
59         (WebCore::Element::setHasRareData):
60         * dom/EventTargetNode.cpp:
61         (WebCore::EventTargetNode::EventTargetNode):
62         * dom/EventTargetNode.h:
63         * dom/Node.cpp:
64         (WebCore::Node::Node):
65         * dom/Node.h:
66         (WebCore::Node::isElementNode):
67
68 2008-07-24  Dan Bernstein  <mitz@apple.com>
69
70         Reviewed by Dave Hyatt.
71
72         - fix <rdar://problem/6082111> REGRESSION (r31876): Root element with percent height does not resize when resizing the window vertically
73
74         Not testable in DumpRenderTree
75
76         * rendering/RenderView.cpp:
77         (WebCore::RenderView::layout): Ensured that all children with percentage
78         heights get laid out again if the height changes.
79
80 2008-07-24  kevino  <kevino@theolliviers.com>
81
82         Windows build fix for wx. wx doesn't implement pan scrolling yet. 
83
84         * page/EventHandler.cpp:
85         (WebCore::EventHandler::handleAutoscroll):
86         (WebCore::EventHandler::autoscrollTimerFired):
87         (WebCore::EventHandler::stopAutoscrollTimer):
88         (WebCore::EventHandler::handleMousePressEvent):
89
90 2008-07-24  David Hyatt  <hyatt@apple.com>
91
92         Fix for bug 18673, crash when using full page zoom on generated content.  Don't call
93         intrinsicSizeChanged when we are first setting our style.
94
95         Reviewed by olliej
96
97         * ChangeLog:
98         * rendering/RenderReplaced.cpp:
99         (WebCore::RenderReplaced::setStyle):
100
101 2008-07-24  Julien Chaffraix  <jchaffraix@webkit.org>
102
103         Reviewed by Eric.
104
105         Bug 20053: .in files should use a custom format instead of XML
106
107         - Remove our XML parser perl module (XML::Tiny)
108
109         - Add a custom perl parser
110
111         - Move XML files to the new format
112
113         * bindings/scripts/InFilesParser.pm: Added.
114         * bindings/scripts/XMLTiny.pm: Removed.
115         * dom/make_names.pl: Switched to our new
116         parser.
117
118         * html/HTMLAttributeNames.in: Switched to
119         our custom format.
120         * html/HTMLTagNames.in: Ditto.
121         * svg/svgattrs.in: Ditto.
122         * svg/svgtags.in: Ditto.
123         * svg/xlinkattrs.in: Ditto.
124         * xml/xmlattrs.in: Ditto.
125
126 2008-07-23  Julien Chaffraix  <jchaffraix@webkit.org>
127
128         Reviewed by Eric.
129
130         Bug 19588: CRASH doing open() on destroyed window
131         https://bugs.webkit.org/show_bug.cgi?id=19588
132
133         Add frame's page null check as it could have been
134         detached from the page.
135
136         Test: fast/frames/crash-removed-iframe.html
137
138         * bindings/js/JSDOMWindowBase.cpp:
139         (WebCore::windowProtoFuncOpen):
140         * page/FrameTree.cpp:
141         (WebCore::FrameTree::find):
142
143 2008-07-23  Dan Bernstein  <mitz@apple.com>
144
145         Reviewed by Alexey Proskuryakov.
146
147         - fix a leak when using hex color values in CSS variables
148
149         - fix CSSOM access to hex color values in variables declarations
150
151         Test: fast/css/variables/color-hex-test.html
152
153         Added a new unit/type, CSS_PARSER_HEXCOLOR, which serves as the unit for
154         CSSParserValues coming from colors in hex notation. CSSParserValues can
155         no longer have CSS_RGBCOLOR as their unit. CSS_PARSER_HEXCOLOR is also
156         used as the type for CSSValues in CSS variables declarations where the
157         parser value was a hex color. However the type of all other color
158         CSSValues remains CSS_RGBCOLOR.
159
160         * css/CSSGrammar.y: Changed to use the new CSS_PARSER_HEXCOLOR value
161         for color values in hex notation.
162         * css/CSSParser.cpp:
163         (WebCore::CSSParser::parseColorFromValue): Updated for the new unit.
164         * css/CSSParserValues.cpp:
165         (WebCore::CSSParserValue::createCSSValue): Ditto.
166         * css/CSSPrimitiveValue.cpp:
167         (WebCore::CSSPrimitiveValue::cleanup): Fixed the leak by deref()ing the
168         string containing the color.
169         (WebCore::CSSPrimitiveValue::cssText): Added support for
170         CSS_PARSER_HEXCOLOR for when serializing variable values.
171         (WebCore::CSSPrimitiveValue::parserValue): Updated for the new unit.
172         * css/CSSPrimitiveValue.h:
173         (WebCore::CSSPrimitiveValue::): Added a new unti, CSS_PARSER_HEXCOLOR.
174
175 2008-07-23  Beth Dakin  <bdakin@apple.com>
176
177         Reviewed by Dan Bernstein.
178
179         Fix for <rdar://problem/5997215> display: table-row-group 
180         for :before content causes a crash
181  
182         The actual bug fix here is to ddd the generated content container 
183         as a child before adding any of the generated content to the 
184         container. There are two correctness fixes as well that deal with 
185         style changes and correctly.
186
187         This patch also makes Node::diff() a static function.
188
189         * dom/Node.cpp:
190         (WebCore::Node::diff):
191         * dom/Node.h:
192         (WebCore::Node::):
193         (WebCore::Node::recalcStyle):
194         * rendering/RenderContainer.cpp:
195         (WebCore::findBeforeAfterParent):
196         (WebCore::RenderContainer::updateBeforeAfterContentForContainer):
197         * svg/SVGUseElement.cpp:
198         (WebCore::SVGUseElement::recalcStyle):
199
200 2008-07-23  Timothy Hatcher  <timothy@apple.com>
201
202         Updates the elements DOM tree when nodes are added or removed from
203         the inspected document.
204
205         https://bugs.webkit.org/show_bug.cgi?id=6590
206         <rdar://problem/5712921>
207
208         Reviewed by Adam Roben.
209
210         * loader/FrameLoader.cpp:
211         (WebCore::FrameLoader::dispatchWindowObjectAvailable): Added a call to
212         InspectorController::inspectedWindowScriptObjectCleared.
213         * page/InspectorController.cpp:
214         (WebCore::InspectorController::inspectedWindowScriptObjectCleared):
215         Calls the WebInspector.inspectedWindowCleared script function.
216         * page/InspectorController.h:
217         * page/inspector/ElementsPanel.js:
218         (WebInspector.ElementsPanel): Create the event listener callback wrappers.
219         (WebInspector.ElementsPanel.prototype.show): Call _updateModifiedNodes if
220         there are any recently modified nodes.
221         (WebInspector.ElementsPanel.prototype.reset): Remove previous mutation event listeners.
222         Adds a check for InspectorController.isWindowVisible to prevent adding
223         event listeners when the window isn't visible.
224         (WebInspector.ElementsPanel.prototype.inspectedWindowCleared): 
225         (WebInspector.ElementsPanel.prototype._addMutationEventListeners): Add DOMNodeInserted,
226         DOMNodeRemoved and DOMContentLoaded event listeners to the passed in window or window's document.
227         (WebInspector.ElementsPanel.prototype._removeMutationEventListeners): Removes the event listeners
228         added in _addMutationEventListeners.
229         (WebInspector.ElementsPanel.prototype.updateMutationEventListeners): Call _addMutationEventListeners
230         again to reinstate the listners if the document changed or window cleared them.
231         (WebInspector.ElementsPanel.prototype.registerMutationEventListeners): Append the window to
232         _mutationMonitoredWindows and call _addMutationEventListeners.
233         (WebInspector.ElementsPanel.prototype.unregisterMutationEventListeners): Remove the window from
234         _mutationMonitoredWindows and call _removeMutationEventListeners.
235         (WebInspector.ElementsPanel.prototype.unregisterAllMutationEventListeners): Call
236         _removeMutationEventListeners for all windows in _mutationMonitoredWindows and
237         clear _mutationMonitoredWindows.
238         (WebInspector.ElementsPanel.prototype._contentLoaded): Append the node and parent
239         to the recentlyModifiedNodes array. Call _updateModifiedNodesSoon if visible.
240         (WebInspector.ElementsPanel.prototype._nodeInserted): Ditto.
241         (WebInspector.ElementsPanel.prototype._nodeRemoved): Ditto.
242         (WebInspector.ElementsPanel.prototype._updateModifiedNodesSoon): Call
243         _updateModifiedNodes on a zero timeout.
244         (WebInspector.ElementsPanel.prototype._updateModifiedNodes): Iterate over
245         the recentlyModifiedNodes array and call updateChildren on all the parent
246         elements that had changes. Only calls updateChildren once per parent element.
247         (WebInspector.ElementsPanel.prototype._isAncestorIncludingParentFrames): Return
248         false if the nodes are the same. Return true if the nodes are the same while
249         looking at ancestor frame elements. THis use to return false, which was incorrect.
250         (WebInspector.DOMNodeTreeElement.prototype.onpopulate): Call updateChildren.
251         (WebInspector.DOMNodeTreeElement.prototype.updateChildren): Copied from
252         onpopulate and changed to rebuild the children elements by adding new children,
253         moving existing children and removed old children.
254         (WebInspector.DOMNodeTreeElement.prototype.onexpand): If the node has a contentDocument
255         call registerMutationEventListeners to track any mutations.
256         * page/inspector/inspector.js:
257         (WebInspector.inspectedWindowCleared): Call ElementsPanel.inspectedWindowCleared.
258         * page/inspector/treeoutline.js:
259         (TreeElement.prototype.get hasChildren): Return _hasChildren.
260         (TreeElement.prototype.set hasChildren): Set _hasChildren and update the className.
261         (TreeElement.prototype.hasAncestor): Return true if the element has the passed in ancestor.
262         (TreeElement.prototype.expand): Fix an exception that can happen if expand is
263         called before _attach.
264         * WebCore/manual-tests/inspector/dom-mutation.html: Added.
265         * WebCore/manual-tests/inspector/resources/mutate-frame-2.html: Added.
266         * WebCore/manual-tests/inspector/resources/mutate-frame.html: Added.
267
268 2008-07-22  Timothy Hatcher  <timothy@apple.com>
269
270         Fix an exception that occurred when double clicking the closing tag
271         of an element in the DOM tree.
272
273         Reviewed by Anders Carlsson.
274
275         * page/inspector/ElementsPanel.js:
276         (WebInspector.ElementsPanel.prototype._ondblclick): Null check
277         element.ondblclick.
278
279 2008-07-22  Timothy Hatcher  <timothy@apple.com>
280
281         Fix a regression where elements in subframes would not be revealed
282         or selected when inspected from the context menu. This was caused by
283         JavaScript equality is not being true for JSInspectedObjectWrappers
284         of the same node wrapped with different global ExecStates. This change
285         adds a helper function that uses isSameNode to compare wrapped nodes.
286
287         https://bugs.webkit.org/show_bug.cgi?id=19377
288
289         Reviewed by Adam Roben.
290
291         * page/inspector/ElementsPanel.js:
292         (WebInspector.ElementsPanel.prototype.set rootDOMNode): Use objectsAreSame
293         to compare nodes.
294         (WebInspector.ElementsPanel.prototype.set focusedDOMNode): Ditto.
295         (WebInspector.ElementsPanel.prototype.set hoveredDOMNode): Ditto. 
296         (WebInspector.ElementsPanel.prototype._updateModifiedNodes): Ditto.
297         (WebInspector.ElementsPanel.prototype.revealNode): Ditto.
298         (WebInspector.ElementsPanel.prototype.updateBreadcrumb): Ditto.
299         (WebInspector.DOMNodeTreeElement.prototype.updateChildren): Ditto.
300         * page/inspector/treeoutline.js:
301         (TreeOutline.prototype.findTreeElement): Add an equal argument
302         to accept a functions to compare two representedObjects. Defaults
303         to strict equal if not supplied. All current clients pass objectsAreSame.
304         * page/inspector/utilities.js:
305         (Node.prototype.enclosingNodeOrSelfWithNodeNameInArray): Use objectsAreSame
306         to compare nodes.
307         (Node.prototype.enclosingNodeOrSelfWithClass): Ditto.
308         (Element.prototype.query): Use the ownerDocument of the node, not document.
309         (objectsAreSame): Added. Compares strict equal first, then uses isSameNode if
310         it exists on both objects.
311         (isAncestorNode): Use objectsAreSame to compare nodes.
312         (firstCommonNodeAncestor): Ditto.
313         (traverseNextNode): Ditto.
314
315 2008-07-21  Timothy Hatcher  <timothy@apple.com>
316
317         Added InspectorController.isWindowVisible to the JavaScript class
318         for use in an upcoming change. This will allow the Inspector to not
319         perform selective actions while the window is hidden.
320
321         Reviewed by Adam Roben.
322
323         * page/InspectorController.cpp:
324         (WebCore::isWindowVisible): Call InspectorController::windowVisible.
325         (WebCore::InspectorController::windowScriptObjectAvailable): Add
326         the isWindowVisible function to the JavaScript class.
327
328 2008-07-21  Timothy Hatcher  <timothy@apple.com>
329
330         Added TreeOutline.removeChildAtIndex and TreeElement.removeChildAtIndex
331         for efficiency of callers that know the index of the child. This
332         will be used in an upcoming change.
333
334         Reviewed by Adam Roben.
335
336         * page/inspector/treeoutline.js:
337         (TreeOutline._removeChildAtIndex): Renamed from _removeChild
338         and modified to take an index.
339         (TreeOutline._removeChild): Call _removeChildAtIndex with the
340         child index found using indexOf.
341         (TreeOutline.prototype.removeChildAtIndex): Added. Calls
342         TreeOutline._removeChildAtIndex.
343         (TreeElement.prototype.removeChildAtIndex): Ditto.
344
345 2008-07-21  Timothy Hatcher  <timothy@apple.com>
346
347         Fixes a regression where TreeOutline.findTreeElement would
348         return the parent TreeElement of the representedObject instead
349         of the TreeElement for the representedObject. Regressed with the
350         fix for bug 19164.
351
352         Reviewed by Adam Roben.
353
354         * page/inspector/treeoutline.js:
355         (TreeOutline.prototype.findTreeElement): When performing a slow search,
356         do a final search for representedObject instead of returning item, which
357         is the parent of representedObject.
358
359 2008-07-23  Adele Peterson  <adele@apple.com>
360
361         Reviewed by Adam.
362
363         WebCore part of fix for <rdar://problem/5698672>  Add drawing callback for a WebKit app to draw its own scrollbars
364
365         * WebCore.base.exp: Added symbols.
366         * page/Chrome.cpp:
367         (WebCore::ChromeClient::paintCustomScrollbar): Added. Calls up to WebKit, which will call a new delegate method.
368         (WebCore::ChromeClient::paintCustomScrollCorner): ditto.
369         * page/ChromeClient.h:
370         * page/Settings.cpp:
371         (WebCore::Settings::Settings): Added the ability to store whether or not the application has decided to draw its own scrollbars.
372         (WebCore::Settings::setShouldPaintCustomScrollbars):
373         * page/Settings.h: (WebCore::Settings::shouldPaintCustomScrollbars):
374         * platform/ScrollBar.h: Moved ScrollbarControlSize enum to ScrollTypes.h
375         * platform/ScrollTypes.h: (WebCore::): Moved some existing types, and added new ones to be used in WebCore in WebKit.
376         * platform/win/PlatformScrollBar.h: Moved ScrollbarPart enum to ScrollTypes.h
377         * platform/win/PlatformScrollBarSafari.cpp:
378         (WebCore::ScrollbarPartToScrollBarPiece): Added helper function.
379         (WebCore::ScrollBarPieceMaskToScrollbarControlPartMask): ditto.
380         (WebCore::ScrollbarControlStateFromThemeState): ditto.
381         (WebCore::PlatformScrollbar::paint): Consolidated painting so the logic for the individual pieces is all in one place.
382          Added new code to paint the custom scrollbars if necessary.
383         * platform/win/ScrollViewWin.cpp: (WebCore::ScrollView::paint): Added code to paint the custom scroll corner if necessary.
384
385 2008-07-23  Sam Weinig  <sam@webkit.org>
386
387         Reviewed by Anders Carlsson.
388
389         Cleanup and pack the member variables in Node.
390
391         * bindings/js/JSNodeCustom.cpp:
392         (WebCore::JSNode::mark):
393         * dom/Attr.cpp:
394         (WebCore::Attr::Attr):
395         * dom/Attr.h:
396         (WebCore::Attr::specified):
397         (WebCore::Attr::setSpecified):
398         * dom/ContainerNode.cpp:
399         (WebCore::ContainerNode::setFocus):
400         * dom/Document.cpp:
401         (WebCore::Document::adoptNode):
402         * dom/Element.cpp:
403         (WebCore::Element::~Element):
404         (WebCore::Element::rareData):
405         (WebCore::Element::createRareData):
406         * dom/Element.h:
407         (WebCore::Element::hasRareData):
408         (WebCore::Element::setHasRareData):
409         * dom/Node.h:
410         (WebCore::Node::setIsLink):
411         (WebCore::Node::inSubtreeMark):
412         (WebCore::Node::setInSubtreeMark):
413         (WebCore::Node::attrWasSpecifiedOrElementHasRareData):
414         (WebCore::Node::setAttrWasSpecifiedOrElementHasRareData):
415         * html/HTMLAnchorElement.cpp:
416         (WebCore::HTMLAnchorElement::supportsFocus):
417         (WebCore::HTMLAnchorElement::isFocusable):
418         (WebCore::HTMLAnchorElement::defaultEventHandler):
419         (WebCore::HTMLAnchorElement::parseMappedAttribute):
420         (WebCore::HTMLAnchorElement::isLiveLink):
421         * html/HTMLImageElement.cpp:
422         (WebCore::HTMLImageElement::parseMappedAttribute):
423         * html/HTMLInputElement.cpp:
424         (WebCore::HTMLInputElement::setInputType):
425         * html/HTMLTableElement.cpp:
426         (WebCore::HTMLTableElement::attach):
427         * svg/SVGAElement.cpp:
428         (WebCore::SVGAElement::svgAttributeChanged):
429         (WebCore::SVGAElement::defaultEventHandler):
430
431 2008-07-23  Kevin Calhoun  <kcalhoun@apple.com>
432
433         Reviewed by Adele.
434
435         Follow-up fix for <rdar://problem/6031039> don't disable track-types when media is in a standalone document
436
437         Associate MovieControllers with Movies to support all of the media types QuickTime is able to play in standalone media documents.
438
439         * platform/graphics/win/QTMovieWin.cpp:
440         (QTMovieWinPrivate::QTMovieWinPrivate):
441         (QTMovieWinPrivate::~QTMovieWinPrivate):
442         (QTMovieWinPrivate::task):
443         (QTMovieWinPrivate::createMovieController):
444         (QTMovieWinPrivate::createGWorld):
445         (QTMovieWinPrivate::setSize):
446         (QTMovieWinPrivate::deleteGWorld):
447         (QTMovieWin::play):
448         (QTMovieWin::pause):
449         (QTMovieWin::setRate):
450         (QTMovieWin::setCurrentTime):
451         (QTMovieWin::load):
452
453 2008-07-23  Kevin Calhoun  <kcalhoun@apple.com>
454
455         Reviewed by Adele.
456
457         Added a debug mode for viewing frames per second for videos.  This is controlled by two 
458         independent compiler flags DRAW_FRAME_RATE in MediaPlayerPrivateQTKit.h and MediaPlayerPrivateQuickTimeWin.h.
459         Unless either flags is turned on there is no change to the code for video frame drawing.
460
461         * platform/graphics/mac/MediaPlayerPrivateQTKit.h:
462         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
463         (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
464         (WebCore::MediaPlayerPrivate::play):
465         (WebCore::MediaPlayerPrivate::pause):
466         (WebCore::MediaPlayerPrivate::didEnd):
467         (WebCore::MediaPlayerPrivate::repaint):
468         (WebCore::MediaPlayerPrivate::paint):
469         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
470         (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
471         (WebCore::MediaPlayerPrivate::play):
472         (WebCore::MediaPlayerPrivate::pause):
473         (WebCore::MediaPlayerPrivate::didEnd):
474         (WebCore::MediaPlayerPrivate::paint):
475         (WebCore::MediaPlayerPrivate::movieNewImageAvailable):
476         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h:
477
478 2008-07-23  Adele Peterson  <adele@apple.com>
479
480         Reviewed by Sam.
481
482         Fix for <rdar://problem/6080634> use lower quality CG interpolation in MediaPlayerPrivateQTKit to improve performance
483
484         * platform/graphics/GraphicsContext.cpp: (WebCore::GraphicsContext::drawImage):
485         Call setImageInterpolationQuality(InterpolationNone) instead of setUseLowQualityImageInterpolation(true).
486         * platform/graphics/GraphicsContext.h:
487         (WebCore::): Added InterpolationQuality enum.
488         (WebCore::GraphicsContext::setImageInterpolationQuality): Renamed from setUseLowQualityImageInterpolation.
489         The implementation was always setting the quality to "none", and now we want to distinguish between "none" and "low".
490         (WebCore::GraphicsContext::imageInterpolationQuality): Renamed from useLowQualityImageInterpolation.
491         * platform/graphics/cg/GraphicsContextCG.cpp:
492         (WebCore::GraphicsContext::setImageInterpolationQuality): Added.
493         (WebCore::GraphicsContext::imageInterpolationQuality): Added.
494         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm: (WebCore::MediaPlayerPrivate::paint):
495         Calls setImageInterpolationQuality(InterpolationLow) which will improve the painting performance without degrading quality too much.
496
497 2008-07-23  Sam Weinig  <sam@webkit.org>
498
499         Reviewed by Anders Carlsson.
500
501         Remove extraneous allocations by using equalIgnoringCase rather than
502         String::lower.
503
504         * dom/StyledElement.cpp:
505         (WebCore::StyledElement::addCSSColor):
506         * html/HTMLCollection.cpp:
507         (WebCore::HTMLCollection::checkForNameMatch):
508         * html/HTMLFormCollection.cpp:
509         (WebCore::HTMLFormCollection::getNamedFormItem):
510         * html/HTMLLinkElement.cpp:
511         (WebCore::HTMLLinkElement::tokenizeRelAttribute):
512         * html/HTMLObjectElement.cpp:
513         (WebCore::HTMLObjectElement::containsJavaApplet):
514         * html/PreloadScanner.cpp:
515         (WebCore::PreloadScanner::emitCSSRule):
516         * loader/FrameLoader.cpp:
517         (WebCore::FrameLoader::createJavaAppletWidget):
518         * page/DOMSelection.cpp:
519         (WebCore::DOMSelection::modify):
520         * rendering/RenderPartObject.cpp:
521         (WebCore::RenderPartObject::updateWidget):
522
523 2008-07-23  Maxime Britto  <britto@apple.com>
524
525         Reviewed by Adam Roben.
526
527         <rdar://6092952> "REGRESSION: Crash beneath EventHandler::stopAutoscrollTimer() when closing Gmail"
528         Add a check for the m_page member value before asking for page()->mainFrame()
529
530         * page/EventHandler.cpp:
531         (WebCore::EventHandler::stopAutoscrollTimer):
532
533 2008-07-23  Kevin Calhoun  <kcalhoun@apple.com>
534
535        Reviewed by Adele.
536
537        Fix for <rdar://problem/5710065> QT movies should be inactive when opened
538
539        Implemented deferral of set-up of video rendering on Mac until the ready state is Loaded and 
540        until after movie tracks of unsupported types have been disabled, to make sure they never draw.
541
542         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
543         (WebCore::MediaPlayerPrivate::load):
544         (WebCore::MediaPlayerPrivate::updateStates):
545         (WebCore::MediaPlayerPrivate::setVisible):
546
547 2008-07-22  Maxime Britto  <britto@apple.com>
548
549         Reviewed by John Sullivan.
550
551         <rdar://problem/6083116>
552         When pan-scrolling, Back then Forward causes pan-scrolling to start again
553
554         * page/Frame.cpp:
555         (WebCore::Frame::clearTimers): Ask to stop the autoscroll timer when we clear the timers from the frame
556         * loader/FrameLoader.cpp:
557         (WebCore::FrameLoader::scrollToAnchor): When the link is an anchor we Frame::clearTimers() isn't called since we're only scrolling the page so we need to ask to stop the autoscroll timer here too.
558
559 2008-07-22  Geoffrey Garen  <ggaren@apple.com>
560
561         Reviewed by Oliver Hunt and Sam Weinig.
562
563         Next step toward putting doubles in registers: Prepare the Register class
564         and its clients for registers that don't contain JSValue*s.
565         
566 2008-07-22  Sam Weinig  <sam@webkit.org>
567
568         Reviewed by Mark Rowe.
569
570         <rdar://problem/5788451> toDataURL not implemented for Windows (need mapping of MIME type to UTI)
571         Add additional support for JPEG and GIF for toDataURL encoding canvases.
572
573         * platform/MIMETypeRegistry.cpp:
574         (WebCore::initializeSupportedImageMIMETypesForEncoding):
575         * platform/graphics/cg/ImageBufferCG.cpp:
576         (WebCore::utiFromMIMEType):
577
578 2008-07-22  Chris Fleizach  <cfleizach@apple.com>
579
580         Reviewed by Dave Hyatt.
581
582         <rdar://problem/6004877> internal anchors on this page are not showing up in the AXLinkedUIElements
583         Test: accessibility/internal-link-anchors2.html
584
585         * page/AccessibilityRenderObject.cpp:
586         (WebCore::AccessibilityRenderObject::internalLinkElement):
587
588 2008-07-22  Anders Carlsson  <andersca@apple.com>
589
590         Reviewed by Adam.
591
592         Allocate the empty StringImpl from the heap.
593         
594         * platform/text/StringImpl.cpp:
595         (WebCore::StringImpl::empty):
596
597 2008-07-21  Kevin McCullough  <kmccullough@apple.com>
598
599         Reviewed by Tim.
600
601         <rdar://problem/5951532> JSProfiler: Implement heavy (or bottom-up)
602         view (19228)
603         - Implement UI for Heavy (Bottom Up) view.
604
605         * English.lproj/localizedStrings.js:
606         * page/JavaScriptProfile.cpp: Expose the ability to get a heavy/tree
607         profile from a profile to the Web Inspector's JavaScript.
608         (WebCore::getHeavyProfileCallback):
609         (WebCore::getTreeProfileCallback):
610         (WebCore::ProfileClass):
611         * page/inspector/ProfileView.js: Implement the dropdown for changing
612         profile views.
613         * page/inspector/inspector.css:
614
615 2008-07-22  Alexey Proskuryakov  <ap@webkit.org>
616
617         Reviewed by Adam Roben.
618
619         <rdar://problem/5955602> WebKit should support charset name x-windows-949
620
621         Test: fast/encoding/char-decoding.html
622
623         * platform/text/TextCodecICU.cpp:
624         (WebCore::TextCodecICU::registerExtendedEncodingNames): Added support for this name for
625         Firefox compatibility.
626
627 2008-07-22  Gavin Barraclough  <barraclough@apple.com>
628
629         Reviewed by Alexey Proskuryakov.
630
631         New test to check that arrays fail gracefully (throw an out of memory exception)
632         when the vector grows to large.
633
634         * manual-tests/array-out-of-memory.html: Added.
635
636 2008-07-21  Alexey Proskuryakov  <ap@webkit.org>
637
638         Reviewed by Dan Bernstein.
639
640         https://bugs.webkit.org/show_bug.cgi?id=20117
641         setBaseAndExtent fails to reverse the current selection
642
643         Test: editing/selection/setBaseAndExtent-revert-selection.html
644
645         * editing/Selection.h: (WebCore::operator==): Compare direction, too.
646
647 2008-07-21  Julien Chaffraix  <jchaffraix@webkit.org>
648
649         Reviewed by Sam Weinig.
650
651         Bug 19919: Add selectors' string parsing in CSSParser
652         https://bugs.webkit.org/show_bug.cgi?id=19919
653
654         No functional change.
655
656         * css/CSSGrammar.y: Added entry for parsing only a selector.
657         * css/CSSParser.cpp:
658         (WebCore::CSSParser::CSSParser):
659         (WebCore::CSSParser::parseSelector):
660         * css/CSSParser.h: Added m_floatingSelector to hold the
661         Selector parsed in parseSelector.
662
663         * css/tokenizer.flex: Added "@-webkit-selector" token.
664         * dom/Node.cpp:
665         (WebCore::Node::querySelector):
666         (WebCore::Node::querySelectorAll): Switched to parseSelector
667         method.
668
669 2008-07-21  Kevin Calhoun  <kcalhoun@apple.com>
670
671         Reviewed by Adele.
672
673         Fix for <rdar://problem/6081160> REGRESSION: Hang loading many pages if QuickTime isn't installed
674
675         * platform/graphics/win/QTMovieWin.cpp:
676         (initializeSupportedTypes): Do a Quicktime version minimum version check.
677         (QTMovieWin::initializeQuickTime): Store the Quicktime version globally so in can be used in initializeSupportedTypes as well.
678
679 2008-07-21  Kevin Calhoun  <kcalhoun@apple.com>
680
681         Reviewed by Adele.
682
683         Fix for <rdar://problem/5713336> <video> and <audio> elements that use a autoplay attribute fail to start playing when returning back to page
684
685         * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::willSaveToCache): Reset the ready state to DATA_UNAVAILABLE when saving to the cache
686         so that everything starts back up normally when the page is retrieved from the cache.
687
688 2008-07-21  Sam Weinig  <sam@webkit.org>
689
690         Reviewed by Mark Rowe.
691
692         Remove unused interface declaration.
693
694         * platform/network/mac/ResourceHandleMac.mm:
695
696 2008-07-21  Mark Rowe  <mrowe@apple.com>
697
698         Reviewed by Sam Weinig.
699
700         <rdar://problem/6091287> Revamp the handling of CFBundleShortVersionString to be fixed at the major component of the version number.
701
702         * Configurations/Version.xcconfig:
703         * Info.plist:
704
705 2008-07-21  Kevin Calhoun  <kcalhoun@apple.com>
706
707         Reviewed by Adele.
708
709         Fix for <rdar://problem/6031039> don't disable track-types when media is in a standalone document
710
711         * platform/graphics/MediaPlayer.cpp: (WebCore::MediaPlayer::inMediaDocument): Added.
712         * platform/graphics/MediaPlayer.h:
713         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm: (WebCore::MediaPlayerPrivate::updateStates):
714         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp: (WebCore::MediaPlayerPrivate::updateStates):
715
716 2008-07-21  Anders Carlsson  <andersca@apple.com>
717
718         Reviewed by Jon.
719
720         Don't allow requests to be made when the document loader is stopping all loaders.
721
722         * plugins/PluginView.cpp:
723         (WebCore::PluginView::load):
724
725 2008-07-20  Maxime Britto  <britto@apple.com>
726
727         Reviewed by John Sullivan.
728
729         [PFR] <rdar://problem/6080639> New middle click scrolling speed seems much slower than in FF
730         Accelerate and enhance the smoothness of the pan scrollling.
731
732         * page/EventHandler.cpp: Changed the TimerInterval from 0.1 to 0.05. The scrolling is way more fluid like this.
733         * rendering/RenderLayer.cpp: 
734         (WebCore::RenderLayer::panScrollFromPoint): Differentiate the speed within a 200 pixel side square, around the original click location to the speed for farther distances. This way we allow easyier handle when we are close to the center and very fast scrolling when we go far from the original point.
735
736 2008-07-18  David Hyatt  <hyatt@apple.com>
737
738         Change the cached clip rects to not assume they should be infinite when the root layer has been
739         shifted as the result of a transformation.
740
741         Reviewed by Maciej
742
743         Added fast/transforms/overflow-with-transform.html
744
745         * rendering/RenderLayer.cpp:
746         (WebCore::RenderLayer::calculateClipRects):
747
748 2008-07-21  Rob Buis  <buis@kde.org>
749
750         Reviewed by Mitz.
751
752         https://bugs.webkit.org/show_bug.cgi?id=19966
753         CSS variables crash when using hex notation for colors
754
755         Support hex colors as values for the css variables.
756
757         Test: fast/css/variables/color-hex-test.html
758
759         * css/CSSParserValues.cpp:
760         (WebCore::CSSParserValue::createCSSValue):
761         * css/CSSPrimitiveValue.cpp:
762         (WebCore::CSSPrimitiveValue::parserValue):
763         * css/CSSVariablesRule.cpp:
764
765 2008-07-21  Simon Hausmann  <hausmann@webkit.org>
766
767         Reviewed by Holger.
768
769         Fix drawing of windowless plugins on Windows with the Qt port by
770         avoiding the reset of the translation of the HDC to 0, 0.
771
772         * plugins/win/PluginViewWin.cpp:
773         (WebCore::PluginView::paint):
774
775 2008-07-21  Simon Hausmann  <hausmann@webkit.org>
776
777         Reviewed by Holger.
778
779         Fix rendering of transparent windowless netscape plugins by passing
780         the right conversion parameter to QPixmap::fromWinHBITMAP when
781         converting from HBITMAP to QPixmap.
782
783         * platform/graphics/qt/GraphicsContextQt.cpp:
784         (WebCore::GraphicsContext::releaseWindowsContext):
785
786 2008-07-21  Simon Hausmann  <hausmann@webkit.org>
787
788         Reviewed by Holger.
789
790         In the implementation of getValue for NPNVnetscapeWindow treat
791         windowHandleForPlatformWidget on the return value of
792         containingWindow() to receive the correct HWND for the Qt port.
793
794         * plugins/win/PluginViewWin.cpp:
795         (WebCore::PluginView::getValue):
796
797 2008-07-21  Simon Hausmann  <hausmann@webkit.org>
798
799         Reviewed by Holger.
800
801         Fix windowHandleForPlatformWidget to return 0 as HWND if we don't have
802         a QWidget. This can happen on page/view destruction for example.
803
804         * plugins/win/PluginViewWin.cpp:
805         (windowHandleForPlatformWidget):
806
807 2008-07-20  Steve Falkenburg  <sfalken@apple.com>
808
809         Touch file to force rebuild for vsprops change.
810
811         * WebCorePrefix.h:
812
813 2008-07-20  Sam Weinig  <sam@webkit.org>
814
815         Remove extra space Oliver Hunt left in.
816
817         * page/Console.cpp:
818         (WebCore::Console::reportException):
819         (WebCore::Console::reportCurrentException):
820
821 2008-07-20  Oliver Hunt  <oliver@apple.com>
822
823         Reviewed by Dan Bernstein.
824
825         Bug 19757: Crash when an ondragstart handler hides the element
826         <https://bugs.webkit.org/show_bug.cgi?id=19757>
827
828         The solution to this is problem is just to null check the renderer
829         immediately before launching the system drag, and terminate the
830         drag if the renderer is gone.
831
832         * page/EventHandler.cpp:
833         (WebCore::EventHandler::handleDrag):
834
835 2008-07-20  Nikolas Zimmermann  <zimmermann@kde.org>
836
837         Reviewed by Oliver.
838
839         Fixes: https://bugs.webkit.org/show_bug.cgi?id=12171
840
841         Remove manual SVG property <-> XML attribute synchronization in SVGPolyElement.
842         Added svg/custom/poly-points-attribute-changes.svg (testcase from Rob)
843
844         * svg/SVGPointList.cpp:
845         (WebCore::SVGPointList::valueAsString):
846         * svg/SVGPointList.h:
847         (WebCore::SVGPointList::create):
848         * svg/SVGPolyElement.cpp:
849         (WebCore::SVGPolyElement::SVGPolyElement):
850         (WebCore::SVGPolyElement::svgAttributeChanged):
851         (WebCore::SVGPolyElement::updateAnimatedSVGAttribute):
852         * svg/SVGPolyElement.h:
853
854 2008-07-20  Nikolas Zimmermann  <zimmermann@kde.org>
855
856         Reviewed by Oliver.
857
858         Cleanup JSSVGPODTypeWrapper code.
859
860         Rename: JSSVGPODTypeWrapperCreatorReadOnly -> JSSVGStaticPODTypeWrapper
861                 JSSVGPODTypeWrapperReadWrite       -> JSSVGDynamicPODTypeWrapper
862                 JSSVGPODTypeWrapperCache           -> JSSVGDynamicPODTypeWrapperCacheCache
863
864         No functional changes.
865
866         * bindings/js/JSSVGMatrixCustom.cpp:
867         (WebCore::JSSVGMatrix::multiply):
868         (WebCore::JSSVGMatrix::inverse):
869         (WebCore::JSSVGMatrix::translate):
870         (WebCore::JSSVGMatrix::scale):
871         (WebCore::JSSVGMatrix::scaleNonUniform):
872         (WebCore::JSSVGMatrix::rotate):
873         (WebCore::JSSVGMatrix::rotateFromVector):
874         (WebCore::JSSVGMatrix::flipX):
875         (WebCore::JSSVGMatrix::flipY):
876         (WebCore::JSSVGMatrix::skewX):
877         (WebCore::JSSVGMatrix::skewY):
878         * bindings/js/JSSVGPODTypeWrapper.h:
879         (WebCore::JSSVGDynamicPODTypeWrapper::create):
880         (WebCore::JSSVGDynamicPODTypeWrapper::operator PODType):
881         (WebCore::JSSVGDynamicPODTypeWrapper::JSSVGDynamicPODTypeWrapper):
882         (WebCore::JSSVGStaticPODTypeWrapper::create):
883         (WebCore::JSSVGStaticPODTypeWrapper::operator PODType):
884         (WebCore::JSSVGStaticPODTypeWrapper::JSSVGStaticPODTypeWrapper):
885         (WebCore::JSSVGPODTypeWrapperCreatorForList::create):
886         (WebCore::JSSVGPODTypeWrapperCreatorForList::operator PODType):
887         (WebCore::JSSVGPODTypeWrapperCreatorForList::JSSVGPODTypeWrapperCreatorForList):
888         (WebCore::PODTypeWrapperCacheInfo::PODTypeWrapperCacheInfo):
889         (WebCore::PODTypeWrapperCacheInfo::operator==):
890         (WebCore::PODTypeWrapperCacheInfoHash::hash):
891         (WebCore::PODTypeWrapperCacheInfoHash::equal):
892         (WebCore::PODTypeWrapperCacheInfoTraits::emptyValue):
893         (WebCore::PODTypeWrapperCacheInfoTraits::constructDeletedValue):
894         (WebCore::PODTypeWrapperCacheInfoTraits::isDeletedValue):
895         (WebCore::JSSVGDynamicPODTypeWrapperCache::dynamicWrapperHashMap):
896         (WebCore::JSSVGDynamicPODTypeWrapperCache::lookupOrCreateWrapper):
897         (WebCore::JSSVGDynamicPODTypeWrapperCache::forgetWrapper):
898         * bindings/js/JSSVGPointListCustom.cpp:
899         (WebCore::finishGetter):
900         (WebCore::finishSetter):
901         (WebCore::finishSetterReadOnlyResult):
902         (WebCore::JSSVGPointList::initialize):
903         (WebCore::JSSVGPointList::insertItemBefore):
904         (WebCore::JSSVGPointList::replaceItem):
905         (WebCore::JSSVGPointList::appendItem):
906         * bindings/js/JSSVGTransformListCustom.cpp:
907         (WebCore::finishGetter):
908         (WebCore::finishSetter):
909         (WebCore::finishSetterReadOnlyResult):
910         (WebCore::JSSVGTransformList::initialize):
911         (WebCore::JSSVGTransformList::getItem):
912         (WebCore::JSSVGTransformList::insertItemBefore):
913         (WebCore::JSSVGTransformList::replaceItem):
914         (WebCore::JSSVGTransformList::removeItem):
915         (WebCore::JSSVGTransformList::appendItem):
916         * bindings/scripts/CodeGeneratorJS.pm:
917
918 2008-07-19  Oliver Hunt  <oliver@apple.com>
919
920         Reviewed by Mark Rowe.
921
922         Bug 15979: Console logs in a database callback lose line number information
923         <https://bugs.webkit.org/show_bug.cgi?id=15979>
924
925         The problem was that there were multiple versions of the logic to
926         log an exception to the console, many of which were incorrect.  We
927         resolve this by making one single shared reportException method,
928         which handles the exceptions correctly.
929
930         This improves fidelity of callback errors, and ensures that
931         exceptions thrown in timer callbacks correctly report line numbers,
932         etc.
933
934         Test: fast/js/exceptions-thrown-in-callbacks.html
935
936         * bindings/js/JSCustomSQLStatementCallback.cpp:
937         (WebCore::JSCustomSQLStatementCallback::handleEvent):
938         * bindings/js/JSCustomSQLStatementErrorCallback.cpp:
939         (WebCore::JSCustomSQLStatementErrorCallback::handleEvent):
940         * bindings/js/JSCustomSQLTransactionCallback.cpp:
941         (WebCore::JSCustomSQLTransactionCallback::handleEvent):
942         * bindings/js/JSCustomSQLTransactionErrorCallback.cpp:
943         (WebCore::JSCustomSQLTransactionErrorCallback::handleEvent):
944         * bindings/js/JSCustomVoidCallback.cpp:
945         (WebCore::JSCustomVoidCallback::handleEvent):
946         * bindings/js/JSCustomXPathNSResolver.cpp:
947         (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
948         * bindings/js/JSEventListener.cpp:
949         (WebCore::JSAbstractEventListener::handleEvent):
950         * bindings/js/ScheduledAction.cpp:
951         (WebCore::ScheduledAction::execute):
952         * bindings/js/ScriptController.cpp:
953         (WebCore::ScriptController::evaluate):
954         * bindings/objc/WebScriptObject.mm:
955         (WebCore::addExceptionToConsole):
956         * page/Console.cpp:
957         (WebCore::Console::reportException):
958         * page/Console.h:
959
960 2008-07-20  Nikolas Zimmermann  <zimmermann@kde.org>
961
962         Rubber stamped by Oliver.
963
964         Another attempt to fix the win build.
965
966         * svg/SVGAnimatedProperty.h:
967
968 2008-07-20  Alexey Proskuryakov  <ap@webkit.org>
969
970         Reviewed by David Kilzer.
971
972         Fix high CPU usage on testmyiphone.com.
973
974         - Made the logic for determining when to stop looking for meta charset more strainghtforward.
975         Previously, this happened if a tag that's disallowed in HEAD was seen past the first 512
976         bytes. Now, the algorithm bails out at the boundary if we are lo longer in HEAD (i.e, an
977         offending tag was seen at any point before).
978
979         - The above change made one of our regression tests fail, because it had its <meta>
980         declaration past the 512 byte boundary. Fixed it by raising the boundary to 1024 bytes.
981
982         - Made the algorithm bail out quickly if a comment that's not in HEAD crosses the boundary.
983
984         - Moved a check for XML content type out of the loop.
985
986         * loader/TextResourceDecoder.cpp:
987         (WebCore::TextResourceDecoder::checkForHeadCharset): 
988
989 2008-07-20  Oliver Hunt  <oliver@apple.com>
990
991         Reviewed by NOBODY (build fix).
992
993         Attempt to fix windows build
994
995         * svg/SVGAnimatedProperty.h:
996
997 2008-07-19  Nikolas Zimmermann  <zimmermann@kde.org>
998
999         Reviewed by Oliver & parts by Eric.
1000
1001         Fixes: https://bugs.webkit.org/show_bug.cgi?id=20051
1002
1003         Rewrite animated property concept without heavy macro usage, replace by a templatified solution.
1004         Fewer virtual function calls, no more usage of the tear-off's within internal code (synchronization needed it before.)
1005
1006         * dom/Element.cpp:
1007         (WebCore::Element::attributes):
1008         (WebCore::Element::getAttribute):
1009         (WebCore::Element::hasAttributes):
1010         * dom/Element.h:
1011         (WebCore::Element::updateAnimatedSVGAttribute): Take const String&, not StringImpl*.
1012         * svg/SVGAElement.cpp:
1013         (WebCore::SVGAElement::SVGAElement):
1014         * svg/SVGAElement.h:
1015         * svg/SVGAltGlyphElement.h:
1016         * svg/SVGAnimatedProperty.h: Added.
1017         * svg/SVGAnimatedTemplate.h:
1018         (WebCore::lookupOrCreateWrapper):
1019         * svg/SVGAnimationElement.h:
1020         * svg/SVGCircleElement.cpp:
1021         (WebCore::SVGCircleElement::SVGCircleElement):
1022         * svg/SVGCircleElement.h:
1023         * svg/SVGClipPathElement.cpp:
1024         (WebCore::SVGClipPathElement::SVGClipPathElement):
1025         * svg/SVGClipPathElement.h:
1026         * svg/SVGComponentTransferFunctionElement.cpp:
1027         (WebCore::SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement):
1028         * svg/SVGComponentTransferFunctionElement.h:
1029         * svg/SVGCursorElement.cpp:
1030         (WebCore::SVGCursorElement::SVGCursorElement):
1031         * svg/SVGCursorElement.h:
1032         * svg/SVGDefsElement.h:
1033         (WebCore::SVGDefsElement::contextElement):
1034         * svg/SVGElement.cpp:
1035         (WebCore::SVGElement::updateAnimatedSVGAttribute):
1036         * svg/SVGElement.h:
1037         (WebCore::SVGElement::supplementalTransform):
1038         (WebCore::SVGElement::invokeSVGPropertySynchronizer):
1039         (WebCore::SVGElement::invokeAllSVGPropertySynchronizers):
1040         (WebCore::SVGElement::addSVGPropertySynchronizer):
1041         * svg/SVGEllipseElement.cpp:
1042         (WebCore::SVGEllipseElement::SVGEllipseElement):
1043         * svg/SVGEllipseElement.h:
1044         * svg/SVGExternalResourcesRequired.cpp:
1045         (WebCore::SVGExternalResourcesRequired::SVGExternalResourcesRequired):
1046         * svg/SVGExternalResourcesRequired.h:
1047         * svg/SVGFEBlendElement.cpp:
1048         (WebCore::SVGFEBlendElement::SVGFEBlendElement):
1049         * svg/SVGFEBlendElement.h:
1050         * svg/SVGFEColorMatrixElement.cpp:
1051         (WebCore::SVGFEColorMatrixElement::SVGFEColorMatrixElement):
1052         * svg/SVGFEColorMatrixElement.h:
1053         * svg/SVGFEComponentTransferElement.cpp:
1054         (WebCore::SVGFEComponentTransferElement::SVGFEComponentTransferElement):
1055         * svg/SVGFEComponentTransferElement.h:
1056         * svg/SVGFECompositeElement.cpp:
1057         (WebCore::SVGFECompositeElement::SVGFECompositeElement):
1058         * svg/SVGFECompositeElement.h:
1059         * svg/SVGFEDiffuseLightingElement.cpp:
1060         (WebCore::SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement):
1061         * svg/SVGFEDiffuseLightingElement.h:
1062         * svg/SVGFEDisplacementMapElement.cpp:
1063         (WebCore::SVGFEDisplacementMapElement::SVGFEDisplacementMapElement):
1064         * svg/SVGFEDisplacementMapElement.h:
1065         * svg/SVGFEFloodElement.h:
1066         * svg/SVGFEGaussianBlurElement.cpp:
1067         (WebCore::SVGFEGaussianBlurElement::SVGFEGaussianBlurElement):
1068         * svg/SVGFEGaussianBlurElement.h:
1069         * svg/SVGFEImageElement.cpp:
1070         (WebCore::SVGFEImageElement::SVGFEImageElement):
1071         * svg/SVGFEImageElement.h:
1072         * svg/SVGFELightElement.cpp:
1073         (WebCore::SVGFELightElement::SVGFELightElement):
1074         * svg/SVGFELightElement.h:
1075         (WebCore::SVGFELightElement::contextElement):
1076         * svg/SVGFEMergeElement.h:
1077         * svg/SVGFEMergeNodeElement.cpp:
1078         (WebCore::SVGFEMergeNodeElement::SVGFEMergeNodeElement):
1079         * svg/SVGFEMergeNodeElement.h:
1080         * svg/SVGFEOffsetElement.cpp:
1081         (WebCore::SVGFEOffsetElement::SVGFEOffsetElement):
1082         * svg/SVGFEOffsetElement.h:
1083         * svg/SVGFESpecularLightingElement.cpp:
1084         (WebCore::SVGFESpecularLightingElement::SVGFESpecularLightingElement):
1085         * svg/SVGFESpecularLightingElement.h:
1086         * svg/SVGFETileElement.cpp:
1087         (WebCore::SVGFETileElement::SVGFETileElement):
1088         * svg/SVGFETileElement.h:
1089         * svg/SVGFETurbulenceElement.cpp:
1090         (WebCore::SVGFETurbulenceElement::SVGFETurbulenceElement):
1091         * svg/SVGFETurbulenceElement.h:
1092         * svg/SVGFilterElement.cpp:
1093         (WebCore::SVGFilterElement::SVGFilterElement):
1094         * svg/SVGFilterElement.h:
1095         * svg/SVGFilterPrimitiveStandardAttributes.cpp:
1096         (WebCore::SVGFilterPrimitiveStandardAttributes::SVGFilterPrimitiveStandardAttributes):
1097         * svg/SVGFilterPrimitiveStandardAttributes.h:
1098         * svg/SVGFitToViewBox.cpp:
1099         (WebCore::SVGFitToViewBox::SVGFitToViewBox):
1100         * svg/SVGFitToViewBox.h:
1101         * svg/SVGFontElement.h:
1102         (WebCore::SVGFontElement::rendererIsNeeded):
1103         (WebCore::SVGFontElement::contextElement):
1104         * svg/SVGForeignObjectElement.cpp:
1105         (WebCore::SVGForeignObjectElement::SVGForeignObjectElement):
1106         * svg/SVGForeignObjectElement.h:
1107         * svg/SVGGElement.h:
1108         * svg/SVGGradientElement.cpp:
1109         (WebCore::SVGGradientElement::SVGGradientElement):
1110         * svg/SVGGradientElement.h:
1111         (WebCore::SVGGradientElement::contextElement):
1112         * svg/SVGImageElement.cpp:
1113         (WebCore::SVGImageElement::SVGImageElement):
1114         * svg/SVGImageElement.h:
1115         * svg/SVGLineElement.cpp:
1116         (WebCore::SVGLineElement::SVGLineElement):
1117         * svg/SVGLineElement.h:
1118         * svg/SVGLinearGradientElement.cpp:
1119         (WebCore::SVGLinearGradientElement::SVGLinearGradientElement):
1120         * svg/SVGLinearGradientElement.h:
1121         * svg/SVGMarkerElement.cpp:
1122         (WebCore::SVGMarkerElement::SVGMarkerElement):
1123         (WebCore::SVGMarkerElement::canvasResource):
1124         * svg/SVGMarkerElement.h:
1125         * svg/SVGMaskElement.cpp:
1126         (WebCore::SVGMaskElement::SVGMaskElement):
1127         * svg/SVGMaskElement.h:
1128         * svg/SVGPathElement.cpp:
1129         (WebCore::SVGPathElement::SVGPathElement):
1130         (WebCore::SVGPathElement::parseMappedAttribute):
1131         * svg/SVGPathElement.h:
1132         * svg/SVGPatternElement.cpp:
1133         (WebCore::SVGPatternElement::SVGPatternElement):
1134         * svg/SVGPatternElement.h:
1135         (WebCore::SVGPatternElement::contextElement):
1136         * svg/SVGPolyElement.h:
1137         * svg/SVGPreserveAspectRatio.cpp:
1138         * svg/SVGRadialGradientElement.cpp:
1139         (WebCore::SVGRadialGradientElement::SVGRadialGradientElement):
1140         * svg/SVGRadialGradientElement.h:
1141         * svg/SVGRectElement.cpp:
1142         (WebCore::SVGRectElement::SVGRectElement):
1143         * svg/SVGRectElement.h:
1144         * svg/SVGSVGElement.cpp:
1145         (WebCore::SVGSVGElement::SVGSVGElement):
1146         * svg/SVGSVGElement.h:
1147         * svg/SVGScriptElement.cpp:
1148         * svg/SVGScriptElement.h:
1149         * svg/SVGStopElement.cpp:
1150         (WebCore::SVGStopElement::SVGStopElement):
1151         * svg/SVGStopElement.h:
1152         * svg/SVGStyledElement.cpp:
1153         (WebCore::SVGStyledElement::SVGStyledElement):
1154         * svg/SVGStyledElement.h:
1155         * svg/SVGStyledTransformableElement.cpp:
1156         (WebCore::SVGStyledTransformableElement::SVGStyledTransformableElement):
1157         * svg/SVGStyledTransformableElement.h:
1158         * svg/SVGSwitchElement.h:
1159         * svg/SVGSymbolElement.h:
1160         (WebCore::SVGSymbolElement::contextElement):
1161         * svg/SVGTRefElement.h:
1162         * svg/SVGTSpanElement.h:
1163         * svg/SVGTextContentElement.cpp:
1164         (WebCore::SVGTextContentElement::SVGTextContentElement):
1165         * svg/SVGTextContentElement.h:
1166         (WebCore::SVGTextContentElement::contextElement):
1167         * svg/SVGTextElement.cpp:
1168         (WebCore::SVGTextElement::SVGTextElement):
1169         * svg/SVGTextElement.h:
1170         * svg/SVGTextPathElement.cpp:
1171         (WebCore::SVGTextPathElement::SVGTextPathElement):
1172         * svg/SVGTextPathElement.h:
1173         * svg/SVGTextPositioningElement.cpp:
1174         (WebCore::SVGTextPositioningElement::SVGTextPositioningElement):
1175         * svg/SVGTextPositioningElement.h:
1176         * svg/SVGTransformable.h:
1177         * svg/SVGURIReference.cpp:
1178         (WebCore::SVGURIReference::SVGURIReference):
1179         * svg/SVGURIReference.h:
1180         * svg/SVGUseElement.cpp:
1181         (WebCore::SVGUseElement::SVGUseElement):
1182         * svg/SVGUseElement.h:
1183         * svg/SVGViewElement.h:
1184         * svg/SVGViewSpec.h:
1185
1186 2008-07-18  Maxime Britto  <britto@apple.com>
1187
1188         Reviewed by Adele.
1189         
1190         Fixed <rdar://problem/6049803>
1191         Prevent the autoscroll to trigger in WebClips when starting or hovering on an editable field.
1192
1193         Test: fast/events/autoscroll-with-non-scrollable-parent.html
1194
1195         * ChangeLog:
1196         * page/EventHandler.cpp: Edited
1197         (WebCore::EventHandler::handleMousePressEvent): changed the name of the funtion called to canBeProgramaticallyScrolled()
1198         (WebCore::EventHandler::handleMouseDraggedEvent): prevent the autoscroll to keep looking for a renderer when it's already triggered
1199         * rendering/RenderLayer.cpp:
1200         (WebCore::RenderLayer::scrollRectToVisible): verifies that the top layer can be programmatically scrolled before asking him to make the rect visible
1201         * rendering/RenderListBox.h:
1202         (WebCore::RenderListBox::canBeProgramaticallyScrolled):
1203         * rendering/RenderObject.cpp:
1204         (WebCore::RenderObject::canBeProgramaticallyScrolled): Edited : For the 3rd case we want document's renderer to have scrollbar as it's the top layer   
1205         (WebCore::RenderObject::hasScrollableView): Verifies that the Object has a view with scrollBars
1206         * rendering/RenderObject.h: Renamed shouldAutosroll() for canBeProgramaticallyScrolled()
1207         * rendering/RenderTextControl.h:
1208         (WebCore::RenderTextControl::canBeProgramaticallyScrolled):
1209
1210 2008-07-18  Sam Weinig  <sam@webkit.org>
1211
1212         Reviewed by Anders Carlsson.
1213
1214         <rdar://problem/6087283> Add support for uploading files via XMLHttpRequest
1215
1216         - Overload XMLHttpRequests send() method to accept File tokens.
1217
1218         * bindings/js/JSXMLHttpRequestCustom.cpp:
1219         (WebCore::JSXMLHttpRequest::send): 
1220         * xml/XMLHttpRequest.cpp:
1221         (WebCore::XMLHttpRequest::send):
1222         * xml/XMLHttpRequest.h:
1223
1224 2008-07-18  Geoffrey Garen  <ggaren@apple.com>
1225
1226         Reviewed by Cameron Zwarich.
1227         
1228         Three renames:
1229         
1230         "CallTypeNative" => "CallTypeHost"
1231         "code" => "byteCode"
1232         "generatedCode" => "generatedByteCode"
1233
1234 2008-07-18  Adele Peterson  <adele@apple.com>
1235
1236         Reviewed by Dan Bernstein.
1237
1238         I recently made a change to avoid fading media controls in and out if a video element actually only contains audio,
1239         which broke the code that did the same thing for audio elements that contain video (but don't actually display that video).
1240         This change will now check both the media element and the player to decide whether or not to make the controls persistent.
1241
1242         * rendering/RenderMedia.cpp: (WebCore::RenderMedia::updateControlVisibility):
1243
1244 2008-07-18  Simon Fraser  <simon.fraser@apple.com>
1245
1246         Reviewed by mitz
1247
1248         Remove braces around single-line conditional.
1249         
1250         * css/CSSComputedStyleDeclaration.cpp:
1251         (WebCore::computedTransform):
1252
1253 2008-07-18  Simon Fraser  <simon.fraser@apple.com>
1254
1255         Reviewed by Dave Hyatt
1256
1257         getComputedStyle() for -webkit-transform should return 
1258         'none' for elements with no renderer, or those with no
1259         transform.
1260
1261         https://bugs.webkit.org/show_bug.cgi?id=20008
1262
1263         Testcase: LayoutTests/fast/css/computed-style-without-renderer
1264                   LayoutTests/fast/css/computed-style-expected.txt
1265
1266         * css/CSSComputedStyleDeclaration.cpp:
1267         (WebCore::computedTransform):
1268
1269 2008-07-18  Simon Fraser  <simon.fraser@apple.com>
1270
1271         Reviewed by Dave Hyatt
1272
1273         Fix assertion about creating Length values with percentage types
1274         when blending transforms.
1275         https://bugs.webkit.org/show_bug.cgi?id=20086
1276
1277         * rendering/style/RenderStyle.cpp:
1278         (WebCore::TranslateTransformOperation::blend):
1279
1280 2008-07-17  Jacob Refstrup  <jacob.refstrup@hp.com>
1281
1282         Reviewed by rwlbuis@gmail.com
1283
1284         https://bugs.webkit.org/show_bug.cgi?id=19965
1285
1286         - Added "@"{ident} rule (below other @-rules) to use flex for longest match
1287           (if an earlier rule - e.g. @media - also matches then flex chooses that one
1288            however, if a longer match - e.g. @mediaall matches flex will choose that)
1289         - Updated grammar to defined ATKEYWORD token and to use that instead of '@'
1290           in the error recovery grammar. 
1291
1292         Test: css2.1/atrule_longest_match.html
1293
1294         * ChangeLog:
1295         * css/CSSGrammar.y:
1296         * css/tokenizer.flex:
1297
1298 2008-07-17  David Hyatt  <hyatt@apple.com>
1299
1300         Make sure the check to see if a frame/iframe is being rendered inside a transparency layer is
1301         recursive (and checks for transparency layers all the way up the ancestor document chain back to
1302         the top-level frame).
1303
1304         Reviewed by Dan
1305
1306         * rendering/RenderView.cpp:
1307         (WebCore::RenderView::paintBoxDecorations):
1308
1309 2008-07-16  Jon Honeycutt  <jhoneycutt@apple.com>
1310
1311         REGRESSION: Can't create windowless plug-in with Flash 9
1312         https://bugs.webkit.org/show_bug.cgi?id=20070
1313
1314         Reviewed by Mark Rowe.
1315
1316         * plugins/win/PluginPackageWin.cpp:
1317         (WebCore::PluginPackage::determineQuirks): Reverse argument order;
1318         PlatformModuleVersion constructor takes leastSig, mostSig.
1319
1320 2008-07-16  Eric Seidel  <eric@webkit.org>
1321
1322         Reviewed by mitz.
1323
1324         Attempt to make initializeATSUStyle human-readable by
1325         splitting it out into better-named static inline functions.
1326
1327         No functional changes, thus no tests.
1328
1329         * platform/graphics/mac/FontMac.mm:
1330         (WebCore::fontHasMirroringInfo):
1331         (WebCore::disableLigatures):
1332         (WebCore::initializeATSUStyle):
1333
1334 2008-07-16  Eric Seidel  <eric@webkit.org>
1335
1336         No review, build fix only.
1337
1338         Attempt to fix Mac build
1339
1340         * WebCore.xcodeproj/project.pbxproj: Make TextRun.h a private header.
1341
1342 2008-07-16  Eric Seidel  <eric@webkit.org>
1343
1344         Reviewed by mitz.
1345
1346         Make ATSULayoutParameters a real C++ class
1347         (Give it a destructor to clean up after itself)
1348         (Also use OwnArrayPtr instead of manual member cleanup)
1349
1350         * platform/graphics/mac/FontMac.mm:
1351         (WebCore::ATSULayoutParameters::ATSULayoutParameters):
1352         (WebCore::ATSULayoutParameters::~ATSULayoutParameters):
1353         (WebCore::overrideLayoutOperation):
1354         (WebCore::ATSULayoutParameters::initialize):
1355         (WebCore::Font::selectionRectForComplexText):
1356         (WebCore::Font::drawComplexText):
1357         (WebCore::Font::floatWidthForComplexText):
1358         (WebCore::Font::offsetForPositionForComplexText):
1359
1360 2008-07-16  Eric Seidel  <eric@webkit.org>
1361
1362         Reviewed by mitz.
1363
1364         Make ownership of copied UChar buffer clearer
1365         (and more leak-proof) by using a OwnArrayPtr.
1366
1367         No functional changes, thus no tests.
1368
1369         * platform/graphics/mac/FontMac.mm:
1370         (WebCore::copyRunForDirectionalOverrideIfNecessary):
1371         (WebCore::Font::selectionRectForComplexText):
1372         (WebCore::Font::drawComplexText):
1373         (WebCore::Font::offsetForPositionForComplexText):
1374
1375 2008-07-16  Eric Seidel  <eric@webkit.org>
1376
1377         Reviewed by Sam.
1378
1379         Split out TextRun into its own header file.
1380         Re-order members to place all bools together
1381         (to allow compilers to better pack the struct)
1382
1383         No functional changes, thus no tests.
1384
1385         * WebCore.vcproj/WebCore.vcproj:
1386         * WebCore.xcodeproj/project.pbxproj:
1387         * platform/graphics/Font.h: Moved TextRun into its own file.
1388         * platform/graphics/TextRun.h: Split out from Font.h
1389
1390 2008-07-16  Simon Fraser  <simon.fraser@apple.com>
1391
1392         Reviewed by Dave Hyatt
1393
1394         AnimationController needs to adjust z-index in the blended
1395         style in case opacity or transform were changed by blending.
1396
1397         https://bugs.webkit.org/show_bug.cgi?id=20047
1398         
1399         Test: transitions/opacity-transition-zindex.html
1400
1401         * page/AnimationController.cpp:
1402         (WebCore::AnimationController::updateImplicitAnimations):
1403
1404 2008-07-16  Nikolas Zimmermann  <zimmermann@kde.org>
1405
1406         Reviewed by Sam.
1407
1408         Fixes: https://bugs.webkit.org/show_bug.cgi?id=20052 
1409         Prepare SVGAnimatedProperty introduction.
1410
1411         Export the tag & attribute names as string literals for SVGNames/XLinkNames and one property in HTMLNames. SVGAnimatedProperty
1412         contains two string literal template parameters, and we're using these exported string literals from {SVG,HTML,XLink}Names as input paramters.
1413         See https://bugs.webkit.org/show_bug.cgi?id=20051 for details.
1414
1415         * dom/make_names.pl: Handle new params "exportString" / "exportStrings".
1416         * html/HTMLAttributeNames.in: Expose just the single "class" attribute, as string.
1417         * svg/svgattrs.in: Export all SVG attributes as strings.
1418         * svg/svgtags.in: Export all SVG tags as strings.
1419         * svg/xlinkattrs.in: Expose all XLink attributes as strings.
1420
1421 2008-07-16  Nikolas Zimmermann  <zimmermann@kde.org>
1422
1423         Reviewed by Eric.
1424
1425         Fixes: https://bugs.webkit.org/show_bug.cgi?id=10745 (SVGLength object needs some weight loss)
1426         Don't store a context pointer in SVGLength, saving memory. Let the caller of the value() & convertToSpecifiedUnits() pass it.
1427
1428         Remove some uneeded contextElement() functions, by moving into approriate shared base classes.
1429
1430         * GNUmakefile.am:
1431         * WebCore.pro:
1432         * WebCore.vcproj/WebCore.vcproj:
1433         * WebCore.xcodeproj/project.pbxproj:
1434         * bindings/js/JSSVGLengthCustom.cpp: Added.
1435         (WebCore::JSSVGLength::value):
1436         (WebCore::JSSVGLength::convertToSpecifiedUnits):
1437         * bindings/scripts/CodeGeneratorObjC.pm:
1438         * css/CSSCursorImageValue.cpp:
1439         (WebCore::CSSCursorImageValue::updateIfSVGCursorIsUsed):
1440         * rendering/RenderForeignObject.cpp:
1441         (WebCore::RenderForeignObject::translationForAttributes):
1442         * rendering/RenderSVGImage.cpp:
1443         (WebCore::RenderSVGImage::layout):
1444         * rendering/RenderSVGRoot.cpp:
1445         (WebCore::RenderSVGRoot::calcViewport):
1446         * rendering/RenderSVGText.cpp:
1447         (WebCore::RenderSVGText::layout):
1448         * rendering/RenderSVGViewportContainer.cpp:
1449         (WebCore::RenderSVGViewportContainer::calcViewport):
1450         * rendering/SVGCharacterLayoutInfo.cpp:
1451         (WebCore::SVGCharacterLayoutInfo::addLayoutInformation):
1452         (WebCore::SVGCharacterLayoutInfo::addStackContent):
1453         * rendering/SVGCharacterLayoutInfo.h:
1454         * rendering/SVGRootInlineBox.cpp:
1455         (WebCore::SVGRootInlineBox::buildTextChunks):
1456         * svg/SVGAnimateElement.h:
1457         * svg/SVGAnimateMotionElement.h:
1458         * svg/SVGAnimateTransformElement.h:
1459         * svg/SVGAnimationElement.h:
1460         (WebCore::SVGAnimationElement::contextElement):
1461         * svg/SVGCircleElement.cpp:
1462         (WebCore::SVGCircleElement::SVGCircleElement):
1463         (WebCore::SVGCircleElement::parseMappedAttribute):
1464         (WebCore::SVGCircleElement::toPathData):
1465         * svg/SVGCursorElement.cpp:
1466         (WebCore::SVGCursorElement::SVGCursorElement):
1467         (WebCore::SVGCursorElement::parseMappedAttribute):
1468         * svg/SVGEllipseElement.cpp:
1469         (WebCore::SVGEllipseElement::SVGEllipseElement):
1470         (WebCore::SVGEllipseElement::parseMappedAttribute):
1471         (WebCore::SVGEllipseElement::toPathData):
1472         * svg/SVGFilterElement.cpp:
1473         (WebCore::SVGFilterElement::SVGFilterElement):
1474         (WebCore::SVGFilterElement::parseMappedAttribute):
1475         (WebCore::SVGFilterElement::canvasResource):
1476         * svg/SVGFilterPrimitiveStandardAttributes.cpp:
1477         (WebCore::SVGFilterPrimitiveStandardAttributes::SVGFilterPrimitiveStandardAttributes):
1478         (WebCore::SVGFilterPrimitiveStandardAttributes::parseMappedAttribute):
1479         (WebCore::SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
1480         * svg/SVGForeignObjectElement.cpp:
1481         (WebCore::SVGForeignObjectElement::SVGForeignObjectElement):
1482         (WebCore::SVGForeignObjectElement::parseMappedAttribute):
1483         * svg/SVGImageElement.cpp:
1484         (WebCore::SVGImageElement::SVGImageElement):
1485         (WebCore::SVGImageElement::parseMappedAttribute):
1486         * svg/SVGLength.cpp:
1487         (WebCore::SVGLength::SVGLength):
1488         (WebCore::SVGLength::value):
1489         (WebCore::SVGLength::convertToSpecifiedUnits):
1490         (WebCore::SVGLength::PercentageOfViewport):
1491         * svg/SVGLength.h:
1492         * svg/SVGLength.idl:
1493         * svg/SVGLengthList.cpp:
1494         (WebCore::SVGLengthList::parse):
1495         * svg/SVGLengthList.h:
1496         * svg/SVGLineElement.cpp:
1497         (WebCore::SVGLineElement::SVGLineElement):
1498         (WebCore::SVGLineElement::parseMappedAttribute):
1499         (WebCore::SVGLineElement::toPathData):
1500         * svg/SVGLinearGradientElement.cpp:
1501         (WebCore::SVGLinearGradientElement::SVGLinearGradientElement):
1502         (WebCore::SVGLinearGradientElement::parseMappedAttribute):
1503         * svg/SVGMarkerElement.cpp:
1504         (WebCore::SVGMarkerElement::SVGMarkerElement):
1505         (WebCore::SVGMarkerElement::parseMappedAttribute):
1506         (WebCore::SVGMarkerElement::canvasResource):
1507         * svg/SVGMaskElement.cpp:
1508         (WebCore::SVGMaskElement::SVGMaskElement):
1509         (WebCore::SVGMaskElement::parseMappedAttribute):
1510         (WebCore::SVGMaskElement::drawMaskerContent):
1511         * svg/SVGPatternElement.cpp:
1512         (WebCore::SVGPatternElement::SVGPatternElement):
1513         (WebCore::SVGPatternElement::parseMappedAttribute):
1514         (WebCore::SVGPatternElement::buildPattern):
1515         * svg/SVGRadialGradientElement.cpp:
1516         (WebCore::SVGRadialGradientElement::SVGRadialGradientElement):
1517         (WebCore::SVGRadialGradientElement::parseMappedAttribute):
1518         * svg/SVGRectElement.cpp:
1519         (WebCore::SVGRectElement::SVGRectElement):
1520         (WebCore::SVGRectElement::parseMappedAttribute):
1521         (WebCore::SVGRectElement::toPathData):
1522         * svg/SVGSVGElement.cpp:
1523         (WebCore::SVGSVGElement::SVGSVGElement):
1524         (WebCore::SVGSVGElement::viewport):
1525         (WebCore::SVGSVGElement::parseMappedAttribute):
1526         (WebCore::SVGSVGElement::getCTM):
1527         (WebCore::SVGSVGElement::getScreenCTM):
1528         * svg/SVGTextContentElement.cpp:
1529         (WebCore::SVGTextContentElement::SVGTextContentElement):
1530         (WebCore::SVGTextContentElement::parseMappedAttribute):
1531         * svg/SVGTextPathElement.cpp:
1532         (WebCore::SVGTextPathElement::SVGTextPathElement):
1533         (WebCore::SVGTextPathElement::parseMappedAttribute):
1534         * svg/SVGTextPositioningElement.cpp:
1535         (WebCore::SVGTextPositioningElement::parseMappedAttribute):
1536         * svg/SVGUseElement.cpp:
1537         (WebCore::SVGUseElement::SVGUseElement):
1538         (WebCore::SVGUseElement::parseMappedAttribute):
1539         (WebCore::SVGUseElement::buildPendingResource):
1540         (WebCore::SVGUseElement::buildInstanceTree):
1541         (WebCore::SVGUseElement::handleDeepUseReferencing):
1542         (WebCore::SVGUseElement::alterShadowTreeForSVGTag):
1543         (WebCore::SVGUseElement::expandUseElementsInShadowTree):
1544         (WebCore::SVGUseElement::expandSymbolElementsInShadowTree):
1545         * svg/SVGUseElement.h:
1546         * svg/SynchronizableTypeWrapper.h:
1547         * svg/graphics/SVGImage.cpp:
1548         (WebCore::SVGImage::size):
1549
1550 2008-07-16  Geoffrey Garen  <ggaren@apple.com>
1551
1552         Reviewed by Oliver Hunt.
1553
1554         Support for JavaScriptCore's first step toward putting doubles in
1555         registers: Treat ArgList iterators as Register*'s, not JSValue*'s.
1556
1557         * bindings/js/ScheduledAction.cpp:
1558         (WebCore::ScheduledAction::ScheduledAction):
1559
1560 2008-07-15  Maxime Britto  <britto@apple.com>
1561
1562         Reviewed by Eric.
1563
1564         https://bugs.webkit.org/show_bug.cgi?id=17589
1565         <rdar://problem/5770893>
1566         Retrieve the wheel sensitivity setting from windows system settings for the horizontal and the vertical scrolling.
1567         Allows the page scrolling with the wheel (if activated in windows settings) on both horizontal and vertical ways
1568         For the other platforms, nothing is changed but if someone want to activate this feature 
1569         he/she has to retrieve the settings and fill out the m_lineScrollSensitivity and/or m_charScrollSensitivity in his/her PlatformWheelEvent constructor.
1570
1571         * ChangeLog:
1572         * page/EventHandler.cpp:
1573         (WebCore::scrollAndAcceptEvent): static inline function to avoid copy/paste in the member functions
1574         (WebCore::EventHandler::handleWheelEvent): Call to the above mentionned static inline function with the right parameters 
1575         * platform/PlatformWheelEvent.h:
1576         (WebCore::PlatformWheelEvent::deltaX): Now returns the delta multiplied by the user settings for the number of lines to scroll
1577         (WebCore::PlatformWheelEvent::deltaY): Now returns the delta multiplied by the user settings for the number of chars to scroll
1578         (WebCore::PlatformWheelEvent::isPageXScrollModeEnabled):
1579         (WebCore::PlatformWheelEvent::isPageYScrollModeEnabled):
1580         * platform/gtk/WheelEventGtk.cpp: Add the values to avoid build break but the factors are initialized to 1 not to change the previous behavior
1581         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
1582         * platform/mac/WheelEventMac.mm: Add the values to avoid build break but the factors are initialized to 1 not to change the previous behavior
1583         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
1584         * platform/qt/WheelEventQt.cpp: Add the values to avoid build break but the factors are initialized to 1 not to change the previous behavior
1585         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
1586         * platform/win/ScrollViewWin.cpp: Added the page scroll (horiz/vertical) and reduced the number of pixels to scroll per line to keep the standard behavior with the factor
1587         (WebCore::adjustDeltaForPageScrollMode): static inline function to avoid copy/paste in the member functions
1588         (WebCore::ScrollView::updateScrollbars):
1589         (WebCore::ScrollView::wheelEvent):
1590         * platform/win/WheelEventWin.cpp: Retrieves the new values by using the win32 API.
1591         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
1592         * platform/wx/MouseWheelEventWx.cpp: Add the values to avoid build break but the factors are initialized to 1 not to change the previous behavior
1593         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
1594
1595 2008-07-15  Kevin Ollivier  <kevino@theolliviers.com>
1596
1597         wx build fix - adding AccessibilityImageMapLink.cpp to the wx build.
1598
1599         * WebCoreSources.bkl:
1600
1601 2008-07-15  Kevin McCullough  <kmccullough@apple.com>
1602
1603         Reviewed by Dan.
1604
1605         <rdar://problem/5620273> REGRESSION: Apparent caching between form
1606         submits twice (on Maconomy) (18401)
1607
1608         Frames did not set the createdByParser flag even when they were.
1609
1610         * html/HTMLElementFactory.cpp:
1611         (WebCore::frameConstructor):
1612         (WebCore::iframeConstructor):
1613
1614 2008-07-15  Dan Bernstein  <mitz@apple.com>
1615
1616         Reviewed by Dave Hyatt.
1617
1618         - fix https://bugs.webkit.org/show_bug.cgi?id=19525
1619           <rdar://problem/5961768> -webkit-box-reflect in hyperlink causes webkit to crash
1620
1621         Test: fast/reflections/inline-crash.html
1622
1623         * rendering/RenderInline.cpp:
1624         (WebCore::RenderInline::setStyle): Added setHasReflection(false).
1625         Inline flows never have reflections.
1626
1627 2008-07-14  David Hyatt  <hyatt@apple.com>
1628
1629         Allow <style> and <link> pretty much anywhere.  They will still be moved to the <head> if
1630         no <body> exists yet though.
1631
1632         Reviewed by Sam
1633
1634         Added fast/css/style-parsed-outside-of-head.html
1635
1636         * html/HTMLElement.cpp:
1637         (WebCore::inlineTagList):
1638
1639 2008-07-15  Kevin McCullough  <kmccullough@apple.com>
1640
1641         Reviewed by Geoff.
1642
1643         Rename pageGroupIdentifier to profileGroup to keep mention of a
1644         pageGroup out of JavaScriptCore.
1645
1646         * bindings/js/JSQuarantinedObjectWrapper.cpp:
1647         (WebCore::JSQuarantinedObjectWrapper::allowsUnwrappedAccessFrom):
1648         * bindings/js/ScriptController.cpp:
1649         (WebCore::ScriptController::clear):
1650         (WebCore::ScriptController::initScript):
1651         * history/CachedPage.cpp:
1652         (WebCore::CachedPage::restore):
1653
1654 2008-07-15  Adam Roben  <aroben@apple.com>
1655
1656         WebCore part of adding WebKit[Set]ShouldUseFontSmoothing functions
1657
1658         <rdar://6059127>
1659
1660         Reviewed by John Sullivan.
1661
1662         * platform/graphics/win/FontCGWin.cpp:
1663         (WebCore::Font::drawGlyphs): Pass the result of
1664         WebCoreShouldUseFontSmoothing() into wkSetFontSmoothingStyle.
1665         * platform/win/WebCoreTextRenderer.cpp:
1666         (WebCore::WebCoreSetShouldUseFontSmoothing):
1667         (WebCore::WebCoreShouldUseFontSmoothing):
1668         Added.
1669         * platform/win/WebCoreTextRenderer.h:
1670
1671 2008-07-15  Adam Roben  <aroben@apple.com>
1672
1673         Windows build fix
1674
1675         * WebCore.vcproj/WebCore.vcproj: Add AccessibilityImageMapLink.{cpp,h}
1676         to the project.
1677
1678 2008-07-15  Holger Hans Peter Freyther  <zecke@selfish.org>
1679
1680         Build fix for the Gtk+ and Qt platform.
1681
1682         * GNUmakefile.am: Add AccessibilityImageMapLink.cpp to the build
1683         * WebCore.pro: Add AccessibilityImageMapLink.cpp to the build
1684
1685 2008-07-14  Dan Bernstein  <mitz@apple.com>
1686
1687         - Tiger build fix
1688
1689         * platform/mac/WidgetMac.mm:
1690         (WebCore::Widget::paint):
1691
1692 2008-07-14  Dan Bernstein  <mitz@apple.com>
1693
1694         Reviewed by John Sullivan.
1695
1696         - WebCore part of fixing <rdar://problem/6071850> Subviews not drawn correctly when using -cacheDisplayInRect:toBitmapImageRep:
1697
1698         * platform/mac/WidgetMac.mm:
1699         (WebCore::Widget::paint): Changed to account for the case of drawing
1700         into a bitmap context that is not a window's backing store. In that
1701         case, -displayRectIgnoringOpacity:inContext: is used to redirect the
1702         drawing to the correct context, after setting up the right transform
1703         on it. For subframes, additional code ensures that the scroll view will
1704         not paint the background behind a transparent frame.
1705
1706 2008-07-14  chris fleizach  <cfleizach@apple.com>
1707
1708         Reviewed by Beth Dakin
1709
1710         <rdar://problem/6038106> AXChildren returned for this web area is null
1711         Accessibility of image maps needed to be updated
1712
1713         Tests: accessibility/image-map1.html
1714                accessibility/image-map2.html
1715
1716         * WebCore.xcodeproj/project.pbxproj:
1717         * page/AXObjectCache.cpp:
1718         (WebCore::AXObjectCache::get):
1719         * page/AccessibilityImageMapLink.cpp: Added.
1720         (WebCore::AccessibilityImageMapLink::AccessibilityImageMapLink):
1721         (WebCore::AccessibilityImageMapLink::~AccessibilityImageMapLink):
1722         (WebCore::AccessibilityImageMapLink::create):
1723         (WebCore::AccessibilityImageMapLink::parentObject):
1724         (WebCore::AccessibilityImageMapLink::anchorElement):
1725         (WebCore::AccessibilityImageMapLink::accessibilityDescription):
1726         (WebCore::AccessibilityImageMapLink::title):
1727         (WebCore::AccessibilityImageMapLink::elementRect):
1728         (WebCore::AccessibilityImageMapLink::size):
1729         * page/AccessibilityImageMapLink.h: Added.
1730         (WebCore::AccessibilityImageMapLink::setHTMLAreaElement):
1731         (WebCore::AccessibilityImageMapLink::setHTMLMapElement):
1732         (WebCore::AccessibilityImageMapLink::roleValue):
1733         (WebCore::AccessibilityImageMapLink::accessibilityIsIgnored):
1734         (WebCore::AccessibilityImageMapLink::isLink):
1735         * page/AccessibilityListBoxOption.h:
1736         * page/AccessibilityObject.cpp:
1737         (WebCore::AccessibilityObject::selectedChildren):
1738         (WebCore::AccessibilityObject::visibleChildren):
1739         * page/AccessibilityObject.h:
1740         (WebCore::):
1741         * page/AccessibilityRenderObject.cpp:
1742         (WebCore::AccessibilityRenderObject::parentObject):
1743         (WebCore::AccessibilityRenderObject::isAnchor):
1744         (WebCore::AccessibilityRenderObject::anchorElement):
1745         (WebCore::AccessibilityRenderObject::helpText):
1746         (WebCore::AccessibilityRenderObject::intValue):
1747         (WebCore::AccessibilityRenderObject::stringValue):
1748         (WebCore::AccessibilityRenderObject::title):
1749         (WebCore::AccessibilityRenderObject::accessibilityDescription):
1750         (WebCore::AccessibilityRenderObject::elementRect):
1751         (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
1752         (WebCore::AccessibilityRenderObject::roleValue):
1753         (WebCore::AccessibilityRenderObject::canSetFocusAttribute):
1754         (WebCore::AccessibilityRenderObject::addChildren):
1755         * page/AccessibilityRenderObject.h:
1756         * page/mac/AccessibilityObjectWrapper.mm:
1757         (convertToNSArray):
1758         (RoleEntry::):
1759
1760 2008-07-14  Sam Weinig  <sam@webkit.org>
1761
1762         Rubber-stamped by David Hyatt.
1763
1764         Remove unused ExceptionCode parameter from compareDocumentPosition.
1765
1766         * dom/Document.cpp:
1767         (WebCore::Document::addStyleSheetCandidateNode):
1768         * dom/Node.cpp:
1769         (WebCore::Node::compareDocumentPosition):
1770         * dom/Node.h:
1771         * dom/Node.idl:
1772
1773 2008-07-14  David Hyatt  <hyatt@apple.com>
1774
1775         Fix for bugzilla bug 5476, link and style elements should be allowed outside the <head>.
1776
1777         Reviewed by Sam
1778
1779         Added fast/css/style-outside-head.html
1780         Added fast/css/link-outside-head.html
1781
1782         * dom/Document.cpp:
1783         (WebCore::Document::addStyleSheetCandidateNode):
1784         (WebCore::Document::removeStyleSheetCandidateNode):
1785         (WebCore::Document::recalcStyleSelector):
1786         * dom/Document.h:
1787         * dom/Node.cpp:
1788         (WebCore::Node::compareDocumentPosition):
1789         * dom/ProcessingInstruction.cpp:
1790         (WebCore::ProcessingInstruction::checkStyleSheet):
1791         (WebCore::ProcessingInstruction::insertedIntoDocument):
1792         (WebCore::ProcessingInstruction::removedFromDocument):
1793         (WebCore::ProcessingInstruction::finishParsingChildren):
1794         * dom/ProcessingInstruction.h:
1795         (WebCore::ProcessingInstruction::setCreatedByParser):
1796         * dom/StyleElement.cpp:
1797         (WebCore::StyleElement::removedFromDocument):
1798         * dom/XMLTokenizer.cpp:
1799         (WebCore::XMLTokenizer::startElementNs):
1800         (WebCore::XMLTokenizer::processingInstruction):
1801         (WebCore::):
1802         * html/HTMLElementFactory.cpp:
1803         (WebCore::linkConstructor):
1804         * html/HTMLLinkElement.cpp:
1805         (WebCore::HTMLLinkElement::HTMLLinkElement):
1806         (WebCore::HTMLLinkElement::insertedIntoDocument):
1807         (WebCore::HTMLLinkElement::removedFromDocument):
1808         (WebCore::HTMLLinkElement::finishParsingChildren):
1809         * html/HTMLLinkElement.h:
1810         (WebCore::HTMLLinkElement::setCreatedByParser):
1811         * html/HTMLStyleElement.cpp:
1812         (WebCore::HTMLStyleElement::insertedIntoDocument):
1813         (WebCore::HTMLStyleElement::removedFromDocument):
1814         * svg/SVGStyleElement.cpp:
1815         (WebCore::SVGStyleElement::insertedIntoDocument):
1816         (WebCore::SVGStyleElement::removedFromDocument):
1817
1818 2008-07-14  Sam Weinig  <sam@webkit.org>
1819
1820         Reviewed by Mark Rowe.
1821
1822         Sort interface extended attributes to appease *the* Mark Rowe.
1823
1824         * page/DOMWindow.idl:
1825
1826 2008-07-14  Anders Carlsson  <andersca@apple.com>
1827
1828         Reviewed by Geoff.
1829
1830         <rdar://problem/6073974>
1831         https://bugs.webkit.org/show_bug.cgi?id=18106
1832         The "onscroll" event bubbles, which is inconsistent with Firefox and IE
1833
1834         Don't bubble the scroll event.
1835         
1836         * rendering/RenderLayer.cpp:
1837         (WebCore::RenderLayer::scrollToOffset):
1838         * rendering/RenderListBox.cpp:
1839         (WebCore::RenderListBox::valueChanged):
1840
1841 2008-07-14  Adele Peterson  <adele@apple.com>
1842
1843         Reviewed by Geoff.
1844
1845         Fix for <rdar://problem/5784890> REGRESSION (Safari 3): Can't edit SpeedStream 4100 DSL modem settings
1846
1847         The web server on this particular piece of hardware doesn't handle "text/xml" in the 
1848         Accept header if the headers are sent in a certain order.  Safari 2 used to send "*/*" in 
1849         the Accept header.  Firefox 2 sent "text/xml" but in an acceptable order for the web 
1850         server.  And Firefox 3 doesn't send "text/xml" at all in the Accept header since it 
1851         is being deprecated in favor of "application/xml".  We decided that the best solution is 
1852         to match Firefox 3 and stop sending "text/xml" in the Accept header.
1853
1854         No test.  There appears to be no way to get the raw headers in the original order in perl/php.
1855
1856         * loader/FrameLoader.cpp: (WebCore::FrameLoader::addExtraFieldsToRequest):
1857
1858 2008-07-14  Sam Weinig  <sam@webkit.org>
1859
1860         Reviewed by Adele Peterson.
1861
1862         Fix for <rdar://problem/5769819>
1863
1864         Test: http/tests/security/cross-frame-access-object-prototype.html
1865
1866         * bindings/js/JSDOMWindowCustom.cpp:
1867         (WebCore::JSDOMWindow::getPropertyAttributes): Perform security check.
1868         (WebCore::JSDOMWindow::defineGetter): Ditto.
1869         (WebCore::JSDOMWindow::defineSetter): Ditto.
1870         (WebCore::JSDOMWindow::lookupGetter): Ditto.
1871         (WebCore::JSDOMWindow::lookupSetter): Ditto.
1872         * bindings/scripts/CodeGeneratorJS.pm: Add support for custom versions
1873         of all the core JSObject functionality.
1874         * page/DOMWindow.idl: Override remaining core JSObject functionality,
1875         to inject security checks.
1876
1877 2008-07-14  Adam Roben  <aroben@apple.com>
1878
1879         Windows build fixes
1880
1881         * WebCore.vcproj/WebCore.vcproj: Add include/pthreads to the include
1882         path.
1883         * bindings/scripts/CodeGeneratorCOM.pm: Touched this to force COM
1884         bindings to regenerate.
1885         * loader/FTPDirectoryDocument.cpp:
1886         * loader/FTPDirectoryParser.cpp:
1887         Fixed some duplicate macro definitions now that we're including
1888         pthread.h again.
1889
1890 2008-07-14  Alexey Proskuryakov  <ap@webkit.org>
1891
1892         Reviewed by Kevin McCullough.
1893
1894         Make JSGlobalData refcounted in preparation to adding a way to create contexts that share
1895         global data.
1896
1897         * bindings/js/JSDOMWindowBase.cpp:
1898         (WebCore::JSDOMWindowBase::commonJSGlobalData): Create JSGlobalData with create() method.
1899
1900 2008-07-14  Simon Hausmann  <hausmann@webkit.org>
1901
1902         Reviewed by Holger.
1903
1904         Make listDirectory() in the Qt port work with empty namefilters.
1905         Don't include . and .. to avoid scanning the parent directory.
1906
1907         * platform/qt/FileSystemQt.cpp:
1908         (WebCore::listDirectory):
1909
1910 2008-07-14  Alexey Proskuryakov  <ap@webkit.org>
1911
1912         Reviewed by Geoff Garen.
1913
1914         Eliminate per-thread JavaScript global data instance support and make arbitrary
1915         global data/global object combinations possible.
1916
1917         * bindings/js/JSDOMWindowBase.h:
1918         * bindings/js/JSDOMWindowBase.cpp: (WebCore::JSDOMWindowBase::commonJSGlobalData): Added.
1919         WebCore uses its own instance of JSGlobalData, as JSC no longer provides a per-thread one.
1920
1921         * bindings/js/JSDOMWindowShell.cpp:
1922         (WebCore::JSDOMWindowShell::JSDOMWindowShell):
1923         (WebCore::JSDOMWindowShell::operator new):
1924         * bindings/js/ScriptController.cpp:
1925         (WebCore::ScriptController::clear):
1926         * bindings/scripts/CodeGeneratorJS.pm:
1927         Pass commonJSGlobalData() as an allocator.
1928
1929         * bridge/c/c_utility.cpp:
1930         (KJS::Bindings::identifierFromNPIdentifier):
1931         * bridge/jni/jni_class.cpp:
1932         (JavaClass::JavaClass):
1933         * history/CachedPage.cpp:
1934         (WebCore::CachedPage::restore):
1935         * storage/Database.cpp:
1936         (WebCore::Database::Database):
1937         * bindings/js/GCController.cpp:
1938         (WebCore::collect):
1939         (WebCore::GCController::gcTimerFired):
1940         (WebCore::GCController::garbageCollectNow):
1941         Use JSDOMWindow::commonJSGlobalData().
1942
1943         * ForwardingHeaders/wtf/ThreadSpecific.h: Added (collector.h now includes this header, so
1944         it need to be accesible outside of JSC).
1945
1946         * WebCore.base.exp: Export JSDOMWindowBase::commonJSGlobalData().
1947
1948 2008-07-14  Ariya Hidayat  <ariya.hidayat@trolltech.com>
1949
1950         Reviewed by Simon.
1951
1952         MinGW build fixes
1953
1954         * plugins/win/PluginDatabaseWin.cpp:
1955         * plugins/win/PluginViewWin.cpp:
1956         (WebCore::PluginView::handleKeyboardEvent):
1957         (WebCore::PluginView::handleMouseEvent):
1958         * svg/SynchronizableTypeWrapper.h:
1959         (WebCore::::SynchronizableTypeWrapper):
1960
1961 2008-07-13  Sam Weinig  <sam@webkit.org>
1962
1963         Reviewed by Oliver Hunt and Dan Bernstein.
1964
1965         Fix for <rdar://problem/5888127>
1966         https://bugs.webkit.org/show_bug.cgi?id=18699
1967
1968         - Match Firefox in restricting the size of custom cursor to images to
1969           128x128 px.
1970         - Restrict custom cursor hotspots to values within the bounds of the
1971           cursor image.
1972
1973         * manual-tests/cursor-max-size.html: Added.
1974         * page/EventHandler.cpp:
1975         (WebCore::EventHandler::selectCursor):
1976
1977 2008-07-13  Kevin Ollivier  <kevino@theolliviers.com>
1978
1979         wx build fix.
1980
1981         * platform/graphics/wx/AffineTransformWx.cpp:
1982         (WebCore::AffineTransform::a):
1983         (WebCore::AffineTransform::b):
1984         (WebCore::AffineTransform::c):
1985         (WebCore::AffineTransform::d):
1986         (WebCore::AffineTransform::e):
1987         (WebCore::AffineTransform::f):
1988
1989 2008-07-12  Dan Bernstein  <mitz@apple.com>
1990
1991         Reviewed by Oliver Hunt.
1992
1993         - fix https://bugs.webkit.org/show_bug.cgi?id=18088
1994           <rdar://problem/6036232> white-space:nowrap; float:left; causing the misalignment issue
1995
1996         Test: fast/block/basic/min-pref-width-nowrap-floats.html
1997
1998         * rendering/RenderBlock.cpp:
1999         (WebCore::RenderBlock::calcInlinePrefWidths): Fixed a case where a
2000         float's width was added to the minimum preferred widths instead of just
2001         acting as a lower bound on the minimum preferred width (since the float
2002         can always be pushed down to be the only thing on the line).
2003
2004 2008-07-12  David D. Kilzer  <ddkilzer@webkit.org>
2005
2006         Bug 13067: Manually adding #hash to URL reloads entire page instead of jumping to #hash location in cached page
2007
2008         <https://bugs.webkit.org/show_bug.cgi?id=13067>
2009
2010         Reviewed by Darin.
2011
2012         Test: WebCore/manual-tests/hash-ref.html
2013
2014         * loader/FrameLoader.cpp:
2015         (WebCore::FrameLoader::load(const KURL& newURL, const String& referrer,
2016              FrameLoadType newLoadType, const String& frameName, Event* event,
2017              PassRefPtr<FormState> formState)): Extracted logic into
2018         shouldScrollToAnchor() for determining when to scroll to an anchor.
2019
2020         (WebCore::FrameLoader::load(DocumentLoader* loader, FrameLoadType type,
2021              PassRefPtr<FormState> formState)): Added check for
2022         shouldScrollToAnchor() to catch cases when the user manually added a
2023         hash ref to the URL in the address bar.  This is the bug fix.
2024
2025         (WebCore::FrameLoader::shouldReload): Simplified early return logic.
2026         We only need to check if the destinationURL has a hash ref, not the
2027         currentURL, per the comment in the method.
2028
2029         (WebCore::FrameLoader::shouldScrollToAnchor): Added.  Logic extracted
2030         from the FrameLoader::load(const KURL& newURL, ...) method.  Fixed order
2031         of arguments to shouldReload() since they were backwards, although the
2032         previous logic in the method made this irrelevant.
2033
2034         (WebCore::FrameLoader::loadItem): Removed call to shouldReload().  Since
2035         we're navigating to a HistoryItem, it doesn't make sense to ask whether
2036         we need to reload the page or not.  Additionally, the logic at the end
2037         of shouldReload() is also checked in urlsMatchItem(), so there's no need
2038         to call the method.  This fixed the fast/css/target-fragment-match.html
2039         test from continuously reloading after the other changes.
2040
2041         * loader/FrameLoader.h:
2042         (WebCore::FrameLoader::shouldScrollToAnchor): Added.
2043
2044         * manual-tests/hash-ref.html: Added.
2045         * manual-tests/resources/hash-ref-test.html: Added.
2046
2047 2008-07-11  Stephanie Lewis  <slewis@apple.com>
2048
2049         Reviewed by Darin Adler.
2050
2051         No Functionality Changed.  Change all the leak counting code to use the new WTF leak counter class.
2052
2053         * bindings/js/JSCustomSQLTransactionCallback.cpp:
2054         (WebCore::JSCustomSQLTransactionCallback::JSCustomSQLTransactionCallback):
2055         (WebCore::JSCustomSQLTransactionCallback::~JSCustomSQLTransactionCallback):
2056         * bindings/js/JSEventListener.cpp:
2057         (WebCore::JSEventListener::JSEventListener):
2058         (WebCore::JSEventListener::~JSEventListener):
2059         * dom/Node.cpp:
2060         (WebCore::Node::Node):
2061         (WebCore::Node::~Node):
2062         * dom/Range.cpp:
2063         (WebCore::Range::Range):
2064         (WebCore::Range::~Range):
2065         * history/CachedPage.cpp:
2066         (WebCore::CachedPage::CachedPage):
2067         (WebCore::CachedPage::~CachedPage):
2068         * loader/SubresourceLoader.cpp:
2069         (WebCore::SubresourceLoader::SubresourceLoader):
2070         (WebCore::SubresourceLoader::~SubresourceLoader):
2071         * page/Frame.cpp:
2072         (WebCore::Frame::Frame):
2073         (WebCore::Frame::~Frame):
2074         * page/Page.cpp:
2075         (WebCore::Page::Page):
2076         (WebCore::Page::~Page):
2077         * rendering/RenderObject.cpp:
2078         (WebCore::RenderObject::RenderObject):
2079         (WebCore::RenderObject::~RenderObject):
2080         * rendering/bidi.cpp:
2081         (WebCore::throw):
2082         (WebCore::BidiRun::operator delete):
2083
2084 2008-07-11  Sam Weinig  <sam@webkit.org>
2085
2086         Reviewed by Mark Rowe.
2087
2088         Update getSubStringLength and selectSubString methods exception throwing conditions
2089         based on SVG working group errata.
2090
2091         Test: svg/custom/selectSubString.html
2092
2093         * svg/SVGTextContentElement.cpp:
2094         (WebCore::SVGTextContentElement::getSubStringLength):
2095         (WebCore::SVGTextContentElement::selectSubString):
2096
2097 2008-07-11  Sam Weinig  <sam@webkit.org>
2098
2099         Reviewed by Mark Rowe.
2100
2101         We can only use the Id fast path for querySelector and querySelectorAll
2102         if the selector is purely an Id selector.
2103
2104         Test: fast/dom/SelectorAPI/id-fastpath.html
2105
2106         * dom/Node.cpp:
2107         (WebCore::Node::querySelector):
2108         * dom/SelectorNodeList.cpp:
2109         (WebCore::createSelectorNodeList):
2110
2111 2008-07-11  David Hyatt  <hyatt@apple.com>
2112
2113         Implement the DOM level 3 compareDocumentPosition method on Node.
2114
2115         Reviewed by Darin
2116
2117         * dom/Node.cpp:
2118         (WebCore::Node::compareDocumentPosition):
2119         * dom/Node.h:
2120         * dom/Node.idl:
2121
2122 2008-07-11  Brady Eidson  <beidson@apple.com>
2123
2124         Rubberstamped by Sam
2125
2126         Removed unneeded export
2127
2128         * WebCore.base.exp:
2129
2130 2008-07-11  Kevin McCullough  <kmccullough@apple.com>
2131
2132         Reviewed by Geoff.
2133
2134         <rdar://problem/6067178> REGRESSION: Start profile button in profiler
2135         now profiles inspector rather than actual page (19833)
2136         - The JSQuarantinedObjectWrapper should use the wrapped exec state
2137         so that calls to it execute in its quarantined world.
2138
2139         * bindings/js/JSQuarantinedObjectWrapper.cpp:
2140         (WebCore::JSQuarantinedObjectWrapper::construct):
2141         (WebCore::JSQuarantinedObjectWrapper::call):
2142
2143 2008-07-11  Simon Fraser  <simon.fraser@apple.com>
2144
2145         Reviewed by Dave Hyatt
2146
2147         StyleRareNonInheritedData needs to initialize and compare
2148         m_maskBoxImage.
2149         <https://bugs.webkit.org/show_bug.cgi?id=20005>
2150
2151         * rendering/style/RenderStyle.cpp:
2152         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
2153         (WebCore::StyleRareNonInheritedData::operator==):
2154
2155 2008-07-11  Simon Fraser  <simon.fraser@apple.com>
2156
2157         Reviewed by Dave Hyatt
2158
2159         Bug 18885: RenderLayer::enclosingPositionedAncestor() should
2160         look for transforms, since transforms create containing
2161         blocks.
2162         <https://bugs.webkit.org/show_bug.cgi?id=18885>
2163
2164         Test: fast/transforms/transform-positioned-ancestor.html
2165
2166         * rendering/RenderLayer.cpp:
2167         (WebCore::RenderLayer::stackingContext):
2168         (WebCore::RenderLayer::enclosingPositionedAncestor):
2169         (WebCore::RenderLayer::enclosingTransformedAncestor):
2170
2171 2008-07-11  Jacob Refstrup  <jacob.refstrup@hp.com>
2172
2173         Reviewed by Darin Adler
2174
2175         http://bugs.webkit.org/show_bug.cgi?id=19978
2176         GTK port always ends up with # at the end of resource URLs (and hence can't load files)
2177
2178         - Optimized KURL::removeRef() and used it rather than setRef("")
2179           which after r35040 does the wrong thing.
2180
2181         * platform/KURL.cpp:
2182         (WebCore::KURL::removeRef):
2183         * platform/network/curl/ResourceHandleManager.cpp:
2184         (WebCore::ResourceHandleManager::initializeHandle):
2185
2186 2008-07-11  Simon Hausmann  <hausmann@webkit.org>
2187
2188         Fix the Qt/Windows build, include windows.h for HWND directly
2189         instead of implicit inclusion through Timer.h.
2190
2191         * plugins/win/PluginMessageThrottlerWin.h:
2192
2193 2008-07-11  Dan Bernstein  <mitz@apple.com>
2194
2195         Reviewed by Darin Adler.
2196
2197         - fix popularity tracking for cached resources, which regressed in r23923
2198
2199         * loader/Cache.cpp:
2200         (WebCore::Cache::requestResource): Changed to increase the access count
2201         whenever this function returns a CachedResource and the cache is
2202         enabled, instead of only when creating a new CachedResources. The
2203         incorrect behavior resulted in all resources in the cache having an
2204         access count of exactly 1 at all times.
2205         (WebCore::Cache::requestUserCSSStyleSheet): Ditto.
2206
2207 2008-07-11  Ariya Hidayat  <ariya.hidayat@trolltech.com>
2208
2209         Reviewed by Simon.
2210
2211         Enable Netscape plugins for the Qt/Windows build.
2212
2213         This required various smaller fixes across a wider set of
2214         files described below.
2215
2216         * WebCore.pro: Add various windows specific files to the build.
2217         * page/Page.h: Extend the #ifdeffery for windows types to include the
2218         Qt/Windows build.
2219         * platform/graphics/GraphicsContext.h: Added inTransparencyLayer() for
2220         the Qt port, as PluginViewWin.cpp uses it.
2221         * platform/graphics/qt/GraphicsContextQt.cpp:
2222         (WebCore::GraphicsContext::inTransparencyLayer): Implemented function.
2223         * platform/qt/TemporaryLinkStubs.cpp: Mask out some stubs as they
2224         are now implemented through *Win.cpp files.
2225         * plugins/PluginDatabase.cpp: Change PLATFORM(WIN) to WIN_OS.
2226         * plugins/PluginView.cpp: Change PLATFORM(WIN) to WIN_OS.
2227         (WebCore::PluginView::setFrameGeometry): Ditto.
2228         (WebCore::PluginView::PluginView): Ditto.
2229         * plugins/PluginView.h: Introduce the PlatformPluginWidget typedef,
2230         which expands to HWND directly for the Qt/Windows build and
2231         PlatformWidget for the remaining platforms. That is because
2232         PlatformWidget is QWidget* for the Qt build but for the plugin
2233         window we need a native window, aka HWND.
2234         * plugins/win/PluginPackageWin.cpp: Fix compilation, include shlwapi.h
2235         after config.h.
2236         * plugins/win/PluginViewWin.cpp:
2237         (windowHandleForPlatformWidget): Added a little helper function to
2238         determine the HWND from a PlatformWidget.
2239         (WebCore::registerPluginView): For the Qt port we need to set the
2240         global application instance handle here in the library, as the
2241         browser doesn't do it.
2242         (WebCore::PluginView::handleMouseEvent): Mask out
2243         ignoreNextSetCursor/lastSetCursor for the Qt port, it's not used.
2244         (WebCore::PluginView::invalidateRect): Convert from IntRect to RECT
2245         manually just here to avoid compiling in IntRectWin.cpp.
2246         (WebCore::PluginView::invalidateRegion): Ditto.
2247         (WebCore::PluginView::forceRedraw): Call windowHandleForPlatformWidget
2248         on containingWindow() to get the correct HWND for the Qt port.
2249         (WebCore::PluginView::init): Determine the parent HWND for m_window
2250         using windowHandleForPlatformWidget.
2251
2252 2008-07-11  Simon Hausmann  <hausmann@webkit.org>
2253
2254         Rubber-stamped by Holger.
2255
2256         Enable Database and Icondatabase functionality for the Qt/Windows
2257         build when building inside Qt, as we can use the builtin copy of
2258         sqlite then.
2259
2260         * WebCore.pro:
2261
2262 2008-07-11  Ariya Hidayat  <ariya.hidayat@trolltech.com>
2263
2264         Reviewed by Adam Roben.
2265
2266         Fix compile with MinGW since it does not like friend static function.
2267
2268         * plugins/PluginView.h:
2269         * plugins/win/PluginViewWin.cpp:
2270
2271 2008-07-11  Ariya Hidayat  <ariya.hidayat@trolltech.com>
2272
2273         Reviewed by Simon.
2274
2275         Fix Qt/Win32 build.
2276
2277         * platform/graphics/qt/GraphicsContextQt.cpp:
2278
2279 2008-07-10  Sam Weinig  <sam@webkit.org>
2280
2281         Reviewed by Oliver Hunt.
2282
2283         Add support for NSResolver to resolve namespaces for querySelector 
2284         and querySelectorAll.
2285
2286         - Namespace resolution is done after parsing by iterating over all the
2287           parts of the CSSSelector.
2288
2289         Tests: fast/dom/SelectorAPI/NSResolver-basic.xhtml
2290                fast/dom/SelectorAPI/NSResolver-exceptions.xhtml
2291
2292         * GNUmakefile.am: Updated with new files.
2293         * WebCore.pro: Ditto.
2294         * WebCore.vcproj/WebCore.vcproj: Ditto.
2295         * WebCore.xcodeproj/project.pbxproj: Ditto.
2296         * WebCoreSources.bkl: Ditto.
2297
2298         * bindings/js/JSDOMBinding.cpp:
2299         (WebCore::execStateFromNode):
2300         * bindings/js/JSDOMBinding.h:
2301         Move execStateFromNode here from NodeFilter.
2302
2303         * bindings/js/JSDocumentCustom.cpp:
2304         (WebCore::JSDocument::querySelector): Don't throw a NOT_SUPPORTED_ERR for NSResolver
2305         and instead create one if the argument is not undefined or null.
2306         (WebCore::JSDocument::querySelectorAll): Ditto.
2307         * bindings/js/JSDocumentFragmentCustom.cpp:
2308         (WebCore::JSDocumentFragment::querySelector): Ditto.
2309         (WebCore::JSDocumentFragment::querySelectorAll): Ditto.
2310         * bindings/js/JSElementCustom.cpp:
2311         (WebCore::JSElement::querySelector): Ditto.
2312         (WebCore::JSElement::querySelectorAll): Ditto.
2313
2314         * bindings/js/JSNSResolver.cpp: Added.
2315         (WebCore::JSNSResolver::JSNSResolver):
2316         (WebCore::JSNSResolver::mark):
2317         (WebCore::JSNSResolver::lookupNamespaceURI): Try and get the function
2318         from the passed in argument, either the value itself, or the result of
2319         getting the lookupNamespaceURI property, and call it.
2320         (WebCore::toNSResolver):
2321         * bindings/js/JSNSResolver.h: Added.
2322         (WebCore::JSNSResolver::create):
2323
2324         * dom/Document.idl: Update with NSResolver parameter.
2325         * dom/DocumentFragment.idl: Ditto.
2326         * dom/Element.idl: Ditto.
2327
2328         * dom/NSResolver.h: Added.
2329         (WebCore::NSResolver::~NSResolver):
2330         (WebCore::NSResolver::mark):
2331         Abstract base class.
2332
2333         * dom/NSResolver.idl: Added.
2334
2335         * dom/Node.cpp:
2336         (WebCore::forEachTagSelector):
2337         (WebCore::forEachSelector):
2338         Functions to iterate over all parts of the selector.
2339
2340         (WebCore::SelectorNeedsNamespaceResolutionFunctor::operator()):
2341         Functor to be passed to forEachSelector to determine if a selector
2342         needs namespace resolution, for the case when no NSResolver is passed
2343         and we need to determine whether to throw a NAMESPACE_ERR.
2344
2345         (WebCore::ResolveNamespaceFunctor::ResolveNamespaceFunctor):
2346         (WebCore::ResolveNamespaceFunctor::operator()):
2347         Functor to resolve namespaces for the selector.
2348
2349         (WebCore::selectorNeedsNamespaceResolution):
2350         (WebCore::resolveNamespacesForSelector):
2351         (WebCore::Node::querySelector): Resolve namepspaces, including the defaultNamespace
2352         if a NSResolver is passed in.
2353         (WebCore::Node::querySelectorAll): Ditto.
2354         * dom/Node.h:
2355
2356         * dom/NodeFilter.cpp:
2357         * dom/NodeFilter.h:
2358         * dom/NodeIterator.h:
2359         (WebCore::NodeIterator::nextNode):
2360         (WebCore::NodeIterator::previousNode):
2361         * dom/TreeWalker.h:
2362         (WebCore::TreeWalker::parentNode):
2363         (WebCore::TreeWalker::firstChild):
2364         (WebCore::TreeWalker::lastChild):
2365         (WebCore::TreeWalker::previousSibling):
2366         (WebCore::TreeWalker::nextSibling):
2367         (WebCore::TreeWalker::previousNode):
2368         (WebCore::TreeWalker::nextNode):
2369         Use the version of execStateFromNode in JSDOMBinding.
2370
2371 2008-07-10  Mark Rowe  <mrowe@apple.com>
2372
2373         Reviewed by Sam Weinig.
2374
2375         Define WEBKIT_VERSION_MIN_REQUIRED=WEBKIT_VERSION_LATEST when building WebKit to ensure that no symbols end up with the weak_import attribute.
2376
2377         * Configurations/WebCore.xcconfig:
2378
2379 2008-07-10  Dean Jackson  <dino@apple.com>
2380
2381         Reviewed by hyatt.
2382
2383         Calculate computed style for -webkit-transform property
2384         https://bugs.webkit.org/show_bug.cgi?id=19864
2385
2386         Test: css3/transform-computed-style-001.html
2387
2388         * css/CSSComputedStyleDeclaration.cpp:
2389         (WebCore::computedTransform):
2390         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
2391             handles -webkit-transform property now
2392         * manual-tests/computed-transform-value.html: Added.
2393
2394 2008-07-10  Dan Bernstein  <mitz@apple.com>
2395
2396         Reviewed by Adam Roben.
2397
2398         - fix a parse error in inspector.js
2399
2400         * page/inspector/inspector.js: Added missing brace.
2401
2402 2008-07-10  Adam Roben  <aroben@apple.com>
2403
2404         Build fix
2405
2406         * WebCore.vcproj/QTMovieWin.vcproj: Add
2407         OSXCompatibilityHeaders[/GNUCompatibility] to the include path.
2408
2409 2008-07-10  Chris Fleizach  <cfleizach@apple.com>
2410
2411         Reviewed by Dan Bernstein
2412
2413         <rdar://problem/6067408> AX: internal anchors broken
2414
2415         * page/AccessibilityRenderObject.cpp:
2416         (WebCore::AccessibilityRenderObject::internalLinkElement):
2417         * platform/KURL.cpp:
2418         (WebCore::KURL::removeRef):
2419         * platform/KURL.h:
2420
2421 2008-07-10  Mark Rowe  <mrowe@apple.com>
2422
2423         Build fix.
2424
2425         * bridge/npapi.h: Remove extra comma.
2426
2427 2008-07-10  Sam Weinig  <sam@webkit.org>
2428
2429         Reviewed by Mark Rowe.
2430
2431         Remove no-op debug method.
2432
2433         * css/CSSSelector.cpp:
2434         * css/CSSSelector.h:
2435
2436 2008-07-10  Sam Weinig  <sam@webkit.org>
2437
2438         Reviewed by Dave Hyatt and Darin Adler.
2439
2440         Add support for calling querySelector and querySelectorAll on DocumentFragments
2441
2442         - Fixes bug where nodes not in the document tree would not match based on ID due
2443           to over optimization.
2444
2445         Test: fast/dom/SelectorAPI/detached-element.html
2446
2447         * GNUmakefile.am:
2448         * WebCore.pro:
2449         * WebCore.vcproj/WebCore.vcproj:
2450         * WebCore.xcodeproj/project.pbxproj:
2451         * WebCoreSources.bkl:
2452         * bindings/js/JSDocumentFragmentCustom.cpp: Added.
2453         (WebCore::JSDocumentFragment::querySelector): Add custom code matching JSElement
2454         and JSDocument that checks for a 2nd arguments and throws an exception indicating
2455         we do not currently support the optional NSResolver part of the Selectors API spec.
2456         (WebCore::JSDocumentFragment::querySelectorAll): Ditto.
2457         * dom/DocumentFragment.idl: Add querySelector and querySelectorAll declarations.
2458
2459         * dom/Node.cpp:
2460         (WebCore::Node::querySelector): Make the CSS parser parse the selector
2461         according to the strictness of the document so that mixed case ID selectors
2462         match in quirks mode.  Also, don't use the fast ID path if the root is not
2463         in the DOM tree, as it won't work.
2464         (WebCore::Node::querySelectorAll): Ditto.
2465         * dom/SelectorNodeList.cpp:
2466         (WebCore::createSelectorNodeList): Don't use the fast ID path if the root is not
2467         in the DOM tree, as it won't work.
2468
2469 2008-07-10  Anthony Ricaud  <rik24d@gmail.com>
2470
2471         Bug 19389: querySelectorAll exception while searching invalid CSS selector
2472         <https://bugs.webkit.org/show_bug.cgi?id=19389>
2473
2474         Reviewed by Tim Hatcher.
2475
2476         * page/inspector/inspector.js: Added a try/catch block.
2477
2478 2008-07-10  Brent Fulgham  <bfulgham@gmail.com>
2479
2480         Correct a build regression due to an uninitialized variable.
2481
2482         <https://bugs.webkit.org/show_bug.cgi?id=19976>
2483
2484         Reviewed by Darin.
2485
2486         * platform/graphics/cairo/FontCairo.cpp:
2487         (WebCore::Font::drawGlyphs):
2488
2489 2008-07-10  Adam Roben  <aroben@apple.com>
2490
2491         Fix Bug 19580: REGRESSION (r34432): PGO-only crash in
2492         HTMLCollection::resetCollectionInfo (codegen issue?)
2493
2494         <https://bugs.webkit.org/show_bug.cgi?id=19580>
2495         <rdar://6029794>
2496
2497         Reviewed by Cameron Zwarich.
2498
2499         * WebCore.vcproj/WebCore.vcproj: Disable LTCG for HTMLFormElement.cpp,
2500         which was causing some bad codegen in HTMLFormElement::elements.
2501         * html/HTMLFormElement.cpp: Touched this file to force it to rebuild.
2502
2503 2008-07-10  Anders Carlsson  <andersca@apple.com>
2504
2505         Reviewed by Jon.
2506
2507         <rdar://problem/6067135>
2508         WebKit should respond true to a query for NPNVSupportsWindowless.
2509         
2510         Handle NPNVSupportsWindowless and return true.
2511         
2512         * bridge/npapi.h:
2513         * plugins/win/PluginViewWin.cpp:
2514         (WebCore::PluginView::getValue):
2515
2516 2008-07-10  Kevin McCullough  <kmccullough@apple.com>
2517
2518         Reviewed by Darin.
2519
2520         -Minor cleanup. Renamed callTree() to head() and no longer use m_head
2521         directly but instead keep it private and access via a method().
2522
2523         * page/JavaScriptProfile.cpp:
2524         (WebCore::getHeadCallback):
2525
2526 2008-07-10  Simon Fraser  <simon.fraser@apple.com>
2527
2528         When a mask image changes, ensure that elements
2529         that use that mask image are repainted correctly.
2530         
2531         <https://bugs.webkit.org/show_bug.cgi?id=19954>
2532         
2533         Reviewed by Dave Hyatt
2534
2535         * manual-tests/canvas-mask-redraw.html
2536           Manual testcase
2537         * rendering/RenderBox.cpp:
2538         (WebCore::RenderBox::imageChanged):
2539         (WebCore::RenderBox::repaintLayerRectsForImage):
2540         * rendering/RenderBox.h:
2541         Loop through background layers and mask layers, and
2542         if this image is used in a layer, compute a repaint
2543         rect and repaint.
2544         * rendering/RenderImage.cpp:
2545         (WebCore::RenderImage::imageChanged):
2546         If this image has a mask, call the base class method.
2547         * rendering/RenderObject.cpp:
2548         Remove a bogus 'return'.
2549
2550 2008-07-10  Simon Fraser  <simon.fraser@apple.com>
2551
2552         Transforms create a containing block, so
2553         RenderLayer::shouldBeOverflowOnly() needs to look for transforms.
2554         <https://bugs.webkit.org/show_bug.cgi?id=18886>
2555         
2556         Reviewed by Dave Hyatt
2557
2558         Test: fast/transforms/transform-overflow.html
2559
2560         * rendering/RenderLayer.cpp:
2561         (WebCore::RenderLayer::shouldBeOverflowOnly):
2562
2563 2008-07-09  Alex Mathews  <possessedpenguinbob@gmail.com>
2564
2565         Reviewed by Oliver Hunt.
2566
2567         bug 19835: WebKit needs cross-platform filter system
2568         <https://bugs.webkit.org/show_bug.cgi?id=19835>
2569
2570         More class refactoring in preparation for cross-platform filter 
2571         implementation.
2572
2573         * WebCore.xcodeproj/project.pbxproj:
2574         * rendering/SVGRenderTreeAsText.h:
2575         (WebCore::operator<<):
2576         * svg/FilterEffect.cpp:
2577         (WebCore::FilterEffect::externalRepresentation):
2578         * svg/FilterEffect.h:
2579         * svg/SVGFEBlendElement.cpp:
2580         (WebCore::SVGFEBlendElement::build):
2581         * svg/SVGFEBlendElement.h:
2582         * svg/SVGFEColorMatrixElement.cpp:
2583         (WebCore::SVGFEColorMatrixElement::build):
2584         * svg/SVGFEColorMatrixElement.h:
2585         * svg/SVGFEComponentTransferElement.cpp:
2586         (WebCore::SVGFEComponentTransferElement::build):
2587         * svg/SVGFEComponentTransferElement.h:
2588         * svg/SVGFECompositeElement.cpp:
2589         (WebCore::SVGFECompositeElement::build):
2590         * svg/SVGFECompositeElement.h:
2591         * svg/SVGFEDiffuseLightingElement.cpp:
2592         (WebCore::SVGFEDiffuseLightingElement::filterEffect):
2593         (WebCore::SVGFEDiffuseLightingElement::build):
2594         (WebCore::SVGFEDiffuseLightingElement::findLights):
2595         * svg/SVGFEDiffuseLightingElement.h:
2596         * svg/SVGFEDisplacementMapElement.cpp:
2597         (WebCore::SVGFEDisplacementMapElement::SVGFEDisplacementMapElement):
2598         (WebCore::SVGFEDisplacementMapElement::stringToChannel):
2599         (WebCore::SVGFEDisplacementMapElement::filterEffect):
2600         (WebCore::SVGFEDisplacementMapElement::build):
2601         * svg/SVGFEDisplacementMapElement.h:
2602         * svg/SVGFEFloodElement.cpp:
2603         (WebCore::SVGFEFloodElement::filterEffect):
2604         (WebCore::SVGFEFloodElement::build):
2605         * svg/SVGFEFloodElement.h:
2606         (WebCore::SVGFEFloodElement::contextElement):
2607         * svg/SVGFEGaussianBlurElement.cpp:
2608         (WebCore::SVGFEGaussianBlurElement::filterEffect):
2609         (WebCore::SVGFEGaussianBlurElement::build):
2610         * svg/SVGFEGaussianBlurElement.h:
2611         * svg/SVGFEImageElement.cpp:
2612         (WebCore::SVGFEImageElement::filterEffect):
2613         (WebCore::SVGFEImageElement::build):
2614         * svg/SVGFEImageElement.h:
2615         * svg/SVGFEMergeElement.cpp:
2616         (WebCore::SVGFEMergeElement::filterEffect):
2617         (WebCore::SVGFEMergeElement::build):
2618         * svg/SVGFEMergeElement.h:
2619         (WebCore::SVGFEMergeElement::contextElement):
2620         * svg/SVGFEOffsetElement.cpp:
2621         (WebCore::SVGFEOffsetElement::filterEffect):
2622         (WebCore::SVGFEOffsetElement::build):
2623         * svg/SVGFEOffsetElement.h:
2624         * svg/SVGFESpecularLightingElement.cpp:
2625         (WebCore::SVGFESpecularLightingElement::filterEffect):
2626         (WebCore::SVGFESpecularLightingElement::findLights):
2627         (WebCore::SVGFESpecularLightingElement::build):
2628         * svg/SVGFESpecularLightingElement.h:
2629         * svg/SVGFETileElement.cpp:
2630         (WebCore::SVGFETileElement::filterEffect):
2631         (WebCore::SVGFETileElement::build):
2632         * svg/SVGFETileElement.h:
2633         * svg/SVGFETurbulenceElement.cpp:
2634         (WebCore::SVGFETurbulenceElement::SVGFETurbulenceElement):
2635         (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
2636         (WebCore::SVGFETurbulenceElement::filterEffect):
2637         (WebCore::SVGFETurbulenceElement::build):
2638         * svg/SVGFETurbulenceElement.h:
2639         * svg/SVGFilterPrimitiveStandardAttributes.h:
2640         * svg/graphics/filters/SVGFEConvolveMatrix.cpp:
2641         (WebCore::FEConvolveMatrix::FEConvolveMatrix):
2642         (WebCore::FEConvolveMatrix::create):
2643         (WebCore::FEConvolveMatrix::kernelSize):
2644         (WebCore::FEConvolveMatrix::setKernelSize):
2645         (WebCore::FEConvolveMatrix::kernel):
2646         (WebCore::FEConvolveMatrix::setKernel):
2647         (WebCore::FEConvolveMatrix::divisor):
2648         (WebCore::FEConvolveMatrix::setDivisor):
2649         (WebCore::FEConvolveMatrix::bias):
2650         (WebCore::FEConvolveMatrix::setBias):
2651         (WebCore::FEConvolveMatrix::targetOffset):
2652         (WebCore::FEConvolveMatrix::setTargetOffset):
2653         (WebCore::FEConvolveMatrix::edgeMode):
2654         (WebCore::FEConvolveMatrix::setEdgeMode):
2655         (WebCore::FEConvolveMatrix::kernelUnitLength):
2656         (WebCore::FEConvolveMatrix::setKernelUnitLength):
2657         (WebCore::FEConvolveMatrix::preserveAlpha):
2658         (WebCore::FEConvolveMatrix::setPreserveAlpha):
2659         (WebCore::FEConvolveMatrix::apply):
2660         (WebCore::FEConvolveMatrix::dump):
2661         (WebCore::operator<<):
2662         (WebCore::FEConvolveMatrix::externalRepresentation):
2663         * svg/graphics/filters/SVGFEConvolveMatrix.h:
2664         (WebCore::):
2665         * svg/graphics/filters/SVGFEDiffuseLighting.cpp:
2666         (WebCore::FEDiffuseLighting::FEDiffuseLighting):
2667         (WebCore::FEDiffuseLighting::create):
2668         (WebCore::FEDiffuseLighting::~FEDiffuseLighting):
2669         (WebCore::FEDiffuseLighting::lightingColor):
2670         (WebCore::FEDiffuseLighting::setLightingColor):
2671         (WebCore::FEDiffuseLighting::surfaceScale):
2672         (WebCore::FEDiffuseLighting::setSurfaceScale):
2673         (WebCore::FEDiffuseLighting::diffuseConstant):
2674         (WebCore::FEDiffuseLighting::setDiffuseConstant):
2675         (WebCore::FEDiffuseLighting::kernelUnitLengthX):
2676         (WebCore::FEDiffuseLighting::setKernelUnitLengthX):
2677         (WebCore::FEDiffuseLighting::kernelUnitLengthY):
2678         (WebCore::FEDiffuseLighting::setKernelUnitLengthY):
2679         (WebCore::FEDiffuseLighting::lightSource):
2680         (WebCore::FEDiffuseLighting::setLightSource):
2681         (WebCore::FEDiffuseLighting::apply):
2682         (WebCore::FEDiffuseLighting::dump):
2683         (WebCore::FEDiffuseLighting::externalRepresentation):
2684         * svg/graphics/filters/SVGFEDiffuseLighting.h:
2685         * svg/graphics/filters/SVGFEDisplacementMap.cpp:
2686         (WebCore::FEDisplacementMap::FEDisplacementMap):
2687         (WebCore::FEDisplacementMap::create):
2688         (WebCore::FEDisplacementMap::xChannelSelector):
2689         (WebCore::FEDisplacementMap::setXChannelSelector):
2690         (WebCore::FEDisplacementMap::yChannelSelector):
2691         (WebCore::FEDisplacementMap::setYChannelSelector):
2692         (WebCore::FEDisplacementMap::scale):
2693         (WebCore::FEDisplacementMap::setScale):
2694         (WebCore::FEDisplacementMap::apply):
2695         (WebCore::FEDisplacementMap::dump):
2696         (WebCore::operator<<):
2697         (WebCore::FEDisplacementMap::externalRepresentation):
2698         * svg/graphics/filters/SVGFEDisplacementMap.h:
2699         (WebCore::):
2700         * svg/graphics/filters/SVGFEFlood.cpp:
2701         (WebCore::FEFlood::FEFlood):
2702         (WebCore::FEFlood::create):
2703         (WebCore::FEFlood::floodColor):
2704         (WebCore::FEFlood::setFloodColor):
2705         (WebCore::FEFlood::floodOpacity):
2706         (WebCore::FEFlood::setFloodOpacity):
2707         (WebCore::FEFlood::apply):
2708         (WebCore::FEFlood::dump):
2709         (WebCore::FEFlood::externalRepresentation):
2710         * svg/graphics/filters/SVGFEFlood.h:
2711         * svg/graphics/filters/SVGFEGaussianBlur.cpp:
2712         (WebCore::FEGaussianBlur::FEGaussianBlur):
2713         (WebCore::FEGaussianBlur::create):
2714         (WebCore::FEGaussianBlur::stdDeviationX):
2715         (WebCore::FEGaussianBlur::setStdDeviationX):
2716         (WebCore::FEGaussianBlur::stdDeviationY):
2717         (WebCore::FEGaussianBlur::setStdDeviationY):
2718         (WebCore::FEGaussianBlur::apply):
2719         (WebCore::FEGaussianBlur::dump):
2720         (WebCore::FEGaussianBlur::externalRepresentation):
2721         * svg/graphics/filters/SVGFEGaussianBlur.h:
2722         * svg/graphics/filters/SVGFEImage.cpp:
2723         (WebCore::FEImage::FEImage):
2724         (WebCore::FEImage::create):
2725         (WebCore::FEImage::~FEImage):
2726         (WebCore::FEImage::cachedImage):
2727         (WebCore::FEImage::apply):
2728         (WebCore::FEImage::dump):
2729         (WebCore::FEImage::externalRepresentation):
2730         * svg/graphics/filters/SVGFEImage.h:
2731         * svg/graphics/filters/SVGFEMerge.cpp:
2732         (WebCore::FEMerge::FEMerge):
2733         (WebCore::FEMerge::create):
2734         (WebCore::FEMerge::mergeInputs):
2735         (WebCore::FEMerge::setMergeInputs):
2736         (WebCore::FEMerge::apply):
2737         (WebCore::FEMerge::dump):
2738         (WebCore::FEMerge::externalRepresentation):
2739         * svg/graphics/filters/SVGFEMerge.h:
2740         * svg/graphics/filters/SVGFEMorphology.cpp:
2741         (WebCore::FEMorphology::FEMorphology):
2742         (WebCore::FEMorphology::create):
2743         (WebCore::FEMorphology::morphologyOperator):
2744         (WebCore::FEMorphology::setMorphologyOperator):
2745         (WebCore::FEMorphology::radiusX):
2746         (WebCore::FEMorphology::setRadiusX):
2747         (WebCore::FEMorphology::radiusY):
2748         (WebCore::FEMorphology::setRadiusY):
2749         (WebCore::FEMorphology::apply):
2750         (WebCore::FEMorphology::dump):
2751         (WebCore::operator<<):
2752         (WebCore::FEMorphology::externalRepresentation):
2753         * svg/graphics/filters/SVGFEMorphology.h:
2754         (WebCore::):
2755         * svg/graphics/filters/SVGFEOffset.cpp:
2756         (WebCore::FEOffset::FEOffset):
2757         (WebCore::FEOffset::create):
2758         (WebCore::FEOffset::dx):
2759         (WebCore::FEOffset::setDx):
2760         (WebCore::FEOffset::dy):
2761         (WebCore::FEOffset::setDy):
2762         (WebCore::FEOffset::apply):
2763         (WebCore::FEOffset::dump):
2764         (WebCore::FEOffset::externalRepresentation):
2765         * svg/graphics/filters/SVGFEOffset.h:
2766         * svg/graphics/filters/SVGFESpecularLighting.cpp:
2767         (WebCore::FESpecularLighting::FESpecularLighting):
2768         (WebCore::FESpecularLighting::create):
2769         (WebCore::FESpecularLighting::~FESpecularLighting):
2770         (WebCore::FESpecularLighting::lightingColor):
2771         (WebCore::FESpecularLighting::setLightingColor):
2772         (WebCore::FESpecularLighting::surfaceScale):
2773         (WebCore::FESpecularLighting::setSurfaceScale):
2774         (WebCore::FESpecularLighting::specularConstant):
2775         (WebCore::FESpecularLighting::setSpecularConstant):
2776         (WebCore::FESpecularLighting::specularExponent):
2777         (WebCore::FESpecularLighting::setSpecularExponent):
2778         (WebCore::FESpecularLighting::kernelUnitLengthX):
2779         (WebCore::FESpecularLighting::setKernelUnitLengthX):
2780         (WebCore::FESpecularLighting::kernelUnitLengthY):
2781         (WebCore::FESpecularLighting::setKernelUnitLengthY):
2782         (WebCore::FESpecularLighting::lightSource):
2783         (WebCore::FESpecularLighting::setLightSource):
2784         (WebCore::FESpecularLighting::apply):
2785         (WebCore::FESpecularLighting::dump):
2786         (WebCore::FESpecularLighting::externalRepresentation):
2787         * svg/graphics/filters/SVGFESpecularLighting.h:
2788         * svg/graphics/filters/SVGFETile.cpp:
2789         (WebCore::FETile::FETile):
2790         (WebCore::FETile::create):
2791         (WebCore::FETile::apply):
2792         (WebCore::FETile::dump):
2793         (WebCore::FETile::externalRepresentation):
2794         * svg/graphics/filters/SVGFETile.h:
2795         * svg/graphics/filters/SVGFETurbulence.cpp:
2796         (WebCore::FETurbulence::FETurbulence):
2797         (WebCore::FETurbulence::create):
2798         (WebCore::FETurbulence::type):
2799         (WebCore::FETurbulence::setType):
2800         (WebCore::FETurbulence::baseFrequencyY):
2801         (WebCore::FETurbulence::setBaseFrequencyY):
2802         (WebCore::FETurbulence::baseFrequencyX):
2803         (WebCore::FETurbulence::setBaseFrequencyX):
2804         (WebCore::FETurbulence::seed):
2805         (WebCore::FETurbulence::setSeed):
2806         (WebCore::FETurbulence::numOctaves):
2807         (WebCore::FETurbulence::setNumOctaves):
2808         (WebCore::FETurbulence::stitchTiles):
2809         (WebCore::FETurbulence::setStitchTiles):
2810         (WebCore::FETurbulence::apply):
2811         (WebCore::FETurbulence::dump):
2812         (WebCore::operator<<):
2813         (WebCore::FETurbulence::externalRepresentation):
2814         * svg/graphics/filters/SVGFETurbulence.h:
2815         (WebCore::):
2816         * svg/graphics/filters/cg/SVGFEDiffuseLightingCg.mm:
2817         * svg/graphics/filters/cg/SVGFEDisplacementMapCg.mm:
2818         * svg/graphics/filters/cg/SVGFEFloodCg.mm:
2819         * svg/graphics/filters/cg/SVGFEGaussianBlurCg.mm:
2820         * svg/graphics/filters/cg/SVGFEHelpersCg.h:
2821         * svg/graphics/filters/cg/SVGFEHelpersCg.mm:
2822         (WebCore::getVectorForChannel):
2823         * svg/graphics/filters/cg/SVGFEImageCg.mm:
2824         * svg/graphics/filters/cg/SVGFEMergeCg.mm:
2825         * svg/graphics/filters/cg/SVGFEOffsetCg.mm:
2826         * svg/graphics/filters/cg/SVGFESpecularLightingCg.mm:
2827         * svg/graphics/filters/cg/SVGFETileCg.mm:
2828
2829 2008-07-09  Mark Rowe  <mrowe@apple.com>
2830
2831         Reviewed by Geoff Garen.
2832
2833         Don't warn about deprecated functions in production builds.
2834
2835         * Configurations/Base.xcconfig:
2836         * Configurations/DebugRelease.xcconfig:
2837
2838 2008-07-09  Brady Eidson  <beidson@apple.com>
2839
2840         Reviewed by Darin
2841
2842         <rdar://problem/5823684> - Crash manipulating frame tree of a new frame before the new frame
2843         has been installed in a frame tree.
2844
2845         The root of this problem was that calling init() on a new frame could end up calling arbitrary
2846         javascript that might end up removing the frame from the tree.  This opened up a small can of worms
2847         such as the frame not having yet been installed in its frame tree, and other assumed behavior while
2848         destroying the frame.
2849
2850         Test: fast/loader/frame-creation-removal.html
2851
2852         * loader/FrameLoader.cpp:
2853         (WebCore::FrameLoader::endIfNotLoadingMainResource):  If the frame doesn't have a page, don't close up
2854           the document and parser because they don't exist, and this frame is on its way out.
2855         (WebCore::FrameLoader::finishedParsing):  We can't rely on the refCount check to discover "am I being deleted?"
2856           because we no longer store refCounts of 0.  The new check is "do I have a FrameView?" while will always be
2857           false if the Frame is being destroyed.
2858
2859 2008-07-09  Dean Jackson  <dino@apple.com>
2860
2861         Changed to use the correct license in header comment (via Darin)
2862
2863         * css/WebKitCSSTransformValue.idl:
2864
2865 2008-07-09  Dean Jackson  <dino@apple.com>
2866
2867         Add DOM interface for WebKitCSSTransformValue.
2868         https://bugs.webkit.org/show_bug.cgi?id=19863
2869
2870         Reviewed by Hyatt.
2871
2872         * bindings/objc/DOMInternal.h:
2873         * css/WebKitCSSTransformValue.idl: Added.
2874
2875         * bindings/scripts/CodeGeneratorObjC.pm:
2876             make sure new class inherits from CSSValue not Node
2877
2878         * DerivedSources.make:
2879         * GNUmakefile.am:
2880         * WebCore.pro:
2881         * WebCore.vcproj/WebCore.vcproj:
2882         * WebCore.xcodeproj/project.pbxproj:
2883         * WebCoreSources.bkl:
2884             Adding new generated files
2885
2886 2008-07-09  Maxime Britto  <britto@apple.com>
2887
2888         Reviewed by Adele.
2889
2890         http://bugs.webkit.org/show_bug.cgi?id=14227
2891         Add the middle click panning feature to the windows release.
2892         Details on almost each method below.
2893         Manual test is included in the patch.
2894
2895         * ChangeLog:
2896         * WebCore.vcproj/WebCore.vcproj:
2897         * manual-tests/panScroll.html: Added.
2898         * manual-tests/resources/big-page.html: Added.
2899         * page/EventHandler.cpp: Added the panScroll start/stop handlers and adapted the autoscroll for both to share some functions.
2900         (WebCore::EventHandler::EventHandler): Initialize the new class members for the panScroll
2901         (WebCore::EventHandler::handleMouseDraggedEvent): Prevent the autoscroll to trigger if the panScroll is in progress
2902         (WebCore::EventHandler::handleMouseReleaseEvent): Prevent the autoscroll to stop the panScroll on mouse release
2903         (WebCore::EventHandler::handleAutoscroll): Added the specific calls for the panScroll (save mouse position, draw the panScroll icon) to the shared code
2904         (WebCore::EventHandler::autoscrollTimerFired): Specify the calls to perform for each function (autoscroll and panScroll)
2905         (WebCore::EventHandler::stopAutoscrollTimer): Specify the calls to perform for each function (autoscroll and panScroll)
2906         (WebCore::EventHandler::handleMousePressEvent): Trigger for the panScroll. Test is the button is the middle button and try to find a renderer where the panScroll is possible. If it finds one, it calls the handleAutoscroll method.
2907         * page/EventHandler.h:
2908         (WebCore::EventHandler::panScrollInProgress): Getter used by the sub frames's EventHandler to notice the main frame EventHandler
2909         (WebCore::EventHandler::setPanScrollInProgress): Setter used by the sub frames's EventHandler to notice the main frame EventHandler
2910         * platform/ScrollView.h: Added a method used by the RenderObject to test if the view can be scrolled. Added the print/remove panScroll icon methods between the windows platform flags
2911         * platform/gtk/ScrollViewGtk.cpp:
2912         (WebCore::ScrollView::isScrollable): Not implemented : returns true
2913         * platform/mac/ScrollViewMac.mm: Implemented because it was useful for the autoscroll feature.
2914         (WebCore::ScrollView::isScrollable):
2915         * platform/qt/ScrollViewQt.cpp:
2916         (WebCore::ScrollView::isScrollable): Not implemented : returns true
2917         * platform/win/ScrollViewWin.cpp:
2918         (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate): Added a boolean and an IntPoint to draw the icon.
2919         (WebCore::ScrollView::ScrollViewPrivate::scrollBackingStore): If the icon must be drawn, define the rect to invalidate to erase the previous icon and to display the new one.
2920         (WebCore::ScrollView::updateContents): I split this method to be able to invalidate a rect with window coordinates instead of contents coordinates. This function now converts the contents coord in window coord and calls the new updateWindowRect() method  
2921         (WebCore::ScrollView::updateWindowRect): New method which performs the work that was doing the end of the old updateContents : invalidate a rect with window coordinates
2922         (WebCore::ScrollView::isScrollable): checks is the view has scrollbars
2923         (WebCore::ScrollView::printPanScrollIcon): sets the boolean and the IntPoint for the icon. Invalidate his rect and ask for repaint.
2924         (WebCore::ScrollView::removePanScrollIcon): sets the boolean to false. Invalidate his rect and ask for repaint.
2925         (WebCore::ScrollView::paint): Modified to draw the icon if needed.
2926         * platform/wx/ScrollViewWx.cpp:
2927         (WebCore::ScrollView::isScrollable): Not implemented : returns true
2928         * rendering/RenderLayer.cpp:
2929         (WebCore::RenderLayer::panScrollFromPoint): Receives the Middle click location and retrieves the currentMouse position from the EventHandler. With these informations it computes the direction to scroll to and the speed then calls for the final scroll.
2930         * rendering/RenderLayer.h:
2931         * rendering/RenderListBox.cpp: Adapt the panScroll to the ListBox object to scroll by lines instead of pixels
2932         (WebCore::RenderListBox::panScroll):
2933         (WebCore::RenderListBox::scrollToward):
2934         (WebCore::RenderListBox::autoscroll):
2935         * rendering/RenderListBox.h:
2936         (WebCore::RenderListBox::shouldPanScroll):
2937         * rendering/RenderObject.cpp: 
2938         (WebCore::RenderObject::shouldAutoscroll): Improved the verification to avoid triggering the autoscroll/panScroll when the root object can't scroll
2939         (WebCore::RenderObject::panScroll): Calls the RenderLayer's panScrollFromPoint() method
2940         * rendering/RenderObject.h:
2941         (WebCore::RenderObject::stopPanScroll): 
2942
2943 2008-07-09  Dean Jackson  <dino@apple.com>
2944
2945         Rename CSSTransformValue to WebKitCSSTransformValue as it is non-standard for
2946         the moment. Also, WebKitCSSTransformValue is a CSSValueList (comma sep)
2947         https://bugs.webkit.org/show_bug.cgi?id=19861
2948
2949         Reviewed by Hyatt
2950
2951         * css/CSSParser.cpp:
2952         * css/CSSStyleSelector.cpp:
2953         * css/CSSTransformValue.cpp: Removed.
2954         * css/CSSTransformValue.h: Removed.
2955         * css/CSSValueList.h:
2956         * css/WebKitCSSTransformValue.cpp: Added.
2957         * css/WebKitCSSTransformValue.h: Added.
2958
2959         * GNUmakefile.am:
2960         * WebCore.order:
2961         * WebCore.pro:
2962         * WebCore.vcproj/WebCore.vcproj:
2963         * WebCore.xcodeproj/project.pbxproj:
2964         * WebCoreSources.bkl:
2965             updated for new file names
2966         
2967
2968 2008-07-09  David Hyatt  <hyatt@apple.com>
2969
2970         Switch transitions back to a "destination" model as far as choosing which transitions should apply on a style
2971         change.  Preserve the behavior of allowing stale transitions (in the absence of property changes) to run to
2972         completion.
2973
2974         Reviewed by Dean
2975
2976         * manual-tests/transitions.html:
2977         * manual-tests/transitions2.html:
2978         * page/AnimationController.cpp:
2979         (WebCore::ImplicitAnimation::reset):
2980         (WebCore::CompositeImplicitAnimation::animate):
2981         (WebCore::AnimationControllerPrivate::get):
2982         (WebCore::AnimationController::updateImplicitAnimations):
2983
2984 2008-07-09  Michelangelo De Simone  <m.des@mac.com>
2985
2986         Reviewed by Adele.
2987
2988         Added the virtual function Node::isTextControl() in order to simplify text field and textarea checks.
2989
2990         * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector):
2991         Clean up in PseudoReadOnly and PseudoReadWrite cases removing unnecessary checks and casts in favor of the sole isTextControl() check.
2992         * dom/Node.h: Added base isTextControl().
2993         * html/HTMLInputElement.h: Added isTextControl() which wraps HTMLInputElement::isTextField().
2994         * html/HTMLTextAreaElement.h: Added isTextControl().
2995
2996 2008-07-09  Rob Buis  <buis@kde.org>
2997
2998         Reviewed by Eric.
2999
3000         https://bugs.webkit.org/show_bug.cgi?id=15431
3001         SVGRenderStyle should store pre-modified resource URIs
3002
3003         Store pre-modified resource URIs to decrease string
3004         operations during layout/rendering.
3005
3006         * css/SVGCSSStyleSelector.cpp:
3007         (WebCore::CSSStyleSelector::applySVGProperty):
3008         * rendering/RenderPath.cpp:
3009         (WebCore::RenderPath::absoluteClippedOverflowRect):
3010         (WebCore::RenderPath::drawMarkersIfNeeded):
3011         * rendering/RenderSVGContainer.cpp:
3012         (WebCore::RenderSVGContainer::selfWillPaint):
3013         (WebCore::RenderSVGContainer::absoluteClippedOverflowRect):
3014         * rendering/RenderSVGImage.cpp:
3015         (WebCore::RenderSVGImage::calculateAbsoluteBounds):
3016         * rendering/RenderSVGRoot.cpp:
3017         (WebCore::RenderSVGRoot::paint):
3018         (WebCore::RenderSVGRoot::absoluteClippedOverflowRect):
3019         * rendering/RenderSVGText.cpp:
3020         (WebCore::RenderSVGText::absoluteClippedOverflowRect):
3021         * rendering/SVGRenderSupport.cpp:
3022         (WebCore::prepareToRenderSVGContent):
3023
3024 2008-07-09  Anders Carlsson  <andersca@apple.com>
3025
3026         Reviewed by Mitz.
3027
3028         Remove an unused instance variable.
3029
3030         * loader/DocumentLoader.h:
3031
3032 2008-07-09  Dan Bernstein  <mitz@apple.com>
3033
3034         Reviewed by Anders Carlsson.
3035
3036         - remove unused #includes
3037
3038         * dom/XMLTokenizer.cpp:
3039         * html/PreloadScanner.cpp:
3040         * loader/CachedCSSStyleSheet.cpp:
3041         * loader/CachedScript.cpp:
3042         * loader/CachedXBLDocument.cpp:
3043         * loader/CachedXSLStyleSheet.cpp:
3044         * page/mac/FrameMac.mm:
3045         * xml/XSLTProcessor.cpp:
3046
3047 2008-07-08  Geoffrey Garen  <ggaren@apple.com>
3048
3049         Reviewed by Oliver Hunt.
3050         
3051         Only artificially mark JS DOM wrappers if they have custom properties.
3052         
3053         21X speedup on http://nerget.com/jstests/dom-mandelbrot.html.
3054         
3055         No, that is not a typo.
3056
3057         * bindings/js/JSDOMBinding.cpp:
3058         (WebCore::ScriptInterpreter::markDOMNodesForDocument):
3059
3060 2008-07-08  Kevin Watters  <kevinwatters@gmail.com>
3061
3062         Reviewed by Kevin Ollivier.
3063
3064         Fix to previous patch for handling mouse up events.
3065         
3066         https://bugs.webkit.org/show_bug.cgi?id=18464
3067
3068         * platform/wx/MouseEventWx.cpp:
3069         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
3070
3071 2008-07-08  Dan Bernstein  <mitz@apple.com>
3072
3073         Reviewed by Brady Eidson.
3074
3075         - initialize the Archives log channel's state
3076
3077         * platform/mac/LoggingMac.mm:
3078         (WebCore::InitializeLoggingChannelsIfNecessary):
3079
3080 2008-07-08  Kevin McCullough  <kmccullough@apple.com>
3081
3082         Added manual test for the new heavy view.
3083
3084         * manual-tests/inspector/profiler-test-heavy-view.html: Added.
3085
3086 2008-07-08  Darin Adler  <darin@apple.com>
3087
3088         Reviewed by Mitz.
3089
3090         - fix <rdar://problem/6043731> REGRESSION (3-4): RedEnvelope.com
3091           looks wrong due to OpenCube QuickMenu appVersion check
3092
3093         * page/Navigator.cpp:
3094         (WebCore::shouldHideFourDot): Add dqm_loader.js as another filename.
3095
3096 2008-07-08  Dan Bernstein  <mitz@apple.com>
3097
3098         Reviewed by John Sullivan.
3099
3100         - WebCore part of <rdar://problem/6008409> Need a way to disable updates in offscreen views
3101
3102         Added a setting, updatesWhenOffscreen(), which controls whether an
3103         offscreen web view gets marked as needing update when its contents
3104         change (the existing behavior) or not (a new behavior), in which case it
3105         will be marked as needing update just before it goes on screen. The
3106         existing behavior (updating while offscreen) remains the default.
3107
3108         * WebCore.base.exp: Added Settings::setUpdatesWhenOffscreen().
3109         * page/FrameView.cpp:
3110         (WebCore::FrameView::shouldUpdateWhenOffscreen): Added. Returns the
3111         value from settings.
3112         * page/FrameView.h:
3113         * page/Settings.cpp:
3114         (WebCore::Settings::setUpdatesWhenOffscreen): Added.
3115         * page/Settings.h:
3116         (WebCore::Settings::updatesWhenOffscreen): Added.
3117         * platform/ScrollView.h:
3118         * platform/mac/ScrollViewMac.mm:
3119         (WebCore::ScrollView::updateContents): Added code to return early and
3120         not call -setNeedsDisplayInRect: if the view is not in a visible window
3121         and the setting is not to update when offscreen.
3122
3123 2008-07-08  Simon Hausmann  <hausmann@webkit.org>
3124
3125         Fix the build with enabled SVG filters.
3126
3127         * svg/SVGFESpecularLightingElement.cpp: The last argument to
3128         ANIMATED_PROPERTY_DEFINITIONS has to be full class name, including
3129         the attr suffix.
3130
3131 2008-07-07  Sam Weinig  <sam@webkit.org>
3132
3133         Reviewed by Anders Carlsson.
3134
3135         Remove extraneous null check.
3136
3137         * dom/Node.cpp:
3138         (WebCore::Node::querySelector):
3139         (WebCore::Node::querySelectorAll):
3140
3141 2008-07-07  Sam Weinig  <sam@webkit.org>
3142
3143         Reviewed by Anders Carlsson.
3144
3145         Fix for https://bugs.webkit.org/show_bug.cgi?id=19928
3146         Use of CSS3 Namespaces syntax in Selectors API should throw an exception
3147
3148         - Throw an NAMESPACE_ERR exception if a non-null or "*" namespace is
3149           used in a selector passed to querySelector or querySelectorAll.
3150
3151         Test: fast/dom/SelectorAPI/not-supported-namespace-in-selector.html
3152
3153         * dom/Node.cpp:
3154         (WebCore::selectorNeedsNamespaceResolution):
3155         (WebCore::Node::querySelector):
3156         (WebCore::Node::querySelectorAll):
3157
3158 2008-07-07  Simon Fraser  <simon.fraser@apple.com>
3159
3160         Reviewed by Darin.
3161
3162         Fix for https://bugs.webkit.org/show_bug.cgi?id=19933
3163         nodeIterator with filter fails on documents not in a frame
3164
3165         Tests: traversal/node-iterator-009.html
3166                traversal/tree-walker-006.html
3167
3168         * bindings/js/JSNodeFilterCondition.cpp:
3169         * bindings/js/JSNodeFilterCondition.h:
3170         * bindings/js/JSNodeFilterCustom.cpp:
3171         * bindings/js/JSNodeIteratorCustom.cpp:
3172         * bindings/js/JSTreeWalkerCustom.cpp:
3173         * bindings/objc/DOM.mm:
3174         * dom/NodeFilter.cpp:
3175         * dom/NodeFilter.h:
3176         * dom/NodeFilterCondition.cpp:
3177         * dom/NodeFilterCondition.h:
3178         * dom/NodeIterator.cpp:
3179         * dom/NodeIterator.h:
3180         * dom/Traversal.cpp:
3181         * dom/Traversal.h:
3182         * dom/TreeWalker.cpp:
3183         * dom/TreeWalker.h:
3184
3185 2008-07-07  Adele Peterson  <adele@apple.com>
3186
3187         Reviewed by Dan Bernstein.
3188
3189         Fix for https://bugs.webkit.org/show_bug.cgi?id=19924
3190         <rdar://problem/6057160> Disabled file input element updates its displayed file info when a file is dropped from the Finder.
3191
3192         * page/DragController.cpp: (WebCore::DragController::concludeDrag):
3193         Check that the file control is enabled before taking dropped files.
3194
3195 2008-07-07  Adele Peterson  <adele@apple.com>
3196
3197         Reviewed by Beth.
3198
3199         Fix for <rdar://problem/5860507> <AUDIO> playback noticeably more quiet than QuickTime
3200
3201         Change default volume setting to 1.0.
3202
3203         * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::HTMLMediaElement):
3204         * platform/graphics/MediaPlayer.cpp: (WebCore::MediaPlayer::MediaPlayer):
3205
3206 2008-07-07  Darin Adler  <darin@apple.com>
3207
3208         Reviewed by Mark Rowe.
3209
3210         - fix <rdar://problem/6020441> REGRESSION: Layers on NWA.com render ugly
3211
3212         The old version of the OpenCube QuickMenu library used on this site still has code
3213         that detects Netscape 4 by checking appVersion to see if it has the substring "4."
3214         in it. We decided to special-case the filename of the script and tweak the appVersion
3215         for files with that name.
3216
3217         * bindings/js/ScriptController.cpp:
3218         (WebCore::ScriptController::ScriptController): Replace m_processingInlineCode with
3219         m_sourceURL. Use false instead of 0 to initialize a boolean.
3220         (WebCore::ScriptController::evaluate): Call argument sourceURL, not filename.
3221         Store current sourceURL in m_sourceURL. This fixes a mistake in the code that
3222         maintained the value of m_processingInlineCode, since the old code set it to
3223         false rather than restoring it. Renamed a local variable named sourceURL to
3224         exceptionSourceURL for clarity.
3225         (WebCore::ScriptController::processingUserGesture): Code that formerly used
3226         m_processingInlineCode to detect that it was evaluating code with no URL now
3227         uses m_sourceURL to do the same check.
3228
3229         * bindings/js/ScriptController.h: Renamed filename argument to sourceURL; it has always
3230         been a URL, not a file path. Added a public sourceURL function and m_sourceURL and
3231         removed m_processingInlineCode.
3232
3233         * page/Navigator.cpp:
3234         (WebCore::shouldHideFourDot): Added. Returns true if the currently running script has
3235         a source URL ending in "/dqm_script.js" and if the settings say we should do
3236         site-specific quirks (really JavaScript-library-specific in this case).
3237         (WebCore::Navigator::appVersion): Replace "4." with "4_" if shouldHideFourDot is true.
3238
3239 2008-07-07  Cameron Zwarich  <cwzwarich@uwaterloo.ca>
3240
3241         Reviewed by Geoff.
3242
3243         Bug 19907: REGRESSION(r34824-r34941): Reproducible crash trying to log in to MediaTemple.net Account Center
3244         <https://bugs.webkit.org/show_bug.cgi?id=19907>
3245
3246         Clear exceptions set on ExecStates before returning from NPAPI
3247         callbacks, in order to avoid causing problems for the next script that
3248         executes.
3249
3250         While fixing this bug, the question was raised of whether we are
3251         correctly propagating exception information back to the caller:
3252
3253         Bug 19936: Correctly propagate exception information from NPAPI callbacks
3254         <https://bugs.webkit.org/show_bug.cgi?id=19936>
3255
3256         * bridge/NP_jsobject.cpp:
3257         (_NPN_InvokeDefault):
3258         (_NPN_Invoke):
3259         (_NPN_Evaluate):
3260         (_NPN_GetProperty):
3261         (_NPN_SetProperty):
3262         (_NPN_RemoveProperty):
3263         (_NPN_HasProperty):
3264         (_NPN_HasMethod):
3265         (_NPN_Enumerate):
3266
3267 2008-07-07  Dan Bernstein  <mitz@apple.com>
3268
3269         Reviewed by Darin Adler.
3270
3271         - fix <rdar://problem/6057650> REGRESSION (r35025): Crash beneath FontCache::invalidate() when activating Safari with no windows open
3272
3273         * css/CSSFontFaceSource.cpp:
3274         (WebCore::CSSFontFaceSource::getFontData): Added a null check because
3275         docLoader() can return 0 now.
3276         * css/CSSFontSelector.cpp:
3277         (WebCore::CSSFontSelector::docLoader): Added a null check of m_document.
3278         (WebCore::CSSFontSelector::addFontFaceRule): Ditto.
3279         (WebCore::CSSFontSelector::fontLoaded): Ditto.
3280         (WebCore::CSSFontSelector::fontCacheInvalidated): Ditto.
3281         (WebCore::fontDataForGenericFamily): Added a null check of document.
3282         * css/CSSFontSelector.h:
3283         (WebCore::CSSFontSelector::clearDocument): Added.
3284         * css/CSSStyleSelector.cpp:
3285         (WebCore::CSSStyleSelector::~CSSStyleSelector): Added a call to
3286         CSSFontSelector::clearDocument(). When the style selector is destroyed,
3287         there is no guarantee that the document will continue to exist.
3288
3289 2008-07-07  Julien Chaffraix  <jchaffraix@webkit.org>
3290
3291         Not reviewed.
3292
3293         No svg build fix.
3294
3295         * DerivedSources.make: Add JSSVGElementWrapperFactory.cpp target.
3296         * svg/animation/SMILTimeContainer.cpp: Add ENABLE(SVG) guard.
3297
3298 2008-07-07  Michelangelo De Simone  <m.des@mac.com>
3299
3300         Reviewed by Adele.
3301
3302         Support for CSS3 :read-only and :read-write pseudoclasses for readonly text controls.
3303
3304         URL: http://www.w3.org/TR/web-forms-2/#relation
3305
3306         Tests: fast/css/readonly-pseudoclass-opera-001.html
3307                fast/css/readonly-pseudoclass-opera-002.html
3308                fast/css/readonly-pseudoclass-opera-003.html
3309                fast/css/readonly-pseudoclass-opera-004.html
3310                fast/css/readonly-pseudoclass-opera-005.html
3311
3312         * css/CSSSelector.cpp: (WebCore::CSSSelector::extractPseudoType):
3313         Added "read-only" and "read-write" values for PseudoType extraction.
3314         * css/CSSSelector.h: (WebCore::CSSSelector::):
3315         Added PseudoReadOnly and PseudoReadWrite entries in PseudoType enum.
3316         * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector):
3317         Checks to determine whether to match :read-only and :read-write pseudoclasses on
3318         text controls.
3319
3320 2008-07-07  Sam Weinig  <sam@webkit.org>
3321
3322         Reviewed by Geoffrey Garen.
3323
3324         Fix for https://bugs.webkit.org/show_bug.cgi?id=19928
3325         querySelectorAll should throw an exception if a NSResolver is passed in.
3326
3327         - Throw an NOT_SUPPORTED_ERR if a non-null or undefined parameter is passed
3328           as the second argument to querySelector or querySelectorAll.
3329
3330         Test: fast/dom/SelectorAPI/not-supported-NSResolver.html
3331
3332         * bindings/js/JSDocumentCustom.cpp:
3333         (WebCore::JSDocument::querySelector):
3334         (WebCore::JSDocument::querySelectorAll):
3335         * bindings/js/JSElementCustom.cpp:
3336         (WebCore::JSElement::querySelector):
3337         (WebCore::JSElement::querySelectorAll):
3338         * dom/Document.idl:
3339         * dom/Element.idl:
3340
3341 2008-07-07  Brady Eidson  <beidson@apple.com>
3342
3343         Reviewed by Mitz and Geoff
3344
3345         Test: fast/loader/empty-ref-versus-no-ref.html
3346
3347         Fix for https://bugs.webkit.org/show_bug.cgi?id=18951 and <rdar://problem/5921760>
3348         "all DOM operations stop working when location.hash set to '#'"
3349
3350         The underlying problem is that KURL didn't really know the difference between "empty ref"
3351         and "no ref at all" when changing the ref.  So changing to the empty ref in JS ended up 
3352         affecting removal of the ref, which ended up causing an infinite load load, also killing
3353         javascript.
3354
3355         * platform/KURL.cpp:
3356         (WebCore::KURL::setRef):  Changed "isEmpty()" to "isNull()", since NULL has the special 
3357           meaning of "no ref at all" while empty means "empty ref"
3358
3359 2008-07-07  Kevin McCullough  <kmccullough@apple.com>
3360
3361         Reviewed by Darin.
3362
3363         Because profiler.h no longer #includes profile.h we need to explicitly
3364         include it in console.cpp.
3365
3366         * page/Console.cpp:
3367
3368 2008-07-07  Nikolas Zimmermann  <zimmermann@kde.org>
3369
3370         Not reviewed. Build fix.
3371
3372         Fix --svg-filters build (affects Qt build, mac/win don't have it on by default)
3373
3374         * svg/SVGFEColorMatrixElement.cpp:
3375         * svg/SVGFEDiffuseLightingElement.cpp:
3376         * svg/SVGFEImageElement.cpp:
3377         * svg/SVGFELightElement.cpp:
3378         * svg/SVGFESpecularLightingElement.cpp:
3379
3380 2008-07-07  Nikolas Zimmermann  <zimmermann@kde.org>
3381
3382         Reviewed by Antti.
3383
3384         Fixes: http://bugs.webkit.org/show_bug.cgi?id=17779 (SVG 1.1 Errata demands "SVG JavaScript Liveness" support)
3385
3386         Revised version of the patch, not using pointer-to-member function callbacks anymore - after discussion with Adam Roben.
3387         Remove unneccessary parameters of all macros.
3388
3389         SVG Errata states: "All SVG DOM objects that directly correspond to an
3390         attribute, e.g. the SVGAnimatedLength 'ry' in an SVGRectElement, are live. This
3391         means that any changes made to the attribute are immediately reflected in the
3392         corresponding SVG DOM object." (see linked URL on bug report)
3393
3394         Until now only XML -> SVG DOM changes took affect, aka. changing the 'rx' attribute of a <rect>
3395         element resuted in changes when accessing 'rx' through SVG DOM (rx.baseVal.value).
3396
3397         Add a new synchronization layer to handle SVG DOM -> XML changes.
3398
3399         Added test: svg/custom/svg-xml-dom-sync.html
3400         Fixed test: svg/hixie/dynamic/005-broken.xml (renamed to 005.xml)
3401
3402         * dom/Element.cpp:
3403         (WebCore::Element::Element): Initialize the two new bits.
3404         (WebCore::Element::attributes): Add hooks to call into SVG attribute synchronization code, wrapped in ENABLE(SVG) blocks.
3405         (WebCore::Element::getAttribute): Ditto.
3406         (WebCore::Element::hasAttributes): Ditto.
3407         * dom/Element.h: Add two bits: m_areSVGAttributesValid/m_synchronizingSVGAttributes, to track synchronization status.
3408         (WebCore::Element::updateAnimatedSVGAttribute): New virtual function, handling the synronication, similar to updateStyleAttribute.
3409         * dom/NamedAttrMap.h: Make addAttribute/removeAttribute protected, from use within the ANIMATED_* macros.
3410         * svg/SVGAElement.cpp:
3411         * svg/SVGAElement.h:
3412         * svg/SVGAnimatedTemplate.h:
3413         (WebCore::lookupOrCreateWrapper): Take new AnimatedPropertySynchronizer callback as parameter, and associate it with the wrappers.
3414         * svg/SVGCircleElement.cpp:
3415         (WebCore::SVGCircleElement::SVGCircleElement):
3416         * svg/SVGCircleElement.h:
3417         * svg/SVGClipPathElement.cpp:
3418         * svg/SVGClipPathElement.h:
3419         * svg/SVGComponentTransferFunctionElement.cpp:
3420         * svg/SVGComponentTransferFunctionElement.h:
3421         * svg/SVGCursorElement.cpp:
3422         (WebCore::SVGCursorElement::SVGCursorElement):
3423         * svg/SVGCursorElement.h:
3424         * svg/SVGElement.cpp:
3425         (WebCore::SVGElement::updateAnimatedSVGAttribute): Override virtual function from Element, to handle SVG<->XML DOM synchronization.
3426         (WebCore::SVGElement::setSynchronizedSVGAttributes):
3427         * svg/SVGElement.h:
3428         (WebCore::SVGElement::invokeSVGPropertySynchronizer):
3429         (WebCore::SVGElement::invokeAllSVGPropertySynchronizers):
3430         (WebCore::SVGElement::addSVGPropertySynchronizer):
3431         * svg/SVGEllipseElement.cpp:
3432         * svg/SVGEllipseElement.h:
3433         * svg/SVGExternalResourcesRequired.cpp:
3434         * svg/SVGExternalResourcesRequired.h:
3435         * svg/SVGFEBlendElement.cpp:
3436         * svg/SVGFEBlendElement.h:
3437         * svg/SVGFEColorMatrixElement.cpp:
3438         * svg/SVGFEColorMatrixElement.h:
3439         * svg/SVGFEComponentTransferElement.cpp:
3440         * svg/SVGFEComponentTransferElement.h:
3441         * svg/SVGFECompositeElement.cpp:
3442         * svg/SVGFECompositeElement.h:
3443         * svg/SVGFEDiffuseLightingElement.cpp:
3444         * svg/SVGFEDiffuseLightingElement.h:
3445         * svg/SVGFEDisplacementMapElement.cpp:
3446         * svg/SVGFEDisplacementMapElement.h:
3447         * svg/SVGFEGaussianBlurElement.cpp:
3448         * svg/SVGFEGaussianBlurElement.h:
3449         * svg/SVGFEImageElement.cpp:
3450         * svg/SVGFEImageElement.h:
3451         * svg/SVGFELightElement.cpp:
3452         * svg/SVGFELightElement.h:
3453         * svg/SVGFEMergeNodeElement.cpp:
3454         * svg/SVGFEMergeNodeElement.h:
3455         * svg/SVGFEOffsetElement.cpp:
3456         * svg/SVGFEOffsetElement.h:
3457         * svg/SVGFESpecularLightingElement.cpp:
3458         * svg/SVGFESpecularLightingElement.h:
3459         * svg/SVGFETileElement.cpp:
3460         * svg/SVGFETileElement.h:
3461         * svg/SVGFETurbulenceElement.cpp:
3462         * svg/SVGFETurbulenceElement.h:
3463         * svg/SVGFilterElement.cpp:
3464         * svg/SVGFilterElement.h:
3465         * svg/SVGFilterPrimitiveStandardAttributes.cpp:
3466         * svg/SVGFilterPrimitiveStandardAttributes.h:
3467         * svg/SVGFitToViewBox.cpp:
3468         * svg/SVGFitToViewBox.h:
3469         * svg/SVGForeignObjectElement.cpp:
3470         * svg/SVGForeignObjectElement.h:
3471         * svg/SVGGradientElement.cpp:
3472         * svg/SVGGradientElement.h:
3473         * svg/SVGImageElement.cpp:
3474         * svg/SVGImageElement.h:
3475         * svg/SVGLineElement.cpp:
3476         * svg/SVGLineElement.h:
3477         * svg/SVGLinearGradientElement.cpp:
3478         * svg/SVGLinearGradientElement.h:
3479         * svg/SVGMarkerElement.cpp:
3480         * svg/SVGMarkerElement.h:
3481         * svg/SVGMaskElement.cpp:
3482         * svg/SVGMaskElement.h:
3483         * svg/SVGPathElement.cpp:
3484         * svg/SVGPathElement.h:
3485         * svg/SVGPatternElement.cpp:
3486         * svg/SVGPatternElement.h:
3487         * svg/SVGRadialGradientElement.cpp:
3488         * svg/SVGRadialGradientElement.h:
3489         * svg/SVGRectElement.cpp:
3490         * svg/SVGRectElement.h:
3491         * svg/SVGSVGElement.cpp:
3492         * svg/SVGSVGElement.h:
3493         * svg/SVGScriptElement.h:
3494         * svg/SVGStopElement.cpp:
3495         * svg/SVGStopElement.h:
3496         * svg/SVGStyledElement.cpp:
3497         * svg/SVGStyledElement.h:
3498         * svg/SVGStyledTransformableElement.cpp:
3499         * svg/SVGStyledTransformableElement.h:
3500         * svg/SVGSymbolElement.h:
3501         * svg/SVGTextContentElement.cpp:
3502         * svg/SVGTextContentElement.h:
3503         * svg/SVGTextElement.cpp:
3504         * svg/SVGTextElement.h:
3505         * svg/SVGTextPathElement.cpp:
3506         * svg/SVGTextPathElement.h:
3507         * svg/SVGTextPositioningElement.cpp:
3508         * svg/SVGTextPositioningElement.h:
3509         * svg/SVGURIReference.cpp:
3510         * svg/SVGURIReference.h:
3511         * svg/SVGUseElement.cpp:
3512         * svg/SVGUseElement.h:
3513         * svg/SVGViewElement.h:
3514         * svg/SynchronizableTypeWrapper.h: Added.
3515
3516 2008-07-07  Nikolas Zimmermann  <zimmermann@kde.org>
3517
3518         Reviewed by Oliver.
3519
3520         Working on: http://bugs.webkit.org/show_bug.cgi?id=17779 (SVG 1.1 Errata demands "SVG JavaScript Liveness" support)
3521
3522         Splitting up large patch in small chunk: Land valueAsString() implementation on it's own.
3523
3524         Added valueAsString() conversion for all SVG primitive types, needed by the SVG<->XML synchronization layer.
3525         Unify "null value for a SVG animated type" concept, which was implemented in SVGDocumentExtensions before,
3526         in SVGAnimatedTemplate.
3527
3528         * svg/SVGAnimatedTemplate.h:
3529         (WebCore::SVGAnimatedTemplate::associatedAttributeName):
3530         (WebCore::lookupOrCreateWrapper):
3531         (WebCore::SVGAnimatedTypeValue::null):
3532         (WebCore::SVGAnimatedTypeValue::toString):
3533         (WebCore::):
3534         * svg/SVGDocumentExtensions.h:
3535         (WebCore::SVGDocumentExtensions::baseValue):
3536         * svg/SVGLengthList.cpp:
3537         (WebCore::SVGLengthList::valueAsString):
3538         * svg/SVGLengthList.h:
3539         * svg/SVGNumberList.cpp:
3540         (WebCore::SVGNumberList::valueAsString):
3541         * svg/SVGNumberList.h:
3542         * svg/SVGPreserveAspectRatio.cpp:
3543         (WebCore::SVGPreserveAspectRatio::valueAsString):
3544         * svg/SVGPreserveAspectRatio.h:
3545         * svg/SVGTransformList.cpp:
3546         (SVGTransformList::valueAsString):
3547         * svg/SVGTransformList.h:
3548
3549 2008-07-06  Sam Weinig  <sam@webkit.org>
3550
3551         Reviewed by Dan Bernstein.
3552
3553         Rename "Access-Contol-Origin" to "Origin" to match the latest
3554         Access Control for Cross-Site Request draft. (Editor's Draft 25 May 2008)
3555
3556         * xml/XMLHttpRequest.cpp:
3557         (WebCore::XMLHttpRequest::makeSimpleCrossSiteAccessRequest):
3558         (WebCore::XMLHttpRequest::makeCrossSiteAccessRequestWithPreflight):
3559         (WebCore::XMLHttpRequest::handleAsynchronousPreflightResult):
3560
3561 2008-07-06  Dan Bernstein  <mitz@apple.com>
3562
3563         - try to fix the Windows build
3564
3565         * WebCore.vcproj/WebCore.vcproj:
3566
3567 2008-07-06  Dan Bernstein  <mitz@apple.com>
3568
3569         - add missing brace
3570
3571         * platform/graphics/qt/FontCacheQt.cpp:
3572
3573 2008-07-06  Dan Bernstein  <mitz@apple.com>
3574
3575         - try to fix the Qt build