blob: 65df6472ba45ed071ecdb11f4687d24fb2d346ee [file] [log] [blame]
hyatt@apple.comc5b931a2008-09-19 00:39:51 +000012008-09-18 David Hyatt <hyatt@apple.com>
2
hyatt@apple.com179629b3c2008-09-19 03:16:26 +00003 Move to only one constructor for Widgets. Rename data to m_data and make
4 it have an #ifdef only for platforms that have platform-specific data (Mac
5 and Gtk).
6
7 Reviewed by Sam Weinig
8
9 * WebCore.base.exp:
10 * platform/Widget.cpp:
11 (WebCore::Widget::init):
12 * platform/Widget.h:
13 * platform/gtk/WidgetGtk.cpp:
14 (WebCore::Widget::Widget):
15 (WebCore::Widget::~Widget):
16 (WebCore::Widget::cursor):
17 (WebCore::Widget::setCursor):
18 * platform/mac/WidgetMac.mm:
19 (WebCore::Widget::Widget):
20 (WebCore::Widget::~Widget):
21 (WebCore::Widget::addToSuperview):
22 (WebCore::Widget::removeFromSuperview):
23 (WebCore::Widget::beforeMouseDown):
24 (WebCore::Widget::afterMouseDown):
25 * platform/qt/WidgetQt.cpp:
26 (WebCore::Widget::Widget):
27 * platform/win/WidgetWin.cpp:
28 (WebCore::Widget::Widget):
29 * platform/wx/WidgetWx.cpp:
30 (WebCore::Widget::Widget):
31
322008-09-18 David Hyatt <hyatt@apple.com>
33
hyatt@apple.com470d7e72008-09-19 03:01:08 +000034 Move Qt's isNPAPIPlugin boolean from Widget down to PluginView, since there
35 was no reason for it to be on Widget. This change eliminates Qt ifdefs
36 from Widget.
37
38 Reviewed by Sam Weinig
39
40 * bindings/js/ScriptControllerQt.cpp:
41 (WebCore::ScriptController::createScriptInstanceForWidget):
42 * platform/qt/WidgetQt.cpp:
43 (WebCore::WidgetPrivate::WidgetPrivate):
44 (WebCore::WidgetPrivate::~WidgetPrivate):
45 (WebCore::Widget::Widget):
46 (WebCore::Widget::~Widget):
47 * plugins/PluginView.cpp:
48 (WebCore::PluginView::PluginView):
49 * plugins/PluginView.h:
50 (WebCore::PluginView::isNPAPIPlugin):
51 (WebCore::PluginView::setIsNPAPIPlugin):
52
532008-09-18 David Hyatt <hyatt@apple.com>
54
hyatt@apple.com557408b2008-09-19 02:36:08 +000055 Make geometryChanged() cross-platform on Widget. GTK and WIN platform
56 ifdefs are now gone from Widget!
57
58 Reviewed by Sam Weinig
59
60 * platform/Widget.h:
61 (WebCore::Widget::geometryChanged):
62 * platform/gtk/WidgetGtk.cpp:
63 * platform/qt/WidgetQt.cpp:
64
652008-09-18 David Hyatt <hyatt@apple.com>
66
hyatt@apple.com17e57432008-09-19 02:29:27 +000067 Consolidate convertTo/FromContainingWindow methods so that all platforms
68 but Mac share the same code.
69
70 Move convertSelfToChild and convertChildToSelf to ScrollView, since
71 Widget should know nothing about children. Make the methods cross-platform
72 on ScrollView.
73
74 Reviewed by Sam Weinig
75
76 * platform/ScrollView.h:
77 (WebCore::ScrollView::convertChildToSelf):
78 (WebCore::ScrollView::convertSelfToChild):
79 * platform/Widget.cpp:
80 (WebCore::Widget::convertToContainingWindow):
81 (WebCore::Widget::convertFromContainingWindow):
82 * platform/Widget.h:
83 (WebCore::Widget::geometryChanged):
84 * platform/gtk/ScrollViewGtk.cpp:
85 (WebCore::ScrollView::isScrollViewScrollbar):
86 * platform/gtk/WidgetGtk.cpp:
87 * platform/mac/ScrollViewMac.mm:
88 (WebCore::ScrollView::isScrollViewScrollbar):
89 * platform/mac/WidgetMac.mm:
90 * platform/qt/ScrollViewQt.cpp:
91 (WebCore::ScrollView::isScrollViewScrollbar):
92 * platform/qt/WidgetQt.cpp:
93 * platform/win/ScrollViewWin.cpp:
94 (WebCore::ScrollView::isScrollViewScrollbar):
95 * platform/win/WidgetWin.cpp:
96
972008-09-18 David Hyatt <hyatt@apple.com>
98
hyatt@apple.comc5b931a2008-09-19 00:39:51 +000099 Make the conversion methods that go to and from some containingWindow
100 cross-platform. Implement them on Mac.
101
102 Reviewed by Sam Weinig
103
104 * platform/Widget.h:
105 (WebCore::Widget::setContainingWindow):
106 * platform/mac/WidgetMac.mm:
107 (WebCore::Widget::convertFromContainingWindow):
108 (WebCore::Widget::convertToContainingWindow):
109
weinig@apple.comd1ea02d2008-09-19 00:28:05 +00001102008-09-18 Sam Weinig <sam@webkit.org>
111
112 Rubber-stamped by David "Yeah-yeah" Hyatt.
113
114 Cleanup RenderStyle.
115
116 * WebCore.xcodeproj/project.pbxproj:
117 * rendering/style/CounterContent.h:
118 * rendering/style/RenderStyle.cpp:
119 * rendering/style/RenderStyle.h:
120
dino@apple.comef93f532008-09-19 00:01:07 +00001212008-09-18 Chris Marrin <cmarrin@apple.com>
122
123 Reviewed by Sam Weinig
124
125 Fixed https://bugs.webkit.org/show_bug.cgi?id=20908
126 Now TransformOperations and AnimationList no longer
127 inherit from Vector<> but rather have API to access.
128
129 * css/CSSComputedStyleDeclaration.cpp:
130 (WebCore::computedTransform):
131 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
132 * css/CSSStyleSelector.cpp:
133 (WebCore::CSSStyleSelector::createTransformOperations):
134 * page/animation/AnimationBase.cpp:
135 (WebCore::blendFunc):
136 * page/animation/CompositeAnimation.cpp:
137 (WebCore::CompositeAnimation::updateTransitions):
138 (WebCore::CompositeAnimation::updateKeyframeAnimations):
139 (WebCore::CompositeAnimation::animate):
140 * page/animation/ImplicitAnimation.cpp:
141 (WebCore::ImplicitAnimation::validateTransformFunctionList):
142 * page/animation/KeyframeAnimation.cpp:
143 (WebCore::KeyframeAnimation::validateTransformFunctionList):
144 * rendering/RenderLayer.cpp:
145 (WebCore::RenderLayer::updateReflectionStyle):
146 * rendering/style/AnimationList.cpp:
147 (WebCore::AnimationList::operator==):
148 * rendering/style/AnimationList.h:
149 (WebCore::AnimationList::operator!=):
150 (WebCore::AnimationList::size):
151 (WebCore::AnimationList::isEmpty):
152 (WebCore::AnimationList::resize):
153 (WebCore::AnimationList::remove):
154 (WebCore::AnimationList::append):
155 (WebCore::AnimationList::animation):
156 * rendering/style/RenderStyle.cpp:
157 (WebCore::StyleRareNonInheritedData::updateKeyframes):
158 (WebCore::RenderStyle::applyTransform):
159 (WebCore::RenderStyle::adjustAnimations):
160 (WebCore::RenderStyle::adjustTransitions):
161 (WebCore::RenderStyle::transitionForProperty):
162 * rendering/style/RenderStyle.h:
163 (WebCore::RenderStyle::hasTransform):
164 * rendering/style/TransformOperations.cpp:
165 (WebCore::TransformOperations::TransformOperations):
166 (WebCore::TransformOperations::operator==):
167 * rendering/style/TransformOperations.h:
168 (WebCore::TransformOperations::apply):
169 (WebCore::TransformOperations::operations):
170
zecke@webkit.org20690ef2008-09-18 23:28:34 +00001712008-09-18 Holger Hans Peter Freyther <zecke@selfish.org>
172
zecke@webkit.org30db7422008-09-19 01:00:18 +0000173 Build fix.
174
175 [qt] Build fixes after the Widget/ScrollView cleanup
176 topLevel() is now root()
177
178
179 * platform/qt/ScrollViewQt.cpp:
180 (WebCore::ScrollView::ScrollViewPrivate::scrollBackingStore):
181 (WebCore::ScrollView::addChild):
182 (WebCore::ScrollView::removeChild):
183
1842008-09-18 Holger Hans Peter Freyther <zecke@selfish.org>
185
zecke@webkit.org20690ef2008-09-18 23:28:34 +0000186 Reviewed by Mark Rowe.
187
188 https://bugs.webkit.org/show_bug.cgi?id=20437
189
190 XMLTokenizer.cpp used to contain two different implementations. One was using
191 libxml2 and the other was using the Qt XML StreamReader. Clean up the code by
192 separating the two implementations from each other.
193 Common code and some small bits are kept inside the XMLTokenizer.cpp, the Qt code
194 was moved to XMLTokenizerQt.cpp and the Libxml2 based code was moved to
195 XMLTokenizerLibxml2.cpp. There should be no functional changes.
196
197 Attempt to add XMLTokenizerLibxml2.cpp to every buildsystem so the build continues
198 to work.
199
200 * GNUmakefile.am:
201 * WebCore.pro:
202 * WebCore.vcproj/WebCore.vcproj:
203 * WebCore.xcodeproj/project.pbxproj:
204 * WebCoreSources.bkl:
205 * dom/XMLTokenizer.cpp:
206 (WebCore::isScriptElement):
207 (WebCore::castToScriptElement):
208 (WebCore::XMLTokenizer::setCurrentNode):
209 (WebCore::XMLTokenizer::write):
210 (WebCore::XMLTokenizer::eventuallyMarkAsParserCreated):
211 (WebCore::XMLTokenizer::enterText):
212 (WebCore::toString):
213 (WebCore::XMLTokenizer::exitText):
214 (WebCore::XMLTokenizer::end):
215 (WebCore::XMLTokenizer::insertErrorMessageBlock):
216 * dom/XMLTokenizer.h:
217 (WebCore::XMLTokenizer::wellFormed):
218 * dom/XMLTokenizerLibxml2.cpp: Copied from WebCore/dom/XMLTokenizer.cpp.
219 (WebCore::createMemoryParser):
220 (WebCore::XMLTokenizer::XMLTokenizer):
221 (WebCore::XMLTokenizer::~XMLTokenizer):
222 (WebCore::XMLTokenizer::doWrite):
223 (WebCore::ignorableWhitespaceHandler):
224 (WebCore::XMLTokenizer::initializeParserContext):
225 (WebCore::XMLTokenizer::doEnd):
226 (WebCore::XMLTokenizer::lineNumber):
227 (WebCore::XMLTokenizer::columnNumber):
228 (WebCore::XMLTokenizer::stopParsing):
229 (WebCore::XMLTokenizer::resumeParsing):
230 (WebCore::parseXMLDocumentFragment):
231 (WebCore::attributesStartElementNsHandler):
232 (WebCore::parseAttributes):
233 * dom/XMLTokenizerQt.cpp: Copied from WebCore/dom/XMLTokenizer.cpp.
234 (WebCore::EntityResolver::resolveUndeclaredEntity):
235 (WebCore::XMLTokenizer::XMLTokenizer):
236 (WebCore::XMLTokenizer::~XMLTokenizer):
237 (WebCore::XMLTokenizer::doWrite):
238 (WebCore::XMLTokenizer::initializeParserContext):
239 (WebCore::XMLTokenizer::doEnd):
240 (WebCore::XMLTokenizer::lineNumber):
241 (WebCore::XMLTokenizer::columnNumber):
242 (WebCore::XMLTokenizer::stopParsing):
243 (WebCore::XMLTokenizer::resumeParsing):
244 (WebCore::parseXMLDocumentFragment):
245 (WebCore::attributesStartElementNsHandler):
246 (WebCore::parseAttributes):
247 (WebCore::):
248
bdakin@apple.com4c244902008-09-18 23:08:35 +00002492008-09-18 Beth Dakin <bdakin@apple.com>
250
251 Reviewed by Geoff Garen.
252
253 Build fix for non-Mac builds.
254
255 * css/CSSPrimitiveValue.cpp:
256 (WebCore::CSSPrimitiveValue::cssText):
257
eric@webkit.org4ac94e62008-09-18 23:07:55 +00002582008-09-18 Peter Kasting <pkasting@google.com>
259
260 Reviewed by hyatt. Landed by eseidel.
261
262 https://bugs.webkit.org/show_bug.cgi?id=20745
263 Animated GIFs do not animate properly with (at least) CG.
264
265 * WebCore\platform\graphics\BitmapImage.cpp:
266 * WebCore\platform\graphics\BitmapImage.h:
267 * WebCore\platform\graphics\cairo\ImageCairo.cpp:
268 * WebCore\platform\graphics\cg\ImageCG.cpp:
269 * WebCore\platform\graphics\qt\ImageQt.cpp:
270 * WebCore\platform\graphics\wx\ImageWx.cpp:
271
cfleizach@apple.com2a72d8f2008-09-18 22:54:37 +00002722008-09-18 Chris Fleizach <cfleizach@apple.com>
273
274 Reviewed by Beth Dakin
275
276 <rdar://problem/6224222> AX: should not expose a <table> as an AXTable if ARIA
277 role specifies otherwise
278
279 If a <table> isn't an AXTable, the rows and cells should default to AccessibilityRenderObject
280
281 Test: accessibility/table-with-aria-role.html
282
283 * page/AccessibilityTable.cpp:
284 (WebCore::AccessibilityTable::isTableExposableThroughAccessibility):
285 (WebCore::AccessibilityTable::addChildren):
286 (WebCore::AccessibilityTable::roleValue):
287 (WebCore::AccessibilityTable::accessibilityIsIgnored):
288 (WebCore::AccessibilityTable::title):
289 * page/AccessibilityTableCell.cpp:
290 (WebCore::AccessibilityTableCell::accessibilityIsIgnored):
291 (WebCore::AccessibilityTableCell::isTableCell):
292 (WebCore::AccessibilityTableCell::roleValue):
293 * page/AccessibilityTableCell.h:
294 * page/AccessibilityTableRow.cpp:
295 (WebCore::AccessibilityTableRow::roleValue):
296 (WebCore::AccessibilityTableRow::isTableRow):
297 (WebCore::AccessibilityTableRow::accessibilityIsIgnored):
298 * page/AccessibilityTableRow.h:
299
sfalken@apple.coma96c5d32008-09-18 22:29:34 +00003002008-09-18 Steve Falkenburg <sfalken@apple.com>
301
302 Use higher-resolution timers on all variants of Windows.
303
304 Reviewed by Darin Adler.
305
306 * platform/win/SharedTimerWin.cpp:
307 (WebCore::setSharedTimerFireTime):
308
309
hyatt@apple.comb7d49b62008-09-18 22:21:25 +00003102008-09-18 David Hyatt <hyatt@apple.com>
311
312 Make containingWindow() and setContainingWindow() cross-platform.
313 Add a root() function cross-platform so Qt doesn't have to
314 define its own.
315
316 Reviewed by Darin Adler
317
318 * platform/Widget.cpp:
319 (WebCore::Widget::root):
320 * platform/Widget.h:
321 (WebCore::Widget::setContainingWindow):
322 * platform/gtk/WidgetGtk.cpp:
323 (WebCore::Widget::Widget):
324 (WebCore::Widget::containingWindow):
325 * platform/mac/ScrollViewMac.mm:
326 (WebCore::ScrollView::addChild):
327 (WebCore::ScrollView::removeChild):
328 * platform/mac/WidgetMac.mm:
329 (WebCore::Widget::containingWindow):
330 * platform/qt/WidgetQt.cpp:
331 (WebCore::Widget::invalidateRect):
332 (WebCore::Widget::containingWindow):
333 * platform/win/WidgetWin.cpp:
334 (WebCore::Widget::Widget):
335 (WebCore::Widget::~Widget):
336 (WebCore::Widget::containingWindow):
337
bdakin@apple.comfa1ce162008-09-18 22:18:01 +00003382008-09-18 Beth Dakin <bdakin@apple.com>
339
340 Reviewed by Dave Hyatt.
341
342 Fix for https://bugs.webkit.org/show_bug.cgi?id=20515 Crash upon
343 parsing CSS: unicode-range: searchfield-cancel-buttonpt=-webkit-
344 dashboard-region=
345 and corresponding: <rdar://problem/6174100>
346
347 This patch makes CSSParserValue::createCSSValue handle unknown
348 identifiers.
349
350 * css/CSSParserValues.cpp:
351 (WebCore::CSSParserValue::createCSSValue): If we have an identifier
352 with no id (an unknown identifier) create a CSSPrimitiveValue of
353 type CSS_PARSER_IDENTIFIER
354 * css/CSSPrimitiveValue.cpp:
355 (WebCore::CSSPrimitiveValue::cssText):
356 (WebCore::CSSPrimitiveValue::parserValue):
357 * css/CSSPrimitiveValue.h:
358 (WebCore::CSSPrimitiveValue::):
359
weinig@apple.comfce49be2008-09-18 21:46:14 +00003602008-09-18 Sam Weinig <sam@webkit.org>
361
362 Rubber-stamped by David "I'd prefer not" Hyatt.
363
364 More the remaining class out of RenderStyle.h/cpp
365
366 * GNUmakefile.am:
367 * WebCore.pro:
368 * WebCore.vcproj/WebCore.vcproj:
369 * WebCore.xcodeproj/project.pbxproj:
370 * WebCoreSources.bkl:
371 * rendering/style/CursorData.h: Copied from rendering/style/RenderStyle.h.
372 (WebCore::CursorData::CursorData):
373 (WebCore::CursorData::operator==):
374 (WebCore::CursorData::operator!=):
375 * rendering/style/CursorList.h: Copied from rendering/style/RenderStyle.h.
376 (WebCore::CursorList::operator[]):
377 (WebCore::CursorList::CursorList):
378 * rendering/style/RenderStyle.cpp:
379 * rendering/style/RenderStyle.h:
380 (WebCore::RenderStyle::deref):
381 (WebCore::RenderStyle::hasOneRef):
382 (WebCore::RenderStyle::InheritedFlags::operator!=):
383 (WebCore::RenderStyle::NonInheritedFlags::operator!=):
384 (WebCore::RenderStyle::hasBackground):
385 (WebCore::RenderStyle::outlineWidth):
386 (WebCore::RenderStyle::autoWrap):
387 (WebCore::RenderStyle::preserveNewline):
388 (WebCore::RenderStyle::collapseWhiteSpace):
389 (WebCore::RenderStyle::isCollapsibleWhiteSpace):
390 (WebCore::RenderStyle::breakOnlyAfterWhiteSpace):
391 (WebCore::RenderStyle::breakWords):
392 (WebCore::RenderStyle::outlineOffset):
393 (WebCore::RenderStyle::setLeft):
394 (WebCore::RenderStyle::setRight):
395 (WebCore::RenderStyle::setTop):
396 (WebCore::RenderStyle::setBottom):
397 (WebCore::RenderStyle::setDashboardRegion):
398 (WebCore::RenderStyle::setBackgroundColor):
399 (WebCore::RenderStyle::setBorderImage):
400 (WebCore::RenderStyle::setBorderRadius):
401 (WebCore::RenderStyle::setFontDescription):
402 (WebCore::RenderStyle::adjustBackgroundLayers):
403 (WebCore::RenderStyle::adjustMaskLayers):
404 (WebCore::RenderStyle::deleteBindingURIs):
405 (WebCore::RenderStyle::inheritBindingURIs):
406 (WebCore::RenderStyle::isDisplayReplacedType):
407 (WebCore::RenderStyle::isDisplayInlineType):
408 (WebCore::RenderStyle::isOriginalDisplayInlineType):
409 * rendering/style/StyleInheritedData.cpp: Copied from rendering/style/RenderStyle.cpp.
410 * rendering/style/StyleInheritedData.h: Copied from rendering/style/RenderStyle.h.
411 (WebCore::StyleInheritedData::operator!=):
412 * rendering/style/StyleRareInheritedData.cpp: Copied from rendering/style/RenderStyle.cpp.
413 * rendering/style/StyleRareInheritedData.h: Copied from rendering/style/RenderStyle.h.
414 (WebCore::StyleRareInheritedData::operator!=):
415 * rendering/style/StyleRareNonInheritedData.cpp: Copied from rendering/style/RenderStyle.cpp.
416 * rendering/style/StyleRareNonInheritedData.h: Copied from rendering/style/RenderStyle.h.
417 * rendering/style/StyleReflection.h: Copied from rendering/style/RenderStyle.h.
418
hyatt@apple.com643534d2008-09-18 20:09:41 +00004192008-09-18 David Hyatt <hyatt@apple.com>
420
hyatt@apple.comd23089a2008-09-18 20:24:16 +0000421 Move the concept of suppression invalidation on Widgets to Scrollbar
422 instead. Since this is only used by Scrollbars, there is no need for
423 it to be on Widget.
424
425 Reviewed by Sam Weinig
426
427 * platform/Scrollbar.cpp:
428 (WebCore::Scrollbar::Scrollbar):
429 (WebCore::Scrollbar::invalidateRect):
430 * platform/Scrollbar.h:
431 (WebCore::Scrollbar::suppressInvalidation):
432 (WebCore::Scrollbar::setSuppressInvalidation):
433 * platform/Widget.h:
434 * platform/gtk/WidgetGtk.cpp:
435 (WebCore::Widget::Widget):
436 (WebCore::Widget::invalidateRect):
437 * platform/qt/WidgetQt.cpp:
438 (WebCore::WidgetPrivate::WidgetPrivate):
439 (WebCore::Widget::invalidateRect):
440 * platform/win/WidgetWin.cpp:
441 (WebCore::Widget::Widget):
442 (WebCore::Widget::invalidateRect):
443
4442008-09-18 David Hyatt <hyatt@apple.com>
445
hyatt@apple.com643534d2008-09-18 20:09:41 +0000446 Make invalidate() on Widget non-virtual and make it just call
447 invalidateRect() on the boundsGeometry() of the Widget.
448
449 Reviewed by Dan Bernstein
450
451 * platform/Widget.h:
452 (WebCore::Widget::boundsGeometry):
453 (WebCore::Widget::invalidate):
454 * platform/gtk/WidgetGtk.cpp:
455 * platform/mac/WidgetMac.mm:
456 * platform/qt/WidgetQt.cpp:
457 * platform/win/WidgetWin.cpp:
458 * platform/wx/WidgetWx.cpp:
459
weinig@apple.comcaf2df42008-09-18 19:40:24 +00004602008-09-18 Sam Weinig <sam@webkit.org>
461
462 Rubber-stamped in exile by David Hyatt.
463
464 Split Animation, AnimationList, BindingURI, ContentData, CounterContent,
465 KeyframeList, ShadowData, StyleFlexibleBoxData and TimingFunction out of
466 RenderStyle.h/cpp
467
468 * GNUmakefile.am:
469 * WebCore.pro:
470 * WebCore.vcproj/WebCore.vcproj:
471 * WebCore.xcodeproj/project.pbxproj:
472 * WebCoreSources.bkl:
473 * css/CSSStyleSelector.cpp:
474 * css/CSSStyleSelector.h:
475 * page/animation/CompositeAnimation.cpp:
476 * page/animation/KeyframeAnimation.cpp:
477 * page/animation/KeyframeAnimation.h:
478 * rendering/RenderCounter.h:
479 * rendering/style/Animation.cpp: Copied from rendering/style/RenderStyle.cpp.
480 (WebCore::Animation::~Animation):
481 (WebCore::Animation::animationsMatch):
482 (WebCore::Animation::keyframeList):
483 (WebCore::Animation::setAnimationKeyframe):
484 * rendering/style/Animation.h: Copied from rendering/style/RenderStyle.h.
485 * rendering/style/AnimationList.cpp: Copied from rendering/style/RenderStyle.cpp.
486 * rendering/style/AnimationList.h: Copied from rendering/style/RenderStyle.h.
487 * rendering/style/BindingURI.cpp: Copied from rendering/style/RenderStyle.cpp.
488 * rendering/style/BindingURI.h: Copied from rendering/style/RenderStyle.h.
489 (WebCore::BindingURI::operator!=):
490 * rendering/style/ContentData.cpp: Copied from rendering/style/RenderStyle.cpp.
491 * rendering/style/ContentData.h: Copied from rendering/style/RenderStyle.h.
492 (WebCore::ContentData::ContentData):
493 (WebCore::ContentData::~ContentData):
494 * rendering/style/CounterContent.h: Copied from rendering/style/RenderStyle.h.
495 (WebCore::CounterContent::CounterContent):
496 * rendering/style/CounterDirectives.cpp: Copied from rendering/style/RenderStyle.cpp.
497 * rendering/style/CounterDirectives.h: Copied from rendering/style/RenderStyle.h.
498 (WebCore::CounterDirectives::CounterDirectives):
499 * rendering/style/KeyframeList.cpp: Copied from rendering/style/RenderStyle.cpp.
500 (WebCore::KeyframeList::insert):
501 * rendering/style/KeyframeList.h: Copied from rendering/style/RenderStyle.h.
502 (WebCore::KeyframeValue::KeyframeValue):
503 (WebCore::KeyframeList::create):
504 (WebCore::KeyframeList::KeyframeList):
505 * rendering/style/RenderStyle.cpp:
506 * rendering/style/RenderStyle.h:
507 * rendering/style/ShadowData.cpp: Copied from rendering/style/RenderStyle.cpp.
508 * rendering/style/ShadowData.h: Copied from rendering/style/RenderStyle.h.
509 (WebCore::ShadowData::ShadowData):
510 (WebCore::ShadowData::~ShadowData):
511 (WebCore::ShadowData::operator!=):
512 * rendering/style/StyleFlexibleBoxData.cpp: Copied from rendering/style/RenderStyle.cpp.
513 * rendering/style/StyleFlexibleBoxData.h: Copied from rendering/style/RenderStyle.h.
514 (WebCore::StyleFlexibleBoxData::operator!=):
515 * rendering/style/TimingFunction.h: Copied from rendering/style/RenderStyle.h.
516 (WebCore::TimingFunction::TimingFunction):
517 (WebCore::TimingFunction::operator==):
518
adele@apple.com5b2b5da2008-09-18 18:49:44 +00005192008-09-18 Adele Peterson <adele@apple.com>
520
521 Reviewed by Dan Bernstein.
522
523 Fix RenderStyle leaks.
524
525 * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::createSubtreeIfNeeded):
526
kmccullough@apple.comd4089752008-09-18 17:21:49 +00005272008-09-18 Kevin McCullough <kmccullough@apple.com>
528
kmccullough@apple.com76c708f2008-09-18 18:03:23 +0000529 Accidentally checked in code.
530
531 * html/HTMLElementFactory.cpp:
532 (WebCore::frameConstructor):
533 (WebCore::iframeConstructor):
534
5352008-09-18 Kevin McCullough <kmccullough@apple.com>
536
kmccullough@apple.comd4089752008-09-18 17:21:49 +0000537 Reviewed by Tim.
538
539 <rdar://problem/5722310> gracefully handle too many console messages
540 (20904)
541 - Keep track of the most previous message and then compare it to the
542 subsequent messages as they come in. If there are multiple of the same
543 message create a count that indicates the current number.
544
545 * manual-tests/inspector/multiple-console-messages.html: Added.
546 * page/inspector/Console.js:
547 * page/inspector/inspector.css:
548
alp@webkit.org18a1fbc2008-09-18 11:50:26 +00005492008-09-18 Jonathon Jongsma <jonathon@quotidian.org>
550
551 Reviewed by Alp Toker
552
553 https://bugs.webkit.org/show_bug.cgi?id=20830
554 [GTK] Don't use deprecated pango API
555
556 Replace deprecated pango functions with non-deprecated ones for newer
557 versions of pango
558
559 * platform/graphics/gtk/FontGtk.cpp:
560 (WebCore::getDefaultPangoLayout):
561 * platform/graphics/gtk/FontPlatformDataPango.cpp:
562 (WebCore::FontPlatformData::FontPlatformData):
563
alp@webkit.org2154ef22008-09-18 08:10:49 +00005642008-09-18 Alp Toker <alp@nuanti.com>
565
566 Build fix for r36587. Add new sources (and sort the lists).
567
568 * GNUmakefile.am:
569
weinig@apple.com3a98b2a2008-09-18 05:51:35 +00005702008-09-17 Sam Weinig <sam@webkit.org>
571
572 Fix Windows build.
573
574 * WebCore.vcproj/WebCore.vcproj:
575
hyatt@apple.comb3699722008-09-18 05:10:03 +00005762008-09-17 David Hyatt <hyatt@apple.com>
577
578 Switch back to having frameGeometry be virtual in order to keep Mac
579 the way it used to be.
580
581 Reviewed by Sam Weinig
582
583 * WebCore.base.exp:
584 * platform/Widget.cpp:
585 (WebCore::Widget::setParent):
586 * platform/Widget.h:
587 * platform/gtk/WidgetGtk.cpp:
588 (WebCore::Widget::frameGeometry):
589 (WebCore::Widget::setFrameGeometry):
590 * platform/mac/WidgetMac.mm:
591 (WebCore::Widget::frameGeometry):
592 (WebCore::Widget::setFrameGeometry):
593 * platform/qt/WidgetQt.cpp:
594 (WebCore::Widget::frameGeometry):
595 (WebCore::Widget::setFrameGeometry):
596 * platform/win/WidgetWin.cpp:
597 (WebCore::Widget::frameGeometry):
598 (WebCore::Widget::setFrameGeometry):
599 * platform/wx/WidgetWx.cpp:
600 (WebCore::Widget::frameGeometry):
601 (WebCore::Widget::setFrameGeometry):
602 * plugins/PluginView.cpp:
603 (WebCore::PluginView::setFrameGeometry):
604 (WebCore::PluginView::geometryChanged):
605 * plugins/PluginView.h:
606 * plugins/gtk/PluginViewGtk.cpp:
607 (WebCore::PluginView::updatePluginWidget):
608 * plugins/qt/PluginViewQt.cpp:
609 (WebCore::PluginView::updatePluginWidget):
610 * plugins/win/PluginViewWin.cpp:
611 (WebCore::PluginView::updatePluginWidget):
612
weinig@apple.com00f4d5c2008-09-18 03:23:08 +00006132008-09-17 Sam Weinig <sam@webkit.org>
614
weinig@apple.com4fd54cd2008-09-18 05:03:21 +0000615 Reviewed by Mark Rowe.
616
617 Fix assertion in DOMWindow::adjustWindowRect where we were passing
618 in garbage values and were getting lucky that they were a not Nan.
619
620 * bindings/js/JSDOMWindowBase.cpp:
621 (WebCore::windowProtoFuncOpen):
622
6232008-09-17 Sam Weinig <sam@webkit.org>
624
weinig@apple.com95b14762008-09-18 04:28:40 +0000625 Fix gtk build.
626
627 * rendering/style/MatrixTransformOperation.cpp:
628
6292008-09-17 Sam Weinig <sam@webkit.org>
630
weinig@apple.com00f4d5c2008-09-18 03:23:08 +0000631 Rubber-stamped with love by David Hyatt.
632
633 Split IdentityTransformOperation, MatrixTransformOperation, RotateTransformOperation,
634 ScaleTransformOperation, SkewTransformOperation, StyleTransformData, TransformOperation,
635 TransformOperations and TranslateTransformOperation out of RenderStyle.h/cpp
636
637 * GNUmakefile.am:
638 * WebCore.pro:
639 * WebCore.vcproj/WebCore.vcproj:
640 * WebCore.xcodeproj/project.pbxproj:
641 * WebCoreSources.bkl:
642 * css/CSSStyleSelector.cpp:
643 * page/animation/AnimationBase.cpp:
644 (WebCore::solveEpsilon):
645 * rendering/RenderLayer.cpp:
646 * rendering/style/IdentityTransformOperation.h: Copied from rendering/style/RenderStyle.h.
647 * rendering/style/MatrixTransformOperation.cpp: Copied from rendering/style/RenderStyle.cpp.
648 * rendering/style/MatrixTransformOperation.h: Copied from rendering/style/RenderStyle.h.
649 (WebCore::MatrixTransformOperation::MatrixTransformOperation):
650 * rendering/style/RenderStyle.cpp:
651 * rendering/style/RenderStyle.h:
652 * rendering/style/RotateTransformOperation.cpp: Copied from rendering/style/RenderStyle.cpp.
653 * rendering/style/RotateTransformOperation.h: Copied from rendering/style/RenderStyle.h.
654 (WebCore::RotateTransformOperation::RotateTransformOperation):
655 * rendering/style/ScaleTransformOperation.cpp: Copied from rendering/style/RenderStyle.cpp.
656 * rendering/style/ScaleTransformOperation.h: Copied from rendering/style/RenderStyle.h.
657 (WebCore::ScaleTransformOperation::ScaleTransformOperation):
658 * rendering/style/SkewTransformOperation.cpp: Copied from rendering/style/RenderStyle.cpp.
659 * rendering/style/SkewTransformOperation.h: Copied from rendering/style/RenderStyle.h.
660 (WebCore::SkewTransformOperation::SkewTransformOperation):
661 * rendering/style/StyleTransformData.cpp: Copied from rendering/style/RenderStyle.cpp.
662 * rendering/style/StyleTransformData.h: Copied from rendering/style/RenderStyle.h.
663 (WebCore::StyleTransformData::operator!=):
664 * rendering/style/TransformOperation.h: Copied from rendering/style/RenderStyle.h.
665 (WebCore::TransformOperation::):
666 * rendering/style/TransformOperations.cpp: Copied from rendering/style/RenderStyle.cpp.
667 (WebCore::TransformOperations::TransformOperations):
668 * rendering/style/TransformOperations.h: Copied from rendering/style/RenderStyle.h.
669 (WebCore::TransformOperations::operator!=):
670 * rendering/style/TranslateTransformOperation.cpp: Copied from rendering/style/RenderStyle.cpp.
671 * rendering/style/TranslateTransformOperation.h: Copied from rendering/style/RenderStyle.h.
672 (WebCore::TranslateTransformOperation::TranslateTransformOperation):
673
mrowe@apple.comdbfa8852008-09-18 02:59:20 +00006742008-09-17 Mark Rowe <mrowe@apple.com>
675
676 Build fix.
677
678 * rendering/style/StyleDashboardRegion.h: PlatformString.h rather than String.h.
679
hyatt@apple.com76057b42008-09-18 02:48:46 +00006802008-09-17 David Hyatt <hyatt@apple.com>
681
682 (1) Inline a bunch of methods for accessing frame geometry.
683 (2) Make sure frameGeometry() works even when you have no underlying
684 native widget.
685 (3) Cache a frame geometry rect cross-platform (even for widgets that
686 have underlying native widgets.
687 (4) PluginView's updateWindow call is now a virtual function on Widget.
688
689 Reviewed by Sam Weinig
690
691 * ChangeLog:
692 * WebCore.base.exp:
693 * platform/Widget.cpp:
694 (WebCore::Widget::setFrameGeometry):
695 * platform/Widget.h:
696 (WebCore::Widget::x):
697 (WebCore::Widget::y):
698 (WebCore::Widget::width):
699 (WebCore::Widget::height):
700 (WebCore::Widget::size):
701 (WebCore::Widget::pos):
702 (WebCore::Widget::frameGeometry):
703 (WebCore::Widget::resize):
704 (WebCore::Widget::move):
705 (WebCore::Widget::isFrameView):
706 (WebCore::Widget::windowClipRect):
707 * platform/mac/WidgetMac.mm:
708 (WebCore::Widget::~Widget):
709 (WebCore::Widget::updatePlatformWidgetFrameGeometry):
710 * platform/win/WidgetWin.cpp:
711 (WebCore::Widget::updatePlatformWidgetFrameGeometry):
712 * plugins/PluginView.cpp:
713 (WebCore::PluginView::setFrameGeometry):
714 (WebCore::PluginView::geometryChanged):
715 * plugins/PluginView.h:
716 * plugins/gtk/PluginViewGtk.cpp:
717 (WebCore::PluginView::updatePlatformWidgetFrameGeometry):
718 * plugins/qt/PluginViewQt.cpp:
719 (WebCore::PluginView::updatePlatformWidgetFrameGeometry):
720 * plugins/win/PluginViewWin.cpp:
721 (WebCore::PluginView::updatePlatformWidgetFrameGeometry):
722 * plugins/wx/PluginViewWx.cpp:
723
weinig@apple.coma812a3ce2008-09-18 01:46:26 +00007242008-09-17 Sam Weinig <sam@webkit.org>
725
weinig@apple.comb4b66742008-09-18 02:47:55 +0000726 Reviewed by David "Waterman" Hyatt.
727
728 Fix a leak of NSViews in WidgetMac.mm.
729
730 * platform/mac/WidgetMac.mm:
731 (WebCore::Widget::~Widget):
732
7332008-09-17 Sam Weinig <sam@webkit.org>
734
weinig@apple.coma812a3ce2008-09-18 01:46:26 +0000735 Rubber-stamped by David Waterman Hyatt.
736
737 Split FillLayer, StyleBackgroundData, StyleBoxData, StyleDashboardRegion, StyleMarqueeData
738 StyleMultiColData and StyleVisualData out of RenderStyle.h/cpp
739
740 * GNUmakefile.am:
741 * WebCore.pro:
742 * WebCore.vcproj/WebCore.vcproj:
743 * WebCore.xcodeproj/project.pbxproj:
744 * WebCoreSources.bkl:
745 * rendering/style/FillLayer.cpp: Copied from rendering/style/RenderStyle.cpp.
746 * rendering/style/FillLayer.h: Copied from rendering/style/RenderStyle.h.
747 (WebCore::FillLayer::operator!=):
748 (WebCore::FillLayer::hasImage):
749 (WebCore::FillLayer::hasFixedImage):
750 * rendering/style/RenderStyle.cpp:
751 * rendering/style/RenderStyle.h:
752 * rendering/style/StyleBackgroundData.cpp: Copied from rendering/style/RenderStyle.cpp.
753 (WebCore::StyleBackgroundData::StyleBackgroundData):
754 * rendering/style/StyleBackgroundData.h: Copied from rendering/style/RenderStyle.h.
755 (WebCore::StyleBackgroundData::~StyleBackgroundData):
756 (WebCore::StyleBackgroundData::operator!=):
757 * rendering/style/StyleBoxData.cpp: Copied from rendering/style/RenderStyle.cpp.
758 * rendering/style/StyleBoxData.h: Copied from rendering/style/RenderStyle.h.
759 (WebCore::StyleBoxData::operator!=):
760 * rendering/style/StyleDashboardRegion.h: Copied from rendering/style/RenderStyle.h.
761 (WebCore::StyleDashboardRegion::operator!=):
762 * rendering/style/StyleMarqueeData.cpp: Copied from rendering/style/RenderStyle.cpp.
763 * rendering/style/StyleMarqueeData.h: Copied from rendering/style/RenderStyle.h.
764 (WebCore::StyleMarqueeData::operator!=):
765 * rendering/style/StyleMultiColData.cpp: Copied from rendering/style/RenderStyle.cpp.
766 * rendering/style/StyleMultiColData.h: Copied from rendering/style/RenderStyle.h.
767 (WebCore::StyleMultiColData::operator!=):
768 (WebCore::StyleMultiColData::ruleWidth):
769 * rendering/style/StyleVisualData.cpp: Copied from rendering/style/RenderStyle.cpp.
770 * rendering/style/StyleVisualData.h: Copied from rendering/style/RenderStyle.h.
771 (WebCore::StyleVisualData::operator==):
772
hyatt@apple.comb4f28b32008-09-18 00:39:36 +00007732008-09-17 David Hyatt <hyatt@apple.com>
774
hyatt@apple.com3f19eac2008-09-18 00:56:04 +0000775 Remove WidgetClient from Widget.
776
777 Reviewed by Sam Weinig
778
779 * WebCore.xcodeproj/project.pbxproj:
780 * platform/Widget.h:
781 (WebCore::Widget::setClient):
782 (WebCore::Widget::client):
783 * platform/WidgetClient.h: Removed.
784 * platform/gtk/WidgetGtk.cpp:
785 * platform/mac/WidgetMac.mm:
786 (WebCore::Widget::Widget):
787 (WebCore::Widget::show):
788 (WebCore::Widget::hide):
789 * platform/qt/WidgetQt.cpp:
790 (WebCore::WidgetPrivate::WidgetPrivate):
791 * platform/win/WidgetWin.cpp:
792 (WebCore::Widget::Widget):
793 * platform/wx/WidgetWx.cpp:
794 (WebCore::Widget::Widget):
795
7962008-09-17 David Hyatt <hyatt@apple.com>
797
hyatt@apple.comb4f28b32008-09-18 00:39:36 +0000798 Remove isEnabled/setEnabled from Widget. The concept of being enabled now
799 only applies to Scrollbars so the method has been moved there and made
800 cross-platform. Scrollbar subclasses that have a corresponding native
801 widget can subclass setEnabled to change the enabled state of the native
802 widget.
803
804 Reviewed by Sam Weinig & Darin Adler
805
806 * WebCore.base.exp:
807 * platform/Scrollbar.cpp:
808 (WebCore::Scrollbar::Scrollbar):
809 * platform/Scrollbar.h:
810 (WebCore::Scrollbar::enabled):
811 (WebCore::Scrollbar::setEnabled):
812 * platform/Widget.h:
813 * platform/gtk/ScrollbarGtk.cpp:
814 (ScrollbarGtk::setEnabled):
815 * platform/gtk/ScrollbarGtk.h:
816 * platform/gtk/WidgetGtk.cpp:
817 * platform/mac/ScrollbarMac.h:
818 * platform/mac/ScrollbarMac.mm:
819 (WebCore::ScrollbarMac::scrollbarHit):
820 (WebCore::ScrollbarMac::setEnabled):
821 * platform/mac/WidgetMac.mm:
822 * platform/qt/WidgetQt.cpp:
823 (WebCore::WidgetPrivate::WidgetPrivate):
824 * platform/win/WidgetWin.cpp:
825 (WebCore::Widget::Widget):
826 * platform/wx/WidgetWx.cpp:
827
weinig@apple.com1ea40602008-09-17 23:56:27 +00008282008-09-17 Sam Weinig <sam@webkit.org>
829
830 Rubber-stamped by David Hyatt.
831
832 Split all RenderStyle enums into their own file.
833
834 * GNUmakefile.am:
835 * WebCore.vcproj/WebCore.vcproj:
836 * WebCore.xcodeproj/project.pbxproj:
837 * rendering/style/BorderValue.h:
838 * rendering/style/CollapsedBorderValue.h:
839 * rendering/style/RenderStyle.h:
840 * rendering/style/RenderStyleConstants.h: Copied from rendering/style/RenderStyle.h.
841 (WebCore::):
842 * rendering/style/StyleCachedImage.h:
843 * rendering/style/StyleGeneratedImage.h:
844 * rendering/style/StyleImage.h:
845
sfalken@apple.combf270912008-09-17 23:53:17 +00008462008-09-17 Steve Falkenburg <sfalken@apple.com>
847
848 Add back isFrameView check to fix failed assertion during scroll bar teardown.
849
850 Reviewed by Dave Hyatt.
851
852 * platform/Scrollbar.cpp:
853 (WebCore::Scrollbar::setParent):
854
beidson@apple.com4398e482008-09-17 23:30:00 +00008552008-09-17 Brady Eidson <beidson@apple.com>
856
857 Reviewed by Mac build fix
858
859 * WebCore.xcodeproj/project.pbxproj: Send appropriate headers to WebKit
860
sfalken@apple.com85cc1392008-09-17 23:28:13 +00008612008-09-17 Steve Falkenburg <sfalken@apple.com>
862
863 Fix build.
864
865 * platform/win/ScrollViewWin.cpp:
866 (WebCore::ScrollView::setParentVisible):
867 * plugins/win/PluginViewWin.cpp:
868 (WebCore::PluginView::init):
869
zecke@webkit.org2ba9a4e2008-09-17 23:25:10 +00008702008-09-17 Holger Hans Peter Freyther <zecke@selfish.org>
871
872 Reviewed by Simon.
873
874 [QtWebKit] Implement error handling in TextCodecQt::decode
875 Use the QTextCodec parsing state to set the sawError out variable. This
876 is needed to pass Test 70 of acid3. The test case for this bug is
877 fast/encoding/invalid-xml.html that is now partially passed. To pass
878 it completely the Qt text codecs need to be adjusted to have proper
879 error handling.
880
881 * platform/text/qt/TextCodecQt.cpp:
882 (WebCore::TextCodecQt::decode):
883
weinig@apple.comf6f0f112008-09-17 23:03:16 +00008842008-09-17 Sam Weinig <sam@webkit.org>
885
886 Rubber-stamped by Dave Hyatt.
887
888 Split BorderData, BorderValue, CollapsedBorderValue, OutlineValue and StyleSurroundData
889 out of RenderStyle.h/cpp
890
891 * GNUmakefile.am:
892 * WebCore.pro:
893 * WebCore.vcproj/WebCore.vcproj:
894 * WebCore.xcodeproj/project.pbxproj:
895 * WebCoreSources.bkl:
896 * rendering/style/BorderData.h: Copied from rendering/style/RenderStyle.h.
897 (WebCore::BorderData::hasBorderRadius):
898 (WebCore::BorderData::borderLeftWidth):
899 (WebCore::BorderData::borderRightWidth):
900 (WebCore::BorderData::borderTopWidth):
901 (WebCore::BorderData::borderBottomWidth):
902 (WebCore::BorderData::operator!=):
903 * rendering/style/BorderValue.h: Copied from rendering/style/RenderStyle.h.
904 (WebCore::):
905 (WebCore::BorderValue::BorderValue):
906 (WebCore::BorderValue::nonZero):
907 (WebCore::BorderValue::isTransparent):
908 (WebCore::BorderValue::isVisible):
909 * rendering/style/CollapsedBorderValue.h: Copied from rendering/style/RenderStyle.h.
910 (WebCore::):
911 (WebCore::CollapsedBorderValue::CollapsedBorderValue):
912 (WebCore::CollapsedBorderValue::operator==):
913 * rendering/style/OutlineValue.h: Copied from rendering/style/RenderStyle.h.
914 (WebCore::OutlineValue::OutlineValue):
915 * rendering/style/RenderStyle.cpp:
916 * rendering/style/RenderStyle.h:
917 * rendering/style/StyleSurroundData.cpp: Copied from rendering/style/RenderStyle.cpp.
918 * rendering/style/StyleSurroundData.h: Copied from rendering/style/RenderStyle.h.
919 (WebCore::StyleSurroundData::operator!=):
920
bdakin@apple.com06b97182008-09-17 23:00:29 +00009212008-09-17 Beth Dakin <bdakin@apple.com>
922
923 Reviewed by Darin Adler.
924
925 This is a better fix for: Invalid CSS code crashes Safari
926 https://bugs.webkit.org/show_bug.cgi?id=20512
927
928 The spec indicates that the only valid input for a counter is a
929 number or an identifier. So that is exactly what we allow.
930
931 * css/CSSParser.cpp:
932 (WebCore::CSSParser::parseCounterContent):
933
alp@webkit.org97ba9222008-09-17 22:16:26 +00009342008-09-17 Alp Toker <alp@nuanti.com>
935
936 GTK+ build fix. Adapt to use PlatformWidget functions.
937
938 * platform/gtk/ScrollViewGtk.cpp:
939 (WebCore::ScrollViewScrollbar::geometryChanged):
940 (WebCore::ScrollView::addChild):
941 (WebCore::ScrollView::removeChild):
942 * platform/gtk/ScrollbarGtk.cpp:
943 (ScrollbarGtk::ScrollbarGtk):
944 (ScrollbarGtk::~ScrollbarGtk):
945 (ScrollbarGtk::geometryChanged):
946
weinig@apple.com930ed392008-09-17 22:00:45 +00009472008-09-17 Sam Weinig <sam@webkit.org>
948
949 Reviewed by Adele Peterson.
950
951 Patch for <rdar://problem/6133884>
952 Calling window.resizeTo() on a subframe shouldn't change the window size
953
954 Test: fast/dom/Window/window-resize-and-move-sub-frame.html
955
956 * page/DOMWindow.cpp:
957 (WebCore::DOMWindow::moveBy):
958 (WebCore::DOMWindow::moveTo):
959 (WebCore::DOMWindow::resizeBy):
960 (WebCore::DOMWindow::resizeTo):
961
bdakin@apple.com8f952d82008-09-17 21:35:02 +00009622008-09-17 Beth Dakin <bdakin@apple.com>
963
964 Reviewed by Adam Roben.
965
966 Fix for https://bugs.webkit.org/show_bug.cgi?id=20512 Invalid CSS
967 code crashes Safari
968 and corresponding: <rdar://problem/6173832>
969
970 Reading through the spec, it seems like a function is not valid
971 input for a counter. So this patch checks for that and bails in the
972 case of invalid input.
973
974 * css/CSSParser.cpp:
975 (WebCore::CSSParser::parseCounterContent):
976
antti@apple.comb37d4052008-09-17 21:14:13 +00009772008-09-17 Greg Bolsinga <bolsinga@apple.com>
978
979 Reviewed by Antti Koivisto.
980
981 Fix <rdar://problem/6227089>
982 Crash in WebCore::Frame::setNeedsReapplyStyles()
983
984 View is null checked elsewhere too.
985
986 * page/Frame.cpp:
987 (WebCore::Frame::setNeedsReapplyStyles):
988
hyatt@apple.com8e340252008-09-17 20:59:45 +00009892008-09-17 David Hyatt <hyatt@apple.com>
990
991 Make the notion of having a native widget backing a Widget cross-platform.
992 The PlatformWidget abstraction (which already existed) is used for this.
993 Windows = HWND
994 Qt = QWidget
995 Mac = NSView
996 wx = wxWindow
997 Gtk = GtkWidget
998
999 There are new cross-platform methods that replace all of the unique
1000 platform-specific methods.
1001 platformWidget()
1002 setPlatformWidget()
1003
1004 For plugins, on every platform except Qt on Windows, the plugin's native
1005 widget is now stored in the Widget base class. Since Qt on Windows uses
1006 HWNDs for plugins instead of QWidget, it is the only platform to keep the
1007 m_window variable in PluginView.
1008
1009 Reviewed by Sam Weinig
1010
1011 * WebCore.base.exp:
1012 * bindings/js/ScriptControllerMac.mm:
1013 (WebCore::ScriptController::createScriptInstanceForWidget):
1014 * page/mac/AccessibilityObjectWrapper.mm:
1015 (-[AccessibilityObjectWrapper attachmentView]):
1016 (-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
1017 * page/mac/EventHandlerMac.mm:
1018 (WebCore::EventHandler::passMouseDownEventToWidget):
1019 (WebCore::EventHandler::mouseDownViewIfStillGood):
1020 (WebCore::EventHandler::passWheelEventToWidget):
1021 (WebCore::EventHandler::sendFakeEventsAfterWidgetTracking):
1022 * platform/Widget.cpp:
1023 (WebCore::Widget::init):
1024 (WebCore::Widget::setParent):
1025 (WebCore::Widget::releasePlatformWidget):
1026 (WebCore::Widget::retainPlatformWidget):
1027 * platform/Widget.h:
1028 (WebCore::Widget::platformWidget):
1029 (WebCore::Widget::setPlatformWidget):
1030 * platform/gtk/WidgetGtk.cpp:
1031 (WebCore::Widget::Widget):
1032 (WebCore::Widget::setFocus):
1033 (WebCore::gdkDrawable):
1034 (WebCore::Widget::setCursor):
1035 (WebCore::Widget::show):
1036 (WebCore::Widget::hide):
1037 (WebCore::Widget::setEnabled):
1038 (WebCore::Widget::isEnabled):
1039 (WebCore::Widget::paint):
1040 * platform/mac/PlatformScreenMac.mm:
1041 (WebCore::screenRect):
1042 (WebCore::screenAvailableRect):
1043 * platform/mac/ScrollViewMac.mm:
1044 (WebCore::ScrollView::scrollView):
1045 (WebCore::ScrollView::update):
1046 (WebCore::ScrollView::inWindow):
1047 * platform/mac/ScrollbarMac.mm:
1048 (WebCore::ScrollbarMac::ScrollbarMac):
1049 (WebCore::ScrollbarMac::~ScrollbarMac):
1050 (WebCore::ScrollbarMac::updateThumbPosition):
1051 (WebCore::ScrollbarMac::updateThumbProportion):
1052 (WebCore::ScrollbarMac::scrollbarHit):
1053 * platform/mac/WidgetMac.mm:
1054 (WebCore::Widget::Widget):
1055 (WebCore::Widget::setEnabled):
1056 (WebCore::Widget::isEnabled):
1057 (WebCore::Widget::setFocus):
1058 (WebCore::Widget::getOuterView):
1059 (WebCore::Widget::paint):
1060 (WebCore::Widget::invalidate):
1061 (WebCore::Widget::invalidateRect):
1062 (WebCore::Widget::setIsSelected):
1063 (WebCore::Widget::releasePlatformWidget):
1064 (WebCore::Widget::retainPlatformWidget):
1065 * platform/qt/WidgetQt.cpp:
1066 (WebCore::WidgetPrivate::WidgetPrivate):
1067 (WebCore::Widget::Widget):
1068 (WebCore::Widget::setFrameGeometry):
1069 (WebCore::Widget::show):
1070 (WebCore::Widget::hide):
1071 (WebCore::Widget::isEnabled):
1072 (WebCore::Widget::setEnabled):
1073 (WebCore::Widget::invalidateRect):
1074 (WebCore::Widget::containingWindow):
1075 * platform/win/WidgetWin.cpp:
1076 (WebCore::Widget::Widget):
1077 * platform/wx/WidgetWx.cpp:
1078 (WebCore::Widget::Widget):
1079 (WebCore::Widget::frameGeometry):
1080 (WebCore::Widget::setFocus):
1081 (WebCore::Widget::setCursor):
1082 (WebCore::Widget::show):
1083 (WebCore::Widget::hide):
1084 (WebCore::Widget::setFrameGeometry):
1085 (WebCore::Widget::setEnabled):
1086 (WebCore::Widget::isEnabled):
1087 (WebCore::Widget::invalidate):
1088 (WebCore::Widget::invalidateRect):
1089 (WebCore::Widget::paint):
1090 * plugins/PluginView.cpp:
1091 (WebCore::PluginView::PluginView):
1092 * plugins/PluginView.h:
1093 (WebCore::PluginView::platformPluginWidget):
1094 * plugins/gtk/PluginViewGtk.cpp:
1095 (WebCore::PluginView::updateWindow):
1096 (WebCore::PluginView::setFocus):
1097 (WebCore::PluginView::show):
1098 (WebCore::PluginView::hide):
1099 (WebCore::PluginView::setParent):
1100 (WebCore::PluginView::setNPWindowRect):
1101 (WebCore::PluginView::setParentVisible):
1102 (WebCore::PluginView::getValue):
1103 (WebCore::PluginView::forceRedraw):
1104 (WebCore::PluginView::init):
1105 * plugins/qt/PluginViewQt.cpp:
1106 (WebCore::PluginView::updateWindow):
1107 (WebCore::PluginView::setFocus):
1108 (WebCore::PluginView::show):
1109 (WebCore::PluginView::hide):
1110 (WebCore::PluginView::setParent):
1111 (WebCore::PluginView::setNPWindowRect):
1112 (WebCore::PluginView::setParentVisible):
1113 (WebCore::PluginView::getValue):
1114 (WebCore::PluginView::~PluginView):
1115 (WebCore::PluginView::init):
1116 * plugins/win/PluginViewWin.cpp:
1117 (WebCore::PluginView::updateWindow):
1118 (WebCore::PluginView::setFocus):
1119 (WebCore::PluginView::show):
1120 (WebCore::PluginView::hide):
1121 (WebCore::PluginView::paint):
1122 (WebCore::PluginView::setParent):
1123 (WebCore::PluginView::setParentVisible):
1124 (WebCore::PluginView::setNPWindowRect):
1125 (WebCore::PluginView::stop):
1126 (WebCore::PluginView::invalidateRect):
1127 (WebCore::PluginView::forceRedraw):
1128 (WebCore::PluginView::~PluginView):
1129 (WebCore::PluginView::init):
1130
weinig@apple.comf713d132008-09-17 20:16:48 +000011312008-09-17 Sam Weinig <sam@webkit.org>
1132
1133 Fix assert.
1134
1135 * platform/Widget.cpp:
1136 (WebCore::Widget::setParent):
1137
hyatt@apple.comd9242e32008-09-17 18:46:31 +000011382008-09-17 David Hyatt <hyatt@apple.com>
1139
1140 Beginnings of Widget refactoring (in order to make the mixing of
1141 widgets with and without corresponding native widgets more cross-platform).
1142
1143 This first patch makes the concept of a parent ScrollView cross-platform.
1144
1145 Note the similarity of the show/hide methods on the three PluginViews. This
1146 will be refactored better in a later patch so that they can all share
1147 a base class Widget show/hide method. For now the changes were made
1148 simply to be able to bring WidgetWin's setParent method up into Widget.
1149
1150 Reviewed by Sam Weinig
1151
1152 * WebCore.base.exp:
1153 * platform/ScrollView.h:
1154 * platform/Widget.cpp:
1155 (WebCore::Widget::init):
1156 (WebCore::Widget::setParent):
1157 * platform/Widget.h:
1158 (WebCore::Widget::isSelfVisible):
1159 (WebCore::Widget::isParentVisible):
1160 (WebCore::Widget::isVisible):
1161 (WebCore::Widget::setParentVisible):
1162 (WebCore::Widget::isPluginView):
1163 (WebCore::Widget::parent):
1164 (WebCore::Widget::handleEvent):
1165 (WebCore::Widget::geometryChanged):
1166 * platform/gtk/WidgetGtk.cpp:
1167 (WebCore::Widget::Widget):
1168 * platform/mac/ScrollViewMac.mm:
1169 (WebCore::ScrollView::addChild):
1170 (WebCore::ScrollView::removeChild):
1171 * platform/mac/ScrollbarMac.mm:
1172 (WebCore::ScrollbarMac::~ScrollbarMac):
1173 * platform/mac/WidgetMac.mm:
1174 (WebCore::Widget::Widget):
1175 (WebCore::Widget::~Widget):
1176 * platform/qt/WidgetQt.cpp:
1177 (WebCore::WidgetPrivate::WidgetPrivate):
1178 (WebCore::Widget::Widget):
1179 (WebCore::Widget::topLevel):
1180 * platform/win/ScrollViewWin.cpp:
1181 (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
1182 (WebCore::ScrollView::setAncestorVisible):
1183 (WebCore::ScrollView::show):
1184 (WebCore::ScrollView::hide):
1185 * platform/win/WidgetWin.cpp:
1186 (WebCore::Widget::Widget):
1187 (WebCore::Widget::setParent):
1188 * platform/wx/WidgetWx.cpp:
1189 (WebCore::Widget::Widget):
1190 * plugins/PluginView.cpp:
1191 (WebCore::PluginView::PluginView):
1192 * plugins/PluginView.h:
1193 * plugins/gtk/PluginViewGtk.cpp:
1194 (WebCore::PluginView::show):
1195 (WebCore::PluginView::hide):
1196 (WebCore::PluginView::setParentVisible):
1197 * plugins/qt/PluginViewQt.cpp:
1198 (WebCore::PluginView::show):
1199 (WebCore::PluginView::hide):
1200 (WebCore::PluginView::setParentVisible):
1201 * plugins/win/PluginViewWin.cpp:
1202 (WebCore::PluginView::show):
1203 (WebCore::PluginView::hide):
1204 (WebCore::PluginView::setParentVisible):
1205
ap@webkit.org18da1a32008-09-17 16:50:22 +000012062008-09-17 Alexey Proskuryakov <ap@webkit.org>
1207
1208 Reviewed by Adam Roben.
1209
1210 <rdar://problem/6219577> Spew in console at launch about encoding mappings when running with ICU 4.0
1211
1212 * platform/text/TextCodecICU.cpp:
1213 (WebCore::TextCodecICU::registerExtendedEncodingNames): Updated for new encoding names.
1214
vestbo@webkit.orge48e6362008-09-17 13:29:42 +000012152008-09-17 Tor Arne Vestbø <tavestbo@trolltech.com>
1216
1217 Fix the QtWebKit/Mac build
1218
1219 * platform/qt/ScrollViewQt.cpp: add include
1220
ap@webkit.org18da1a32008-09-17 16:50:22 +000012212008-09-17 David Hyatt <hyatt@apple.com>
hyatt@apple.com0f37fb52008-09-17 08:17:26 +00001222
1223 Add a #define to control whether or not to use an NSScroller on Mac.
1224 This ifdef will allow the new NSView-less NSScroller on Mac to be
1225 developed side by side with the current one.
1226
1227 The new scroller paints a debug red if turned on (although due to
1228 Widget issues you won't see anything paint yet).
1229
1230 Reviewed by olliej
1231
1232 * platform/Scrollbar.cpp:
1233 * platform/Scrollbar.h:
1234 * platform/mac/ScrollbarMac.h:
1235 * platform/mac/ScrollbarMac.mm:
1236 * platform/mac/ScrollbarThemeMac.cpp:
1237 (WebCore::ScrollbarThemeMac::paint):
1238 * platform/mac/ScrollbarThemeMac.h:
1239
alp@webkit.orgf06bac02008-09-17 04:30:12 +000012402008-09-16 Marco Barisione <marco.barisione@collabora.co.uk>
1241
1242 Reviewed by Alp Toker.
1243
1244 http://bugs.webkit.org/show_bug.cgi?id=20854
1245 [GTK] Windows can be not realized in ScrollView::update
1246
1247 Do not call gdk_window_invalidate_rect on a non-realized GtkWidget.
1248
1249 * platform/gtk/ScrollViewGtk.cpp:
1250 (WebCore::ScrollView::update):
1251
alp@webkit.org226f72a2008-09-17 04:22:02 +000012522008-09-16 Alp Toker <alp@nuanti.com>
1253
1254 Suggested by Dave Hyatt.
1255
1256 Build fix and cleanup. Rename ScrollBar to Scrollbar.
1257
1258 * GNUmakefile.am:
1259 * WebCore.pro:
1260 * WebCore.vcproj/WebCore.vcproj:
1261 * WebCore.xcodeproj/project.pbxproj:
1262 * WebCoreSources.bkl:
1263 * editing/EditorCommand.cpp:
1264 * page/EventHandler.cpp:
1265 * page/gtk/EventHandlerGtk.cpp:
1266 * page/mac/EventHandlerMac.mm:
1267 * page/mac/FrameMac.mm:
1268 * page/qt/EventHandlerQt.cpp:
1269 * page/wx/EventHandlerWx.cpp:
1270 * platform/PopupMenu.h:
1271 * platform/ScrollBar.cpp: Removed.
1272 * platform/ScrollBar.h: Removed.
1273 * platform/Scrollbar.cpp: Copied from WebCore/platform/ScrollBar.cpp.
1274 * platform/Scrollbar.h: Copied from WebCore/platform/ScrollBar.h.
1275 * platform/gtk/ScrollbarGtk.cpp:
1276 (ScrollbarGtk::ScrollbarGtk):
1277 * platform/gtk/ScrollbarGtk.h:
1278 * platform/mac/ScrollbarMac.h:
1279 * platform/qt/ScrollViewQt.cpp:
1280 * platform/qt/ScrollbarQt.cpp:
1281 * platform/qt/ScrollbarThemeQt.cpp:
1282 * platform/win/PlatformScrollBar.h:
1283 * platform/win/PopupMenuWin.cpp:
1284 * platform/win/ScrollViewWin.cpp:
1285 * platform/win/ScrollbarThemeWin.cpp:
1286 * platform/wx/ScrollViewWx.cpp:
1287 * platform/wx/TemporaryLinkStubs.cpp:
1288 * rendering/HitTestResult.cpp:
1289 * rendering/RenderLayer.cpp:
1290 * rendering/RenderTextControl.cpp:
1291
hyatt@apple.com7597c172008-09-17 02:15:08 +000012922008-09-16 David Hyatt <hyatt@apple.com>
1293
hyatt@apple.comfde412d2008-09-17 03:49:48 +00001294 Fix Qt build bustage by making moveThumb a member of Scrollbar so that
1295 it can be called from ScrollbarQt.
1296
1297 * platform/ScrollBar.cpp:
1298 (WebCore::Scrollbar::moveThumb):
1299 (WebCore::Scrollbar::handleMouseMoveEvent):
1300 (WebCore::Scrollbar::handleMousePressEvent):
1301 * platform/ScrollBar.h:
1302 * platform/qt/ScrollViewQt.cpp:
1303 * platform/qt/ScrollbarQt.cpp:
1304 (WebCore::Scrollbar::handleContextMenuEvent):
1305
13062008-09-16 David Hyatt <hyatt@apple.com>
1307
hyatt@apple.com4e3b8602008-09-17 03:17:11 +00001308 Eliminate PlatformScrollbar. Mac and Gtk now have subclasses for their
1309 native-widget scrollbars (ScrollbarMac and ScrollbarGtk). Other platforms
1310 now just use Scrollbar.
1311
1312 Reviewed by Sam Weinig
1313
1314 * GNUmakefile.am:
1315 * WebCore.pro:
1316 * WebCore.vcproj/WebCore.vcproj:
1317 * WebCore.xcodeproj/project.pbxproj:
1318 * page/mac/FrameMac.mm:
1319 * platform/PopupMenu.h:
1320 (WebCore::PopupMenu::scrollbar):
1321 * platform/ScrollBar.cpp:
1322 (WebCore::createNativeScrollbar):
1323 * platform/ScrollBar.h:
1324 * platform/gtk/PlatformScrollBar.h: Removed.
1325 * platform/gtk/PlatformScrollBarGtk.cpp: Removed.
1326 * platform/gtk/ScrollbarGtk.cpp: Copied from platform/gtk/PlatformScrollBarGtk.cpp.
1327 (gtkScrollEventCallback):
1328 (ScrollbarGtk::ScrollbarGtk):
1329 (ScrollbarGtk::~ScrollbarGtk):
1330 (ScrollbarGtk::updateThumbPosition):
1331 (ScrollbarGtk::updateThumbProportion):
1332 (ScrollbarGtk::setFrameGeometry):
1333 (ScrollbarGtk::geometryChanged):
1334 (ScrollbarGtk::gtkValueChanged):
1335 * platform/gtk/ScrollbarGtk.h: Copied from platform/gtk/PlatformScrollBar.h.
1336 * platform/mac/PlatformScrollBar.h: Removed.
1337 * platform/mac/PlatformScrollBarMac.mm: Removed.
1338 * platform/mac/ScrollbarMac.h: Copied from platform/mac/PlatformScrollBar.h.
1339 * platform/mac/ScrollbarMac.mm: Copied from platform/mac/PlatformScrollBarMac.mm.
1340 (-[WebCoreScrollBar initWithScrollbarMac:]):
1341 (-[WebCoreScrollBar detachScrollbarMac]):
1342 (WebCore::Scrollbar::createNativeScrollbar):
1343 (WebCore::ScrollbarMac::ScrollbarMac):
1344 (WebCore::ScrollbarMac::~ScrollbarMac):
1345 (WebCore::ScrollbarMac::updateThumbPosition):
1346 (WebCore::ScrollbarMac::updateThumbProportion):
1347 (WebCore::ScrollbarMac::scrollbarHit):
1348 * platform/qt/PlatformScrollBar.h: Removed.
1349 * platform/qt/PlatformScrollBarQt.cpp: Removed.
1350 * platform/qt/ScrollbarQt.cpp: Copied from platform/qt/PlatformScrollBarQt.cpp.
1351 (WebCore::Scrollbar::handleContextMenuEvent):
1352 * rendering/HitTestResult.cpp:
1353 * rendering/RenderLayer.cpp:
1354 (WebCore::RenderLayer::createScrollbar):
1355 (WebCore::RenderLayer::destroyScrollbar):
1356 * rendering/RenderLayer.h:
1357 * rendering/RenderListBox.cpp:
1358 (WebCore::RenderListBox::~RenderListBox):
1359 (WebCore::RenderListBox::updateFromElement):
1360 (WebCore::RenderListBox::isPointInOverflowControl):
1361 * rendering/RenderObject.h:
1362 * rendering/RenderTextControl.cpp:
1363
13642008-09-16 David Hyatt <hyatt@apple.com>
1365
hyatt@apple.com7597c172008-09-17 02:15:08 +00001366 Make the scrollbar resizer-dodging logic cross-platform in the
1367 Scrollbar class.
1368
1369 Reviewed by Sam Weinig
1370
1371 * platform/ScrollBar.cpp:
1372 (WebCore::Scrollbar::setFrameGeometry):
1373 (WebCore::Scrollbar::setParent):
1374 (WebCore::Scrollbar::windowClipRect):
1375 * platform/ScrollBar.h:
1376 * platform/ScrollView.h:
1377 (WebCore::ScrollView::windowResizerRect):
1378 (WebCore::ScrollView::resizerOverlapsContent):
1379 (WebCore::ScrollView::adjustOverlappingScrollbarCount):
1380 * platform/Widget.h:
1381 (WebCore::Widget::setParent):
1382 * platform/mac/WidgetMac.mm:
1383 (WebCore::Widget::convertToContainingWindow):
1384 * platform/win/PlatformScrollBar.h:
1385 * platform/win/PlatformScrollBarWin.cpp:
1386
mitz@apple.com6d925202008-09-16 17:34:10 +000013872008-09-16 Dan Bernstein <mitz@apple.com>
1388
mitz@apple.comd9462a52008-09-16 17:40:20 +00001389 Reviewed by Darin Adler.
1390
1391 - fix https://bugs.webkit.org/show_bug.cgi?id=15129
1392 <rdar://problem/4644824> adding a new line with DOM does unnecessary additional repaint
1393
1394 Covered by fast/repaint/4776765.html
1395
1396 * rendering/RenderBlock.cpp:
1397 (WebCore::RenderBlock::layoutBlock): Avoid repainting this object if it
1398 did not have layout in the beginning.
1399 (WebCore::RenderBlock::layoutBlockChildren): If a child did not have
1400 layout in the beginning, repaint it in its new position, to compensate
1401 for the above (regardless of whether it "moved").
1402 * rendering/RenderObject.cpp:
1403 (WebCore::RenderObject::checkForRepaintDuringLayout): Added a comment
1404 about generalizing this fix in the future.
1405
14062008-09-16 Dan Bernstein <mitz@apple.com>
1407
mitz@apple.com6d925202008-09-16 17:34:10 +00001408 Reviewed by Dave Hyatt.
1409
1410 - fix https://bugs.webkit.org/show_bug.cgi?id=15384
1411 Div does not notice when grandparent changes height
1412
1413 Test: fast/block/basic/quirk-percent-height-grandchild.html
1414
1415 - fix https://bugs.webkit.org/show_bug.cgi?id=20714
1416 Resizing Gmail inbox vertically results in whitespace at the bottom of the window
1417
1418 Test: fast/replaced/percent-height-in-anonymous-block.html
1419
1420 Added a two-way mapping between boxes with percentage heights and
1421 their non-parent ancestors up to the one the height is computed relative
1422 to. In quirks mode (the first bug), this can be any number of containing
1423 block with auto height. In strict mode (the second bug) this can be
1424 the containing block of an anonymous block containing a replaced
1425 element.
1426
1427 * rendering/RenderBlock.cpp:
1428 (WebCore::RenderBlock::~RenderBlock): Added code to remove the all the
1429 mapping to/from this block to percentage-height descendants.
1430 (WebCore::RenderBlock::layoutBlockChildren): Added code to mark
1431 percentage-height descendants (and their containing block ancestry chain
1432 up to this block) for layout. This ensures that those descendants whose
1433 height depends on the height of this block (or an ancestor) are updated.
1434 (WebCore::RenderBlock::addPercentHeightDescendant): Added. Establishes
1435 a two-way mapping between this block and the given box.
1436 (WebCore::RenderBlock::removePercentHeightDescendant): Added. Removes
1437 all the mapping to/from this box.
1438 * rendering/RenderBlock.h:
1439 * rendering/RenderBox.cpp:
1440 (WebCore::RenderBox::setStyle): Added calls to
1441 removePercentHeightDescendant() when style changes and the box
1442 previously had a percentage height. An exception is when the style
1443 change does not require layout, in which case the box still has
1444 a percentage height and the mappings are valid. In all other cases,
1445 any required mappings will be (re-)established during layout.
1446 (WebCore::RenderBox::destroy): Added a call to
1447 removePercentHeightDescendant.
1448 (WebCore::RenderBox::calcPercentageHeight): Added code that, in quirks
1449 mode, if a higher-than-parent containing block is affecting the box's
1450 height, creates a mapping between the box and that block.
1451 (WebCore::RenderBox::calcReplacedHeightUsing): Changed to skip over
1452 anonymous containing blocks, if any, and when that happens, use
1453 addPercentHeightDescendant() to ensure that the non-anonymous block
1454 is aware of the dependent percent-height box.
1455
alp@webkit.org1dbd9a92008-09-16 16:59:18 +000014562008-09-16 Dirk Schulze <vbs85@gmx.de>
1457
1458 Reviewed by Oliver Hunt and Alp Toker.
1459
1460 Implemented toDataURL in Cairo. Only PNG support
1461 at the moment.
1462
1463 Qt, Cairo and wx require toDataURL implementations
1464 https://bugs.webkit.org/show_bug.cgi?id=17719
1465
1466 * platform/MIMETypeRegistry.cpp:
1467 (WebCore::initializeSupportedImageMIMETypesForEncoding):
1468 * platform/graphics/cairo/ImageBufferCairo.cpp:
1469 (WebCore::ImageBuffer::ImageBuffer):
1470 (WebCore::writeFunction):
1471 (WebCore::ImageBuffer::toDataURL):
1472
vestbo@webkit.org8963b3c2008-09-16 16:45:20 +000014732008-09-16 Tor Arne Vestbø <tavestbo@trolltech.com>
1474
1475 Reviewed by Simon.
1476
1477 Hide unused media element controls in the QtWebKit port
1478
1479 * platform/qt/html4-adjustments-qt.css
1480
hausmann@webkit.orgcd7a1292008-09-16 14:19:16 +000014812008-09-16 Ariya Hidayat <ariya.hidayat@trolltech.com>
1482
1483 Reviewed by Simon.
1484
1485 Fix compilation of the Qt scrollbar code.
1486
1487 * platform/qt/PlatformScrollBarQt.cpp:
1488 (WebCore::scPart):
1489 (WebCore::styleOptionSlider):
1490 (WebCore::thumbLength):
1491 (WebCore::pixelPosToRangeValue):
1492 (WebCore::PlatformScrollbar::handleContextMenuEvent):
1493
treat@webkit.orga35f6b62008-09-16 14:15:29 +000014942008-09-16 Adam Treat <treat@kde.org>
1495
1496 Reviewed by Anders Carlsson.
1497
1498 Prevent accesses off of the end of the buffer introduced in r36450
1499 and when checking for descriptions of mime. Also, coding style fix.
1500
1501 * plugins/qt/PluginPackageQt.cpp:
1502 (WebCore::PluginPackage::fetchInfo):
1503
rwlbuis@webkit.org8f675dd2008-09-16 11:12:52 +000015042008-09-15 Rob Buis <buis@kde.org>
1505
1506 Reviewed by Eric.
1507
1508 https://bugs.webkit.org/show_bug.cgi?id=20634
1509 SVG transform attribute is ignored by <use> in <clipPath>
1510
1511 Transform the paths with the local transform when part
1512 of a clip path.
1513
1514 Test: svg/custom/use-clipped-transform.svg
1515
1516 * svg/SVGClipPathElement.cpp:
1517 (WebCore::SVGClipPathElement::canvasResource):
1518 * svg/SVGStyledTransformableElement.cpp:
1519 (WebCore::SVGStyledTransformableElement::toClipPath):
1520 * svg/SVGStyledTransformableElement.h:
1521
hyatt@apple.com1cd4bcc2008-09-16 06:53:34 +000015222008-09-15 Dave Hyatt <hyatt@apple.com>
1523
1524 Convert Qt over to its ScrollbarTheme. Add cross-platform support for jumping the thumb location directly
1525 to a pressed location on the track (this is done with the middle mouse on Qt and with Shift-Click on Windows).
1526
1527 Reviewed by Sam Weinig
1528
1529 * platform/ScrollBar.cpp:
1530 (WebCore::thumbUnderMouse):
1531 (WebCore::Scrollbar::autoscrollPressedPart):
1532 (WebCore::Scrollbar::startTimerIfNeeded):
1533 (WebCore::moveThumb):
1534 (WebCore::Scrollbar::handleMouseMoveEvent):
1535 (WebCore::Scrollbar::handleMousePressEvent):
1536 * platform/ScrollBar.h:
1537 (WebCore::Scrollbar::pressedPos):
1538 (WebCore::Scrollbar::pixelStep):
1539 (WebCore::Scrollbar::setPressedPos):
1540 * platform/ScrollbarTheme.h:
1541 (WebCore::ScrollbarTheme::thumbPosition):
1542 (WebCore::ScrollbarTheme::thumbLength):
1543 (WebCore::ScrollbarTheme::trackPosition):
1544 (WebCore::ScrollbarTheme::trackLength):
1545 * platform/ScrollbarThemeComposite.cpp:
1546 (WebCore::ScrollbarThemeComposite::trackPosition):
1547 * platform/ScrollbarThemeComposite.h:
1548 * platform/qt/PlatformScrollBarQt.cpp:
1549 (WebCore::PlatformScrollbar::PlatformScrollbar):
1550 (WebCore::):
1551 * platform/qt/ScrollbarThemeQt.cpp:
1552 (WebCore::styleOptionSlider):
1553 (WebCore::ScrollbarThemeQt::hitTest):
1554 (WebCore::ScrollbarThemeQt::shouldCenterOnThumb):
1555 (WebCore::ScrollbarThemeQt::invalidatePart):
1556 (WebCore::ScrollbarThemeQt::thumbPosition):
1557 (WebCore::):
1558 * platform/qt/ScrollbarThemeQt.h:
1559 * platform/win/ScrollbarThemeSafari.cpp:
1560 (WebCore::ScrollbarThemeSafari::shouldCenterOnThumb):
1561 * platform/win/ScrollbarThemeSafari.h:
1562 * platform/win/ScrollbarThemeWin.cpp:
1563 (WebCore::ScrollbarThemeWin::shouldCenterOnThumb):
1564 * platform/win/ScrollbarThemeWin.h:
1565
dsmith@webkit.orgb3107b532008-09-16 06:14:22 +000015662008-09-15 David Smith <catfish.man@gmail.com>
1567
1568 Reviewed by Sam Weinig.
1569
1570 https://bugs.webkit.org/show_bug.cgi?id=20180
1571
1572 Cache the result of parsing the an+b expression in :nth-child(an+b). Roughly a 2x speedup for :nth-child on SlickSpeed.
1573
1574 * GNUmakefile.am: Add CSSNthSelector
1575 * WebCore.pro: Add CSSNthSelector
1576 * WebCore.vcproj/WebCore.vcproj: Add CSSNthSelector
1577 * WebCore.xcodeproj/project.pbxproj: Add CSSNthSelector
1578 * css/CSSGrammar.y: Create CSSNthSelectors instead of CSSSelectors for :nth-*
1579 * css/CSSNthSelector.cpp: Added.
1580 (WebCore::CSSNthSelector::parseNth): Moved from CSSStyleSelector and modified to cache
1581 (WebCore::CSSNthSelector::matchNth): Moved from CSSStyleSelector and modified to use the cache
1582 * css/CSSNthSelector.h: Added.
1583 (WebCore::CSSNthSelector::CSSNthSelector):
1584 (WebCore::CSSNthSelector::~CSSNthSelector):
1585 * css/CSSParser.cpp:
1586 (WebCore::CSSParser::createFloatingNthSelector):
1587 * css/CSSParser.h:
1588 * css/CSSSelector.h: Use the free bit here to store a flag for CSSNthSelector
1589 (WebCore::CSSSelector::CSSSelector):
1590 * css/CSSStyleSelector.cpp:
1591 (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector): Take advantage of knowing that all :nth-* selectors are CSSNthSelectors
1592
pewtermoose@webkit.orgfb4d3fb2008-09-16 02:46:39 +000015932008-09-15 Matt Lilek <webkit@mattlilek.com>
1594
1595 Reviewed by Tim Hatcher.
1596
1597 Clean up some inspector JS callbacks to remove an extra return.
1598
1599 * page/InspectorController.cpp:
1600 (WebCore::hideDOMNodeHighlight):
1601 (WebCore::loaded):
1602 (WebCore::unloading):
1603 (WebCore::attach):
1604 (WebCore::detach):
1605 (WebCore::startDebuggingAndReloadInspectedPage):
1606 (WebCore::stopDebugging):
1607 (WebCore::debuggerAttached):
1608 (WebCore::pauseOnExceptions):
1609 (WebCore::pauseInDebugger):
1610 (WebCore::resumeDebugger):
1611 (WebCore::stepOverStatementInDebugger):
1612 (WebCore::stepIntoStatementInDebugger):
1613 (WebCore::stepOutOfFunctionInDebugger):
1614 (WebCore::isWindowVisible):
1615 (WebCore::closeWindow):
1616
hyatt@apple.com8e809932008-09-16 02:29:09 +000016172008-09-15 Dave Hyatt <hyatt@apple.com>
1618
1619 Completely switch Windows scrollbars over to ScrollbarTheme. The Aqua windows scrollbar and native scrollbar
1620 now share most of their code.
1621
1622 Also removing mini size scrollbar support, since it would have crashed Windows had it ever been used, and it
1623 also is never used in our code anyway.
1624
1625 Reviewed by Sam Weinig
1626
1627 * WebCore.vcproj/WebCore.vcproj:
1628 * platform/ScrollTypes.h:
1629 (WebCore::):
1630 * platform/ScrollbarThemeComposite.cpp:
1631 (WebCore::ScrollbarThemeComposite::splitTrack):
1632 (WebCore::ScrollbarThemeComposite::thumbLength):
1633 (WebCore::ScrollbarThemeComposite::minimumThumbLength):
1634 * platform/ScrollbarThemeComposite.h:
1635 * platform/mac/PlatformScrollBarMac.mm:
1636 (NSControlSizeForScrollBarControlSize):
1637 * platform/win/PlatformScrollBar.h:
1638 * platform/win/PlatformScrollBarSafari.cpp: Removed.
1639 * platform/win/PlatformScrollBarWin.cpp:
1640 (WebCore::PlatformScrollbar::PlatformScrollbar):
1641 * platform/win/ScrollbarThemeSafari.cpp:
1642 (WebCore::ScrollbarTheme::nativeTheme):
1643 (WebCore::):
1644 (WebCore::scrollbarControlStateFromThemeState):
1645 (WebCore::ScrollbarThemeSafari::hasButtons):
1646 (WebCore::ScrollbarThemeSafari::hasThumb):
1647 (WebCore::buttonRepaintRect):
1648 (WebCore::ScrollbarThemeSafari::backButtonRect):
1649 (WebCore::ScrollbarThemeSafari::forwardButtonRect):
1650 (WebCore::trackRepaintRect):
1651 (WebCore::ScrollbarThemeSafari::trackRect):
1652 (WebCore::ScrollbarThemeSafari::minimumThumbLength):
1653 (WebCore::ScrollbarThemeSafari::paintTrack):
1654 (WebCore::ScrollbarThemeSafari::paintButton):
1655 (WebCore::ScrollbarThemeSafari::paintThumb):
1656 * platform/win/ScrollbarThemeSafari.h:
1657 * platform/win/ScrollbarThemeWin.cpp:
1658 * platform/win/ScrollbarThemeWin.h:
1659
cfleizach@apple.com0ce07032008-09-16 00:17:58 +000016602008-09-15 Chris Fleizach <cfleizach@apple.com>
1661
1662 Reviewed by Darin Adler, Beth Dakin
1663
1664 <rdar://problem/4003789> Expose lists as AXList
1665 <rdar://problem/5707399> VO: Definition lists not announced in Safari
1666
1667 Lists are now exposed through AX. On the mac (in SnowLeopard) they use two new subroles
1668 AXContentList for <ul>, <ol> and AXDefinitionList for <dl>
1669 Inside the definition list, each <dt> "term" has an accessibility description ("term"),
1670 as does each <dd> tag ("definition")
1671
1672 Test: accessibility/lists.html
1673
1674 * GNUmakefile.am:
1675 * WebCore.pro:
1676 * WebCore.vcproj/WebCore.vcproj:
1677 * WebCore.xcodeproj/project.pbxproj:
1678 * WebCoreSources.bkl:
1679 * page/AXObjectCache.cpp:
1680 * page/AccessibilityList.cpp: Added.
1681 * page/AccessibilityList.h: Added.
1682 * page/AccessibilityObject.h:
1683 * page/AccessibilityRenderObject.cpp:
1684 * page/AccessibilityTable.cpp:
1685 * page/mac/AccessibilityObjectWrapper.mm:
1686 * page/mac/WebCoreViewFactory.h:
1687 * platform/LocalizedStrings.h:
1688 * platform/mac/LocalizedStringsMac.mm:
1689 * platform/qt/Localizations.cpp:
1690
zimmermann@webkit.org8cc8ad02008-09-16 00:01:11 +000016912008-09-15 Nikolas Zimmermann <zimmermann@kde.org>
1692
1693 Reviewed by Eric.
1694
1695 Fixes: https://bugs.webkit.org/show_bug.cgi?id=20865
1696 Prepare HTMLScriptElement & SVGScriptElement unification, and unification of event handling.
1697
1698 Several renames:
1699 dispatchHTMLEvent -> dispatchEventForType
1700 setHTMLEventListener -> setEventListenerForType
1701 getHTMLEventListener -> eventListenerForType
1702 removeHTMLEventListener -> removeEventListenerForType
1703 isHTMLEventListener -> isAttachedToEventTargetNode
1704 ...
1705
1706 Similar renames for the dispatch/get/set/*Window*Event functions.
1707 Kill JSSVGLazyEventListener and merge with JSLazyEventListener.
1708
1709 Most important change: Rename setHTMLEventListener to setEventListenerForTypeAndAttribute,
1710 as there exists a generic createEventListener() method now, taking care of JSLazyEventListener creation.
1711
1712 setHTMLEventListener() used createHTMLEventListener() before and was HTML specific.
1713 SVG is able to use the code as well now. This affects most files in html/.
1714
1715 No functional changes.
1716
1717 * GNUmakefile.am:
1718 * WebCore.pro:
1719 * WebCore.vcproj/WebCore.vcproj:
1720 * WebCore.xcodeproj/project.pbxproj:
1721 * bindings/js/JSDOMWindowBase.cpp:
1722 (WebCore::JSDOMWindowBase::~JSDOMWindowBase):
1723 (WebCore::JSDOMWindowBase::setListener):
1724 (WebCore::JSDOMWindowBase::getListener):
1725 (WebCore::JSDOMWindowBase::findJSEventListener):
1726 (WebCore::JSDOMWindowBase::findOrCreateJSEventListener):
1727 (WebCore::JSDOMWindowBase::findJSUnprotectedEventListener):
1728 (WebCore::JSDOMWindowBase::findOrCreateJSUnprotectedEventListener):
1729 (WebCore::JSDOMWindowBase::jsEventListenersAttachedToEventTargetNodes):
1730 (WebCore::JSDOMWindowBase::jsUnprotectedEventListenersAttachedToEventTargetNodes):
1731 * bindings/js/JSDOMWindowBase.h:
1732 * bindings/js/JSEventListener.cpp:
1733 (WebCore::JSAbstractEventListener::handleEvent):
1734 (WebCore::JSAbstractEventListener::isAttachedToEventTargetNode):
1735 (WebCore::JSUnprotectedEventListener::JSUnprotectedEventListener):
1736 (WebCore::JSUnprotectedEventListener::~JSUnprotectedEventListener):
1737 (WebCore::JSEventListener::JSEventListener):
1738 (WebCore::JSEventListener::~JSEventListener):
1739 (WebCore::JSLazyEventListener::JSLazyEventListener):
1740 (WebCore::eventParameterName):
1741 (WebCore::JSLazyEventListener::parseCode):
1742 (WebCore::getNodeEventListener):
1743 * bindings/js/JSEventListener.h:
1744 (WebCore::JSAbstractEventListener::JSAbstractEventListener):
1745 (WebCore::JSUnprotectedEventListener::create):
1746 (WebCore::JSEventListener::create):
1747 (WebCore::JSLazyEventListener::):
1748 (WebCore::JSLazyEventListener::create):
1749 * bindings/js/JSEventTargetNode.cpp:
1750 (WebCore::JSEventTargetNode::setListener):
1751 (WebCore::JSEventTargetNode::getListener):
1752 * bindings/js/JSSVGLazyEventListener.cpp: Removed.
1753 * bindings/js/JSSVGLazyEventListener.h: Removed.
1754 * bindings/js/ScriptController.cpp:
1755 (WebCore::ScriptController::createHTMLEventHandler):
1756 (WebCore::ScriptController::createSVGEventHandler):
1757 * dom/Document.cpp:
1758 (WebCore::Document::setFocusedNode):
1759 (WebCore::Document::handleWindowEvent):
1760 (WebCore::Document::setWindowEventListenerForType):
1761 (WebCore::Document::windowEventListenerForType):
1762 (WebCore::Document::removeWindowEventListenerForType):
1763 (WebCore::Document::addWindowEventListener):
1764 (WebCore::Document::hasWindowEventListener):
1765 (WebCore::Document::removePendingFrameBeforeUnloadEventCount):
1766 (WebCore::Document::createEventListener):
1767 (WebCore::Document::setWindowEventListenerForTypeAndAttribute):
1768 * dom/Document.h:
1769 * dom/EventListener.h:
1770 (WebCore::EventListener::isAttachedToEventTargetNode):
1771 * dom/EventTargetNode.cpp:
1772 (WebCore::EventTargetNode::dispatchFocusEvent):
1773 (WebCore::EventTargetNode::dispatchBlurEvent):
1774 (WebCore::EventTargetNode::dispatchEventForType):
1775 (WebCore::EventTargetNode::removeEventListenerForType):
1776 (WebCore::EventTargetNode::setEventListenerForType):
1777 (WebCore::EventTargetNode::setEventListenerForTypeAndAttribute):
1778 (WebCore::EventTargetNode::eventListenerForType):
1779 * dom/EventTargetNode.h:
1780 * dom/XMLTokenizer.cpp:
1781 (WebCore::XMLTokenizer::notifyFinished):
1782 * editing/ReplaceSelectionCommand.cpp:
1783 (WebCore::ReplacementFragment::ReplacementFragment):
1784 * html/HTMLBodyElement.cpp:
1785 (WebCore::HTMLBodyElement::parseMappedAttribute):
1786 * html/HTMLButtonElement.cpp:
1787 (WebCore::HTMLButtonElement::parseMappedAttribute):
1788 * html/HTMLElement.cpp:
1789 (WebCore::HTMLElement::parseMappedAttribute):
1790 (WebCore::HTMLElement::checkDTD):
1791 * html/HTMLElement.h:
1792 * html/HTMLFormControlElement.cpp:
1793 (WebCore::HTMLFormControlElement::onChange):
1794 * html/HTMLFormElement.cpp:
1795 (WebCore::HTMLFormElement::prepareSubmit):
1796 (WebCore::HTMLFormElement::reset):
1797 (WebCore::HTMLFormElement::parseMappedAttribute):
1798 * html/HTMLFrameElementBase.cpp:
1799 (WebCore::HTMLFrameElementBase::parseMappedAttribute):
1800 * html/HTMLFrameSetElement.cpp:
1801 (WebCore::HTMLFrameSetElement::parseMappedAttribute):
1802 * html/HTMLImageElement.cpp:
1803 (WebCore::HTMLImageElement::parseMappedAttribute):
1804 * html/HTMLImageLoader.cpp:
1805 (WebCore::HTMLImageLoader::dispatchLoadEvent):
1806 * html/HTMLInputElement.cpp:
1807 (WebCore::HTMLInputElement::parseMappedAttribute):
1808 (WebCore::HTMLInputElement::setValueFromRenderer):
1809 (WebCore::HTMLInputElement::onSearch):
1810 * html/HTMLMediaElement.cpp:
1811 (WebCore::HTMLMediaElement::asyncEventTimerFired):
1812 (WebCore::HTMLMediaElement::load):
1813 (WebCore::HTMLMediaElement::mediaPlayerNetworkStateChanged):
1814 (WebCore::HTMLMediaElement::setReadyState):
1815 (WebCore::HTMLMediaElement::seek):
1816 (WebCore::HTMLMediaElement::mediaPlayerTimeChanged):
1817 (WebCore::HTMLMediaElement::willSaveToCache):
1818 * html/HTMLObjectElement.cpp:
1819 (WebCore::HTMLObjectElement::parseMappedAttribute):
1820 * html/HTMLScriptElement.cpp:
1821 (WebCore::HTMLScriptElement::parseMappedAttribute):
1822 (WebCore::HTMLScriptElement::dispatchLoadEvent):
1823 (WebCore::HTMLScriptElement::dispatchErrorEvent):
1824 * html/HTMLSelectElement.cpp:
1825 (WebCore::HTMLSelectElement::parseMappedAttribute):
1826 * html/HTMLTextAreaElement.cpp:
1827 (WebCore::HTMLTextAreaElement::parseMappedAttribute):
1828 * html/HTMLTokenizer.cpp:
1829 (WebCore::HTMLTokenizer::notifyFinished):
1830 * page/AccessibilityRenderObject.cpp:
1831 (WebCore::AccessibilityRenderObject::mouseButtonListener):
1832 * page/EventHandler.cpp:
1833 (WebCore::EventHandler::canMouseDownStartSelect):
1834 (WebCore::EventHandler::canMouseDragExtendSelect):
1835 * page/Frame.cpp:
1836 (WebCore::Frame::sendScrollEvent):
1837 * page/Page.cpp:
1838 (WebCore::networkStateChanged):
1839 * rendering/RenderListBox.cpp:
1840 (WebCore::RenderListBox::valueChanged):
1841 * rendering/RenderTextControl.cpp:
1842 (WebCore::RenderTextControl::selectionChanged):
1843 * svg/SVGDocumentExtensions.cpp:
1844 * svg/SVGDocumentExtensions.h:
1845 * svg/SVGElement.cpp:
1846 (WebCore::SVGElement::parseMappedAttribute):
1847 (WebCore::SVGElement::finishParsingChildren):
1848 * svg/SVGElement.h:
1849 * svg/SVGSVGElement.cpp:
1850 (WebCore::SVGSVGElement::parseMappedAttribute):
1851 * svg/SVGSVGElement.h:
1852
hyatt@apple.com63739ce2008-09-15 23:44:10 +000018532008-09-15 Dave Hyatt <hyatt@apple.com>
1854
1855 Convert PlatformScrollbarWin to use ScrollbarTheme for hit testing. PlatformScrollbarQt/Gtk still
1856 need to be converted.
1857
1858 Reviewed by Sam Weinig
1859
1860 * platform/ScrollBar.cpp:
1861 (WebCore::Scrollbar::Scrollbar):
1862 (WebCore::Scrollbar::updateThumbPosition):
1863 (WebCore::Scrollbar::updateThumbProportion):
1864 (WebCore::Scrollbar::autoscrollPressedPart):
1865 (WebCore::Scrollbar::startTimerIfNeeded):
1866 * platform/ScrollBar.h:
1867 * platform/ScrollbarTheme.h:
1868 (WebCore::ScrollbarTheme::invalidateParts):
1869 * platform/ScrollbarThemeComposite.cpp:
1870 (WebCore::ScrollbarThemeComposite::hitTest):
1871 (WebCore::ScrollbarThemeComposite::invalidatePart):
1872 (WebCore::ScrollbarThemeComposite::thumbPosition):
1873 (WebCore::ScrollbarThemeComposite::thumbLength):
1874 (WebCore::ScrollbarThemeComposite::trackLength):
1875 * platform/ScrollbarThemeComposite.h:
1876 * platform/win/PlatformScrollBarSafari.cpp:
1877 (WebCore::PlatformScrollbar::PlatformScrollbar):
1878 * platform/win/PlatformScrollBarWin.cpp:
1879 (WebCore::PlatformScrollbar::PlatformScrollbar):
1880
dsmith@webkit.orgaa780ed2008-09-15 23:08:07 +000018812008-09-15 David Smith <catfish.man@gmail.com>
1882
1883 "Just do it"'d by Mark Rowe
1884
1885 https://bugs.webkit.org/show_bug.cgi?id=20856
1886 Add missing license header
1887
1888 * dom/NodeRenderStyle.h:
1889
dino@apple.combf52b682008-09-15 21:31:43 +000018902008-09-15 Dean Jackson <dino@apple.com>
1891
1892 Reviewed by Tim Hatcher.
1893
dino@apple.com3db0b8f2008-09-15 21:52:23 +00001894 Add default constructor for ShadowData
1895 https://bugs.webkit.org/show_bug.cgi?id=20757
1896
1897 Test: transitions/shadow.html
1898
1899 * rendering/style/RenderStyle.h:
1900
19012008-09-15 Dean Jackson <dino@apple.com>
1902
1903 Reviewed by Tim Hatcher.
1904
dino@apple.com03abdce2008-09-15 21:40:52 +00001905 RenderStyle should update keyframes.
1906 http://bugs.webkit.org/show_bug.cgi?id=20756
1907
1908 * rendering/style/RenderStyle.cpp:
1909 (WebCore::StyleRareNonInheritedData::updateKeyframes):
1910
19112008-09-15 Dean Jackson <dino@apple.com>
1912
1913 Reviewed by Tim Hatcher.
1914
dino@apple.combf52b682008-09-15 21:31:43 +00001915 Unnecessary ASSERT in ImplicitAnimation destructor.
1916 https://bugs.webkit.org/show_bug.cgi?id=20817
1917
1918 * page/animation/ImplicitAnimation.cpp:
1919 (WebCore::ImplicitAnimation::~ImplicitAnimation):
1920
treat@webkit.org7e5abc22008-09-15 20:53:49 +000019212008-09-15 Adam Treat <treat@kde.org>
1922
1923 Reviewed by Simon.
1924
1925 Fix plugin extension info. It was returning the mimetype where the
1926 extension was given.
1927
1928 * plugins/qt/PluginPackageQt.cpp:
1929 (WebCore::PluginPackage::fetchInfo):
1930
dino@apple.comecc18dc2008-09-15 20:40:28 +000019312008-09-15 Dean Jackson <dino@apple.com>
1932
1933 Reviewed by Tim Hatcher
1934
1935 Coding style violation!!!! Cleanup AnimationBase.cpp
1936
1937 * page/animation/AnimationBase.cpp:
1938 (WebCore::blendFunc):
1939
hyatt@apple.comf4a9d932008-09-15 20:03:25 +000019402008-09-15 David Hyatt <hyatt@apple.com>
1941
1942 Move all hit testing code for scrollbars into the base class. Refactor
1943 it to accommodate all platform-specific behaviors using virtual ScrollbarTheme
1944 functions.
1945
1946 No platform is using this code yet. Although it has been moved and compiles
1947 (even on Mac), it is not being used on any platform.
1948
1949 Reviewed by Sam Weinig
1950
1951 * platform/ScrollBar.cpp:
1952 (WebCore::Scrollbar::autoscrollPressedPart):
1953 (WebCore::Scrollbar::startTimerIfNeeded):
1954 (WebCore::Scrollbar::handleMouseMoveEvent):
1955 (WebCore::Scrollbar::handleMouseOutEvent):
1956 (WebCore::Scrollbar::handleMouseReleaseEvent):
1957 (WebCore::Scrollbar::handleMousePressEvent):
1958 * platform/ScrollBar.h:
1959 (WebCore::Scrollbar::handleContextMenuEvent):
1960 * platform/ScrollbarTheme.h:
1961 (WebCore::ScrollbarTheme::hitTest):
1962 (WebCore::ScrollbarTheme::invalidateOnMouseEnterExit):
1963 (WebCore::ScrollbarTheme::invalidatePart):
1964 (WebCore::ScrollbarTheme::shouldCenterOnThumb):
1965 (WebCore::ScrollbarTheme::centerOnThumb):
1966 (WebCore::ScrollbarTheme::thumbPosition):
1967 (WebCore::ScrollbarTheme::thumbLength):
1968 (WebCore::ScrollbarTheme::trackLength):
1969 (WebCore::ScrollbarTheme::initialAutoscrollTimerDelay):
1970 (WebCore::ScrollbarTheme::autoscrollTimerDelay):
1971 * platform/Widget.h:
1972 (WebCore::Widget::parent):
1973 * platform/mac/PlatformScrollBar.h:
1974 (WebCore::PlatformScrollbar::handleMouseMoveEvent):
1975 (WebCore::PlatformScrollbar::handleMouseOutEvent):
1976 (WebCore::PlatformScrollbar::handleMousePressEvent):
1977 (WebCore::PlatformScrollbar::handleMouseReleaseEvent):
1978 * platform/mac/WidgetMac.mm:
1979 (WebCore::Widget::convertFromContainingWindow):
1980 * platform/win/ScrollbarThemeWin.cpp:
1981 (WebCore::ScrollbarThemeWin::invalidateOnMouseEnterExit):
1982 * platform/win/ScrollbarThemeWin.h:
1983
mitz@apple.comd17dc392008-09-15 18:48:20 +000019842008-09-15 Dan Bernstein <mitz@apple.com>
1985
1986 Reviewed by Sam Weinig.
1987
1988 - fix <rdar://problem/5842247> Single long breakable word takes O(n^2) to lay out
1989
1990 Cache the next breakable position for text nodes in InlineIterator.
1991
1992 * rendering/bidi.cpp:
1993 (WebCore::InlineIterator::InlineIterator):
1994 (WebCore::InlineIterator::increment):
1995 (WebCore::RenderBlock::findNextLineBreak):
1996
simon.fraser@apple.comda604642008-09-15 17:10:48 +000019972008-09-15 Simon Fraser <simon.fraser@apple.com>
1998
1999 Reviewed by Dan Bernstein
2000
2001 Fix assertion and integral pixel issue when creating subimages.
2002 https://bugs.webkit.org/show_bug.cgi?id=20786
2003
2004 * platform/graphics/cg/ImageCG.cpp:
2005 (WebCore::BitmapImage::draw):
2006
vestbo@webkit.orge7eda302008-09-15 12:43:37 +000020072008-09-15 Tor Arne Vestbø <tavestbo@trolltech.com>
2008
2009 Reviewed by Simon.
2010
2011 Implment seek() and clean up and improve debugging output
2012
2013 * platform/graphics/qt/MediaPlayerPrivatePhonon.cpp:
2014 (debugMediaObject):
2015 (WebCore::MediaPlayerPrivate::seek):
2016 (WebCore::MediaPlayerPrivate::setVolume):
2017 (WebCore::MediaPlayerPrivate::setMuted):
2018 (WebCore::MediaPlayerPrivate::updateStates):
2019 (WebCore::MediaPlayerPrivate::naturalSize):
2020 (WebCore::MediaPlayerPrivate::paint):
2021 (WebCore::MediaPlayerPrivate::stateChanged):
2022 (WebCore::MediaPlayerPrivate::tick):
2023
vestbo@webkit.orgaba01e62008-09-15 11:40:22 +000020242008-09-15 Holger Hans Peter Freyther <zecke@selfish.org>
2025
2026 Reviewed by Simon.
2027
2028 Remove bogus Q_ASSERTs from the MediaPlayer Phonon implementation
2029
2030 m_mediaObject, m_audioOutput, m_videoWidget get created in the
2031 c'tor and will only be deleted in the c'tor. The Q_ASSERTs would
2032 only check if we use the MediaPlayerPrivate after it has been deleted.
2033
2034 Acked-by: Tor Arne Vestbø <tavestbo@trolltech.com>
2035
2036 * platform/graphics/qt/MediaPlayerPrivatePhonon.cpp:
2037 (WebCore::MediaPlayerPrivate::play):
2038 (WebCore::MediaPlayerPrivate::setVolume):
2039 (WebCore::MediaPlayerPrivate::updateStates):
2040
andersca@apple.com18d62682008-09-15 11:35:22 +000020412008-09-15 Anders Carlsson <andersca@apple.com>
2042
2043 Reviewed by Maciej.
2044
2045 <rdar://problem/6163988>
2046 https://bugs.webkit.org/show_bug.cgi?id=20457
2047 Canvas: createPattern crashes WebKit in WTF::RefPtr<WebCore::Image>::operator!() const + 9 with a 1D pattern
2048
2049 Check the width and height and throw an exception if any of them are 0.
2050
2051 * html/CanvasRenderingContext2D.cpp:
2052 (WebCore::CanvasRenderingContext2D::createPattern):
2053
vestbo@webkit.org3a27e182008-09-15 11:28:59 +000020542008-09-15 Tor Arne Vestbø <tavestbo@trolltech.com>
2055
2056 Reviewed by Simon.
2057
2058 Render media element controls with antialiasing enabled
2059
2060 * platform/qt/RenderThemeQt.cpp:
2061 (WebCore::RenderThemeQt::paintMediaMuteButton):
2062 (WebCore::RenderThemeQt::paintMediaPlayButton):
2063 (WebCore::RenderThemeQt::paintMediaSliderTrack):
2064 (WebCore::RenderThemeQt::paintMediaSliderThumb):
2065
vestbo@webkit.org17e4bfc2008-09-15 11:27:25 +000020662008-09-15 Ariya Hidayat <ariya.hidayat@trolltech.com>
2067
2068 Reviewed by Simon.
2069
2070 Upon non fatal error, switch to the pause state (so that playback can continue)
2071
2072 * platform/graphics/qt/MediaPlayerPrivatePhonon.cpp:
2073 (WebCore::MediaPlayerPrivate::updateStates):
2074
vestbo@webkit.org12a59572008-09-15 11:16:13 +000020752008-09-15 Tor Arne Vestbø <tavestbo@trolltech.com>
2076
2077 Reviewed by Simon.
2078
vestbo@webkit.org1d1f05e2008-09-15 11:22:05 +00002079 Don't set WTF_USE_JSC in WebCore.pro now that it's set in config.h
2080
2081 * WebCore.pro:
2082
20832008-09-15 Tor Arne Vestbø <tavestbo@trolltech.com>
2084
2085 Reviewed by Simon.
2086
vestbo@webkit.org12a59572008-09-15 11:16:13 +00002087 Make QtInstance::create() private and fix caching
2088
2089 * bindings/js/ScriptControllerQt.cpp:
2090 (WebCore::ScriptController::createScriptInstanceForWidget):
2091 * bridge/qt/qt_instance.cpp:
2092 (JSC::Bindings::QtInstance::getQtInstance):
2093 (JSC::Bindings::QtInstance::getRuntimeObject):
2094 * bridge/qt/qt_instance.h:
2095 (JSC::Bindings::QtInstance::create):
2096 * bridge/qt/qt_runtime.cpp:
2097 (JSC::Bindings::convertQVariantToValue):
2098 (JSC::Bindings::QtConnectionObject::execute):
2099
dsmith@webkit.orgaba15862008-09-15 08:45:35 +000021002008-09-15 David Smith <catfish.man@gmail.com>
2101
2102 Reviewed by Dave Hyatt.
2103
2104 https://bugs.webkit.org/show_bug.cgi?id=20180
2105
2106 >2x speedup on querySelector[All] with :nth-child by removing the collectRulesOnly argument on SelectorChecker.
2107 With collectRulesOnly set to true (the default) an optimization is turned off, and no callers were intentionally leaving it true.
2108 querySelector[All] assumed that the default was probably the right way to go, and so ended up being slow.
2109
2110 * css/CSSStyleSelector.cpp:
2111 (WebCore::CSSStyleSelector::CSSStyleSelector):
2112 (WebCore::CSSStyleSelector::SelectorChecker::SelectorChecker):
2113 * css/CSSStyleSelector.h:
2114
hyatt@apple.com065494e2008-09-15 06:33:40 +000021152008-09-14 Dave Hyatt <hyatt@apple.com>
2116
2117 Refactor PlatformScrollbarWin's painting so that it is now done by ScrollbarThemeWin. PlatformScrollbarSafari
2118 is still painting itself (a subsequent patch will move its painting into ScrollbarThemeSafari).
2119
2120 Reviewed by Sam Weinig
2121
2122 * platform/ScrollBar.h:
2123 (WebCore::Scrollbar::client):
2124 (WebCore::Scrollbar::currentPos):
2125 (WebCore::Scrollbar::totalSize):
2126 * platform/ScrollbarTheme.h:
2127 * platform/ScrollbarThemeComposite.cpp:
2128 (WebCore::pageForScrollView):
2129 (WebCore::ScrollbarThemeComposite::paint):
2130 * platform/ScrollbarThemeComposite.h:
2131 (WebCore::ScrollbarThemeComposite::trackIsSinglePiece):
2132 * platform/win/PlatformScrollBar.h:
2133 * platform/win/PlatformScrollBarSafari.cpp:
2134 * platform/win/PlatformScrollBarWin.cpp:
2135 * platform/win/ScrollbarThemeSafari.h:
2136 (WebCore::ScrollbarThemeSafari::hasButtons):
2137 (WebCore::ScrollbarThemeSafari::hasThumb):
2138 (WebCore::ScrollbarThemeSafari::backButtonRect):
2139 (WebCore::ScrollbarThemeSafari::forwardButtonRect):
2140 (WebCore::ScrollbarThemeSafari::trackRect):
2141 (WebCore::ScrollbarThemeSafari::splitTrack):
2142 (WebCore::ScrollbarThemeSafari::paintTrack):
2143 (WebCore::ScrollbarThemeSafari::paintButton):
2144 (WebCore::ScrollbarThemeSafari::paintThumb):
2145 * platform/win/ScrollbarThemeWin.cpp:
2146 (WebCore::isRunningOnVistaOrLater):
2147 (WebCore::checkAndInitScrollbarTheme):
2148 (WebCore::ScrollbarThemeWin::ScrollbarThemeWin):
2149 (WebCore::ScrollbarThemeWin::themeChanged):
2150 (WebCore::ScrollbarThemeWin::hasThumb):
2151 (WebCore::ScrollbarThemeWin::backButtonRect):
2152 (WebCore::ScrollbarThemeWin::forwardButtonRect):
2153 (WebCore::ScrollbarThemeWin::trackRect):
2154 (WebCore::ScrollbarThemeWin::splitTrack):
2155 (WebCore::ScrollbarThemeWin::paintTrack):
2156 (WebCore::ScrollbarThemeWin::paintButton):
2157 (WebCore::gripperRect):
2158 (WebCore::paintGripper):
2159 (WebCore::ScrollbarThemeWin::paintThumb):
2160 (WebCore::ScrollbarThemeWin::thumbPosition):
2161 (WebCore::ScrollbarThemeWin::thumbLength):
2162 (WebCore::ScrollbarThemeWin::trackLength):
2163 * platform/win/ScrollbarThemeWin.h:
2164 (WebCore::ScrollbarThemeWin::hasButtons):
2165 (WebCore::ScrollbarThemeWin::trackIsSinglePiece):
2166
timothy@apple.comd91172c2008-09-15 05:38:00 +000021672008-09-14 Anthony Ricaud <rik24d@gmail.com>
2168
2169 Moving all resource graphs under the same container for future scalable feature.
2170 This is a speedup on resize but maybe a loss on changing the sorting function.
2171
2172 https://bugs.webkit.org/show_bug.cgi?id=20555
2173
2174 Reviewed by Timothy Hatcher.
2175
2176 * page/inspector/ResourcesPanel.js: Added a container for all resource graphs.
2177 Added WebInspector.ResourceGraph. No more _updateGraphBars on resize.
2178 * page/inspector/inspector.css: Edited corresponding rules and removed unnecessaries.
2179
ap@webkit.orga14074b2008-09-15 04:52:44 +000021802008-09-14 Alexey Proskuryakov <ap@webkit.org>
2181
2182 Reviewed by Maciej Stachowiak.
2183
2184 https://bugs.webkit.org/show_bug.cgi?id=20738
2185 compareBoundaryPoints gives incorrect results
2186
2187 Test: fast/dom/Range/compareBoundaryPoints-2.html
2188
2189 * dom/Range.cpp: (WebCore::Range::compareBoundaryPoints): Correct meanings of START_TO_END
2190 and END_TO_START.
2191 * page/DOMSelection.cpp: (WebCore::DOMSelection::addRange): Updated for this change.
2192
mjs@apple.com285bdcf2008-09-15 02:55:16 +000021932008-09-14 Maciej Stachowiak <mjs@apple.com>
2194
2195 Unreviewed build fix.
2196
mjs@apple.comcbb31e52008-09-15 03:10:35 +00002197 Trying again.
2198
2199 * bindings/js/JSQuarantinedObjectWrapper.cpp:
2200 (WebCore::JSQuarantinedObjectWrapper::hasInstance):
2201
22022008-09-14 Maciej Stachowiak <mjs@apple.com>
2203
2204 Unreviewed build fix.
2205
mjs@apple.com285bdcf2008-09-15 02:55:16 +00002206 Blind attempt to fix build. Correct parameters for hasInstance.
2207
2208 * bindings/js/JSQuarantinedObjectWrapper.cpp:
2209 (WebCore::JSQuarantinedObjectWrapper::hasInstance):
2210 * bindings/js/JSQuarantinedObjectWrapper.h:
2211
mitz@apple.come85f7362008-09-15 02:23:24 +000022122008-09-14 Dan Bernstein <mitz@apple.com>
2213
2214 Rubber-stamped by Sam Weinig.
2215
2216 - revert <http://trac.webkit.org/changeset/36382> because it exposed
2217 <https://bugs.webkit.org/show_bug.cgi?id=20846> and resulted in crashes
2218 on Tiger.
2219
2220 * platform/graphics/mac/FontCacheMac.mm:
2221 (WebCore::FontCache::getFontDataForCharacters):
2222 (WebCore::FontCache::getLastResortFallbackFont):
2223
hyatt@apple.comf18feec2008-09-15 00:56:11 +000022242008-09-14 Dave Hyatt <hyatt@apple.com>
2225
2226 Add a new ScrollbarThemeComposite base class that is shared by ScrollbarThemeSafari and
2227 ScrollbarThemeWin. Any scrollbar that wants to render by ScrollbarPart can subclass from this
2228 theme.
2229
2230 Reviewed by Sam Weinig
2231
2232 * WebCore.vcproj/WebCore.vcproj:
2233 * platform/win/ScrollbarThemeSafari.h:
2234 * platform/win/ScrollbarThemeWin.h:
2235
alp@webkit.orgd694e942008-09-15 00:20:15 +000022362008-09-14 Alp Toker <alp@nuanti.com>
2237
2238 https://bugs.webkit.org/show_bug.cgi?id=20320
2239 [GTK] A white rectangle is visible behind widgets with rounded corners
2240
2241 Sync bundled gtk2drawing.c to the latest version from Mozilla (coding
2242 style exempt).
2243
2244 Requested by Michael Monreal.
2245
2246 * platform/gtk/RenderThemeGtk.cpp:
2247 (WebCore::RenderThemeGtk::RenderThemeGtk):
2248 * platform/gtk/gtk2drawing.c:
2249 (moz_gtk_set_widget_name):
2250 (ensure_window_widget):
2251 (setup_widget_prototype):
2252 (ensure_button_arrow_widget):
2253 (moz_gtk_get_combo_box_inner_button):
2254 (moz_gtk_get_combo_box_button_inner_widgets):
2255 (ensure_combo_box_widgets):
2256 (moz_gtk_get_combo_box_entry_inner_widgets):
2257 (moz_gtk_get_combo_box_entry_arrow):
2258 (ensure_combo_box_entry_widgets):
2259 (ensure_toolbar_widget):
2260 (ensure_tooltip_widget):
2261 (ensure_menu_bar_widget):
2262 (ensure_menu_bar_item_widget):
2263 (ensure_menu_popup_widget):
2264 (ensure_menu_item_widget):
2265 (ensure_image_menu_item_widget):
2266 (ensure_menu_separator_widget):
2267 (ensure_check_menu_item_widget):
2268 (ensure_tree_header_cell_widget):
2269 (ensure_scrolled_window_widget):
2270 (moz_gtk_button_paint):
2271 (moz_gtk_init):
2272 (moz_gtk_button_get_inner_border):
2273 (moz_gtk_toggle_paint):
2274 (calculate_button_inner_rect):
2275 (calculate_arrow_rect):
2276 (moz_gtk_scrollbar_button_paint):
2277 (moz_gtk_scrollbar_thumb_paint):
2278 (moz_gtk_caret_paint):
2279 (moz_gtk_entry_paint):
2280 (moz_gtk_treeview_paint):
2281 (moz_gtk_tree_header_cell_paint):
2282 (moz_gtk_combo_box_paint):
2283 (moz_gtk_downarrow_paint):
2284 (moz_gtk_combo_box_entry_button_paint):
2285 (moz_gtk_toolbar_paint):
2286 (moz_gtk_tab_scroll_arrow_paint):
2287 (moz_gtk_menu_bar_paint):
2288 (moz_gtk_menu_item_paint):
2289 (moz_gtk_get_widget_border):
2290 (moz_gtk_get_combo_box_entry_button_size):
2291 (moz_gtk_get_tab_scroll_arrow_size):
2292 (moz_gtk_get_downarrow_size):
2293 (moz_gtk_images_in_menus):
2294 (moz_gtk_widget_paint):
2295 (moz_gtk_shutdown):
2296 * platform/gtk/gtkdrawing.h:
2297
hyatt@apple.com3ab48302008-09-14 23:55:16 +000022982008-09-14 David Hyatt <hyatt@apple.com>
2299
2300 Convert Mac, Gtk, wx and Qt over to the new ScrollbarTheme for
2301 painting. Mac and Gtk themes don't do anything and just let the
2302 underlying widget paint. Qt now uses the theme to paint. wx doesn't
2303 do anything yet.
2304
2305 Reviewed by Sam Weinig
2306
2307 * platform/ScrollBar.cpp:
2308 (WebCore::Scrollbar::paint):
2309 * platform/ScrollBar.h:
2310 (WebCore::Scrollbar::value):
2311 (WebCore::Scrollbar::visibleSize):
2312 (WebCore::Scrollbar::maximum):
2313 (WebCore::Scrollbar::lineStep):
2314 (WebCore::Scrollbar::pageStep):
2315 (WebCore::Scrollbar::pixelStep):
2316 (WebCore::Scrollbar::pressedPart):
2317 (WebCore::Scrollbar::hoveredPart):
2318 (WebCore::Scrollbar::theme):
2319 * platform/ScrollbarTheme.h:
2320 (WebCore::ScrollbarTheme::paint):
2321 (WebCore::ScrollbarTheme::scrollbarThickness):
2322 (WebCore::ScrollbarTheme::supportsControlTints):
2323 (WebCore::ScrollbarTheme::themeChanged):
2324 * platform/gtk/PlatformScrollBar.h:
2325 * platform/gtk/PlatformScrollBarGtk.cpp:
2326 * platform/mac/PlatformScrollBar.h:
2327 * platform/mac/PlatformScrollBarMac.mm:
2328 * platform/qt/PlatformScrollBar.h:
2329 * platform/qt/PlatformScrollBarQt.cpp:
2330 * platform/qt/ScrollbarThemeQt.cpp:
2331 (WebCore::styleOptionSlider):
2332 * platform/qt/ScrollbarThemeQt.h:
2333 (WebCore::ScrollbarThemeQt::paint):
2334 * platform/win/PlatformScrollBarSafari.cpp:
2335 (WebCore::PlatformScrollbar::paint):
2336 * platform/win/ScrollbarThemeSafari.h:
2337 (WebCore::ScrollbarThemeSafari::supportsControlTints):
2338 * platform/wx/PlatformScrollBar.h:
2339 * platform/wx/TemporaryLinkStubs.cpp:
2340 (PlatformScrollbar::~PlatformScrollbar):
2341
weinig@apple.comcb93e262008-09-14 21:36:11 +000023422008-09-14 Sam Weinig <sam@webkit.org>
2343
weinig@apple.com6ef2b872008-09-14 22:15:28 +00002344 Qt build fix.
2345
2346 * platform/qt/PlatformScrollBarQt.cpp:
2347
23482008-09-14 Sam Weinig <sam@webkit.org>
2349
weinig@apple.com064861a2008-09-14 22:12:49 +00002350 Reviewed by Mark Rowe.
2351
2352 Remove extraneous semicolons.
2353
2354 * bindings/scripts/CodeGeneratorObjC.pm:
2355 * html/HTMLLinkElement.cpp:
2356 (WebCore::HTMLLinkElement::tokenizeRelAttribute):
2357 * html/HTMLScriptElement.cpp:
2358 (WebCore::HTMLScriptElement::charsetAttributeValue):
2359 (WebCore::HTMLScriptElement::typeAttributeValue):
2360 * platform/graphics/qt/GradientQt.cpp:
2361 (WebCore::Gradient::platformGradient):
2362 * platform/qt/ScrollViewQt.cpp:
2363 (WebCore::ScrollView::ScrollViewPrivate::setHasHorizontalScrollbar):
2364 * platform/win/ScrollViewWin.cpp:
2365 (WebCore::ScrollView::updateScrollbars):
2366 * rendering/RenderBlock.cpp:
2367 (WebCore::RenderBlock::paintEllipsisBoxes):
2368 * svg/SVGPathSegList.cpp:
2369 (WebCore::SVGPathSegList::toPathData):
2370
23712008-09-14 Sam Weinig <sam@webkit.org>
2372
weinig@apple.comcb93e262008-09-14 21:36:11 +00002373 Qt build fix.
2374
weinig@apple.com31311a62008-09-14 22:00:15 +00002375 * platform/qt/ScrollViewQt.cpp:
2376 (WebCore::ScrollView::updateScrollbars):
2377
23782008-09-14 Sam Weinig <sam@webkit.org>
2379
2380 Qt build fix.
2381
weinig@apple.comcb93e262008-09-14 21:36:11 +00002382 * platform/qt/PlatformScrollBarQt.cpp:
2383 (WebCore::PlatformScrollbar::PlatformScrollbar):
2384 (WebCore::PlatformScrollbar::paint):
2385
jmalonzo@webkit.org65e836c2008-09-14 01:57:13 +000023862008-09-13 Jan Michael Alonzo <jmalonzo@webkit.org>
2387
2388 Gtk build fix, not reviewed.
2389
2390 * platform/gtk/PlatformScrollBarGtk.cpp:
2391 (PlatformScrollbar::PlatformScrollbar):
2392 * platform/gtk/ScrollViewGtk.cpp:
2393 (WebCore::ScrollView::updateScrollbars):
2394
hyatt@apple.comd62f5bf2008-09-14 00:32:19 +000023952008-09-13 Dave Hyatt <hyatt@apple.com>
2396
hyatt@apple.com21ab7c62008-09-14 01:26:22 +00002397 Remove scrollbar's setRect method. Clients can now just call setFrameGeometry (the corresponding Widget) method
2398 to set the dimensions of a scrollbar.
2399
2400 Reviewed by Sam Weinig
2401
2402 * platform/ScrollBar.h:
2403 * platform/gtk/PlatformScrollBar.h:
2404 * platform/gtk/PlatformScrollBarGtk.cpp:
2405 (PlatformScrollbar::setFrameGeometry):
2406 * platform/gtk/ScrollViewGtk.cpp:
2407 (WebCore::ScrollView::updateScrollbars):
2408 * platform/mac/PlatformScrollBarMac.mm:
2409 * platform/qt/PlatformScrollBarQt.cpp:
2410 * platform/qt/ScrollViewQt.cpp:
2411 (WebCore::ScrollView::updateScrollbars):
2412 * platform/win/PlatformScrollBar.h:
2413 * platform/win/PlatformScrollBarSafari.cpp:
2414 (WebCore::PlatformScrollbar::PlatformScrollbar):
2415 (WebCore::PlatformScrollbar::setFrameGeometry):
2416 * platform/win/PlatformScrollBarWin.cpp:
2417 (WebCore::PlatformScrollbar::PlatformScrollbar):
2418 (WebCore::PlatformScrollbar::setFrameGeometry):
2419 * platform/win/PopupMenuWin.cpp:
2420 (WebCore::PopupWndProc):
2421 * platform/win/ScrollViewWin.cpp:
2422 (WebCore::ScrollView::updateScrollbars):
2423 * platform/wx/PlatformScrollBar.h:
2424 * platform/wx/TemporaryLinkStubs.cpp:
2425 (PlatformScrollbar::updateThumbProportion):
2426 * rendering/RenderLayer.cpp:
2427 (WebCore::RenderLayer::positionOverflowControls):
2428 * rendering/RenderListBox.cpp:
2429 (WebCore::RenderListBox::paintScrollbar):
2430
24312008-09-13 Dave Hyatt <hyatt@apple.com>
2432
hyatt@apple.comed9485a2008-09-14 01:06:57 +00002433 Remove setEnabled() from all Scrollbar classes that were just using their Widget base class methods.
2434
2435 Reviewed by Sam Weinig
2436
2437 * platform/ScrollBar.h:
2438 * platform/gtk/PlatformScrollBar.h:
2439 * platform/gtk/PlatformScrollBarGtk.cpp:
2440 * platform/mac/PlatformScrollBar.h:
2441 * platform/mac/PlatformScrollBarMac.mm:
2442 * platform/win/PlatformScrollBar.h:
2443 * platform/win/PlatformScrollBarSafari.cpp:
2444 * platform/win/PlatformScrollBarWin.cpp:
2445 * platform/wx/PlatformScrollBar.h:
2446 * platform/wx/TemporaryLinkStubs.cpp:
2447 (PlatformScrollbar::~PlatformScrollbar):
2448
24492008-09-13 Dave Hyatt <hyatt@apple.com>
2450
hyatt@apple.com64d98032008-09-14 00:58:29 +00002451 Remove width()/height() from Scrollbar now that it derives from Widget. Remove width()/height() from
2452 all PlatformScrollbar subclasses that just called the Widget base class versions of those methods.
2453
2454 Reviewed by Sam Weinig
2455
2456 * platform/ScrollBar.h:
2457 * platform/gtk/PlatformScrollBar.h:
2458 * platform/gtk/PlatformScrollBarGtk.cpp:
2459 * platform/mac/PlatformScrollBar.h:
2460 * platform/mac/PlatformScrollBarMac.mm:
2461 * platform/win/PlatformScrollBarSafari.cpp:
2462 * platform/win/PlatformScrollBarWin.cpp:
2463 * platform/wx/PlatformScrollBar.h:
2464 * platform/wx/TemporaryLinkStubs.cpp:
2465 (PlatformScrollbar::~PlatformScrollbar):
2466
24672008-09-13 Dave Hyatt <hyatt@apple.com>
2468
hyatt@apple.comd62f5bf2008-09-14 00:32:19 +00002469 Move stopTimerIfNeeded out of PlatformScrollbar destructors and into Scrollbar.
2470
2471 Reviewed by Sam Weinig
2472
2473 * platform/ScrollBar.cpp:
2474 (WebCore::Scrollbar::~Scrollbar):
2475 * platform/ScrollBar.h:
2476 * platform/qt/PlatformScrollBarQt.cpp:
2477 (WebCore::PlatformScrollbar::~PlatformScrollbar):
2478 * platform/win/PlatformScrollBarSafari.cpp:
2479 (WebCore::PlatformScrollbar::~PlatformScrollbar):
2480 * platform/win/PlatformScrollBarWin.cpp:
2481 (WebCore::PlatformScrollbar::~PlatformScrollbar):
2482
hyatt@apple.coma3c52492008-09-13 23:57:08 +000024832008-09-13 David Hyatt <hyatt@apple.com>
2484
2485 Move maximum() from Qt's PlatformScrollbar to be a cross-platform
2486 function on Scrollbar. Fixes Qt build bustage.
2487
2488 Reviewed by Sam Weinig
2489
2490 * platform/ScrollBar.h:
2491 (WebCore::Scrollbar::orientation):
2492 (WebCore::Scrollbar::value):
2493 (WebCore::Scrollbar::maximum):
2494 * platform/qt/PlatformScrollBar.h:
2495
mitz@apple.comb3d22882008-09-13 23:06:59 +000024962008-09-13 Dan Bernstein <mitz@apple.com>
2497
2498 Reviewed by Sam Weinig.
2499
2500 - use the LastResort font for missing glyphs instead of showing the
2501 primary font's missing glyph
2502
2503 Test: platform/mac/fast/text/last-resort-font.html
2504
2505 * platform/graphics/mac/FontCacheMac.mm:
2506 (WebCore::FontCache::getFontDataForCharacters): Changed to return the
2507 last resort font if a substitute font cannot be found.
2508 (WebCore::FontCache::getLastResortFallbackFont): Removed an outdated
2509 comment (the user's preferred standard font is included in the search
2510 thanks to code in FontCache::getFontData()) and changed to return the
2511 LastResort font.
2512
hyatt@apple.com0c378c72008-09-13 22:59:05 +000025132008-09-13 Dave Hyatt <hyatt@apple.com>
2514
2515 This patch adds ScrollbarTheme to the build. ScrollbarTheme is similar to RenderTheme (but for
2516 scrollbars only). For now ScrollbarTheme just handles returning the size of scrollbars. Subsequent
2517 patches will move rendering and hit testing functionality into this class.
2518
2519 Implemented ScrollbarTheme subclasses for four ports (Mac, Win, Gtk, Qt). The wxWidgets port does not
2520 implement scrollbars yet, so I added a temporary link stub to keep things compiling on wx.
2521
2522 Reviewed by Sam Weinig
2523
2524 * GNUmakefile.am:
2525 * WebCore.pro:
2526 * WebCore.vcproj/WebCore.vcproj:
2527 * platform/ScrollBar.cpp:
2528 (WebCore::Scrollbar::Scrollbar):
2529 * platform/ScrollBar.h:
2530 * platform/ScrollbarTheme.h: Added.
2531 (WebCore::ScrollbarTheme::~ScrollbarTheme):
2532 (WebCore::ScrollbarTheme::scrollbarThickness):
2533 (WebCore::ScrollbarTheme::themeChanged):
2534 * platform/gtk/ScrollbarThemeGtk.cpp: Added.
2535 (WebCore::ScrollbarTheme::nativeTheme):
2536 (WebCore::ScrollbarThemeGtk::~ScrollbarThemeGtk):
2537 (WebCore::ScrollbarThemeGtk::scrollbarThickness):
2538 * platform/gtk/ScrollbarThemeGtk.h: Added.
2539 * platform/mac/PlatformScrollBar.h:
2540 * platform/mac/ScrollbarThemeMac.cpp: Added.
2541 (WebCore::ScrollbarTheme::nativeTheme):
2542 (WebCore::):
2543 (WebCore::ScrollbarThemeMac::~ScrollbarThemeMac):
2544 (WebCore::ScrollbarThemeMac::scrollbarThickness):
2545 * platform/mac/ScrollbarThemeMac.h: Added.
2546 * platform/qt/PlatformScrollBarQt.cpp:
2547 * platform/qt/ScrollbarThemeQt.cpp: Added.
2548 (WebCore::ScrollbarTheme::nativeTheme):
2549 (WebCore::ScrollbarThemeQt::~ScrollbarThemeQt):
2550 (WebCore::ScrollbarThemeQt::scrollbarThickness):
2551 * platform/qt/ScrollbarThemeQt.h: Added.
2552 * platform/win/PlatformScrollBar.h:
2553 * platform/win/PlatformScrollBarSafari.cpp:
2554 * platform/win/PlatformScrollBarWin.cpp:
2555 * platform/win/PopupMenuWin.cpp:
2556 (WebCore::PopupMenu::calculatePositionAndSize):
2557 * platform/win/ScrollViewWin.cpp:
2558 (WebCore::ScrollView::updateScrollbars):
2559 (WebCore::ScrollView::themeChanged):
2560 * platform/win/ScrollbarThemeSafari.cpp: Added.
2561 (WebCore::ScrollbarTheme::nativeTheme):
2562 (WebCore::):
2563 (WebCore::ScrollbarThemeSafari::~ScrollbarThemeSafari):
2564 (WebCore::ScrollbarThemeSafari::scrollbarThickness):
2565 * platform/win/ScrollbarThemeSafari.h: Added.
2566 * platform/win/ScrollbarThemeWin.cpp: Added.
2567 (WebCore::ScrollbarTheme::nativeTheme):
2568 (WebCore::ScrollbarThemeWin::~ScrollbarThemeWin):
2569 (WebCore::ScrollbarThemeWin::scrollbarThickness):
2570 (WebCore::ScrollbarThemeWin::themeChanged):
2571 * platform/win/ScrollbarThemeWin.h: Added.
2572 * platform/wx/TemporaryLinkStubs.cpp:
2573 (ScrollbarTheme::nativeTheme):
2574 * rendering/RenderLayer.cpp:
2575 (WebCore::scrollCornerRect):
2576 * rendering/RenderTextControl.cpp:
2577 (WebCore::RenderTextControl::calcHeight):
2578 (WebCore::RenderTextControl::calcPrefWidths):
2579
cfleizach@apple.comd26c2762008-09-13 21:05:18 +000025802008-09-13 Chris Fleizach <cfleizach@apple.com>
2581
2582 Reviewed by Timothy Hatcher.
2583
2584 <rdar://problem/5060439> Web elements should have an AXTopLevelUIElement
2585
2586 * page/mac/AccessibilityObjectWrapper.mm:
2587 (-[AccessibilityObjectWrapper accessibilityAttributeNames]):
2588
mitz@apple.com6307c9f2008-09-13 20:27:37 +000025892008-09-13 Dan Bernstein <mitz@apple.com>
2590
2591 Reviewed by Timothy Hatcher.
2592
2593 - fix <rdar://problem/6171280> REGRESSION (r35667): Assertion failure in WebCore::FrameView::scheduleRelayout() when releasing a page with counters from the b/f cache
2594
2595 No regression test because the back/forward cache is disabled in DumpRenderTree
2596
2597 * rendering/RenderContainer.cpp:
2598 (WebCore::RenderContainer::invalidateCounters): Bail out if the document
2599 is being destroyed.
2600
kevino@webkit.org1e178ee2008-09-13 18:48:39 +000026012008-09-13 Kevin Ollivier <kevino@theolliviers.com>
2602
2603 wx build fixes for new methods recently introduced.
2604
2605 * platform/graphics/wx/AffineTransformWx.cpp:
2606 (WebCore::AffineTransform::AffineTransform):
2607 (WebCore::AffineTransform::setMatrix):
2608 (WebCore::AffineTransform::setA):
2609 (WebCore::AffineTransform::setB):
2610 (WebCore::AffineTransform::setC):
2611 (WebCore::AffineTransform::setD):
2612 (WebCore::AffineTransform::setE):
2613 (WebCore::AffineTransform::setF):
2614 * platform/wx/LocalizedStringsWx.cpp:
2615 (WebCore::AXDefinitionListTermText):
2616 (WebCore::AXDefinitionListDefinitionText):
2617
hyatt@apple.com30ed5442008-09-13 18:39:58 +000026182008-09-12 Dave Hyatt <hyatt@apple.com>
2619
2620 Move the member variables of PlatformScrollbar up into Scrollbar. Move autoscroll timer handling
2621 up into scrollbar. Make sure a bunch of cross-platform code now just uses "Scrollbar" instead of
2622 "PlatformScrollbar."
2623
2624 Reviewed by Sam Weinig
2625
2626 * WebCore.vcproj/WebCore.vcproj:
2627 * editing/EditorCommand.cpp:
2628 * page/EventHandler.cpp:
2629 (WebCore::EventHandler::selectCursor):
2630 (WebCore::EventHandler::handleMousePressEvent):
2631 (WebCore::EventHandler::handleMouseMoveEvent):
2632 * page/EventHandler.h:
2633 * page/MouseEventWithHitTestResults.cpp:
2634 (WebCore::MouseEventWithHitTestResults::scrollbar):
2635 * page/MouseEventWithHitTestResults.h:
2636 * page/gtk/EventHandlerGtk.cpp:
2637 (WebCore::EventHandler::passMousePressEventToScrollbar):
2638 * page/mac/EventHandlerMac.mm:
2639 (WebCore::EventHandler::passMousePressEventToScrollbar):
2640 * page/qt/EventHandlerQt.cpp:
2641 (WebCore::EventHandler::passMousePressEventToScrollbar):
2642 * page/win/EventHandlerWin.cpp:
2643 (WebCore::EventHandler::passMousePressEventToScrollbar):
2644 * page/wx/EventHandlerWx.cpp:
2645 (WebCore::EventHandler::passMousePressEventToScrollbar):
2646 * platform/PopupMenu.h:
2647 * platform/ScrollBar.cpp:
2648 (WebCore::Scrollbar::Scrollbar):
2649 (WebCore::Scrollbar::autoscrollTimerFired):
2650 (WebCore::Scrollbar::autoscrollPressedPart):
2651 (WebCore::Scrollbar::startTimerIfNeeded):
2652 (WebCore::Scrollbar::stopTimerIfNeeded):
2653 (WebCore::Scrollbar::pressedPartScrollDirection):
2654 (WebCore::Scrollbar::pressedPartScrollGranularity):
2655 * platform/ScrollBar.h:
2656 (WebCore::Scrollbar::handleMousePressEvent):
2657 (WebCore::Scrollbar::invalidatePart):
2658 (WebCore::Scrollbar::thumbUnderMouse):
2659 * platform/ScrollView.h:
2660 * platform/ScrollbarClient.h: Added.
2661 (WebCore::ScrollbarClient::~ScrollbarClient):
2662 * platform/gtk/ScrollViewGtk.cpp:
2663 (WebCore::ScrollView::scrollbarUnderMouse):
2664 * platform/qt/PlatformScrollBar.h:
2665 * platform/qt/PlatformScrollBarQt.cpp:
2666 (WebCore::PlatformScrollbar::PlatformScrollbar):
2667 (WebCore::scrollbarPart):
2668 (WebCore::PlatformScrollbar::handleMouseMoveEvent):
2669 (WebCore::PlatformScrollbar::handleMouseOutEvent):
2670 (WebCore::PlatformScrollbar::handleMousePressEvent):
2671 (WebCore::PlatformScrollbar::handleMouseReleaseEvent):
2672 * platform/qt/ScrollViewQt.cpp:
2673 (WebCore::ScrollView::scrollbarUnderMouse):
2674 (WebCore::ScrollView::wheelEvent):
2675 * platform/win/PlatformScrollBar.h:
2676 * platform/win/PlatformScrollBarSafari.cpp:
2677 (WebCore::PlatformScrollbar::PlatformScrollbar):
2678 * platform/win/PlatformScrollBarWin.cpp:
2679 (WebCore::PlatformScrollbar::PlatformScrollbar):
2680 * platform/win/ScrollViewWin.cpp:
2681 (WebCore::ScrollView::scrollbarUnderMouse):
2682 * rendering/HitTestResult.cpp:
2683 (WebCore::HitTestResult::setScrollbar):
2684 * rendering/HitTestResult.h:
2685 (WebCore::HitTestResult::scrollbar):
2686 * rendering/RenderLayer.cpp:
2687 (WebCore::RenderLayer::hitTestOverflowControls):
2688 * rendering/RenderLayer.h:
2689 * rendering/RenderListBox.h:
2690
sfalken@apple.comb4e407e2008-09-13 02:59:00 +000026912008-09-12 Steve Falkenburg <sfalken@apple.com>
2692
2693 Fix Mac build.
2694
2695 * css/CSSStyleSelector.cpp:
2696 (WebCore::getTransformOperationType):
2697
dino@apple.comf937dc62008-09-13 00:45:39 +000026982008-09-12 Chris Marrin <cmarrin@apple.com>
2699
2700 Reviewed by Dave Hyatt.
2701
2702 Make transform animation behavior match spec
2703 https://bugs.webkit.org/show_bug.cgi?id=20770
2704
2705 Tests: transitions/transform-op-list-match.html
2706 transitions/transform-op-list-no-match.html
2707
2708 * css/CSSStyleSelector.cpp:
2709 * css/CSSStyleSelector.h:
2710 * page/animation/AnimationBase.cpp:
2711 * page/animation/AnimationBase.h:
2712 * page/animation/ImplicitAnimation.cpp:
2713 * page/animation/ImplicitAnimation.h:
2714 * page/animation/KeyframeAnimation.cpp:
2715 * page/animation/KeyframeAnimation.h:
2716 * rendering/RenderLayer.cpp:
2717 * rendering/style/RenderStyle.cpp:
2718 * rendering/style/RenderStyle.h:
2719
timothy@apple.comab374dd2008-09-12 22:43:38 +000027202008-09-12 Ojan Vafai <ojan@chromium.org>
2721
2722 Properly escape contents of links added to the inspector.
2723 For now, just build the link with the DOM and get the
2724 outerHTML. Eventually, we probably just want to do
2725 this entirely with the DOM.
2726
2727 Reviewed by Timothy Hatcher.
2728
2729 https://bugs.webkit.org/show_bug.cgi?id=20684
2730
2731 * manual-tests/inspector/escape-links.html: Added.
2732 * page/inspector/StylesSidebarPane.js:
2733 * page/inspector/inspector.js:
2734 * page/inspector/utilities.js:
2735
adele@apple.com87fb3c72008-09-12 22:14:13 +000027362008-09-12 Adele Peterson <adele@apple.com>
2737
2738 Reviewed by John Sullivan and Kevin McCullough.
2739
2740 Fix for <rdar://problem/6216951> REGRESSION (r36000?): Crash due to infinite recursion into EventHandler::hitTestResultAtPoint() with disconnected frames
2741
2742 * page/EventHandler.cpp: (WebCore::EventHandler::hitTestResultAtPoint):
2743 Hit testing again on the main frame will only work if we aren't already on the main frame. If we are already on the main frame, that will
2744 cause infinite recursion. This change checks that we're not already on the main frame before hit testing again.
2745
kmccullough@apple.combdba2e32008-09-12 22:08:56 +000027462008-09-12 Kevin McCullough <kmccullough@apple.com>
2747
2748 RS by Tim .
2749
2750 Re-introducing the code since it was not the cause of the crash.
2751 See r36343.
2752
2753 * rendering/RenderObject.cpp:
2754 (WebCore::RenderObject::canBeProgramaticallyScrolled):
2755 * rendering/RenderObject.h:
2756
dino@apple.comf712ed02008-09-12 21:54:57 +000027572008-09-12 Chris Marrin <cmarrin@apple.com>
2758
2759 Reviewed by Dave Hyatt.
2760
2761 When changing one animation in a list, don't reset other animations
2762 https://bugs.webkit.org/show_bug.cgi?id=20675
2763
2764 Test: animations/change-one-anim.html
2765
2766 * page/animation/AnimationBase.cpp:
2767 (WebCore::AnimationBase::getNumProperties):
2768 * page/animation/AnimationBase.h:
2769 * page/animation/AnimationController.cpp:
2770 * page/animation/CompositeAnimation.cpp:
2771 (WebCore::CompositeAnimation::updateKeyframeAnimations):
2772 * page/animation/CompositeAnimation.h:
2773 * page/animation/ImplicitAnimation.cpp:
2774 * page/animation/KeyframeAnimation.cpp:
2775 * page/animation/KeyframeAnimation.h:
2776 (WebCore::KeyframeAnimation::setIndex):
2777
beidson@apple.com521e2b52008-09-12 18:40:03 +000027782008-09-12 Brady Eidson <beidson@apple.com>
2779
2780 Reviewed by Mitz Pettel
2781
2782 Fix the ASSERT and failure in webarchive/archive-empty-frame-source.html
2783
2784 * loader/DocumentLoader.cpp:
2785 (WebCore::DocumentLoader::mainResource): Further restoration of original WebArchive behavior.
2786 Subresources can never be created from nil data, but there is always a MainResource, whether
2787 or not there's any data. So in the case where the main resource has no data, fake it for the
2788 sake of creating the ArchiveResource.
2789
hyatt@apple.com818ffe92008-09-12 18:37:23 +000027902008-09-12 Dave Hyatt <hyatt@apple.com>
2791
2792 Preparation for major scrollbar rearchitecture. Eliminate the concept of non-widget based
2793 scrollbars (which we never supported anyway). Make Scrollbar derive from Widget directly.
2794 Remove all the isWidget and hasPlatformScrollbars guards.
2795
2796 Reviewed by Tim Hatcher
2797
2798 * platform/ScrollBar.h:
2799 * platform/gtk/PlatformScrollBar.h:
2800 * platform/mac/PlatformScrollBar.h:
2801 * platform/qt/PlatformScrollBar.h:
2802 * platform/win/PlatformScrollBar.h:
2803 * platform/win/ScrollViewWin.cpp:
2804 (WebCore::ScrollView::ScrollViewPrivate::setHasHorizontalScrollbar):
2805 (WebCore::ScrollView::ScrollViewPrivate::setHasVerticalScrollbar):
2806 * platform/wx/PlatformScrollBar.h:
2807 * rendering/RenderLayer.cpp:
2808 (WebCore::RenderLayer::horizontalScrollbarWidget):
2809 (WebCore::RenderLayer::verticalScrollbarWidget):
2810 (WebCore::RenderLayer::createScrollbar):
2811 (WebCore::RenderLayer::destroyScrollbar):
2812 * rendering/RenderListBox.cpp:
2813 (WebCore::RenderListBox::~RenderListBox):
2814 (WebCore::RenderListBox::updateFromElement):
2815 (WebCore::RenderListBox::isPointInOverflowControl):
2816
mitz@apple.com0bef1302008-09-12 18:22:07 +000028172008-09-12 Dan Bernstein <mitz@apple.com>
2818
2819 Reviewed by Sam Weinig.
2820
2821 - https://bugs.webkit.org/show_bug.cgi?id=20793 clean up page/animation
2822
2823 * page/animation/AnimationController.cpp:
2824 * page/animation/AnimationController.h:
2825 * page/animation/CompositeAnimation.cpp:
2826 * page/animation/CompositeAnimation.h:
2827 * page/animation/ImplicitAnimation.cpp:
2828 * page/animation/ImplicitAnimation.h:
2829 * page/animation/KeyframeAnimation.cpp:
2830 * page/animation/KeyframeAnimation.h:
2831
timothy@apple.com43203432008-09-12 04:44:40 +000028322008-09-11 Timothy Hatcher <timothy@apple.com>
2833
2834 Add a renderedImage method to DOMNode to get an image
2835 of the rendering for the node and it's descendants.
2836
2837 <rdar://problem/5849349> Would like API to create
2838 an image for a DOM node
2839
2840 Reviewed by Oliver Hunt.
2841
2842 * bindings/objc/DOM.mm:
2843 (-[DOMNode renderedImage]): Call Frame::nodeImage.
2844 * bindings/objc/DOMPrivate.h:
2845 * page/Frame.h:
2846 * page/mac/FrameMac.mm:
2847 (WebCore::Frame::nodeImage):
2848
dino@apple.com9300a0b2008-09-12 00:36:31 +000028492008-09-08 Chris Marrin <cmarrin@apple.com>
2850
2851 Reviewed by Dave Hyatt
2852
2853 Need to support comma separated list of key times in keyframes selectors
2854 https://bugs.webkit.org/show_bug.cgi?id=20680
2855
2856 Test: animations/keyframes-comma-separated.html
2857
2858 * css/CSSGrammar.y:
2859 * css/CSSParser.cpp:
2860 (WebCore::CSSParser::createKeyframeRule):
2861 * css/CSSParser.h:
2862 * css/CSSStyleSelector.cpp:
2863 (WebCore::CSSStyleSelector::addKeyframeStyle):
2864 * css/WebKitCSSKeyframeRule.cpp:
2865 (WebCore::WebKitCSSKeyframeRule::WebKitCSSKeyframeRule):
2866 (WebCore::WebKitCSSKeyframeRule::cssText):
2867 (WebCore::WebKitCSSKeyframeRule::parseKeyString):
2868 * css/WebKitCSSKeyframeRule.h:
2869 (WebCore::WebKitCSSKeyframeRule::keyText):
2870 (WebCore::WebKitCSSKeyframeRule::setKeyText):
2871 (WebCore::WebKitCSSKeyframeRule::getKeys):
2872 * css/WebKitCSSKeyframesRule.cpp:
2873 (WebCore::WebKitCSSKeyframesRule::append):
2874 (WebCore::WebKitCSSKeyframesRule::insertRule):
2875 (WebCore::WebKitCSSKeyframesRule::deleteRule):
2876 (WebCore::WebKitCSSKeyframesRule::findRule):
2877 (WebCore::WebKitCSSKeyframesRule::findRuleIndex):
2878 * css/WebKitCSSKeyframesRule.h:
2879 * page/animation/AnimationBase.cpp:
2880 (WebCore::AnimationBase::blendProperties):
2881
kmccullough@apple.com0f9f23a2008-09-11 22:57:09 +000028822008-09-11 Kevin McCullough <kmccullough@apple.com>
2883
2884 RS by Tim.
2885
2886 Reverting because this caused a crash.
2887
2888 * rendering/RenderObject.cpp:
2889 (WebCore::RenderObject::canBeProgramaticallyScrolled):
2890 (WebCore::RenderObject::hasScrollableView):
2891 * rendering/RenderObject.h:
2892
dino@apple.com19853b32008-09-11 21:59:08 +000028932008-09-11 Dean Jackson <dino@apple.com>
2894
2895 Reviewed by Dan Bernstein.
2896
2897 Fix assertion on transition property "none"
2898 https://bugs.webkit.org/show_bug.cgi?id=20751
2899
2900 Test: transitions/transition-end-event-set-none.html
2901
2902 * page/animation/CompositeAnimation.cpp:
2903 (WebCore::CompositeAnimation::updateTransitions):
2904
dsmith@webkit.orge6ea48f2008-09-11 21:41:33 +000029052008-09-11 David Smith <catfish.man@gmail.com>
2906
dsmith@webkit.org08103d92008-09-11 21:54:30 +00002907 Rubber-stamped by mitzpettel.
2908
2909 Remove an accidentally added extra file.
2910
2911 * WebCore: Removed.
2912
29132008-09-11 David Smith <catfish.man@gmail.com>
2914
dsmith@webkit.orge6ea48f2008-09-11 21:41:33 +00002915 Reviewed by Darin
2916
2917 https://bugs.webkit.org/show_bug.cgi?id=20180
2918
2919 This speeds up :nth-child matching as tested by querySelectorAll by around 10% by inlining the common case of Node::renderStyle(). Many thanks to mitzpettel and othermaciej for suggestions and help.
2920
2921 * WebCore.xcodeproj/project.pbxproj: Add NodeRenderStyle.h
2922 * css/CSSStyleSelector.cpp: include NodeRenderStyle.h
2923 * dom/Element.cpp: include NodeRenderStyle.h
2924 * dom/Node.cpp: Remove the definition of renderStyle()
2925 (WebCore::Node::nonRendererRenderStyle):
2926 * dom/Node.h: Make renderStyle() nonvirtual and add nonRendererRenderStyle()
2927 * dom/NodeRenderStyle.h: Added.
2928 (WebCore::Node::renderStyle): Inline the common case of this, call nonRendererRenderStyle for the part that needed to be virtual
2929 * html/HTMLOptGroupElement.cpp: include NodeRenderStyle.h
2930 * html/HTMLOptGroupElement.h:
2931 (WebCore::HTMLOptGroupElement::nonRendererRenderStyle): override to return m_style
2932 * html/HTMLOptionElement.cpp: include NodeRenderStyle.h
2933 * html/HTMLOptionElement.h:
2934 (WebCore::HTMLOptionElement::nonRendererRenderStyle): override to return m_style
2935 * rendering/RenderListBox.cpp: include NodeRenderStyle.h
2936 * rendering/RenderMenuList.cpp: include NodeRenderStyle.h
2937 * svg/SVGUseElement.cpp: include NodeRenderStyle.h
2938
kmccullough@apple.com38d3b0f2008-09-11 17:39:12 +000029392008-09-11 Kevin McCullough <kmccullough@apple.com>
2940
2941 Reviewed by Adele and Tim.
2942
2943 <rdar://problem/6100597> REGRESSION: clicking on search results in Web
2944 Inspector does not scroll to the line of the results (20167)
2945 - This was put in by Max to fix auto scrolling but is not correct for
2946 the whole web: rdar://problem/6213098
2947
2948 * rendering/RenderObject.cpp:
2949 (WebCore::RenderObject::canBeProgramaticallyScrolled):
2950 * rendering/RenderObject.h:
2951
cfleizach@apple.com6a3b1452008-09-11 16:24:09 +000029522008-09-11 Chris Fleizach <cfleizach@apple.com>
2953
2954 Reviewed by Beth Dakin
2955
2956 <rdar://problem/6210511> AX: if a frame has a title, that should be reported as the AXWebArea's title
2957
2958 Test: accessibility/frame-with-title.html
2959
2960 * page/AccessibilityRenderObject.cpp:
2961 (WebCore::AccessibilityRenderObject::accessibilityDescription):
2962
hausmann@webkit.orge8f8ffd2008-09-11 07:34:42 +000029632008-09-11 Dirk Schulze <vbs85@gmx.de>
2964
2965 Reviewed by Simon.
2966
hausmann@webkit.orgea57c432008-09-11 08:03:07 +00002967 Fixed stroke() and strokeRect() to support gradients
2968 and patterns on Qt.
2969
2970 [Qt] Canvas stroke don't work for gradients and patterns
2971 [https://bugs.webkit.org/show_bug.cgi?id=20749]
2972
2973 * platform/graphics/qt/GraphicsContextQt.cpp:
2974 (WebCore::GraphicsContext::strokePath):
2975 (WebCore::GraphicsContext::strokeRect):
2976
29772008-09-11 Dirk Schulze <vbs85@gmx.de>
2978
2979 Reviewed by Simon.
2980
hausmann@webkit.orgc11e3b72008-09-11 07:37:42 +00002981 https://bugs.webkit.org/show_bug.cgi?id=20729
2982
2983 Fixed canvas gradients for Qt
2984
2985 [Qt] Canvas gradients don't work as expected
2986 [https://bugs.webkit.org/show_bug.cgi?id=20729]
2987
2988 * platform/graphics/qt/GradientQt.cpp:
2989 (WebCore::Gradient::platformGradient):
2990
29912008-09-11 Dirk Schulze <vbs85@gmx.de>
2992
2993 Reviewed by Simon.
2994
hausmann@webkit.orge8f8ffd2008-09-11 07:34:42 +00002995 https://bugs.webkit.org/show_bug.cgi?id=20568
2996
2997 Add support for patterns to Qt.
2998
2999 * platform/graphics/qt/PatternQt.cpp:
3000 (WebCore::Pattern::createPlatformPattern):
3001
mitz@apple.com442c5892008-09-10 18:21:14 +000030022008-09-10 Dan Bernstein <mitz@apple.com>
3003
3004 Reviewed by Sam Weinig.
3005
3006 - clean up AnimationBase
3007
3008 * page/animation/AnimationBase.cpp:
3009 * page/animation/AnimationBase.h:
3010 * page/animation/CompositeAnimation.cpp:
3011 * page/animation/ImplicitAnimation.cpp:
3012 * page/animation/ImplicitAnimation.h:
3013 * page/animation/KeyframeAnimation.cpp:
3014 * page/animation/KeyframeAnimation.h:
3015
ap@webkit.orgbaf12872008-09-10 16:42:10 +000030162008-09-10 Alexey Proskuryakov <ap@webkit.org>
3017
3018 Reviewed by Darin Adler.
3019
3020 https://bugs.webkit.org/show_bug.cgi?id=20741
3021 REGRESSION: ISO-8859-8-I encoding is registered incorrectly
3022
3023 Turns out that there were no real behavior changes for 8859-8, as it was only a debug-only
3024 check to ignore this specific registration that was failing. Yet, I decided to add a bunch of
3025 tests for ISO-8859-8 encoding aliases, as we handle them in a quite complicated manner.
3026
3027 I also found and fixed a potential crasher for non-Mac ports.
3028
3029 Tests: fast/encoding/hebrew/8859-8-e.html
3030 fast/encoding/hebrew/8859-8-i.html
3031 fast/encoding/hebrew/8859-8.html
3032 fast/encoding/hebrew/csISO88598I.html
3033 fast/encoding/hebrew/hebrew.html
3034 fast/encoding/hebrew/iso-ir-138.html
3035 fast/encoding/hebrew/logical.html
3036
3037 * platform/text/TextEncodingRegistry.cpp: (WebCore::checkExistingName): Check for iso-8859-8
3038 (case-insensitively, because different versions of ICU report this MIME name in different
3039 case).
3040
3041 * platform/text/TextCodecICU.cpp:
3042 (WebCore::TextCodecICU::registerExtendedEncodingNames): Updated some comments.
3043 (WebCore::TextCodecICU::registerExtendedCodecs): Try both MIME and IANA names here, too.
3044 There are four names in ICU that only have MIME names (x-mac-* ones), so we could end up
3045 with an encoding map entry, but no codec for these. This was not an issue on the Mac, as
3046 we also support these via TEC (which we should stop doing), but on Windows, this would
3047 likely crash.
3048
hyatt@apple.com0197e6b2008-09-10 05:29:46 +000030492008-09-09 Dave Hyatt <hyatt@apple.com
3050
3051 Resurrect PlatformScrollbarWin.
3052
3053 Reviewed by Adam Roben
3054
3055 * WebCore.vcproj/WebCore.vcproj:
3056 * platform/win/PlatformScrollBarWin.cpp:
3057 (WebCore::isRunningOnVistaOrLater):
3058 (WebCore::checkAndInitScrollbarTheme):
3059 (WebCore::PlatformScrollbar::PlatformScrollbar):
3060 (WebCore::PlatformScrollbar::invalidateTrack):
3061 (WebCore::PlatformScrollbar::invalidatePart):
3062 (WebCore::PlatformScrollbar::paint):
3063 (WebCore::PlatformScrollbar::hasButtons):
3064 (WebCore::PlatformScrollbar::hasThumb):
3065 (WebCore::PlatformScrollbar::backButtonRect):
3066 (WebCore::PlatformScrollbar::forwardButtonRect):
3067 (WebCore::PlatformScrollbar::trackRect):
3068 (WebCore::PlatformScrollbar::gripperRect):
3069 (WebCore::PlatformScrollbar::thumbLength):
3070 (WebCore::PlatformScrollbar::paintButton):
3071 (WebCore::PlatformScrollbar::paintTrack):
3072 (WebCore::PlatformScrollbar::paintThumb):
3073 (WebCore::PlatformScrollbar::paintGripper):
3074 (WebCore::PlatformScrollbar::hitTest):
3075 (WebCore::PlatformScrollbar::handleMouseMoveEvent):
3076 (WebCore::PlatformScrollbar::handleMouseOutEvent):
3077 (WebCore::PlatformScrollbar::themeChanged):
3078
cwzwarich@webkit.org8a334572008-09-10 03:22:04 +000030792008-09-09 Cameron Zwarich <cwzwarich@uwaterloo.ca>
3080
3081 Reviewed by Maciej Stachowiak.
3082
3083 Bug 20759: Remove MacroAssembler
3084 <https://bugs.webkit.org/show_bug.cgi?id=20759>
3085
3086 Make the necessary changes to ForwardingHeaders to remove
3087 MacroAssembler.
3088
3089 * ForwardingHeaders/masm/IA32MacroAsm.h: Removed.
3090 * ForwardingHeaders/masm/MacroAssembler.h: Removed.
3091 * ForwardingHeaders/masm/X86Assembler.h: Added.
3092
alp@webkit.org509e3d42008-09-10 01:26:20 +000030932008-09-09 Alp Toker <alp@nuanti.com>
3094
3095 Reviewed by Dave Hyatt.
3096
3097 https://bugs.webkit.org/show_bug.cgi?id=16792
3098 [GTK] Fails to render Japanese/Chinese text with simple path
3099
3100 https://bugs.webkit.org/show_bug.cgi?id=16942
3101 [GTK] Oddities in font selection and fall back
3102
3103 https://bugs.webkit.org/show_bug.cgi?id=16862
3104 [GTK] Custom fonts hard-coded to use grayscale antialiasing and no hinting
3105
3106 GTK+ font fixes and enhancements.
3107
3108 Implement font fallback for the simple FontConfig-based text path and
3109 improve the Pango-based complex text path to make use of requested
3110 font properties and available font selection.
3111
3112 Add text shadow support to the complex path.
3113
3114 * platform/graphics/gtk/FontCacheGtk.cpp:
3115 (WebCore::FontCache::getFontDataForCharacters):
3116 (WebCore::FontCache::getSimilarFontPlatformData):
3117 * platform/graphics/gtk/FontGtk.cpp:
3118 (WebCore::setPangoAttributes):
3119 (WebCore::Font::drawComplexText):
3120 (WebCore::getDefaultPangoLayout):
3121 (WebCore::Font::floatWidthForComplexText):
3122 (WebCore::Font::offsetForPositionForComplexText):
3123 (WebCore::Font::selectionRectForComplexText):
3124 * platform/graphics/gtk/FontPlatformData.h:
3125 (WebCore::FontPlatformData::FontPlatformData):
3126 (WebCore::FontPlatformData::hash):
3127 * platform/graphics/gtk/FontPlatformDataGtk.cpp:
3128 (WebCore::FontPlatformData::FontPlatformData):
3129 * platform/graphics/gtk/SimpleFontDataGtk.cpp:
3130 (WebCore::SimpleFontData::platformDestroy):
3131
hyatt@apple.com33f37f62008-09-09 23:51:46 +000031322008-09-09 Dave Hyatt <hyatt@apple.com>
3133
3134 Make the Windows classic case work again. Overlap in slider constants and other constants broke
3135 the push state for buttons and checkboxes. Make sure to check the RenderObject's appearance
3136 value to make sure it's really a slider thumb to resolve this conflict.
3137
3138 Reviewed by Adam Roben
3139
3140 * rendering/RenderThemeWin.cpp:
3141 (WebCore::drawControl):
3142
dino@apple.com442d0652008-09-09 23:36:56 +000031432008-09-05 Chris Marrin <cmarrin@apple.com>
3144
3145 Reviewed by Sam Weinig.
3146
3147 Need to handle the case when 0% or 100% keyframe is omitted
3148 https://bugs.webkit.org/show_bug.cgi?id=20679
3149
3150 Tests: animations/keyframes-from-missing.html
3151 animations/keyframes-to-missing.html
3152
3153 * css/CSSStyleSelector.cpp:
3154 (WebCore::CSSStyleSelector::addKeyframeStyle):
3155
hyatt@apple.com419d0ad2008-09-09 23:11:14 +000031562008-09-09 Dave Hyatt <hyatt@apple.com>
3157
3158 Resurrect Safari's original RenderThemeWin and bring it up to date with ToT. Having a current
3159 RenderThemeWin that does not have any Skia dependencies should provide a good basis for a potential
3160 merge of Google Chrome's RenderThemeWin (to help us see where the Skia stuff can be cut and to see
3161 what changes have been made as compared with the old RenderThemeWin).
3162
3163 Fix CSS2 system fonts to properly set both the rendering mode (so that they properly pick up GDI vs. CG
3164 text rendering modes) and the printer font setting (so that OS X system fonts properly pick up screen
3165 vs. printer advancement rounding).
3166
3167 Reviewed by Adam/Sam
3168
3169 * css/CSSStyleSelector.cpp:
3170 (WebCore::CSSStyleSelector::applyProperty):
3171 * platform/graphics/Icon.h:
3172 (WebCore::Icon::create):
3173 * rendering/RenderThemeWin.cpp:
3174 (WebCore::RenderThemeWin::RenderThemeWin):
3175 (WebCore::RenderThemeWin::~RenderThemeWin):
3176 (WebCore::RenderThemeWin::buttonTheme):
3177 (WebCore::RenderThemeWin::textFieldTheme):
3178 (WebCore::RenderThemeWin::menuListTheme):
3179 (WebCore::RenderThemeWin::sliderTheme):
3180 (WebCore::RenderThemeWin::close):
3181 (WebCore::RenderThemeWin::themeChanged):
3182 (WebCore::RenderThemeWin::supportsHover):
3183 (WebCore::fillFontDescription):
3184 (WebCore::RenderThemeWin::systemFont):
3185 (WebCore::RenderThemeWin::supportsFocus):
3186 (WebCore::RenderThemeWin::determineClassicState):
3187 (WebCore::RenderThemeWin::determineState):
3188 (WebCore::RenderThemeWin::determineSliderThumbState):
3189 (WebCore::RenderThemeWin::getClassicThemeData):
3190 (WebCore::RenderThemeWin::getThemeData):
3191 (WebCore::drawControl):
3192 (WebCore::RenderThemeWin::paintButton):
3193 (WebCore::RenderThemeWin::paintTextField):
3194 (WebCore::RenderThemeWin::paintMenuList):
3195 (WebCore::RenderThemeWin::adjustMenuListStyle):
3196 (WebCore::RenderThemeWin::adjustMenuListButtonStyle):
3197 (WebCore::RenderThemeWin::paintMenuListButton):
3198 (WebCore::RenderThemeWin::paintSliderTrack):
3199 (WebCore::RenderThemeWin::paintSliderThumb):
3200 (WebCore::RenderThemeWin::adjustSliderThumbSize):
3201 (WebCore::RenderThemeWin::paintSearchField):
3202 (WebCore::RenderThemeWin::adjustSearchFieldStyle):
3203 (WebCore::RenderThemeWin::paintSearchFieldCancelButton):
3204 (WebCore::RenderThemeWin::adjustSearchFieldCancelButtonStyle):
3205 (WebCore::RenderThemeWin::adjustSearchFieldDecorationStyle):
3206 (WebCore::RenderThemeWin::adjustSearchFieldResultsDecorationStyle):
3207 (WebCore::RenderThemeWin::paintSearchFieldResultsDecoration):
3208 (WebCore::RenderThemeWin::adjustSearchFieldResultsButtonStyle):
3209 (WebCore::RenderThemeWin::paintSearchFieldResultsButton):
3210 * rendering/RenderThemeWin.h:
3211 (WebCore::ThemeData::ThemeData):
3212 (WebCore::RenderThemeWin::paintSearchFieldDecoration):
3213 (WebCore::RenderThemeWin::adjustButtonStyle):
3214 (WebCore::RenderThemeWin::adjustTextFieldStyle):
3215 (WebCore::RenderThemeWin::adjustTextAreaStyle):
3216
dino@apple.comd511ce52008-09-09 19:50:25 +000032172008-09-09 Dean Jackson <dino@apple.com>
3218
3219 Reviewed by Sam Weinig.
3220
3221 Document::createEvent missing cases for animation and
3222 transition events.
3223 https://bugs.webkit.org/show_bug.cgi?id=20734
3224
3225 Test: transitions/transition-end-event-create.html
3226 Test: animations/animation-events-create.html
3227
3228 * dom/Document.cpp:
3229 (WebCore::Document::createEvent):
3230 - add the two cases
3231
mitz@apple.com1da7b882008-09-09 18:12:06 +000032322008-09-09 Dan Bernstein <mitz@apple.com>
3233
mitz@apple.com54921562008-09-09 18:48:34 +00003234 - Tiger build fix
3235
3236 * WebCore.Tiger.exp:
3237 * WebCore.base.exp:
3238 * platform/mac/WebCoreSystemInterface.h:
3239 * platform/mac/WebCoreSystemInterface.mm:
3240
32412008-09-09 Dan Bernstein <mitz@apple.com>
3242
mitz@apple.com1da7b882008-09-09 18:12:06 +00003243 Reviewed by Darin Adler.
3244
3245 - WebCore part of <rdar://problem/6206244> Use alternate character-to-glyph interface on Leopard
3246
3247 * WebCore.Tiger.exp:
3248 * WebCore.base.exp:
3249 * platform/graphics/SimpleFontData.h:
3250 * platform/graphics/mac/GlyphPageTreeNodeMac.cpp:
3251 (WebCore::GlyphPage::fill):
3252 * platform/graphics/mac/SimpleFontDataMac.mm:
3253 (WebCore::initFontData):
3254 (WebCore::SimpleFontData::platformInit):
3255 (WebCore::SimpleFontData::platformDestroy):
3256 * platform/mac/WebCoreSystemInterface.h:
3257 * platform/mac/WebCoreSystemInterface.mm:
3258
kmccullough@apple.com5ba965b2008-09-09 16:40:31 +000032592008-09-09 Kevin McCullough <kmccullough@apple.com>
3260
3261 Reviewed by Tim.
3262
3263 <rdar://problem/6198545> REGRESSION: Inspector debugger barfs on
3264 breakpoints inside eval.
3265
3266 * page/inspector/inspector.js:
3267
hausmann@webkit.orgdab0e872008-09-09 14:17:21 +000032682008-09-09 Joerg Bornemann <joerg.bornemann@trolltech.com>
3269
3270 Reviewed by Simon.
3271
3272 Fix compilation of the Qt port with disabled plugins on Windows
3273
3274 * WebCore.pro:
3275 * plugins/PluginView.cpp:
3276 (WebCore::PluginView::PluginView):
3277 * plugins/PluginView.h:
3278
ap@webkit.org2ba74d32008-09-09 08:11:01 +000032792008-09-09 Jungshik Shin <jungshik.shin@gmail.com>
3280
3281 Reviewed by Alexey Proskuryakov.
3282
3283 Try MIME charset names before trying IANA names
3284 ( https://bugs.webkit.org/show_bug.cgi?id=17537 )
3285
3286 With this change, shorter and more widely used names (preferred MIME
3287 names) are returned by document.charset, document.characterSet,
3288 document.inputEncoding rather than IANA names. This helps
3289 fixing bug 18085 in addition to web developers who are more familiar
3290 with MIME names. For instance, EUC-JP, ISO-8859-X and US-ASCII will be
3291 returned instead of Extended_UNIX_Code_Packed_Format_for_Japanese,
3292 ISO-8859-X:19xx, and ANSI_X3.4-1968. It also replaces IBM8xx with cp8xx.
3293 Note that cp/IBM 8xx are extremly rare in today's web. Even if they're
3294 used, the former is still recognized as aliases to the latter so that
3295 there's very little, if any, to worry about.
3296
3297 * platform/text/TextCodecICU.cpp:
3298 (WebCore::TextCodecICU::registerExtendedEncodingNames):
3299
weinig@apple.com22294302008-09-09 06:55:39 +000033002008-09-08 Sam Weinig <sam@webkit.org>
3301
3302 Reviewed by Maciej Stachowiak and Oliver Hunt.
3303
3304 Add forwarding headers.
3305
3306 * ForwardingHeaders/wtf/HashFunctions.h: Added.
3307
dino@apple.comd9962af2008-09-09 01:02:00 +000033082008-09-05 Dean Jackson <dino@apple.com>
3309
3310 Reviewed by Dan Bernstein.
3311
3312 Update grammar so that we can add a keyframe rule via the DOM.
3313 https://bugs.webkit.org/show_bug.cgi?id=20613
3314
3315 * css/CSSGrammar.y:
3316 * css/tokenizer.flex:
3317
antti@apple.com4b17a932008-09-09 00:40:45 +000033182008-09-08 Antti Koivisto <antti@apple.com>
3319
3320 Reviewed by Dan Bernstein.
3321
3322 Allow <br> for simple UA stylesheet. Editing code generates them. It does not
3323 actually show up in any of the default stylesheets.
3324
3325 * css/CSSStyleSelector.cpp:
3326 (WebCore::elementCanUseSimpleDefaultStyle):
3327
mitz@apple.com66fa91a2008-09-09 00:35:22 +000033282008-09-08 Dimitri Glazkov <dglazkov@google.com>
3329
3330 Reviewed by Dan Bernstein.
3331
3332 - fix https://bugs.webkit.org/show_bug.cgi?id=20237
3333 Zero width and space characters are displayed incorrectly if not contained in a fallback font
3334
3335 Adds an extra check for Object Replacement Character (U+FFFC) to address
3336 the issue with fast/text/zero-width-characters.html test when run
3337 with Windows system default fonts.
3338
3339 * platform/graphics/Font.h:
3340 (WebCore::Font::treatAsZeroWidthSpace):
3341
dino@apple.comf0a4b212008-09-08 22:51:49 +000033422008-09-08 Dean Jackson <dino@apple.com>
3343
3344 Reviewed by Sam Weinig.
3345
3346 Code style issue I forgot to fix from previous commit.
3347
3348 * platform/graphics/AffineTransform.cpp:
3349 (WebCore::AffineTransform::blend):
3350
dino@apple.com26625122008-09-08 22:46:41 +000033512008-09-08 Chris Marrin <cmarrin@apple.com>
3352
3353 Reviewed by Sam Weinig
3354
3355 - Animation of -webkit-transform matrix() function should not do linear interpolation
3356 https://bugs.webkit.org/show_bug.cgi?id=20667
3357
3358 Test: animations/matrix-anim.html
3359
3360 * ChangeLog:
3361 * platform/graphics/AffineTransform.cpp:
3362 (WebCore::affineTransformDecompose):
3363 (WebCore::affineTransformCompose):
3364 (WebCore::AffineTransform::blend):
3365 * platform/graphics/AffineTransform.h:
3366 * rendering/style/RenderStyle.cpp:
3367 (WebCore::MatrixTransformOperation::blend):
3368
ap@webkit.org243a9752008-09-08 16:21:16 +000033692008-09-08 Alexey Proskuryakov <ap@webkit.org>
3370
3371 Reviewed by Darin Adler.
3372
3373 https://bugs.webkit.org/show_bug.cgi?id=20668
3374 multipart/form-data does not always include Content-type for submitted files
3375
3376 Cannot be tested with DRT or manual tests.
3377
3378 * platform/MIMETypeRegistry.cpp:
3379 (WebCore::initializeSupportedNonImageMimeTypes): Fix spacing.
3380 (WebCore::MIMETypeRegistry::getMIMETypeForPath): Default to application/octet-stream for
3381 unknown extensions, not just missing ones.
3382
hausmann@webkit.orgaf796ea2008-09-08 13:00:19 +000033832008-09-08 Simon Hausmann <hausmann@webkit.org>
3384
3385 Build fix for the Qt/Windows build, define USE_JSC to
3386 enable the WebCore::String -> JSC::UString operator that
3387 MSVC insists on seeing
3388
3389 * WebCore.pro:
3390
andersca@apple.com3ac4f552008-09-08 11:39:34 +000033912008-09-08 Anders Carlsson <andersca@apple.com>
3392
3393 Reviewed by Maciej.
3394
3395 <rdar://problem/5850387> Showing bookmarks reloads Google Reader instead.
3396
3397 In some cases, timeouts scheduled by a page in the onunload handler could fire even when the
3398 page had been unloaded and replaced by a non-HTML representation based view (such as the bookmarks view).
3399
3400 Fix this by clearing timeouts for pages that aren't cached when the provisional load is committed.
3401
3402 * bindings/js/JSDOMWindowBase.h:
3403 * loader/FrameLoader.cpp:
3404 (WebCore::FrameLoader::commitProvisionalLoad):
3405
antti@apple.com57b3a102008-09-08 07:01:36 +000034062008-09-07 Antti Koivisto <antti@apple.com>
3407
3408 Reviewed by Dave Hyatt.
3409
3410 Don't leak the simple stylesheet.
3411 Also call RenderTheme::adjustDefaultStyleSheet() in right place.
3412
3413 * css/CSSStyleSelector.cpp:
3414 (WebCore::loadFullDefaultStyle):
3415 (WebCore::loadSimpleDefaultStyle):
3416 (WebCore::CSSStyleSelector::styleForElement):
3417
cwzwarich@webkit.org3f782f62008-09-08 01:28:33 +000034182008-09-07 Cameron Zwarich <cwzwarich@uwaterloo.ca>
3419
cwzwarich@webkit.org951b1452008-09-08 04:25:32 +00003420 Reviewed by Oliver Hunt.
3421
3422 Bug 20711: Change KJS prefix on preprocessor macros to JSC
3423 <https://bugs.webkit.org/show_bug.cgi?id=20711>
3424
3425 * bindings/js/JSEventTargetBase.h:
3426 * bindings/js/JSHTMLInputElementBase.cpp:
3427 * bindings/js/JSHTMLInputElementBase.h:
3428 * bindings/scripts/CodeGeneratorJS.pm:
3429
34302008-09-07 Cameron Zwarich <cwzwarich@uwaterloo.ca>
3431
cwzwarich@webkit.org3f782f62008-09-08 01:28:33 +00003432 Reviewed by Maciej Stachowiak.
3433
3434 Bug 20704: Replace the KJS namespace
3435 <https://bugs.webkit.org/show_bug.cgi?id=20704>
3436
3437 Rename the KJS namespace to JSC. There are still some uses of KJS in the
3438 names of JNI functions, and I will check if these are safe to change
3439 as well.
3440
3441 * WebCore.base.exp:
3442 * bindings/js/GCController.cpp:
3443 * bindings/js/JSAttrCustom.cpp:
3444 * bindings/js/JSAudioConstructor.cpp:
3445 * bindings/js/JSAudioConstructor.h:
3446 (WebCore::JSAudioConstructor::classInfo):
3447 * bindings/js/JSCSSRuleCustom.cpp:
3448 * bindings/js/JSCSSStyleDeclarationCustom.cpp:
3449 * bindings/js/JSCSSValueCustom.cpp:
3450 * bindings/js/JSCanvasPixelArrayCustom.cpp:
3451 * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
3452 * bindings/js/JSClipboardCustom.cpp:
3453 * bindings/js/JSConsoleCustom.cpp:
3454 * bindings/js/JSCustomSQLStatementCallback.cpp:
3455 (WebCore::JSCustomSQLStatementCallback::handleEvent):
3456 * bindings/js/JSCustomSQLStatementCallback.h:
3457 (WebCore::JSCustomSQLStatementCallback::create):
3458 * bindings/js/JSCustomSQLStatementErrorCallback.cpp:
3459 (WebCore::JSCustomSQLStatementErrorCallback::handleEvent):
3460 * bindings/js/JSCustomSQLStatementErrorCallback.h:
3461 (WebCore::JSCustomSQLStatementErrorCallback::create):
3462 * bindings/js/JSCustomSQLTransactionCallback.cpp:
3463 (WebCore::JSCustomSQLTransactionCallback::handleEvent):
3464 * bindings/js/JSCustomSQLTransactionCallback.h:
3465 (WebCore::JSCustomSQLTransactionCallback::create):
3466 * bindings/js/JSCustomSQLTransactionErrorCallback.cpp:
3467 (WebCore::JSCustomSQLTransactionErrorCallback::handleEvent):
3468 * bindings/js/JSCustomSQLTransactionErrorCallback.h:
3469 (WebCore::JSCustomSQLTransactionErrorCallback::create):
3470 * bindings/js/JSCustomVoidCallback.cpp:
3471 (WebCore::JSCustomVoidCallback::handleEvent):
3472 * bindings/js/JSCustomVoidCallback.h:
3473 (WebCore::JSCustomVoidCallback::create):
3474 * bindings/js/JSCustomXPathNSResolver.cpp:
3475 (WebCore::JSCustomXPathNSResolver::create):
3476 * bindings/js/JSCustomXPathNSResolver.h:
3477 * bindings/js/JSDOMApplicationCacheCustom.cpp:
3478 (WebCore::JSDOMApplicationCache::dispatchEvent):
3479 * bindings/js/JSDOMBinding.cpp:
3480 (WebCore::jsOwnedStringOrNull):
3481 * bindings/js/JSDOMBinding.h:
3482 (WebCore::DOMObject::DOMObject):
3483 (WebCore::cacheDOMObject):
3484 (WebCore::cacheSVGDOMObject):
3485 (WebCore::DOMExceptionTranslator::DOMExceptionTranslator):
3486 (WebCore::toJS):
3487 * bindings/js/JSDOMWindowBase.cpp:
3488 * bindings/js/JSDOMWindowBase.h:
3489 (WebCore::JSDOMWindowBase::classInfo):
3490 (WebCore::JSDOMWindowBase::d):
3491 * bindings/js/JSDOMWindowCustom.cpp:
3492 (WebCore::JSDOMWindow::getPropertyAttributes):
3493 * bindings/js/JSDOMWindowCustom.h:
3494 (WebCore::asJSDOMWindow):
3495 (WebCore::JSDOMWindow::customGetOwnPropertySlot):
3496 (WebCore::JSDOMWindow::customPut):
3497 (WebCore::JSDOMWindowBase::allowsAccessFrom):
3498 (WebCore::JSDOMWindowBase::allowsAccessFromNoErrorMessage):
3499 * bindings/js/JSDOMWindowShell.cpp:
3500 (WebCore::JSDOMWindowShell::getPropertyAttributes):
3501 * bindings/js/JSDOMWindowShell.h:
3502 (WebCore::JSDOMWindowShell::classInfo):
3503 * bindings/js/JSDatabaseCustom.cpp:
3504 * bindings/js/JSDocumentCustom.cpp:
3505 * bindings/js/JSDocumentFragmentCustom.cpp:
3506 * bindings/js/JSElementCustom.cpp:
3507 * bindings/js/JSEventCustom.cpp:
3508 * bindings/js/JSEventListener.cpp:
3509 * bindings/js/JSEventListener.h:
3510 (WebCore::JSUnprotectedEventListener::create):
3511 (WebCore::JSEventListener::create):
3512 * bindings/js/JSEventTargetBase.cpp:
3513 * bindings/js/JSEventTargetBase.h:
3514 (WebCore::JSEventTargetBase::getValueProperty):
3515 (WebCore::JSEventTargetBase::putValueProperty):
3516 (WebCore::JSEventTargetBase::getOwnPropertySlot):
3517 (WebCore::JSEventTargetBase::put):
3518 (WebCore::JSEventTargetPrototype::JSEventTargetPrototype):
3519 (WebCore::JSEventTargetPrototype::self):
3520 (WebCore::JSEventTargetPrototype::getOwnPropertySlot):
3521 (WebCore::JSEventTargetPrototype::classInfo):
3522 * bindings/js/JSEventTargetNode.cpp:
3523 * bindings/js/JSEventTargetNode.h:
3524 (WebCore::JSEventTargetNode::getOwnPropertySlot):
3525 (WebCore::JSEventTargetNode::getValueProperty):
3526 (WebCore::JSEventTargetNode::put):
3527 (WebCore::JSEventTargetNode::putValueProperty):
3528 * bindings/js/JSHTMLAllCollection.h:
3529 (WebCore::JSHTMLAllCollection::JSHTMLAllCollection):
3530 (WebCore::JSHTMLAllCollection::toBoolean):
3531 * bindings/js/JSHTMLAppletElementCustom.cpp:
3532 * bindings/js/JSHTMLCollectionCustom.cpp:
3533 * bindings/js/JSHTMLDocumentCustom.cpp:
3534 * bindings/js/JSHTMLElementCustom.cpp:
3535 * bindings/js/JSHTMLEmbedElementCustom.cpp:
3536 * bindings/js/JSHTMLFormElementCustom.cpp:
3537 * bindings/js/JSHTMLFrameElementCustom.cpp:
3538 * bindings/js/JSHTMLFrameSetElementCustom.cpp:
3539 * bindings/js/JSHTMLIFrameElementCustom.cpp:
3540 * bindings/js/JSHTMLInputElementBase.cpp:
3541 (WebCore::JSHTMLInputElementBase::JSHTMLInputElementBase):
3542 (WebCore::JSHTMLInputElementBase::getOwnPropertySlot):
3543 * bindings/js/JSHTMLInputElementBase.h:
3544 (WebCore::JSHTMLInputElementBase::classInfo):
3545 * bindings/js/JSHTMLObjectElementCustom.cpp:
3546 * bindings/js/JSHTMLOptionElementConstructor.cpp:
3547 * bindings/js/JSHTMLOptionElementConstructor.h:
3548 (WebCore::JSHTMLOptionElementConstructor::classInfo):
3549 * bindings/js/JSHTMLOptionsCollectionCustom.cpp:
3550 * bindings/js/JSHTMLSelectElementCustom.cpp:
3551 (WebCore::selectIndexSetter):
3552 (WebCore::JSHTMLSelectElement::indexSetter):
3553 * bindings/js/JSHTMLSelectElementCustom.h:
3554 * bindings/js/JSHistoryCustom.cpp:
3555 * bindings/js/JSImageConstructor.cpp:
3556 * bindings/js/JSImageConstructor.h:
3557 (WebCore::JSImageConstructor::classInfo):
3558 * bindings/js/JSInspectedObjectWrapper.cpp:
3559 * bindings/js/JSInspectedObjectWrapper.h:
3560 (WebCore::JSInspectedObjectWrapper::wrapOutgoingValue):
3561 (WebCore::JSInspectedObjectWrapper::classInfo):
3562 * bindings/js/JSInspectorCallbackWrapper.cpp:
3563 * bindings/js/JSInspectorCallbackWrapper.h:
3564 (WebCore::JSInspectorCallbackWrapper::classInfo):
3565 (WebCore::JSInspectorCallbackWrapper::wrapOutgoingValue):
3566 * bindings/js/JSJavaScriptCallFrameCustom.cpp:
3567 * bindings/js/JSLocationCustom.cpp:
3568 * bindings/js/JSMimeTypeArrayCustom.cpp:
3569 * bindings/js/JSNSResolver.cpp:
3570 * bindings/js/JSNSResolver.h:
3571 (WebCore::JSNSResolver::create):
3572 * bindings/js/JSNamedNodeMapCustom.cpp:
3573 * bindings/js/JSNamedNodesCollection.cpp:
3574 (WebCore::JSNamedNodesCollection::JSNamedNodesCollection):
3575 * bindings/js/JSNamedNodesCollection.h:
3576 (WebCore::JSNamedNodesCollection::classInfo):
3577 * bindings/js/JSNavigatorCustom.cpp:
3578 * bindings/js/JSNodeCustom.cpp:
3579 * bindings/js/JSNodeFilterCondition.cpp:
3580 (WebCore::JSNodeFilterCondition::acceptNode):
3581 * bindings/js/JSNodeFilterCondition.h:
3582 (WebCore::JSNodeFilterCondition::create):
3583 * bindings/js/JSNodeFilterCustom.cpp:
3584 * bindings/js/JSNodeIteratorCustom.cpp:
3585 * bindings/js/JSNodeListCustom.cpp:
3586 * bindings/js/JSPluginArrayCustom.cpp:
3587 * bindings/js/JSPluginCustom.cpp:
3588 * bindings/js/JSPluginElementFunctions.cpp:
3589 (WebCore::getRuntimeObject):
3590 * bindings/js/JSPluginElementFunctions.h:
3591 * bindings/js/JSQuarantinedObjectWrapper.cpp:
3592 (WebCore::JSQuarantinedObjectWrapper::construct):
3593 (WebCore::JSQuarantinedObjectWrapper::call):
3594 * bindings/js/JSQuarantinedObjectWrapper.h:
3595 (WebCore::JSQuarantinedObjectWrapper::unwrappedObject):
3596 (WebCore::JSQuarantinedObjectWrapper::unwrappedGlobalObject):
3597 (WebCore::JSQuarantinedObjectWrapper::className):
3598 * bindings/js/JSRGBColor.cpp:
3599 * bindings/js/JSRGBColor.h:
3600 (WebCore::JSRGBColor::classInfo):
3601 * bindings/js/JSSQLResultSetRowListCustom.cpp:
3602 * bindings/js/JSSQLTransactionCustom.cpp:
3603 * bindings/js/JSSVGLazyEventListener.cpp:
3604 * bindings/js/JSSVGLazyEventListener.h:
3605 * bindings/js/JSSVGLengthCustom.cpp:
3606 * bindings/js/JSSVGMatrixCustom.cpp:
3607 (WebCore::JSSVGMatrix::inverse):
3608 (WebCore::JSSVGMatrix::rotateFromVector):
3609 * bindings/js/JSSVGPathSegCustom.cpp:
3610 * bindings/js/JSSVGPathSegListCustom.cpp:
3611 (WebCore::JSSVGPathSegList::initialize):
3612 (WebCore::JSSVGPathSegList::getItem):
3613 (WebCore::JSSVGPathSegList::insertItemBefore):
3614 (WebCore::JSSVGPathSegList::replaceItem):
3615 (WebCore::JSSVGPathSegList::removeItem):
3616 (WebCore::JSSVGPathSegList::appendItem):
3617 * bindings/js/JSSVGPointListCustom.cpp:
3618 * bindings/js/JSSVGTransformListCustom.cpp:
3619 * bindings/js/JSStorageCustom.cpp:
3620 * bindings/js/JSStyleSheetCustom.cpp:
3621 * bindings/js/JSStyleSheetListCustom.cpp:
3622 * bindings/js/JSTextCustom.cpp:
3623 * bindings/js/JSTreeWalkerCustom.cpp:
3624 * bindings/js/JSXMLHttpRequestConstructor.cpp:
3625 * bindings/js/JSXMLHttpRequestConstructor.h:
3626 (WebCore::JSXMLHttpRequestConstructor::classInfo):
3627 * bindings/js/JSXMLHttpRequestCustom.cpp:
3628 * bindings/js/JSXMLHttpRequestUploadCustom.cpp:
3629 * bindings/js/JSXSLTProcessorConstructor.cpp:
3630 * bindings/js/JSXSLTProcessorConstructor.h:
3631 (WebCore::JSXSLTProcessorConstructor::classInfo):
3632 * bindings/js/JSXSLTProcessorCustom.cpp:
3633 * bindings/js/ScheduledAction.cpp:
3634 * bindings/js/ScheduledAction.h:
3635 * bindings/js/ScriptController.cpp:
3636 (WebCore::ScriptController::attachDebugger):
3637 (WebCore::ScriptController::windowScriptNPObject):
3638 * bindings/js/ScriptController.h:
3639 * bindings/js/ScriptControllerGtk.cpp:
3640 (WebCore::ScriptController::createScriptInstanceForWidget):
3641 * bindings/js/ScriptControllerMac.mm:
3642 (WebCore::ScriptController::createScriptInstanceForWidget):
3643 (WebCore::ScriptController::windowScriptObject):
3644 (WebCore::ScriptController::clearPlatformScriptObjects):
3645 (WebCore::updateRenderingForBindings):
3646 (WebCore::ScriptController::initJavaJSBindings):
3647 * bindings/js/ScriptControllerQt.cpp:
3648 (WebCore::ScriptController::createScriptInstanceForWidget):
3649 * bindings/js/ScriptControllerWin.cpp:
3650 (WebCore::ScriptController::createScriptInstanceForWidget):
3651 * bindings/js/ScriptControllerWx.cpp:
3652 (WebCore::ScriptController::createScriptInstanceForWidget):
3653 * bindings/js/StringSourceProvider.h:
3654 (WebCore::StringSourceProvider::getRange):
3655 * bindings/objc/DOM.mm:
3656 (-[DOMNode JSC::Bindings::]):
3657 * bindings/objc/DOMInternal.h:
3658 * bindings/objc/DOMInternal.mm:
3659 (-[WebScriptObject _initializeScriptDOMNodeImp]):
3660 * bindings/objc/DOMUtility.mm:
3661 (JSC::createDOMWrapper):
3662 (WebCore::createDOMWrapper):
3663 * bindings/objc/WebScriptObject.mm:
3664 (WebCore::createJSWrapper):
3665 (-[WebScriptObject _initWithJSObject:JSC::originRootObject:JSC::Bindings::rootObject:JSC::Bindings::]):
3666 * bindings/objc/WebScriptObjectPrivate.h:
3667 * bindings/scripts/CodeGeneratorJS.pm:
3668 * bridge/NP_jsobject.cpp:
3669 * bridge/NP_jsobject.h:
3670 * bridge/c/c_class.cpp:
3671 * bridge/c/c_class.h:
3672 * bridge/c/c_instance.cpp:
3673 * bridge/c/c_instance.h:
3674 * bridge/c/c_runtime.cpp:
3675 * bridge/c/c_runtime.h:
3676 * bridge/c/c_utility.cpp:
3677 * bridge/c/c_utility.h:
3678 * bridge/jni/jni_class.cpp:
3679 * bridge/jni/jni_class.h:
3680 * bridge/jni/jni_instance.cpp:
3681 * bridge/jni/jni_instance.h:
3682 * bridge/jni/jni_jsobject.h:
3683 * bridge/jni/jni_jsobject.mm:
3684 (JavaJSObject::call):
3685 (JavaJSObject::convertJObjectToValue):
3686 * bridge/jni/jni_objc.mm:
3687 (JSC::Bindings::dispatchJNICall):
3688 * bridge/jni/jni_runtime.cpp:
3689 * bridge/jni/jni_runtime.h:
3690 * bridge/jni/jni_utility.cpp:
3691 * bridge/jni/jni_utility.h:
3692 * bridge/npruntime.cpp:
3693 (_NPN_GetStringIdentifier):
3694 * bridge/objc/WebScriptObject.h:
3695 * bridge/objc/objc_class.h:
3696 * bridge/objc/objc_class.mm:
3697 * bridge/objc/objc_instance.h:
3698 * bridge/objc/objc_instance.mm:
3699 * bridge/objc/objc_runtime.h:
3700 * bridge/objc/objc_runtime.mm:
3701 * bridge/objc/objc_utility.h:
3702 * bridge/objc/objc_utility.mm:
3703 * bridge/qt/qt_class.cpp:
3704 * bridge/qt/qt_class.h:
3705 * bridge/qt/qt_instance.cpp:
3706 * bridge/qt/qt_instance.h:
3707 * bridge/qt/qt_runtime.cpp:
3708 (JSC::Bindings::convertQVariantToValue):
3709 (JSC::Bindings::):
3710 * bridge/qt/qt_runtime.h:
3711 * bridge/runtime.cpp:
3712 * bridge/runtime.h:
3713 * bridge/runtime_array.cpp:
3714 * bridge/runtime_array.h:
3715 * bridge/runtime_method.cpp:
3716 * bridge/runtime_method.h:
3717 * bridge/runtime_object.cpp:
3718 * bridge/runtime_object.h:
3719 * bridge/runtime_root.cpp:
3720 (JSC::Bindings::RootObject::invalidate):
3721 (JSC::Bindings::RootObject::gcProtect):
3722 (JSC::Bindings::RootObject::gcUnprotect):
3723 * bridge/runtime_root.h:
3724 * bridge/testbindings.cpp:
3725 * bridge/testbindings.mm:
3726 * bridge/testqtbindings.cpp:
3727 * dom/Document.cpp:
3728 (WebCore::Document::~Document):
3729 * dom/NSResolver.h:
3730 * dom/Node.cpp:
3731 (WebCore::Node::setDocument):
3732 (WebCore::ResolveNamespaceFunctor::ResolveNamespaceFunctor):
3733 (WebCore::resolveNamespacesForSelector):
3734 (WebCore::Node::querySelector):
3735 (WebCore::Node::querySelectorAll):
3736 * dom/Node.h:
3737 * dom/NodeFilter.cpp:
3738 * dom/NodeFilter.h:
3739 * dom/NodeFilterCondition.cpp:
3740 * dom/NodeFilterCondition.h:
3741 * dom/NodeIterator.cpp:
3742 * dom/NodeIterator.h:
3743 * dom/Traversal.cpp:
3744 * dom/Traversal.h:
3745 * dom/TreeWalker.cpp:
3746 * dom/TreeWalker.h:
3747 * dom/make_names.pl:
3748 * history/CachedPage.cpp:
3749 * history/CachedPage.h:
3750 * html/HTMLPlugInElement.cpp:
3751 (WebCore::HTMLPlugInElement::getInstance):
3752 * html/HTMLPlugInElement.h:
3753 * loader/FrameLoader.cpp:
3754 * loader/FrameLoader.h:
3755 * loader/icon/IconDatabase.cpp:
3756 (WebCore::iconDatabase):
3757 * page/Console.cpp:
3758 * page/Console.h:
3759 * page/InspectorController.cpp:
3760 (WebCore::XMLHttpRequestResource::XMLHttpRequestResource):
3761 (WebCore::XMLHttpRequestResource::~XMLHttpRequestResource):
3762 (WebCore::InspectorResource::setXMLHttpRequestProperties):
3763 (WebCore::InspectorResource::sourceString):
3764 (WebCore::getResourceDocumentNode):
3765 (WebCore::search):
3766 (WebCore::InspectorController::focusNode):
3767 (WebCore::InspectorController::inspectedWindowScriptObjectCleared):
3768 (WebCore::InspectorController::addDatabaseScriptResource):
3769 (WebCore::InspectorController::resourceRetrievedByXMLHttpRequest):
3770 * page/InspectorController.h:
3771 (WebCore::InspectorController::profiles):
3772 * page/JavaScriptCallFrame.cpp:
3773 (WebCore::JavaScriptCallFrame::scopeChain):
3774 * page/JavaScriptCallFrame.h:
3775 (WebCore::JavaScriptCallFrame::create):
3776 (WebCore::JavaScriptCallFrame::update):
3777 * page/JavaScriptDebugListener.h:
3778 * page/JavaScriptDebugServer.cpp:
3779 (WebCore::dispatchDidParseSource):
3780 * page/JavaScriptDebugServer.h:
3781 * page/JavaScriptProfile.cpp:
3782 * page/JavaScriptProfile.h:
3783 * page/JavaScriptProfileNode.cpp:
3784 (WebCore::getTotalTime):
3785 (WebCore::getSelfTime):
3786 (WebCore::getTotalPercent):
3787 (WebCore::getSelfPercent):
3788 (WebCore::getNumberOfCalls):
3789 (WebCore::getChildren):
3790 (WebCore::getVisible):
3791 * page/JavaScriptProfileNode.h:
3792 * page/Page.cpp:
3793 (WebCore::Page::setDebuggerForAllPages):
3794 (WebCore::Page::setDebugger):
3795 * page/Page.h:
3796 (WebCore::Page::debugger):
3797 * page/mac/FrameMac.mm:
3798 * platform/KURL.h:
3799 (WebCore::KURL::operator JSC::UString):
3800 * platform/text/AtomicString.cpp:
3801 (WebCore::AtomicString::add):
3802 (WebCore::AtomicString::find):
3803 * platform/text/AtomicString.h:
3804 (WebCore::AtomicString::AtomicString):
3805 * platform/text/PlatformString.h:
3806 * platform/text/String.cpp:
3807 (WebCore::charactersToDouble):
3808 * platform/win/BString.cpp:
3809 * platform/win/BString.h:
3810 * plugins/MimeTypeArray.h:
3811 * plugins/Plugin.h:
3812 * plugins/PluginArray.h:
3813 * plugins/PluginView.cpp:
3814 (WebCore::PluginView::start):
3815 (WebCore::PluginView::performRequest):
3816 (WebCore::PluginView::bindingInstance):
3817 * plugins/PluginView.h:
3818 * plugins/gtk/PluginViewGtk.cpp:
3819 (WebCore::PluginView::paint):
3820 (WebCore::PluginView::handleKeyboardEvent):
3821 (WebCore::PluginView::handleMouseEvent):
3822 (WebCore::PluginView::setNPWindowRect):
3823 (WebCore::PluginView::stop):
3824 (WebCore::PluginView::init):
3825 * plugins/qt/PluginViewQt.cpp:
3826 (WebCore::PluginView::setNPWindowRect):
3827 (WebCore::PluginView::stop):
3828 (WebCore::PluginView::init):
3829 * plugins/win/PluginViewWin.cpp:
3830 (WebCore::PluginView::dispatchNPEvent):
3831 (WebCore::PluginView::handleKeyboardEvent):
3832 (WebCore::PluginView::handleMouseEvent):
3833 (WebCore::PluginView::setNPWindowRect):
3834 (WebCore::PluginView::stop):
3835 * storage/Database.cpp:
3836 (WebCore::Database::Database):
3837 * xml/XMLHttpRequest.cpp:
3838 (WebCore::XMLHttpRequest::responseText):
3839 (WebCore::XMLHttpRequest::loadRequestAsynchronously):
3840 (WebCore::XMLHttpRequest::clearResponse):
3841 (WebCore::XMLHttpRequest::dropProtection):
3842 (WebCore::XMLHttpRequest::didFinishLoading):
3843 (WebCore::XMLHttpRequest::didReceiveData):
3844 * xml/XMLHttpRequest.h:
3845
abarth@webkit.orge17b6052008-09-08 00:03:30 +000038462008-09-07 Adam Barth <abarth@webkit.org>
3847
3848 Reviewed by Sam Weinig.
3849
3850 Adopt opener restriction on frame navigation.
3851 https://bugs.webkit.org/show_bug.cgi?id=20642
3852
3853 This restriction helps prevent an attacker from navigating top-level
3854 windows that were created by another web site.
3855
3856 Tests: http/tests/security/frameNavigation/not-opener.html
3857 http/tests/security/frameNavigation/opener.html
3858
3859 * loader/FrameLoader.cpp:
3860 (WebCore::canAccessAncestor):
3861 (WebCore::FrameLoader::shouldAllowNavigation):
3862
mitz@apple.com83469af2008-09-07 22:29:56 +000038632008-09-07 Dan Bernstein <mitz@apple.com>
3864
mitz@apple.com08ff58c2008-09-07 23:19:11 +00003865 Reviewed by Maciej Stachowiak.
3866
3867 - use the correct sign for vertical offsets of combining marks
3868
3869 * platform/graphics/win/UniscribeController.cpp:
3870 (WebCore::UniscribeController::shapeAndPlaceItem):
3871
38722008-09-07 Dan Bernstein <mitz@apple.com>
3873
mitz@apple.com83469af2008-09-07 22:29:56 +00003874 Reviewed by Dave Hyatt.
3875
mitz@apple.com78685b22008-09-07 22:30:29 +00003876 - add the combining mark offsets in two places where I forgot them
3877
3878 * platform/graphics/win/FontCGWin.cpp:
3879 (WebCore::Font::drawGlyphs):
3880
38812008-09-07 Dan Bernstein <mitz@apple.com>
3882
3883 Reviewed by Dave Hyatt.
3884
mitz@apple.com83469af2008-09-07 22:29:56 +00003885 - correct glyph advances in complex text using web fonts rendered with
3886 Core Graphics
3887
3888 * platform/graphics/win/FontCustomPlatformData.cpp:
3889 (WebCore::FontCustomPlatformData::fontPlatformData):
3890
timothy@apple.com968ebc92008-09-07 16:48:41 +000038912008-09-07 Keishi Hattori <casey.hattori@gmail.com>
3892
3893 Adds console.dirxml support to the Web Inspector.
3894
3895 https://bugs.webkit.org/show_bug.cgi?id=19156
3896
3897 Reviewed by Timothy Hatcher.
3898
3899 * WebCore.vcproj/WebCore.vcproj: Added ElementsTreeOutline.js.
3900 * bindings/js/JSConsoleCustom.cpp:
3901 (WebCore::JSConsole::dirxml):
3902 * page/Console.cpp:
3903 (WebCore::Console::dirxml): Adds a ConsoleMessage with NodeMessageLevel.
3904 * page/Console.h:
3905 (WebCore::): Added NodeMessageLevel.
3906 * page/Console.idl: Added console.dirxml.
3907 * page/inspector/Console.js: A NodeMessage creates a ElementsTreeOutline.
3908 * page/inspector/ElementsPanel.js: Modified to use ElementsTreeOutline. The ElementsTreeOutline
3909 in the ElementsPanel has includeRootDOMNode and selectEnabled set to true.
3910 * page/inspector/ElementsTreeOutline.js: Added.
3911 (WebInspector.ElementsTreeOutline): A subclass of TreeOutline for displaying a DOM node tree.
3912 (WebInspector.ElementsTreeElement): A subclass of TreeElement for ElementsTreeOutline.
3913 * page/inspector/WebKit.qrc: Added ElementsTreeOutline.js.
3914 * page/inspector/inspector.css:
3915 * page/inspector/inspector.html: Added ElementsTreeOutline.js.
3916 * page/inspector/inspector.js: Moved hover related methods to WebInspector.
3917 (WebInspector.altKeyDown):
3918 (WebInspector.forceHoverHighlight):
3919 (WebInspector.hoveredDOMNode):
3920 (WebInspector._updateHoverHighlightSoon):
3921 (WebInspector._updateHoverHighlight):
3922 (WebInspector.documentKeyDown): Updates WebInspector.altKeyDown
3923 (WebInspector.documentKeyUp): Updates WebInspector.altKeyDown
3924 * page/inspector/utilities.js: Added getDocumentForNode, parentNodeOrFrameElement,
3925 isAncestorIncludingParentFrames.
3926
mrowe@apple.com61ba5f52008-09-07 06:08:56 +000039272008-09-06 Mark Rowe <mrowe@apple.com>
3928
3929 Qt build fix.
3930
3931 * bridge/qt/qt_runtime.cpp:
3932 (KJS::Bindings::convertQVariantToValue):
3933
mrowe@apple.comf88a4632008-09-07 05:44:58 +00003934=== End merge of squirrelfish-extreme ===
3935
39362008-09-05 Oliver Hunt <oliver@apple.com>
3937
3938 Start bringing up SFX on windows.
3939
3940 Reviewed by Mark Rowe and Sam Weinig
3941
3942 Start doing the work to bring up SFX on windows. Initially
3943 just working on WREC, as it does not make any calls so reduces
3944 the amount of code that needs to be corrected.
3945
3946 Add forwarding headers
3947
3948 * ChangeLog:
3949 * ForwardingHeaders/masm/MacroAssembler.h: Added.
3950 * WebCore.vcproj/WebCore.vcproj:
3951
39522008-08-27 Mark Rowe <mrowe@apple.com>
3953
3954 Reviewed by Oliver Hunt.
3955
3956 Fix the build of the full WebKit stack.
3957
3958 Add forwarding headers.
3959
3960 * ForwardingHeaders/masm/IA32MacroAsm.h: Added.
3961 * ForwardingHeaders/wrec/WREC.h: Added.
3962
3963=== Start merge of squirrelfish-extreme ===
3964
antti@apple.com13c24932008-09-07 03:54:21 +000039652008-09-06 Antti Koivisto <antti@apple.com>
3966
3967 Reviewed by Dave Hyatt.
3968
3969 <rdar://problem/6187043>
3970 Don't parse full HTML user agent style sheet unless it is actually needed
3971 <rdar://problem/6131889>
3972 WebView is significantly more expensive to create recently
3973
3974 Parsing the html4.css takes significant amount of time and memory (~50kb) on application
3975 startup. Some clients may never use most of the rules.
3976
3977 With this patch we use simplified UA stylesheet until we hit something it can't handle.
3978 This avoids full stylesheet parsing on application startup (due to empty document construction)
3979 and also makes it possible for clients with very simple demands (divs and spans only) never to load
3980 the full style.
3981
3982 It also delays view source style parsing until it is used.
3983
3984 * css/CSSStyleSelector.cpp:
3985 (WebCore::elementCanUseSimpleDefaultStyle):
3986 (WebCore::CSSStyleSelector::CSSStyleSelector):
3987 (WebCore::loadFullDefaultStyle):
3988 (WebCore::loadSimpleDefaultStyle):
3989 (WebCore::loadViewSourceStyle):
3990 (WebCore::CSSStyleSelector::matchUARules):
3991 (WebCore::CSSStyleSelector::styleForElement):
3992
kevino@webkit.orgd15b50f2008-09-07 03:46:50 +000039932008-09-06 Kevin Ollivier <kevino@theolliviers.com>
3994
3995 wx build fix.
3996
3997 * WebCoreSources.bkl:
3998
antti@apple.come953f862008-09-06 23:27:09 +000039992008-09-06 Antti Koivisto <antti@apple.com>
4000
antti@apple.com00dfa532008-09-06 23:32:26 +00004001 Reverting r35953 which was causing problems on Windows which relies on
4002 WebCore timers in nested event loops. r36132 did alternative fix.
4003
4004 * page/Chrome.cpp:
4005 (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
4006 (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
4007
40082008-09-06 Antti Koivisto <antti@apple.com>
4009
antti@apple.come953f862008-09-06 23:27:09 +00004010 Reviewed by Dan Bernstein.
4011
4012 Fix <rdar://problem/6201644>
4013 https://bugs.webkit.org/show_bug.cgi?id=20493
4014 Crash after OK in dialog box and reloading page in secure mode
4015
4016 Limited loader only fix since the general timer fix is causing problems on Windows.
4017
4018 * loader/loader.cpp:
4019 (WebCore::Loader::servePendingRequests):
4020 (WebCore::Loader::Host::Host):
4021 (WebCore::Loader::Host::didFinishLoading):
4022 (WebCore::Loader::Host::didFail):
4023 (WebCore::Loader::Host::didReceiveData):
4024 * loader/loader.h:
4025 (WebCore::Loader::Host::processingResource):
4026
mitz@apple.com046bf642008-09-06 08:31:02 +000040272008-09-06 Dan Bernstein <mitz@apple.com>
4028
4029 Reviewed by Dave Hyatt.
4030
mitz@apple.comc0b050b2008-09-06 22:39:34 +00004031 The initial Core Text adoption prototype was made by Daniel Fenwick.
4032
4033 - <rdar://problem/5158514> Add a Core Text-based complex text code path
4034
4035 Currently the Core Text code path is not used in any configuration.
4036
4037 * WebCore.xcodeproj/project.pbxproj: Added files.
4038 * config.h: Defined WTF_USE_ATSUI and WTF_USE_CORE_TEXT.
4039 * platform/graphics/Font.cpp:
4040 (WebCore::WidthIterator::advance): Moved the spacingDisabled() test out
4041 of the loop.
4042 * platform/graphics/GlyphBuffer.h:
4043 (WebCore::GlyphBuffer::add): Added this version that takes an advance.
4044 * platform/graphics/SimpleFontData.h: Added ATSUI and CORE_TEXT #ifdefs.
4045 Added getCTFont() and getCFStringAttributes() and corresponding data
4046 members for Core Text.
4047 * platform/graphics/mac/CoreTextController.cpp: Added.
4048 (WebCore::roundCGFloat): Helper function.
4049 (WebCore::ceilCGFloat): Helper function.
4050 (WebCore::CoreTextController::CoreTextRun::CoreTextRun):
4051 (WebCore::CoreTextController::CoreTextController):
4052 (WebCore::CoreTextController::offsetForPosition):
4053 (WebCore::CoreTextController::collectCoreTextRuns): Added. Segments the
4054 run into subruns as necessary such that each subrun can be rendered with
4055 a single font. Also separates out soft hyphens and replaces them with
4056 real hyphens, because Core Text does not emit a glyph for soft hyphens.
4057 Then calls collectCoreTextRunsForCharacters() on each subrun.
4058 (WebCore::CoreTextController::advance):
4059 (WebCore::CoreTextController::collectCoreTextRunsForCharacters): Creates
4060 a CTLine from the given subrun and collects its CoreTextRuns.
4061 (WebCore::CoreTextController::adjustGlyphsAndAdvances): Applies the
4062 rounding hacks, letter- and word-spacing and glyph substitutions and
4063 stores the resulting adjusted glyphs and advances.
4064 * platform/graphics/mac/CoreTextController.h: Copied from WebCore/platform/graphics/win/UniscribeController.h.
4065 (WebCore::CoreTextController::totalWidth):
4066 (WebCore::CoreTextController::finalRoundingWidth):
4067 (WebCore::CoreTextController::CoreTextRun::ctRun):
4068 (WebCore::CoreTextController::CoreTextRun::glyphCount):
4069 (WebCore::CoreTextController::CoreTextRun::fontData):
4070 (WebCore::CoreTextController::CoreTextRun::characters):
4071 (WebCore::CoreTextController::CoreTextRun::stringLocation):
4072 (WebCore::CoreTextController::CoreTextRun::stringLength):
4073 (WebCore::CoreTextController::CoreTextRun::indexAt):
4074 * platform/graphics/mac/FontMac.mm: Moved the ATSUI-specific parts to
4075 FontMacATSUI.mm.
4076 * platform/graphics/mac/FontMacATSUI.mm: Copied from WebCore/platform/graphics/mac/FontMac.mm.
4077 (WebCore::disableLigatures): Changed to call
4078 FontPlatformData::allowsLigatures().
4079 (WebCore::overrideLayoutOperation): Changed to call
4080 FontPlatformData::roundsGlyphAdvances().
4081 * platform/graphics/mac/FontMacCoreText.cpp: Copied from WebCore/platform/graphics/win/FontWin.cpp.
4082 (WebCore::Font::selectionRectForComplexText): Changed to use
4083 totalWidth() instead of advancing to the end and using runWidthSoFar().
4084 (WebCore::Font::drawComplexText):
4085 (WebCore::Font::floatWidthForComplexText): Ditto.
4086 (WebCore::Font::offsetForPositionForComplexText):
4087 * platform/graphics/mac/FontPlatformData.h:
4088 * platform/graphics/mac/FontPlatformDataMac.mm:
4089 (WebCore::FontPlatformData::setFont):
4090 (WebCore::FontPlatformData::roundsGlyphAdvances): Added. Checks the
4091 AppKit rendering mode.
4092 (WebCore::FontPlatformData::allowsLigatures): Added. Implements the
4093 heuristic that allows ligatures in fonts that do not have a glyph for
4094 'a', based on the assumption that such fonts are only used in complex
4095 text.
4096 * platform/graphics/mac/SimpleFontDataMac.mm:
4097 (WebCore::SimpleFontData::platformInit):
4098 (WebCore::SimpleFontData::platformDestroy):
4099 (WebCore::SimpleFontData::getCTFont): Added.
4100 (WebCore::SimpleFontData::getCFStringAttributes): Added. Caches and
4101 returns an attributes dictionary.
4102 * platform/text/mac/ShapeArabic.c: Added ATSUI #ifdefs.
4103 * platform/text/mac/ShapeArabic.h: Ditto.
4104
41052008-09-06 Dan Bernstein <mitz@apple.com>
4106
4107 Reviewed by Dave Hyatt.
4108
mitz@apple.com046bf642008-09-06 08:31:02 +00004109 - make combining mark offsets work in CG text on Windows
4110
4111 * platform/graphics/win/FontCGWin.cpp:
4112 (WebCore::Font::drawGlyphs): The old code tried to translate the text
4113 matrix, but failed for two reasons: it did not actually change the
4114 matrix, and even if it did, CGContextSetTextPosition overwrites the
4115 translation values in the text matrix. Instead, just added the
4116 translation to the anchor point.
4117
alp@webkit.org369cdca2008-09-06 04:08:30 +000041182008-09-05 Gustavo Noronha Silva <gns@gnome.org>
4119
4120 Reviewed by Alp Toker.
4121
4122 https://bugs.webkit.org/show_bug.cgi?id=18346
4123 [GTK] Remove build warnings
4124
4125 Applied some casts, and removed an unused typedef to make the
4126 compiler happy, printing less warnings when building.
4127
4128 * page/gtk/AccessibilityObjectWrapperAtk.cpp:
4129 * platform/graphics/gtk/SimpleFontDataPango.cpp:
4130 (WebCore::SimpleFontData::containsCharacters):
4131 * platform/graphics/gtk/VideoSinkGStreamer.cpp:
4132 (webkit_video_sink_set_caps):
4133 * platform/network/soup/ResourceHandleSoup.cpp:
4134
eric@webkit.org3cb292c2008-09-05 22:17:56 +000041352008-09-05 Eric Seidel <eric@webkit.org>
4136
eric@webkit.org5ac37902008-09-06 00:21:58 +00004137 Reviewed by Adam Roben.
4138
4139 Build fix for WebKitWin and Chromium
4140
4141 * platform/FileSystem.h:
4142
41432008-09-05 Eric Seidel <eric@webkit.org>
4144
eric@webkit.org3cb292c2008-09-05 22:17:56 +00004145 Reviewed by Darin Adler.
4146
4147 Try to make Chromium compile with ToT:
4148 - Wrap a few places which depend on KJS:: in #if USE(JSC)
4149 - Include some windows forward declarations
4150
4151 * dom/Node.h:
4152 * page/Console.h:
4153 * page/animation/CompositeAnimation.h:
4154 * platform/FileSystem.h:
4155 * platform/graphics/Image.h:
4156 * platform/text/AtomicString.h:
4157 * platform/text/String.cpp:
4158 * rendering/style/RenderStyle.h:
4159
hyatt@apple.comff85d5e2008-09-05 21:52:08 +000041602008-09-05 Dave Hyatt <hyatt@apple.com>
4161
4162 Add support for runtime switchability of the Aqua look and the native look on Windows.
4163 Make RenderThemeWin compile by default even when USE(SAFARI_THEME) is set.
4164
4165 Reviewed by Adam Roben
4166
4167 * WebCore.vcproj/WebCore.vcproj:
4168 * page/Settings.cpp:
4169 (WebCore::Settings::setShouldPaintNativeControls):
4170 * page/Settings.h:
4171 (WebCore::Settings::shouldPaintNativeControls):
4172 * rendering/RenderThemeSafari.cpp:
4173 (WebCore::theme):
4174 * rendering/RenderThemeWin.cpp:
4175
antti@apple.combced97f2008-09-05 18:52:05 +000041762008-09-05 Antti Koivisto <antti@apple.com>
4177
4178 Qt build fix.
4179
4180 * svg/SVGFEImageElement.cpp:
4181 (WebCore::SVGFEImageElement::build):
4182
aroben@apple.comca0c3362008-09-05 15:33:28 +000041832008-09-05 Dirk Schulze <vbs85@gmx.de>
4184
4185 Gtk build fix
4186
4187 * GNUmakefile.am:
4188
antti@apple.com72e4a842008-09-05 09:28:11 +000041892008-09-05 Antti Koivisto <antti@apple.com>
4190
antti@apple.com49e46662008-09-05 10:36:59 +00004191 Another build fix.
4192
4193 * svg/SVGFEImageElement.cpp:
4194 (WebCore::SVGFEImageElement::notifyFinished):
4195
41962008-09-05 Antti Koivisto <antti@apple.com>
4197
antti@apple.comfeec2582008-09-05 10:03:39 +00004198 Build fixes.
4199
4200 * WebCore.xcodeproj/project.pbxproj:
4201 * svg/graphics/filters/SVGFEImage.cpp:
4202 (WebCore::FEImage::cachedImage):
4203
42042008-09-05 Antti Koivisto <antti@apple.com>
4205
darin@apple.com07c80c62008-09-05 18:15:43 +00004206 Reviewed by Darin Adler.
antti@apple.com72e4a842008-09-05 09:28:11 +00004207
4208 Most of the implementation for https://bugs.webkit.org/show_bug.cgi?id=17998
4209 When a resource is cached locally, WebKit should follow RFC 2616 "Specific end-to-end revalidation" instead of "Unspecified end-to-end revalidation"
4210
4211 Implement HTTP 1.1 "Specific end-to-end revalidation" for WebCore memory cache. This patch does
4212 not yet enable it for the biggest use case, reloading. However it is good for general browsing as
4213 well. Doing this in WebCore level as opposed to relying on disk cache has big benefit that
4214 we avoid re-decoding resources, especially images.
4215
4216 To be exact the enabled case is not actually the "Specific end-to-end revalidation" since it does not include
4217 CacheControl: max-age=0 header. That would be added in reload case.
4218
4219 The approach for revalidation is to kick the original resource out from the memory cache
4220 and create a new CachedResource that represents the revalidation request. In case
4221 we get 304 back for the request we put the original resource back to the cache, update
4222 its expiration date and switch the clients registered to revalidation resource to be
4223 clients of the original resource.
4224
4225 All heap allocated CachedImage pointers now use CachedResourceHandle<CachedImage> (and so on) instead.
4226 This allows updating the handles to point to the original resource when the revalidation succeeds. It
4227 also acts as refcounting smart pointer.
4228
4229 * WebCore.pro:
4230 * WebCore.vcproj/WebCore.vcproj:
4231 * WebCore.xcodeproj/project.pbxproj:
4232 * css/CSSFontFaceSource.h:
4233 * css/CSSImportRule.h:
4234 * dom/Clipboard.h:
4235 (WebCore::Clipboard::dragImage):
4236 * dom/ProcessingInstruction.h:
4237 * dom/ScriptElement.h:
4238 * dom/XMLTokenizer.cpp:
4239 (WebCore::XMLTokenizer::isWaitingForScripts):
4240 * dom/XMLTokenizer.h:
4241 * html/HTMLImageLoader.cpp:
4242 (WebCore::HTMLImageLoader::setImage):
4243 (WebCore::HTMLImageLoader::updateFromElement):
4244 (WebCore::HTMLImageLoader::notifyFinished):
4245 * html/HTMLImageLoader.h:
4246 (WebCore::HTMLImageLoader::image):
4247 * html/HTMLLinkElement.h:
4248 * html/HTMLTokenizer.cpp:
4249 (WebCore::HTMLTokenizer::reset):
4250 (WebCore::HTMLTokenizer::scriptHandler):
4251 (WebCore::HTMLTokenizer::notifyFinished):
4252 * html/HTMLTokenizer.h:
4253 * loader/Cache.cpp:
4254 (WebCore::Cache::revalidateResource):
4255 (WebCore::Cache::revalidationSucceeded):
4256 (WebCore::Cache::revalidationFailed):
4257 * loader/Cache.h:
4258 * loader/CachedResource.cpp:
4259 (WebCore::CachedResource::CachedResource):
4260 (WebCore::CachedResource::~CachedResource):
4261 (WebCore::CachedResource::isExpired):
4262 (WebCore::CachedResource::setResponse):
4263 (WebCore::CachedResource::deleteIfPossible):
4264 (WebCore::CachedResource::setResourceToRevalidate):
4265 (WebCore::CachedResource::clearResourceToRevalidate):
4266 (WebCore::CachedResource::switchClientsToRevalidatedResource):
4267 (WebCore::CachedResource::canUseCacheValidator):
4268 (WebCore::CachedResource::mustRevalidate):
4269 * loader/CachedResource.h:
4270 (WebCore::CachedResource::canDelete):
4271 (WebCore::CachedResource::registerHandle):
4272 (WebCore::CachedResource::unregisterHandle):
4273 (WebCore::CachedResource::isCacheValidator):
4274 (WebCore::CachedResource::resourceToRevalidate):
4275 (WebCore::CachedResource::setExpirationDate):
4276 * loader/CachedResourceHandle.cpp: Added.
4277 (WebCore::CachedResourceHandleBase::setResource):
4278 * loader/CachedResourceHandle.h: Added.
4279 (WebCore::CachedResourceHandleBase::~CachedResourceHandleBase):
4280 (WebCore::CachedResourceHandleBase::get):
4281 (WebCore::CachedResourceHandleBase::operator!):
4282 (WebCore::CachedResourceHandleBase::operator UnspecifiedBoolType):
4283 (WebCore::CachedResourceHandleBase::CachedResourceHandleBase):
4284 (WebCore::CachedResourceHandleBase::operator=):
4285 (WebCore::CachedResourceHandle::CachedResourceHandle):
4286 (WebCore::CachedResourceHandle::get):
4287 (WebCore::CachedResourceHandle::operator->):
4288 (WebCore::CachedResourceHandle::operator=):
4289 (WebCore::CachedResourceHandle::operator==):
4290 (WebCore::CachedResourceHandle::operator!=):
4291 (WebCore::operator==):
4292 (WebCore::operator!=):
4293 * loader/DocLoader.cpp:
4294 (WebCore::DocLoader::checkForReload):
4295 * loader/UserStyleSheetLoader.h:
4296 * loader/loader.cpp:
4297 (WebCore::Loader::Host::servePendingRequests):
4298 (WebCore::Loader::Host::didFinishLoading):
4299 (WebCore::Loader::Host::didFail):
4300 (WebCore::Loader::Host::didReceiveResponse):
4301 (WebCore::Loader::Host::didReceiveData):
4302 * page/EventHandler.cpp:
4303 (WebCore::EventHandler::selectCursor):
4304 * rendering/RenderImage.cpp:
4305 (WebCore::RenderImage::setCachedImage):
4306 (WebCore::RenderImage::imageChanged):
4307 * rendering/RenderImage.h:
4308 (WebCore::RenderImage::cachedImage):
4309 (WebCore::RenderImage::imagePtr):
4310 * rendering/style/RenderStyle.h:
4311 * rendering/style/StyleCachedImage.h:
4312 (WebCore::StyleCachedImage::data):
4313 (WebCore::StyleCachedImage::cachedImage):
4314 * svg/SVGFEImageElement.h:
4315 * svg/graphics/filters/SVGFEImage.h:
4316 * xml/XSLImportRule.h:
4317
beidson@apple.comab60d982008-09-05 04:58:12 +000043182008-09-04 Brady Eidson <beidson@apple.com>
4319
4320 Reviewed by Mitz
4321
4322 <rdar://problem/6180236> - Safari times out connections after 1 or 2 minutes
4323
4324 A 60-second default timeout was added in http://trac.webkit.org/changeset/17144 in an attempt
4325 to model default NSURLRequest behavior in a cross-platform manner.
4326
4327 Sadly by always enforcing this 60 second timeout, WebCore was stomping over the wishes of any Webkit
4328 client that wished to enforce a much larger default timeout using NSURLRequest API.
4329
4330 Additionally, upon reviewing what all other browsers do, it seems apparent that "no limit" is desirable
4331 behavior on the web and this restores previous Safari/WebKit behavior.
4332
4333 It would be easy to write a layout test for this, but to be effective it would have
4334 to run for at least 61 seconds, which seems insane until will can parallelize run-webkit-tests
4335
4336 * manual-tests/timeout-test.html: Added.
4337 * manual-tests/timeout-test.php: Added.
4338
4339 * platform/network/ResourceRequestBase.h:
4340 (WebCore::ResourceRequestBase::ResourceRequestBase): Rename the constant to "unspecifiedTimeoutInterval"
4341 and make it UINT_MAX so platforms that do set it have an effective "no timeout." (Windows, for example)
4342 * platform/network/mac/ResourceRequestMac.mm:
4343 (WebCore::ResourceRequest::doUpdatePlatformRequest): If the timeout for this request is
4344 "unspecifiedTimeoutInterval", then don't bother setting the timeout using NSURLRequest API, allowing
4345 WebKit applications to enforce their own default timeout.
4346
mitz@apple.com20268542008-09-05 04:26:32 +000043472008-09-04 Dan Bernstein <mitz@apple.com>
4348
4349 Reviewed by Beth Dakin.
4350
4351 - fix <rdar://problem/6198514> Changing a button's opacity triggers relayout
4352
4353 Test: fast/repaint/button-spurious-layout-hint.html
4354
4355 * rendering/RenderButton.cpp:
4356 (WebCore::RenderButton::setStyle): Reset the inner block's style box
4357 flex to 0 to avoid getting a spurious layout hint.
4358
kevino@webkit.org3e8c4072008-09-04 23:53:04 +000043592008-09-04 Kevin Ollivier <kevino@theolliviers.com>
4360
4361 wx build fixes.
4362
4363 * WebCoreSources.bkl:
4364 * bindings/js/ScriptControllerWx.cpp: Added.
4365 (WebCore::ScriptController::createScriptInstanceForWidget):
4366 * page/wx/AccessibilityObjectWx.cpp: Added.
4367 (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
4368 * platform/graphics/wx/GraphicsContextWx.cpp:
4369 * webcore-base.bkl:
4370 * webcore-wx.bkl:
4371
mitz@apple.com95a87502008-09-04 23:27:19 +000043722008-09-04 Dan Bernstein <mitz@apple.com>
4373
4374 Reviewed by Mark Rowe.
4375
4376 - roll out r36050 because it made svg/custom/invalid-fill-hex.svg fail,
4377 and fixing https://bugs.webkit.org/show_bug.cgi?id=15360 appears to
4378 require a different approach
4379
4380 * css/CSSGrammar.y:
4381
mrowe@apple.com12b7c2d2008-09-04 21:00:02 +000043822008-09-04 Mark Rowe <mrowe@apple.com>
4383
mrowe@apple.com5bc4ea82008-09-04 21:44:28 +00004384 Reviewed by Eric Seidel.
4385
4386 Fix https://bugs.webkit.org/show_bug.cgi?id=20639.
4387 Bug 20639: ENABLE_DASHBOARD_SUPPORT does not need to be a FEATURE_DEFINE
4388
4389 * Configurations/WebCore.xcconfig: Remove ENABLE_DASHBOARD_SUPPORT from FEATURE_DEFINES.
4390 * DerivedSources.make: Revert to checking for ENABLE_DASHBOARD_SUPPORT rather than looking
4391 for ENABLE_DASHBOARD_SUPPORT in FEATURE_DEFINES.
4392
43932008-09-04 Mark Rowe <mrowe@apple.com>
4394
mrowe@apple.com12b7c2d2008-09-04 21:00:02 +00004395 Mac build fix.
4396
4397 * config.h: Only check the value of HAVE_CONFIG_H if it is defined.
4398
eric@webkit.org0716a542008-09-04 20:44:12 +000043992008-09-04 Eric Seidel <eric@webkit.org>
4400
4401 Build fix only, no review.
4402
4403 * dom/XMLTokenizer.cpp: Fix the Chromium merge build by adding a missing header (the Mac files must include it somewhere).
4404
jmalonzo@webkit.org6afc5d42008-09-04 20:26:16 +000044052008-09-04 Marco Barisione <marco.barisione@collabora.co.uk>
4406
4407 Reviewed by Eric Seidel.
4408
4409 http://bugs.webkit.org/show_bug.cgi?id=20380
4410 [GTK][AUTOTOOLS] Include autotoolsconfig.h from config.h
4411
4412 * config.h: Include the configuration header generated by autotools if
4413 available.
4414
mitz@apple.com9d7e4262008-09-04 18:15:25 +000044152008-09-04 Dan Bernstein <mitz@apple.com>
4416
4417 Rubber-stamped by Dave Hyatt.
4418
4419 - rename CachedResource::allReferencesRemoved() to allClientsRemoved()
4420
4421 * loader/CachedFont.cpp:
4422 (WebCore::CachedFont::allClientsRemoved):
4423 * loader/CachedFont.h:
4424 * loader/CachedImage.cpp:
4425 (WebCore::CachedImage::allClientsRemoved):
4426 * loader/CachedImage.h:
4427 * loader/CachedResource.cpp:
4428 (WebCore::CachedResource::removeClient):
4429 * loader/CachedResource.h:
4430 (WebCore::CachedResource::allClientsRemoved):
4431
aroben@apple.com0da404d2008-09-04 16:09:33 +000044322008-09-04 Adam Roben <aroben@apple.com>
4433
aroben@apple.comdd3861a2008-09-04 16:09:53 +00004434 Windows build fix after r36071
4435
4436 We were getting these errors:
4437
4438 error C2356: initialization segment must not change during translation
4439 unit
4440
4441 This was happening because multiple files #included by
4442 DerivedSources.cpp were themselves #including StaticConstructors.h. I
4443 fixed the error by adding header guards to StaticConstructors.h so its
4444 contents will only be included once.
4445
4446 But it's also not a good idea for StaticConstructors.h to end up in
4447 DerivedSources.cpp, since it ends up "polluting" all the source files
4448 we have in there. So I removed all the files that include
4449 StaticConstructors.h and added some preprocessor directives to
4450 DerivedSources.cpp to catch this error in the future.
4451
4452 * DerivedSources.cpp: Removed the *Names.cpp files, which include
4453 StaticConstructors.h, and added some preprocessor directives to make
4454 sure we don't end up accidentally including StaticConstructors.h in
4455 the future.
4456 * WebCore.vcproj/WebCore.vcproj: Added the *Names.cpp files.
4457 * platform/StaticConstructors.h: Added header guards.
4458
44592008-09-04 Adam Roben <aroben@apple.com>
4460
aroben@apple.com0da404d2008-09-04 16:09:33 +00004461 Windows build fix
4462
4463 * platform/graphics/win/FontPlatformData.h: Added a missing #include
4464 of PassRefPtr.h, and corrected the capitalization of RefCounted.h.
4465 * platform/text/PlatformString.h: Added a missing #include of
4466 PassRefPtr.h.
4467
vestbo@webkit.orgc0aeddf2008-09-04 11:44:17 +000044682008-09-04 Tor Arne Vestbø <tavestbo@trolltech.com>
4469
4470 Reviewed by Simon.
4471
vestbo@webkit.orgb82da912008-09-04 14:24:58 +00004472 Fix the QtWebKit build to match changes in r36016
4473
4474 * WebCore.pro:
4475 * bridge/qt/qt_instance.cpp:
4476 (KJS::Bindings::QtInstance::getRuntimeObject):
4477 * bridge/qt/qt_runtime.cpp:
4478 (KJS::Bindings::convertQVariantToValue):
4479 (KJS::Bindings::QtConnectionObject::execute):
4480
44812008-09-04 Tor Arne Vestbø <tavestbo@trolltech.com>
4482
4483 Reviewed by Simon.
4484
vestbo@webkit.orgc0aeddf2008-09-04 11:44:17 +00004485 Re-enable support for user stylesheets in QtWebKit
4486
4487 QtWebKit now follows the FRAME_LOADS_USER_STYLESHEET
4488 code path, which allows us to keep API support for
4489 loading user style sheets from remote URLs.
4490
4491 As part of the change UserStyleSheetLoader.cpp/h was
4492 moved from WebCore/loader/mac to WebCore/loader.
4493
4494 * WebCore.pro:
4495 * WebCore.xcodeproj/project.pbxproj:
4496 * dom/Document.h:
4497 * loader/UserStyleSheetLoader.cpp: Renamed from WebCore/loader/mac/UserStyleSheetLoader.cpp.
4498 (UserStyleSheetLoader::UserStyleSheetLoader):
4499 (UserStyleSheetLoader::~UserStyleSheetLoader):
4500 * loader/UserStyleSheetLoader.h: Renamed from WebCore/loader/mac/UserStyleSheetLoader.h.
4501 * page/qt/FrameQt.cpp:
4502 (WebCore::Frame::setUserStyleSheetLocation):
4503 (WebCore::Frame::setUserStyleSheet):
4504
alp@webkit.org539ff852008-09-04 09:14:42 +000045052008-09-04 Alp Toker <alp@nuanti.com>
4506
4507 Reviewed by Eric.
4508
4509 Remove left-over QT and CAIRO platform checks.
4510
4511 * html/CanvasRenderingContext2D.cpp:
4512
eric@webkit.orgbc0aab82008-09-04 08:39:51 +000045132008-09-04 Eric Seidel <eric@webkit.org>
4514
4515 Reviewed by Mark Rowe.
4516
mitz@apple.com9388d252008-09-04 08:58:58 +00004517 Fix leak of TextMetrics due to over-ref as see on buildbot.
eric@webkit.orgbc0aab82008-09-04 08:39:51 +00004518
4519 * html/TextMetrics.h: use adoptRef since RefCounted starts @ refcount 1 instead of 0 now.
4520
mitz@apple.com89557c52008-09-04 07:26:53 +000045212008-09-04 Dan Bernstein <mitz@apple.com>
4522
4523 Reviewed by Dave Hyatt.
4524
4525 - fix https://bugs.webkit.org/show_bug.cgi?id=19717
4526 <rdar://problem/6026832> REGRESSION (r31876): menu items render horizontally at the Economist
4527
4528 * rendering/RenderBlock.cpp:
4529 (WebCore::RenderBlock::layoutOnlyPositionedObjects): In the
4530 positioned movement only case, call
4531 tryLayoutDoingPositionedMovementOnly() and fall back on doing a full
4532 layout if that fails.
4533 (WebCore::RenderBlock::layoutPositionedObjects): Ditto.
4534 * rendering/RenderBox.h:
4535 (WebCore::RenderBox::tryLayoutDoingPositionedMovementOnly): Renamed
4536 layoutDoingPositionedMovementOnly to this, and made this function
4537 check if the width changed. If it did, return, leaving the object
4538 dirty. The caller can then call layout(). The width can change even
4539 in the "positioned movement only" case if the object is shrink-to-fit
4540 and the available width constraint is met. (This was the case in the
4541 bug).
4542 * rendering/RenderObject.h:
4543 (WebCore::RenderObject::tryLayoutDoingPositionedMovementOnly):
4544 Renamed layoutDoingPositionedMovementOnly() to this.
4545
eric@webkit.org8883b4a2008-09-04 06:31:37 +000045462008-09-03 Eric Seidel <eric@webkit.org>
4547
4548 No review, build fix only.
4549
4550 Attempt to fix the Qt build.
4551
4552 * WebCore.pro: add page/animation to include path
4553
mrowe@apple.comaa4bb8d2008-09-04 03:20:30 +000045542008-09-03 Mark Rowe <mrowe@apple.com>
4555
4556 Mac build fix. Correctly detect whether dashboard support is enabled.
4557
4558 * DerivedSources.make:
4559
eric@webkit.org3eefe672008-09-04 01:32:26 +000045602008-09-03 Eric Seidel <eric@webkit.org>
4561
4562 Reviewed by Sam.
4563
eric@webkit.org5e069092008-09-04 01:32:51 +00004564 Clean up Platform.h and add PLATFORM(CHROMIUM), PLATFORM(SKIA) and USE(V8_BINDINGS)
4565
4566 * Configurations/WebCore.xcconfig: add missing ENABLE_*
4567 * config.h: add rules for V8_BINDINGS
4568
45692008-09-03 Eric Seidel <eric@webkit.org>
4570
4571 Reviewed by Sam.
4572
eric@webkit.org3eefe672008-09-04 01:32:26 +00004573 https://bugs.webkit.org/show_bug.cgi?id=20620
4574
4575 Add #if USE(JSC) around KJS dependencies
4576 Remove !USE(JAVASCRIPTCORE_BINDINGS) support for 3 reasons:
4577 1. Most platforms have it on anyway
4578 2. V8 is going to want to share some of that code
4579 3. Those platforms which want it off, should have a separate file instead of an #ifdef in our .cpp
4580
4581 * bindings/js/JSPluginElementFunctions.cpp: remove !USE(JAVASCRIPTCORE_BINDINGS) support
4582 * config.h: change JAVASCRIPTCORE_BINDINGS to JSC and add USE(V8)
4583 * html/HTMLAppletElement.cpp: remove USE(JAVASCRIPTCORE_BINDINGS) wrappers
4584 * html/HTMLAppletElement.h: remove USE(JAVASCRIPTCORE_BINDINGS) wrappers
4585 * html/HTMLEmbedElement.cpp: remove USE(JAVASCRIPTCORE_BINDINGS) wrappers
4586 * html/HTMLEmbedElement.h: remove USE(JAVASCRIPTCORE_BINDINGS) wrappers
4587 * html/HTMLObjectElement.cpp: remove USE(JAVASCRIPTCORE_BINDINGS) wrappers
4588 * html/HTMLObjectElement.h: remove USE(JAVASCRIPTCORE_BINDINGS) wrappers
4589 * html/HTMLPlugInElement.cpp: replace USE(JAVASCRIPTCORE_BINDINGS) with USE(JSC) where needed
4590 * html/HTMLPlugInElement.h: replace USE(JAVASCRIPTCORE_BINDINGS) with USE(JSC) where needed
4591 * platform/text/AtomicString.cpp: add USE(JSC)
4592 * platform/text/AtomicString.h: add USE(JSC)
4593 * platform/text/PlatformString.h: add USE(JSC)
4594 * platform/text/String.cpp: add USE(JSC)
4595 * platform/text/StringImpl.cpp: add USE(JSC)
4596 * platform/text/StringImpl.h: add USE(JSC)
4597
mrowe@apple.comfbe724c2008-09-03 23:46:54 +000045982008-09-03 Dean McNamee <deanm@chromium.org>
4599
4600 Reviewed by Darin Adler.
4601
4602 Fix https://bugs.webkit.org/show_bug.cgi?id=20511
4603 Bug 20511: Remove static initializers on Windows
4604
4605 Avoid static initializers on Windows by forcing Visual C++ to put
4606 all static initializers in a code segment that is never executed.
4607
4608 * config.h:
4609 * css/MediaFeatureNames.cpp:
4610 * dom/EventNames.cpp:
4611 * dom/QualifiedName.cpp:
4612 * dom/make_names.pl:
4613 * platform/StaticConstructors.h:
4614 * platform/text/AtomicString.cpp:
4615
mrowe@apple.com3aa63182008-09-03 23:40:49 +000046162008-09-03 Dirk Schulze <vbs85@gmx.de>
4617
4618 Reviewed by Dave Hyatt.
4619
4620 Make FontCairo draw TextStroke and TextFill separately.
4621
4622 [CAIRO] draw TextFill and TextStroke separately.
4623 [https://bugs.webkit.org/show_bug.cgi?id=20631]
4624
4625 * platform/graphics/cairo/FontCairo.cpp:
4626 (WebCore::Font::drawGlyphs):
4627
eric@webkit.org4ac94e62008-09-18 23:07:55 +000046282008-09-03 Peter Kasting <pkasting@google.com>
mrowe@apple.comdcd72b72008-09-03 23:34:40 +00004629
4630 Reviewed by Dave Hyatt.
4631
4632 https://bugs.webkit.org/show_bug.cgi?id=19663
4633 Account for paint and timer lag when animating images. Also pretend
4634 that images whose animations were paused (by becoming invisible)
4635 continued to animate, by "catching up" to the correct frame when they're
4636 shown again.
4637
4638 * platform/graphics/BitmapImage.cpp:
4639 (WebCore::BitmapImage::BitmapImage):
4640 (WebCore::BitmapImage::startAnimation):
4641 (WebCore::BitmapImage::advanceAnimation):
4642 (WebCore::BitmapImage::internalAdvanceAnimation):
4643 (WebCore::BitmapImage::notifyObserverAndTrimDecodedData):
4644 * platform/graphics/BitmapImage.h:
4645 * platform/graphics/cairo/ImageCairo.cpp:
4646 (WebCore::BitmapImage::draw):
4647 * platform/graphics/cg/ImageCG.cpp:
4648 (WebCore::BitmapImage::draw):
4649 * platform/graphics/qt/ImageQt.cpp:
4650 (WebCore::BitmapImage::draw):
4651 * platform/graphics/wx/ImageWx.cpp:
4652 (WebCore::BitmapImage::draw):
4653
kmccullough@apple.comb0f4c622008-09-03 21:53:17 +000046542008-09-03 Kevin McCullough <kmccullough@apple.com>
4655
4656 Reviewed by Tim.
4657
4658 Remove the rest of the "zombie" code from the profiler.
4659 - There is no longer a need for the ProfilerClient callback mechanism.
4660
4661 * page/Console.cpp:
4662 (WebCore::Console::Console):
4663 (WebCore::Console::profile):
4664 (WebCore::Console::profileEnd): Move the variables from the header to
4665 here since we don't have to wait for a callback to use them.
4666 * page/Console.h:
4667 * page/InspectorController.cpp:
4668 (WebCore::InspectorController::startUserInitiatedProfiling):
4669 (WebCore::InspectorController::stopUserInitiatedProfiling):
4670 * page/InspectorController.h:
4671
adachan@apple.com38c66182008-09-03 21:43:44 +000046722008-09-03 Ada Chan <adachan@apple.com>
4673
4674 Windows build fix.
4675
4676 * WebCore.vcproj/WebCore.vcproj: Added JSWebKitCSSKeyframeRule.cpp and JSWebKitCSSKeyframesRule.cpp to the project.
4677
dino@apple.com5c917622008-09-03 21:15:53 +000046782008-09-01 Dean Jackson <dino@apple.com>
4679
4680 Reviewed by Dave Hyatt.
4681
4682 https://bugs.webkit.org/show_bug.cgi?id=20594
4683 Add DOM interfaces for WebKitCSSKeyframeRule
4684 and WebKitCSSKeyframesRule.
4685
4686 TEST: LayoutTests/css3/keyframes-rule.html
4687
4688 * css/WebKitCSSKeyframeRule.idl: Added
4689 * css/WebKitCSSKeyframesRule.idl: Added
4690
4691 * bindings/js/JSCSSRuleCustom.cpp:
4692 (WebCore::toJS):
4693 Add return of new JS Keyframe rules
4694 * bindings/objc/DOMInternal.h:
4695 Include new internal header
4696
4697 * DerivedSources.make:
4698 * GNUmakefile.am:
4699 * WebCore.pro:
4700 * WebCore.vcproj/WebCore.vcproj:
4701 * WebCore.xcodeproj/project.pbxproj:
4702 * WebCoreSources.bkl:
4703 Build configs for new files
4704
aroben@apple.com1f51bfa2008-09-03 20:30:59 +000047052008-09-03 Adam Roben <aroben@apple.com>
4706
4707 Windows build fix
4708
4709 * DerivedSources.cpp: Add JSTextMetrics.cpp to fix the build.
4710 * WebCore.vcproj/WebCore.vcproj: Add JSTextMetrics.h for
4711 convenience/consistency.
4712
adele@apple.com27713582008-09-03 20:13:41 +000047132008-09-03 Adele Peterson <adele@apple.com>
4714
4715 Build fix.
4716
4717 * WebCore.vcproj/WebCore.vcproj:
4718
hyatt@apple.com4b38ed82008-09-03 18:32:05 +000047192008-09-03 David Hyatt <hyatt@apple.com>
4720
4721 Fix for bug 18203, right floats should be allowed to overflow past the left border edge.
4722
4723 Reviewed by Darin (ages ago)
4724
4725 Added fast/block/float/clamped-right-float.html
4726
4727 * rendering/RenderBlock.cpp:
4728 (WebCore::RenderBlock::positionNewFloats):
4729
hyatt@apple.comafe62052008-09-03 18:13:39 +000047302008-09-02 David Hyatt <hyatt@apple.com>
4731
4732 Add support for canvas text drawing APIs.
4733
4734 Reviewed by olliej
4735
4736 Tests added as fast/canvas/canvas-text-*.html
4737
4738 * DerivedSources.make:
4739 * WebCore.xcodeproj/project.pbxproj:
4740 * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
4741 (WebCore::JSCanvasRenderingContext2D::fillText):
4742 (WebCore::JSCanvasRenderingContext2D::strokeText):
4743 * css/CSSStyleSelector.cpp:
4744 (WebCore::CSSStyleSelector::initForStyleResolve):
4745 (WebCore::CSSStyleSelector::applyPropertyToStyle):
4746 * css/CSSStyleSelector.h:
4747 * html/CanvasRenderingContext2D.cpp:
4748 (WebCore::CanvasRenderingContext2D::State::State):
4749 (WebCore::CanvasRenderingContext2D::font):
4750 (WebCore::CanvasRenderingContext2D::setFont):
4751 (WebCore::CanvasRenderingContext2D::textAlign):
4752 (WebCore::CanvasRenderingContext2D::setTextAlign):
4753 (WebCore::CanvasRenderingContext2D::textBaseline):
4754 (WebCore::CanvasRenderingContext2D::setTextBaseline):
4755 (WebCore::CanvasRenderingContext2D::fillText):
4756 (WebCore::CanvasRenderingContext2D::strokeText):
4757 (WebCore::CanvasRenderingContext2D::measureText):
4758 (WebCore::CanvasRenderingContext2D::drawTextInternal):
4759 (WebCore::CanvasRenderingContext2D::accessFont):
4760 * html/CanvasRenderingContext2D.h:
4761 * html/CanvasRenderingContext2D.idl:
4762 * html/TextMetrics.h: Added.
4763 (WebCore::TextMetrics::create):
4764 (WebCore::TextMetrics::width):
4765 (WebCore::TextMetrics::setWidth):
4766 (WebCore::TextMetrics::TextMetrics):
4767 * html/TextMetrics.idl: Added.
4768 * platform/graphics/Font.cpp:
4769 (WebCore::Font::lineGap):
4770 * platform/graphics/Font.h:
4771 * platform/graphics/GraphicsContext.cpp:
4772 (WebCore::GraphicsContext::drawBidiText):
4773 * platform/graphics/GraphicsContext.h:
4774 * platform/graphics/GraphicsTypes.cpp:
4775 (WebCore::textAlignName):
4776 (WebCore::parseTextAlign):
4777 (WebCore::textBaselineName):
4778 (WebCore::parseTextBaseline):
4779 * platform/graphics/GraphicsTypes.h:
4780 (WebCore::):
4781
sullivan@apple.combc066af2008-09-03 17:37:24 +000047822008-09-03 John Sullivan <sullivan@apple.com>
4783
4784 Fixed <rdar://problem/6193022> <rdar://problem/6193022> Crash occurs at WebCore::AnimationBase::propertiesEqual () after certain steps
4785
4786 Fixed by Darin, reviewed by me
4787
4788 * page/animation/AnimationBase.cpp:
4789 (WebCore::AnimationBase::propertiesEqual):
4790 added ensurePropertyMap() to this static function
4791 (WebCore::AnimationBase::getPropertyAtIndex):
4792 ditto
4793 (WebCore::AnimationBase::getNumProperties):
4794 ditto
4795
kmccullough@apple.com70168ee2008-09-03 17:35:42 +000047962008-09-03 Kevin McCullough <kmccullough@apple.com>
4797
4798 Reviewed by Darin and Tim.
4799
4800 Remove most of the "zombie" mode from the profiler. Next we will need
4801 to remove the client callback mechanism in profiles.
4802 - These changes are a result of changes to JSCore.
4803
4804 * manual-tests/inspector/profiler-test-nested-start-and-stop-profiler.html:
4805 * page/Console.cpp:
4806 (WebCore::retrieveLastCaller):
4807 (WebCore::Console::profileEnd):
4808 * page/InspectorController.cpp:
4809 (WebCore::InspectorController::stopUserInitiatedProfiling):
4810
adele@apple.com643616b2008-09-03 16:57:58 +000048112008-09-03 Adele Peterson <adele@apple.com>
4812
4813 Reviewed by Darin Adler.
4814
4815 Test: fast/forms/search-display-none-cancel-button.html
4816
4817 Allow display:none to work on a search field's cancel button. Prepare for adding more style-ability for the results button too.
4818
4819 * css/html4.css: Set display:inline-block for these buttons. Now they can be overridden by a web author.
4820
4821 * rendering/RenderTextControl.cpp:
4822 (WebCore::RenderTextControl::setStyle): Add nil checks for the button renderers.
4823 (WebCore::RenderTextControl::createResultsButtonStyle): Don't set the display explicitly. This is now done in html4.css.
4824 (WebCore::RenderTextControl::createCancelButtonStyle): ditto.
4825 (WebCore::RenderTextControl::createSubtreeIfNeeded):
4826 Reorganize this code so our complicated way of adding shadow nodes is abstracted out into the TextControlInnerElement class.
4827 (WebCore::RenderTextControl::updateFromElement): Added nil checks for the button renderers.
4828 (WebCore::RenderTextControl::subtreeHasChanged): ditto.
4829 (WebCore::RenderTextControl::calcHeight): ditto.
4830 (WebCore::RenderTextControl::nodeAtPoint): ditto.
4831 (WebCore::RenderTextControl::layout): ditto.
4832 (WebCore::RenderTextControl::calcPrefWidths): ditto.
4833 (WebCore::RenderTextControl::clientPaddingLeft): ditto.
4834 (WebCore::RenderTextControl::clientPaddingRight): ditto.
4835
4836 * rendering/TextControlInnerElements.cpp:
4837 (WebCore::RenderTextControlInnerBlock::RenderTextControlInnerBlock): Moved from RenderTextControl.cpp.
4838 (WebCore::RenderTextControlInnerBlock::nodeAtPoint): ditto.
4839 (WebCore::TextControlInnerElement::attachInnerElement): Added.
4840 This does all the separate steps of attaching a shadow node that used to be repeated in RenderTextControl::createSubtreeIfNeeded for each element.
4841 (WebCore::TextControlInnerTextElement::createRenderer): Added. Creates a RenderTextControlInnerBlock.
4842 * rendering/TextControlInnerElements.h:
4843
ap@webkit.orgacd84142008-09-03 08:08:19 +000048442008-08-28 Alexey Proskuryakov <ap@webkit.org>
4845
4846 Reviewed by Maciej.
4847
4848 Elminate SQLiteAuthorizer class.
4849
4850 * WebCore.xcodeproj/project.pbxproj:
4851 * WebCore.vcproj/WebCore.vcproj:
4852 * GNUmakefile.am
4853 Removed SQLiteAuthorizer.h.
4854
4855 * platform/sql/SQLiteAuthorizer.cpp:
4856 * platform/sql/SQLiteAuthorizer.h: Removed.
4857 * platform/sql/SQLiteDatabase.cpp:
4858 (WebCore::SQLiteDatabase::authorizerFunction):
4859 (WebCore::SQLiteDatabase::setAuthorizer):
4860 * platform/sql/SQLiteDatabase.h:
4861 * storage/DatabaseAuthorizer.h:
4862 (WebCore::DatabaseAuthorizer::create):
4863 (WebCore::DatabaseAuthorizer::createView):
4864 (WebCore::DatabaseAuthorizer::createTempView):
4865 (WebCore::DatabaseAuthorizer::dropView):
4866 (WebCore::DatabaseAuthorizer::dropTempView):
4867 (WebCore::DatabaseAuthorizer::allowSelect):
4868 (WebCore::DatabaseAuthorizer::allowReindex):
4869 Merge SQLiteAuthorizer and DatabaseAuthorizer, as keeping them separate serves no purpose.
4870
mrowe@apple.com2ecd4862008-09-03 07:05:48 +000048712008-09-03 Dirk Schulze <vbs85@gmx.de>
4872
4873 Reviewed by Mark Rowe.
4874
4875 WebKitGtk build fix.
4876
4877 * GNUmakefile.am:
4878 * page/animation/AnimationController.h:
4879
mrowe@apple.come344ad02008-09-03 06:59:03 +000048802008-09-02 Robert Blaut <webkit@blaut.biz>
4881
4882 Reviewed by Geoff Garen.
4883
4884 Fix for <https://bugs.webkit.org/show_bug.cgi?id=16913>
4885 Misplaced elements should not close DL lists.
4886
4887 Test: fast/invalid/test-case-tr-th-td-should-not-close-dl-list.html
4888
4889 * html/HTMLParser.cpp:
4890 (WebCore::HTMLParser::handleError):
4891
mrowe@apple.com7a909462008-09-03 06:51:31 +000048922008-09-02 Glenn Wilson <wilsong@gmail.com>
4893
4894 Reviewed by Darin Adler.
4895
4896 Fix for <https://bugs.webkit.org/show_bug.cgi?id=15360>
4897 Bug 15360: color:#{predefined colorName} is treated as colorName in Safari
4898
4899 We would inappropriately interpret and apply an invalid CSS "color" property
4900 when the value is a predefined color preceded by a '#' symbol. For example,
4901 style="color:#gray;" would apply the color gray when it should not.
4902
4903 In the bison template, "hexcolor" was defined as both "HEX maybe_space" OR "IDENT maybe_space".
4904 This caused identifiers not fitting the appropriate hex format but preceded by a '#' to be
4905 interpreted as a valid color (CSSPrimitiveValue::CSS_PARSER_HEXCOLOR), when it was really just
4906 an ignorable token.
4907
4908 To correct this, "IDENT maybe_space" was removed from "hexcolor" and added under "term" as
4909 '#' IDENT maybe_space, which is then processed as a CSSPrimitiveValue::CSS_STRING instead of
4910 CSSPrimitiveValue::CSS_PARSER_HEXCOLOR.
4911
4912 Test: css1/color_and_background/invalid_color.html
4913
4914 * css/CSSGrammar.y:
4915
mrowe@apple.comda9a1442008-09-03 06:22:12 +000049162008-09-02 Mihnea Ovidenie <mihnea@adobe.com>
4917
4918 Reviewed by Darin Adler.
4919
4920 Fix for https://bugs.webkit.org/show_bug.cgi?id=19964
4921 Bug 19964: Divide by zero crash in RenderBox::calculateBackgroundSize with 0,0 bmp background image
4922
4923 Add a check to RenderBox::repaintLayerRectsForImage to make sure the current layer image can be rendered.
4924
4925 Test: css3/khtml-background-size-0x0-bmp.html
4926
4927 * rendering/RenderBox.cpp:
4928 (WebCore::RenderBox::repaintLayerRectsForImage):
4929
mrowe@apple.com6625ae52008-09-03 06:12:30 +000049302008-09-02 Glenn Wilson <wilsong@gmail.com>
4931
4932 Reviewed by Eric Seidel.
4933
4934 Fix https://bugs.webkit.org/show_bug.cgi?id=20397
4935 Bug 20397: Invalid webkit-border-bottom-left-radius property causes crash
4936
4937 The function checkForOrphanedUnits() would change the length of a list whose size was
4938 was already determined before the call to checkForOrphanedUnits was made. Later in
4939 the caller, the old size was being used for boundary management.
4940
4941 This has been fixed by moving the call to checkForOrphanedUnits() earlier in the
4942 calling function, before the size of the list is determined.
4943
4944 Test: fast/css/orphaned_units_crash.html
4945
4946 * css/CSSParser.cpp:
4947 (WebCore::CSSParser::parseValue): Moved call to checkForOrphanedUnits() earlier in the function.
4948
mrowe@apple.com170bd522008-09-03 05:49:51 +000049492008-09-02 Dirk Schulze <vbs85@gmx.de>
4950
4951 Reviewed by Darin Adler.
4952
mrowe@apple.comeb877a52008-09-03 06:01:15 +00004953 Fallback on invalid fill or stroke styles in Canvas was
4954 transparent black. Changed it to last valid style.
4955
4956 Canvas fillStyle() and strokeStyle() needs fallback
4957 https://bugs.webkit.org/show_bug.cgi?id=20474
4958
4959 Tests: fast/canvas/canvas-invalid-fillstyle.html
4960 fast/canvas/canvas-invalid-strokestyle.html
4961
4962 * html/CanvasStyle.cpp:
4963 (WebCore::CanvasStyle::applyStrokeColor):
4964 (WebCore::CanvasStyle::applyFillColor):
4965
49662008-09-02 Dirk Schulze <vbs85@gmx.de>
4967
4968 Reviewed by Darin Adler.
4969
mrowe@apple.com170bd522008-09-03 05:49:51 +00004970 Fix https://bugs.webkit.org/show_bug.cgi?id=20468
4971 Updated drawImage() in canvas to match the current specification.
4972
4973 Test: fast/canvas/drawImage-with-negative-source-destination.html
4974
4975 * html/CanvasRenderingContext2D.cpp:
4976 (WebCore::normalizeRect):
4977 (WebCore::CanvasRenderingContext2D::drawImage):
4978
mrowe@apple.com96916d12008-09-03 05:41:44 +000049792008-08-26 Mark Rowe <mrowe@apple.com>
4980
4981 Reviewed by Darin Adler.
4982
4983 <rdar://problem/5768210> Switch back to the system version of SQLite
4984
4985 Use the system version of SQLite when it is new enough to provide the functionality
4986 that WebCore requires.
4987
4988 * Configurations/Base.xcconfig:
4989 * Configurations/DebugRelease.xcconfig:
4990 * Configurations/WebCore.xcconfig:
4991
mitz@apple.comce268c12008-09-03 02:59:00 +000049922008-09-02 Dan Bernstein <mitz@apple.com>
4993
4994 - build fix
4995
4996 * page/animation/AnimationBase.h:
4997
dino@apple.com7e49a7a2008-09-03 01:32:14 +000049982008-09-02 Chris Marrin <cmarrin@apple.com>
4999
5000 Reviewed by Dave Hyatt.
5001
5002 AnimationController.cpp should be split into separate files
5003 https://bugs.webkit.org/show_bug.cgi?id=20604
5004
5005 Note: All makefiles, except WebCore.xcodeproj have been changed without testing, upon
5006 recommendation of Dave Hyatt.
5007
5008 * GNUmakefile.am:
5009 * WebCore.pro:
5010 * WebCore.vcproj/WebCore.vcproj:
5011 * WebCore.xcodeproj/project.pbxproj:
5012 * WebCoreSources.bkl:
5013 Build files.
5014
5015 * page/AnimationController.cpp: Removed.
5016 * page/AnimationController.h: Removed.
5017 * page/animation: Added.
5018 * page/animation/AnimationBase.cpp: Added.
5019 * page/animation/AnimationBase.h: Added.
5020 * page/animation/AnimationController.cpp: Copied from WebCore/page/AnimationController.cpp.
5021 * page/animation/AnimationController.h: Copied from WebCore/page/AnimationController.h.
5022 * page/animation/CompositeAnimation.cpp: Added.
5023 * page/animation/CompositeAnimation.h: Added.
5024 * page/animation/ImplicitAnimation.cpp: Added.
5025 * page/animation/ImplicitAnimation.h: Added.
5026 * page/animation/KeyframeAnimation.cpp: Added.
5027 * page/animation/KeyframeAnimation.h: Added.
5028
mitz@apple.comcb917a22008-09-03 00:57:37 +000050292008-09-02 Dan Bernstein <mitz@apple.com>
5030
5031 - release build fix
5032
5033 * platform/graphics/cg/GraphicsContextCG.cpp:
5034 (WebCore::calculateDrawingMode):
5035
timothy@apple.comf3aa7342008-09-02 21:30:26 +000050362008-09-02 Timothy Hatcher <timothy@apple.com>
5037
timothy@apple.comc33ff3c2008-09-02 21:35:02 +00005038 Make console functions log the correct resource URL and
5039 line number for where the call originated.
5040
5041 https://bugs.webkit.org/show_bug.cgi?id=17234
5042 <rdar://problem/5732837>
5043
5044 Reviewed by Kevin McCullough.
5045
5046 Test: manual-tests/inspector/console-call-line-numbers.html
5047
5048 * bindings/js/JSConsoleCustom.cpp:
5049 (WebCore::JSConsole::count): Call the impl.
5050 (WebCore::JSConsole::timeEnd): Ditto.
5051 * manual-tests/inspector/console-call-line-numbers.html: Added.
5052 * manual-tests/inspector/resources/script-console-calls.js: Added.
5053 * page/Console.cpp:
5054 (WebCore::retrieveLastCaller): Helper to get the URL and line.
5055 (WebCore::Console::error): Call retrieveLastCaller to get the URL and
5056 line number to pass to addMessageToConsole.
5057 (WebCore::Console::info): Ditto.
5058 (WebCore::Console::log): Ditto.
5059 (WebCore::Console::assertCondition): Ditto.
5060 (WebCore::Console::count): Ditto.
5061 (WebCore::Console::timeEnd): Ditto.
5062 (WebCore::Console::warn): Ditto.
5063 * page/Console.h:
5064 * page/Console.idl: Make count and timeEnd custom.
5065
50662008-09-02 Timothy Hatcher <timothy@apple.com>
5067
timothy@apple.comf3aa7342008-09-02 21:30:26 +00005068 Removed IDL files from WebCore's framework resources.
5069
5070 * WebCore.xcodeproj/project.pbxproj:
5071
mitz@apple.comfb6ad392008-09-02 20:39:29 +000050722008-09-02 Dan Bernstein <mitz@apple.com>
5073
5074 Reviewed by Dave Hyatt.
5075
5076 - <rdar://problem/5681647> pages at http://www.stendmarsofa.com/ are so slow to calculate style it seems like a hang
5077
5078 * html/HTMLParser.cpp:
5079 (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks): Added a
5080 cap on the number of consecutive identical residual style tags to
5081 reopen.
5082 (WebCore::HTMLParser::popBlock): Ditto.
5083
ap@webkit.org879328b2008-09-02 16:16:06 +000050842008-09-02 Alexey Proskuryakov <ap@webkit.org>
5085
5086 Reviewed by Adam Roben.
5087
5088 A little database quota management cleanup.
5089
5090 * storage/OriginQuotaManager.cpp:
5091 (WebCore::OriginQuotaManager::OriginQuotaManager):
5092 (WebCore::OriginQuotaManager::lock):
5093 (WebCore::OriginQuotaManager::unlock):
5094 (WebCore::OriginQuotaManager::trackOrigin):
5095 (WebCore::OriginQuotaManager::tracksOrigin):
5096 (WebCore::OriginQuotaManager::addDatabase):
5097 (WebCore::OriginQuotaManager::removeDatabase):
5098 (WebCore::OriginQuotaManager::removeOrigin):
5099 (WebCore::OriginQuotaManager::markDatabase):
5100 (WebCore::OriginQuotaManager::diskUsage):
5101 * storage/OriginQuotaManager.h:
5102 Changed to assert that a lock is taken more directly and reliably. Removed comments about
5103 main/background threads, as this is likely to stop being true with synchronous Database calls
5104 being made on worker threads.
5105
5106 * storage/OriginUsageRecord.cpp:
5107 (WebCore::OriginUsageRecord::OriginUsageRecord):
5108 (WebCore::OriginUsageRecord::addDatabase):
5109 (WebCore::OriginUsageRecord::removeDatabase):
5110 (WebCore::OriginUsageRecord::markDatabase):
5111 (WebCore::OriginUsageRecord::diskUsage):
5112 * storage/OriginUsageRecord.h:
5113 (WebCore::OriginUsageRecord::DatabaseEntry::DatabaseEntry):
5114 Don't use a magic value for unknown. It is totally unnecessary for DatabaseEntry, and
5115 can be replaced with a single boolean for OriginUsageRecord.
5116 Added assertions for string parameters being unshared.
5117
5118
abarth@webkit.orgaea97a02008-09-02 04:26:15 +000051192008-09-01 Adam Barth <abarth@webkit.org>
5120
5121 Reviewed by Sam Weinig.
5122
5123 https://bugs.webkit.org/show_bug.cgi?id=19760
5124
5125 Make granting LoadLocalResources conditional on a policy.
5126
5127 * WebCore.base.exp:
5128 * dom/Document.cpp:
5129 (WebCore::Document::initSecurityContext):
5130 * loader/FrameLoader.cpp:
5131 (WebCore::FrameLoader::setLocalLoadPolicy):
5132 (WebCore::FrameLoader::restrictAccessToLocal):
5133 * loader/FrameLoader.h:
5134 (WebCore::FrameLoader::):
5135 * platform/SecurityOrigin.cpp:
5136 (WebCore::SecurityOrigin::grantLoadLocalResources):
5137 * platform/SecurityOrigin.h:
5138
dino@apple.com6e2db502008-09-01 23:05:28 +000051392008-09-01 Dean Jackson <dino@apple.com>
5140
dino@apple.com59ca9f52008-09-01 23:34:13 +00005141 Reviewed by Sam Weinig.
5142
5143 https://bugs.webkit.org/show_bug.cgi?id=20571
5144 Make sure Window object can assign Animation/Transition event
5145 listeners via attributes.
5146
5147 Also added a bunch of transition event tests, although
5148 only transition-end-event-window is directly relevant to this patch.
5149
5150 (WebCore::JSDOMWindowBase::put):
5151
5152 Tests: transitions/transition-end-event-all-properties.html
5153 transitions/transition-end-event-attributes.html
5154 transitions/transition-end-event-container.html
5155 transitions/transition-end-event-left.html
5156 transitions/transition-end-event-multiple-01.html
5157 transitions/transition-end-event-multiple-02.html
5158 transitions/transition-end-event-multiple-03.html
5159 transitions/transition-end-event-multiple-04.html
5160 transitions/transition-end-event-nested.html
5161 transitions/transition-end-event-transform.html
5162 transitions/transition-end-event-window.html
5163
51642008-09-01 Dean Jackson <dino@apple.com>
5165
dino@apple.com6e2db502008-09-01 23:05:28 +00005166 Reviewed by Sam Weinig
5167
5168 Code styling cleanup.
5169
5170 * bindings/js/JSDOMWindowBase.cpp:
5171 (WebCore::JSDOMWindowBase::getValueProperty):
5172 (WebCore::JSDOMWindowBase::put):
5173
weinig@apple.com3412bb42008-09-01 21:22:54 +000051742008-09-01 Geoffrey Garen <ggaren@apple.com>
5175
5176 Reviewed by Darin Adler.
5177
5178 First cut at inline caching for access to vanilla JavaScript properties.
5179
5180 Updated for JavaScriptCore changes. Mostly mechanical addition of StructureIDs
5181 to WebCore classes, and PutPropertySlot& arguments to put functions.
5182
5183 (WebCore::JSCSSStyleDeclaration::customPut): Be sure to play nice with
5184 inline caching for global properties, so global assignment can be optimized.
5185
5186 * ForwardingHeaders/kjs/StructureID.h: Added.
5187 * bindings/js/JSDOMBinding.h:
5188 (WebCore::DOMObject::DOMObject):
5189 * bindings/js/JSDOMWindowBase.cpp:
5190 (WebCore::JSDOMWindowBase::put):
5191 * bindings/js/JSDOMWindowBase.h:
5192 * bindings/js/JSDOMWindowCustom.h:
5193 (WebCore::JSDOMWindow::customPut):
5194 * bindings/js/JSDOMWindowShell.cpp:
5195 (WebCore::JSDOMWindowShell::JSDOMWindowShell):
5196 (WebCore::JSDOMWindowShell::put):
5197 * bindings/js/JSDOMWindowShell.h:
5198 * bindings/js/JSEventTargetBase.h:
5199 (WebCore::JSEventTargetBase::put):
5200 * bindings/js/JSEventTargetNode.h:
5201 (WebCore::JSEventTargetNode::put):
5202 * bindings/js/JSHTMLAppletElementCustom.cpp:
5203 (WebCore::JSHTMLAppletElement::customPut):
5204 * bindings/js/JSHTMLEmbedElementCustom.cpp:
5205 (WebCore::JSHTMLEmbedElement::customPut):
5206 * bindings/js/JSHTMLInputElementBase.cpp:
5207 (WebCore::JSHTMLInputElementBase::put):
5208 * bindings/js/JSHTMLInputElementBase.h:
5209 * bindings/js/JSHTMLObjectElementCustom.cpp:
5210 (WebCore::JSHTMLObjectElement::customPut):
5211 * bindings/js/JSHistoryCustom.cpp:
5212 (WebCore::JSHistory::customPut):
5213 * bindings/js/JSInspectedObjectWrapper.cpp:
5214 (WebCore::JSInspectedObjectWrapper::wrap):
5215 (WebCore::JSInspectedObjectWrapper::JSInspectedObjectWrapper):
5216 * bindings/js/JSInspectedObjectWrapper.h:
5217 * bindings/js/JSInspectorCallbackWrapper.cpp:
5218 (WebCore::JSInspectorCallbackWrapper::wrap):
5219 (WebCore::JSInspectorCallbackWrapper::JSInspectorCallbackWrapper):
5220 * bindings/js/JSInspectorCallbackWrapper.h:
5221 * bindings/js/JSLocationCustom.cpp:
5222 (WebCore::JSLocation::customPut):
5223 * bindings/js/JSPluginElementFunctions.cpp:
5224 (WebCore::runtimeObjectCustomPut):
5225 * bindings/js/JSPluginElementFunctions.h:
5226 * bindings/js/JSQuarantinedObjectWrapper.cpp:
5227 (WebCore::JSQuarantinedObjectWrapper::JSQuarantinedObjectWrapper):
5228 (WebCore::JSQuarantinedObjectWrapper::put):
5229 * bindings/js/JSQuarantinedObjectWrapper.h:
5230 * bindings/js/JSStorageCustom.cpp:
5231 (WebCore::JSStorage::customPut):
5232 * bindings/objc/WebScriptObject.mm:
5233 (-[WebScriptObject setValue:forKey:]):
5234 * bindings/scripts/CodeGeneratorJS.pm:
5235 * bridge/NP_jsobject.cpp:
5236 (_NPN_SetProperty):
5237 * bridge/jni/jni_jsobject.mm:
5238 (JavaJSObject::setMember):
5239 * bridge/objc/objc_class.mm:
5240 (KJS::Bindings::ObjcClass::fallbackObject):
5241 * bridge/objc/objc_runtime.h:
5242 * bridge/objc/objc_runtime.mm:
5243 (ObjcFallbackObjectImp::ObjcFallbackObjectImp):
5244 (ObjcFallbackObjectImp::put):
5245 * bridge/runtime.cpp:
5246 (KJS::Bindings::Instance::createRuntimeObject):
5247 * bridge/runtime_array.cpp:
5248 (RuntimeArray::put):
5249 * bridge/runtime_array.h:
5250 * bridge/runtime_object.cpp:
5251 (RuntimeObjectImp::RuntimeObjectImp):
5252 (RuntimeObjectImp::put):
5253 * bridge/runtime_object.h:
5254
jmalonzo@webkit.org1f770ba2008-09-01 12:43:34 +000052552008-09-01 Dirk Schulze <vbs85@gmx.de>
5256
5257 Reviewed by Eric Seidel.
5258
jmalonzo@webkit.org37f07882008-09-01 12:43:48 +00005259 Fixed border-radius for Cairo.
5260
5261 * platform/graphics/cairo/GraphicsContextCairo.cpp:
5262 (WebCore::GraphicsContext::strokeArc):
5263
52642008-09-01 Dirk Schulze <vbs85@gmx.de>
5265
5266 Reviewed by Eric Seidel.
5267
jmalonzo@webkit.org1f770ba2008-09-01 12:43:34 +00005268 Added canvas's globalAlpha to cairo.
5269
5270 * platform/graphics/GraphicsContext.h:
5271 * platform/graphics/cairo/GraphicsContextCairo.cpp:
5272 (WebCore::GraphicsContext::fillPath):
5273 (WebCore::GraphicsContext::strokePath):
5274 (WebCore::GraphicsContext::setAlpha):
5275 (WebCore::GraphicsContext::getAlpha):
5276 * platform/graphics/cairo/GraphicsContextPlatformPrivateCairo.h:
5277 (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
5278 * platform/graphics/cairo/ImageCairo.cpp:
5279 (WebCore::BitmapImage::draw):
5280
hausmann@webkit.orgecd099d2008-08-31 13:13:28 +000052812008-08-31 Simon Hausmann <hausmann@webkit.org>
5282
5283 Unreviewed Qt build fix.
5284
5285 * WebCore.pro: Add TextControlInnerElements.cpp to SOURCES instead of
5286 the .h file
5287
darin@apple.come7945852008-08-31 06:58:07 +000052882008-08-30 Darin Adler <darin@apple.com>
5289
5290 Reviewed by Maciej.
5291
5292 - adopt some new JavaScriptCore functions where appropriate
5293
5294 * bindings/js/JSDOMWindowBase.cpp:
5295 (WebCore::windowProtoFuncAToB): Adopted jsEmptyString.
5296 (WebCore::windowProtoFuncBToA): Ditto.
5297 * bindings/js/JSEventListener.cpp:
5298 (WebCore::JSLazyEventListener::eventParameterName): Adopted
5299 jsNontrivialString.
5300 * bindings/js/JSSVGLazyEventListener.cpp:
5301 (WebCore::JSSVGLazyEventListener::eventParameterName): Ditto.
5302
beidson@apple.com21c821f2008-08-30 00:26:01 +000053032008-08-29 Brady Eidson <beidson@apple.com>
5304
beidson@apple.come1bd6032008-08-30 00:30:11 +00005305 Reviewed by Anders' rubberstamp
5306
5307 Style cleanup to match MediaTokenizer::writeRawData()
5308
5309 * loader/PluginDocument.cpp:
5310 (WebCore::PluginTokenizer::writeRawData):
5311
53122008-08-29 Brady Eidson <beidson@apple.com>
5313
beidson@apple.com21c821f2008-08-30 00:26:01 +00005314 Reviewed by Anders
5315
5316 Fix regression I introducted in 35946
5317 Already covered by media/video-click-dlbclick-standalone.html
5318
5319 * loader/MediaDocument.cpp:
5320 (WebCore::MediaTokenizer::createDocumentStructure): Don't cancel the load here - too early!
5321 (WebCore::MediaTokenizer::writeRawData): Call finish() here so onload() can be called. Also add
5322 an ASSERT signifying that this method should only be called once, to more closely follow the
5323 PluginDocument case.
5324
bdakin@apple.com7ee298c2008-08-30 00:00:30 +000053252008-08-29 Beth Dakin <bdakin@apple.com>
5326
5327 Reviewed by Sam Weinig.
5328
5329 Fix for <rdar://problem/6181588>
5330
5331 This patch makes hit testing take into account the new concept of a
5332 disconnected frame, in which some of the content may not be
5333 visible. The current hit testing mechanism starts at a target frame
5334 and drills down for a HitTestResult. In some cases, drilling down
5335 will find a non-visible result. When this happens, we need to try
5336 again, starting at a higher level -- namely, starting at the main
5337 frame.
5338
5339 * editing/Editor.cpp:
5340 (WebCore::Editor::insideVisibleArea): New function that tests if a
5341 point is inside the visible area for a disconnected frame.
5342 * editing/Editor.h:
5343 * page/EventHandler.cpp:
5344 (WebCore::EventHandler::hitTestResultAtPoint):
5345
adele@apple.comfb903062008-08-29 22:30:18 +000053462008-08-29 Adele Peterson <adele@apple.com>
5347
5348 Reviewed by Adam Roben.
5349
5350 Rename HTMLTextFieldInnerElement.h/.cpp to TextControlInnerElements.h/.cpp
5351
5352 * GNUmakefile.am:
5353 * WebCore.pro:
5354 * WebCore.vcproj/WebCore.vcproj:
5355 * WebCore.xcodeproj/project.pbxproj:
5356 * WebCoreSources.bkl:
5357 * html/HTMLTextFieldInnerElement.cpp: Removed.
5358 * html/HTMLTextFieldInnerElement.h: Removed.
5359 * rendering/RenderTextControl.cpp:
5360 (WebCore::RenderTextControl::createSubtreeIfNeeded):
5361 * rendering/RenderTextControl.h:
5362 * rendering/TextControlInnerElements.cpp: Copied from html/HTMLTextFieldInnerElement.cpp.
5363 (WebCore::TextControlInnerElement::TextControlInnerElement):
5364 (WebCore::TextControlInnerTextElement::TextControlInnerTextElement):
5365 (WebCore::TextControlInnerTextElement::defaultEventHandler):
5366 (WebCore::SearchFieldResultsButtonElement::SearchFieldResultsButtonElement):
5367 (WebCore::SearchFieldResultsButtonElement::defaultEventHandler):
5368 (WebCore::SearchFieldCancelButtonElement::SearchFieldCancelButtonElement):
5369 (WebCore::SearchFieldCancelButtonElement::defaultEventHandler):
5370 * rendering/TextControlInnerElements.h: Copied from html/HTMLTextFieldInnerElement.h.
5371
eric@webkit.org298c65b2008-08-29 21:39:32 +000053722008-08-29 Eric Seidel <eric@webkit.org>
5373
eric@webkit.org77837ce2008-08-29 21:40:07 +00005374 Rubber-stamped by aroben.
5375
5376 Add GraphicsContext.h include to GraphcisContextPrivate.h
5377
5378 GraphicsContextPrivate uses StrokeStyle which is defined
5379 in GraphicsContext.h but it doesn't include that header.
5380 CoreGraphics build doesn't fail here due to the order
5381 it happens to include files.
5382
5383 * platform/graphics/GraphicsContextPrivate.h:
5384
53852008-08-29 Eric Seidel <eric@webkit.org>
5386
eric@webkit.org298c65b2008-08-29 21:39:32 +00005387 Reviewed by hyatt.
5388
5389 Fix GeneratedImage to respect Image's refcounting
5390 Fixing potential crashers (future if not current)
5391 https://bugs.webkit.org/show_bug.cgi?id=20567
5392
5393 I don't know if it's possible to make the current code
5394 crash, thus I've not made a test.
5395
5396 * css/CSSGradientValue.cpp:
5397 (WebCore::CSSGradientValue::image):
5398 * css/CSSImageGeneratorValue.cpp:
5399 (WebCore::CSSImageGeneratorValue::removeClient):
5400 (WebCore::CSSImageGeneratorValue::getImage):
5401 * css/CSSImageGeneratorValue.h:
5402 * platform/graphics/GeneratedImage.h:
5403 (WebCore::GeneratedImage::GeneratedImage):
5404 * rendering/style/RenderStyle.cpp:
5405 (WebCore::RenderStyle::setContent):
5406 * rendering/style/RenderStyle.h:
5407
eric.carlson@apple.comddeafd42008-08-29 20:07:19 +000054082008-08-29 Eric Carlson <eric.carlson@apple.com>
5409
5410 Reviewed by Adele.
5411
eric.carlson@apple.com850c77c2008-08-29 20:24:50 +00005412 Fix for <rdar://problem/6093767>
5413 https://bugs.webkit.org/show_bug.cgi?id=20526
5414
5415 Don't allow video to render until unsupported track types have been disabled.
5416
5417 * platform/graphics/win/QTMovieWin.cpp:
5418 (QTMovieWinPrivate::task):
5419 (QTMovieWinPrivate::drawingComplete):
5420 (QTMovieWinPrivate::clearGWorld):
5421
54222008-08-29 Eric Carlson <eric.carlson@apple.com>
5423
5424 Reviewed by Adele.
5425
eric.carlson@apple.comddeafd42008-08-29 20:07:19 +00005426 Fix for https://bugs.webkit.org/show_bug.cgi?id=20525
5427 <rdar://problem/6169301>
5428
5429 Return the size of the movie data instead of 1000.
5430
5431 Test: media/progress-event-total.html
5432
5433 * platform/graphics/win/QTMovieWin.cpp:
5434 (QTMovieWin::dataSize):
5435
hausmann@webkit.org0367b582008-08-29 15:56:02 +000054362008-08-29 Holger Hans Peter Freyther <zecke@selfish.org>
5437
hausmann@webkit.orgfe7f2ac2008-08-29 15:57:44 +00005438 Reviewed by Eric Seidel.
5439
5440 [janitor/qt] Start replacing port specific getters with the generic native getter
5441 To get the native presentation of an image we currently have platform
5442 specific #ifdef's and a generic getter using NativeImagePtr. This patch
5443 extends this to the ImageBuffer and updates the Qt platform to get rid
5444 of the special #ifdefs.
5445
5446 https://bugs.webkit.org/attachment.cgi?id=22861
5447
5448 * platform/graphics/BitmapImage.h:
5449 * platform/graphics/Image.h:
5450 * platform/graphics/qt/ImageQt.cpp:
5451 * platform/graphics/qt/StillImageQt.cpp:
5452 * platform/graphics/qt/StillImageQt.h:
5453 * platform/qt/ClipboardQt.cpp:
5454 (WebCore::ClipboardQt::createDragImage):
5455 (WebCore::ClipboardQt::declareAndWriteDragImage):
5456 * platform/qt/CursorQt.cpp:
5457 * platform/qt/PasteboardQt.cpp:
5458 (WebCore::Pasteboard::writeImage):
5459
54602008-08-29 Holger Hans Peter Freyther <zecke@selfish.org>
5461
hausmann@webkit.org0367b582008-08-29 15:56:02 +00005462 Reviewed by Simon.
5463
hausmann@webkit.orgb99266e2008-08-29 15:56:59 +00005464 [svg/qt] Stop crashing... when no RenderPath/RenderObject is given...
5465
5466 * svg/graphics/qt/SVGPaintServerQt.cpp:
5467 (WebCore::SVGPaintServer::renderPath):
5468 * svg/graphics/qt/SVGPaintServerSolidQt.cpp:
5469 (WebCore::SVGPaintServerSolid::setup):
5470
54712008-08-29 Holger Hans Peter Freyther <zecke@selfish.org>
5472
5473 Reviewed by Simon.
5474
hausmann@webkit.org0367b582008-08-29 15:56:02 +00005475 [network/qt] Implement defering of loading ResourceHandle's
5476 This is needed otherwise we end in an ASSERT in the MainResourceLoader. The
5477 implementation is simply not forwarding anything to the
5478 ResourceHandleClient until we are allowed to. This might lead to a deadlock
5479 in Qt as we do not empty the QNetworkReply input buffer and wait until we
5480 are allowed to read. If that happens we are forced to buffer the data
5481 within QNetworkReplyHandler, for now this is not done.
5482
5483 Manual test:
5484 - Open http://acid3.acidtests.org
5485 - Wait for the test to complete
5486 - Click on the Reference Rendering link
5487 - Be fast and see the results of acid3
5488 => assert
5489
5490 * platform/network/qt/QNetworkReplyHandler.cpp:
5491 (WebCore::QNetworkReplyHandler::QNetworkReplyHandler):
5492 (WebCore::QNetworkReplyHandler::setLoadMode):
5493 (WebCore::QNetworkReplyHandler::finish):
5494 (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
5495 (WebCore::QNetworkReplyHandler::forwardData):
5496 (WebCore::QNetworkReplyHandler::start):
5497 (WebCore::QNetworkReplyHandler::resetState):
5498 (WebCore::QNetworkReplyHandler::sendQueuedItems):
5499 * platform/network/qt/QNetworkReplyHandler.h:
5500 (WebCore::QNetworkReplyHandler::):
5501 * platform/network/qt/ResourceHandleQt.cpp:
5502 (WebCore::ResourceHandle::start):
5503 (WebCore::ResourceHandle::loadResourceSynchronously):
5504 (WebCore::ResourceHandle::setDefersLoading):
5505
hausmann@webkit.org2f2621f2008-08-29 10:21:38 +000055062008-08-29 Simon Hausmann <hausmann@webkit.org>
5507
hausmann@webkit.orgf5864402008-08-29 12:35:59 +00005508 Reviewed by Holger.
5509
5510 Don't crash when drawing patterns with the HTML canvas. Patterns
5511 remain unimplemented but at least they don't crash anymore. This is
5512 done by changing the PlatformPatternPtr to be a brush for the Qt
5513 platform.
5514
5515 * platform/graphics/Pattern.h:
5516 * platform/graphics/qt/GraphicsContextQt.cpp:
5517 (WebCore::GraphicsContext::fillPath):
5518 (WebCore::GraphicsContext::strokePath):
5519 (WebCore::GraphicsContext::fillRect):
5520 * platform/graphics/qt/PatternQt.cpp:
5521 (WebCore::Pattern::createPlatformPattern):
5522
55232008-08-29 Simon Hausmann <hausmann@webkit.org>
5524
hausmann@webkit.org2f2621f2008-08-29 10:21:38 +00005525 Fix the Qt build, fontSelector() is not used by the Qt port yet
5526 and we just return 0 in Font::fontSelector().
5527
5528 * platform/graphics/Font.h:
5529
alp@webkit.org97d8c102008-08-29 05:09:39 +000055302008-08-28 Alp Toker <alp@nuanti.com>
5531
5532 GTK+ dist/build fix. List newly added header files.
5533
5534 * GNUmakefile.am:
5535
simon.fraser@apple.com8f30d022008-08-28 23:04:18 +000055362008-08-28 Simon Fraser <simon.fraser@apple.com>
5537
5538 Reviewed by Dave Hyatt
5539
5540 Various WebKitCSSTransformValue-related fixes
5541 https://bugs.webkit.org/show_bug.cgi?id=20562
5542
5543 Test: css3/transform-value-types.html
5544
5545 * bindings/js/JSCSSValueCustom.cpp:
5546 (WebCore::toJS):
5547 * css/CSSValue.h:
5548 * css/WebKitCSSTransformValue.cpp:
5549 (WebCore::WebKitCSSTransformValue::cssText):
5550 * css/WebKitCSSTransformValue.h:
5551 (WebCore::WebKitCSSTransformValue::):
5552 * css/WebKitCSSTransformValue.idl:
5553
mitz@apple.comd7222352008-08-28 22:53:31 +000055542008-08-28 Dan Bernstein <mitz@apple.com>
5555
5556 Reviewed by Steve Falkenburg.
5557
5558 - do not let the "last chance" WM_TIMER trigger WebCore timers when they should be deferred
5559
5560 * platform/win/SharedTimerWin.cpp:
5561 (WebCore::TimerWindowWndProc):
5562
hyatt@apple.com7d335232008-08-28 21:38:45 +000055632008-08-28 David Hyatt <hyatt@apple.com>
5564
5565 RenderStyle cleanup.
5566
5567 Break out StyleImage, StyleGeneratedImage, StyleCachedImage and NinePieceImage into separate files.
5568
5569 Reviewed by Adam
5570
5571 * css/CSSImageGeneratorValue.cpp:
5572 * css/CSSImageValue.cpp:
5573 * css/CSSStyleSelector.cpp:
5574 * rendering/RenderImageGeneratedContent.cpp:
5575 * rendering/style/NinePieceImage.cpp: Added.
5576 * rendering/style/NinePieceImage.h: Added.
5577 * rendering/style/RenderStyle.cpp:
5578 (WebCore::FillLayer::operator==):
5579 (WebCore::FillLayer::containsImage):
5580 (WebCore::StyleInheritedData::operator==):
5581 (WebCore::RenderStyle::contentDataEquivalent):
5582 * rendering/style/RenderStyle.h:
5583 * rendering/style/StyleCachedImage.cpp: Added.
5584 * rendering/style/StyleCachedImage.h: Added.
5585 * rendering/style/StyleGeneratedImage.cpp: Added.
5586 * rendering/style/StyleGeneratedImage.h: Added.
5587 * rendering/style/StyleImage.h: Added.
5588
simon.fraser@apple.com28bad1a2008-08-28 21:29:21 +000055892008-08-28 Simon Fraser <simon.fraser@apple.com>
5590
5591 Reviewed by Dave Hyatt
5592
5593 Make all the 'isFoo()' methods on CSSValue const,
5594 and fix the subclasses.
5595
5596 https://bugs.webkit.org/show_bug.cgi?id=20561
5597
5598 * css/CSSTimingFunctionValue.h:
5599 * css/CSSValue.h:
5600 (WebCore::CSSValue::isFontValue):
5601 (WebCore::CSSValue::isImageGeneratorValue):
5602 (WebCore::CSSValue::isImageValue):
5603 (WebCore::CSSValue::isImplicitInitialValue):
5604 * css/CSSValueList.h:
5605 * css/FontValue.h:
5606
hyatt@apple.com550a95c2008-08-28 19:53:56 +000056072008-08-28 David Hyatt <hyatt@apple.com>
5608
hyatt@apple.comcb3eb812008-08-28 20:08:03 +00005609 The great RenderStyle cleanup begins!
5610
5611 Move LengthBox and LengthSize out of RenderStyle and into Length.
5612
5613 Reviewed by Adam
5614
5615 * rendering/Length.h:
5616 (WebCore::):
5617 (WebCore::Length::Length):
5618 (WebCore::Length::operator==):
5619 (WebCore::Length::operator!=):
5620 (WebCore::Length::value):
5621 (WebCore::Length::rawValue):
5622 (WebCore::Length::percent):
5623 (WebCore::Length::type):
5624 (WebCore::Length::quirk):
5625 (WebCore::Length::setValue):
5626 (WebCore::Length::setRawValue):
5627 (WebCore::Length::calcValue):
5628 (WebCore::Length::calcMinValue):
5629 (WebCore::Length::calcFloatValue):
5630 (WebCore::Length::isUndefined):
5631 (WebCore::Length::isZero):
5632 (WebCore::Length::isPositive):
5633 (WebCore::Length::isNegative):
5634 (WebCore::Length::isAuto):
5635 (WebCore::Length::isRelative):
5636 (WebCore::Length::isPercent):
5637 (WebCore::Length::isFixed):
5638 (WebCore::Length::isStatic):
5639 (WebCore::Length::isIntrinsicOrAuto):
5640 (WebCore::Length::blend):
5641 (WebCore::LengthBox::LengthBox):
5642 (WebCore::LengthBox::operator=):
5643 (WebCore::LengthBox::operator==):
5644 (WebCore::LengthBox::operator!=):
5645 (WebCore::LengthBox::nonZero):
5646 (WebCore::LengthSize::LengthSize):
5647 * rendering/style/RenderStyle.h:
5648
56492008-08-28 David Hyatt <hyatt@apple.com>
5650
hyatt@apple.com550a95c2008-08-28 19:53:56 +00005651 Reviewed by Darin
5652
5653 https://bugs.webkit.org/show_bug.cgi?id=18091
5654
5655 font-size should be animatable using -webkit-transition.
5656
5657 * page/AnimationController.cpp:
5658 (WebCore::AnimationControllerPrivate::ensurePropertyMap):
5659 * rendering/style/RenderStyle.h:
5660 (WebCore::RenderStyle::setFontSize):
5661
mitz@apple.com30923ad2008-08-28 17:45:47 +000056622008-08-28 Brad Garcia <bgarcia@google.com>
5663
5664 Reviewed by Dan Bernstein.
5665
5666 https://bugs.webkit.org/show_bug.cgi?id=20549
5667 Correctly determine when cursor is over a resizable border within
5668 a nested frameset.
5669
5670 * rendering/RenderFrameSet.cpp:
5671 (WebCore::RenderFrameSet::canResizeRow):
5672 (WebCore::RenderFrameSet::canResizeColumn):
5673
simon.fraser@apple.comae77c412008-08-28 17:30:07 +000056742008-08-28 Simon Fraser <simon.fraser@apple.com>
5675
5676 Reviewed by Eric Seidel
5677
5678 Add RuleTypes to CSSRule.idl for keyframes and keyframe rules.
5679 https://bugs.webkit.org/show_bug.cgi?id=20552
5680
5681 Test: animations/animation-css-rule-types.html
5682
5683 * css/CSSRule.idl:
5684
andersca@apple.com12399c32008-08-28 17:26:46 +000056852008-08-28 Anders Carlsson <andersca@apple.com>
5686
5687 Reviewed by Kevin and Darin.
5688
5689 <rdar://problem/6182541>
5690 https://bugs.webkit.org/show_bug.cgi?id=20202
5691 Missing http status line from the http headers.
5692
5693 Add a status line to the header string.
5694
5695 * plugins/PluginStream.cpp:
5696 (WebCore::PluginStream::startStream):
5697
zecke@webkit.orgf1daa422008-08-28 15:56:01 +000056982008-08-28 Holger Hans Peter Freyther <zecke@selfish.org>
5699
5700 Rubber-stamped by Darin Adler.
5701
5702 https://bugs.webkit.org/show_bug.cgi?id=17261
5703
5704 Make it possible to theme the default Url icon and enable this for
5705 the Qt port. To have a minimal usage of #ifdef in the code the setting
5706 of the icon was moved to a new method which comes in two flavors.
5707
5708 * loader/icon/IconDatabase.cpp:
5709 (WebCore::loadDefaultIconRecord): Load or set the default icon
5710 (WebCore::IconDatabase::defaultIcon):
5711
zecke@webkit.org1887dc82008-08-28 15:03:21 +000057122008-08-28 Holger Hans Peter Freyther <zecke@selfish.org>
5713
5714 Unreviewed compile fix
5715
5716 * platform/graphics/qt/GraphicsContextQt.cpp: Remove redefinitions
5717
aroben@apple.comfacf5032008-08-28 13:34:01 +000057182008-08-28 Adam Roben <aroben@apple.com>
5719
5720 Windows (and others?) build fix
5721
5722 * page/Chrome.cpp: Added a missing #include.
5723 (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer): Fixed typo.
5724
eric@webkit.org22794fd2008-08-28 12:04:40 +000057252008-08-27 Eric Seidel <eric@webkit.org>
5726
5727 Reviewed by Oliver Hunt.
5728
eric@webkit.org5f874e92008-08-28 12:04:55 +00005729 Qt and Cairo support from krit (and blind stab @ wx compile support)
5730 https://bugs.webkit.org/show_bug.cgi?id=20373
5731
5732 * platform/graphics/cairo/GraphicsContextCairo.cpp:
5733 (WebCore::GraphicsContext::fillPath):
5734 (WebCore::GraphicsContext::strokePath):
5735 (WebCore::GraphicsContext::drawPath):
5736 (WebCore::GraphicsContext::fillRect):
5737 (WebCore::GraphicsContext::setPlatformFillColor):
5738 (WebCore::GraphicsContext::setPlatformStrokeColor):
5739 (WebCore::GraphicsContext::setPlatformStrokeStyle):
5740 (WebCore::GraphicsContext::strokeRect):
5741 (WebCore::GraphicsContext::setImageInterpolationQuality):
5742 (WebCore::GraphicsContext::imageInterpolationQuality):
5743 (WebCore::GraphicsContext::setPlatformFillPattern):
5744 (WebCore::GraphicsContext::setPlatformStrokePattern):
5745 (WebCore::GraphicsContext::setPlatformFillGradient):
5746 (WebCore::GraphicsContext::setPlatformStrokeGradient):
5747 * platform/graphics/qt/GraphicsContextQt.cpp:
5748 (WebCore::GraphicsContext::fillPath):
5749 (WebCore::GraphicsContext::strokePath):
5750 (WebCore::GraphicsContext::fillRect):
5751 (WebCore::GraphicsContext::strokeRect):
5752 (WebCore::GraphicsContext::clipToImageBuffer):
5753 (WebCore::GraphicsContext::setPlatformFillPattern):
5754 (WebCore::GraphicsContext::setPlatformStrokePattern):
5755 (WebCore::GraphicsContext::setPlatformFillGradient):
5756 (WebCore::GraphicsContext::setPlatformStrokeGradient):
5757 (WebCore::GraphicsContext::setImageInterpolationQuality):
5758 (WebCore::GraphicsContext::imageInterpolationQuality):
5759 * platform/graphics/wx/GraphicsContextWx.cpp:
5760 (WebCore::GraphicsContext::clipToImageBuffer):
5761 (WebCore::GraphicsContext::setImageInterpolationQuality):
5762 (WebCore::GraphicsContext::imageInterpolationQuality):
5763 (WebCore::GraphicsContext::fillPath):
5764 (WebCore::GraphicsContext::strokePath):
5765 (WebCore::GraphicsContext::drawPath):
5766 (WebCore::GraphicsContext::fillRect):
5767 (WebCore::GraphicsContext::setPlatformFillPattern):
5768 (WebCore::GraphicsContext::setPlatformStrokePattern):
5769 (WebCore::GraphicsContext::setPlatformFillGradient):
5770
57712008-08-27 Eric Seidel <eric@webkit.org>
5772
5773 Reviewed by Oliver Hunt.
5774
eric@webkit.org22794fd2008-08-28 12:04:40 +00005775 Add stroke/fill Gradient and Pattern support to GraphicsContext and update <canvas> to use it.
5776 https://bugs.webkit.org/show_bug.cgi?id=20373
5777
5778 Changed pattern() to canvasPattern() on CanvasStyle to match canvasGradient()
5779
5780 Made Generator (aka Gradient) RefCounted so that GraphicsContext didn't
5781 have to store large Gradient objects in the GraphicsContextState
5782
5783 Made Pattern RefCounted for the same reason.
5784
5785 Many updates to GraphicsContext to support easier drawing with
5786 Patterns and Gradients.
5787
5788 * WebCore.xcodeproj/project.pbxproj: Add pre-existing GraphicsContextPrivate.h
5789 * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
5790 (WebCore::toJS):
5791 * css/CSSGradientValue.cpp:
5792 (WebCore::CSSGradientValue::createGradient):
5793 * css/CSSGradientValue.h:
5794 * html/CanvasGradient.cpp:
5795 (WebCore::CanvasGradient::CanvasGradient):
5796 * html/CanvasGradient.h:
5797 (WebCore::CanvasGradient::gradient):
5798 (WebCore::CanvasGradient::addColorStop):
5799 (WebCore::CanvasGradient::getColor):
5800 * html/CanvasPattern.cpp:
5801 * html/CanvasPattern.h:
5802 (WebCore::CanvasPattern::pattern):
5803 (WebCore::CanvasPattern::originClean):
5804 * html/CanvasRenderingContext2D.cpp:
5805 (WebCore::CanvasRenderingContext2D::State::State):
5806 (WebCore::CanvasRenderingContext2D::setStrokeStyle):
5807 (WebCore::CanvasRenderingContext2D::setFillStyle):
5808 (WebCore::CanvasRenderingContext2D::fill):
5809 (WebCore::CanvasRenderingContext2D::stroke):
5810 (WebCore::CanvasRenderingContext2D::fillRect):
5811 (WebCore::CanvasRenderingContext2D::strokeRect):
5812 * html/CanvasRenderingContext2D.h:
5813 * html/CanvasStyle.cpp:
5814 (WebCore::CanvasStyle::applyStrokeColor):
5815 (WebCore::CanvasStyle::applyFillColor):
5816 * html/CanvasStyle.h:
5817 * platform/graphics/GeneratedImage.h:
5818 (WebCore::GeneratedImage::GeneratedImage):
5819 * platform/graphics/Generator.h:
5820 * platform/graphics/Gradient.h:
5821 (WebCore::Gradient::create):
5822 * platform/graphics/GraphicsContext.cpp:
5823 (WebCore::GraphicsContext::fillRule):
5824 (WebCore::GraphicsContext::setFillRule):
5825 (WebCore::GraphicsContext::setStrokePattern):
5826 (WebCore::GraphicsContext::setFillPattern):
5827 (WebCore::GraphicsContext::setStrokeGradient):
5828 (WebCore::GraphicsContext::setFillGradient):
5829 * platform/graphics/GraphicsContext.h:
5830 * platform/graphics/GraphicsContextPrivate.h:
5831 (WebCore::):
5832 (WebCore::GraphicsContextState::GraphicsContextState):
5833 * platform/graphics/GraphicsTypes.h:
5834 * platform/graphics/Path.h:
5835 * platform/graphics/Pattern.h:
5836 (WebCore::Pattern::create):
5837 (WebCore::Pattern::tileImage):
5838 * platform/graphics/cg/GraphicsContextCG.cpp:
5839 (WebCore::GraphicsContext::drawRect):
5840 (WebCore::GraphicsContext::drawEllipse):
5841 (WebCore::GraphicsContext::drawConvexPolygon):
5842 (WebCore::calculateDrawingMode):
5843 (WebCore::GraphicsContext::drawPath):
5844 (WebCore::fillPathWithFillRule):
5845 (WebCore::GraphicsContext::fillPath):
5846 (WebCore::GraphicsContext::strokePath):
5847 (WebCore::GraphicsContext::fillRect):
5848 (WebCore::GraphicsContext::fillRoundedRect):
5849 (WebCore::GraphicsContext::setPlatformStrokePattern):
5850 (WebCore::GraphicsContext::setPlatformFillPattern):
5851 (WebCore::GraphicsContext::setPlatformStrokeGradient):
5852 (WebCore::GraphicsContext::setPlatformFillGradient):
5853
eric@webkit.org70b099f2008-08-28 11:42:26 +000058542008-08-20 Eric Seidel <eric@webkit.org>
5855
5856 Reviewed by Darin and Alexey.
5857
5858 Close a leak of PausedTimeouts if the JavaScriptDebugServer was destroyed
5859 with timeouts paused.
5860 https://bugs.webkit.org/show_bug.cgi?id=20469
5861
5862 I attempted to clean up the memory management of PausedTimeouts, I'm not
5863 sure the solution I came up with is "cleaner", but it's in some ways
5864 "safer", since it no longer uses raw pointers and manual new/delete.
5865
5866 This also now prevents CachedPage from needlessly creating Window
5867 objects when caching pages which didn't already have one. :)
5868
5869 I also made Chrome.cpp no longer depend on the JavaScript bindings
5870 (aka JSDOMWindowBase.h), since there was no real reason for it to.
5871
5872 * bindings/js/JSDOMWindowBase.cpp:
5873 (WebCore::JSDOMWindowBase::pauseTimeouts):
5874 (WebCore::JSDOMWindowBase::resumeTimeouts):
5875 * bindings/js/JSDOMWindowBase.h:
5876 * bindings/js/ScriptController.cpp:
5877 (WebCore::ScriptController::pauseTimeouts):
5878 (WebCore::ScriptController::resumeTimeouts):
5879 * bindings/js/ScriptController.h:
5880 * history/CachedPage.cpp:
5881 (WebCore::CachedPage::CachedPage):
5882 (WebCore::CachedPage::restore):
5883 * page/Chrome.cpp:
5884 (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
5885 (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
5886 * page/JavaScriptDebugServer.cpp:
5887 (WebCore::JavaScriptDebugServer::~JavaScriptDebugServer):
5888 (WebCore::JavaScriptDebugServer::setJavaScriptPaused):
5889
zecke@webkit.org7d0df9e2008-08-28 03:36:31 +000058902008-08-27 Holger Hans Peter Freyther <zecke@selfish.org>
5891
5892 Unreviewed compile fix
5893
5894 Add the stub for the Qt port.
5895
5896 * WebCore.pro:
5897 * page/qt/AccessibilityObjectQt.cpp: Added.
5898 (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
5899
zecke@webkit.orged5c2fe2008-08-28 02:15:20 +000059002008-08-27 Alp Toker <alp@nuanti.com>
5901
5902 Reviewed by Eric.
5903
5904 https://bugs.webkit.org/show_bug.cgi?id=20551
zecke@webkit.org81540882008-08-28 02:18:20 +00005905 [GTK] search popup crash
5906
5907 * platform/gtk/SearchPopupMenuGtk.cpp:
5908 (WebCore::SearchPopupMenu::enabled):
5909 Fix a search popup crasher by disabling the history popup since we
5910 don't support this feature yet in the GTK+ port.
5911
59122008-08-27 Alp Toker <alp@nuanti.com>
5913
5914 Reviewed by Eric.
5915
5916 https://bugs.webkit.org/show_bug.cgi?id=20551
zecke@webkit.orged5c2fe2008-08-28 02:15:20 +00005917 [GTK] curl crashers
5918
5919 * platform/network/curl/ResourceHandleManager.cpp:
5920 (WebCore::ResourceHandleManager::startScheduledJobs):
5921 Remove the resource handle from the pending list before starting the
5922 job, not afterwards. Fixes crashers in the test suite.
5923
5924 Test: fast/dom/clientWidthAfterDocumentIsRemoved.html
5925 Test: fast/encoding/char-encoding.html
5926
eric@webkit.org712cb892008-08-28 00:26:15 +000059272008-08-27 Dirk Schulze <vbs85@gmx.de>
5928
5929 Reviewed by eseidel.
5930
5931 Fix canvas drawImage to support composite operations.
5932 Composite had no effect on canvas elements like these:
5933 http://philip.html5.org/tests/canvas/suite/tests/index.2d.composite.canvas.html
5934
5935 [CAIRO] Canvas composite don't work on canvas-elements.
5936 https://bugs.webkit.org/show_bug.cgi?id=20548
5937
5938 * html/CanvasRenderingContext2D.cpp:
5939 (WebCore::CanvasRenderingContext2D::drawImage): pass the current composite operator to the drawImage call
5940
eric@webkit.org75c83a02008-08-28 00:04:59 +000059412008-08-27 Mario Bensi <mbensi@pleyo.com>
5942
5943 Reviewed by Eric Seidel.
5944
5945 Fix the data content of an image with a base64.
5946
5947 * platform/network/curl/ResourceHandleManager.cpp:
5948 (WebCore::parseDataUrl): Remove the String and use only the data
5949 Vector because the data.latin1().data() convert the data content and
5950 the image test ( https://bugs.webkit.org/attachment.cgi?id=21726 ) is
5951 not drawn correctly.
5952
antti@apple.comf66a86b2008-08-27 23:59:50 +000059532008-08-27 Antti Koivisto <antti@apple.com>
5954
5955 Reviewed by Eric Seidel.
5956
5957 Crash after OK in dialog box and reloading page in secure mode
5958 https://bugs.webkit.org/show_bug.cgi?id=20493
5959
5960 The new run loop spawned by a modal dialog causes a timer in the loader to run
5961 synchronously inside didFinishLoading() deleting "this" object.
5962
5963 Defer all WebCore timers when a modal dialog is up. They are not
5964 safe to execute.
5965
5966 * page/Chrome.cpp:
5967 (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
5968 (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
5969
simon.fraser@apple.com7dbde252008-08-27 23:16:36 +000059702008-08-27 Chris Marrin <cmarrin@apple.com>
5971
5972 Reviewed by Dave Hyatt
5973
5974 Memory leaks when animating transforms
5975 https://bugs.webkit.org/show_bug.cgi?id=20532
5976
5977 * rendering/style/RenderStyle.cpp:
5978 (WebCore::ScaleTransformOperation::blend):
5979 (WebCore::RotateTransformOperation::blend):
5980 (WebCore::SkewTransformOperation::blend):
5981 (WebCore::TranslateTransformOperation::blend):
5982 (WebCore::MatrixTransformOperation::blend):
5983 * rendering/style/RenderStyle.h:
5984
timothy@apple.com79cb13a2008-08-27 22:03:24 +000059852008-08-27 Timothy Hatcher <timothy@apple.com>
5986
5987 Add support for support for -webkit-appearance: default-button on the Mac platform.
5988
5989 <rdar://problem/6173530>
5990
5991 Reviewed by Dave Hyatt.
5992
5993 * WebCore.base.exp: Export new symbols.
5994 * platform/mac/WebCoreSystemInterface.h: Add wkAdvanceDefaultButtonPulseAnimation.
5995 * platform/mac/WebCoreSystemInterface.mm: Ditto.
5996 * rendering/RenderButton.cpp:
5997 (WebCore::RenderButton::RenderButton): Remove #if PLATFORM(WIN).
5998 (WebCore::RenderButton::setStyle): Ditto.
5999 * rendering/RenderButton.h: Ditto.
6000 * rendering/RenderThemeMac.mm:
6001 (WebCore::RenderThemeMac::adjustRepaintRect): Add a case for DefaultButtonAppearance.
6002 (WebCore::RenderThemeMac::setButtonCellState): Set the key equivalent to the return
6003 key if the button is default, otherwise reset the key equivalent.
6004 (WebCore::RenderThemeMac::paintButton): If the button is default call setDefaultButtonCell:
6005 on the window, then wkAdvanceDefaultButtonPulseAnimation before painting. Restore
6006 the window's previous default button cell when finished.
6007
hyatt@apple.comf0ec84d2008-08-27 21:18:15 +000060082008-08-26 David Hyatt <hyatt@apple.com>
6009
6010 First cut at making form controls on OS X respect full page zoom. There are lots of bugs.
6011
6012 Reviewed by weinig
6013
6014 Added fast/forms/zoomed-controls.html
6015
6016 * css/CSSStyleSelector.cpp:
6017 (WebCore::addIntrinsicMargins):
6018 * rendering/RenderSlider.cpp:
6019 (WebCore::RenderSlider::calcPrefWidths):
6020 * rendering/RenderThemeMac.h:
6021 * rendering/RenderThemeMac.mm:
6022 (WebCore::RenderThemeMac::adjustRepaintRect):
6023 (WebCore::RenderThemeMac::inflateRect):
6024 (WebCore::RenderThemeMac::baselinePosition):
6025 (WebCore::RenderThemeMac::setControlSize):
6026 (WebCore::RenderThemeMac::sizeForFont):
6027 (WebCore::RenderThemeMac::sizeForSystemFont):
6028 (WebCore::RenderThemeMac::setFontFromControlSize):
6029 (WebCore::RenderThemeMac::paintCheckbox):
6030 (WebCore::RenderThemeMac::setCheckboxCellState):
6031 (WebCore::RenderThemeMac::paintRadio):
6032 (WebCore::RenderThemeMac::setRadioCellState):
6033 (WebCore::RenderThemeMac::setButtonPaddingFromControlSize):
6034 (WebCore::RenderThemeMac::adjustButtonStyle):
6035 (WebCore::RenderThemeMac::setButtonCellState):
6036 (WebCore::RenderThemeMac::paintButton):
6037 (WebCore::RenderThemeMac::paintMenuList):
6038 (WebCore::RenderThemeMac::paintMenuListButton):
6039 (WebCore::RenderThemeMac::popupInternalPaddingLeft):
6040 (WebCore::RenderThemeMac::popupInternalPaddingRight):
6041 (WebCore::RenderThemeMac::popupInternalPaddingTop):
6042 (WebCore::RenderThemeMac::popupInternalPaddingBottom):
6043 (WebCore::RenderThemeMac::setPopupButtonCellState):
6044 (WebCore::RenderThemeMac::paintSliderTrack):
6045 (WebCore::RenderThemeMac::paintSliderThumb):
6046 (WebCore::RenderThemeMac::adjustSliderThumbSize):
6047 (WebCore::RenderThemeMac::paintSearchField):
6048 (WebCore::RenderThemeMac::adjustSearchFieldStyle):
6049 (WebCore::RenderThemeMac::paintSearchFieldCancelButton):
6050 (WebCore::RenderThemeMac::paintSearchFieldResultsButton):
6051
beidson@apple.comd0793872008-08-27 19:59:55 +000060522008-08-27 Brady Eidson <beidson@apple.com>
6053
6054 Reviewed by Anders
6055
6056 <rdar://problem/6134133> - Crash when loading large movie as a standalone document
6057
6058 We hand off these loads to Quicktime which manages and spools the data itself, but we also continued
6059 to load and buffer the data for the movie in WebCore. With large media files, this results in blowing
6060 away the virtual address space and a crash.
6061
6062 * loader/EmptyClients.h:
6063 (WebCore::EmptyFrameLoaderClient::pluginWillHandleLoadError):
6064 * loader/FrameLoaderClient.h: Added client method to get platform specific error for
6065 "plugin will handle load"
6066
6067 * loader/MediaDocument.cpp:
6068 (WebCore::MediaTokenizer::createDocumentStructure): Tell the MainResourceLoader to not buffer data,
6069 and cancel the WebCore-managed load
6070 (WebCore::MediaTokenizer::writeRawData):
6071 (WebCore::MediaTokenizer::finish):
6072
simon.fraser@apple.come74d6712008-08-27 18:19:55 +000060732008-08-26 Simon Fraser <simon.fraser@apple.com>
6074
6075 Reviewed by Eric Seidel
6076
6077 Linear timing functions should have control points 0, 0, 1, 1.
6078 https://bugs.webkit.org/show_bug.cgi?id=20535
6079
6080 * css/CSSStyleSelector.cpp:
6081 (WebCore::CSSStyleSelector::mapAnimationTimingFunction):
6082 * rendering/style/RenderStyle.h:
6083
aroben@apple.com8cfb6c62008-08-27 14:52:17 +000060842008-08-27 Adam Roben <aroben@apple.com>
6085
6086 Windows build fix
6087
6088 * WebCore.vcproj/WebCore.vcproj: Fix file extension.
6089
mrowe@apple.com37686d42008-09-04 00:10:39 +000060902008-08-26 Chris Fleizach <cfleizach@apple.com>
cfleizach@apple.com33a556b2008-08-26 22:29:14 +00006091
cfleizach@apple.comc6ebe3d2008-08-26 22:43:22 +00006092 Reviewed by Beth Dakin.
6093
cfleizach@apple.com2a505f42008-08-26 22:56:03 +00006094 <rdar://problem/6069462> REGRESSION: webkit is returning flash objects as AXUnknown
6095
6096 Added platform-specific accessibilityIgnoreAttachment, which allows the platform
6097 to determine if an attachment is ignored through accessibility. Added equivalent
6098 methods in Gtk, Win and Mac
6099
6100 Test: accessibility/plugin.html
6101
6102 * GNUmakefile.am:
6103 * WebCore.vcproj/WebCore.vcproj:
6104 * WebCore.xcodeproj/project.pbxproj:
6105 * page/AccessibilityObject.h:
6106 * page/AccessibilityRenderObject.cpp:
6107 (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
6108 * page/gtk/AccessibilityObjectAtk.cpp: Added.
6109 (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
6110 * page/mac/AccessibilityObjectMac.mm: Added.
6111 (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
6112 * page/mac/AccessibilityObjectWrapper.h:
6113 * page/win/AccessibilityObjectWin.cpp: Added.
6114 (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
6115
mrowe@apple.com37686d42008-09-04 00:10:39 +000061162008-08-26 Chris Fleizach <cfleizach@apple.com>
cfleizach@apple.com2a505f42008-08-26 22:56:03 +00006117
6118 Reviewed by Beth Dakin.
6119
cfleizach@apple.comc6ebe3d2008-08-26 22:43:22 +00006120 <rdar://problem/5817770> can't bring up contextual menu for embedded objects in WebText
6121
6122 * page/mac/AccessibilityObjectWrapper.mm:
6123 (-[AccessibilityObjectWrapper accessibilityPerformShowMenuAction]):
6124 (-[AccessibilityObjectWrapper accessibilityShowContextMenu]):
6125
mrowe@apple.com37686d42008-09-04 00:10:39 +000061262008-08-26 Chris Fleizach <cfleizach@apple.com>
cfleizach@apple.comc6ebe3d2008-08-26 22:43:22 +00006127
cfleizach@apple.com33a556b2008-08-26 22:29:14 +00006128 Reviewed by Darin Adler.
6129
6130 <rdar://problem/6176924> CrashTracer: [USER] 4 crashes in Safari at com.apple.WebCore: WebCore::RenderTableSection::numColumns
6131
6132 Tests: accessibility/table-notbody.html
6133
6134 * page/AccessibilityTable.cpp:
6135 (WebCore::AccessibilityTable::isTableExposableThroughAccessibility):
6136
weinig@apple.com33705852008-08-26 19:51:28 +000061372008-08-26 Sam Weinig <sam@webkit.org>
6138
weinig@apple.comf6f553a2008-08-26 21:21:26 +00006139 Reviewed by Beth Dakin.
6140
6141 Fix typo.
6142
6143 * dom/DOMCoreException.h:
6144
61452008-08-26 Sam Weinig <sam@webkit.org>
6146
weinig@apple.com0f34f002008-08-26 19:56:54 +00006147 Reviewed by Oliver Hunt.
6148
6149 Fix https://bugs.webkit.org/show_bug.cgi?id=20479
6150 <rdar://problem/6167660>
6151 Take image redirects into account when tainting the canvas.
6152
6153 Test: http/tests/security/canvas-remote-read-redirect-to-remote-image.html
6154
6155 * html/CanvasRenderingContext2D.cpp:
6156 (WebCore::CanvasRenderingContext2D::drawImage):
6157 (WebCore::CanvasRenderingContext2D::drawImageFromRect):
6158
61592008-08-26 Sam Weinig <sam@webkit.org>
6160
weinig@apple.com33705852008-08-26 19:51:28 +00006161 Reviewed by Darin Adler.
6162
6163 Change canvas tainting logic to ask the image if it contains
6164 any resources outside of its own origin. Since there is no
6165 way to determine if SVG images contain any resources outside its
6166 origin, we always assume it does.
6167
6168 * html/CanvasRenderingContext2D.cpp:
6169 (WebCore::CanvasRenderingContext2D::drawImage):
6170 (WebCore::CanvasRenderingContext2D::drawImageFromRect):
6171 * platform/graphics/BitmapImage.h:
6172 (WebCore::BitmapImage::hasSingleSecurityOrigin):
6173 * platform/graphics/GeneratedImage.h:
6174 (WebCore::GeneratedImage::hasSingleSecurityOrigin):
6175 * platform/graphics/Image.h:
6176 (WebCore::Image::hasSingleSecurityOrigin):
6177 * platform/graphics/cg/PDFDocumentImage.h:
6178 (WebCore::PDFDocumentImage::hasSingleSecurityOrigin):
6179 * svg/graphics/SVGImage.h:
6180
britto@apple.com616ef6d2008-08-26 17:51:03 +000061812008-08-26 Maxime Britto <britto@apple.com>
6182
6183 Reviewed by Adele.
6184
6185 <rdar://6159244> Pan-scrolling does not work on particular sites (starmagazine.com, nytimes.com)
6186 This patch fixes the issues and modify the behavior of the panscroll by allowing it to jump to a parent layer when it reaches the end of its scrollable area.
6187 This is matching the behavior of the mouse wheel when trying to scroll in a smaller layer of the page (div, textarea, ...) and when we reach the edge and keep scrolling then the whole page scrolls.
6188
6189 * page/EventHandler.cpp:
6190 (WebCore::EventHandler::updateAutoscrollRenderer): if we switch to the parent layer to do the scroll we want to change the renderer for the panning
6191 * page/EventHandler.h:
6192 * rendering/RenderLayer.cpp:
6193 (WebCore::RenderLayer::panScrollFromPoint): now calls the scrollByRecursively method when it has computed the xDelta and yDelta
6194 (WebCore::RenderLayer::scrollByRecursively): try to scroll the current layer by the xDelta and yDelta provided, if it can't it ask its parent layer to do so.
6195 * rendering/RenderLayer.h:
6196 * rendering/RenderObject.cpp:
6197 (WebCore::RenderObject::canBeProgramaticallyScrolled): a RenderObject must have a RenderLayer to be programatically scrolled
6198 (WebCore::RenderObject::autoscroll): No need to check for the layer anymore since we verify it's present in the upmentionned method
6199 (WebCore::RenderObject::panScroll): No need to check for the layer anymore too.
6200
jchaffraix@webkit.orge6915392008-08-26 10:27:33 +000062012008-08-25 Julien Chaffraix <jchaffraix@webkit.org>
6202
darin@apple.com07c80c62008-09-05 18:15:43 +00006203 Reviewed by Darin Adler.
jchaffraix@webkit.orge6915392008-08-26 10:27:33 +00006204
6205 Bug 20247: setAttributeNode() does not work when attribute name has a capital letter in it
6206 https://bugs.webkit.org/show_bug.cgi?id=20247
6207
6208 <rdar://problem/6118218>
6209
6210 Add a boolean parameter to getAttributeItem to choose between case sensitive and case insensitive
6211 check. This keeps the behaviour for setAttribute / hasAttribute (case sensitive) and getAttribute
6212 (case insensitive for HTML elements).
6213
6214 Test: fast/dom/Element/getAttribute-check-case-sensitivity.html
6215
6216 * dom/Element.cpp:
6217 (WebCore::Element::getAttribute):
6218 * dom/NamedAttrMap.cpp:
6219 (WebCore::NamedAttrMap::getNamedItem):
6220 (WebCore::NamedAttrMap::getAttributeItem):
6221 * dom/NamedAttrMap.h:
6222
weinig@apple.comb4ce06e2008-08-26 01:52:51 +000062232008-08-25 Sam Weinig <sam@webkit.org>
6224
weinig@apple.com8d3ea722008-08-26 04:19:07 +00006225 Reviewed by Oliver Hunt.
6226
6227 Fix for https://bugs.webkit.org/show_bug.cgi?id=20514
6228 <rdar://problem/6174096>
6229 Treat SVG images as dirty when drawing to a canvas.
6230
6231 Test: http/tests/security/canvas-remote-read-svg-image.html
6232
6233 * html/CanvasRenderingContext2D.cpp:
6234 (WebCore::CanvasRenderingContext2D::drawImage):
6235 (WebCore::CanvasRenderingContext2D::drawImageFromRect):
6236 * platform/graphics/Image.h:
6237 (WebCore::Image::isSVGImage):
6238 * svg/graphics/SVGImage.h:
6239 (WebCore::SVGImage::isSVGImage):
6240
62412008-08-25 Sam Weinig <sam@webkit.org>
6242
weinig@apple.comb4ce06e2008-08-26 01:52:51 +00006243 Reviewed by Mark Rowe.
6244
6245 Fix https://bugs.webkit.org/show_bug.cgi?id=20377
6246 Leak in XMLHttpRequest.
6247
6248 * xml/XMLHttpRequest.cpp:
6249 (WebCore::XMLHttpRequest::makeCrossSiteAccessRequestWithPreflight):
6250
beidson@apple.com46421212008-08-25 21:48:56 +000062512008-08-25 Brady Eidson <beidson@apple.com>
6252
6253 Reviewed by Anders
6254
6255 Speculative fix for <rdar://problem/6173217>
6256
6257 Moves the "clearArchivedResources()" call to exactly where it used to be in the old version of WebArchive code.
6258 Also, adds a null check for m_documentLoader since DocumentLoader::stopLoading() can end up clearing it, rendering
6259 the first null check invalid.
6260
6261 * loader/FrameLoader.cpp:
6262 (WebCore::FrameLoader::stopAllLoaders):
6263
6264
kmccullough@apple.com7b85fbb2008-08-25 21:28:40 +000062652008-08-25 Kevin McCullough <kmccullough@apple.com>
6266
6267 Reviewed by Tim.
6268
6269 <rdar://problem/6157711> Heavy/Tree view selector is not grayed out if
6270 there is no profile, can cause crash
6271
6272 * page/inspector/ProfilesPanel.js:
6273
dino@apple.com1baeea62008-08-25 21:06:21 +000062742008-08-25 Dean Jackson <dino@apple.com>
6275
6276 Reviewed by Dave Hyatt
6277
6278 Make sure 'inherit' is handled by transition property.
6279 https://bugs.webkit.org/show_bug.cgi?id=20513
6280
6281 Test: transitions/inherit.html
6282 Test: transitions/inherit-other-props.html
6283
6284 * css/CSSStyleSelector.cpp:
6285 fix macro to check existence of list before getting size
6286
andersca@apple.com2866b8302008-08-25 20:56:21 +000062872008-08-25 Anders Carlsson <andersca@apple.com>
6288
6289 Reviewed by Mark.
6290
6291 <rdar://problem/6149787> crash @ com.apple.JavaScriptCore: WTF::callOnMainThread + 37.
6292
6293 Initialize threading in the call to WebCoreObjCFinalizeOnMainThread. We currently assume
6294 (safely) that any class that needs finalization on the main thread will also need to be deallocated
6295 on the main thread, and calling initializeThreading from WebCoreObjCFinalizeOnMainThread instead of
6296 calling it from WebCoreObjCScheduleDeallocateOnMainThread seems safer.
6297
6298 * platform/mac/WebCoreObjCExtras.c:
6299 (WebCoreObjCFinalizeOnMainThread):
6300
antti@apple.com60381cb2008-08-25 20:41:11 +000063012008-08-25 Antti Koivisto <antti@apple.com>
6302
6303 Reviewed by Dan Bernstein.
6304
6305 Rename CachedResource::referenced() to CachedResource::hasClients() to
6306 match previous ref() -> addClient() rename.
6307
6308 * loader/Cache.cpp:
6309 (WebCore::Cache::pruneLiveResources):
6310 (WebCore::Cache::pruneDeadResources):
6311 (WebCore::Cache::remove):
6312 (WebCore::Cache::getStatistics):
6313 (WebCore::Cache::dumpLRULists):
6314 * loader/CachedResource.cpp:
6315 (WebCore::CachedResource::addClient):
6316 (WebCore::CachedResource::removeClient):
6317 (WebCore::CachedResource::setDecodedSize):
6318 (WebCore::CachedResource::setEncodedSize):
6319 * loader/CachedResource.h:
6320 (WebCore::CachedResource::hasClients):
6321 (WebCore::CachedResource::canDelete):
6322
timothy@apple.com7d809242008-08-25 18:33:05 +000063232008-08-25 Anthony Ricaud <rik24d@gmail.com>
6324
6325 Add a missing Inspector localized string for "other".
6326
6327 https://bugs.webkit.org/show_bug.cgi?id=20509
6328
6329 Reviewed by Tim Hatcher.
6330
6331 * English.lproj/localizedStrings.js:
6332
kmccullough@apple.com560f5fe2008-08-25 18:18:01 +000063332008-08-22 Kevin McCullough <kmccullough@apple.com>
6334
6335 Reviewed by Geoff, Mark and Tim.
6336
6337 <rdar://problem/6150623> JSProfiler: It would be nice if the profiles
6338 in the console said what file and line number they came from
6339 - Lay the foundation for getting line numbers and other data from the
6340 JavaScript engine.
6341
6342 * ForwardingHeaders/VM: Added.
6343 * ForwardingHeaders/VM/Machine.h: Added.
6344 * page/Console.cpp: Gather the line number and file information when
6345 profileEnd has been called, but don't use it until didFinishProfiling is
6346 called. We won't need to wait once we remove the profiler "zombie" mode
6347 which this patch helps pave the foundation for.
6348 (WebCore::Console::Console):
6349 (WebCore::Console::profileEnd):
6350 (WebCore::Console::finishedProfiling):
6351 * page/Console.h:
6352 * page/InspectorController.cpp: Modify calls to
6353 addProfileMessageToConsole to satisfy the new arguments it takes.
6354 (WebCore::InspectorController::finishedProfiling):
6355 (WebCore::InspectorController::addProfile):
6356 (WebCore::InspectorController::addProfileMessageToConsole):
6357 (WebCore::InspectorController::finishedProfiling):
6358 * page/InspectorController.h:
6359
hausmann@webkit.orgf305df42008-08-25 10:06:53 +000063602008-08-25 Holger Hans Peter Freyther <zecke@selfish.org>
6361
6362 Reviewed by Simon.
6363
6364 [inspector] Update the WebKit.qrc Qt resources file
6365 Catchup with the changes in the directory.
6366
6367 * page/inspector/WebKit.qrc:
6368
hausmann@webkit.org5f13af32008-08-25 07:10:22 +000063692008-08-25 Dirk Schulze <vbs85@gmx.de>
6370
6371 Reviewed by Simon.
6372
6373 Transformed the radian to degree, to get rotate()
6374 in canvas work as expected.
6375
6376 [Qt] Canvas.rotate() doesn't work
6377 https://bugs.webkit.org/show_bug.cgi?id=20496
6378
6379 * platform/graphics/qt/GraphicsContextQt.cpp:
6380 (WebCore::GraphicsContext::rotate):
6381
sfalken@apple.com9d442862008-08-25 05:43:33 +000063822008-08-24 Steve Falkenburg <sfalken@apple.com>
6383
6384 Add a "last chance" WM_TIMER to the Windows shared timer.
6385
6386 The last chance timer fires every 5 seconds to run any lost WM_TIMER based timers.
6387 Failure to fire a timer is fatal to the cross-platform Timer code, since it won't re-schedule
6388 timers if a timer with an earlier expiration is already pending. This results in no timers
6389 firing from that point on.
6390
6391 We lose WM_TIMER messages occasionally (in the neighborhood of 1 per hour) probably due to a
6392 buggy window message hook.
6393
6394 This timer will start when the first WM_TIMER is scheduled, and will
6395 fire every 5 seconds thereafter, causing any lost timers to be fired.
6396
6397 Found this via one of its symptoms: leaking WebFrames. The fix prevents timers from stalling
6398 and prevents the WebFrame leak.
6399
6400 Reviewed by Darin Adler, Geoff Garen.
6401
6402 * platform/win/SharedTimerWin.cpp:
6403 (WebCore::):
6404 (WebCore::TimerWindowWndProc):
6405 (WebCore::setSharedTimerFireTime):
6406
mitz@apple.com771fb752008-08-25 03:22:44 +000064072008-08-24 Dan Bernstein <mitz@apple.com>
6408
6409 Reviewed by Darin Adler.
6410
6411 - fix <rdar://problem/6065547> REGRESSION (r34879): "Subject" in unread emails in Yahoo mail is not shown in bold
6412
6413 Test: fast/css/font-property-priority.html
6414
6415 * css/CSSParser.cpp:
6416 (WebCore::CSSParser::parseValue): Changed to pass the 'important' flag
6417 to the font-property-parsing functions.
6418 (WebCore::CSSParser::parseFontStyle): Added an 'important' argument and
6419 changed to use it rather than the m_important member.
6420 (WebCore::CSSParser::parseFontVariant): Ditto.
6421 (WebCore::CSSParser::parseFontWeight): Ditto.
6422 * css/CSSParser.h:
6423
timothy@apple.com4cea2632008-08-24 22:28:44 +000064242008-08-24 Timothy Hatcher <timothy@apple.com>
6425
6426 Fixes a bug where the Inspector's UI would not animate or
6427 fully function because JavaScript timeouts, intervals and
6428 CSS animation timers where not firing while paused at a
6429 a breakpoint in the inspected page.
6430
6431 https://bugs.webkit.org/show_bug.cgi?id=20042
6432
6433 Reviewed by Darin Adler.
6434
6435 Test: manual-tests/inspector/forzen-ui-while-paused.html
6436
6437 * page/JavaScriptDebugServer.cpp:
6438 (WebCore::JavaScriptDebugServer::pauseIfNeeded):
6439 Add a call to TimerBase::fireTimersInNestedEventLoop before
6440 spinning the EventLoop.
6441
rwlbuis@webkit.org8a772442008-08-24 18:07:32 +000064422008-08-24 Rob Buis <buis@kde.org>
6443
6444 Reviewed by Sam Weinig.
6445
6446 https://bugs.webkit.org/show_bug.cgi?id=20324
6447 A change in SVG Glyph wont show up
6448
6449 Invalidate the glyph cache when the d attribute is set.
6450
6451 Test: svg/custom/glyph-setting-d-attribute.svg
6452
6453 * svg/SVGGlyphElement.cpp:
6454 (WebCore::SVGGlyphElement::invalidateGlyphCache):
6455 (WebCore::SVGGlyphElement::parseMappedAttribute):
6456 (WebCore::SVGGlyphElement::insertedIntoDocument):
6457 (WebCore::SVGGlyphElement::removedFromDocument):
6458 * svg/SVGGlyphElement.h:
6459
mitz@apple.com5b2c3cc2008-08-24 09:18:39 +000064602008-08-24 Dan Bernstein <mitz@apple.com>
6461
6462 Reviewed by Sam Weinig.
6463
6464 - fix https://bugs.webkit.org/show_bug.cgi?id=13864
6465 <rdar://problem/5451470> REGRESSION: Uninitialized value in RenderBlock::calcInlinePrefWidths()
6466
6467 * rendering/RenderText.cpp:
6468 (WebCore::RenderText::trimmedPrefWidths): Moved the assignment to
6469 beginWS and endWS before the early return to ensure that they are
6470 initialized in that case.
6471
cwzwarich@webkit.org53ddf172008-08-23 08:16:54 +000064722008-08-23 Cameron Zwarich <cwzwarich@uwaterloo.ca>
6473
6474 Rubber-stamped by Mark Rowe.
6475
6476 Remove modelines.
6477
6478 * WebCore.pro:
6479 * bridge/testbindings.cpp:
6480 * dom/DocPtr.h:
6481 * loader/SubstituteData.h:
6482 * page/Chrome.cpp:
6483 * page/Chrome.h:
6484 * page/ChromeClient.h:
6485 * page/Frame.h:
6486 * page/FrameLoadRequest.h:
6487 * page/FrameTree.cpp:
6488 * page/FrameTree.h:
6489 * page/Page.h:
6490 * page/mac/ChromeMac.mm:
6491 * platform/network/HTTPHeaderMap.h:
6492 * platform/network/ResourceErrorBase.cpp:
6493 * platform/network/ResourceErrorBase.h:
6494 * platform/network/ResourceHandleInternal.h:
6495 * platform/network/ResourceRequestBase.cpp:
6496 * platform/network/ResourceRequestBase.h:
6497 * platform/network/ResourceResponseBase.cpp:
6498 * platform/network/ResourceResponseBase.h:
6499 * platform/network/cf/ResourceError.h:
6500 * platform/network/cf/ResourceRequest.h:
6501 * platform/network/cf/ResourceRequestCFNet.h:
6502 * platform/network/cf/ResourceResponse.h:
6503 * platform/network/cf/ResourceResponseCFNet.h:
6504 * platform/network/curl/ResourceError.h:
6505 * platform/network/curl/ResourceRequest.h:
6506 * platform/network/curl/ResourceResponse.h:
6507 * platform/network/mac/ResourceError.h:
6508 * platform/network/mac/ResourceErrorMac.mm:
6509 * platform/network/mac/ResourceRequest.h:
6510 * platform/network/mac/ResourceRequestMac.mm:
6511 * platform/network/mac/ResourceResponse.h:
6512 * platform/network/mac/ResourceResponseMac.mm:
6513 * platform/network/qt/ResourceError.h:
6514 * platform/network/qt/ResourceRequest.h:
6515 * platform/network/qt/ResourceResponse.h:
6516 * platform/network/soup/CookieJarSoup.cpp:
6517 * platform/network/soup/ResourceError.h:
6518 * platform/network/soup/ResourceRequest.h:
6519 * platform/network/soup/ResourceResponse.h:
6520
mitz@apple.com57a2f482008-08-23 07:16:41 +000065212008-08-23 Dan Bernstein <mitz@apple.com>
6522
6523 Reviewed by Dave Hyatt.
6524
6525 - fix <rdar://problem/6065143> Reflowed image in first line of table doesn't affect baseline
6526
6527 Test: fast/table/vertical-align-baseline.html
6528
6529 * rendering/RenderTable.cpp:
6530 (WebCore::RenderTable::getBaselineOfFirstLineBox): Added. Returns the
6531 baseline of the first table row, if there is one, -1 otherwise.
6532 * rendering/RenderTable.h:
6533 * rendering/RenderTableCell.cpp:
6534 (WebCore::RenderTableCell::baselinePosition): Changed to follow the
6535 CSS2.1 definition of the baseline of a table cell.
6536 * rendering/RenderTableSection.cpp:
6537 (WebCore::RenderTableSection::getBaselineOfFirstLineBox): Added. Returns
6538 the baseline of the first row in the section.
6539 * rendering/RenderTableSection.h:
6540
jhoneycutt@apple.com88af18d2008-08-22 23:44:32 +000065412008-08-18 Jon Honeycutt <jhoneycutt@apple.com>
6542
6543 Add SPI to make a Windows WebView transparent.
6544
6545 Reviewed by Dan Bernstein.
6546
6547 * platform/graphics/GraphicsContext.h: Add a parameter, hasAlpha, that
6548 determines whether the created context has an alpha channel.
6549 * platform/graphics/win/GraphicsContextCGWin.cpp:
6550 (WebCore::CGContextWithHDC):
6551
timothy@apple.comb63d1172008-08-22 18:39:42 +000065522008-08-22 Timothy Hatcher <timothy@apple.com>
6553
timothy@apple.com964022d2008-08-22 20:35:20 +00006554 Rolls out r35834 because it caused a regression in the Inspector's
6555 Console where some expressions always threw a syntax error.
6556
6557 https://bugs.webkit.org/show_bug.cgi?id=20487
6558
6559 * page/inspector/Console.js:
6560 (Console.prototype._evalInInspectedWindow): Removes parenthesis
6561 around the expression.
6562
65632008-08-22 Timothy Hatcher <timothy@apple.com>
6564
timothy@apple.com056d4782008-08-22 18:39:52 +00006565 Makes getStyleProperty return a value for the overflow property
6566 when overflow-x and overflow-y are equal.
6567
6568 https://bugs.webkit.org/show_bug.cgi?id=20485
6569
6570 Reviewed by Dan Bernstein.
6571
6572 Test: fast/css/overflow-property.html
6573
6574 * css/CSSMutableStyleDeclaration.cpp:
6575 (WebCore::CSSMutableStyleDeclaration::getPropertyValue):
6576
65772008-08-22 Timothy Hatcher <timothy@apple.com>
6578
timothy@apple.comb63d1172008-08-22 18:39:42 +00006579 Fixes a bug where while editing in the Inspector the
6580 sidebar scroll position would jump to the top.
6581
6582 https://bugs.webkit.org/show_bug.cgi?id=20484
6583
6584 Reviewed by Darin Adler.
6585
6586 * page/inspector/treeoutline.js:
6587 (TreeOutline._removeChildren): Remove the offsetTop call that
6588 was forcing a layout, since layout causes scroll positions
6589 to be clamped to the new scrollHeight/Width. Layout will happen
6590 normally when needed.
6591
kevino@webkit.org8271c842008-08-22 16:25:52 +000065922008-08-22 Kevin Ollivier <kevino@theolliviers.com>
6593
6594 wx build fix. Add AccessibilityTable sources.
6595
6596 * WebCoreSources.bkl:
6597
mitz@apple.com9befc872008-08-22 06:29:33 +000065982008-08-21 Dan Bernstein <mitz@apple.com>
6599
6600 Reviewed by Jon Honeycutt and Alexey Proskuryakov.
6601
6602 - fix <rdar://problem/6162701> WebKit should correct Geeza Pro's font metrics
6603
6604 Test: platform/mac/fast/text/international/Geeza-Pro-vertical-metrics-adjustment.html
6605
6606 * platform/graphics/mac/SimpleFontDataMac.mm:
6607 (WebCore::SimpleFontData::platformInit): Add 8% to Geeza Pro's reported
6608 ascent and 100% to its reported descent.
6609
mrowe@apple.comac9b6a52008-08-22 02:07:54 +000066102008-08-21 Kalle Vahlman <kalle.vahlman@movial.com>
6611
6612 Reviewed by Darin Adler.
6613
mrowe@apple.com22eaa172008-08-22 02:10:15 +00006614 https://bugs.webkit.org/show_bug.cgi?id=20267
mrowe@apple.comac9b6a52008-08-22 02:07:54 +00006615 [GTK] Crash on some pages due to a plugin
6616
6617 Fix handling of badly formatted and empty plugin mime descriptions
6618
6619 * plugins/gtk/PluginPackageGtk.cpp:
6620 (WebCore::PluginPackage::fetchInfo):
6621
mrowe@apple.com798b3432008-08-22 02:07:48 +000066222008-08-21 Kevin Watters <kevinwatters@gmail.com>
6623
6624 Reviewed by Darin Adler.
6625
6626 Follow other ports (and IE) in ImageSourceWx.cpp never to return an
6627 animated GIF frame duration of less than 50ms.
6628
6629 * platform/graphics/wx/ImageSourceWx.cpp:
6630 (WebCore::ImageSource::frameDurationAtIndex):
6631
britto@apple.com8ed72772008-08-22 00:39:39 +000066322008-08-21 Maxime Britto <britto@apple.com>
6633
6634 Reviewed by Kevin McCullough.
6635
6636 Test: fast/events/autoscroll-nonscrollable-iframe-in-scrollable-div.html
6637 https://bugs.webkit.org/show_bug.cgi?id=20451
6638
6639 rdar://problem/6166435 Inspector doesn't auto scroll when selecting text (20451)
6640 When we climb up the rendering tree looking for a scrollable renderer, we need to be able to jump outside of an iframe.
6641 This way we can see if what is embedding the iframe can be scrolled even if the iframe content can't.
6642
6643 * page/EventHandler.cpp:
6644 (WebCore::EventHandler::handleMouseDraggedEvent): when we reach the document node and it can't be scrolled we set the next parent as the document's owner element if it exists.
6645
6646 (WebCore::EventHandler::handleMousePressEvent): ditto
6647
timothy@apple.com5d492192008-08-21 23:54:01 +000066482008-08-21 Anthony Ricaud <rik24d@gmail.com>
6649
6650 Small optimization for when the dividers in the Inspector's
6651 Resources panel are updated.
6652
6653 Reviewed by Tim Hatcher.
6654
6655 * page/inspector/ResourcesPanel.js:
6656 (WebInsector.ResourcesPanel.prototype._updateGraphDividersIfNeeded):
6657 Combind a for loop and clone the divider element.
6658
dino@apple.comaa75e4c2008-08-21 23:35:23 +000066592008-08-21 Chris Marrin <cmarrin@apple.com>
6660
6661 Allow 0 (without units) for Time eg. duration
6662 Fix for https://bugs.webkit.org/show_bug.cgi?id=20467
6663
6664 Reviewed by Dave Hyatt.
6665
6666 Test: css1/units/zero-duration-without-units.html
6667
6668 * css/CSSParser.cpp:
6669 (WebCore::CSSParser::validUnit):
6670
timothy@apple.com29c12d02008-08-21 20:12:47 +000066712008-08-21 Timothy Hatcher <timothy@apple.com>
6672
timothy@apple.comca11cd82008-08-21 20:13:12 +00006673 Make deleting all text while editing a DOM attribute in
6674 the Inspector delete the attribute. This also fixes
6675 an exception that would happen before.
6676
6677 https://bugs.webkit.org/show_bug.cgi?id=20472
6678
6679 Reviewed by Kevin McCullough.
6680
6681 * page/inspector/ElementsPanel.js:
6682 (WebInspector.DOMNodeTreeElement.prototype._attributeEditingCommitted):
6683 Don't check for hasAttributes on the parseElement, continuing
6684 through the function will correctly remove the attribute.
6685 If the parseElement is null, call _editingCancelled not
6686 editingCancelled, this fixes an exception.
6687
66882008-08-21 Timothy Hatcher <timothy@apple.com>
6689
timothy@apple.comde831cf2008-08-21 20:12:59 +00006690 Update the Inspector's Metrics pane when editing in
6691 the Styles pane. This makes sure the metrics shown
6692 always match what the Styles pane shows.
6693
6694 https://bugs.webkit.org/show_bug.cgi?id=20470
6695
6696 Reviewed by Kevin McCullough.
6697
6698 * page/inspector/ElementsPanel.js:
6699 (WebInspector.ElementsPanel): Add event listeners for
6700 the "style edited" and "style property toggled" events,
6701 so the Metrics pane is updated.
6702 (WebInspector.ElementsPanel.prototype._stylesPaneEdited):
6703 Update the Metrics pane.
6704 * page/inspector/StylesSidebarPane.js:
6705 (WebInspector.StylePropertyTreeElement.prototype.toggleEnabled):
6706 Dispatch the "style property toggled" event.
6707 (WebInspector.StylePropertyTreeElement.prototype.editingCancelled):
6708 Dispatch the "style edited" event when the CSS text is restored.
6709 (WebInspector.StylePropertyTreeElement.prototype.applyStyleText):
6710 Dispatch the "style edited" event.
6711
67122008-08-21 Timothy Hatcher <timothy@apple.com>
6713
timothy@apple.com29c12d02008-08-21 20:12:47 +00006714 Make the Inspector's Metrics sidebar pane editable.
6715
6716 https://bugs.webkit.org/show_bug.cgi?id=17218
6717 rdar://problem/5732818
6718
6719 Reviewed by Kevin McCullough.
6720
6721 * page/inspector/ElementsPanel.js:
6722 (WebInspector.ElementsPanel): Add an event listener for
6723 the "metrics edited" event, so the Styles pane is updated.
6724 * page/inspector/MetricsSidebarPane.js:
6725 (WebInspector.MetricsSidebarPane.prototype.update): Remember the node
6726 so future updates work. Add a double click event listener for the
6727 metric values to start editing.
6728 (WebInspector.MetricsSidebarPane.prototype.startEditing):
6729 Call WebInspector.startEditing with some context.
6730 (WebInspector.MetricsSidebarPane.prototype.editingCancelled):
6731 (WebInspector.MetricsSidebarPane.prototype.editingCommitted):
6732 Set the user input on the elements inline style. Fire the
6733 "metrics edited" event.
6734
sfalken@apple.com7e6e5392008-08-21 18:42:44 +000067352008-08-21 Steve Falkenburg <sfalken@apple.com>
6736
6737 Fix a race condition in Windows timer code.
6738 Timer function could end up being called with a 0 timer, leading to a Windows exception.
6739
6740 Don't post a timer message if one is already pending.
6741
6742 Reviewed by Ada Chan.
6743
6744 * platform/win/SharedTimerWin.cpp:
6745 (WebCore::TimerWindowWndProc):
6746 (WebCore::clearTimer):
6747 (WebCore::queueTimerProc):
6748 (WebCore::setSharedTimerFireTime):
6749
timothy@apple.com8d15bcf2008-08-21 16:33:17 +000067502008-08-21 Anthony Ricaud <rik24d@gmail.com>
6751
timothy@apple.com493212c72008-08-21 16:36:06 +00006752 After trying to add the expression, try again with quotes for
6753 easier edition.
6754
6755 https://bugs.webkit.org/show_bug.cgi?id=20466
6756
6757 Reviewed by Tim Hatcher.
6758
6759 * page/inspector/ObjectPropertiesSection.js: Added an
6760 evaluateExpression function.
6761
67622008-08-21 Anthony Ricaud <rik24d@gmail.com>
6763
timothy@apple.com8d15bcf2008-08-21 16:33:17 +00006764 Perform Inspector searches on search event to clear results when
6765 clicking the cross to empty it. Delete the lastQuery when the field
6766 is emptied in order to perform the search if exactly the same query
6767 is entered next.
6768
6769 https://bugs.webkit.org/show_bug.cgi?id=20462
6770
6771 Reviewed by Tim Hatcher.
6772
6773 * page/inspector/inspector.js:
6774
jmalonzo@webkit.orgdd470402008-08-21 11:22:51 +000067752008-08-21 Marco Barisione <marco.barisione@collabora.co.uk>
6776
6777 Reviewed by Mark Rowe.
6778
6779 http://bugs.webkit.org/show_bug.cgi?id=19656
6780 [SOUP] The gio code should call didFail() instead of
6781 didFinishLoading() in case of error
6782
6783 In case of error call didFail() instead of didReceiveResponse() and
6784 didFinishLoading().
6785
6786 * platform/network/soup/ResourceHandleSoup.cpp:
6787 (WebCore::networkErrorForFile):
6788 (WebCore::readCallback):
6789 (WebCore::openCallback):
6790 (WebCore::queryInfoCallback):
6791
mrowe@apple.com72a95b12008-08-21 04:01:51 +000067922008-08-20 Mark Rowe <mrowe@apple.com>
6793
mrowe@apple.com4e593f42008-08-21 06:52:42 +00006794 Reviewed by Jon Honeycutt.
6795
6796 Fix build failure.
6797
6798 * bridge/c/c_instance.cpp:
6799 (KJS::Bindings::CInstance::getPropertyNames): Declare count as uint32_t rather than unsigned
6800 as that is what NPEnumerationFunctionPtr is declared as accepting.
6801
68022008-08-20 Mark Rowe <mrowe@apple.com>
6803
mrowe@apple.com72a95b12008-08-21 04:01:51 +00006804 Reviewed by Dan Bernstein.
6805
6806 Build fix. Handle kCGInterpolationMedium in switch statements if it is available.
6807
6808 * platform/graphics/GraphicsContext.h:
6809 (WebCore::):
6810 * platform/graphics/cg/GraphicsContextCG.cpp:
6811 (WebCore::GraphicsContext::setImageInterpolationQuality):
6812 (WebCore::GraphicsContext::imageInterpolationQuality):
6813
mitz@apple.comaa938792008-08-21 00:33:29 +000068142008-08-20 Dan Bernstein <mitz@apple.com>
6815
6816 Rubber-stamped by John Sullivan.
6817
6818 - rename shouldUpdateWhileHidden to shouldUpdateWhileOffscreen and
6819 rename related methods and variables accordingly.
6820
6821 * WebCore.base.exp:
6822 * page/FrameView.cpp:
6823 (WebCore::FrameViewPrivate::FrameViewPrivate):
6824 (WebCore::FrameView::shouldUpdateWhileOffscreen):
6825 (WebCore::FrameView::setShouldUpdateWhileOffscreen):
6826 * page/FrameView.h:
6827 * platform/ScrollView.h:
6828 * platform/mac/ScrollViewMac.mm:
6829 (WebCore::ScrollView::updateContents):
6830
beidson@apple.com2ace6b12008-08-21 00:13:12 +000068312008-08-20 Brady Eidson <beidson@apple.com>
6832
6833 Reviewed by Mitzpettel
6834
6835 <rdar://problem/6163636> - Many images broken in Mail
6836
6837 This can be traced back to the preload scanner. With that change, CachedResources are created a lot
6838 sooner than before and confuse the WebArchive machinery.
6839
6840 When referencing WebArchive subresources directly through the WebKit API it is appropriate to ignore
6841 such CachedResources since they are placeholders and have not been submitted to the ResourceLoadDelegate
6842 machinery and nothing is known about where the data will eventually come from.
6843
6844 * loader/DocumentLoader.cpp:
6845 (WebCore::DocumentLoader::subresource): Ignore a CachedResource if its preloadResult is
6846 CachedResource::PreloadReferenced.
6847
zecke@webkit.orga8fa0e12008-08-20 22:50:39 +000068482008-08-20 Holger Hans Peter Freyther <zecke@selfish.org>
6849
6850 Unreviewed compile fix
6851
6852 Catch up with the JSValue::type elimination.
6853
6854 * bridge/qt/qt_instance.cpp:
6855 (KJS::Bindings::QtRuntimeObjectImp::construct):
6856 (KJS::Bindings::QtInstance::defaultValue):
6857 * bridge/qt/qt_runtime.cpp:
6858 (KJS::Bindings::QtRuntimeConnectionMethod::call):
6859
mrowe@apple.com2d74ec92008-08-20 22:15:53 +000068602008-08-20 Chris Teague <chris.teague@gmail.com>
6861
6862 Reviewed by Mark Rowe.
6863
6864 Fix https://bugs.webkit.org/show_bug.cgi?id=20449
6865 Bug 20449: Build fails if LOW_BANDWIDTH_DISPLAY is defined
6866
6867 * ChangeLog:
6868 * loader/FrameLoader.cpp:
6869 (WebCore::FrameLoader::switchOutLowBandwidthDisplayIfReady):
6870
simon.fraser@apple.combe1d24c2008-08-20 21:57:22 +000068712008-08-20 Simon Fraser <simon.fraser@apple.com>
6872
6873 Reviewed by Dave Hyatt
6874
6875 getComputedStyle() for webkitTransform should return a transform
6876 that does not have the transform origin baked into it.
6877 https://bugs.webkit.org/show_bug.cgi?id=20464
6878
6879 Test: fast/css/getComputedStyle-transform.html
6880
6881 * css/CSSComputedStyleDeclaration.cpp:
6882 (WebCore::computedTransform):
6883 * rendering/style/RenderStyle.cpp:
6884 (WebCore::RenderStyle::applyTransform):
6885 * rendering/style/RenderStyle.h:
6886
andersca@apple.com021ce772008-08-20 21:04:12 +000068872008-08-20 Josh Aas <joshmoz@gmail.com>
6888
6889 Reviewed and landed by Anders.
6890
6891 <rdar://problem/6163636>
6892 rename NPCocoaEvent's "event" struct to "data" (20446)
6893
6894 * bridge/npapi.h:
6895 (_NPCocoaEvent::):
6896
bdakin@apple.com699d13d2008-08-20 20:46:28 +000068972008-08-20 Beth Dakin <bdakin@apple.com>
6898
darin@apple.com07c80c62008-09-05 18:15:43 +00006899 Reviewed by Darin Adler.
bdakin@apple.com699d13d2008-08-20 20:46:28 +00006900
6901 Fix for <rdar://problem/6145626>
6902 This patch fixes a number of remaining problems getting
6903 disconnected frames to work correctly with markAllMatchesForText()
6904 and findString(). Details inline.
6905
6906 This was a static helper function in Frame, but this patch requires
6907 the same functionality in Editor, so I just added it as a function
6908 on Node.
6909 * dom/Node.cpp:
6910 (WebCore::Node::isInShadowTree):
6911 * dom/Node.h:
6912
6913 * editing/Editor.cpp:
6914 (WebCore::Editor::insideVisibleArea): Returns false if
6915 excludeFromTextSearch() is true.
6916
6917 In a normal (non-disconnected) frame, findString returns a range of
6918 the document node if the text is not found in the frame. I changed
6919 firstVisibleRange and lastVisibleRange to match that behavior when
6920 the text is not found
6921 (WebCore::Editor::firstVisibleRange):
6922 (WebCore::Editor::lastVisibleRange):
6923
6924 Here are the bulk of the changes in the patch. A lot of text was
6925 not being found in disconnected frames because I failed to account
6926 for all of the possible problems associated with shadow trees. That
6927 is fixed here.
6928 (WebCore::Editor::nextVisibleRange):
6929 * editing/Editor.h:
6930
6931 excludeFromTextSearch() is new. It allows a WebKit client to mark a
6932 frame as not-text-searchable through SPI.
6933 * WebCore.base.exp:
6934 * page/Frame.cpp:
6935 (WebCore::Frame::excludeFromTextSearch):
6936 (WebCore::Frame::setExcludeFromTextSearch):
6937 (WebCore::FramePrivate::FramePrivate):
6938 * page/Frame.h:
6939 * page/FramePrivate.h:
6940
6941 (WebCore::Frame::findString):
6942 (WebCore::Frame::markAllMatchesForText): I kept running into an
6943 assertion failure in paining code because of the forced paint on
6944 empty visible rects.
6945
timothy@apple.com301befc2008-08-20 19:10:54 +000069462008-08-20 Timothy Hatcher <timothy@apple.com>
6947
6948 Adds a positon box to the Inspector's Metrics sidebar
6949 pane. When an element is not statically positioned, there
6950 is now a position box that show top, right, bottom and
6951 left computed values.
6952
6953 Reviewed by Kevin McCullough.
6954
6955 * English.lproj/localizedStrings.js: Updated the strings.
6956 * page/inspector/MetricsSidebarPane.js:
6957 (WebInspector.MetricsSidebarPane.prototype.update):
6958 Renamed the boxPartValue function to createBoxPartElement
6959 and made it create the entire element. Made it understand
6960 how to get position style properties. Don't use the figure dash
6961 when 0px is used for positions, since the 0 is meaningful there.
6962 Instead use the figure dash when a position is auto.
6963 * page/inspector/inspector.css: Added a new rule for position.
6964
mrowe@apple.com37686d42008-09-04 00:10:39 +000069652008-08-20 Chris Fleizach <cfleizach@apple.com>
cfleizach@apple.com2a5ecc02008-08-20 18:34:56 +00006966
6967 Reviewed by Beth Dakin
6968
6969 Qt build fix
6970
6971 * WebCore.pro:
6972
mitz@apple.comedaa9042008-08-20 18:28:07 +000069732008-08-20 Dan Bernstein <mitz@apple.com>
6974
6975 Reviewed by Anders Carlsson.
6976
6977 - avoid using a deprecated NSScroller method on Leopard
6978
6979 * platform/mac/PlatformScrollBarMac.mm:
6980 (WebCore::PlatformScrollbar::updateThumbPosition):
6981 (WebCore::PlatformScrollbar::updateThumbProportion):
6982
jmalonzo@webkit.org6e0a3082008-08-20 11:40:31 +000069832008-08-20 Jan Michael Alonzo <jmalonzo@webkit.org>
6984
6985 Reviewed by Oliver Hunt.
6986
6987 Gtk build fix
6988
6989 * GNUmakefile.am:
6990 * page/AccessibilityTable.cpp: Change nil to 0
6991 (WebCore::AccessibilityTable::cellForColumnAndRow):
6992
ap@webkit.org01aff702008-08-20 07:23:06 +000069932008-08-19 Alexey Proskuryakov <ap@webkit.org>
6994
6995 Reviewed by Geoff Garen.
6996
6997 Bring back shared JSGlobalData and implicit locking, because too many clients rely on it.
6998
6999 * ForwardingHeaders/kjs/JSLock.h: Added.
7000 * WebCore.vcproj/WebCore.vcproj:
7001 * bindings/js/GCController.cpp:
7002 (WebCore::collect):
7003 (WebCore::GCController::gcTimerFired):
7004 (WebCore::GCController::garbageCollectNow):
7005 * bindings/js/JSCustomSQLStatementCallback.cpp:
7006 (WebCore::JSCustomSQLStatementCallback::handleEvent):
7007 * bindings/js/JSCustomSQLStatementErrorCallback.cpp:
7008 (WebCore::JSCustomSQLStatementErrorCallback::handleEvent):
7009 * bindings/js/JSCustomSQLTransactionCallback.cpp:
7010 (WebCore::JSCustomSQLTransactionCallback::handleEvent):
7011 * bindings/js/JSCustomSQLTransactionErrorCallback.cpp:
7012 (WebCore::JSCustomSQLTransactionErrorCallback::handleEvent):
7013 * bindings/js/JSCustomVoidCallback.cpp:
7014 (WebCore::JSCustomVoidCallback::handleEvent):
7015 * bindings/js/JSCustomXPathNSResolver.cpp:
7016 (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
7017 * bindings/js/JSDOMWindowBase.cpp:
7018 (WebCore::DOMWindowTimer::~DOMWindowTimer):
7019 (WebCore::JSDOMWindowBase::clear):
7020 (WebCore::JSDOMWindowBase::timerFired):
7021 * bindings/js/JSEventCustom.cpp:
7022 (WebCore::toJS):
7023 * bindings/js/JSEventListener.cpp:
7024 (WebCore::JSAbstractEventListener::handleEvent):
7025 * bindings/js/JSNSResolver.cpp:
7026 (WebCore::JSNSResolver::lookupNamespaceURI):
7027 * bindings/js/JSNodeFilterCondition.cpp:
7028 (WebCore::JSNodeFilterCondition::acceptNode):
7029 * bindings/js/ScheduledAction.cpp:
7030 (WebCore::ScheduledAction::execute):
7031 * bindings/js/ScriptController.cpp:
7032 (WebCore::ScriptController::evaluate):
7033 (WebCore::ScriptController::clearWindowShell):
7034 (WebCore::ScriptController::createHTMLEventHandler):
7035 (WebCore::ScriptController::createSVGEventHandler):
7036 (WebCore::ScriptController::initScript):
7037 (WebCore::ScriptController::updateDocument):
7038 (WebCore::ScriptController::bindingRootObject):
7039 (WebCore::ScriptController::windowScriptNPObject):
7040 (WebCore::ScriptController::createScriptObjectForPluginElement):
7041 (WebCore::ScriptController::clearScriptObjects):
7042 * bindings/js/ScriptControllerMac.mm:
7043 (WebCore::ScriptController::windowScriptObject):
7044 * bindings/objc/WebScriptObject.mm:
7045 (_didExecute):
7046 (-[WebScriptObject callWebScriptMethod:withArguments:]):
7047 (-[WebScriptObject evaluateWebScript:]):
7048 (-[WebScriptObject setValue:forKey:]):
7049 (-[WebScriptObject valueForKey:]):
7050 (-[WebScriptObject removeWebScriptKey:]):
7051 (-[WebScriptObject stringRepresentation]):
7052 (-[WebScriptObject webScriptValueAtIndex:]):
7053 (-[WebScriptObject setWebScriptValueAtIndex:value:]):
7054 (+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]):
7055 * bridge/NP_jsobject.cpp:
7056 (_NPN_InvokeDefault):
7057 (_NPN_Invoke):
7058 (_NPN_Evaluate):
7059 (_NPN_GetProperty):
7060 (_NPN_SetProperty):
7061 (_NPN_RemoveProperty):
7062 (_NPN_HasProperty):
7063 (_NPN_HasMethod):
7064 (_NPN_Enumerate):
7065 * bridge/c/c_class.cpp:
7066 (KJS::Bindings::CClass::~CClass):
7067 (KJS::Bindings::CClass::methodsNamed):
7068 (KJS::Bindings::CClass::fieldNamed):
7069 * bridge/c/c_instance.cpp:
7070 (KJS::Bindings::CInstance::invokeMethod):
7071 (KJS::Bindings::CInstance::invokeDefaultMethod):
7072 (KJS::Bindings::CInstance::getPropertyNames):
7073 * bridge/c/c_runtime.cpp:
7074 (KJS::Bindings::CField::valueFromInstance):
7075 (KJS::Bindings::CField::setValueToInstance):
7076 * bridge/c/c_utility.cpp:
7077 (KJS::Bindings::convertValueToNPVariant):
7078 (KJS::Bindings::convertNPVariantToValue):
7079 * bridge/jni/jni_class.cpp:
7080 (JavaClass::JavaClass):
7081 (JavaClass::~JavaClass):
7082 * bridge/jni/jni_instance.cpp:
7083 (JavaInstance::stringValue):
7084 * bridge/jni/jni_jsobject.mm:
7085 (JavaJSObject::call):
7086 (JavaJSObject::eval):
7087 (JavaJSObject::getMember):
7088 (JavaJSObject::setMember):
7089 (JavaJSObject::removeMember):
7090 (JavaJSObject::getSlot):
7091 (JavaJSObject::setSlot):
7092 (JavaJSObject::toString):
7093 (JavaJSObject::convertValueToJObject):
7094 (JavaJSObject::convertJObjectToValue):
7095 * bridge/jni/jni_objc.mm:
7096 (KJS::Bindings::dispatchJNICall):
7097 * bridge/jni/jni_runtime.cpp:
7098 (appendClassName):
7099 (JavaMethod::signature):
7100 * bridge/jni/jni_runtime.h:
7101 (KJS::Bindings::JavaString::JavaString):
7102 (KJS::Bindings::JavaString::_commonInit):
7103 (KJS::Bindings::JavaString::~JavaString):
7104 (KJS::Bindings::JavaString::UTF8String):
7105 * bridge/jni/jni_utility.cpp:
7106 (KJS::Bindings::convertValueToJValue):
7107 * bridge/npruntime.cpp:
7108 (_NPN_GetStringIdentifier):
7109 * bridge/objc/objc_instance.mm:
7110 (ObjcInstance::moveGlobalExceptionToExecState):
7111 (ObjcInstance::invokeMethod):
7112 (ObjcInstance::invokeDefaultMethod):
7113 (ObjcInstance::setValueOfUndefinedField):
7114 (ObjcInstance::getValueOfUndefinedField):
7115 * bridge/objc/objc_runtime.mm:
7116 (ObjcField::valueFromInstance):
7117 (ObjcField::setValueToInstance):
7118 * bridge/objc/objc_utility.mm:
7119 (KJS::Bindings::convertValueToObjcValue):
7120 (KJS::Bindings::convertNSStringToString):
7121 (KJS::Bindings::convertObjcValueToValue):
7122 * bridge/qt/qt_instance.cpp:
7123 (KJS::Bindings::QtRuntimeObjectImp::removeFromCache):
7124 (KJS::Bindings::QtInstance::~QtInstance):
7125 (KJS::Bindings::QtInstance::getQtInstance):
7126 (KJS::Bindings::QtInstance::getRuntimeObject):
7127 * bridge/qt/qt_runtime.cpp:
7128 (KJS::Bindings::convertValueToQVariant):
7129 (KJS::Bindings::convertQVariantToValue):
7130 (KJS::Bindings::QtRuntimeMetaMethod::call):
7131 (KJS::Bindings::QtRuntimeConnectionMethod::call):
7132 (KJS::Bindings::QtConnectionObject::QtConnectionObject):
7133 (KJS::Bindings::QtConnectionObject::execute):
7134 * bridge/runtime.cpp:
7135 (KJS::Bindings::Instance::createRuntimeObject):
7136 * bridge/testbindings.cpp:
7137 (main):
7138 * bridge/testbindings.mm:
7139 (main):
7140 * bridge/testqtbindings.cpp:
7141 (main):
7142 * dom/Document.cpp:
7143 (WebCore::Document::~Document):
7144 * dom/Node.cpp:
7145 (WebCore::Node::setDocument):
7146 * history/CachedPage.cpp:
7147 (WebCore::CachedPage::CachedPage):
7148 (WebCore::CachedPage::restore):
7149 (WebCore::CachedPage::clear):
7150 * loader/FrameLoader.cpp:
7151 (WebCore::getString):
7152 * page/InspectorController.cpp:
7153 (WebCore::ConsoleMessage::ConsoleMessage):
7154 (WebCore::XMLHttpRequestResource::XMLHttpRequestResource):
7155 (WebCore::XMLHttpRequestResource::~XMLHttpRequestResource):
7156 (WebCore::getResourceDocumentNode):
7157 (WebCore::search):
7158 (WebCore::inspectedWindow):
7159 (WebCore::wrapCallback):
7160 (WebCore::currentCallFrame):
7161 (WebCore::profiles):
7162 (WebCore::InspectorController::focusNode):
7163 (WebCore::InspectorController::inspectedWindowScriptObjectCleared):
7164 (WebCore::InspectorController::addDatabaseScriptResource):
7165 (WebCore::InspectorController::addScriptProfile):
7166 * page/JavaScriptCallFrame.cpp:
7167 (WebCore::JavaScriptCallFrame::evaluate):
7168 * page/JavaScriptProfileNode.cpp:
7169 (WebCore::getTotalTime):
7170 (WebCore::getSelfTime):
7171 (WebCore::getTotalPercent):
7172 (WebCore::getSelfPercent):
7173 (WebCore::getNumberOfCalls):
7174 (WebCore::getChildren):
7175 (WebCore::getVisible):
7176 * page/Page.cpp:
7177 * page/mac/FrameMac.mm:
7178 * plugins/PluginView.cpp:
7179 (WebCore::PluginView::start):
7180 (WebCore::getString):
7181 (WebCore::PluginView::performRequest):
7182 (WebCore::PluginView::bindingInstance):
7183 * plugins/gtk/PluginViewGtk.cpp:
7184 (WebCore::PluginView::paint):
7185 (WebCore::PluginView::handleKeyboardEvent):
7186 (WebCore::PluginView::handleMouseEvent):
7187 (WebCore::PluginView::setNPWindowRect):
7188 (WebCore::PluginView::stop):
7189 (WebCore::PluginView::init):
7190 * plugins/qt/PluginViewQt.cpp:
7191 (WebCore::PluginView::setNPWindowRect):
7192 (WebCore::PluginView::stop):
7193 (WebCore::PluginView::init):
7194 * plugins/win/PluginViewWin.cpp:
7195 (WebCore::PluginView::dispatchNPEvent):
7196 (WebCore::PluginView::handleKeyboardEvent):
7197 (WebCore::PluginView::handleMouseEvent):
7198 (WebCore::PluginView::setNPWindowRect):
7199 (WebCore::PluginView::stop):
7200 * xml/XMLHttpRequest.cpp:
7201 (WebCore::XMLHttpRequest::clearResponse):
7202 (WebCore::XMLHttpRequest::didFinishLoading):
7203 (WebCore::XMLHttpRequest::didReceiveData):
7204
eric@webkit.orgbac93762008-08-19 23:33:07 +000072052008-08-19 Eric Seidel <eric@webkit.org>
7206
7207 Reviewed by Geoff Garen.
7208
7209 Add the beginnings of Skia graphics support to WebCore
7210 as I try to begin the long process of un-forking the changes
7211 needed to WebCore to make Andriod's WebCore build.
7212
7213 I'll follow this up with actual *Skia.cpp files in a separate patch.
7214
7215 * platform/graphics/AffineTransform.h:
7216 * platform/graphics/FloatPoint.h:
7217 * platform/graphics/FloatRect.h:
7218 * platform/graphics/Gradient.h:
7219 * platform/graphics/GraphicsContext.h:
7220 * platform/graphics/Image.h:
7221 * platform/graphics/ImageBuffer.h:
7222 * platform/graphics/ImageSource.h:
7223 * platform/graphics/IntPoint.h:
7224 * platform/graphics/IntRect.h:
7225 * platform/graphics/Path.h:
7226 * platform/graphics/Pattern.h:
7227 * svg/graphics/SVGPaintServerPattern.h:
7228 * svg/graphics/SVGPaintServerSolid.h:
7229
sfalken@apple.com3f69b332008-08-19 22:34:37 +000072302008-08-19 Steve Falkenburg <sfalken@apple.com>
7231
sfalken@apple.com45d22802008-08-19 22:46:31 +00007232 Fix Windows build more.
7233
7234 * WebCore.vcproj/WebCore.vcproj:
7235
72362008-08-19 Steve Falkenburg <sfalken@apple.com>
7237
sfalken@apple.com3f69b332008-08-19 22:34:37 +00007238 Fix Windows build.
7239
7240 * page/AccessibilityRenderObject.cpp:
7241 (WebCore::AccessibilityRenderObject::canSetFocusAttribute):
7242
mrowe@apple.com37686d42008-09-04 00:10:39 +000072432008-08-19 Chris Fleizach <cfleizach@apple.com>
cfleizach@apple.com7c7b5f32008-08-19 22:05:37 +00007244
7245 Reviewed by Beth Dakin.
7246
7247 <rdar://problem/4003764> Expose tables as AXTables
7248
7249 Tests: accessibility/table-attributes.html
7250 accessibility/table-cell-spans.html
7251 accessibility/table-cells.html
7252 accessibility/table-detection.html
7253 accessibility/table-sections.html
7254 accessibility/table-with-rules.html
7255
7256 * WebCore.xcodeproj/project.pbxproj:
7257 * page/AXObjectCache.cpp:
7258 (WebCore::AXObjectCache::get):
7259 * page/AccessibilityObject.h:
7260 (WebCore::):
7261 (WebCore::AccessibilityObject::isDataTable):
7262 (WebCore::AccessibilityObject::isTableRow):
7263 (WebCore::AccessibilityObject::isTableColumn):
7264 (WebCore::AccessibilityObject::isTableCell):
7265 * page/AccessibilityRenderObject.cpp:
7266 (WebCore::AccessibilityRenderObject::canSetFocusAttribute):
7267 * page/AccessibilityTable.cpp: Added.
7268 (WebCore::AccessibilityTable::AccessibilityTable):
7269 (WebCore::AccessibilityTable::~AccessibilityTable):
7270 (WebCore::AccessibilityTable::create):
7271 (WebCore::AccessibilityTable::isTableExposableThroughAccessibility):
7272 (WebCore::AccessibilityTable::clearChildren):
7273 (WebCore::AccessibilityTable::addChildren):
7274 (WebCore::AccessibilityTable::headerContainer):
7275 (WebCore::AccessibilityTable::columns):
7276 (WebCore::AccessibilityTable::rows):
7277 (WebCore::AccessibilityTable::rowHeaders):
7278 (WebCore::AccessibilityTable::columnHeaders):
7279 (WebCore::AccessibilityTable::cells):
7280 (WebCore::AccessibilityTable::columnCount):
7281 (WebCore::AccessibilityTable::rowCount):
7282 (WebCore::AccessibilityTable::cellForColumnAndRow):
7283 (WebCore::AccessibilityTable::roleValue):
7284 (WebCore::AccessibilityTable::accessibilityIsIgnored):
7285 (WebCore::AccessibilityTable::title):
7286 (WebCore::AccessibilityTable::isDataTable):
7287 * page/AccessibilityTable.h: Added.
7288 * page/AccessibilityTableCell.cpp: Added.
7289 (WebCore::AccessibilityTableCell::AccessibilityTableCell):
7290 (WebCore::AccessibilityTableCell::~AccessibilityTableCell):
7291 (WebCore::AccessibilityTableCell::create):
7292 (WebCore::AccessibilityTableCell::accessibilityIsIgnored):
7293 (WebCore::AccessibilityTableCell::rowIndexRange):
7294 (WebCore::AccessibilityTableCell::columnIndexRange):
7295 * page/AccessibilityTableCell.h: Added.
7296 (WebCore::AccessibilityTableCell::isTableCell):
7297 (WebCore::AccessibilityTableCell::roleValue):
7298 * page/AccessibilityTableColumn.cpp: Added.
7299 (WebCore::AccessibilityTableColumn::AccessibilityTableColumn):
7300 (WebCore::AccessibilityTableColumn::~AccessibilityTableColumn):
7301 (WebCore::AccessibilityTableColumn::create):
7302 (WebCore::AccessibilityTableColumn::setParentTable):
7303 (WebCore::AccessibilityTableColumn::elementRect):
7304 (WebCore::AccessibilityTableColumn::size):
7305 (WebCore::AccessibilityTableColumn::children):
7306 (WebCore::AccessibilityTableColumn::headerObject):
7307 (WebCore::AccessibilityTableColumn::headerObjectForSection):
7308 (WebCore::AccessibilityTableColumn::addChildren):
7309 * page/AccessibilityTableColumn.h: Added.
7310 (WebCore::AccessibilityTableColumn::parentObject):
7311 (WebCore::AccessibilityTableColumn::roleValue):
7312 (WebCore::AccessibilityTableColumn::accessibilityIsIgnored):
7313 (WebCore::AccessibilityTableColumn::isTableColumn):
7314 (WebCore::AccessibilityTableColumn::setColumnIndex):
7315 (WebCore::AccessibilityTableColumn::columnIndex):
7316 * page/AccessibilityTableHeaderContainer.cpp: Added.
7317 (WebCore::AccessibilityTableHeaderContainer::AccessibilityTableHeaderContainer):
7318 (WebCore::AccessibilityTableHeaderContainer::~AccessibilityTableHeaderContainer):
7319 (WebCore::AccessibilityTableHeaderContainer::create):
7320 (WebCore::AccessibilityTableHeaderContainer::children):
7321 (WebCore::AccessibilityTableHeaderContainer::elementRect):
7322 (WebCore::AccessibilityTableHeaderContainer::size):
7323 (WebCore::AccessibilityTableHeaderContainer::addChildren):
7324 * page/AccessibilityTableHeaderContainer.h: Added.
7325 (WebCore::AccessibilityTableHeaderContainer::roleValue):
7326 (WebCore::AccessibilityTableHeaderContainer::setParentTable):
7327 (WebCore::AccessibilityTableHeaderContainer::parentObject):
7328 (WebCore::AccessibilityTableHeaderContainer::accessibilityIsIgnored):
7329 * page/AccessibilityTableRow.cpp: Added.
7330 (WebCore::AccessibilityTableRow::AccessibilityTableRow):
7331 (WebCore::AccessibilityTableRow::~AccessibilityTableRow):
7332 (WebCore::AccessibilityTableRow::create):
7333 (WebCore::AccessibilityTableRow::accessibilityIsIgnored):
7334 (WebCore::AccessibilityTableRow::headerObject):
7335 * page/AccessibilityTableRow.h: Added.
7336 (WebCore::AccessibilityTableRow::isTableRow):
7337 (WebCore::AccessibilityTableRow::roleValue):
7338 (WebCore::AccessibilityTableRow::setRowIndex):
7339 (WebCore::AccessibilityTableRow::rowIndex):
7340 * page/mac/AccessibilityObjectWrapper.mm:
7341 (-[AccessibilityObjectWrapper accessibilityAttributeNames]):
7342 (RoleEntry::):
7343 (-[AccessibilityObjectWrapper roleDescription]):
7344 (-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
7345 (-[AccessibilityObjectWrapper accessibilityParameterizedAttributeNames]):
7346 (-[AccessibilityObjectWrapper accessibilityAttributeValue:forParameter:]):
7347
sfalken@apple.comb83d4692008-08-19 18:39:44 +000073482008-08-19 Steve Falkenburg <sfalken@apple.com>
7349
7350 Build fix.
7351 Add buildfailed support to stop builds early (preventing inaccurate error messages).
7352 Add missing post-build rule to Release.
7353
7354 * WebCore.vcproj/QTMovieWin.vcproj:
7355
timothy@apple.comda3aa632008-08-19 18:33:02 +000073562008-08-19 Keishi Hattori <casey.hattori@gmail.com>
7357
timothy@apple.com7d08c322008-08-19 18:33:27 +00007358 Added support for console.count in the inspector.
7359
7360 Reviewed by Geoff Garen.
7361
7362 * page/Console.cpp:
7363 (WebCore::Console::count):
7364 * page/Console.h:
7365 * page/Console.idl: Added console.count.
7366 * page/InspectorController.cpp:
7367 (WebCore::InspectorController::didCommitLoad): Clears m_counts.
7368 (WebCore::InspectorController::count): Updates the count number
7369 sing "title@source:line" as the identifier, and adds a
7370 message to the console.
7371 * page/InspectorController.h: Added m_counts.
7372
73732008-08-19 Keishi Hattori <casey.hattori@gmail.com>
7374
timothy@apple.comda3aa632008-08-19 18:33:02 +00007375 Clear console.time timers when changing page.
7376
7377 Reviewed by Geoff Garen.
7378
7379 * page/InspectorController.cpp:
7380 (WebCore::InspectorController::didCommitLoad):
7381
adele@apple.com1f2d7e02008-08-19 17:55:58 +000073822008-08-19 Eric Carlson <eric.carlson@apple.com>
7383
7384 Reviewed by Adele.
7385
7386 Fix for <rdar://problem/6154695> Full-page movies flicker while playing
7387 https://bugs.webkit.org/show_bug.cgi?id=20404
7388
7389 Ignore setVisible() when visibility doesn't change.
7390
7391 * platform/graphics/mac/MediaPlayerPrivateQTKit.h:
7392 * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
7393 (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
7394 (WebCore::MediaPlayerPrivate::setVisible):
7395
timothy@apple.com9d9821a2008-08-19 17:00:26 +000073962008-08-19 Timothy Hatcher <timothy@apple.com>
7397
timothy@apple.come058a792008-08-19 17:01:12 +00007398 Fixes a bug in the Profile view where switching sort order, then
7399 switching from heavy to tree mode would show the tree in the
7400 previous sort order.
7401
7402 https://bugs.webkit.org/show_bug.cgi?id=20441
7403
7404 Reviewed by Kevin McCullough.
7405
7406 * page/inspector/ProfileView.js:
7407 (WebInspector.ProfileView.prototype._changeView): Call _sortProfile
7408 on the next profile before assigning it to this.profile.
7409 (WebInspector.ProfileView.prototype._sortData): Call _sortProfile.
7410 (WebInspector.ProfileView.prototype._sortProfile): Moves from
7411 _sortData and takes a profile argument. If the profile passed in
7412 matches the this.profile, then call refresh.
7413
74142008-08-18 Timothy Hatcher <timothy@apple.com>
7415
timothy@apple.come525e402008-08-19 17:01:00 +00007416 Changed the default sort order now that heavy view is the default.
7417 Also fixes a bug where the heavy profile was not sorted at first.
7418
7419 https://bugs.webkit.org/show_bug.cgi?id=20440
7420
7421 Reviewed by Kevin McCullough.
7422
7423 * page/inspector/ProfileView.js:
7424 (WebInspector.ProfileView): Changed the default sort column. Also assign
7425 heavyProfile to profile, so the sortSelfTimeDescending call happens
7426 on the heavy profile before assigning to this.profile.
7427
74282008-08-18 Timothy Hatcher <timothy@apple.com>
7429
timothy@apple.comc9287f32008-08-19 17:00:36 +00007430 Add support for editing DOM properties and scope variables by double
7431 clicking a property to enter edit mode.
7432
7433 https://bugs.webkit.org/show_bug.cgi?id=20415
7434
7435 Reviewed by Kevin McCullough.
7436
7437 * page/inspector/ObjectPropertiesSection.js:
7438 (WebInspector.ObjectPropertiesSection): Set editable to true by default.
7439 (WebInspector.ObjectPropertiesSection.prototype.onpopulate):
7440 Factored out code into update, and calls update.
7441 (WebInspector.ObjectPropertiesSection.prototype.update): Moved from onpopulate.
7442 Call removeChildren since this method can be called multiple times now.
7443 (WebInspector.ObjectPropertyTreeElement): Pass an empty title, the title
7444 gets made later in onattach.
7445 (WebInspector.ObjectPropertyTreeElement.prototype.onpopulate): Don't return early
7446 if shouldRefreshChildren is true. Call removeChildren since this method can be
7447 called multiple times now.
7448 (WebInspector.ObjectPropertyTreeElement.prototype.ondblclick): Call startEditing.
7449 (WebInspector.ObjectPropertyTreeElement.prototype.onattach): Call update.
7450 (WebInspector.ObjectPropertyTreeElement.prototype.update): Update the title for
7451 this element (code moved from the constructor.)
7452 (WebInspector.ObjectPropertyTreeElement.prototype.updateSiblings): Recreate all
7453 sibling property elements.
7454 (WebInspector.ObjectPropertyTreeElement.prototype.startEditing): Call
7455 WebInspector.startEditing after rememebring some context.
7456 (WebInspector.ObjectPropertyTreeElement.prototype.editingEnded): Reset the scrollLeft
7457 for the list element, since it might have scrolled during editing.
7458 (WebInspector.ObjectPropertyTreeElement.prototype.editingCancelled): Call editingEnded
7459 then restore the state from the context. Then call update to restore the title.
7460 (WebInspector.ObjectPropertyTreeElement.prototype.editingCommitted): Call editingCancelled
7461 if the user input and the previous input are the same. Call editingEnded, then call applyExpression
7462 to commit the user input.
7463 (WebInspector.ObjectPropertyTreeElement.prototype.applyExpression): Evaluates the input expression
7464 and stores the result on the object for the property name of this element. If the expression is
7465 empty, delete the property and remove the tree element.
7466 * page/inspector/ScopeChainSidebarPane.js:
7467 (WebInspector.ScopeChainSidebarPane.prototype.update): Set the editInSelectedCallFrameWhenPaused
7468 property on each ObjectPropertiesSection.
7469 (WebInspector.ScopeVariableTreeElement.prototype.onattach): Call ObjectPropertyTreeElement's onattach
7470 since it is now implemented.
7471 * page/inspector/ScriptsPanel.js:
7472 (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame): Added an updateInterface argument
7473 that defaults to true if omitted. It specifies whether to call update on the scope chain.
7474 * page/inspector/inspector.css: New styles.
7475 * page/inspector/treeoutline.js:
7476 (TreeElement.prototype._attach): Fixed an exception that fired when handling the shouldRefreshChildren
7477 change. The nextSibling would exist but have a _listItemNode that didn't match the new parent.
7478
74792008-08-18 Timothy Hatcher <timothy@apple.com>
7480
timothy@apple.com9d9821a2008-08-19 17:00:26 +00007481 Surround the expression to be evaluated in parenthesis so the
7482 result of the eval is the result of the whole expression not
7483 the last potential sub-expression. So evaluating {x: 123}
7484 will show the Object not 123.
7485
7486 https://bugs.webkit.org/show_bug.cgi?id=20428
7487
7488 Reviewed by Kevin McCullough.
7489
7490 * page/inspector/Console.js:
7491 (Console.prototype._evalInInspectedWindow): Add parenthesis
7492 around the expression. And add couple comments.
7493
kmccullough@apple.come8ac2f32008-08-19 16:38:06 +000074942008-08-19 Kevin McCullough <kmccullough@apple.com>
7495
7496 Reviewed by Geoff.
7497
7498 -Implement a page() function to extract a common code pattern.
7499
7500 * WebCore.xcodeproj/project.pbxproj:
7501 * page/Console.cpp:
7502 (WebCore::Console::addMessage):
7503 (WebCore::Console::error):
7504 (WebCore::Console::info):
7505 (WebCore::Console::log):
7506 (WebCore::Console::dir):
7507 (WebCore::Console::assertCondition):
7508 (WebCore::Console::time):
7509 (WebCore::Console::timeEnd):
7510 (WebCore::Console::group):
7511 (WebCore::Console::groupEnd):
7512 (WebCore::Console::finishedProfiling):
7513 (WebCore::Console::warn):
7514 (WebCore::Console::framePage):
7515 * page/Console.h:
7516
darin@apple.com349e1eb2008-08-19 04:39:04 +000075172008-08-12 Darin Adler <darin@apple.com>
7518
7519 Reviewed by Geoff.
7520
7521 - eliminate JSValue::type()
7522
7523 * bridge/c/c_instance.cpp:
7524 (KJS::Bindings::CInstance::defaultValue): Take PreferredPrimitiveType
7525 argument instead of JSType argument. Removed unneeded code to handle
7526 boolean, since that's never passed.
7527 * bridge/c/c_instance.h: Ditto.
7528
7529 * bridge/c/c_utility.cpp:
7530 (KJS::Bindings::convertValueToNPVariant): Use JSValue::is functions
7531 instead of JSValue::type(). Removed unneeded code to handle
7532 "unspecified".
7533
7534 * bridge/jni/jni_instance.cpp:
7535 (JavaInstance::defaultValue): Take PreferredPrimitiveType argument
7536 instead of JSType argument. Removed unneeded code to handle boolean.
7537 * bridge/jni/jni_instance.h: Ditto.
7538
7539 * bridge/jni/jni_jsobject.mm:
7540 (JavaJSObject::convertValueToJObject): Use JSValue::is functions
7541 instead of JSValue::type().
7542
7543 * bridge/objc/objc_instance.h: Take PreferredPrimitiveType argument
7544 instead of JSType argument. Removed unused argument.
7545 * bridge/objc/objc_instance.mm:
7546 (ObjcInstance::getValueOfUndefinedField): Removed unused argument.
7547 (ObjcInstance::defaultValue): Take PreferredPrimitiveType argument
7548 instead of JSType argument. Removed unneeded code to handle boolean
7549 and another dead code path for unknown types.
7550
7551 * bridge/objc/objc_runtime.h: Take PreferredPrimitiveType argument
7552 instead of JSType argument. Removed override of type() that caused
7553 the fallback object to return "UndefinedType" when there is no
7554 invokeUndefinedMethodFromWebScript:withArguments: method defined.
7555 That didn't accomplish much, since most checks for undefined don't
7556 ever call type().
7557 * bridge/objc/objc_runtime.mm:
7558 (ObjcFallbackObjectImp::defaultValue): Ditto.
7559
7560 * bridge/qt/qt_instance.cpp:
7561 (KJS::Bindings::QtInstance::defaultValue): Take PreferredPrimitiveType
7562 argument instead of JSType argument. Removed unneeded code to handle
7563 boolean.
7564 * bridge/qt/qt_instance.h: Ditto.
7565
7566 * bridge/runtime.h:
7567 (KJS::Bindings::Instance::getValueOfUndefinedField): Removed
7568 unsed argument.
7569 * bridge/runtime_object.cpp:
7570 (RuntimeObjectImp::defaultValue): Take PreferredPrimitiveType
7571 argument instead of JSType argument.
7572 * bridge/runtime_object.h: Ditto.
7573
britto@apple.comaf7f8382008-08-19 00:42:13 +000075742008-08-18 Maxime Britto <britto@apple.com>
7575
7576 Reviewed by Adele.
7577
7578 <rdar://6157207> Mouse pointer does not change when new window is opened after pan-scrolling original window
7579 Related to the discussion from rdar://6102511 , we should disable every key event (except for the esc key which stops the panning).
7580 We shouldn't be able to create another window while we are in pan scrolling.
7581 Other browsers behaviors :
7582 FF3 : Most of the keys are disabled, there is no way to create another window while in panscroll mode
7583 IE7 : Keys are not disabled but stops immediately the panning.
7584 This patch matches FF3 behavior by disabling every key but the esc key.
7585
7586 * page/EventHandler.cpp:
7587 (WebCore::EventHandler::stopAutoscrollTimer): Change the cursor back to the regular arrow cursor when the pannning is stopped.
7588 (WebCore::EventHandler::keyEvent): When a key event is received while in panning or autoscroll we swallow the event early.
7589
mitz@apple.com12404d82008-08-19 00:20:38 +000075902008-08-18 Dan Bernstein <mitz@apple.com>
7591
7592 Reviewed by Dave Hyatt.
7593
7594 - fix <rdar://problem/5862634> REGRESSION (3.1.1): In iChat, inline image not resizable past current size after another IM is received
7595
7596 Test: fast/replaced/max-width-percent.html
7597
7598 Added an includeMaxWidth boolean to RenderBox::calcReplaedWidth().
7599 When false, max-width is not factored into the
7600 calculation.
7601 Changed RenderReplaced and subclasses' calcPrefWidths() to call
7602 calcReplacedWidth(false) and then apply max-width only if it has a
7603 fixed, positive value.
7604
7605 * rendering/RenderBox.cpp:
7606 (WebCore::RenderBox::calcReplacedWidth):
7607 * rendering/RenderBox.h:
7608 * rendering/RenderImage.cpp:
7609 (WebCore::RenderImage::calcReplacedWidth):
7610 (WebCore::RenderImage::calcPrefWidths):
7611 * rendering/RenderImage.h:
7612 * rendering/RenderReplaced.cpp:
7613 (WebCore::RenderReplaced::calcPrefWidths):
7614 * rendering/RenderSVGRoot.cpp:
7615 (WebCore::RenderSVGRoot::calcPrefWidths):
7616 * rendering/RenderVideo.cpp:
7617 (WebCore::RenderVideo::calcReplacedWidth):
7618 (WebCore::RenderVideo::calcPrefWidths):
7619 * rendering/RenderVideo.h:
7620
mrowe@apple.comced88732008-08-18 22:47:28 +000076212008-08-18 Daniel Macks <dmacks@netspace.org>
7622
7623 Reviewed by Mark Rowe.
7624
7625 https://bugs.webkit.org/show_bug.cgi?id=20410
7626 More portable/self-documenting replacement for SIZE_MAX.
7627
7628 * platform/network/curl/FormDataStreamCurl.cpp:
7629 (WebCore::FormDataStream::read):
7630
76312008-08-18 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com6040db32008-08-18 22:11:10 +00007632
7633 Reviewed by Dave Hyatt
7634
7635 Need to make sure we have an Animation in the AnimationList
7636 before setting the initial value.
7637 https://bugs.webkit.org/show_bug.cgi?id=20408
7638
7639 Test: fast/css/transition_shorthand_parsing.html
7640
7641 * css/CSSStyleSelector.cpp:
7642
kmccullough@apple.com64cb2fd2008-08-18 19:55:35 +000076432008-08-18 Kevin McCullough <kmccullough@apple.com>
7644
kmccullough@apple.com707bd362008-08-18 20:21:57 +00007645 Reviewed by Tim.
7646
7647 <rdar://problem/6150593> JSProfiler: Empty profiles disappear when there
7648 is another profile.
7649
7650 * page/inspector/ProfilesPanel.js:
7651
76522008-08-18 Kevin McCullough <kmccullough@apple.com>
7653
kmccullough@apple.com64cb2fd2008-08-18 19:55:35 +00007654 Reviewed by Geoff.
7655
7656 <rdar://problem/6150642> REGRESSION: Closing the Web Inspector clears
7657 all console messages
7658
7659 * page/inspector/Console.js:
7660
jmalonzo@webkit.org5d1e0482008-08-18 11:20:11 +000076612008-08-18 Dirk Schulze <vbs85@gmx.de>
7662
7663 Reviewed by Eric Seidel.
7664
7665 Fixed Canvas for Cairo. Stroke and fill colors didn't work after
7666 the canvas clean up.
7667
7668 https://bugs.webkit.org/show_bug.cgi?id=20405
7669
7670 * html/CanvasRenderingContext2D.cpp:
7671 (WebCore::CanvasRenderingContext2D::fill):
7672 (WebCore::CanvasRenderingContext2D::stroke):
7673 (WebCore::CanvasRenderingContext2D::fillRect):
7674
timothy@apple.comc5e1f8d2008-08-18 03:21:46 +000076752008-08-17 Timothy Hatcher <timothy@apple.com>
7676
7677 Complete in scope variables in the Console when paused.
7678
7679 https://bugs.webkit.org/show_bug.cgi?id=19115
7680
7681 Reviewed by Geoffrey Garen.
7682
7683 * page/inspector/Console.js:
7684 (WebInspector.Console.prototype.completions): If the expressionString
7685 is null or empty and the debugger is paused, call variablesInScopeForSelectedCallFrame
7686 to get an object that declares all the in scope variables. That way
7687 "top level" expressions are completed.
7688 * page/inspector/ScriptsPanel.js:
7689 (WebInspector.ScriptsPanel.prototype.variablesInScopeForSelectedCallFrame):
7690 Return an object that has all the variables that are in scope for the
7691 selected call frame. The value of each property is just true.
7692 The return object is useful for quick lookups or auto completion.
7693
cwzwarich@webkit.orgac715282008-08-17 21:34:46 +000076942008-08-17 Cameron Zwarich <cwzwarich@uwaterloo.ca>
7695
7696 Not reviewed.
7697
7698 Speculative Qt build fix.
7699
7700 * bridge/qt/qt_runtime.cpp:
7701 (KJS::Bindings::convertValueToQVariant):
7702 (KJS::Bindings::QtRuntimeMethod::QtRuntimeMethod):
7703
ggaren@apple.comfea43532008-08-17 20:23:49 +000077042008-08-17 Geoffrey Garen <ggaren@apple.com>
7705
7706 Reviewed by Cameron Zwarich.
ggaren@apple.com6e53d0a2008-08-17 20:28:37 +00007707
7708 Updated project files to XCode 3.1.
7709
7710 * manual-tests/NPN_Invoke/NPN_Invoke.xcodeproj/project.pbxproj:
7711
77122008-08-17 Geoffrey Garen <ggaren@apple.com>
7713
7714 Reviewed by Cameron Zwarich.
ggaren@apple.comfea43532008-08-17 20:23:49 +00007715
7716 Made room for a free word in JSCell.
7717
7718 Changed JSDOMWindowBase to store its auxiliary data in a subclass of
7719 JSGlobalData, so the two could share a pointer.
7720
7721 Added a bunch of ASSERTs, to help catch over-sized objects.
7722
mrowe@apple.com13570292008-08-16 06:48:10 +000077232008-08-15 Mark Rowe <mrowe@apple.com>
7724
mitz@apple.comb96c1b92008-08-17 03:28:52 +00007725 Reviewed by Dan Bernstein.
7726
7727 Disable dead code stripping in debug builds.
7728
7729 * Configurations/Base.xcconfig:
7730 * WebCore.xcodeproj/project.pbxproj:
7731
77322008-08-15 Mark Rowe <mrowe@apple.com>
7733
mrowe@apple.com13570292008-08-16 06:48:10 +00007734 Rubber-stamped by Geoff Garen.
7735
7736 <rdar://problem/6139914> Please include a _debug version of JavaScriptCore framework
7737
7738 * Configurations/Base.xcconfig: Factor out the debug-only settings so that they can shared
7739 between the Debug configuration and debug Production variant.
7740 * WebCore.xcodeproj/project.pbxproj: Enable the debug variant.
7741
antti@apple.coma05e8b02008-08-15 22:58:06 +000077422008-08-15 Antti Koivisto <antti@apple.com>
7743
7744 Reviewed by Anders.
7745
7746 Don't start preloading body resources before the head is complete. This prevents
7747 body preloads from slowing down initial display when there is limited amount
7748 of bandwidth available.
7749
7750 Works by queuing up found body preloads to DocLoader and only issuing them
7751 after document has rendering.
7752
7753 With bandwidth capped to 300kbit/s this speeds up cnn.com initial display by ~25% or 5s
7754 without affecting complete load time.
7755
7756 * html/PreloadScanner.cpp:
7757 (WebCore::PreloadScanner::PreloadScanner):
7758 (WebCore::PreloadScanner::scanningBody):
7759 (WebCore::PreloadScanner::emitTag):
7760 (WebCore::PreloadScanner::emitCSSRule):
7761 * html/PreloadScanner.h:
7762 * loader/DocLoader.cpp:
7763 (WebCore::DocLoader::preload):
7764 (WebCore::DocLoader::checkForPendingPreloads):
7765 (WebCore::DocLoader::requestPreload):
7766 * loader/DocLoader.h:
7767 * loader/loader.cpp:
7768 (WebCore::Loader::Host::didFinishLoading):
7769 (WebCore::Loader::Host::didFail):
7770
adachan@apple.com94ac38d2008-08-15 21:08:40 +000077712008-08-15 Ada Chan <adachan@apple.com>
7772
7773 Use item's computed style if the render style is 0 before falling back to the <select>'s style.
7774 This way style set on an <hr> within a <select> will be honored.
7775
7776 Reviewed by Dave Hyatt and Dan Bernstein.
7777
7778 * rendering/RenderMenuList.cpp:
7779 (WebCore::RenderMenuList::itemStyle):
7780
antti@apple.com9f7911472008-08-15 20:48:06 +000077812008-08-15 Antti Koivisto <antti@apple.com>
7782
7783 Reviewed by Oliver.
7784
7785 Some loader performance tweaks:
7786 - Make stylesheets highest priority instead of scripts. We block script execution on stylesheets.
7787 Especially if a stylesheet @imports other stylesheets it is important to get them to the front of the queue
7788 to not delay rendering.
7789 - Issue the first resource load for a host immediately even if the resource is low priority. TCP connection setup
7790 can take long time when latency is high so it is good to get started early.
7791 - When the document is fully parsed and stylesheets have been loaded there is no need to keep managing the
7792 load queues. Issue remaining loads to the network layer.
7793
7794 * loader/loader.cpp:
7795 (WebCore::Loader::determinePriority):
7796 (WebCore::Loader::load):
7797 (WebCore::Loader::Host::servePendingRequests):
7798 * loader/loader.h:
7799
timothy@apple.com2d974c32008-08-15 18:35:39 +000078002008-08-15 Timothy Hatcher <timothy@apple.com>
7801
7802 Detach the script debugger when the Web Inspector's window closes.
7803 This has always been the intended design, but never fully implemented.
7804
7805 https://bugs.webkit.org/show_bug.cgi?id=20402
7806
7807 Reviewed by Adam Roben.
7808
7809 * page/InspectorController.cpp:
7810 (WebCore::InspectorController::setWindowVisible): Call stopDebugging()
7811 if the window is no longer visible.
7812
hausmann@webkit.orgbb4b9142008-08-15 18:11:34 +000078132008-08-15 HÃ¥vard Wall <hwall@trolltech.com>
7814
7815 Reviewed by Simon.
7816
hausmann@webkit.org58144a72008-08-15 18:12:08 +00007817 Fixes: compile with QT_NO_CONTEXTMENU
7818
7819 * platform/qt/PlatformMouseEventQt.cpp:
7820 (WebCore::PlatformMouseEvent::PlatformMouseEvent):
7821 * platform/qt/PlatformScrollBarQt.cpp:
7822 (WebCore::PlatformScrollbar::handleMouseMoveEvent):
7823 (WebCore::PlatformScrollbar::handleContextMenuEvent):
7824
78252008-08-15 HÃ¥vard Wall <hwall@trolltech.com>
7826
7827 Reviewed by Simon.
7828
hausmann@webkit.orgbb4b9142008-08-15 18:11:34 +00007829 Fixes: compile with QT_NO_WHEELEVENT
7830
7831 * platform/qt/WheelEventQt.cpp:
7832 (WebCore::PlatformWheelEvent::PlatformWheelEvent):
7833
timothy@apple.com4889e612008-08-15 17:06:14 +000078342008-08-15 Keishi Hattori <casey.hattori@gmail.com>
7835
timothy@apple.comd64639c2008-08-15 17:48:36 +00007836 Fixed Bug 20210: Console groups are incorrect when closing and reopening the Inspector
7837
7838 https://bugs.webkit.org/show_bug.cgi?id=20210
7839
7840 Reviewed by Tim Hatcher.
7841
7842 * page/Console.cpp:
7843 (WebCore::Console::group):
7844 (WebCore::Console::groupEnd):
7845 * page/Console.h:
7846 (WebCore::): Removed GroupTitleMessageLevel. Added StartGroupMessaageLevel and EndGroupMessageLevel.
7847 * page/InspectorController.cpp:
7848 (WebCore::InspectorController::startGroup): Increments group level by
7849 one and adds console message with StartGroupMessaageLevel.
7850 (WebCore::InspectorController::endGroup): Decrements group level by one
7851 and adds console message with EndGroupMessaageLevel.
7852 * page/InspectorController.h:
7853 * page/inspector/Console.js:
7854 (WebInspector.Console.prototype.addMessage): Creates new ConsoleGroup
7855 if the message is StartGroupMessaageLevel.
7856 (WebInspector.ConsoleMessage.prototype.toMessageElement):
7857 (WebInspector.ConsoleGroup.prototype.addMessage):
7858 * page/inspector/inspector.js:
7859
78602008-08-15 Keishi Hattori <casey.hattori@gmail.com>
7861
timothy@apple.com7310b6a2008-08-15 17:35:22 +00007862 Adds support for console.dir to the Inspector
7863
7864 https://bugs.webkit.org/show_bug.cgi?id=19155
7865
7866 Reviewed by Tim Hatcher.
7867
7868 * bindings/js/JSConsoleCustom.cpp:
7869 (WebCore::JSConsole::dir):
7870 * page/Console.cpp:
7871 (WebCore::Console::dir):
7872 * page/Console.h: Added ObjectMessageLevel.
7873 * page/Console.idl: Added console.dir.
7874 * page/inspector/Console.js:
7875 (WebInspector.ConsoleMessage.prototypet.toMessageElement): Creates an
7876 ObjectPropertiesSection if the MessageLevel is Object.
7877 * page/inspector/ObjectPropertiesSection.js: "in" operator can't be
7878 used on primitive data types.
7879 * page/inspector/inspector.css:
7880
78812008-08-15 Keishi Hattori <casey.hattori@gmail.com>
7882
timothy@apple.com4889e612008-08-15 17:06:14 +00007883 Adds support for clear() in the Inspector console.
7884
7885 https://bugs.webkit.org/show_bug.cgi?id=19873
7886
7887 Reviewed by Tim Hatcher.
7888
7889 * page/inspector/Console.js:
7890
timothy@apple.com12c5b5d2008-08-15 17:02:44 +000078912008-08-15 Anthony Ricaud <rik24d@gmail.com>
7892
7893 Cmd-F on Mac or Ctrl-F on other platforms now focus the search field.
7894
7895 Platform distinction and modifier key matching adjusted
7896 by Daniel Jalkut <jalkut@red-sweater.com>
7897
7898 Bug 16313: text search (find) keybindings should work in the Web Inspector
7899 https://bugs.webkit.org/show_bug.cgi?id=16313
7900
7901 Reviewed by Tim Hatcher.
7902
7903 * page/inspector/inspector.js: Added a case for the F key
7904
timothy@apple.coma5ba4392008-08-15 16:50:26 +000079052008-08-15 Keishi Hattori <casey.hattori@gmail.com>
7906
7907 Fix for error when the string doesn't contain a webkit-profile link.
7908
7909 https://bugs.webkit.org/show_bug.cgi?id=20399
7910
7911 Reviewed by Tim Hatcher.
7912
7913 * page/inspector/inspector.js:
7914
timothy@apple.com895b2652008-08-15 16:33:27 +000079152008-08-15 Timothy Hatcher <timothy@apple.com>
7916
7917 Fixes two bugs where JavaScript could be executed from the page
7918 while the debugger is paused.
7919
7920 The first issue was JSLazyEventListener not checking the paused
7921 state before parsing the code.
7922
7923 The second issue was with the PageGroup version of
7924 JavaScriptDebugServer::setJavaScriptPaused always passing false
7925 to the Page version of JavaScriptDebugServer::setJavaScriptPaused,
7926 and not the paused argument.
7927
7928 https://bugs.webkit.org/show_bug.cgi?id=20284
7929
7930 Reviewed by Adam Roben.
7931
7932 * bindings/js/JSEventListener.cpp:
7933 (WebCore::JSLazyEventListener::parseCode): Check the paused
7934 state of the ScriptController. Return early if paused.
7935 * manual-tests/inspector/debugger-execution-while-paused.html: Added.
7936 * page/JavaScriptDebugServer.cpp:
7937 (WebCore::JavaScriptDebugServer::setJavaScriptPaused):
7938 Pass the paused argument to the Page version of setJavaScriptPaused.
7939
ap@webkit.orgbe495d32008-08-15 07:43:48 +000079402008-08-15 Alexey Proskuryakov <ap@webkit.org>
7941
7942 Reviewed by Geoff Garen.
7943
7944 JSStringRef is created context-free, but can get linked to one via an identifier table,
7945 breaking an implicit API contract.
7946
7947 * page/InspectorController.cpp:
7948 (WebCore::jsStringRef):
7949 (WebCore::InspectorController::didParseSource):
7950 (WebCore::InspectorController::failedToParseSource):
7951 * page/JavaScriptProfile.cpp:
7952 (WebCore::getTitleCallback):
7953 Updated for JavaScriptCore changes.
7954
kevino@webkit.org8fe09ff2008-08-15 05:10:57 +000079552008-08-14 Kevin Ollivier <kevino@theolliviers.com>
7956
7957 wx !USE(WXGC) build fix. This is necessary until we find a way to replace GDI with
7958 an alternative that performs reasonably well. (GDI+ is too slow in many cases.)
7959
7960 * platform/graphics/AffineTransform.h:
7961
adele@apple.com2b2e2f82008-08-15 00:53:36 +000079622008-08-14 Eric Carlson <eric.carlson@apple.com>
7963
7964 Reviewed by Adele.
7965
7966 Fix for https://bugs.webkit.org/show_bug.cgi?id=20388
7967 <video> elements on Windows never becomes visible when a page is restored from the cache
7968
7969 Always pass "set" calls down to MediaPlayerPrivate instead of only when the
7970 value is different from the cached value. Let the implementation decide when
7971 to avoid work because nothing has changed.
7972
7973 * platform/graphics/MediaPlayer.cpp:
7974 (WebCore::MediaPlayer::setVolume):
7975 (WebCore::MediaPlayer::setRate):
7976 (WebCore::MediaPlayer::setRect):
7977 (WebCore::MediaPlayer::setVisible):
7978
timothy@apple.comda810f42008-08-14 23:57:14 +000079792008-08-14 Keishi Hattori <casey.hattori@gmail.com>
7980
7981 Make Firebug command line API respect predefined variables.
7982
timothy@apple.com90751f02008-08-14 23:58:19 +00007983 https://bugs.webkit.org/show_bug.cgi?id=20385
7984
timothy@apple.comda810f42008-08-14 23:57:14 +00007985 Reviewed by Tim Hatcher.
7986
7987 * page/inspector/Console.js:
7988
weinig@apple.com4b51d002008-08-14 23:33:22 +000079892008-08-14 Sam Weinig <sam@webkit.org>
7990
7991 Reviewed by Geoffrey Garen and Timothy Hatcher.
7992
7993 Allow programatically setting the HTMLTokenizers time delay and chunk size
7994 which are used for determining how aggressively we yield.
7995
7996 * WebCore.base.exp:
7997 * html/HTMLTokenizer.cpp:
7998 (WebCore::HTMLTokenizer::begin):
7999 (WebCore::HTMLTokenizer::continueProcessing):
8000 * html/HTMLTokenizer.h:
8001 * page/Page.cpp:
8002 (WebCore::Page::Page):
8003 (WebCore::Page::setCustomHTMLTokenizerTimeDelay):
8004 (WebCore::Page::setCustomHTMLTokenizerChunkSize):
8005 * page/Page.h:
8006 (WebCore::Page::hasCustomHTMLTokenizerTimeDelay):
8007 (WebCore::Page::customHTMLTokenizerTimeDelay):
8008 (WebCore::Page::hasCustomHTMLTokenizerChunkSize):
8009 (WebCore::Page::customHTMLTokenizerChunkSize):
8010
eric@webkit.org89613d22008-08-14 23:19:17 +000080112008-08-14 Eric Seidel <eric@webkit.org>
8012
eric@webkit.org7e897c32008-08-14 23:20:00 +00008013 Reviewed by Beth.
8014
8015 Move us one step closer to cross-platform svg/graphics code
8016
8017 * WebCore.xcodeproj/project.pbxproj:
8018 * html/CanvasStyle.cpp:
8019 * platform/graphics/Color.cpp:
8020 (WebCore::colorWithOverrideAlpha):
8021 * platform/graphics/Color.h:
8022 * svg/graphics/cg/CgSupport.cpp:
8023 (WebCore::applyStrokeStyleToContext):
8024 (WebCore::strokeBoundingBox):
8025 * svg/graphics/cg/SVGPaintServerSolidCg.cpp:
8026 (WebCore::SVGPaintServerSolid::setup):
8027
80282008-08-14 Eric Seidel <eric@webkit.org>
8029
eric@webkit.org4f490652008-08-14 23:19:31 +00008030 Reviewed by Alexey.
8031
eric@webkit.org73fa9d12008-08-14 23:19:44 +00008032 Remove un-need includes from HTMLCanvas and use the
8033 Gradient platform abstraction in one place in CanvasStyle
8034
8035 * html/CanvasRenderingContext2D.cpp:
8036 (WebCore::CanvasRenderingContext2D::fillRect):
8037 * html/CanvasStyle.cpp:
8038 * html/HTMLCanvasElement.cpp:
8039
80402008-08-14 Eric Seidel <eric@webkit.org>
8041
8042 Reviewed by Alexey.
8043
eric@webkit.org4f490652008-08-14 23:19:31 +00008044 Clean up GlyphBuffer.h, removing more #ifdefs
8045
8046 * platform/graphics/GlyphBuffer.h:
8047 (WebCore::GlyphBuffer::glyphAt):
8048 (WebCore::GlyphBuffer::advanceAt):
8049 (WebCore::GlyphBuffer::add):
8050
80512008-08-14 Eric Seidel <eric@webkit.org>
8052
eric@webkit.org89613d22008-08-14 23:19:17 +00008053 Reviewed by Sam.
8054
8055 Clean up AffineTransform.h, removing #ifdefs
8056
8057 * platform/graphics/AffineTransform.h:
8058 * platform/graphics/cairo/AffineTransformCairo.cpp:
8059 * platform/graphics/cg/AffineTransformCG.cpp:
8060 * platform/graphics/qt/AffineTransformQt.cpp:
8061 * platform/graphics/wx/AffineTransformWx.cpp:
8062
mitz@apple.com551d6252008-08-14 23:08:09 +000080632008-08-14 Dan Bernstein <mitz@apple.com>
8064
mitz@apple.com94c1a7d2008-08-14 23:12:34 +00008065 - fix non-CG builds by adding an ImageSource::frameSizeAtIndex() that returns size().
8066
8067 * platform/graphics/cairo/ImageSourceCairo.cpp:
8068 (WebCore::ImageSource::frameSizeAtIndex):
8069 * platform/graphics/qt/ImageSourceQt.cpp:
8070 (WebCore::ImageSource::frameSizeAtIndex):
8071 * platform/graphics/wx/ImageSourceWx.cpp:
8072 (WebCore::ImageSource::frameSizeAtIndex):
8073
80742008-08-14 Dan Bernstein <mitz@apple.com>
8075
mitz@apple.com551d6252008-08-14 23:08:09 +00008076 Reviewed by Brady Eidson.
8077
8078 - fix <rdar://problem/5993323> REGRESSION (r34210): Apple.com favicon appears stretched/clipped
8079
8080 * platform/graphics/BitmapImage.cpp:
8081 (WebCore::BitmapImage::BitmapImage): Added initialization of
8082 m_hasUniformFrameSize.
8083 (WebCore::BitmapImage::cacheFrame): Added code to get the size of the
8084 cached frame for use in decoded size computation and for setting
8085 m_hasUniformFrameSize.
8086 (WebCore::BitmapImage::currentFrameSize): Added.
8087 (WebCore::BitmapImage::dataChanged): Added code to reset
8088 m_hasUniformFrameSize.
8089 * platform/graphics/BitmapImage.h: Added currentFrameSize() and
8090 m_hasUniformFrameSize.
8091 * platform/graphics/ImageSource.h: Added frameSizeAtIndex().
8092 * platform/graphics/cg/ImageCG.cpp:
8093 (WebCore::BitmapImage::draw): Changed to use currentFrameSize(). This
8094 fixes the bug, which resulted from assuming that the frame being drawn
8095 was the same size as the first frame.
8096 * platform/graphics/cg/ImageSourceCG.cpp:
8097 (WebCore::ImageSource::frameSizeAtIndex): Renamed size() to this and
8098 changed to get the size of the frame at the given index.
8099 (WebCore::ImageSource::size): Added. Returns frameSizeAtIndex(0).
8100
simon.fraser@apple.com50954e52008-08-14 23:04:41 +000081012008-08-13 Simon Fraser <simon.fraser@apple.com>
8102
8103 Reviewed by Eric Seidel
8104
8105 Fix @font-face inside @media rule crash.
8106 https://bugs.webkit.org/show_bug.cgi?id=20367
8107
8108 Test: fast/css/font-face-in-media-rule.html
8109
8110 * css/CSSStyleSelector.cpp:
8111 (WebCore::CSSRuleSet::addRulesFromSheet):
8112
kevino@webkit.org141c4602008-08-14 22:52:55 +000081132008-08-14 Kevin Ollivier <kevino@theolliviers.com>
8114
8115 wx build fixes after recent changes to Canvas and Image classes.
8116
8117 * platform/graphics/Pattern.h:
8118 * platform/graphics/wx/GradientWx.cpp:
8119 (WebCore::Gradient::fill):
8120 * platform/graphics/wx/GraphicsContextWx.cpp:
8121 (WebCore::GraphicsContext::applyFillPattern):
8122 (WebCore::GraphicsContext::applyStrokePattern):
8123 * platform/graphics/wx/ImageBufferWx.cpp:
8124 (WebCore::ImageBuffer::image):
8125 * platform/graphics/wx/ImageWx.cpp:
8126 (WebCore::Image::loadPlatformResource):
8127
britto@apple.comd7008662008-08-14 19:26:02 +000081282008-08-14 Maxime Britto <britto@apple.com>
8129
8130 Reviewed by Sam Weinig.
8131
8132 rdar://6102511
8133 When pan-scrolling, typing on the keyboard should either stop the pan scroll or be ignored
8134 IE and FF are both preventing the keyboard event to interact with the page while scrolling.
8135 Some differences exist between them concerning the kind of key which is pressed :
8136 IE7 : every key leads to a stop of the panning
8137 FF3 : the ESC and TAB keys leads to a stop, the other keys are inactive.
8138 For WebKit this patch is adopting the FF3 behavior except for the TAB key which is inactive too.
8139
8140 * page/EventHandler.cpp:
8141 (WebCore::EventHandler::keyEvent): Verifies which key has been hit and decide either to stop the pan scroll or to swallow the key event.
8142
christian@webkit.org0e20f322008-08-14 19:14:47 +000081432008-08-14 Christian Dywan <christian@twotoasts.de>
8144
8145 Gtk+/ Cairo build fix, patch by Dirk Schulze.
8146
8147 * html/CanvasStyle.cpp:
8148 * platform/graphics/cairo/PatternCairo.cpp:
8149 (WebCore::Pattern::createPlatformPattern):
8150 * svg/graphics/cairo/SVGResourceMaskerCairo.cpp:
8151
kmccullough@apple.comd2b50f12008-08-14 18:11:20 +000081522008-08-14 Kevin McCullough <kmccullough@apple.com>
8153
8154 Reviewed by Tim.
8155
8156 <rdar://problem/6115819> Notify of profile in console
8157
8158 * page/InspectorController.cpp:
8159 (WebCore::InspectorController::addProfile):
8160 (WebCore::InspectorController::addProfileMessageToConsole): Called by
8161 addProfile this is the function that adds a message to the console that
8162 a profile finished.
8163 * page/InspectorController.h:
8164 * page/JavaScriptProfile.cpp: Expose the profiler's unique ID to match
8165 the console log to the profile in the web inspector.
8166 (WebCore::getUniqueIdCallback):
8167 (WebCore::ProfileClass):
8168 * page/inspector/ProfilesPanel.js: Created a map of all the profiles by
8169 Id to bring up the requested profile. Also select and reveal the
8170 profile in the profile panel. And created displayTitleForProfileLink()
8171 which formats a title taking into account if it's user initiated or if
8172 there are multiples. Lasty, I put the user initiated profile in a
8173 variable.
8174 * page/inspector/inspector.js: Make the profile title be a clickable
8175 link that will take the user to the identified profile. Also expose
8176 the count of user initiated profiles so they can be displayed in the
8177 console with the correct count.
8178
timothy@apple.comcd7f0f32008-08-14 17:41:05 +000081792008-08-14 Timothy Hatcher <timothy@apple.com>
8180
8181 Avoid formating ConsoleMessages twice unless the message will be
8182 displayed in bubbles of a SourceFrame.
8183
8184 Reviewed by Kevin McCullough.
8185
8186 * page/inspector/Console.js:
8187 (WebInspector.ConsoleMessage): Only format the plain text message
8188 if the URL and line are valid and the level is error or warning.
8189 (WebInspector.ConsoleMessage.prototype.isErrorOrWarning): Added.
8190 Helper to test for error or warning level.
8191 * page/inspector/SourceFrame.js:
8192 (WebInspector.SourceFrame.prototype.addMessage): Don't add the
8193 message if there is no message or valid line or if the msg
8194 isn't an error or warning.
8195
jmalonzo@webkit.orgb469bb72008-08-14 15:07:41 +000081962008-08-14 Jan Michael Alonzo <jmalonzo@webkit.org>
8197
8198 partial Gtk build fix, not reviewed
8199
8200 * platform/graphics/cairo/PatternCairo.cpp:
8201
weinig@apple.com45e83142008-08-14 04:49:30 +000082022008-08-13 Sam Weinig <sam@webkit.org>
8203
8204 Reviewed by Anders Carlson.
8205
8206 Fix style issue.
8207
8208 * html/HTMLMediaElement.cpp:
8209 (WebCore::HTMLMediaElement::pickMedia):
8210
zimmermann@webkit.org9ae47e92008-08-14 02:22:35 +000082112008-08-13 Nikolas Zimmermann <zimmermann@kde.org>
8212
zimmermann@webkit.org7a2f53d2008-08-14 03:06:01 +00008213 Build fix for Cairo, not reviewed. (exposed by gtk build slave)
8214 Continue Erics build fixes, after the Image cleanup.
8215
8216 * platform/graphics/cairo/ImageBufferCairo.cpp:
8217 (WebCore::ImageBuffer::image):
8218
82192008-08-13 Nikolas Zimmermann <zimmermann@kde.org>
8220
zimmermann@webkit.org1ef52132008-08-14 02:38:16 +00008221 Build fix for Qt, not reviewed.
8222 Don't declare eventuallyMarkAsParserCreated in a block wrapped by !USE_QXMLSTREAM.
8223
8224 * dom/XMLTokenizer.cpp:
8225 (WebCore::eventuallyMarkAsParserCreated): Was erre
8226
82272008-08-13 Nikolas Zimmermann <zimmermann@kde.org>
8228
zimmermann@webkit.org3e560562008-08-14 02:26:00 +00008229 Build fix, not reviewed.
8230 Add ScriptElement.cpp to Gtk build.
8231
8232 * GNUmakefile.am:
8233
82342008-08-13 Nikolas Zimmermann <zimmermann@kde.org>
8235
zimmermann@webkit.org9ae47e92008-08-14 02:22:35 +00008236 Reviewed by Eric.
8237
8238 Fixes: https://bugs.webkit.org/show_bug.cgi?id=20372
8239
8240 Refactor HTMLScriptElement's code into a common base class: ScriptElement.
8241 SVGScriptElement will be converted to use ScriptElement in a follow-up patch.
8242
8243 This resolves code duplications and allows us to completly replace the old
8244 SVGScriptElement (which doesn't use CachedScript, no dynamic injected scripts etc..)
8245
8246 As ScriptElement, doesn't actually inherit from Element, we may want to rename
8247 it, though StyleElement uses the same naming convention, so I left it as is for now.
8248 Eventually we'll rename both files in future.
8249
8250 No functional changes yet, as SVGScriptElement doesn't yet use the new base class.
8251
8252 * WebCore.pro: Add new ScriptElement.cpp to build.
8253 * WebCore.vcproj/WebCore.vcproj: Ditto.
8254 * WebCore.xcodeproj/project.pbxproj: Ditto.
8255 * WebCoreSources.bkl: Dutto.
8256 * dom/ScriptElement.cpp: Added. 1:1 based on HTMLScriptElement
8257 (WebCore::ScriptElement::insertedIntoDocument):
8258 (WebCore::ScriptElement::removedFromDocument):
8259 (WebCore::ScriptElement::childrenChanged):
8260 (WebCore::ScriptElement::finishParsingChildren):
8261 (WebCore::ScriptElement::handleSourceAttribute):
8262 (WebCore::isSupportedJavaScriptLanguage):
8263 (WebCore::ScriptElementData::ScriptElementData):
8264 (WebCore::ScriptElementData::~ScriptElementData):
8265 (WebCore::ScriptElementData::requestScript):
8266 (WebCore::ScriptElementData::evaluateScript):
8267 (WebCore::ScriptElementData::stopLoadRequest):
8268 (WebCore::ScriptElementData::notifyFinished):
8269 (WebCore::ScriptElementData::ignoresLoadRequest):
8270 (WebCore::ScriptElementData::shouldExecuteAsJavaScript):
8271 (WebCore::ScriptElementData::scriptCharset):
8272 (WebCore::ScriptElementData::scriptContent):
8273 * dom/ScriptElement.h: Added.
8274 (WebCore::ScriptElement::ScriptElement):
8275 (WebCore::ScriptElement::~ScriptElement):
8276 (WebCore::ScriptElementData::element):
8277 (WebCore::ScriptElementData::createdByParser):
8278 (WebCore::ScriptElementData::setCreatedByParser):
8279 * dom/XMLTokenizer.cpp:
8280 (WebCore::isScriptElement):
8281 (WebCore::castToScriptElement):
8282 (WebCore::eventuallyMarkAsParserCreated):
8283 (WebCore::XMLTokenizer::startElementNs):
8284 (WebCore::XMLTokenizer::endElementNs):
8285 (WebCore::createXHTMLParserErrorHeader):
8286 (WebCore::XMLTokenizer::insertErrorMessageBlock):
8287 * html/HTMLScriptElement.cpp: Refactored code, pushed most code down to ScriptElement.
8288 (WebCore::HTMLScriptElement::HTMLScriptElement):
8289 (WebCore::HTMLScriptElement::~HTMLScriptElement):
8290 (WebCore::HTMLScriptElement::isURLAttribute):
8291 (WebCore::HTMLScriptElement::setCreatedByParser):
8292 (WebCore::HTMLScriptElement::shouldExecuteAsJavaScript):
8293 (WebCore::HTMLScriptElement::childrenChanged):
8294 (WebCore::HTMLScriptElement::parseMappedAttribute):
8295 (WebCore::HTMLScriptElement::finishParsingChildren):
8296 (WebCore::HTMLScriptElement::insertedIntoDocument):
8297 (WebCore::HTMLScriptElement::removedFromDocument):
8298 (WebCore::HTMLScriptElement::text):
8299 (WebCore::HTMLScriptElement::setText):
8300 (WebCore::HTMLScriptElement::setHtmlFor):
8301 (WebCore::HTMLScriptElement::setEvent):
8302 (WebCore::HTMLScriptElement::charset):
8303 (WebCore::HTMLScriptElement::src):
8304 (WebCore::HTMLScriptElement::type):
8305 (WebCore::HTMLScriptElement::scriptCharset):
8306 (WebCore::HTMLScriptElement::scriptContent):
8307 (WebCore::HTMLScriptElement::sourceAttributeValue):
8308 (WebCore::HTMLScriptElement::charsetAttributeValue):
8309 (WebCore::HTMLScriptElement::typeAttributeValue):
8310 (WebCore::HTMLScriptElement::languageAttributeValue):
8311 (WebCore::HTMLScriptElement::dispatchLoadEvent):
8312 (WebCore::HTMLScriptElement::dispatchErrorEvent):
8313 * html/HTMLScriptElement.h:
8314 * svg/SVGScriptElement.cpp: Inherit from ScriptElement, don't actually use it yet.
8315 * svg/SVGScriptElement.cpp:
8316 (WebCore::SVGScriptElement::SVGScriptElement):
8317 (WebCore::SVGScriptElement::scriptContent):
8318 (WebCore::SVGScriptElement::sourceAttributeValue):
8319 (WebCore::SVGScriptElement::charsetAttributeValue):
8320 (WebCore::SVGScriptElement::typeAttributeValue):
8321 (WebCore::SVGScriptElement::languageAttributeValue):
8322 (WebCore::SVGScriptElement::dispatchLoadEvent):
8323 (WebCore::SVGScriptElement::dispatchErrorEvent):
8324 * svg/SVGScriptElement.h:
8325 (WebCore::SVGScriptElement::setCreatedByParser):
8326
eric@webkit.org7811ef02008-08-14 00:28:51 +000083272008-08-13 Eric Seidel <eric@webkit.org>
8328
eric@webkit.org3562c592008-08-14 02:17:29 +00008329 Attempt to fix the Gtk build, no review.
8330
8331 I removed the bogus GraphicsContext::translatePoint() hack for Gtk in the process.
8332
8333 * platform/graphics/GraphicsContext.h:
8334 * platform/graphics/cairo/GraphicsContextCairo.cpp:
8335 * platform/graphics/qt/GradientQt.cpp:
8336 * platform/graphics/qt/GraphicsContextQt.cpp:
8337 * platform/gtk/RenderThemeGtk.cpp:
8338 (WebCore::paintMozWidget):
8339
83402008-08-13 Eric Seidel <eric@webkit.org>
8341
eric@webkit.org2ec42072008-08-14 02:03:09 +00008342 Yet another attempt to fix the Qt build, no review.
8343
8344 * platform/graphics/qt/GradientQt.cpp:
8345 * platform/graphics/qt/GraphicsContextQt.cpp:
8346 (WebCore::GraphicsContext::applyStrokePattern):
8347 (WebCore::GraphicsContext::applyFillPattern):
8348
83492008-08-13 Eric Seidel <eric@webkit.org>
8350
8351 Attempt to fix the Windows build, no review.
8352
8353 * platform/win/CursorWin.cpp:
8354 (WebCore::loadCursorByName):
8355 * platform/win/ScrollViewWin.cpp:
8356 (WebCore::ScrollView::paint):
8357
83582008-08-13 Eric Seidel <eric@webkit.org>
8359
eric@webkit.org508c0282008-08-14 01:29:34 +00008360 Attempt to fix the Windows build, no review.
8361
8362 * platform/win/CursorWin.cpp:
8363 (WebCore::loadCursorByName):
8364 * platform/win/ScrollViewWin.cpp:
8365 (WebCore::ScrollView::paint):
8366
83672008-08-13 Eric Seidel <eric@webkit.org>
8368
eric@webkit.org1bf70ab2008-08-14 01:24:15 +00008369 Attempt to fix the Qt build, no review.
8370
8371 * platform/graphics/qt/ImageBufferQt.cpp:
8372 (WebCore::ImageBuffer::image):
8373
83742008-08-13 Eric Seidel <eric@webkit.org>
8375
eric@webkit.orgf2d7c212008-08-14 01:21:34 +00008376 Attempt to fix the Windows build, no review.
8377
8378 * platform/graphics/win/ImageWin.cpp:
8379 (WebCore::Image::loadPlatformResource):
8380 * plugins/win/PluginViewWin.cpp:
8381 (WebCore::PluginView::paintMissingPluginIcon):
8382
83832008-08-13 Eric Seidel <eric@webkit.org>
8384
eric@webkit.orgac3f6662008-08-14 01:15:50 +00008385 Another attempt to fix the Qt build, no review.
8386
8387 * platform/graphics/qt/ImageQt.cpp:
8388 * platform/graphics/qt/StillImageQt.h:
8389
83902008-08-13 Eric Seidel <eric@webkit.org>
8391
eric@webkit.org31e0d812008-08-14 01:05:42 +00008392 No review, build fix only.
8393
8394 Fix mac build, due to change in new code since my patch was written.
8395
8396 * svg/graphics/cg/SVGResourceMaskerCg.mm:
8397 (WebCore::SVGResourceMasker::applyMask):
8398
83992008-08-13 Eric Seidel <eric@webkit.org>
8400
eric@webkit.orga20a0032008-08-14 00:42:54 +00008401 Build fix only, no review.
8402
8403 Attempt to fix the Qt build.
8404
eric@webkit.org923255c2008-08-14 00:59:20 +00008405 * platform/graphics/qt/ImageBufferQt.cpp:
8406 * platform/graphics/qt/StillImageQt.h:
8407 (WebCore::StillImage::create):
8408 (WebCore::StillImage::destroyDecodedData):
8409 (WebCore::StillImage::decodedSize):
8410
84112008-08-13 Eric Seidel <eric@webkit.org>
8412
8413 Build fix only, no review.
8414
8415 Attempt to fix the Qt build.
8416
eric@webkit.orga20a0032008-08-14 00:42:54 +00008417 * html/CanvasStyle.cpp:
8418 (WebCore::CanvasStyle::applyStrokeColor):
8419 (WebCore::CanvasStyle::applyFillColor):
8420
84212008-08-13 Eric Seidel <eric@webkit.org>
8422
eric@webkit.org4aca3be2008-08-14 00:30:04 +00008423 Reviewed by Sam.
8424
8425 Match HTML5 spec by throwing INVALID_STATE_ERR when
8426 createPattern is called and the HTMLImageElement is not
8427 yet done loading the image (!isComplete)
8428 https://bugs.webkit.org/show_bug.cgi?id=20351
8429
8430 Test: http/misc/canvas-pattern-from-incremental-image.html
8431
8432 * html/CanvasRenderingContext2D.cpp:
8433 (WebCore::CanvasRenderingContext2D::createPattern):
8434
84352008-08-13 Eric Seidel <eric@webkit.org>
8436
eric@webkit.org5b265602008-08-14 00:29:26 +00008437 Reviewed by Niko.
8438
eric@webkit.orgf0124f62008-08-14 00:29:50 +00008439 Split out a Pattern class from CanvasPattern
8440 and remove all the Pattern-related #ifdefs
8441 (This will break non-mac platforms! I will fix them.)
8442 https://bugs.webkit.org/show_bug.cgi?id=20351
8443
8444 * GNUmakefile.am:
8445 * WebCore.pro:
8446 * WebCore.vcproj/WebCore.vcproj:
8447 * WebCore.xcodeproj/project.pbxproj:
8448 * WebCoreSources.bkl:
8449 * html/CanvasPattern.cpp:
8450 (WebCore::CanvasPattern::parseRepetitionType):
8451 (WebCore::CanvasPattern::CanvasPattern):
8452 * html/CanvasPattern.h:
8453 (WebCore::CanvasPattern::create):
8454 (WebCore::CanvasPattern::pattern):
8455 (WebCore::CanvasPattern::originClean):
8456 * html/CanvasRenderingContext2D.cpp:
8457 (WebCore::CanvasRenderingContext2D::createPattern):
8458 (WebCore::CanvasRenderingContext2D::applyStrokePattern):
8459 (WebCore::CanvasRenderingContext2D::applyFillPattern):
8460 * html/CanvasRenderingContext2D.h:
8461 * html/HTMLCanvasElement.cpp:
8462 * html/HTMLCanvasElement.h:
8463 * loader/FrameLoader.cpp:
8464 (WebCore::FrameLoader::createHistoryItem):
8465 * platform/graphics/GraphicsContext.h:
8466 * platform/graphics/cairo/GraphicsContextCairo.cpp:
8467 (WebCore::GraphicsContext::applyStrokePattern):
8468 (WebCore::GraphicsContext::applyFillPattern):
8469 * platform/graphics/cg/GraphicsContextCG.cpp:
8470 (WebCore::GraphicsContext::clipToImageBuffer):
8471 (WebCore::GraphicsContext::applyStrokePattern):
8472 (WebCore::GraphicsContext::applyFillPattern):
8473
84742008-08-13 Eric Seidel <eric@webkit.org>
8475
8476 Reviewed by Niko.
8477
eric@webkit.org5b265602008-08-14 00:29:26 +00008478 Make Images RefCounted (and clean up callers)
8479 https://bugs.webkit.org/show_bug.cgi?id=20351
8480
8481 * editing/DeleteButtonController.cpp:
8482 (WebCore::DeleteButtonController::createDeletionUI):
8483 * loader/CachedImage.cpp:
8484 (WebCore::CachedImage::CachedImage):
8485 (WebCore::brokenImage):
8486 (WebCore::nullImage):
8487 (WebCore::CachedImage::image):
8488 (WebCore::CachedImage::notifyObservers):
8489 (WebCore::CachedImage::createImage):
8490 * loader/CachedImage.h:
8491 * loader/icon/IconRecord.cpp:
8492 (WebCore::IconRecord::setImageData):
8493 (WebCore::IconRecord::loadImageFromResource):
8494 * loader/icon/IconRecord.h:
8495 * platform/graphics/BitmapImage.h:
8496 (WebCore::BitmapImage::create):
8497 * platform/graphics/GeneratedImage.h:
8498 * platform/graphics/Gradient.cpp:
8499 * platform/graphics/Gradient.h:
8500 * platform/graphics/Image.cpp:
8501 (WebCore::Image::nullImage):
8502 * platform/graphics/Image.h:
8503 * platform/graphics/ImageBuffer.h:
8504 * platform/graphics/cairo/ImageBufferCairo.cpp:
8505 (WebCore::ImageBuffer::image):
8506 * platform/graphics/cg/ImageBufferCG.cpp:
8507 (WebCore::ImageBuffer::image):
8508 (WebCore::ImageBuffer::getImageData):
8509 (WebCore::ImageBuffer::putImageData):
8510 * platform/graphics/cg/PDFDocumentImage.h:
8511 (WebCore::PDFDocumentImage::create):
8512 (WebCore::PDFDocumentImage::destroyDecodedData):
8513 (WebCore::PDFDocumentImage::decodedSize):
8514 * platform/graphics/gtk/ImageGtk.cpp:
8515 (WebCore::Image::loadPlatformResource):
8516 * platform/graphics/mac/ImageMac.mm:
8517 (WebCore::Image::loadPlatformResource):
8518 * rendering/RenderImage.cpp:
8519 * rendering/RenderLayer.cpp:
8520 (WebCore::RenderLayer::paintOverflowControls):
8521 * svg/graphics/SVGImage.cpp:
8522 (WebCore::SVGImage::nativeImageForCurrentFrame):
8523 * svg/graphics/SVGImage.h:
8524 (WebCore::SVGImage::create):
8525 (WebCore::SVGImage::destroyDecodedData):
8526 (WebCore::SVGImage::decodedSize):
8527 (WebCore::SVGImage::frameAtIndex):
8528 * svg/graphics/cairo/SVGPaintServerPatternCairo.cpp:
8529 (WebCore::SVGPaintServerPattern::setup):
8530 * svg/graphics/cairo/SVGResourceMaskerCairo.cpp:
8531 (WebCore::SVGResourceMasker::applyMask):
8532 * svg/graphics/cg/SVGPaintServerPatternCg.cpp:
8533 (WebCore::patternCallback):
8534 * svg/graphics/cg/SVGResourceMaskerCg.mm:
8535 (WebCore::SVGResourceMasker::applyMask):
8536
85372008-08-13 Eric Seidel <eric@webkit.org>
8538
8539 Reviewed by Niko.
eric@webkit.org7811ef02008-08-14 00:28:51 +00008540
8541 Remove #ifdefs from CanvasStyle by using platform/Color.h
eric@webkit.org5b265602008-08-14 00:29:26 +00008542 https://bugs.webkit.org/show_bug.cgi?id=20351
eric@webkit.org7811ef02008-08-14 00:28:51 +00008543
8544 There are some down-sides to this commit.
8545 This commit limits us to 255 levels of grey for calls like:
8546 context.setStrokeStyle(.37, 1.0)
8547 previously CG might have used up to 32bits to store the grey level
8548 Since setStrokeStyle is not part of HTML5, I don't suspect the web will notice.
8549
8550 Likewise, setStrokeStyle/setFillStyle calls which used float colors are now limited
8551 to RGBA32 (like all the rest of colors in WebCore), thus:
8552 context.setStrokStyle(.37, .24, .456, .99) will now have the same precision as:
8553 context.strokeStyle = "rgba(.37, .24, .456, .99)", which is to say RGBA32
8554
8555 If this is a problem for Dashboard, we can either roll out this commit
8556 or add a beefier Color abstraction, which can be used internally by GraphicsContext
8557 when keeping state, and then GraphicsContext can grow some additional set* routines
8558 for setting the a grey/float/whatever fill and stroke.
8559
8560 * html/CanvasRenderingContext2D.cpp:
8561 (WebCore::CanvasRenderingContext2D::setFillStyle):
8562 * html/CanvasStyle.cpp:
8563 (WebCore::CanvasStyle::CanvasStyle):
8564 (WebCore::colorWithOverrideAlpha):
8565 (WebCore::CanvasStyle::applyStrokeColor):
8566 (WebCore::CanvasStyle::applyFillColor):
8567 * html/CanvasStyle.h:
8568 * platform/graphics/Color.cpp:
8569 (WebCore::colorFloatToRGBAByte):
8570 (WebCore::makeRGBA32FromFloats):
8571 * platform/graphics/Color.h:
8572
adele@apple.com83e44822008-08-13 23:50:41 +000085732008-08-13 Eric Carlson <eric.carlson@apple.com>
8574
8575 Reviewed by Adele Peterson.
8576
8577 Fix for <rdar://problem/6137931>
8578 https://bugs.webkit.org/show_bug.cgi?id=20360
8579 Remove all parameters from the MIME type before checking with the MIME type registry
8580
8581 Tests: media/video-source-type-params.html
8582
8583 * html/HTMLMediaElement.cpp:
8584 (WebCore::HTMLMediaElement::pickMedia): only pass the portion before the first ';'
8585 to isSupportedMediaMIMEType()
8586
bdakin@apple.com7bc81bf2008-08-13 21:36:15 +000085872008-08-13 Beth Dakin <bdakin@apple.com>
8588
8589 Reviewed by Sam Weinig.
8590
8591 Fix for <rdar://problem/6141345>
8592
8593 This patch refines findString and markAllMatchesForText functions'
8594 interactions with disconnected frames. They no longer rely on
8595 knowing where a range is relative to the visible region and work
8596 with disconnected frames that contain frames.
8597
8598 * editing/Editor.cpp:
8599 (WebCore::Editor::insideVisibleArea): Now returns a bool instead of
8600 the visiblity enum.
8601 (WebCore::Editor::firstVisibleRange): This now returns the very
8602 first visible range in the document. It's no longer dependent on
8603 searching forward.
8604 (WebCore::Editor::lastVisibleRange): This now returns the very last
8605 visible range in the document. It's no longer dependent on
8606 searching backwards.
8607 (WebCore::Editor::nextVisibleRange): This returns the next visible
8608 range in the appropriate direction from the current range.
8609 * editing/Editor.h:
8610 * page/Frame.cpp:
8611 (WebCore::Frame::findString):
8612 (WebCore::Frame::markAllMatchesForText):
8613
kevino@webkit.orgee5adc42008-08-13 20:07:16 +000086142008-08-13 Kevin Ollivier <kevino@theolliviers.com>
8615
8616 wx build fix for case-sensitive platforms, like Linux.
8617
8618 * WebCoreSources.bkl:
8619
jmalonzo@webkit.org210145b2008-08-13 19:56:20 +000086202008-08-13 Marco Barisione <marco.barisione@collabora.co.uk>
8621
8622 Reviewed by Holger Freyther.
8623
8624 http://bugs.webkit.org/show_bug.cgi?id=16881
8625 [GTK] PlatformScreenGtk is unimplemented
8626
8627 Original patch by Christian Dywan.
8628
8629 * platform/gtk/PlatformScreenGtk.cpp:
8630 (WebCore::screenDepth):
8631 (WebCore::screenDepthPerComponent):
8632 (WebCore::screenIsMonochrome):
8633 (WebCore::screenRect):
8634 (WebCore::screenAvailableRect):
8635
jmalonzo@webkit.orge4693932008-08-13 19:42:08 +000086362008-08-13 Jan Michael Alonzo <jmalonzo@webkit.org>
8637
8638 Reviewed by Holger Freyther.
8639
8640 http://bugs.webkit.org/show_bug.cgi?id=20318
8641 SharedTimerGtk should use G_PRIORITY_DEFAULT_IDLE for g_idle_add
8642
8643 g_idle_add is the same as g_idle_add_full with a priority of
8644 G_PRIORITY_DEFAULT_IDLE, so we can safely use that.
8645
8646 * platform/gtk/SharedTimerGtk.cpp:
8647 (WebCore::setSharedTimerFireTime):
8648
timothy@apple.comf0426602008-08-13 18:11:01 +000086492008-08-13 Timothy Hatcher <timothy@apple.com>
8650
8651 Changed the InspectorController so it can be notified when the
8652 attached state of the Inspector changes in WebKit.
8653
8654 Reviewed by Kevin McCullough.
8655
8656 * WebCore.base.exp: Updated the symbol for setWindowVisible.
8657 * page/InspectorController.cpp:
8658 (WebCore::InspectorController::setWindowVisible): Added an attached argument,
8659 that defaults to false.Call setAttachedWindow with the attached argument.
8660 (WebCore::InspectorController::setAttachedWindow): Call the script version
8661 of setAttachedWindow.
8662 * page/InspectorController.h:
8663 * page/inspector/inspector.js:
8664 (WebInspector.setAttachedWindow): Set the attached property.
8665
timothy@apple.com9ea832b2008-08-13 18:10:36 +000086662008-08-12 Timothy Hatcher <timothy@apple.com>
8667
timothy@apple.com72c92ae2008-08-13 18:10:45 +00008668 Added a close button to the Inspector's toolbar when docked.
8669
8670 https://bugs.webkit.org/show_bug.cgi?id=14270
8671
8672 Reviewed by Kevin McCullough.
8673
8674 * page/InspectorController.cpp:
8675 (WebCore::closeWindow): Call InspectorController::closeWindow.
8676 (WebCore::InspectorController::windowScriptObjectAvailable):
8677 Added closeWindow to the script class.
8678 * page/InspectorController.h:
8679 * page/inspector/Images/closeButtons.png: Added.
8680 * page/inspector/inspector.css: Added and changed styles.
8681 * page/inspector/inspector.html: Added the close button.
8682 * page/inspector/inspector.js:
8683 (WebInspector.loaded): Added click event listener to the close button.
8684 (WebInspector.close): Call InspectorController.closeWindow.
8685
86862008-08-12 Timothy Hatcher <timothy@apple.com>
8687
timothy@apple.com9ea832b2008-08-13 18:10:36 +00008688 Make the docked Web Inspector resizable. This is the cross platform
8689 portion of the code. Each InspectorClient needs to implement the
8690 real resize code.
8691
8692 https://bugs.webkit.org/show_bug.cgi?id=14282
8693
8694 Reviewed by Kevin McCullough.
8695
8696 * loader/EmptyClients.h: Added an empty setAttachedWindowHeight.
8697 * page/InspectorClient.h: Added setAttachedWindowHeight.
8698 * page/InspectorController.cpp:
8699 (WebCore::setAttachedWindowHeight): Call setAttachedWindowHeight
8700 on the InspectorController.
8701 (WebCore::InspectorController::setAttachedWindowHeight): Call
8702 setAttachedWindowHeight on the client.
8703 (WebCore::InspectorController::windowScriptObjectAvailable):
8704 Added setAttachedWindowHeight to the script class.
8705 * page/InspectorController.h:
8706 * page/inspector/inspector.css: Make the cursor on the toolbar be
8707 row-resize when docked.
8708 * page/inspector/inspector.js:
8709 (WebInspector.loaded): Always add the toolbarDragStart event listener.
8710 (WebInspector.toolbarDragStart): Return early if we are not attached
8711 and not on Leopard. Call WebInspector.elementDragStart.
8712 (WebInspector.toolbarDragEnd): Call WebInspector.elementDragEnd.
8713 (WebInspector.toolbarDrag): When attached call setAttachedWindowHeight,
8714 otherwise call moveByUnrestricted.
8715
hausmann@webkit.orgd34f1d22008-08-13 13:43:34 +000087162008-08-13 Simon Hausmann <hausmann@webkit.org>
8717
8718 Reviewed by Holger.
8719
8720 Initialize m_zoomsTextOnly in the Settings constructor.
8721
8722 * page/Settings.cpp:
8723 (WebCore::Settings::Settings):
8724
hausmann@webkit.org74586d62008-08-13 13:31:11 +000087252008-08-13 Brad Hughes <bhughes@trolltech.com>
8726
8727 Reviewed by Simon.
8728
8729 Fix compiling of QtWebKit in release mode with the Intel C++ Compiler for Linux
8730
8731 The latest upgrade of the intel compiler allows us to compile all of
8732 Qt with optimizations enabled (yay!).
8733
8734 * WebCore.pro:
8735
hausmann@webkit.org690b7fc2008-08-13 13:24:56 +000087362008-08-13 Prasanth Ullattil <prasanth.ullattil@trolltech.com>
8737
8738 Reviewed by Simon.
8739
8740 Fix QtWebKit not displaying content on 403 HTTP responses
8741
8742 Just like with 404 responses also display content with 403, as
8743 used by http://audiio.ejamming.proteus-tech.com/audiio/profile/original_signup/
8744
8745 * platform/network/qt/QNetworkReplyHandler.cpp:
8746 (WebCore::QNetworkReplyHandler::finish):
8747
hausmann@webkit.org88c4dc92008-08-13 12:02:00 +000087482008-08-13 Simon Hausmann <hausmann@webkit.org>
8749
hausmann@webkit.orgd2315e32008-08-13 13:16:15 +00008750 Reviewed by Holger.
8751
8752 Qt part of https://bugs.webkit.org/show_bug.cgi?id=18994
8753
8754 Make the formatting of String::format() locale independent through the use of QString::vsprintf.
8755
8756 * platform/text/String.cpp:
8757 (WebCore::String::format):
8758
87592008-08-13 Simon Hausmann <hausmann@webkit.org>
8760
hausmann@webkit.org88c4dc92008-08-13 12:02:00 +00008761 Reviewed by Lars.
8762
8763 Fix QWebFrame::setHtml() not setting the new contents immediately.
8764
8765 Added a setter to the DocumentLoader to toggle the deferred loading of the main
8766 resource when it comes from substitute data.
8767
8768 Disable deferred loading of the main resource when we have valid substitute data,
8769 as used by QWebFrame::setHtml.
8770
8771 * loader/DocumentLoader.h:
8772
mrowe@apple.com6aa36d12008-08-13 09:58:32 +000087732008-08-13 Mark Rowe <mrowe@apple.com>
8774
8775 Speculative GTK build fix.
8776
8777 * GNUmakefile.am: Add dependency info for JSSVGElementWrapperFactory.cpp.
8778
hausmann@webkit.org298ce5f2008-08-13 09:11:23 +000087792008-08-13 Thiago Macieira <tjmaciei@trolltech.com>
8780
8781 Reviewed by Simon.
8782
8783 Fix encoding of [ and ] in the host part of the URL
8784
8785 Until QUrl is fixed (making QUrl's tolerant parser more tolerant), we have to
8786 add this workaround to the QUrl <> WebCore::KURL conversion operator so that it
8787 doesn't encode [ and ] when they are found in the host part. That is, the
8788 following URL:
8789 http://[::1]/
8790 is valid and should not be reencoded to:
8791 http://%5b::1%5d/
8792
8793 * platform/qt/KURLQt.cpp:
8794 (WebCore::KURL::operator QUrl):
8795
mitz@apple.come198b012008-08-12 21:49:07 +000087962008-08-12 Mihnea Ovidenie <mihnea@adobe.com>
8797
8798 Fix for https://bugs.webkit.org/show_bug.cgi?id=19891
8799 Broken HTML object elements cause de-reference of pointer to freed memory.
8800 If we fail to load an image for an object tag and we no longer believe the object tag points at
8801 an image, then clear m_imageLoader in the HTMLObjectElement so that we attempt to render the
8802 fall back content.
8803
8804 Reviewed by Dave Hyatt and Alexey Proskuryakov.
8805
8806 Test: http/tests/misc/object-image-error-with-onload.html
8807
8808 * html/HTMLObjectElement.cpp:
8809 (WebCore::HTMLObjectElement::renderFallbackContent):
8810 * page/Frame.cpp:
8811 (WebCore::Frame::Frame):
8812
zimmermann@webkit.org36a02512008-08-12 21:11:17 +000088132008-08-12 Nikolas Zimmermann <zimmermann@kde.org>
8814
8815 Reviewed by Dave.
8816
8817 Fixes: https://bugs.webkit.org/show_bug.cgi?id=19798
8818 Masks are translated, and the mask images are swapped on the y-axis.
8819
8820 Turned out that http://trac.webkit.org/changeset/31830/trunk/WebCore/svg/graphics/cg/SVGResourceMaskerCg.mm
8821 is guilty. GraphicsContext::clipToImageBuffer() does some extra transformations that SVGResourcesMaskerCg does not want.
8822
8823 Long term goal is to remove the SVGResource*/SVGPaintServer* classes anyway, so it's okay to duplicate
8824 the "clip to image buffer" functionality, in the CG specific SVGResourceMaskerCg class - as it was before.
8825
8826 * svg/graphics/cg/SVGResourceMaskerCg.mm:
8827 (WebCore::SVGResourceMasker::applyMask): Changed back to use CG clipping again.
8828
mitz@apple.comf8a98692008-08-12 17:04:42 +000088292008-08-12 Dan Bernstein <mitz@apple.com>
8830
mitz@apple.com1b7e844f2008-08-12 20:54:12 +00008831 - WebCore part of <rdar://problem/6121636>
8832 Make fast*alloc() abort() on failure and add "try" variants that
8833 return NULL on failure.
8834
8835 Reviewed by Darin Adler.
8836
8837 * platform/Arena.cpp:
8838 (WebCore::ArenaAllocate): Removed null checking of fastMalloc()'s
8839 result.
8840 * platform/graphics/cg/ImageBufferCG.cpp:
8841 (WebCore::ImageBuffer::create): Changed to use tryFastCalloc().
8842
88432008-08-12 Dan Bernstein <mitz@apple.com>
8844
mitz@apple.com1e09cd72008-08-12 18:27:58 +00008845 Reviewed by Darin Adler.
8846
8847 - fix https://bugs.webkit.org/show_bug.cgi?id=19348
8848 <rdar://problem/5978447> REGRESSION (r34193): Setting the size of a frame with javascript document.body.row no longer works
8849
8850 Test: fast/frames/frameset-style-recalc.html
8851
8852 * html/HTMLFrameSetElement.cpp:
8853 (WebCore::HTMLFrameSetElement::recalcStyle): Changed to call the base
8854 class implementation after marking for layout.
8855
88562008-08-12 Dan Bernstein <mitz@apple.com>
8857
mitz@apple.comf8a98692008-08-12 17:04:42 +00008858 Reviewed by John Sullivan.
8859
8860 - move shouldUpdateWhenOffscreen from Settings to FrameView and rename it shouldUpdateWhileHidden
8861
8862 * WebCore.base.exp:
8863 * page/FrameView.cpp:
8864 (WebCore::FrameViewPrivate::FrameViewPrivate):
8865 (WebCore::FrameView::shouldUpdateWhileHidden):
8866 (WebCore::FrameView::setShouldUpdateWhileHidden):
8867 * page/FrameView.h:
8868 * page/Settings.cpp:
8869 * page/Settings.h:
8870
aroben@apple.comeeb8ebb2008-08-12 14:58:51 +000088712008-08-12 Adam Roben <aroben@apple.com>
8872
8873 Windows build fix
8874
8875 * bindings/js/JSSVGPODTypeWrapper.h: Align
8876 JSSVGDynamicPODTypeWrapper's and JSSVGStaticPODTypeWrapperWithParent's
8877 members on 16-byte boundaries to avoid an alignment warning.
8878
zimmermann@webkit.orge1388112008-08-12 10:27:53 +000088792008-08-12 Nikolas Zimmermann <zimmermann@kde.org>
8880
8881 Reviewed by Oliver.
8882
zimmermann@webkit.org504f2552008-08-12 10:35:09 +00008883 Add new dynamice-update layout tests covering SVGMarkerElement.
8884 Fix bug: SVGMarkerElement's SVG DOM function calls don't update rendering.
8885 Fix orientAngle/orientType confusion: "auto" orient should always return "0" as angle.
8886
8887 Tests: svg/dynamic-updates/SVGMarkerElement-dom-markerHeight-attr.html
8888 svg/dynamic-updates/SVGMarkerElement-dom-markerUnits-attr.html
8889 svg/dynamic-updates/SVGMarkerElement-dom-markerWidth-attr.html
8890 svg/dynamic-updates/SVGMarkerElement-dom-orient-attr.html
8891 svg/dynamic-updates/SVGMarkerElement-dom-refX-attr.html
8892 svg/dynamic-updates/SVGMarkerElement-dom-refY-attr.html
8893 svg/dynamic-updates/SVGMarkerElement-svgdom-markerHeight-prop.html
8894 svg/dynamic-updates/SVGMarkerElement-svgdom-markerUnits-prop.html
8895 svg/dynamic-updates/SVGMarkerElement-svgdom-markerWidth-prop.html
8896 svg/dynamic-updates/SVGMarkerElement-svgdom-orientAngle-prop.html
8897 svg/dynamic-updates/SVGMarkerElement-svgdom-orientType-prop.html
8898 svg/dynamic-updates/SVGMarkerElement-svgdom-refX-prop.html
8899 svg/dynamic-updates/SVGMarkerElement-svgdom-refY-prop.html
8900 svg/dynamic-updates/SVGMarkerElement-svgdom-setOrientToAngle-call.html
8901 svg/dynamic-updates/SVGMarkerElement-svgdom-setOrientToAuto-call.html
8902
8903 * svg/SVGMarkerElement.cpp:
8904 (WebCore::SVGMarkerElement::SVGMarkerElement):
8905 (WebCore::SVGMarkerElement::parseMappedAttribute):
8906 (WebCore::SVGMarkerElement::svgAttributeChanged):
8907 (WebCore::SVGMarkerElement::childrenChanged):
8908 (WebCore::SVGMarkerElement::setOrientToAuto):
8909 (WebCore::SVGMarkerElement::setOrientToAngle):
8910 (WebCore::SVGMarkerElement::canvasResource):
8911
89122008-08-12 Nikolas Zimmermann <zimmermann@kde.org>
8913
8914 Reviewed by Oliver.
8915
zimmermann@webkit.orge1388112008-08-12 10:27:53 +00008916 Add new dynamic-update layout tests covering SVGImageElement.
8917 Fix bug: SVGImageElement doesn't react on 'preserveAspectRatio' changes.
8918
8919 Tests: svg/dynamic-updates/SVGImageElement-dom-height-attr.html
8920 svg/dynamic-updates/SVGImageElement-dom-preserveAspectRatio-attr.html
8921 svg/dynamic-updates/SVGImageElement-dom-width-attr.html
8922 svg/dynamic-updates/SVGImageElement-dom-x-attr.html
8923 svg/dynamic-updates/SVGImageElement-dom-y-attr.html
8924 svg/dynamic-updates/SVGImageElement-svgdom-height-prop.html
8925 svg/dynamic-updates/SVGImageElement-svgdom-preserveAspectRatio-prop.html
8926 svg/dynamic-updates/SVGImageElement-svgdom-width-prop.html
8927 svg/dynamic-updates/SVGImageElement-svgdom-x-prop.html
8928 svg/dynamic-updates/SVGImageElement-svgdom-y-prop.html
8929
8930 * svg/SVGImageElement.cpp:
8931 (WebCore::SVGImageElement::svgAttributeChanged):
8932
timothy@apple.com93114722008-08-12 04:20:25 +000089332008-08-11 Anthony Ricaud <rik24d@gmail.com>
8934
timothy@apple.com2f2cde32008-08-12 04:28:16 +00008935 Changed Option/Alt-Up or Down in CSS editing when the value is
8936 near zero to jump to the next integer.
8937
8938 Reviewed by Tim Hatcher.
8939
8940 https://bugs.webkit.org/show_bug.cgi?id=20326
8941
8942 * page/inspector/StylesSidebarPane.js:
8943
89442008-08-11 Anthony Ricaud <rik24d@gmail.com>
8945
timothy@apple.com93114722008-08-12 04:20:25 +00008946 Changed the line highlight transition for an easier animation.
8947
8948 Reviewed by Tim Hatcher.
8949
8950 * page/inspector/SourceFrame.js:
8951
timothy@apple.com24a14852008-08-12 03:57:39 +000089522008-08-11 Keishi Hattori <casey.hattori@gmail.com>
8953
8954 Added support for some Firebug Command Line APIs.
8955
8956 Reviewed by Tim Hatcher.
8957
8958 https://bugs.webkit.org/show_bug.cgi?id=19867
8959 https://bugs.webkit.org/show_bug.cgi?id=19868
8960 https://bugs.webkit.org/show_bug.cgi?id=19869
8961 https://bugs.webkit.org/show_bug.cgi?id=19875
8962 https://bugs.webkit.org/show_bug.cgi?id=19876
8963 https://bugs.webkit.org/show_bug.cgi?id=19880
8964
8965 * page/inspector/Console.js:
8966 (WebInspector.Console.prototype._evalInInspectedWindow):
8967 Create an object on the inspected window that holds the console
8968 command line API functions. This object is used in a with statement
8969 around the typed expression.
8970
zimmermann@webkit.org0350b6d2008-08-12 02:22:26 +000089712008-08-11 Nikolas Zimmermann <zimmermann@kde.org>
8972
8973 Reviewed by Antti.
8974
8975 Fixes: http://bugs.webkit.org/show_bug.cgi?id=17736
8976
8977 JS wrapper objects around SVG POD types, that contain other SVG POD types with writable properties
8978 failed to update. Modification of the values were completly ignored (ie. transform.matrix.a = 50, didn't take any effect)
8979
8980 Added tests: svg/custom/svg-modify-currentTranslate.html
8981 svg/custom/tearoffs-with-tearoffs.html
8982 svg/custom/immutable-properties.html
8983
8984 Fixed tests: svg/dynamic-updates/SVGLinearGradientElement-svgdom-gradientTransform-prop.html
8985
8986 * bindings/js/JSSVGPODTypeWrapper.h:
8987 (WebCore::JSSVGDynamicPODTypeWrapper::commitChange):
8988 (WebCore::JSSVGStaticPODTypeWrapperWithPODTypeParent::create):
8989 (WebCore::JSSVGStaticPODTypeWrapperWithPODTypeParent::commitChange):
8990 (WebCore::JSSVGStaticPODTypeWrapperWithPODTypeParent::JSSVGStaticPODTypeWrapperWithPODTypeParent):
8991 (WebCore::JSSVGStaticPODTypeWrapperWithParent::create):
8992 (WebCore::JSSVGStaticPODTypeWrapperWithParent::operator PODType):
8993 (WebCore::JSSVGStaticPODTypeWrapperWithParent::commitChange):
8994 (WebCore::JSSVGStaticPODTypeWrapperWithParent::JSSVGStaticPODTypeWrapperWithParent):
8995 * bindings/scripts/CodeGenerator.pm:
8996 * bindings/scripts/CodeGeneratorJS.pm:
8997 * svg/SVGSVGElement.idl: Add [Immutable] markers to SVG POD attributes, that contain POD types with writable attributes.
8998 * svg/SVGZoomEvent.idl: SVG specification explicitely demands these attributes to be readonly, even its content.
8999
beidson@apple.com0e772f72008-08-12 00:34:46 +000090002008-08-11 Brady Eidson <beidson@apple.com>
9001
9002 Reviewed by John and Anders
9003
9004 Fix for <rdar://problem/6141797>
9005
9006 When WebArchives were entirely a WebKit concept, there was a guarantee that a WebResource
9007 would never have nil data.
9008
9009 When they were pushed down into WebCore, that guarantee was lost, subtly changing a few
9010 semantics with some WebKit applications.
9011
9012 The guarantee was a good one and should be restored.
9013
9014 Note that ApplicationCacheResource doesn't need any updates to follow this rule as it already
9015 creates an empty data object in the case of null data for its own purposes.
9016
9017 * loader/SubstituteResource.h:
9018 (WebCore::SubstituteResource::SubstituteResource): ASSERT that the data is not null. This
9019 well help any future subclassers not make this mistake.
9020
9021 * loader/archive/ArchiveResource.cpp:
9022 (WebCore::ArchiveResource::create): Return 0 if the data is null.
9023
simon.fraser@apple.come0d44792008-08-11 22:44:06 +000090242008-08-11 Simon Fraser <simon.fraser@apple.com>
9025
9026 Reviewed by Dave Hyatt
9027
9028 https://bugs.webkit.org/show_bug.cgi?id=20328
9029 Fix a problem when an 'all' transition transition with more than
9030 one property changing is interrupted, and did some AnimationController
9031 cleanup.
9032
9033 Test: transitions/interrupted-all-transition.html
9034
9035 * page/AnimationController.cpp:
9036 (WebCore::ImplicitAnimation::ImplicitAnimation):
9037 (WebCore::AnimationControllerPrivate::blendProperties):
9038 (WebCore::CompositeAnimation::updateTransitions):
9039 (WebCore::CompositeAnimation::cleanupFinishedAnimations):
9040 (WebCore::CompositeAnimation::setTransitionStartTime):
9041 (WebCore::CompositeAnimation::overrideImplicitAnimations):
9042 (WebCore::CompositeAnimation::resumeOverriddenImplicitAnimations):
9043 (WebCore::ImplicitAnimation::animate):
9044 (WebCore::ImplicitAnimation::onAnimationEnd):
9045 (WebCore::ImplicitAnimation::sendTransitionEvent):
9046 (WebCore::ImplicitAnimation::affectsProperty):
9047 (WebCore::KeyframeAnimation::endAnimation):
9048 (WebCore::KeyframeAnimation::onAnimationEnd):
9049
kmccullough@apple.com4a967c12008-08-11 20:45:19 +000090502008-08-11 Kevin McCullough <kmccullough@apple.com>
9051
9052 Reviewed by Tim.
9053
9054 - Because console messages have group levels now, newly created messages
9055 that do not specify the level lose their message since the number of
9056 arguments is wrong.
9057
9058 * page/inspector/Console.js:
9059 * page/inspector/Resource.js:
9060
alp@webkit.orgeeb55142008-08-11 19:52:14 +000090612008-08-11 Alp Toker <alp@nuanti.com>
9062
9063 Build fix. Add new files from r35666 (WebKitAnimationEvent). Also take
9064 the opportunity to sort the sources lists.
9065
9066 * GNUmakefile.am:
9067
timothy@apple.com9fe09f82008-08-11 18:48:37 +000090682008-08-11 Timothy Hatcher <timothy@apple.com>
9069
9070 Speed up the the JavaScript syntax highlighter by generating
9071 the finders only once per script instead of per line.
9072
9073 https://bugs.webkit.org/show_bug.cgi?id=20346
9074
9075 Reviewed by Adam Roben.
9076
9077 * page/inspector/SourceFrame.js:
9078 (WebInspector.SourceFrame.prototype._syntaxHighlightJavascriptLine):
9079 Removed, factored into syntaxHighlightJavascript as an inline function.
9080 (WebInspector.SourceFrame.prototype.syntaxHighlightJavascript):
9081 Pulled in the _syntaxHighlightJavascriptLine so it will create a closure.
9082 Generate the finders before iterating the lines.
9083
aroben@apple.com957d2d32008-08-11 18:31:37 +000090842008-08-11 Adam Roben <aroben@apple.com>
9085
9086 Windows build fix
9087
9088 * WebCore.vcproj/WebCore.vcproj: Added JSWebKitAnimationEvent.cpp and
9089 JSWebKitTransitionEvent.cpp to the project. Let VS reformat the file,
9090 too.
9091
mitz@apple.com3f0060f2008-08-11 18:04:46 +000090922008-08-11 Dan Bernstein <mitz@apple.com>
9093
9094 Reviewed by Darin Adler.
9095
9096 - fix <rdar://problem/6131096> Reproducible crash in CounterNode::isReset under guard malloc
9097
9098 Test: fast/css/counters/invalidate-cached-counter-node.html
9099
9100 * rendering/RenderContainer.cpp:
9101 (WebCore::RenderContainer::invalidateCounters): Added. Invalidates all
9102 RenderCounters in :before and :after content.
9103 * rendering/RenderContainer.h:
9104 * rendering/RenderCounter.cpp:
9105 (WebCore::RenderCounter::isCounter): Renamed isRenderCounter() to this
9106 to match the RenderObject method.
9107 (WebCore::RenderCounter::invalidate): Added. Resets the cached
9108 CounterNode and invalidates the object's layout and preferred widths.
9109 (WebCore::destroyCounterNodeChildren): Added a call to
9110 invalidateCounters().
9111 * rendering/RenderCounter.h:
9112 * rendering/RenderObject.h:
9113 (WebCore::RenderObject::invalidateCounters):
9114
dino@apple.com2af8c3a2008-08-11 17:24:36 +000091152008-08-11 Dean Jackson <dino@apple.com>
9116
9117 Implement CSS Animation and Transition Events
9118 https://bugs.webkit.org/show_bug.cgi?id=20337
9119
9120 Implement the events defined in the CSS Animations
9121 and Transitions specifications so code can react
9122 to animations and transitions.
9123
9124 Reviewed by Tim Hatcher and Dave Hyatt.
9125
9126 * DerivedSources.make:
9127 * GNUmakefile.am:
9128 * WebCore.pro:
9129 * WebCore.vcproj/WebCore.vcproj:
9130 * WebCore.xcodeproj/project.pbxproj:
9131 * WebCoreSources.bkl:
9132 Build configs for new files
9133
9134 * bindings/js/JSDOMWindowBase.cpp:
9135 * bindings/js/JSDOMWindowBase.h:
9136 * bindings/js/JSEventCustom.cpp:
9137 * dom/Document.h:
9138 * dom/Event.cpp:
9139 * dom/Event.h:
9140 * dom/EventTarget.cpp:
9141 * dom/EventTargetNode.cpp:
9142 * dom/EventTargetNode.h:
9143 * html/HTMLElement.cpp:
9144 * page/AnimationController.cpp:
9145 do all the new event stuff
9146
9147 * html/HTMLAttributeNames.in:
9148 the onwebkitanimation* and onwebkittransitionend attrs
9149
9150 * dom/WebKitAnimationEvent.cpp: Added.
9151 * dom/WebKitAnimationEvent.h: Added.
9152 * dom/WebKitAnimationEvent.idl: Added.
9153 * dom/WebKitTransitionEvent.cpp: Added.
9154 * dom/WebKitTransitionEvent.h: Added.
9155 * dom/WebKitTransitionEvent.idl: Added.
9156 New files for the events
9157
9158 * manual-tests/transition-events.html: Added.
9159 New testfile
9160
aroben@apple.com3eae8622008-08-11 17:21:23 +000091612008-08-11 Adam Roben <aroben@apple.com>
9162
9163 Add a ForwardingHeader for wtf/NotFound.h
9164
9165 Rubberstamped by Darin Adler.
9166
9167 * ForwardingHeaders/wtf/NotFound.h: Added.
9168
timothy@apple.com2f5bdf02008-08-11 16:53:30 +000091692008-08-11 Timothy Hatcher <timothy@apple.com>
9170
9171 Fixes a bug where error bubbles in JavaScript resources would
9172 be clobbered by the syntax highlighter.
9173
9174 https://bugs.webkit.org/show_bug.cgi?id=20345
9175
9176 Reviewed by Adam Roben.
9177
9178 * manual-tests/inspector/resources/script-error.js: Added.
9179 * manual-tests/inspector/styled-error-bubbles-in-scripts.html: Added.
9180 * page/inspector/SourceFrame.js:
9181 (WebInspector.SourceFrame.prototype._addMessageToSource):
9182 Check the nodeType and not the nodeName, this is less fragile.
9183 (WebInspector.SourceFrame.prototype._syntaxHighlightJavascriptLine):
9184 Check if the lastChild is an error bubble, if so remove it before
9185 getting the line's textContent. Add the error bubble back at the end.
9186
mrowe@apple.com4ec50d02008-08-11 05:07:42 +00009187== Rolled over to ChangeLog-2008-08-10 ==