a9c55f28a308a0b30901debabf0114b7bdacfc38
[WebKit-https.git] / WebCore / ChangeLog
1 2008-08-11  Keishi Hattori  <casey.hattori@gmail.com>
2
3         Added support for some Firebug Command Line APIs.
4
5         Reviewed by Tim Hatcher.
6
7         https://bugs.webkit.org/show_bug.cgi?id=19867
8         https://bugs.webkit.org/show_bug.cgi?id=19868
9         https://bugs.webkit.org/show_bug.cgi?id=19869
10         https://bugs.webkit.org/show_bug.cgi?id=19875
11         https://bugs.webkit.org/show_bug.cgi?id=19876
12         https://bugs.webkit.org/show_bug.cgi?id=19880
13
14         * page/inspector/Console.js:
15         (WebInspector.Console.prototype._evalInInspectedWindow):
16         Create an object on the inspected window that holds the console
17         command line API functions. This object is used in a with statement
18         around the typed expression.
19
20 2008-08-11  Nikolas Zimmermann  <zimmermann@kde.org>
21
22         Reviewed by Antti.
23
24         Fixes: http://bugs.webkit.org/show_bug.cgi?id=17736
25
26         JS wrapper objects around SVG POD types, that contain other SVG POD types with writable properties
27         failed to update. Modification of the values were completly ignored (ie. transform.matrix.a = 50, didn't take any effect)
28
29         Added tests: svg/custom/svg-modify-currentTranslate.html
30                      svg/custom/tearoffs-with-tearoffs.html
31                      svg/custom/immutable-properties.html
32
33         Fixed tests: svg/dynamic-updates/SVGLinearGradientElement-svgdom-gradientTransform-prop.html
34
35         * bindings/js/JSSVGPODTypeWrapper.h:
36         (WebCore::JSSVGDynamicPODTypeWrapper::commitChange):
37         (WebCore::JSSVGStaticPODTypeWrapperWithPODTypeParent::create):
38         (WebCore::JSSVGStaticPODTypeWrapperWithPODTypeParent::commitChange):
39         (WebCore::JSSVGStaticPODTypeWrapperWithPODTypeParent::JSSVGStaticPODTypeWrapperWithPODTypeParent):
40         (WebCore::JSSVGStaticPODTypeWrapperWithParent::create):
41         (WebCore::JSSVGStaticPODTypeWrapperWithParent::operator PODType):
42         (WebCore::JSSVGStaticPODTypeWrapperWithParent::commitChange):
43         (WebCore::JSSVGStaticPODTypeWrapperWithParent::JSSVGStaticPODTypeWrapperWithParent):
44         * bindings/scripts/CodeGenerator.pm:
45         * bindings/scripts/CodeGeneratorJS.pm:
46         * svg/SVGSVGElement.idl: Add [Immutable] markers to SVG POD attributes, that contain POD types with writable attributes.
47         * svg/SVGZoomEvent.idl:  SVG specification explicitely demands these attributes to be readonly, even its content.
48
49 2008-08-11  Brady Eidson  <beidson@apple.com>
50
51         Reviewed by John and Anders
52
53         Fix for <rdar://problem/6141797>
54
55         When WebArchives were entirely a WebKit concept, there was a guarantee that a WebResource
56         would never have nil data.
57
58         When they were pushed down into WebCore, that guarantee was lost, subtly changing a few
59         semantics with some WebKit applications.
60
61         The guarantee was a good one and should be restored.
62
63         Note that ApplicationCacheResource doesn't need any updates to follow this rule as it already
64         creates an empty data object in the case of null data for its own purposes.
65
66         * loader/SubstituteResource.h:
67         (WebCore::SubstituteResource::SubstituteResource): ASSERT that the data is not null.  This
68           well help any future subclassers not make this mistake.
69
70         * loader/archive/ArchiveResource.cpp:
71         (WebCore::ArchiveResource::create): Return 0 if the data is null.
72
73 2008-08-11  Simon Fraser  <simon.fraser@apple.com>
74
75         Reviewed by Dave Hyatt
76
77         https://bugs.webkit.org/show_bug.cgi?id=20328
78         Fix a problem when an 'all' transition transition with more than
79         one property changing is interrupted, and did some AnimationController
80         cleanup.
81
82         Test: transitions/interrupted-all-transition.html
83
84         * page/AnimationController.cpp:
85         (WebCore::ImplicitAnimation::ImplicitAnimation):
86         (WebCore::AnimationControllerPrivate::blendProperties):
87         (WebCore::CompositeAnimation::updateTransitions):
88         (WebCore::CompositeAnimation::cleanupFinishedAnimations):
89         (WebCore::CompositeAnimation::setTransitionStartTime):
90         (WebCore::CompositeAnimation::overrideImplicitAnimations):
91         (WebCore::CompositeAnimation::resumeOverriddenImplicitAnimations):
92         (WebCore::ImplicitAnimation::animate):
93         (WebCore::ImplicitAnimation::onAnimationEnd):
94         (WebCore::ImplicitAnimation::sendTransitionEvent):
95         (WebCore::ImplicitAnimation::affectsProperty):
96         (WebCore::KeyframeAnimation::endAnimation):
97         (WebCore::KeyframeAnimation::onAnimationEnd):
98
99 2008-08-11  Kevin McCullough  <kmccullough@apple.com>
100
101         Reviewed by Tim.
102
103         - Because console messages have group levels now, newly created messages
104         that do not specify the level lose their message since the number of
105         arguments is wrong.
106  
107         * page/inspector/Console.js:
108         * page/inspector/Resource.js:
109
110 2008-08-11  Alp Toker  <alp@nuanti.com>
111
112         Build fix. Add new files from r35666 (WebKitAnimationEvent). Also take
113         the opportunity to sort the sources lists.
114
115         * GNUmakefile.am:
116
117 2008-08-11  Timothy Hatcher  <timothy@apple.com>
118
119         Speed up the the JavaScript syntax highlighter by generating
120         the finders only once per script instead of per line.
121
122         https://bugs.webkit.org/show_bug.cgi?id=20346
123
124         Reviewed by Adam Roben.
125
126         * page/inspector/SourceFrame.js:
127         (WebInspector.SourceFrame.prototype._syntaxHighlightJavascriptLine):
128         Removed, factored into syntaxHighlightJavascript as an inline function.
129         (WebInspector.SourceFrame.prototype.syntaxHighlightJavascript):
130         Pulled in the _syntaxHighlightJavascriptLine so it will create a closure.
131         Generate the finders before iterating the lines.
132
133 2008-08-11  Adam Roben  <aroben@apple.com>
134
135         Windows build fix
136
137         * WebCore.vcproj/WebCore.vcproj: Added JSWebKitAnimationEvent.cpp and
138         JSWebKitTransitionEvent.cpp to the project. Let VS reformat the file,
139         too.
140
141 2008-08-11  Dan Bernstein  <mitz@apple.com>
142
143         Reviewed by Darin Adler.
144
145         - fix <rdar://problem/6131096> Reproducible crash in CounterNode::isReset under guard malloc
146
147         Test: fast/css/counters/invalidate-cached-counter-node.html
148
149         * rendering/RenderContainer.cpp:
150         (WebCore::RenderContainer::invalidateCounters): Added. Invalidates all
151         RenderCounters in :before and :after content.
152         * rendering/RenderContainer.h:
153         * rendering/RenderCounter.cpp:
154         (WebCore::RenderCounter::isCounter): Renamed isRenderCounter() to this
155         to match the RenderObject method.
156         (WebCore::RenderCounter::invalidate): Added. Resets the cached
157         CounterNode and invalidates the object's layout and preferred widths.
158         (WebCore::destroyCounterNodeChildren): Added a call to
159         invalidateCounters().
160         * rendering/RenderCounter.h:
161         * rendering/RenderObject.h:
162         (WebCore::RenderObject::invalidateCounters):
163
164 2008-08-11  Dean Jackson  <dino@apple.com>
165
166         Implement CSS Animation and Transition Events
167         https://bugs.webkit.org/show_bug.cgi?id=20337
168
169         Implement the events defined in the CSS Animations
170         and Transitions specifications so code can react
171         to animations and transitions.
172
173         Reviewed by Tim Hatcher and Dave Hyatt.
174
175         * DerivedSources.make:
176         * GNUmakefile.am:
177         * WebCore.pro:
178         * WebCore.vcproj/WebCore.vcproj:
179         * WebCore.xcodeproj/project.pbxproj:
180         * WebCoreSources.bkl:
181             Build configs for new files
182
183         * bindings/js/JSDOMWindowBase.cpp:
184         * bindings/js/JSDOMWindowBase.h:
185         * bindings/js/JSEventCustom.cpp:
186         * dom/Document.h:
187         * dom/Event.cpp:
188         * dom/Event.h:
189         * dom/EventTarget.cpp:
190         * dom/EventTargetNode.cpp:
191         * dom/EventTargetNode.h:
192         * html/HTMLElement.cpp:
193         * page/AnimationController.cpp:
194             do all the new event stuff
195             
196         * html/HTMLAttributeNames.in:
197             the onwebkitanimation* and onwebkittransitionend attrs
198
199         * dom/WebKitAnimationEvent.cpp: Added.
200         * dom/WebKitAnimationEvent.h: Added.
201         * dom/WebKitAnimationEvent.idl: Added.
202         * dom/WebKitTransitionEvent.cpp: Added.
203         * dom/WebKitTransitionEvent.h: Added.
204         * dom/WebKitTransitionEvent.idl: Added.
205             New files for the events
206
207         * manual-tests/transition-events.html: Added.
208             New testfile
209
210 2008-08-11  Adam Roben  <aroben@apple.com>
211
212         Add a ForwardingHeader for wtf/NotFound.h
213
214         Rubberstamped by Darin Adler.
215
216         * ForwardingHeaders/wtf/NotFound.h: Added.
217
218 2008-08-11  Timothy Hatcher  <timothy@apple.com>
219
220         Fixes a bug where error bubbles in JavaScript resources would
221         be clobbered by the syntax highlighter.
222
223         https://bugs.webkit.org/show_bug.cgi?id=20345
224
225         Reviewed by Adam Roben.
226
227         * manual-tests/inspector/resources/script-error.js: Added.
228         * manual-tests/inspector/styled-error-bubbles-in-scripts.html: Added.
229         * page/inspector/SourceFrame.js:
230         (WebInspector.SourceFrame.prototype._addMessageToSource):
231         Check the nodeType and not the nodeName, this is less fragile.
232         (WebInspector.SourceFrame.prototype._syntaxHighlightJavascriptLine):
233         Check if the lastChild is an error bubble, if so remove it before
234         getting the line's textContent. Add the error bubble back at the end.
235
236 == Rolled over to ChangeLog-2008-08-10 ==