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