1 2007-12-07 Darin Adler <darin@apple.com>
3 - fix 64-bit build, hopefully without breaking Tiger build
5 * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
6 (WebCore::MediaPlayerPrivate::updateStates):
7 Don't use Movies.h constants that are nonexistent in 64-bit.
8 Define the new QTMovie.h constants, though, when using an older QTKit.
10 2007-12-07 Brady Eidson <beidson@apple.com>
14 Fix <rdar://problem/5636115> - Prompted for quota increase to create database when it already existed
16 * storage/DatabaseTracker.cpp:
17 (WebCore::DatabaseTracker::canEstablishDatabase): Check hasEntryForDatabase before doing any prompting
18 (WebCore::DatabaseTracker::hasEntryForDatabase): Check and see if this database already exists
19 * storage/DatabaseTracker.h:
21 2007-12-07 Darin Adler <darin@apple.com>
25 - http://bugs.webkit.org/show_bug.cgi?id=15981
26 speed up visited-link code a bit
28 * bridge/GlobalHistory.h: Change historyContains to take a character pointer plus length
29 instead of requiring a DeprecatedString.
31 * bridge/mac/GlobalHistoryMac.mm: (WebCore::historyContains): Updated for above change.
32 Also removes pointless "fast Latin-1" case that was never used.
33 * bridge/win/GlobalHistoryWin.cpp: (WebCore::historyContains): Ditto.
34 * platform/gtk/TemporaryLinkStubs.cpp: (WebCore::historyContains): Ditto.
35 * platform/wx/TemporaryLinkStubs.cpp: (WebCore::historyContains): Ditto.
37 * css/CSSStyleSelector.cpp:
38 (WebCore::findHash): Added. Helper for cleanpath.
39 (WebCore::findSlashDotDotSlash): Ditto.
40 (WebCore::findSlashSlash): Ditto.
41 (WebCore::findSlashDotSlash): Ditto.
42 (WebCore::cleanpath): Changed to use fast helper functions instead of slower general-purpose
43 DeprecatedString find function.
44 (WebCore::containsColonSlashSlash): Added. Helper for checkPseudoState.
45 (WebCore::checkPseudoState): Got rid of reference count churn by using an AtomicString*
46 instead of an AtomicString for the attribute value. Changed to use fast helper function
47 instead of slower DeprecatedString::contains function, and also made the fast case not
48 bother allocating a DeprecatedConstString.
50 - unrelated tiny cleanup
52 * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
53 (WebCore::releaseCachedStops): Use static_cast instead of reinterpret_cast.
54 (WebCore::cgGradientCallback): Ditto.
56 2007-12-07 Darin Adler <darin@apple.com>
58 Fix build on Tiger (Mark Rowe told me how).
60 * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
61 Include <objc/objc-runtime.h>, which existed back on Tiger,
62 rather than <objc/runtime.h>, which did not.
64 2007-12-07 Geoffrey Garen <ggaren@apple.com>
66 Build fix: rolling out last build fix to change #include path.
68 * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
70 2007-12-07 Steve Falkenburg <sfalken@apple.com>
72 Re-named our B&I flag from BUILDBOT to PRODUCTION.
74 Reviewed by Sam Weinig.
76 * WebCore.vcproj/WebCore.make:
78 2007-12-07 Geoffrey Garen <ggaren@apple.com>
80 Build fix: corrected #include path.
82 * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
84 2007-12-07 Geoffrey Garen <ggaren@apple.com>
86 Reviewed by Sam Weinig.
88 Added some namespace qualifications and a forwarding header, now that
89 KJS::Node is sometimes #included in WebCore by JavaScriptCore headers.
91 * ForwardingHeaders/wtf/ListRefPtr.h: Added.
92 * bindings/js/JSXSLTProcessor.cpp:
93 (KJS::JSXSLTProcessorPrototypeFunctionTransformToFragment::callAsFunction):
94 * bindings/js/kjs_binding.cpp:
95 (KJS::ScriptInterpreter::getDOMNodeForDocument):
96 (KJS::ScriptInterpreter::forgetDOMNodeForDocument):
97 (KJS::ScriptInterpreter::putDOMNodeForDocument):
98 (KJS::ScriptInterpreter::markDOMNodesForDocument):
99 (KJS::ScriptInterpreter::updateDOMNodeDocument):
101 2007-12-07 Adam Roben <aroben@apple.com>
103 Add SoftLinking.h for Windows and use it in a few places
107 * WebCore.vcproj/WebCore.vcproj: Added new file to project.
108 * platform/win/PlatformScrollBarSafari.cpp: Use SoftLinking.h.
109 (WebCore::PlatformScrollbar::PlatformScrollbar): Removed manual
111 (WebCore::PlatformScrollbar::paintButton): Check for the presence of
112 the SafariTheme library now that we can't check for the presence of
113 paintThemePart directly.
114 (WebCore::PlatformScrollbar::paintTrack): Ditto.
115 (WebCore::PlatformScrollbar::paintThumb): Ditto.
116 * platform/win/SoftLinking.h: Copied from WebCore/platform/mac/SoftLinking.h.
117 * rendering/RenderThemeSafari.cpp: Same basic changes as to
118 PlatformScrollBarSafari.cpp.
119 (WebCore::RenderThemeSafari::RenderThemeSafari):
120 (WebCore::RenderThemeSafari::isControlStyled):
121 (WebCore::RenderThemeSafari::paintCapsLockIndicator):
122 * rendering/RenderThemeSafari.h: Removed m_themeDLL member.
124 2007-12-07 Darin Adler <darin@apple.com>
128 - fix <rdar://problem/5608795> CrashTracer: 481 crashes in Safari
129 at WebCore::HTMLSelectElement::saveState const + 152
131 Test: fast/forms/select-set-inner.html
133 * dom/ContainerNode.cpp:
134 (WebCore::ContainerNode::removeChildren): Added a return value, as with other
135 calls that change children, so we can optimize for the case where it does nothing.
136 (WebCore::ContainerNode::cloneChildNodes): Changed parameter type to ContainerNode.
137 * dom/ContainerNode.h: See above.
139 * html/HTMLOptGroupElement.cpp:
140 (WebCore::HTMLOptGroupElement::removeChildren): Override removeChildren and call
141 recalcSelectOptions in that case.
142 (WebCore::HTMLOptGroupElement::childrenChanged): Override childrenChanged instead of
143 addChild, for consistency with HTMLSelectElement; no need to override both.
144 (WebCore::HTMLOptGroupElement::groupLabelText): Made const.
145 * html/HTMLOptGroupElement.h: See above.
147 * html/HTMLSelectElement.cpp: Don't override addChild any more, because we already
148 override childrenChanged, and addChild calls that.
149 (WebCore::HTMLSelectElement::removeChildren): Override removeChildren and call
150 recalcSelectOptions in that case.
151 (WebCore::HTMLSelectElement::recalcListItems): Tightened up the code a little bit
152 by using a for loop and traverseNextSibling. Also added some new comments and
153 removed some obsolete ones.
154 (WebCore::HTMLSelectElement::checkListItems): Added. Debug-only check to make
155 sure we don't have a stale list items vector.
156 * html/HTMLSelectElement.h: Changed listItems() to invoke checkListItems().
157 This will help us catch cases where we have too few calls to setRecalcListItems.
159 2007-12-07 Dan Bernstein <mitz@apple.com>
161 Reviewed by Darin Adler.
163 - WebCore part of fixing <rdar://problem/5499918> REGRESSION: insertion point in input field with custom border cuts holes in focus ring interior edges
165 Test: fast/repaint/focus-ring.html
167 * editing/SelectionController.cpp:
168 (WebCore::SelectionController::caretRepaintRect): Changed to return just
169 the caret rect without any padding.
170 (WebCore::SelectionController::recomputeCaretRect): Changed to repaint
171 just the caret rect without any padding.
172 * platform/graphics/GraphicsContext.h: Removed setFocusRingClip() and
173 clearFocusRingClip().
174 * platform/graphics/cairo/GraphicsContextCairo.cpp: Ditto.
175 * platform/graphics/cg/GraphicsContextCG.cpp: Ditto.
176 * platform/graphics/cg/GraphicsContextPlatformPrivate.h: Removed
177 m_focusRingClip member.
178 * platform/graphics/mac/GraphicsContextMac.mm:
179 (WebCore::GraphicsContext::drawFocusRing): Changed to call
180 wkDrawFocusRing() once without setting up additional clip. On Leopard,
181 wkDrawFocusRing() respects the context clip now. On Tiger, a
182 transparency layer is used to apply clipping to the focus ring.
183 * platform/graphics/qt/GraphicsContextQt.cpp: Removed focus ring clip
185 * platform/graphics/wx/GraphicsContextWx.cpp: Ditto.
186 * platform/mac/WebCoreSystemInterface.h: Removed the clipRect argument
187 to wkDrawFocusRing().
188 * platform/mac/WebCoreSystemInterface.mm: Ditto.
189 * rendering/RenderLayer.cpp:
190 (WebCore::setClip): Removed call to set the focus ring clip.
191 (WebCore::restoreClip): Removed call to reset the focus ring clip.
193 2007-12-07 Darin Adler <darin@apple.com>
195 Reviewed by Antti Koivisto and Kevin Decker.
197 - fix <rdar://problem/5601586> QtKit should be dynamically loaded upon need, not linked at startup
199 Also did a lot of small tweaks to MediaPlayerPrivateQTKit.
201 * WebCore.xcodeproj/project.pbxproj: Don't link to QTKit.
203 * platform/graphics/mac/MediaPlayerPrivateQTKit.h: Omit unneeded includes and declarations.
204 Made a lot more functions const. Made a few more members private and a couple inline.
205 * platform/graphics/mac/MediaPlayerPrivateQTKit.mm: Added soft linking machinery for all the
206 things we currently use in QTKit. It's a little more awkward for classes and other data objects
207 than it is for functions, but still relatively straightforward, with no changes needed to the
208 client code. Added using namespace directives. Made a cuePointTimerInterval constant and put
209 it at the top of the file. Use 0 consistently instead of sometimes 0 and sometimes 0.0f.
210 (WebCore::MediaPlayerPrivate::MediaPlayerPrivate): Removed unneeded initialization of RetainPtr
212 (WebCore::MediaPlayerPrivate::createQTMovie): Use adoptNS instead of autorelease.
213 (WebCore::MediaPlayerPrivate::createQTMovieView): Ditto. Also use -[NSColor clearColor].
214 (WebCore::MediaPlayerPrivate::createQTTime): Remove an unneeded type cast that had no effect.
215 Changed to use long instead of int because that's the type for a QTTime time scale anyway.
216 (WebCore::MediaPlayerPrivate::duration): Use a static_cast instead of a C-style cast.
217 (WebCore::MediaPlayerPrivate::currentTime): Ditto. Also merged into a single expression.
218 (WebCore::MediaPlayerPrivate::cuePointTimerFired): Added code to make a copy of the cue
219 points set to avoid a potential problem with a set being modified as we iterate it.
220 (WebCore::MediaPlayerPrivate::bytesLoaded): Removed unneeded null check of m_qtMovie.
221 (WebCore::MediaPlayerPrivate::updateStates): Instead of comments explaining the numeric
222 values, used the constants from the headers directly.
223 (WebCore::MediaPlayerPrivate::getSupportedTypes): Instead of (QTMovieFileTypeOptions)0,
224 pass the named constant with value 0, QTIncludeCommonTypes. Skipped the intermediate type
225 of NSString to remove one cast. Replaced C-style cast with reinterpret_cast (arguably
226 no better). Used RetainPtr instead of explicit CFRelease calls.
228 * platform/mac/SoftLinking.h: Added macros to do soft linking for classes and for pointers.
229 It's not quite as automatic as the soft linking we can do for functions, since these define
230 functions to get the values, so you need to define macros to make what look like variable
231 accesses turn into function calls. See MediaPlayerPrivateQTKit for the details.
233 * html/HTMLMediaElement.h:
235 * html/VoidCallback.h:
236 * platform/graphics/MediaPlayer.h:
237 Use angle brackets for wtf includes. Omit unneeded includes.
239 2007-12-07 Dan Bernstein <mitz@apple.com>
241 Reviewed by Darin Adler.
243 - fix http://bugs.webkit.org/show_bug.cgi?id=16334
244 <rdar://problem/5634923> REGRESSION (r28299): Homepage of any DotMac Web Gallery won't load completely
246 Test: fast/dynamic/subtree-no-common-root-static-y.html
248 * rendering/RenderObject.cpp:
249 (WebCore::RenderObject::markContainingBlocksForLayout): Changed the call
250 to setChildNeedsLayout() to not mark containing blocks and added a
251 separate call to markContainingBlocksForLayout() that will not schedule
252 a layout if we are already in the middle of scheduleRelayoutOfSubtree().
254 2007-12-07 Alexey Proskuryakov <ap@webkit.org>
258 http://bugs.webkit.org/show_bug.cgi?id=16325
259 <rdar://problem/5632997> REGRESSION: www.xerox.ru doesn't work
261 Test: http/tests/misc/empty-cookie.html
263 * platform/mac/CookieJar.mm:
264 (WebCore::setCookies): Don't store empty cookies.
265 (WebCore::cookies): Filter out empty cookies if we have them, as they could have been set
266 with an earlier version of Leopard!
268 2007-12-06 Ada Chan <adachan@apple.com>
270 Fixed the if statement (ERROR_SUCCESS is 0 and we were actually
271 returning true when there's an error).
275 * platform/win/FileSystemWin.cpp:
276 (WebCore::makeAllDirectories):
278 2007-12-06 Darin Adler <darin@apple.com>
280 - fix broken regression test
282 * bindings/js/kjs_binding.cpp:
283 (KJS::setDOMException): Oops, this was just supposed to be PERMISSION_DENIED.
285 2007-12-06 Darin Adler <darin@apple.com>
287 Reviewed by Sam Weinig.
289 - fix http://bugs.webkit.org/show_bug.cgi?id=16332
290 ObjC DOM exception object descriptions should include the exception name
292 * WebCore.pro: Added ExceptionCode.cpp.
293 * WebCore.vcproj/WebCore.vcproj: Added ExceptionCode.cpp.
294 * WebCore.xcodeproj/project.pbxproj: Added ExceptionCode.cpp.
295 * WebCoreSources.bkl: Added ExceptionCode.cpp.
297 * bindings/js/kjs_binding.cpp: (KJS::setDOMException): Moved the code to decompose an
298 ExceptionCode into ExceptionCode.h/cpp -- getExceptionCodeDescription. Also removed
299 the many unneeded includes that were here. Had to keep one special case here, for
302 * bindings/objc/ExceptionHandlers.mm: (WebCore::raiseDOMException): Changed to use the
303 new getExceptionCodeDescription function so that this shares the exception name
304 information that was previously only available to JavaScript.
306 * dom/ExceptionCode.cpp: Copied from bindings/js/kjs_binding.cpp.
307 (WebCore::getExceptionCodeDescription): Added some assertions, and made the function
308 handle exception names in a slightly more robust way that is not subject to integer
309 overflow. (Not a real world issue since we should never receive a bad exception code.)
311 * dom/ExceptionCode.h: Added the ExceptionCodeDescription struct and the
312 getExceptionCodeDescription function.
314 * svg/SVGException.h: Added a missing #include and got rid of some comments. Some of
315 the comments were mildly helpful, but others were incorrect. This now matches the other
316 exception-related headers such as RangeException.h.
318 2007-12-06 Brady Eidson <beidson@apple.com>
322 Fixed a glaring bug that would prevent a statement from getting run a second time
324 * storage/SQLStatement.cpp:
325 (WebCore::SQLStatement::execute): Clear failure due to quota *before* we check the error
327 (WebCore::SQLStatement::clearFailureDueToQuota): Only clear the error if it was a quota error
329 2007-12-06 Timothy Hatcher <timothy@apple.com>
331 Reviewed by Oliver Hunt.
333 Use keydown instead of keypress so keyIdentifier can be used.
335 * page/inspector/ConsolePanel.js: Use keydown instead of keypress.
336 * page/inspector/DatabasePanel.js: Ditto.
337 * page/inspector/inspector.js: Ditto. Plus call removeEventListener
338 before deleting windowLoaded.
340 2007-12-06 Adam Roben <aroben@apple.com>
342 Rename FontsTable.plist to FontsList.plist
344 Rubberstamped by Hyatt.
346 * platform/graphics/win/FontDatabase.cpp:
348 2007-12-06 Brady Eidson <beidson@apple.com>
352 Tweaked a comment and a few assertions from my last checkin
354 * storage/SQLStatement.cpp:
355 (WebCore::SQLStatement::execute):
356 (WebCore::SQLStatement::clearFailureDueToQuota):
357 (WebCore::SQLStatement::lastExecutionFailedDueToQuota):
359 2007-12-06 Brady Eidson <beidson@apple.com>
363 Finished hooking up UI Delegate for databases - Database operations will now enforce a size quota and
364 will ask the UI Delegate for more space when that quota is met
366 * platform/sql/SQLiteDatabase.cpp: Add the new SQLResultFull constant
367 * platform/sql/SQLiteDatabase.h: Ditto
369 * storage/Database.cpp:
370 (WebCore::Database::securityOriginData): Added this accessor, copying for thread safety
371 (WebCore::Database::stringIdentifier): Ditto
372 * storage/Database.h:
374 * storage/SQLStatement.cpp:
375 (WebCore::SQLStatement::SQLStatement):
376 (WebCore::SQLStatement::execute): Change to return an enum that represents 3 states - success, error, and quota.
377 If the result is quota, this statement expects that it might be run again, presumably after the user increases
379 (WebCore::SQLStatement::setFailureDueToQuota): Setup a quota failure, including a flag and the error
380 (WebCore::SQLStatement::clearFailureDueToQuota): Clear a quota failure, for when the statement is rerun
381 (WebCore::SQLStatement::lastExecutionFailedDueToQuota):
382 * storage/SQLStatement.h:
384 * storage/SQLTransaction.cpp:
385 (WebCore::SQLTransaction::SQLTransaction):
386 (WebCore::SQLTransaction::performPendingCallback): Added an acceptable callback pointer
387 (WebCore::SQLTransaction::openTransactionAndPreflight): Setup the quota in the database that will remain for this
388 transaction. Note that in this patch, the quota being set is wrong - it makes sense to fix that in a follow up patch
389 (WebCore::SQLTransaction::runStatements): Modified to add the ability to re-run a statement based on the UI delegate
390 decision and whether the current statement was already run
391 (WebCore::SQLTransaction::runCurrentStatement): Added another result condition - the Quota result - and handle it
392 (WebCore::SQLTransaction::handleCurrentStatementError): Statements can now error-out from two places, so the code
393 that handles a statement error was moved here
394 (WebCore::SQLTransaction::deliverQuotaIncreaseCallback): Added - Consult the UI delegate for more quota, then
395 reschedule the current statement on the database thread
396 * storage/SQLTransaction.h:
398 2007-12-06 Steve Falkenburg <sfalken@apple.com>
400 <rdar://problem/5614257> Crash in timer / hashtable code due to uncaught exception
402 Don't use callback-based timers, since these cause Windows to eat Windows crashes
403 in code the timers call.
405 Windows appears to be defending against "shatter" attacks partially by setting
406 up a structured exception block while dispatching callback-based WM_TIMERs.
408 I verified this by adding a divide by zero into some timer callback code.
409 In the case where the timer was dispatched via a callback, the divide by zero
410 exception was silently handled and ignored, with execution continuing after
411 our call to DispatchMessage. When processed via the WNDPROC, no SEH
412 block was established by Windows, and our divide by zero generated a real
413 crash (which is what we wanted).
415 Windows handling our crashes for us led us to leave the timer data structures
416 in an invalid state so the next time a timer was set, we'd crash accessing an
417 invalid HashMap of timer data.
421 * platform/win/SharedTimerWin.cpp:
422 (WebCore::TimerWindowWndProc):
423 (WebCore::setSharedTimerFireTime):
425 2007-12-06 Adam Roben <aroben@apple.com>
427 Fix <rdar://5108390> Feed title is too low in blue banner
429 Way back in r23069 we started applying the same font ascent hack that
430 Mac WebKit applies to Helvetica, Times, and Courier. We did this so
431 that those fonts would match the Mac metrics when we run the
432 regression tests. However, this hack was applying to Arial on Windows
433 when a site would specify the Helvetica font face because Windows will
434 alias the font names. Instead of removing the hack entirely, we
435 turn it off by default but provide some SPI so that DumpRenderTree can
442 * platform/graphics/FontData.h: Add a new static method to turn on the
443 hack on Windows only.
444 * platform/graphics/win/FontDataWin.cpp:
445 (WebCore::FontData::setShouldApplyMacAscentHack): Added.
446 (WebCore::FontData::platformInit): Only perform the hack if
447 shouldApplyMacAscentHack is true.
449 2007-12-06 Geoffrey Garen <ggaren@apple.com>
451 Reviewed by Sam Weinig.
453 Fixed http://bugs.webkit.org/show_bug.cgi?id=16328
454 REGRESSION (r28470): Crash expanding a GMail conversation
457 (WebCore::Frame::scriptProxy): Only return 0 if JS seems disabled *and*
458 we haven't created the proxy yet. If we've created the proxy already, a
459 script may be in the midst of execution, even though we've lost our
460 settings object. During execution, scripts assume they have free access
463 2007-12-06 Adele Peterson <adele@apple.com>
467 Fix for <rdar://problem/5631356> Toggling display property on video causes controls to get lost
469 * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::attach): Call updateFromElement.
470 * html/HTMLMediaElement.h:
472 2007-12-05 Antti Koivisto <antti@apple.com>
479 MoviePrivate -> MediaPlayerPrivate
481 Movie is QuickTime terminology and clashes with its C API.
483 * WebCore.xcodeproj/project.pbxproj:
484 * html/HTMLMediaElement.cpp:
485 (WebCore::HTMLMediaElement::HTMLMediaElement):
486 (WebCore::HTMLMediaElement::~HTMLMediaElement):
487 (WebCore::HTMLMediaElement::initAndDispatchProgressEvent):
488 (WebCore::HTMLMediaElement::bufferingRate):
489 (WebCore::HTMLMediaElement::load):
490 (WebCore::HTMLMediaElement::mediaPlayerNetworkStateChanged):
491 (WebCore::HTMLMediaElement::mediaPlayerReadyStateChanged):
492 (WebCore::HTMLMediaElement::setReadyState):
493 (WebCore::HTMLMediaElement::progressEventTimerFired):
494 (WebCore::HTMLMediaElement::seek):
495 (WebCore::HTMLMediaElement::currentTime):
496 (WebCore::HTMLMediaElement::duration):
497 (WebCore::HTMLMediaElement::playbackRate):
498 (WebCore::HTMLMediaElement::setPlaybackRate):
499 (WebCore::HTMLMediaElement::play):
500 (WebCore::HTMLMediaElement::pause):
501 (WebCore::HTMLMediaElement::setVolume):
502 (WebCore::HTMLMediaElement::setMuted):
503 (WebCore::HTMLMediaElement::pickMedia):
504 (WebCore::HTMLMediaElement::checkIfSeekNeeded):
505 (WebCore::HTMLMediaElement::mediaPlayerVolumeChanged):
506 (WebCore::HTMLMediaElement::mediaPlayerTimeChanged):
507 (WebCore::HTMLMediaElement::mediaPlayerCuePointReached):
508 (WebCore::HTMLMediaElement::addCuePoint):
509 (WebCore::HTMLMediaElement::buffered):
510 (WebCore::HTMLMediaElement::seekable):
511 (WebCore::HTMLMediaElement::effectiveStart):
512 (WebCore::HTMLMediaElement::effectiveEnd):
513 (WebCore::HTMLMediaElement::effectiveLoopStart):
514 (WebCore::HTMLMediaElement::effectiveLoopEnd):
515 (WebCore::HTMLMediaElement::updateMediaPlayer):
516 (WebCore::HTMLMediaElement::willSaveToCache):
517 * html/HTMLMediaElement.h:
518 (WebCore::HTMLMediaElement::player):
519 * html/HTMLVideoElement.cpp:
520 (WebCore::HTMLVideoElement::videoWidth):
521 (WebCore::HTMLVideoElement::videoHeight):
522 * platform/MIMETypeRegistry.cpp:
523 (WebCore::initialiseSupportedMediaMIMETypes):
524 (WebCore::MIMETypeRegistry::isSupportedMediaMIMEType):
525 (WebCore::MIMETypeRegistry::getSupportedMediaMIMETypes):
526 * platform/MIMETypeRegistry.h:
527 * platform/graphics/MediaPlayer.cpp: Copied from WebCore/platform/graphics/Movie.cpp.
528 (WebCore::MediaPlayer::MediaPlayer):
529 (WebCore::MediaPlayer::~MediaPlayer):
530 (WebCore::MediaPlayer::load):
531 (WebCore::MediaPlayer::cancelLoad):
532 (WebCore::MediaPlayer::play):
533 (WebCore::MediaPlayer::pause):
534 (WebCore::MediaPlayer::duration):
535 (WebCore::MediaPlayer::currentTime):
536 (WebCore::MediaPlayer::seek):
537 (WebCore::MediaPlayer::paused):
538 (WebCore::MediaPlayer::seeking):
539 (WebCore::MediaPlayer::naturalSize):
540 (WebCore::MediaPlayer::hasVideo):
541 (WebCore::MediaPlayer::networkState):
542 (WebCore::MediaPlayer::readyState):
543 (WebCore::MediaPlayer::volume):
544 (WebCore::MediaPlayer::setVolume):
545 (WebCore::MediaPlayer::rate):
546 (WebCore::MediaPlayer::setRate):
547 (WebCore::MediaPlayer::muted):
548 (WebCore::MediaPlayer::setMuted):
549 (WebCore::MediaPlayer::dataRate):
550 (WebCore::MediaPlayer::setEndTime):
551 (WebCore::MediaPlayer::addCuePoint):
552 (WebCore::MediaPlayer::removeCuePoint):
553 (WebCore::MediaPlayer::clearCuePoints):
554 (WebCore::MediaPlayer::maxTimeBuffered):
555 (WebCore::MediaPlayer::maxTimeSeekable):
556 (WebCore::MediaPlayer::bytesLoaded):
557 (WebCore::MediaPlayer::totalBytesKnown):
558 (WebCore::MediaPlayer::totalBytes):
559 (WebCore::MediaPlayer::setRect):
560 (WebCore::MediaPlayer::visible):
561 (WebCore::MediaPlayer::setVisible):
562 (WebCore::MediaPlayer::paint):
563 (WebCore::MediaPlayer::getSupportedTypes):
564 (WebCore::MediaPlayer::networkStateChanged):
565 (WebCore::MediaPlayer::readyStateChanged):
566 (WebCore::MediaPlayer::volumeChanged):
567 (WebCore::MediaPlayer::timeChanged):
568 (WebCore::MediaPlayer::cuePointReached):
569 * platform/graphics/MediaPlayer.h: Copied from WebCore/platform/graphics/Movie.h.
570 (WebCore::MediaPlayerClient::~MediaPlayerClient):
571 (WebCore::MediaPlayerClient::mediaPlayerNetworkStateChanged):
572 (WebCore::MediaPlayerClient::mediaPlayerReadyStateChanged):
573 (WebCore::MediaPlayerClient::mediaPlayerVolumeChanged):
574 (WebCore::MediaPlayerClient::mediaPlayerTimeChanged):
575 (WebCore::MediaPlayerClient::mediaPlayerCuePointReached):
576 * platform/graphics/Movie.cpp: Removed.
577 * platform/graphics/Movie.h: Removed.
578 * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp: Copied from WebCore/platform/graphics/gtk/MoviePrivateGStreamer.cpp.
579 (WebCore::mediaPlayerPrivateErrorCallback):
580 (WebCore::mediaPlayerPrivateEOSCallback):
581 (WebCore::mediaPlayerPrivateStateCallback):
582 (WebCore::mediaPlayerPrivateBufferingCallback):
583 (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
584 (WebCore::MediaPlayerPrivate::~MediaPlayerPrivate):
585 (WebCore::MediaPlayerPrivate::load):
586 (WebCore::MediaPlayerPrivate::play):
587 (WebCore::MediaPlayerPrivate::pause):
588 (WebCore::MediaPlayerPrivate::duration):
589 (WebCore::MediaPlayerPrivate::currentTime):
590 (WebCore::MediaPlayerPrivate::seek):
591 (WebCore::MediaPlayerPrivate::setEndTime):
592 (WebCore::MediaPlayerPrivate::addCuePoint):
593 (WebCore::MediaPlayerPrivate::removeCuePoint):
594 (WebCore::MediaPlayerPrivate::clearCuePoints):
595 (WebCore::MediaPlayerPrivate::startCuePointTimerIfNeeded):
596 (WebCore::MediaPlayerPrivate::cancelSeek):
597 (WebCore::MediaPlayerPrivate::cuePointTimerFired):
598 (WebCore::MediaPlayerPrivate::paused):
599 (WebCore::MediaPlayerPrivate::seeking):
600 (WebCore::MediaPlayerPrivate::naturalSize):
601 (WebCore::MediaPlayerPrivate::hasVideo):
602 (WebCore::MediaPlayerPrivate::setVolume):
603 (WebCore::MediaPlayerPrivate::setMuted):
604 (WebCore::MediaPlayerPrivate::setRate):
605 (WebCore::MediaPlayerPrivate::dataRate):
606 (WebCore::MediaPlayerPrivate::networkState):
607 (WebCore::MediaPlayerPrivate::readyState):
608 (WebCore::MediaPlayerPrivate::maxTimeBuffered):
609 (WebCore::MediaPlayerPrivate::maxTimeSeekable):
610 (WebCore::MediaPlayerPrivate::maxTimeLoaded):
611 (WebCore::MediaPlayerPrivate::bytesLoaded):
612 (WebCore::MediaPlayerPrivate::totalBytesKnown):
613 (WebCore::MediaPlayerPrivate::totalBytes):
614 (WebCore::MediaPlayerPrivate::cancelLoad):
615 (WebCore::MediaPlayerPrivate::updateStates):
616 (WebCore::MediaPlayerPrivate::loadStateChanged):
617 (WebCore::MediaPlayerPrivate::rateChanged):
618 (WebCore::MediaPlayerPrivate::sizeChanged):
619 (WebCore::MediaPlayerPrivate::timeChanged):
620 (WebCore::MediaPlayerPrivate::volumeChanged):
621 (WebCore::MediaPlayerPrivate::didEnd):
622 (WebCore::MediaPlayerPrivate::loadingFailed):
623 (WebCore::MediaPlayerPrivate::setRect):
624 (WebCore::MediaPlayerPrivate::setVisible):
625 (WebCore::MediaPlayerPrivate::paint):
626 (WebCore::MediaPlayerPrivate::getSupportedTypes):
627 (WebCore::MediaPlayerPrivate::createGSTPlayBin):
628 * platform/graphics/gtk/MediaPlayerPrivateGStreamer.h: Copied from WebCore/platform/graphics/gtk/MoviePrivateGStreamer.h.
629 * platform/graphics/gtk/MoviePrivateGStreamer.cpp: Removed.
630 * platform/graphics/gtk/MoviePrivateGStreamer.h: Removed.
631 * platform/graphics/mac/MediaPlayerPrivateQTKit.h: Copied from WebCore/platform/graphics/mac/MoviePrivateQTKit.h.
632 * platform/graphics/mac/MediaPlayerPrivateQTKit.mm: Copied from WebCore/platform/graphics/mac/MoviePrivateQTKit.mm.
633 (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
634 (WebCore::MediaPlayerPrivate::~MediaPlayerPrivate):
635 (WebCore::MediaPlayerPrivate::createQTMovie):
636 (WebCore::MediaPlayerPrivate::createQTMovieView):
637 (WebCore::MediaPlayerPrivate::createQTTime):
638 (WebCore::MediaPlayerPrivate::load):
639 (WebCore::MediaPlayerPrivate::play):
640 (WebCore::MediaPlayerPrivate::pause):
641 (WebCore::MediaPlayerPrivate::duration):
642 (WebCore::MediaPlayerPrivate::currentTime):
643 (WebCore::MediaPlayerPrivate::seek):
644 (WebCore::MediaPlayerPrivate::doSeek):
645 (WebCore::MediaPlayerPrivate::cancelSeek):
646 (WebCore::MediaPlayerPrivate::seekTimerFired):
647 (WebCore::MediaPlayerPrivate::setEndTime):
648 (WebCore::MediaPlayerPrivate::addCuePoint):
649 (WebCore::MediaPlayerPrivate::removeCuePoint):
650 (WebCore::MediaPlayerPrivate::clearCuePoints):
651 (WebCore::MediaPlayerPrivate::startCuePointTimerIfNeeded):
652 (WebCore::MediaPlayerPrivate::cuePointTimerFired):
653 (WebCore::MediaPlayerPrivate::paused):
654 (WebCore::MediaPlayerPrivate::seeking):
655 (WebCore::MediaPlayerPrivate::naturalSize):
656 (WebCore::MediaPlayerPrivate::hasVideo):
657 (WebCore::MediaPlayerPrivate::setVolume):
658 (WebCore::MediaPlayerPrivate::setMuted):
659 (WebCore::MediaPlayerPrivate::setRate):
660 (WebCore::MediaPlayerPrivate::dataRate):
661 (WebCore::MediaPlayerPrivate::networkState):
662 (WebCore::MediaPlayerPrivate::readyState):
663 (WebCore::MediaPlayerPrivate::maxTimeBuffered):
664 (WebCore::MediaPlayerPrivate::maxTimeSeekable):
665 (WebCore::MediaPlayerPrivate::maxTimeLoaded):
666 (WebCore::MediaPlayerPrivate::bytesLoaded):
667 (WebCore::MediaPlayerPrivate::totalBytesKnown):
668 (WebCore::MediaPlayerPrivate::totalBytes):
669 (WebCore::MediaPlayerPrivate::cancelLoad):
670 (WebCore::MediaPlayerPrivate::updateStates):
671 (WebCore::MediaPlayerPrivate::loadStateChanged):
672 (WebCore::MediaPlayerPrivate::rateChanged):
673 (WebCore::MediaPlayerPrivate::sizeChanged):
674 (WebCore::MediaPlayerPrivate::timeChanged):
675 (WebCore::MediaPlayerPrivate::volumeChanged):
676 (WebCore::MediaPlayerPrivate::didEnd):
677 (WebCore::MediaPlayerPrivate::setRect):
678 (WebCore::MediaPlayerPrivate::setVisible):
679 (WebCore::MediaPlayerPrivate::paint):
680 (WebCore::MediaPlayerPrivate::getSupportedTypes):
681 (-[WebCoreMovieObserver initWithCallback:WebCore::]):
682 * platform/graphics/mac/MoviePrivateQTKit.h: Removed.
683 * platform/graphics/mac/MoviePrivateQTKit.mm: Removed.
684 * rendering/RenderMedia.cpp:
685 (WebCore::RenderMedia::player):
686 * rendering/RenderMedia.h:
687 * rendering/RenderVideo.cpp:
688 (WebCore::RenderVideo::RenderVideo):
689 (WebCore::RenderVideo::~RenderVideo):
690 (WebCore::RenderVideo::videoSizeChanged):
691 (WebCore::RenderVideo::paintReplaced):
692 (WebCore::RenderVideo::layout):
693 (WebCore::RenderVideo::updateFromElement):
694 (WebCore::RenderVideo::updatePlayer):
695 * rendering/RenderVideo.h:
697 2007-12-06 Geoffrey Garen <ggaren@apple.com>
699 Build fix: access global object directly.
701 * plugins/win/PluginViewWin.cpp:
702 (WebCore::PluginViewWin::bindingInstance):
704 2007-12-06 Mark Rowe <mrowe@apple.com>
708 Fix bug spotted by GCC 4.2.
710 * bindings/js/kjs_window.cpp:
711 (KJS::allowPopUp): Remove extraneous semicolon that completely changed the meaning of allowPopUp.
713 2007-12-06 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
715 Reviewed by Alp Toker.
717 http://bugs.webkit.org/show_bug.cgi?id=16173
720 Change license from BSD to LGPL.
722 * platform/gtk/FileSystemGtk.cpp:
724 2007-12-05 Rob Buis <buis@kde.org>
728 http://bugs.webkit.org/show_bug.cgi?id=15289
729 WebKit does not respect clip paths of a 0x0 rect
731 Make empty clip paths clip the whole referencing graphic.
733 * svg/SVGClipPathElement.cpp:
734 (WebCore::SVGClipPathElement::canvasResource):
735 * svg/graphics/SVGResourceClipper.h:
736 (WebCore::ClipDataList::isEmpty):
738 2007-12-05 Darin Adler <darin@apple.com>
742 - fix http://bugs.webkit.org/show_bug.cgi?id=16266
743 <rdar://problem/5625279> REGRESSION: crash loading CNN.com at
744 Interpreter::createObjectsForGlobalObjectProperties()
746 I don't know how to reproduce this in a test.
748 * bindings/js/JSDocumentCustom.cpp: (WebCore::JSDocument::mark):
749 Call JSEventTargetNode::mark instead of DOMObject::mark. There's no difference
750 right now, but it's best to call your base class, not your base's base.
752 * bindings/js/kjs_events.h: Removed unneeded virtual from the
753 JSUnprotectedEventListener::mark() function; it neither derives from or is
754 derived from anyone else with a mark() function so there's no need for virtual.
756 * bindings/js/kjs_window.cpp: (KJS::Window::mark): Call JSGlobalObject::mark,
757 not JSObject::mark. This is the actual bug fix.
759 2007-12-05 Pierre-Luc Beaudoin <pierre-luc.beaudoin@collabora.co.uk>
761 http://bugs.webkit.org/show_bug.cgi?id=16145
762 [gtk] Implement media support in GTK backend
764 Reviewed by Alp Toker.
766 Remove old comments, fix variable names, match WebKit coding style.
768 * platform/graphics/gtk/MoviePrivateGStreamer.cpp:
769 (WebCore::moviePrivateEOSCallback):
770 (WebCore::MoviePrivate::MoviePrivate):
771 (WebCore::MoviePrivate::load):
772 (WebCore::MoviePrivate::play):
773 (WebCore::MoviePrivate::pause):
774 (WebCore::MoviePrivate::currentTime):
775 (WebCore::MoviePrivate::seek):
776 (WebCore::MoviePrivate::cancelSeek):
777 (WebCore::MoviePrivate::seeking):
778 (WebCore::MoviePrivate::naturalSize):
779 (WebCore::MoviePrivate::setVolume):
780 (WebCore::MoviePrivate::setMuted):
781 (WebCore::MoviePrivate::maxTimeBuffered):
782 (WebCore::MoviePrivate::bytesLoaded):
783 (WebCore::MoviePrivate::totalBytesKnown):
784 (WebCore::MoviePrivate::totalBytes):
785 (WebCore::MoviePrivate::updateStates):
786 (WebCore::MoviePrivate::didEnd):
787 (WebCore::MoviePrivate::paint):
788 (WebCore::MoviePrivate::createGSTPlayBin):
789 * platform/graphics/gtk/MoviePrivateGStreamer.h:
791 2007-12-05 Mark Rowe <mrowe@apple.com>
793 Speculative wx build fix. Add PlugInInfoStore::pluginNameForMIMEType to the temporary link stubs.
795 * platform/wx/TemporaryLinkStubs.cpp:
797 2007-12-05 Alp Toker <alp@atoker.com>
799 Rubber stamped by Mark Rowe.
801 Remove DEPENDPATH on the generated sources directory. This causes
802 trouble and is no longer necessary following the glib-genmarshal
807 2007-12-04 Geoffrey Garen <ggaren@apple.com>
809 Reviewed by Darin Adler.
811 Third step in refactoring JSGlobalObject: Moved data members and data
812 member access from Interpreter to JSGlobalObject. Changed Interpreter
813 member functions to static functions. Same for the subclass,
816 This is a big change, but it's mostly code motion and renaming.
818 2007-12-05 Darin Adler <darin@apple.com>
822 * loader/FrameLoader.cpp:
823 (WebCore::FrameLoader::checkLoadCompleteForThisFrame): Removed assertion.
824 (WebCore::FrameLoader::dispatchDidCommitLoad): This one too.
825 The assertions are firing like crazy. Not sure why yet.
827 2007-12-05 Darin Adler <darin@apple.com>
829 Reviewed by Adam Roben.
831 - fix http://bugs.webkit.org/show_bug.cgi?id=16306
832 Assertion failed in WebCore/loader/FrameLoader.cpp:4642
834 * loader/FrameLoader.cpp:
835 (WebCore::FrameLoader::dispatchDidCommitLoad): Check m_creatingInitialEmptyDocument
836 and don't deliver the client call in that case.
838 2007-12-05 Mark Rowe <mrowe@apple.com>
840 Reviewed by Kevin Decker.
842 Fix 64-bit debug build.
844 * platform/text/mac/TextCodecMac.cpp:
845 (WebCore::TextCodecMac::decode): OSStatus is a long for 32-bit but int on 64-bit,
846 so we need to cast it to be able to use a single format specifier on both.
848 2007-12-05 Kevin Decker <kdecker@apple.com>
852 <rdar://problem/5613106> Acordex: REGRESSION (Tiger-Leopard): plug-ins can no longer take over TIFF images (affects uspto.gov)
854 * loader/FrameLoader.cpp:
855 (WebCore::FrameLoader::shouldUsePlugin): Allow plug-ins (with the exception of QuickTime) to
856 takeover TIFF once again.
858 2007-12-05 Luca Bruno <lethalman88@gmail.com>
860 Reviewed by Alp Toker.
862 http://bugs.webkit.org/show_bug.cgi?id=16290
863 [GTK] Pasting clipboard in rich text.
865 * platform/gtk/PasteboardGtk.cpp:
866 (Pasteboard::documentFragment): Implement rich text paste support.
868 2007-12-05 Adele Peterson <adele@apple.com>
872 Reverting fix for <rdar://problem/5499918> REGRESSION: insertion point in input field with custom border cuts holes in focus ring interior edges
874 We need to just fix the underlying focus ring repaint problem.
876 * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::setStyle):
878 2007-12-04 Kevin McCullough <kmccullough@apple.com>
883 - Security Fix. Instead of having it off by default, WebKit now must
884 explicitly turn off local-resource restriction when needed for backwards
885 compatibility reasons.
887 * loader/FrameLoader.cpp:
889 2007-12-05 Adam Roben <aroben@apple.com>
891 Set the menu item identifier for all menu items
893 This allows WebKit clients to distinguish between submenus in the
900 * platform/win/ContextMenuItemWin.cpp:
901 (WebCore::ContextMenuItem::ContextMenuItem):
903 2007-12-05 Dan Bernstein <mitz@apple.com>
905 Reviewed by Darin Adler.
907 - WebCore part of fixing <rdar://problem/5111082> Flash popup video ad doesn't close when clicked at http://www.firestonecompleteautocare.com/
909 * manual-tests/nested-plug-ins.html: Added.
910 * manual-tests/resources/nested-plug-ins-inner-frame.html: Added.
911 * manual-tests/resources/nested-plug-ins-outer-frame.html: Added.
912 * platform/ScrollView.h:
914 (WebCore::Widget::attachToWindow): Added. Tells the widget that it is connected
915 via visible ScrollViews to the root ScrollView of the WebView.
916 (WebCore::Widget::detachFromWindow): Added. Tells the widget that it is no longer
917 connected via visible ScrollViews to the root ScrollView of the WebView.
918 * platform/win/ScrollViewWin.cpp:
919 (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate): Added
920 m_visible and m_attachedToWindow members.
921 (WebCore::ScrollView::attachToWindow): Added. Attaches all children if this
923 (WebCore::ScrollView::detachFromWindow): Added. Detaches all children if this
924 view is visible (otherwise they would be detached already).
925 (WebCore::ScrollView::show): Added. Attaches all children if this view
927 (WebCore::ScrollView::hide): Added. Detaches all children if this view
928 is attached (otherwise they would be detached already).
929 (WebCore::ScrollView::isAttachedToWindow): Added.
930 * platform/win/WidgetWin.cpp:
931 (WebCore::Widget::setParent): Added calls to attachToWindow() and detachFromWindow()
932 depending on whether the parent is set and attached or not.
933 * plugins/win/PluginViewWin.cpp:
934 (WebCore::PluginViewWin::setFocus):
935 (WebCore::PluginViewWin::show): Changed to show the plug-in only if
936 this view is attached.
937 (WebCore::PluginViewWin::hide): Changed to hide the plug-in only if this
938 view is attached (otherwise it would be hidden already).
939 (WebCore::PluginViewWin::attachToWindow): Added. Shows the plug-in if this view
941 (WebCore::PluginViewWin::detachFromWindow): Added. Hides the plug-in if this view
942 is visible (otherwise it would be hidden already).
943 (WebCore::PluginViewWin::PluginViewWin):
944 * plugins/win/PluginViewWin.h: Added m_attachedToWindow member.
946 2007-12-04 Alp Toker <alp@atoker.com>
948 Potential GTK+ build fix for the glib-genmarshal issue.
950 Split the glib-genmarshal qmake generator in two; one for the source
951 file, another for the header.
955 2007-12-04 Alp Toker <alp@atoker.com>
959 * platform/PlugInInfoStore.h:
961 2007-12-04 Kevin Decker <kdecker@apple.com>
965 <rdar://problem/5629125> PluginInfoStore needs the ability to return the name of a plug-in for a given MIME type
967 * page/mac/WebCoreViewFactory.h: Added pluginNameForMIMEType: method.
968 * platform/PlugInInfoStore.h:
969 * platform/gtk/TemporaryLinkStubs.cpp: Added stub version of pluginNameForMIMEType.
970 (PlugInInfoStore::pluginNameForMIMEType):
971 * platform/mac/PlugInInfoStoreMac.mm:
972 (WebCore::PlugInInfoStore::pluginNameForMIMEType): Added.
973 * platform/qt/PlugInInfoStoreQt.cpp:
974 (WebCore::PlugInInfoStore::pluginNameForMIMEType): Added stub version of pluginNameForMIMEType.
975 * plugins/win/PlugInInfoStoreWin.cpp:
976 (WebCore::PlugInInfoStore::pluginNameForMIMEType): Added stub version of pluginNameForMIMEType.
978 2007-12-04 Adele Peterson <adele@apple.com>
982 Fix for <rdar://problem/5499918> REGRESSION: insertion point in input field with custom border cuts holes in focus ring interior edges
984 * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::setStyle):
985 Adjust outline-offset so it doesn't extend beyond the border to interfere with typing
987 2007-12-04 Anders Carlsson <andersca@apple.com>
991 Always call NPP_NewStream, NPP_DestroyStream and NPP_URLNotify for JavaScript
992 result streams, even if the JavaScript expression threw an exception or returned undefined.
993 This matches what Firefox does.
995 * plugins/win/PluginStreamWin.cpp:
996 (WebCore::PluginStreamWin::sendJavaScriptStream):
997 Handle the result string being null, and set the correct NPReason if it is.
999 * plugins/win/PluginViewWin.cpp:
1000 (WebCore::PluginViewWin::performRequest):
1001 Always send the JavaScript stream, regardless of the result could be converted to a string or not.
1003 2007-12-04 Adele Peterson <adele@apple.com>
1007 Fix for <rdar://problem/5622464> controls should show up for audio element
1009 * css/html4.css: Added styles for audio controls. This will need to be refined, since we may want a different look for audio controls.
1010 * html/HTMLMediaElement.cpp:
1011 (WebCore::HTMLMediaElement::attributeChanged): When the controls attribute changes detach and reattach if necessary.
1012 (WebCore::HTMLMediaElement::rendererIsNeeded): Added.
1013 (WebCore::HTMLMediaElement::createRenderer): Added. Uses RenderMedia.
1014 * html/HTMLMediaElement.h:
1015 * rendering/RenderMedia.cpp: (WebCore::RenderMedia::RenderMedia): Added constructor that doesn't take intrinsic size.
1016 * rendering/RenderMedia.h:
1018 2007-12-04 Anders Carlsson <andersca@apple.com>
1022 Add isSafeScript(const JSGlobalObject*) so we won't get the JSGlobalObject
1023 implementation, which always returns true(!).
1025 * bindings/js/kjs_window.cpp:
1026 (KJS::Window::isSafeScript):
1027 Make the static isSafeScript method take two JSGlobalObjects.
1029 * bindings/js/kjs_window.h:
1030 (KJS::Window::isSafeScript):
1031 Implement isSafeScript and have it call the static method.
1033 2007-11-27 Adam Roben <aroben@apple.com>
1035 Make the implementation of Frame::setNeedsReapplyStyles cross-platform
1039 No change in functionality.
1042 (WebCore::Frame::setNeedsReapplyStyles): Added. Invalidates the
1043 FrameView so that FrameView::layout will be called, which ends up
1044 calling reapplyStyles.
1045 (WebCore::Frame::needsReapplyStyles): Added.
1046 (WebCore::Frame::reapplyStyles): Renamed from reparseConfiguration.
1047 (WebCore::FramePrivate::FramePrivate):
1049 * page/FramePrivate.h: Added new boolean member.
1050 * page/FrameView.cpp:
1051 (WebCore::FrameView::layout): Call Frame::reapplyStyles if needed.
1052 (WebCore::FrameView::needsLayout): Say that we need layout if the
1053 Frame needs styles reapplied.
1054 * page/mac/WebCoreFrameBridge.h: Removed setNeedsReapplyStyles.
1055 * page/mac/WebCoreFrameBridge.mm:
1056 (-[WebCoreFrameBridge reapplyStylesForDeviceType:]): Updated for
1059 * bridge/win/FrameWin.cpp: Removed Frame::setNeedsReapplyStyles.
1060 * page/gtk/FrameGtk.cpp: Ditto.
1061 * page/mac/FrameMac.mm: Ditto.
1062 * page/qt/FrameQt.cpp: Ditto.
1063 * platform/wx/TemporaryLinkStubs.cpp: Ditto.
1065 2007-12-04 Antti Koivisto <antti@apple.com>
1069 Pass intrinsic size to the base class.
1071 * rendering/RenderMedia.cpp:
1072 (WebCore::RenderMedia::RenderMedia):
1074 2007-12-04 Adele Peterson <adele@apple.com>
1078 Fix for <rdar://problem/5578209> REGRESSION: Crash in WebCore::DeprecatedValueListImpl::Private::copyList when going back on zoomerang.com/survey
1080 * loader/FrameLoader.cpp: (WebCore::FrameLoader::scheduleHistoryNavigation):
1081 When the new url is exactly the same as the old url, don't treat it like a fragment navigation, since its going to cause a reload.
1083 2007-12-04 Darin Adler <darin@apple.com>
1085 Reviewed by Kevin Decker.
1087 - added an assertion for a situation that leads to a Safari assertion:
1088 a commit that is not followed by a load completion
1090 - removed some unneeded FrameLoader stuff -- maybe some day we'll get this
1091 class cut down to size
1093 * loader/FrameLoader.cpp:
1094 (WebCore::FrameLoader::FrameLoader): Added boolean for assertion.
1095 (WebCore::FrameLoader::checkLoadCompleteForThisFrame): Added code to assert
1096 that we already sent a commit before sending a complete.
1097 (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy): Call
1098 client directly instead of indirecting through a function.
1099 (WebCore::FrameLoader::loadItem): Ditto.
1100 (WebCore::FrameLoader::goToItem): Ditto.
1101 (WebCore::FrameLoader::addHistoryForCurrentLocation): Get the private browsing
1102 state from Settings instead of FrameLoaderClient. Also call client directly
1103 instead of indirecting through a function.
1104 (WebCore::FrameLoader::updateHistoryForReload): Call client directly instead
1105 of indirecting through a function.
1106 (WebCore::FrameLoader::dispatchDidCommitLoad): Added code to assert
1107 that we did not yet send a commit and set the flag that will be used to check
1108 that we don't do this twice in a row without an intervening completion call.
1110 * loader/FrameLoader.h: Added a boolean for the assertion. Removed six
1111 now-unneeded functions.
1113 * loader/FrameLoaderClient.h: Removed now-unneeded privateBrowsingEnabled function.
1115 * loader/ResourceLoader.cpp: (WebCore::ResourceLoader::willCacheResponse): Get
1116 the private browsing state from Settings instead of FrameLoaderClient.
1118 * svg/graphics/SVGImageEmptyClients.h: Removed obsolete privateBrowsingEnabled.
1120 2007-12-03 Antti Koivisto <antti@apple.com>
1124 Fix <rdar://problem/5624802>
1125 Controller displays outside of <video> element when width and height aren't specified
1127 - Explicitly adjust size of the controls tree root.
1128 - Switch RenderMedia base class back to RenderReplaced. It is easier to manage the shadow tree
1129 by hand. This also allows better code sharing with other replaced element classes.
1130 - Move duplicated layout and painting code from subclasses up to RenderReplaced.
1132 Test: media/video-controls-rendering.html
1134 * rendering/RenderHTMLCanvas.cpp:
1135 (WebCore::RenderHTMLCanvas::paintReplaced):
1136 * rendering/RenderHTMLCanvas.h:
1138 * rendering/RenderImage.cpp:
1139 (WebCore::RenderImage::paintReplaced):
1140 (WebCore::RenderImage::minimumReplacedHeight):
1141 * rendering/RenderImage.h:
1143 * rendering/RenderMedia.cpp:
1144 (WebCore::RenderMediaControlShadowRoot::RenderMediaControlShadowRoot):
1145 (WebCore::RenderMediaControlShadowRoot::setParent):
1146 Add a subclass just to get through encapsulation to use setParent().
1147 (WebCore::MediaControlShadowRootElement::MediaControlShadowRootElement):
1148 Move initialization to the constructor.
1149 (WebCore::RenderMedia::RenderMedia):
1150 (WebCore::RenderMedia::~RenderMedia):
1151 (WebCore::RenderMedia::layout):
1152 Resize and layout the controller root by hand.
1153 (WebCore::RenderMedia::firstChild):
1154 (WebCore::RenderMedia::lastChild):
1155 (WebCore::RenderMedia::removeChild):
1156 Support one child renderer for controls.
1157 (WebCore::RenderMedia::createControlsShadowRoot):
1158 * rendering/RenderMedia.h:
1159 (WebCore::RenderMedia::isMedia):
1160 Switch base class to RenderReplaced, delete the now unnecessary stuff.
1161 * rendering/RenderReplaced.cpp:
1162 (WebCore::RenderReplaced::layout):
1163 (WebCore::RenderReplaced::paint):
1164 * rendering/RenderReplaced.h:
1165 (WebCore::RenderReplaced::minimumReplacedHeight):
1166 (WebCore::RenderReplaced::paintReplaced):
1168 * rendering/RenderVideo.cpp:
1169 (WebCore::RenderVideo::videoSizeChanged):
1170 Simplify, just request relayout.
1171 (WebCore::RenderVideo::paintReplaced):
1172 (WebCore::RenderVideo::layout):
1173 * rendering/RenderVideo.h:
1176 2007-12-04 Michael Natterer <mitch@imendio.com>
1178 Reviewed by Alp Toker.
1180 * WebCore.pro: fix build of webkit-marshal by building the
1181 functions into a separate .cpp file instead of including them in
1182 the header. This way we can use the marshallers from more than one
1183 file without using bad hacks.
1185 Add the generated sources directory to DEPENDPATH.
1187 2007-12-04 Pierre-Luc Beaudoin <pierre-luc.beaudoin@collabora.co.uk>
1189 Reviewed by Alp Toker.
1191 http://bugs.webkit.org/show_bug.cgi?id=16145
1192 [gtk] Implement media support in GTK backend
1194 This implements the media tags of HTML5 on the GTK+ port based on the
1195 Mac port. Media tests pass although some tests required a small modifications:
1196 As per the HTML5 spec, the loading of the clip should start only after
1197 all script are done. But in the case of the tests, the loading starts
1198 before some callbacks get registered. This has been discussed with
1199 Antti Koivisto, and the tests should be updated.
1201 There is only one known issue: one time in 10 tries, loading a buffered
1202 clip will never end buffering. The buffering will stall at 97% for no
1203 apparent reasons. Reloading the page usually works around the problem.
1204 On the GStreamer side, some codecs don't return correct values, therefore
1205 they make the tests fail. For instance H.264 will make the video-end
1206 test fail. This should be fixed in GStreamer 0.10.15.
1208 This version displays video in a pop up window. A place holder is drawn
1209 on the page where the video should appear.
1211 By default, it is turned off in WebCore.pro until GStreamer/X
1212 detection issues are sorted out.
1215 Disable video for now
1216 * platform/Logging.cpp:
1218 * platform/Logging.h:
1219 Added a logging level for Media stuff
1220 * platform/graphics/Movie.cpp:
1221 * platform/graphics/gtk/MoviePrivateGStreamer.cpp: Added.
1222 (WebCore::moviePrivateErrorCallback):
1223 (WebCore::moviePrivateEOSCallback):
1224 (WebCore::moviePrivateStateCallback):
1225 (WebCore::moviePrivateBufferingCallback):
1226 (WebCore::moviePrivateWindowIDCallback):
1227 (WebCore::MoviePrivate::MoviePrivate):
1228 (WebCore::MoviePrivate::~MoviePrivate):
1229 (WebCore::MoviePrivate::load):
1230 (WebCore::MoviePrivate::play):
1231 (WebCore::MoviePrivate::pause):
1232 (WebCore::MoviePrivate::duration):
1233 (WebCore::MoviePrivate::currentTime):
1234 (WebCore::MoviePrivate::seek):
1235 (WebCore::MoviePrivate::setEndTime):
1236 (WebCore::MoviePrivate::addCuePoint):
1237 (WebCore::MoviePrivate::removeCuePoint):
1238 (WebCore::MoviePrivate::clearCuePoints):
1239 (WebCore::MoviePrivate::startCuePointTimerIfNeeded):
1240 (WebCore::MoviePrivate::cancelSeek):
1241 (WebCore::MoviePrivate::cuePointTimerFired):
1242 (WebCore::MoviePrivate::paused):
1243 (WebCore::MoviePrivate::seeking):
1244 (WebCore::MoviePrivate::naturalSize):
1245 (WebCore::MoviePrivate::hasVideo):
1246 (WebCore::MoviePrivate::setVolume):
1247 (WebCore::MoviePrivate::setMuted):
1248 (WebCore::MoviePrivate::setRate):
1249 (WebCore::MoviePrivate::dataRate):
1250 (WebCore::MoviePrivate::networkState):
1251 (WebCore::MoviePrivate::readyState):
1252 (WebCore::MoviePrivate::maxTimeBuffered):
1253 (WebCore::MoviePrivate::maxTimeSeekable):
1254 (WebCore::MoviePrivate::maxTimeLoaded):
1255 (WebCore::MoviePrivate::bytesLoaded):
1256 (WebCore::MoviePrivate::totalBytesKnown):
1257 (WebCore::MoviePrivate::totalBytes):
1258 (WebCore::MoviePrivate::cancelLoad):
1259 (WebCore::MoviePrivate::updateStates):
1260 (WebCore::MoviePrivate::loadStateChanged):
1261 (WebCore::MoviePrivate::rateChanged):
1262 (WebCore::MoviePrivate::sizeChanged):
1263 (WebCore::MoviePrivate::timeChanged):
1264 (WebCore::MoviePrivate::volumeChanged):
1265 (WebCore::MoviePrivate::didEnd):
1266 (WebCore::MoviePrivate::loadingFailed):
1267 (WebCore::MoviePrivate::setRect):
1268 (WebCore::MoviePrivate::setVisible):
1269 (WebCore::MoviePrivate::paint):
1270 (WebCore::MoviePrivate::getSupportedTypes):
1271 (WebCore::MoviePrivate::createGSTPlayBin):
1272 * platform/graphics/gtk/MoviePrivateGStreamer.h: Added.
1274 2007-12-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1278 * Implement the InspectorClient for the Qt port
1279 * It does not support highlighting of nodes yet
1280 * Use QRC to open the internal page. The important thing is the
1281 '/' in the URL to make WebCore::Document::completeURL behave the
1283 * To make the InspectorClient work we will have to mark qrc as secure.
1286 * loader/FrameLoader.cpp:
1287 (WebCore::localSchemes):
1288 * page/inspector/WebKit.qrc: Added.
1290 2007-12-04 Alp Toker <alp@atoker.com>
1292 Rubber stamped by Mark Rowe.
1294 Remove two unused variables to silence warnings.
1296 * html/CanvasRenderingContext2D.cpp:
1297 (WebCore::CanvasRenderingContext2D::fill):
1298 (WebCore::CanvasRenderingContext2D::stroke):
1300 2007-12-03 Dan Bernstein <mitz@apple.com>
1302 Reviewed by Darin Adler.
1304 - fix <rdar://problem/5134044> fast/frames/frame-src-attribute.html fails on Windows
1306 * platform/win/ScrollViewWin.cpp:
1307 (WebCore::ScrollView::visibleWidth): Do not return negative values.
1308 (WebCore::ScrollView::visibleHeight): Ditto.
1310 2007-12-03 Dan Bernstein <mitz@apple.com>
1312 Reviewed by Dave Hyatt.
1314 - fix <rdar://problem/5346452> Resize event doesn't fire on body element inside a frame
1316 Test: fast/events/resize-subframe.html
1318 * page/FrameView.cpp:
1319 (WebCore::FrameViewPrivate::FrameViewPrivate): Added a timer used when
1320 deferring tasks that need to be done after layout.
1321 (WebCore::FrameViewPrivate::reset):
1322 (WebCore::FrameView::~FrameView):
1323 (WebCore::FrameView::layout): Moved the updating of widget positions,
1324 loading plug-ins and sending events queued up during layout into
1325 performPostLayoutTasks(). performPostLayoutTasks() is called after
1326 layout unless the layout was triggered by a previous layout's post-
1327 layout tasks. In the latter case, performPostLayoutTasks() is scheduled
1329 (WebCore::FrameView::performPostLayoutTasks): Performs work that needs
1330 to be done after layout but which can result in arbitrary code
1331 execution and therefore may re-invalidate the layout. This includes
1332 updating widget positions, loading plug-ins, and dispatching layout-
1333 related DOM events (scroll, overflow and resize).
1334 (WebCore::FrameView::postLayoutTimerFired):
1335 (WebCore::FrameView::dispatchScheduledEvents):
1337 * page/mac/WebCoreFrameBridge.h:
1338 * page/mac/WebCoreFrameBridge.mm: Removed -sendResizeEvent since this
1339 is handled by FrameView now.
1341 2007-12-03 Rob Buis <buis@kde.org>
1345 http://bugs.webkit.org/show_bug.cgi?id=15767
1346 Text decorations do not respect "visibility" property
1348 Only paint decorations if visibility is "visible".
1350 * rendering/SVGInlineTextBox.cpp:
1351 (WebCore::SVGInlineTextBox::paintDecoration):
1353 2007-12-03 Steve Falkenburg <sfalken@apple.com>
1357 * WebCore.vcproj/WebCore.vcproj:
1359 2007-12-03 Nikolas Zimmermann <zimmermann@kde.org>
1363 Fixes: http://bugs.webkit.org/show_bug.cgi?id=15645
1364 Don't allow selectors to interfere with the SVG shadow tree (<use> internal non-exposed tree).
1366 * css/CSSStyleSelector.cpp:
1367 (WebCore::CSSStyleSelector::checkSelector):
1369 2007-12-03 Dan Bernstein <mitz@apple.com>
1371 Reviewed by Adam Roben.
1373 - fix <rdar://problem/5538651> REGRESSSION: domfuzz: null deref in WebCore::Document::canReplaceChild
1375 Test: fast/dom/Document/replaceChild-null-oldChild.html
1378 (WebCore::Document::canReplaceChild):
1380 2007-12-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1384 * Avoid crashes by making sure everything is layouted before
1385 we start painting. This avoids a crash in Widget::invalidateRect
1386 because QPainter::begin would fail
1387 * The QWebFrame::layout() methods and calls are left untouched because
1388 this would be an API decision.
1391 WARNING: NO TEST CASES ADDED OR CHANGED
1393 * page/FrameView.cpp:
1394 (WebCore::FrameView::updateControlTints):
1396 * platform/ScrollView.h:
1397 * platform/qt/ScrollViewQt.cpp:
1398 (WebCore::ScrollView::children):
1400 2007-12-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1404 * Implement GraphicsContext::fillRoundedRect similiar to the
1405 CoreGraphics implementation only addPath is not called this
1406 seems to be only needed for CoreGraphics.
1409 WARNING: NO TEST CASES ADDED OR CHANGED
1411 * platform/graphics/qt/GraphicsContextQt.cpp:
1412 (WebCore::GraphicsContext::fillRoundedRect):
1414 2007-12-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1418 * Coding Style fixes
1421 WARNING: NO TEST CASES ADDED OR CHANGED
1423 * platform/qt/ScrollViewQt.cpp:
1424 (WebCore::ScrollView::addChild):
1425 (WebCore::ScrollView::removeChild):
1427 2007-12-03 Alp Toker <alp@atoker.com>
1429 Reviewed by Mark Rowe.
1431 Don't delete the decoder if it's already been created. The one we have
1434 Cairo image cleanups. Nothing substantial.
1436 Notify ImageObservers where appropriate.
1438 * platform/graphics/cairo/ImageCairo.cpp:
1439 (WebCore::BitmapImage::draw):
1440 (WebCore::Image::drawPattern):
1441 * platform/graphics/cairo/ImageSourceCairo.cpp:
1442 (WebCore::ImageSource::setData):
1443 * platform/graphics/gtk/ImageGtk.cpp:
1445 2007-12-03 Simon Hausmann <hausmann@webkit.org>
1449 Fixed crash when rendering form elements with Qt 4.4
1451 QPainter::device() is not guaranteed to return a QWidget, so do the safe "cast" with the
1452 help of QPaintDevice::devType().
1453 Also fall back to the QApplication::style() if we don't have a widget.
1455 * platform/qt/RenderThemeQt.cpp:
1456 (WebCore::RenderThemeQt::paintButton):
1457 (WebCore::RenderThemeQt::paintTextField):
1458 (WebCore::RenderThemeQt::paintMenuList):
1459 (WebCore::RenderThemeQt::getStylePainterAndWidgetFromPaintInfo):
1461 2007-12-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1463 Reviewed by Sam Weinig.
1465 * Add FrameLoader::shouldTreatSchemeAsLocal which is similar to
1466 shouldTreatURLAsLocal.
1467 * Make use of FrameLoader::shouldTreatSchemeAsLocal in SecurityOrigin
1468 and do not hardcode "file". This is needed for the WebKit/qt port to make
1469 the Web Inspector work as it using the qrc protocol instead of file.
1472 * loader/FrameLoader.cpp:
1473 (WebCore::FrameLoader::shouldTreatSchemeAsLocal):
1474 * loader/FrameLoader.h:
1475 * platform/SecurityOrigin.cpp:
1476 (WebCore::SecurityOrigin::isSecureTransitionTo):
1478 2007-12-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1480 Rubber stamped by Sam Weinig.
1482 Only add applewebdata to the localSchemes when building for the
1483 mac. This is in preparation of adding qrc for the Qt port there
1484 as well and http://bugs.webkit.org/show_bug.cgi?id=15938.
1486 According to Anders applewebdata is not used on the win port.
1488 * loader/FrameLoader.cpp:
1489 (WebCore::localSchemes):
1491 2007-12-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1493 Rubber stamped by Sam Weinig.
1495 Fix a typo. It is contains and not containts
1497 * loader/FrameLoader.cpp:
1499 2007-12-03 Alp Toker <alp@atoker.com>
1501 Add another missing DEPENDPATH.
1503 Noticed when fixing the build.
1507 2007-12-03 Adam Roben <aroben@apple.com>
1509 Speculative Windows build fix
1511 * plugins/win/PluginViewWin.cpp:
1512 (WebCore::getString):
1514 2007-12-03 Geoffrey Garen <ggaren@apple.com>
1516 Build fix: added symbols to the right .exp file.
1520 2007-12-02 Geoffrey Garen <ggaren@apple.com>
1522 Reviewed by Eric Seidel.
1524 Updated to match the JavaScriptCore change to move virtual methods from
1525 Interpreter to JSGlobalObject.
1527 Moved virtual ScriptInterpreter functions to Window.
1529 2007-12-02 Darin Adler <darin@apple.com>
1533 - fix <rdar://problem/5601995> Hang/crash on http://ebay-uk.custhelp.com/
1535 There were two problems here:
1537 1) Incorrect HTMLCollection behavior led to us trying to insert a
1538 new row inside an existing row instead of next to it. The fix for
1539 this is to make HTMLCollection work better for table-related
1542 2) HTMLTableRowElement::insertCell would return a bad pointer if
1543 the insertion failed. The code should have failed, but not crashed,
1544 so it's worth fixing that too.
1546 While fixing the HTMLCollection issues, I did some clean-up of that
1547 class and its derived classes.
1549 Test: fast/dom/HTMLTableElement/rows.html
1550 Test: fast/dom/HTMLTableElement/tBodies.html
1551 Test: fast/dom/HTMLTableRowElement/cells.html
1552 Test: fast/dom/HTMLTableRowElement/insertCell.html
1553 Test: fast/dom/HTMLTableSectionElement/rows.html
1555 * bindings/js/JSHTMLCollectionCustom.cpp:
1556 (WebCore::toJS): Updated because collectionType() was renamed to type().
1558 * html/HTMLCollection.cpp:
1559 (WebCore::HTMLCollection::HTMLCollection): Updated for data member name
1560 changes. Also added a protected constructor for use by derived classes
1561 that pass in a CollectionInfo.
1562 (WebCore::HTMLCollection::CollectionInfo::copyCacheMap): Moved out of
1564 (WebCore::isTableSection): Added.
1565 (WebCore::HTMLCollection::itemAfter): Renamed from traverseNextItem,
1566 because the old name was grammatically incorrect and thus a bit confusing.
1567 Changed to operate on Element* instead of Node*, and use 0 to start
1568 rather than passing in the base node (required since the base node can be
1569 a document, which is not an element). Generalized the code that made
1570 NodeChildren not descend into deeper descendants so it can be used for
1571 TRCells, TSectionRows, TableTBodies, and TableRows. Reformatted the
1572 switch statement and got rid of the "found" boolean since we can just
1573 return when we find something. Got rid of the default case, and instead
1574 listed all the enum values. Also changed to use a for loop for clarity.
1575 (WebCore::HTMLCollection::calcLength): Updated for itemAfter changes.
1576 (WebCore::HTMLCollection::item): Ditto.
1577 (WebCore::HTMLCollection::nextItem): Ditto.
1578 (WebCore::HTMLCollection::checkForNameMatch): Updated to take an Element
1579 instead of a Node pointer.
1580 (WebCore::HTMLCollection::namedItem): More of the same.
1581 (WebCore::HTMLCollection::updateNameCache): Ditto.
1582 (WebCore::HTMLCollection::namedItems): Ditto.
1583 (WebCore::HTMLCollection::nextNamedItem): Ditto.
1584 (WebCore::HTMLCollection::tags): Ditto.
1586 * html/HTMLCollection.h: Added a type FormElements, so that the
1587 HTMLFormCollection would not have a type of DocImages, which is what
1588 it previously did. Changed the base parameter to be a PassRefPtr to
1589 make it clear we take ownership of it. Added a comment explaining
1590 why we should change the name CollectionInfo. Made a lot more members
1591 private instead of protected. Renamed traverseNextItem to itemAfter.
1592 Changed most functions to take Element* instead of Node*.
1594 * html/HTMLFormCollection.cpp:
1595 (WebCore::HTMLFormCollection::formCollectionInfo): Added.
1596 (WebCore::HTMLFormCollection::HTMLFormCollection): Updated to pass
1597 collection info into the base class.
1598 (WebCore::HTMLFormCollection::calcLength): Updated to use base() so we
1599 don't need to get at m_base directly.
1600 (WebCore::HTMLFormCollection::item): Same, but for info().
1601 (WebCore::HTMLFormCollection::getNamedItem): Removed unused first
1603 (WebCore::HTMLFormCollection::getNamedFormItem): Got rid of unneeded
1604 checks that the base is still an element and still a form, since that's
1606 (WebCore::HTMLFormCollection::nextItem): Use info().
1607 (WebCore::HTMLFormCollection::nextNamedItemInternal): Node instead of
1608 Element, some name changes.
1609 (WebCore::HTMLFormCollection::namedItem): Update for changes elsewhere.
1610 (WebCore::HTMLFormCollection::nextNamedItem): Ditto, also rewrote loop
1612 (WebCore::HTMLFormCollection::updateNameCache): More of the same.
1614 * html/HTMLFormCollection.h: Changed constructor to take an
1615 HTMLFormElement, using a PassRefPtr to communicate transfer of
1616 ownership. Made everything private instead of protected. Removed
1617 unneeded override of firstItem. Made getNamedItem and
1618 nextNamedItemInternal non-virtual. Removed unused first argument of
1619 getNamedItem. Added declaration of formCollectionInfo.
1621 * html/HTMLNameCollection.cpp:
1622 (WebCore::HTMLNameCollection::HTMLNameCollection): Updated to pass
1623 collection info into the base class.
1624 (WebCore::HTMLNameCollection::itemAfter): Reformatted a bit and
1625 changed into a for loop.
1627 * html/HTMLNameCollection.h: Updated for name changes. Made function
1628 private instead of public. Used PassRefPtr in constructor.
1630 * html/HTMLOptionsCollection.cpp:
1631 (WebCore::HTMLOptionsCollection::HTMLOptionsCollection): Updated to
1632 pass collection info into the base class.
1633 (WebCore::HTMLOptionsCollection::add): Updated for public/private
1634 changes in the base class.
1635 (WebCore::HTMLOptionsCollection::selectedIndex): Ditto.
1636 (WebCore::HTMLOptionsCollection::setSelectedIndex): Ditto.
1637 (WebCore::HTMLOptionsCollection::setLength): Ditto.
1639 * html/HTMLOptionsCollection.h: Changed constructor parameter to be a
1642 * html/HTMLTableRowElement.cpp:
1643 (WebCore::HTMLTableRowElement::insertCell): Changed code to use RefPtr
1644 and PassRefPtr since this creates a new object. This alone fixed the
1645 crash. Also cleaned up logic a bit to be more readable.
1647 * html/HTMLTableRowElement.h: Changed insertCell to return a PassRefPtr.
1648 Also reordered functions a bit to make things a little more logical and
1649 removed the unused ncols data member.
1651 * html/HTMLTableSectionElement.cpp:
1652 (WebCore::HTMLTableSectionElement::rows): Pass TSectionRows, not
1653 TableRows. This mistake was harmless before because TableRows and
1654 TSectionRows were handled identically inside HTMLCollection, but that is
1655 no longer the case with this fix.
1657 * bindings/scripts/CodeGeneratorJS.pm: Add an include to cope with the
1658 fact that HTMLOptionsCollection no longer includes HTMLOptionElement.
1659 I don't think this really should be a special case -- might be worth
1660 returning later to see if this can be optimized.
1662 2007-12-02 Nikolas Zimmermann <zimmermann@kde.org>
1666 RenderSVGViewportContainer sets wrong width/height.
1667 Share code with RenderSVGContainer in a central calcBounds() function.
1670 - svg/custom/use-css-events.svg (http://bugs.webkit.org/show_bug.cgi?id=15403)
1671 - svg/custom/deep-dynamic-updates.svg
1672 - svg/custom/use-clipped-hit.svg
1673 - svg/custom/image-clipped-hit.svg
1675 * rendering/RenderSVGContainer.cpp:
1676 (WebCore::RenderSVGContainer::layout):
1677 (WebCore::RenderSVGContainer::calcBounds):
1678 * rendering/RenderSVGContainer.h:
1679 * rendering/RenderSVGViewportContainer.cpp:
1680 (WebCore::RenderSVGViewportContainer::layout):
1682 2007-12-02 Brady Eidson <beidson@apple.com>
1686 databaseChanged notifications were being sent out on the database thread - they need to be on the main thread
1687 like all other notifications we send out!
1689 * platform/SecurityOriginData.cpp:
1690 (WebCore::SecurityOriginData::copy): Add a deep copy method, for when an object thread hops
1691 * platform/SecurityOriginData.h:
1693 * storage/DatabaseTracker.cpp:
1694 (WebCore::notificationMutex):
1695 (WebCore::notificationQueue):
1696 (WebCore::DatabaseTracker::scheduleNotifyDatabaseChanged): Add the origin/name pair to a queue
1697 (WebCore::DatabaseTracker::scheduleForNotification): Schedule to deliver this queue of notifications
1699 (WebCore::DatabaseTracker::notifyDatabasesChanged): Deliver all notifications in the queue
1700 * storage/DatabaseTracker.h:
1702 * storage/SQLTransaction.cpp:
1703 (WebCore::SQLTransaction::postflightAndCommit): scheduleNotifyDatabaseChanged() instead of "notify now!"
1704 (WebCore::SQLTransaction::cleanupAfterTransactionErrorCallback): Ditto
1706 2007-12-02 Rob Buis <buis@kde.org>
1710 http://bugs.webkit.org/show_bug.cgi?id=16002
1711 Load SVG (and other) UA StyleSheets dynamically when needed
1713 Load svg sheet when needed.
1715 * css/CSSStyleSelector.cpp:
1716 (WebCore::screenEval):
1717 (WebCore::printEval):
1718 (WebCore::CSSStyleSelector::CSSStyleSelector):
1719 (WebCore::CSSStyleSelector::loadDefaultStyle):
1720 (WebCore::CSSStyleSelector::styleForElement):
1721 (WebCore::CSSRuleSet::addRulesFromSheet):
1723 2007-12-02 Mark Rowe <mrowe@apple.com>
1725 Try and fix the Windows build.
1727 * plugins/win/PluginViewWin.cpp:
1728 (WebCore::PluginViewWin::bindingInstance):
1730 2007-12-02 Nikolas Zimmermann <zimmermann@kde.org>
1732 Rubber stamped by Eric.
1734 Move platform/graphics/svg to graphics/svg as discussed on webkit-dev.
1735 Updated all project files.
1738 * WebCore.vcproj/WebCore.vcproj:
1739 * WebCore.xcodeproj/project.pbxproj:
1740 * platform/graphics/svg: Removed.
1741 * platform/graphics/svg/SVGImage.cpp: Removed.
1742 * platform/graphics/svg/SVGImage.h: Removed.
1743 * platform/graphics/svg/SVGImageEmptyClients.h: Removed.
1744 * platform/graphics/svg/SVGPaintServer.cpp: Removed.
1745 * platform/graphics/svg/SVGPaintServer.h: Removed.
1746 * platform/graphics/svg/SVGPaintServerGradient.cpp: Removed.
1747 * platform/graphics/svg/SVGPaintServerGradient.h: Removed.
1748 * platform/graphics/svg/SVGPaintServerLinearGradient.cpp: Removed.
1749 * platform/graphics/svg/SVGPaintServerLinearGradient.h: Removed.
1750 * platform/graphics/svg/SVGPaintServerPattern.cpp: Removed.
1751 * platform/graphics/svg/SVGPaintServerPattern.h: Removed.
1752 * platform/graphics/svg/SVGPaintServerRadialGradient.cpp: Removed.
1753 * platform/graphics/svg/SVGPaintServerRadialGradient.h: Removed.
1754 * platform/graphics/svg/SVGPaintServerSolid.cpp: Removed.
1755 * platform/graphics/svg/SVGPaintServerSolid.h: Removed.
1756 * platform/graphics/svg/SVGResource.cpp: Removed.
1757 * platform/graphics/svg/SVGResource.h: Removed.
1758 * platform/graphics/svg/SVGResourceClipper.cpp: Removed.
1759 * platform/graphics/svg/SVGResourceClipper.h: Removed.
1760 * platform/graphics/svg/SVGResourceFilter.cpp: Removed.
1761 * platform/graphics/svg/SVGResourceFilter.h: Removed.
1762 * platform/graphics/svg/SVGResourceListener.h: Removed.
1763 * platform/graphics/svg/SVGResourceMarker.cpp: Removed.
1764 * platform/graphics/svg/SVGResourceMarker.h: Removed.
1765 * platform/graphics/svg/SVGResourceMasker.cpp: Removed.
1766 * platform/graphics/svg/SVGResourceMasker.h: Removed.
1767 * platform/graphics/svg/cairo: Removed.
1768 * platform/graphics/svg/cairo/RenderPathCairo.cpp: Removed.
1769 * platform/graphics/svg/cairo/SVGPaintServerCairo.cpp: Removed.
1770 * platform/graphics/svg/cairo/SVGPaintServerGradientCairo.cpp: Removed.
1771 * platform/graphics/svg/cairo/SVGPaintServerPatternCairo.cpp: Removed.
1772 * platform/graphics/svg/cairo/SVGPaintServerSolidCairo.cpp: Removed.
1773 * platform/graphics/svg/cairo/SVGResourceClipperCairo.cpp: Removed.
1774 * platform/graphics/svg/cairo/SVGResourceMaskerCairo.cpp: Removed.
1775 * platform/graphics/svg/cg: Removed.
1776 * platform/graphics/svg/cg/CgSupport.cpp: Removed.
1777 * platform/graphics/svg/cg/CgSupport.h: Removed.
1778 * platform/graphics/svg/cg/RenderPathCg.cpp: Removed.
1779 * platform/graphics/svg/cg/SVGPaintServerCg.cpp: Removed.
1780 * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp: Removed.
1781 * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp: Removed.
1782 * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp: Removed.
1783 * platform/graphics/svg/cg/SVGResourceClipperCg.cpp: Removed.
1784 * platform/graphics/svg/cg/SVGResourceFilterCg.cpp: Removed.
1785 * platform/graphics/svg/cg/SVGResourceFilterCg.mm: Removed.
1786 * platform/graphics/svg/cg/SVGResourceMaskerCg.cpp: Removed.
1787 * platform/graphics/svg/cg/SVGResourceMaskerCg.mm: Removed.
1788 * platform/graphics/svg/filters: Removed.
1789 * platform/graphics/svg/filters/SVGDistantLightSource.h: Removed.
1790 * platform/graphics/svg/filters/SVGFEBlend.cpp: Removed.
1791 * platform/graphics/svg/filters/SVGFEBlend.h: Removed.
1792 * platform/graphics/svg/filters/SVGFEColorMatrix.cpp: Removed.
1793 * platform/graphics/svg/filters/SVGFEColorMatrix.h: Removed.
1794 * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp: Removed.
1795 * platform/graphics/svg/filters/SVGFEComponentTransfer.h: Removed.
1796 * platform/graphics/svg/filters/SVGFEComposite.cpp: Removed.
1797 * platform/graphics/svg/filters/SVGFEComposite.h: Removed.
1798 * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp: Removed.
1799 * platform/graphics/svg/filters/SVGFEConvolveMatrix.h: Removed.
1800 * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp: Removed.
1801 * platform/graphics/svg/filters/SVGFEDiffuseLighting.h: Removed.
1802 * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp: Removed.
1803 * platform/graphics/svg/filters/SVGFEDisplacementMap.h: Removed.
1804 * platform/graphics/svg/filters/SVGFEFlood.cpp: Removed.
1805 * platform/graphics/svg/filters/SVGFEFlood.h: Removed.
1806 * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp: Removed.
1807 * platform/graphics/svg/filters/SVGFEGaussianBlur.h: Removed.
1808 * platform/graphics/svg/filters/SVGFEImage.cpp: Removed.
1809 * platform/graphics/svg/filters/SVGFEImage.h: Removed.
1810 * platform/graphics/svg/filters/SVGFEMerge.cpp: Removed.
1811 * platform/graphics/svg/filters/SVGFEMerge.h: Removed.
1812 * platform/graphics/svg/filters/SVGFEMorphology.cpp: Removed.
1813 * platform/graphics/svg/filters/SVGFEMorphology.h: Removed.
1814 * platform/graphics/svg/filters/SVGFEOffset.cpp: Removed.
1815 * platform/graphics/svg/filters/SVGFEOffset.h: Removed.
1816 * platform/graphics/svg/filters/SVGFESpecularLighting.cpp: Removed.
1817 * platform/graphics/svg/filters/SVGFESpecularLighting.h: Removed.
1818 * platform/graphics/svg/filters/SVGFETile.h: Removed.
1819 * platform/graphics/svg/filters/SVGFETurbulence.cpp: Removed.
1820 * platform/graphics/svg/filters/SVGFETurbulence.h: Removed.
1821 * platform/graphics/svg/filters/SVGFilterEffect.cpp: Removed.
1822 * platform/graphics/svg/filters/SVGFilterEffect.h: Removed.
1823 * platform/graphics/svg/filters/SVGLightSource.cpp: Removed.
1824 * platform/graphics/svg/filters/SVGLightSource.h: Removed.
1825 * platform/graphics/svg/filters/SVGPointLightSource.h: Removed.
1826 * platform/graphics/svg/filters/SVGSpotLightSource.h: Removed.
1827 * platform/graphics/svg/filters/cg: Removed.
1828 * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm: Removed.
1829 * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm: Removed.
1830 * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm: Removed.
1831 * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm: Removed.
1832 * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm: Removed.
1833 * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm: Removed.
1834 * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm: Removed.
1835 * platform/graphics/svg/filters/cg/SVGFEGaussianBlurCg.mm: Removed.
1836 * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h: Removed.
1837 * platform/graphics/svg/filters/cg/SVGFEHelpersCg.mm: Removed.
1838 * platform/graphics/svg/filters/cg/SVGFEImageCg.mm: Removed.
1839 * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm: Removed.
1840 * platform/graphics/svg/filters/cg/SVGFEOffsetCg.mm: Removed.
1841 * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm: Removed.
1842 * platform/graphics/svg/filters/cg/SVGFETileCg.mm: Removed.
1843 * platform/graphics/svg/filters/cg/SVGFilterEffectCg.mm: Removed.
1844 * platform/graphics/svg/filters/cg/WKArithmeticFilter.cikernel: Removed.
1845 * platform/graphics/svg/filters/cg/WKArithmeticFilter.h: Removed.
1846 * platform/graphics/svg/filters/cg/WKArithmeticFilter.m: Removed.
1847 * platform/graphics/svg/filters/cg/WKComponentMergeFilter.cikernel: Removed.
1848 * platform/graphics/svg/filters/cg/WKComponentMergeFilter.h: Removed.
1849 * platform/graphics/svg/filters/cg/WKComponentMergeFilter.m: Removed.
1850 * platform/graphics/svg/filters/cg/WKDiffuseLightingFilter.cikernel: Removed.
1851 * platform/graphics/svg/filters/cg/WKDiffuseLightingFilter.h: Removed.
1852 * platform/graphics/svg/filters/cg/WKDiffuseLightingFilter.m: Removed.
1853 * platform/graphics/svg/filters/cg/WKDiscreteTransferFilter.cikernel: Removed.
1854 * platform/graphics/svg/filters/cg/WKDiscreteTransferFilter.h: Removed.
1855 * platform/graphics/svg/filters/cg/WKDiscreteTransferFilter.m: Removed.
1856 * platform/graphics/svg/filters/cg/WKDisplacementMapFilter.cikernel: Removed.
1857 * platform/graphics/svg/filters/cg/WKDisplacementMapFilter.h: Removed.
1858 * platform/graphics/svg/filters/cg/WKDisplacementMapFilter.m: Removed.
1859 * platform/graphics/svg/filters/cg/WKDistantLightFilter.cikernel: Removed.
1860 * platform/graphics/svg/filters/cg/WKDistantLightFilter.h: Removed.
1861 * platform/graphics/svg/filters/cg/WKDistantLightFilter.m: Removed.
1862 * platform/graphics/svg/filters/cg/WKGammaTransferFilter.cikernel: Removed.
1863 * platform/graphics/svg/filters/cg/WKGammaTransferFilter.h: Removed.
1864 * platform/graphics/svg/filters/cg/WKGammaTransferFilter.m: Removed.
1865 * platform/graphics/svg/filters/cg/WKIdentityTransferFilter.h: Removed.
1866 * platform/graphics/svg/filters/cg/WKIdentityTransferFilter.m: Removed.
1867 * platform/graphics/svg/filters/cg/WKLinearTransferFilter.cikernel: Removed.
1868 * platform/graphics/svg/filters/cg/WKLinearTransferFilter.h: Removed.
1869 * platform/graphics/svg/filters/cg/WKLinearTransferFilter.m: Removed.
1870 * platform/graphics/svg/filters/cg/WKNormalMapFilter.cikernel: Removed.
1871 * platform/graphics/svg/filters/cg/WKNormalMapFilter.h: Removed.
1872 * platform/graphics/svg/filters/cg/WKNormalMapFilter.m: Removed.
1873 * platform/graphics/svg/filters/cg/WKPointLightFilter.cikernel: Removed.
1874 * platform/graphics/svg/filters/cg/WKPointLightFilter.h: Removed.
1875 * platform/graphics/svg/filters/cg/WKPointLightFilter.m: Removed.
1876 * platform/graphics/svg/filters/cg/WKSpecularLightingFilter.cikernel: Removed.
1877 * platform/graphics/svg/filters/cg/WKSpecularLightingFilter.h: Removed.
1878 * platform/graphics/svg/filters/cg/WKSpecularLightingFilter.m: Removed.
1879 * platform/graphics/svg/filters/cg/WKSpotLightFilter.cikernel: Removed.
1880 * platform/graphics/svg/filters/cg/WKSpotLightFilter.h: Removed.
1881 * platform/graphics/svg/filters/cg/WKSpotLightFilter.m: Removed.
1882 * platform/graphics/svg/filters/cg/WKTableTransferFilter.cikernel: Removed.
1883 * platform/graphics/svg/filters/cg/WKTableTransferFilter.h: Removed.
1884 * platform/graphics/svg/filters/cg/WKTableTransferFilter.m: Removed.
1885 * platform/graphics/svg/mac: Removed.
1886 * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.h: Removed.
1887 * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.mm: Removed.
1888 * platform/graphics/svg/qt: Removed.
1889 * platform/graphics/svg/qt/RenderPathQt.cpp: Removed.
1890 * platform/graphics/svg/qt/SVGPaintServerGradientQt.cpp: Removed.
1891 * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp: Removed.
1892 * platform/graphics/svg/qt/SVGPaintServerPatternQt.cpp: Removed.
1893 * platform/graphics/svg/qt/SVGPaintServerQt.cpp: Removed.
1894 * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp: Removed.
1895 * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp: Removed.
1896 * platform/graphics/svg/qt/SVGResourceClipperQt.cpp: Removed.
1897 * platform/graphics/svg/qt/SVGResourceFilterQt.cpp: Removed.
1898 * platform/graphics/svg/qt/SVGResourceMaskerQt.cpp: Removed.
1899 * svg/graphics: Copied from platform/graphics/svg.
1901 2007-12-02 Nikolas Zimmermann <zimmermann@kde.org>
1905 Fix IDL lookup in subdirectories. Missing 'my' prefix for the 'thisDir' variable.
1906 When entering subdirectories the 'thisDir' variable got altered - see snippet:
1908 THISDIR: WebCore/page FOUND FILE: FrameView.h (endCondition: 0)
1910 -> ENTER: WebCore/page/gtk (THIS DIR: WebCore/page)
1912 <- LEAVE: WebCore/page/gtk (THIS DIR: WebCore/page/gtk)
1913 THISDIR: WebCore/page/gtk FOUND FILE: History.cpp (endCondition: 0)
1915 'History.cpp' is located in WebCore/page not WebCore/page/gtk.
1917 * bindings/scripts/CodeGenerator.pm:
1919 2007-12-01 Alp Toker <alp@atoker.com>
1921 Reviewed by Adam Roben.
1923 Add the newly introduced webkit.h convenience header.
1927 2007-12-01 Antti Koivisto <antti@apple.com>
1931 - Fix crash when removing a loading media element from the tree.
1932 - Follow the spec by invoking pause() when element is removed from the tree instead of unloading.
1934 Tests: http/tests/media/remove-while-loading.html
1935 media/remove-from-document.html
1937 * html/HTMLMediaElement.cpp:
1938 (WebCore::HTMLMediaElement::removedFromDocument):
1940 2007-12-01 Geoffrey Garen <ggaren@apple.com>
1942 Reviewed by Beth Dakin.
1944 Restored the test string in this test.
1946 * manual-tests/window-open-features-parsing.html:
1948 2007-11-30 Geoffrey Garen <ggaren@apple.com>
1950 Reviewed by Beth Dakin.
1952 Modified WebCore to follow the new JSGlobalObject/Interpreter ownership
1953 rules in JavaScriptCore.
1955 * bindings/js/kjs_binding.cpp:
1956 * bindings/js/kjs_binding.h: Removed stale, unused
1957 interpreterForGlobalObject().
1959 * bindings/js/kjs_proxy.cpp: Changed to store a global object, rather
1960 than an interpreter.
1961 (WebCore::KJSProxy::finishedWithEvent): Need to NULL check
1962 m_globalObject here because we no longer unnecessarily instantiate it.
1964 * bindings/js/kjs_window.cpp:
1965 (KJS::ScheduledAction::execute):
1966 * bindings/js/kjs_window.h: Removed redundant and less efficient
1967 interpreter() function -- global objects have direct access to their
1970 Changed these functions to pass around JSGlobalObjects instead of
1974 (WebCore::Frame::bindingRootObject):
1975 (WebCore::Frame::createRootObject):
1977 * page/mac/WebCoreFrameBridge.mm:
1980 2007-12-01 Darin Adler <darin@apple.com>
1984 - fix problem tracked by these bugs:
1985 http://bugs.webkit.org/show_bug.cgi?id=16097
1986 <rdar://problem/5619305> Safari crashes during load of LexisNexis search results
1987 <rdar://problem/5510779> CrashTracer: [USER] 25 crashes in Safari at
1988 WebCore::DocumentLoader::isLoadingMultipartContent const
1990 * loader/ImageDocument.cpp:
1991 (WebCore::ImageDocument::createDocumentStructure): Create an ImageDocumentElement
1992 instead of an HTMLImageElement.
1993 (WebCore::ImageDocument::scale): Added a null check for m_imageElement.
1994 (WebCore::ImageDocument::resizeImageToFit): Ditto.
1995 (WebCore::ImageDocument::restoreImageSize): Ditto.
1996 (WebCore::ImageDocument::imageFitsInWindow): Ditto.
1997 (WebCore::ImageDocument::windowSizeChanged): Ditto.
1998 (WebCore::ImageDocumentElement::~ImageDocumentElement): Call
1999 disconnectImageElement so m_imageElement will be set to 0
2000 if we're still connected to the document.
2001 (WebCore::ImageDocumentElement::willMoveToNewOwnerDocument): Ditto.
2003 * loader/ImageDocument.h: Changed image element type to be
2004 ImageDocumentElement instead of HTMLImageElement. Also added
2005 a disconnectImageElement function that sets m_imageElement to 0.
2007 2007-12-01 Darin Adler <darin@apple.com>
2009 - remove the empty directories
2012 * ksvg2/css: Removed.
2013 * ksvg2/events: Removed.
2014 * ksvg2/misc: Removed.
2015 * ksvg2/scripts: Removed.
2017 2007-12-01 Julien Chaffraix <julien.chaffraix@gmail.com>
2019 Bug 16189: XMLHttpRequest::setRequestHeader() should not set certain headers
2021 Reviewed by Darin Adler.
2023 * xml/XMLHttpRequest.cpp:
2024 (WebCore::canSetRequestHeader):
2026 Test: http/tests/xmlhttprequest/set-dangerous-headers.html
2028 2007-12-01 Rahul Abrol <ra5ul@comcast.net>
2030 Reviewed by Adam Roben.
2032 http://bugs.webkit.org/show_bug.cgi?id=16128
2033 Ignore resizable=no for window.open().
2035 * bindings/js/kjs_window.cpp:
2036 (KJS::setWindowFeature):
2037 (KJS::parseWindowFeatures):
2038 * manual-tests/window-open-features-parsing.html:
2040 2007-12-01 Dan Bernstein <mitz@apple.com>
2042 Reviewed by Darin Adler.
2044 - fix <rdar://problem/5619240> REGRESSION (Leopard-r28069): Reproducible crash with a Mootools-based calendar picker (jump to null in FrameView::layout)
2046 Test: fast/dynamic/subtree-common-root.html
2048 * page/FrameView.cpp:
2049 (WebCore::FrameView::layoutRoot): Added a parameter to let this method
2050 return the layout root for a pending layout as well.
2051 (WebCore::FrameView::scheduleRelayoutOfSubtree): Pass the new root
2052 to markContainingBlocksForLayout(). Otherwise,
2053 markContainingBlocksForLayout() could mark past the new root, if it had
2054 previously been marked as having a normal child needing layout and then
2055 was reached via a positioned child.
2057 * rendering/RenderBox.cpp:
2058 (WebCore::RenderBox::calcWidth):
2059 * rendering/RenderObject.cpp:
2060 (WebCore::RenderObject::~RenderObject): Fixed the ASSERT so that
2061 it would really catch deletion of the layout root.
2062 (WebCore::RenderObject::markContainingBlocksForLayout): Added the
2063 newRoot parameter, which tells this method where to stop marking.
2064 * rendering/RenderObject.h:
2066 2007-12-01 Dan Bernstein <mitz@apple.com>
2068 Reviewed by Darin Adler.
2070 - fold FontStyle into TextRun
2072 * WebCore.xcodeproj/project.pbxproj:
2073 * platform/graphics/Font.cpp:
2074 (WebCore::WidthIterator::WidthIterator):
2075 (WebCore::WidthIterator::advance):
2076 (WebCore::Font::width):
2077 (WebCore::Font::drawSimpleText):
2078 (WebCore::Font::drawGlyphBuffer):
2079 (WebCore::Font::drawText):
2080 (WebCore::Font::floatWidth):
2081 (WebCore::Font::floatWidthForSimpleText):
2082 (WebCore::Font::selectionRectForText):
2083 (WebCore::Font::selectionRectForSimpleText):
2084 (WebCore::Font::offsetForPosition):
2085 (WebCore::Font::offsetForPositionForSimpleText):
2086 * platform/graphics/Font.h:
2087 (WebCore::TextRun::TextRun):
2088 (WebCore::TextRun::setText):
2089 (WebCore::TextRun::allowTabs):
2090 (WebCore::TextRun::xPos):
2091 (WebCore::TextRun::padding):
2092 (WebCore::TextRun::rtl):
2093 (WebCore::TextRun::ltr):
2094 (WebCore::TextRun::directionalOverride):
2095 (WebCore::TextRun::applyRunRounding):
2096 (WebCore::TextRun::applyWordRounding):
2097 (WebCore::TextRun::spacingDisabled):
2098 (WebCore::TextRun::disableSpacing):
2099 (WebCore::TextRun::disableRoundingHacks):
2100 (WebCore::TextRun::setRTL):
2101 (WebCore::TextRun::setDirectionalOverride):
2102 * platform/graphics/FontStyle.h: Removed.
2103 * platform/graphics/GraphicsContext.cpp:
2104 (WebCore::GraphicsContext::drawText):
2105 (WebCore::GraphicsContext::drawBidiText):
2106 (WebCore::GraphicsContext::drawHighlightForText):
2107 * platform/graphics/GraphicsContext.h:
2108 * platform/graphics/StringTruncator.cpp:
2109 (WebCore::stringWidth):
2110 * platform/graphics/gtk/FontGtk.cpp:
2111 (WebCore::Font::drawComplexText):
2112 (WebCore::Font::floatWidthForComplexText):
2113 (WebCore::Font::offsetForPositionForComplexText):
2114 (WebCore::Font::selectionRectForComplexText):
2115 * platform/graphics/mac/FontMac.mm:
2116 (WebCore::ATSULayoutParameters::ATSULayoutParameters):
2117 (WebCore::addDirectionalOverride):
2118 (WebCore::overrideLayoutOperation):
2119 (WebCore::ATSULayoutParameters::initialize):
2120 (WebCore::Font::selectionRectForComplexText):
2121 (WebCore::Font::drawComplexText):
2122 (WebCore::Font::floatWidthForComplexText):
2123 (WebCore::Font::offsetForPositionForComplexText):
2124 * platform/graphics/qt/FontQt.cpp:
2125 (WebCore::generateComponents):
2126 (WebCore::Font::drawText):
2127 (WebCore::Font::width):
2128 (WebCore::Font::offsetForPosition):
2129 (WebCore::cursorToX):
2130 (WebCore::Font::selectionRectForText):
2131 * platform/graphics/win/FontWin.cpp:
2132 (WebCore::Font::selectionRectForComplexText):
2133 (WebCore::Font::drawComplexText):
2134 (WebCore::Font::floatWidthForComplexText):
2135 (WebCore::Font::offsetForPositionForComplexText):
2136 * platform/graphics/wx/FontWx.cpp:
2137 (WebCore::Font::selectionRectForComplexText):
2138 (WebCore::Font::drawComplexText):
2139 (WebCore::Font::floatWidthForComplexText):
2140 (WebCore::Font::offsetForPositionForComplexText):
2141 * platform/mac/WebCoreTextRenderer.mm:
2142 (WebCoreDrawTextAtPoint):
2143 (WebCoreTextFloatWidth):
2144 * platform/win/PopupMenuWin.cpp:
2145 (WebCore::PopupMenu::paint):
2146 * platform/win/UniscribeController.cpp:
2147 (WebCore::UniscribeController::UniscribeController):
2148 (WebCore::UniscribeController::offsetForPosition):
2149 (WebCore::UniscribeController::advance):
2150 (WebCore::UniscribeController::itemizeShapeAndPlace):
2151 (WebCore::UniscribeController::resetControlAndState):
2152 (WebCore::UniscribeController::shapeAndPlaceItem):
2153 * platform/win/UniscribeController.h:
2154 * platform/win/WebCoreTextRenderer.cpp:
2155 (WebCore::doDrawTextAtPoint):
2156 * rendering/EllipsisBox.cpp:
2157 (WebCore::EllipsisBox::paint):
2158 * rendering/InlineTextBox.cpp:
2159 (WebCore::InlineTextBox::selectionRect):
2160 (WebCore::InlineTextBox::paint):
2161 (WebCore::InlineTextBox::paintSelection):
2162 (WebCore::InlineTextBox::paintCompositionBackground):
2163 (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
2164 (WebCore::InlineTextBox::paintTextMatchMarker):
2165 (WebCore::InlineTextBox::offsetForPosition):
2166 (WebCore::InlineTextBox::positionForOffset):
2167 * rendering/RenderFileUploadControl.cpp:
2168 (WebCore::RenderFileUploadControl::paintObject):
2169 (WebCore::RenderFileUploadControl::calcPrefWidths):
2170 * rendering/RenderImage.cpp:
2171 * rendering/RenderListBox.cpp:
2172 (WebCore::RenderListBox::updateFromElement):
2173 (WebCore::RenderListBox::paintItemForeground):
2174 * rendering/RenderMenuList.cpp:
2175 (WebCore::RenderMenuList::updateOptionsWidth):
2176 * rendering/RenderText.cpp:
2177 (WebCore::RenderText::widthFromCache):
2178 (WebCore::RenderText::calcPrefWidths):
2179 (WebCore::RenderText::width):
2180 * rendering/RenderText.h:
2181 (WebCore::RenderText::allowTabs):
2182 * rendering/RenderTextControl.cpp:
2183 (WebCore::RenderTextControl::calcPrefWidths):
2184 * rendering/SVGInlineTextBox.cpp:
2185 (WebCore::SVGInlineTextBox::calculateGlyphWidth):
2186 (WebCore::SVGInlineTextBox::paintCharacters):
2187 (WebCore::SVGInlineTextBox::paintSelection):
2188 * rendering/SVGRootInlineBox.cpp:
2189 (WebCore::SVGRootInlineBoxPaintWalker::chunkPortionCallback):
2190 (WebCore::cummulatedWidthOfInlineBoxCharacterRange):
2191 (WebCore::svgTextRunForInlineTextBox):
2192 * rendering/SVGRootInlineBox.h:
2194 2007-12-01 Adam Treat <treat@kde.org>
2198 * Don't hide symbols when in Debug mode
2199 * On Linux (glibc) provide a backtrace in the test output for debugging purposes
2203 2007-11-30 Alp Toker <alp@atoker.com>
2205 Reviewed by Adam Roben.
2207 http://bugs.webkit.org/show_bug.cgi?id=15691
2208 [GTK] Public API does not follow GTK+ conventions
2210 Refactor the WebKit/GTK+ public API. Changes:
2211 WebKitPage -> WebKitWebView
2212 WebKitFrame -> WebKitWebFrame
2214 Public API source and header names have been updated to mirror the API
2217 The API is now kept in WebKit/gtk/WebView to match other ports in the
2218 same class such as Mac and Win.
2222 2007-11-30 Anders Carlsson <andersca@apple.com>
2224 Add platform/text project group.
2226 * WebCore.vcproj/WebCore.vcproj:
2228 2007-11-30 Anders Carlsson <andersca@apple.com>
2230 Remove extra </Filter> tag which prevented the vcproj from being parsed correctly.
2232 * WebCore.vcproj/WebCore.vcproj:
2234 2007-11-30 Nikolas Zimmermann <zimmermann@kde.org>
2236 Not reviewed. Try to fix qt/gtk build.
2240 2007-11-30 Nikolas Zimmermann <zimmermann@kde.org>
2242 Rubber stamped by Eric.
2244 Final integration of ksvg2 in WebKit. Moving ksvg2/ to svg/ and killing all it's subdirectories,
2245 by moving the files into approriate locations (css, rendering, ...) - as dicsussed on the
2246 mailing list and on IRC with David/Darin & Eric.
2248 Updated all build files - though I can't guarantee it builds on non-mac. Need buildbot to verify.
2250 * DerivedSources.make:
2252 * WebCore.vcproj/WebCore.vcproj:
2253 * WebCore.xcodeproj/project.pbxproj:
2254 * bindings/js/JSSVGLazyEventListener.cpp: Copied from ksvg2/events/JSSVGLazyEventListener.cpp.
2255 * bindings/js/JSSVGLazyEventListener.h: Copied from ksvg2/events/JSSVGLazyEventListener.h.
2256 * css/SVGCSSComputedStyleDeclaration.cpp: Copied from ksvg2/css/SVGCSSComputedStyleDeclaration.cpp.
2257 * css/SVGCSSParser.cpp: Copied from ksvg2/css/SVGCSSParser.cpp.
2258 * css/SVGCSSPropertyNames.in: Copied from ksvg2/css/SVGCSSPropertyNames.in.
2259 * css/SVGCSSStyleSelector.cpp: Copied from ksvg2/css/SVGCSSStyleSelector.cpp.
2260 * css/SVGCSSValueKeywords.in: Copied from ksvg2/css/SVGCSSValueKeywords.in.
2261 * dom/make_names.pl: Copied from ksvg2/scripts/make_names.pl.
2262 * ksvg2/css/SVGCSSComputedStyleDeclaration.cpp: Removed.
2263 * ksvg2/css/SVGCSSParser.cpp: Removed.
2264 * ksvg2/css/SVGCSSPropertyNames.in: Removed.
2265 * ksvg2/css/SVGCSSStyleSelector.cpp: Removed.
2266 * ksvg2/css/SVGCSSValueKeywords.in: Removed.
2267 * ksvg2/css/SVGRenderStyle.cpp: Removed.
2268 * ksvg2/css/SVGRenderStyle.h: Removed.
2269 * ksvg2/css/SVGRenderStyleDefs.cpp: Removed.
2270 * ksvg2/css/SVGRenderStyleDefs.h: Removed.
2271 * ksvg2/events/JSSVGLazyEventListener.cpp: Removed.
2272 * ksvg2/events/JSSVGLazyEventListener.h: Removed.
2273 * ksvg2/events/SVGZoomEvent.cpp: Removed.
2274 * ksvg2/events/SVGZoomEvent.h: Removed.
2275 * ksvg2/events/SVGZoomEvent.idl: Removed.
2276 * ksvg2/misc/PointerEventsHitRules.cpp: Removed.
2277 * ksvg2/misc/PointerEventsHitRules.h: Removed.
2278 * ksvg2/misc/SVGDocumentExtensions.cpp: Removed.
2279 * ksvg2/misc/SVGDocumentExtensions.h: Removed.
2280 * ksvg2/misc/SVGImageLoader.cpp: Removed.
2281 * ksvg2/misc/SVGImageLoader.h: Removed.
2282 * ksvg2/misc/SVGTimer.cpp: Removed.
2283 * ksvg2/misc/SVGTimer.h: Removed.
2284 * ksvg2/misc/TimeScheduler.cpp: Removed.
2285 * ksvg2/misc/TimeScheduler.h: Removed.
2286 * ksvg2/misc/xlinkattrs.in: Removed.
2287 * ksvg2/scripts/make_names.pl: Removed.
2288 * ksvg2/svg: Removed.
2289 * ksvg2/svg/ColorDistance.cpp: Removed.
2290 * ksvg2/svg/ColorDistance.h: Removed.
2291 * ksvg2/svg/GradientAttributes.h: Removed.
2292 * ksvg2/svg/LinearGradientAttributes.h: Removed.
2293 * ksvg2/svg/PatternAttributes.h: Removed.
2294 * ksvg2/svg/RadialGradientAttributes.h: Removed.
2295 * ksvg2/svg/SVGAElement.cpp: Removed.
2296 * ksvg2/svg/SVGAElement.h: Removed.
2297 * ksvg2/svg/SVGAElement.idl: Removed.
2298 * ksvg2/svg/SVGAngle.cpp: Removed.
2299 * ksvg2/svg/SVGAngle.h: Removed.
2300 * ksvg2/svg/SVGAngle.idl: Removed.
2301 * ksvg2/svg/SVGAnimateColorElement.cpp: Removed.
2302 * ksvg2/svg/SVGAnimateColorElement.h: Removed.
2303 * ksvg2/svg/SVGAnimateColorElement.idl: Removed.
2304 * ksvg2/svg/SVGAnimateElement.cpp: Removed.
2305 * ksvg2/svg/SVGAnimateElement.h: Removed.
2306 * ksvg2/svg/SVGAnimateElement.idl: Removed.
2307 * ksvg2/svg/SVGAnimateMotionElement.cpp: Removed.
2308 * ksvg2/svg/SVGAnimateMotionElement.h: Removed.
2309 * ksvg2/svg/SVGAnimateTransformElement.cpp: Removed.
2310 * ksvg2/svg/SVGAnimateTransformElement.h: Removed.
2311 * ksvg2/svg/SVGAnimateTransformElement.idl: Removed.
2312 * ksvg2/svg/SVGAnimatedAngle.idl: Removed.
2313 * ksvg2/svg/SVGAnimatedBoolean.idl: Removed.
2314 * ksvg2/svg/SVGAnimatedEnumeration.idl: Removed.
2315 * ksvg2/svg/SVGAnimatedInteger.idl: Removed.
2316 * ksvg2/svg/SVGAnimatedLength.idl: Removed.
2317 * ksvg2/svg/SVGAnimatedLengthList.idl: Removed.
2318 * ksvg2/svg/SVGAnimatedNumber.idl: Removed.
2319 * ksvg2/svg/SVGAnimatedNumberList.idl: Removed.
2320 * ksvg2/svg/SVGAnimatedPathData.cpp: Removed.
2321 * ksvg2/svg/SVGAnimatedPathData.h: Removed.
2322 * ksvg2/svg/SVGAnimatedPathData.idl: Removed.
2323 * ksvg2/svg/SVGAnimatedPoints.cpp: Removed.
2324 * ksvg2/svg/SVGAnimatedPoints.h: Removed.
2325 * ksvg2/svg/SVGAnimatedPoints.idl: Removed.
2326 * ksvg2/svg/SVGAnimatedPreserveAspectRatio.idl: Removed.
2327 * ksvg2/svg/SVGAnimatedRect.idl: Removed.
2328 * ksvg2/svg/SVGAnimatedString.idl: Removed.
2329 * ksvg2/svg/SVGAnimatedTemplate.h: Removed.
2330 * ksvg2/svg/SVGAnimatedTransformList.idl: Removed.
2331 * ksvg2/svg/SVGAnimationElement.cpp: Removed.
2332 * ksvg2/svg/SVGAnimationElement.h: Removed.
2333 * ksvg2/svg/SVGAnimationElement.idl: Removed.
2334 * ksvg2/svg/SVGCircleElement.cpp: Removed.
2335 * ksvg2/svg/SVGCircleElement.h: Removed.
2336 * ksvg2/svg/SVGCircleElement.idl: Removed.
2337 * ksvg2/svg/SVGClipPathElement.cpp: Removed.
2338 * ksvg2/svg/SVGClipPathElement.h: Removed.
2339 * ksvg2/svg/SVGClipPathElement.idl: Removed.
2340 * ksvg2/svg/SVGColor.cpp: Removed.
2341 * ksvg2/svg/SVGColor.h: Removed.
2342 * ksvg2/svg/SVGColor.idl: Removed.
2343 * ksvg2/svg/SVGComponentTransferFunctionElement.cpp: Removed.
2344 * ksvg2/svg/SVGComponentTransferFunctionElement.h: Removed.
2345 * ksvg2/svg/SVGComponentTransferFunctionElement.idl: Removed.
2346 * ksvg2/svg/SVGCursorElement.cpp: Removed.
2347 * ksvg2/svg/SVGCursorElement.h: Removed.
2348 * ksvg2/svg/SVGCursorElement.idl: Removed.
2349 * ksvg2/svg/SVGDefinitionSrcElement.cpp: Removed.
2350 * ksvg2/svg/SVGDefinitionSrcElement.h: Removed.
2351 * ksvg2/svg/SVGDefinitionSrcElement.idl: Removed.
2352 * ksvg2/svg/SVGDefsElement.cpp: Removed.
2353 * ksvg2/svg/SVGDefsElement.h: Removed.
2354 * ksvg2/svg/SVGDefsElement.idl: Removed.
2355 * ksvg2/svg/SVGDescElement.cpp: Removed.
2356 * ksvg2/svg/SVGDescElement.h: Removed.
2357 * ksvg2/svg/SVGDescElement.idl: Removed.
2358 * ksvg2/svg/SVGDocument.cpp: Removed.
2359 * ksvg2/svg/SVGDocument.h: Removed.
2360 * ksvg2/svg/SVGDocument.idl: Removed.
2361 * ksvg2/svg/SVGElement.cpp: Removed.
2362 * ksvg2/svg/SVGElement.h: Removed.
2363 * ksvg2/svg/SVGElement.idl: Removed.
2364 * ksvg2/svg/SVGElementInstance.cpp: Removed.
2365 * ksvg2/svg/SVGElementInstance.h: Removed.
2366 * ksvg2/svg/SVGElementInstance.idl: Removed.
2367 * ksvg2/svg/SVGElementInstanceList.cpp: Removed.
2368 * ksvg2/svg/SVGElementInstanceList.h: Removed.
2369 * ksvg2/svg/SVGElementInstanceList.idl: Removed.
2370 * ksvg2/svg/SVGEllipseElement.cpp: Removed.
2371 * ksvg2/svg/SVGEllipseElement.h: Removed.
2372 * ksvg2/svg/SVGEllipseElement.idl: Removed.
2373 * ksvg2/svg/SVGException.h: Removed.
2374 * ksvg2/svg/SVGException.idl: Removed.
2375 * ksvg2/svg/SVGExternalResourcesRequired.cpp: Removed.
2376 * ksvg2/svg/SVGExternalResourcesRequired.h: Removed.
2377 * ksvg2/svg/SVGExternalResourcesRequired.idl: Removed.
2378 * ksvg2/svg/SVGFEBlendElement.cpp: Removed.
2379 * ksvg2/svg/SVGFEBlendElement.h: Removed.
2380 * ksvg2/svg/SVGFEBlendElement.idl: Removed.
2381 * ksvg2/svg/SVGFEColorMatrixElement.cpp: Removed.
2382 * ksvg2/svg/SVGFEColorMatrixElement.h: Removed.
2383 * ksvg2/svg/SVGFEColorMatrixElement.idl: Removed.
2384 * ksvg2/svg/SVGFEComponentTransferElement.cpp: Removed.
2385 * ksvg2/svg/SVGFEComponentTransferElement.h: Removed.
2386 * ksvg2/svg/SVGFEComponentTransferElement.idl: Removed.
2387 * ksvg2/svg/SVGFECompositeElement.cpp: Removed.
2388 * ksvg2/svg/SVGFECompositeElement.h: Removed.
2389 * ksvg2/svg/SVGFECompositeElement.idl: Removed.
2390 * ksvg2/svg/SVGFEDiffuseLightingElement.cpp: Removed.
2391 * ksvg2/svg/SVGFEDiffuseLightingElement.h: Removed.
2392 * ksvg2/svg/SVGFEDiffuseLightingElement.idl: Removed.
2393 * ksvg2/svg/SVGFEDisplacementMapElement.cpp: Removed.
2394 * ksvg2/svg/SVGFEDisplacementMapElement.h: Removed.
2395 * ksvg2/svg/SVGFEDisplacementMapElement.idl: Removed.
2396 * ksvg2/svg/SVGFEDistantLightElement.cpp: Removed.
2397 * ksvg2/svg/SVGFEDistantLightElement.h: Removed.
2398 * ksvg2/svg/SVGFEDistantLightElement.idl: Removed.
2399 * ksvg2/svg/SVGFEFloodElement.cpp: Removed.
2400 * ksvg2/svg/SVGFEFloodElement.h: Removed.
2401 * ksvg2/svg/SVGFEFloodElement.idl: Removed.
2402 * ksvg2/svg/SVGFEFuncAElement.cpp: Removed.
2403 * ksvg2/svg/SVGFEFuncAElement.h: Removed.
2404 * ksvg2/svg/SVGFEFuncAElement.idl: Removed.
2405 * ksvg2/svg/SVGFEFuncBElement.cpp: Removed.
2406 * ksvg2/svg/SVGFEFuncBElement.h: Removed.
2407 * ksvg2/svg/SVGFEFuncBElement.idl: Removed.
2408 * ksvg2/svg/SVGFEFuncGElement.cpp: Removed.
2409 * ksvg2/svg/SVGFEFuncGElement.h: Removed.
2410 * ksvg2/svg/SVGFEFuncGElement.idl: Removed.
2411 * ksvg2/svg/SVGFEFuncRElement.cpp: Removed.
2412 * ksvg2/svg/SVGFEFuncRElement.h: Removed.
2413 * ksvg2/svg/SVGFEFuncRElement.idl: Removed.
2414 * ksvg2/svg/SVGFEGaussianBlurElement.cpp: Removed.
2415 * ksvg2/svg/SVGFEGaussianBlurElement.h: Removed.
2416 * ksvg2/svg/SVGFEGaussianBlurElement.idl: Removed.
2417 * ksvg2/svg/SVGFEImageElement.cpp: Removed.
2418 * ksvg2/svg/SVGFEImageElement.h: Removed.
2419 * ksvg2/svg/SVGFEImageElement.idl: Removed.
2420 * ksvg2/svg/SVGFELightElement.cpp: Removed.
2421 * ksvg2/svg/SVGFELightElement.h: Removed.
2422 * ksvg2/svg/SVGFEMergeElement.cpp: Removed.
2423 * ksvg2/svg/SVGFEMergeElement.h: Removed.
2424 * ksvg2/svg/SVGFEMergeElement.idl: Removed.
2425 * ksvg2/svg/SVGFEMergeNodeElement.cpp: Removed.
2426 * ksvg2/svg/SVGFEMergeNodeElement.h: Removed.
2427 * ksvg2/svg/SVGFEMergeNodeElement.idl: Removed.
2428 * ksvg2/svg/SVGFEOffsetElement.cpp: Removed.
2429 * ksvg2/svg/SVGFEOffsetElement.h: Removed.
2430 * ksvg2/svg/SVGFEOffsetElement.idl: Removed.
2431 * ksvg2/svg/SVGFEPointLightElement.cpp: Removed.
2432 * ksvg2/svg/SVGFEPointLightElement.h: Removed.
2433 * ksvg2/svg/SVGFEPointLightElement.idl: Removed.
2434 * ksvg2/svg/SVGFESpecularLightingElement.cpp: Removed.
2435 * ksvg2/svg/SVGFESpecularLightingElement.h: Removed.
2436 * ksvg2/svg/SVGFESpecularLightingElement.idl: Removed.
2437 * ksvg2/svg/SVGFESpotLightElement.cpp: Removed.
2438 * ksvg2/svg/SVGFESpotLightElement.h: Removed.
2439 * ksvg2/svg/SVGFESpotLightElement.idl: Removed.
2440 * ksvg2/svg/SVGFETileElement.cpp: Removed.
2441 * ksvg2/svg/SVGFETileElement.h: Removed.
2442 * ksvg2/svg/SVGFETileElement.idl: Removed.
2443 * ksvg2/svg/SVGFETurbulenceElement.cpp: Removed.
2444 * ksvg2/svg/SVGFETurbulenceElement.h: Removed.
2445 * ksvg2/svg/SVGFETurbulenceElement.idl: Removed.
2446 * ksvg2/svg/SVGFilterElement.cpp: Removed.
2447 * ksvg2/svg/SVGFilterElement.h: Removed.
2448 * ksvg2/svg/SVGFilterElement.idl: Removed.
2449 * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp: Removed.
2450 * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h: Removed.
2451 * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.idl: Removed.
2452 * ksvg2/svg/SVGFitToViewBox.cpp: Removed.
2453 * ksvg2/svg/SVGFitToViewBox.h: Removed.
2454 * ksvg2/svg/SVGFitToViewBox.idl: Removed.
2455 * ksvg2/svg/SVGFontFaceElement.cpp: Removed.
2456 * ksvg2/svg/SVGFontFaceElement.h: Removed.
2457 * ksvg2/svg/SVGFontFaceElement.idl: Removed.
2458 * ksvg2/svg/SVGFontFaceFormatElement.cpp: Removed.
2459 * ksvg2/svg/SVGFontFaceFormatElement.h: Removed.
2460 * ksvg2/svg/SVGFontFaceFormatElement.idl: Removed.
2461 * ksvg2/svg/SVGFontFaceNameElement.cpp: Removed.
2462 * ksvg2/svg/SVGFontFaceNameElement.h: Removed.
2463 * ksvg2/svg/SVGFontFaceNameElement.idl: Removed.
2464 * ksvg2/svg/SVGFontFaceSrcElement.cpp: Removed.
2465 * ksvg2/svg/SVGFontFaceSrcElement.h: Removed.
2466 * ksvg2/svg/SVGFontFaceSrcElement.idl: Removed.
2467 * ksvg2/svg/SVGFontFaceUriElement.cpp: Removed.
2468 * ksvg2/svg/SVGFontFaceUriElement.h: Removed.
2469 * ksvg2/svg/SVGFontFaceUriElement.idl: Removed.
2470 * ksvg2/svg/SVGForeignObjectElement.cpp: Removed.
2471 * ksvg2/svg/SVGForeignObjectElement.h: Removed.
2472 * ksvg2/svg/SVGForeignObjectElement.idl: Removed.
2473 * ksvg2/svg/SVGGElement.cpp: Removed.
2474 * ksvg2/svg/SVGGElement.h: Removed.
2475 * ksvg2/svg/SVGGElement.idl: Removed.
2476 * ksvg2/svg/SVGGradientElement.cpp: Removed.
2477 * ksvg2/svg/SVGGradientElement.h: Removed.
2478 * ksvg2/svg/SVGGradientElement.idl: Removed.
2479 * ksvg2/svg/SVGImageElement.cpp: Removed.
2480 * ksvg2/svg/SVGImageElement.h: Removed.
2481 * ksvg2/svg/SVGImageElement.idl: Removed.
2482 * ksvg2/svg/SVGLangSpace.cpp: Removed.
2483 * ksvg2/svg/SVGLangSpace.h: Removed.
2484 * ksvg2/svg/SVGLangSpace.idl: Removed.
2485 * ksvg2/svg/SVGLength.cpp: Removed.
2486 * ksvg2/svg/SVGLength.h: Removed.
2487 * ksvg2/svg/SVGLength.idl: Removed.
2488 * ksvg2/svg/SVGLengthList.cpp: Removed.
2489 * ksvg2/svg/SVGLengthList.h: Removed.
2490 * ksvg2/svg/SVGLengthList.idl: Removed.
2491 * ksvg2/svg/SVGLineElement.cpp: Removed.
2492 * ksvg2/svg/SVGLineElement.h: Removed.
2493 * ksvg2/svg/SVGLineElement.idl: Removed.
2494 * ksvg2/svg/SVGLinearGradientElement.cpp: Removed.
2495 * ksvg2/svg/SVGLinearGradientElement.h: Removed.
2496 * ksvg2/svg/SVGLinearGradientElement.idl: Removed.
2497 * ksvg2/svg/SVGList.h: Removed.
2498 * ksvg2/svg/SVGListTraits.h: Removed.
2499 * ksvg2/svg/SVGLocatable.cpp: Removed.
2500 * ksvg2/svg/SVGLocatable.h: Removed.
2501 * ksvg2/svg/SVGLocatable.idl: Removed.
2502 * ksvg2/svg/SVGMPathElement.cpp: Removed.
2503 * ksvg2/svg/SVGMPathElement.h: Removed.
2504 * ksvg2/svg/SVGMarkerElement.cpp: Removed.
2505 * ksvg2/svg/SVGMarkerElement.h: Removed.
2506 * ksvg2/svg/SVGMarkerElement.idl: Removed.
2507 * ksvg2/svg/SVGMaskElement.cpp: Removed.
2508 * ksvg2/svg/SVGMaskElement.h: Removed.
2509 * ksvg2/svg/SVGMaskElement.idl: Removed.
2510 * ksvg2/svg/SVGMatrix.idl: Removed.
2511 * ksvg2/svg/SVGMetadataElement.cpp: Removed.
2512 * ksvg2/svg/SVGMetadataElement.h: Removed.
2513 * ksvg2/svg/SVGMetadataElement.idl: Removed.
2514 * ksvg2/svg/SVGNumber.idl: Removed.
2515 * ksvg2/svg/SVGNumberList.cpp: Removed.
2516 * ksvg2/svg/SVGNumberList.h: Removed.
2517 * ksvg2/svg/SVGNumberList.idl: Removed.
2518 * ksvg2/svg/SVGPaint.cpp: Removed.
2519 * ksvg2/svg/SVGPaint.h: Removed.
2520 * ksvg2/svg/SVGPaint.idl: Removed.
2521 * ksvg2/svg/SVGParserUtilities.cpp: Removed.
2522 * ksvg2/svg/SVGParserUtilities.h: Removed.
2523 * ksvg2/svg/SVGPathElement.cpp: Removed.
2524 * ksvg2/svg/SVGPathElement.h: Removed.
2525 * ksvg2/svg/SVGPathElement.idl: Removed.
2526 * ksvg2/svg/SVGPathSeg.h: Removed.
2527 * ksvg2/svg/SVGPathSeg.idl: Removed.
2528 * ksvg2/svg/SVGPathSegArc.cpp: Removed.
2529 * ksvg2/svg/SVGPathSegArc.h: Removed.
2530 * ksvg2/svg/SVGPathSegArcAbs.idl: Removed.
2531 * ksvg2/svg/SVGPathSegArcRel.idl: Removed.
2532 * ksvg2/svg/SVGPathSegClosePath.cpp: Removed.
2533 * ksvg2/svg/SVGPathSegClosePath.h: Removed.
2534 * ksvg2/svg/SVGPathSegClosePath.idl: Removed.
2535 * ksvg2/svg/SVGPathSegCurvetoCubic.cpp: Removed.
2536 * ksvg2/svg/SVGPathSegCurvetoCubic.h: Removed.
2537 * ksvg2/svg/SVGPathSegCurvetoCubicAbs.idl: Removed.
2538 * ksvg2/svg/SVGPathSegCurvetoCubicRel.idl: Removed.
2539 * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp: Removed.
2540 * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h: Removed.
2541 * ksvg2/svg/SVGPathSegCurvetoCubicSmoothAbs.idl: Removed.
2542 * ksvg2/svg/SVGPathSegCurvetoCubicSmoothRel.idl: Removed.
2543 * ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp: Removed.
2544 * ksvg2/svg/SVGPathSegCurvetoQuadratic.h: Removed.
2545 * ksvg2/svg/SVGPathSegCurvetoQuadraticAbs.idl: Removed.
2546 * ksvg2/svg/SVGPathSegCurvetoQuadraticRel.idl: Removed.
2547 * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp: Removed.
2548 * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h: Removed.
2549 * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl: Removed.
2550 * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothRel.idl: Removed.
2551 * ksvg2/svg/SVGPathSegLineto.cpp: Removed.
2552 * ksvg2/svg/SVGPathSegLineto.h: Removed.
2553 * ksvg2/svg/SVGPathSegLinetoAbs.idl: Removed.
2554 * ksvg2/svg/SVGPathSegLinetoHorizontal.cpp: Removed.
2555 * ksvg2/svg/SVGPathSegLinetoHorizontal.h: Removed.
2556 * ksvg2/svg/SVGPathSegLinetoHorizontalAbs.idl: Removed.
2557 * ksvg2/svg/SVGPathSegLinetoHorizontalRel.idl: Removed.
2558 * ksvg2/svg/SVGPathSegLinetoRel.idl: Removed.
2559 * ksvg2/svg/SVGPathSegLinetoVertical.cpp: Removed.
2560 * ksvg2/svg/SVGPathSegLinetoVertical.h: Removed.
2561 * ksvg2/svg/SVGPathSegLinetoVerticalAbs.idl: Removed.
2562 * ksvg2/svg/SVGPathSegLinetoVerticalRel.idl: Removed.
2563 * ksvg2/svg/SVGPathSegList.cpp: Removed.
2564 * ksvg2/svg/SVGPathSegList.h: Removed.
2565 * ksvg2/svg/SVGPathSegList.idl: Removed.
2566 * ksvg2/svg/SVGPathSegMoveto.cpp: Removed.
2567 * ksvg2/svg/SVGPathSegMoveto.h: Removed.
2568 * ksvg2/svg/SVGPathSegMovetoAbs.idl: Removed.
2569 * ksvg2/svg/SVGPathSegMovetoRel.idl: Removed.
2570 * ksvg2/svg/SVGPatternElement.cpp: Removed.
2571 * ksvg2/svg/SVGPatternElement.h: Removed.
2572 * ksvg2/svg/SVGPatternElement.idl: Removed.
2573 * ksvg2/svg/SVGPoint.idl: Removed.
2574 * ksvg2/svg/SVGPointList.cpp: Removed.
2575 * ksvg2/svg/SVGPointList.h: Removed.
2576 * ksvg2/svg/SVGPointList.idl: Removed.
2577 * ksvg2/svg/SVGPolyElement.cpp: Removed.
2578 * ksvg2/svg/SVGPolyElement.h: Removed.
2579 * ksvg2/svg/SVGPolygonElement.cpp: Removed.
2580 * ksvg2/svg/SVGPolygonElement.h: Removed.
2581 * ksvg2/svg/SVGPolygonElement.idl: Removed.
2582 * ksvg2/svg/SVGPolylineElement.cpp: Removed.
2583 * ksvg2/svg/SVGPolylineElement.h: Removed.
2584 * ksvg2/svg/SVGPolylineElement.idl: Removed.
2585 * ksvg2/svg/SVGPreserveAspectRatio.cpp: Removed.
2586 * ksvg2/svg/SVGPreserveAspectRatio.h: Removed.
2587 * ksvg2/svg/SVGPreserveAspectRatio.idl: Removed.
2588 * ksvg2/svg/SVGRadialGradientElement.cpp: Removed.
2589 * ksvg2/svg/SVGRadialGradientElement.h: Removed.
2590 * ksvg2/svg/SVGRadialGradientElement.idl: Removed.
2591 * ksvg2/svg/SVGRect.idl: Removed.
2592 * ksvg2/svg/SVGRectElement.cpp: Removed.
2593 * ksvg2/svg/SVGRectElement.h: Removed.
2594 * ksvg2/svg/SVGRectElement.idl: Removed.
2595 * ksvg2/svg/SVGRenderingIntent.h: Removed.
2596 * ksvg2/svg/SVGRenderingIntent.idl: Removed.
2597 * ksvg2/svg/SVGSVGElement.cpp: Removed.
2598 * ksvg2/svg/SVGSVGElement.h: Removed.
2599 * ksvg2/svg/SVGSVGElement.idl: Removed.
2600 * ksvg2/svg/SVGScriptElement.cpp: Removed.
2601 * ksvg2/svg/SVGScriptElement.h: Removed.
2602 * ksvg2/svg/SVGScriptElement.idl: Removed.
2603 * ksvg2/svg/SVGSetElement.cpp: Removed.
2604 * ksvg2/svg/SVGSetElement.h: Removed.
2605 * ksvg2/svg/SVGSetElement.idl: Removed.
2606 * ksvg2/svg/SVGStopElement.cpp: Removed.
2607 * ksvg2/svg/SVGStopElement.h: Removed.
2608 * ksvg2/svg/SVGStopElement.idl: Removed.
2609 * ksvg2/svg/SVGStringList.cpp: Removed.
2610 * ksvg2/svg/SVGStringList.h: Removed.
2611 * ksvg2/svg/SVGStringList.idl: Removed.
2612 * ksvg2/svg/SVGStylable.cpp: Removed.
2613 * ksvg2/svg/SVGStylable.h: Removed.
2614 * ksvg2/svg/SVGStylable.idl: Removed.
2615 * ksvg2/svg/SVGStyleElement.cpp: Removed.
2616 * ksvg2/svg/SVGStyleElement.h: Removed.
2617 * ksvg2/svg/SVGStyleElement.idl: Removed.
2618 * ksvg2/svg/SVGStyledElement.cpp: Removed.
2619 * ksvg2/svg/SVGStyledElement.h: Removed.
2620 * ksvg2/svg/SVGStyledLocatableElement.cpp: Removed.
2621 * ksvg2/svg/SVGStyledLocatableElement.h: Removed.
2622 * ksvg2/svg/SVGStyledTransformableElement.cpp: Removed.
2623 * ksvg2/svg/SVGStyledTransformableElement.h: Removed.
2624 * ksvg2/svg/SVGSwitchElement.cpp: Removed.
2625 * ksvg2/svg/SVGSwitchElement.h: Removed.
2626 * ksvg2/svg/SVGSwitchElement.idl: Removed.
2627 * ksvg2/svg/SVGSymbolElement.cpp: Removed.
2628 * ksvg2/svg/SVGSymbolElement.h: Removed.
2629 * ksvg2/svg/SVGSymbolElement.idl: Removed.
2630 * ksvg2/svg/SVGTRefElement.cpp: Removed.
2631 * ksvg2/svg/SVGTRefElement.h: Removed.
2632 * ksvg2/svg/SVGTRefElement.idl: Removed.
2633 * ksvg2/svg/SVGTSpanElement.cpp: Removed.
2634 * ksvg2/svg/SVGTSpanElement.h: Removed.
2635 * ksvg2/svg/SVGTSpanElement.idl: Removed.
2636 * ksvg2/svg/SVGTests.cpp: Removed.
2637 * ksvg2/svg/SVGTests.h: Removed.
2638 * ksvg2/svg/SVGTests.idl: Removed.
2639 * ksvg2/svg/SVGTextContentElement.cpp: Removed.
2640 * ksvg2/svg/SVGTextContentElement.h: Removed.
2641 * ksvg2/svg/SVGTextContentElement.idl: Removed.
2642 * ksvg2/svg/SVGTextElement.cpp: Removed.
2643 * ksvg2/svg/SVGTextElement.h: Removed.
2644 * ksvg2/svg/SVGTextElement.idl: Removed.
2645 * ksvg2/svg/SVGTextPathElement.cpp: Removed.
2646 * ksvg2/svg/SVGTextPathElement.h: Removed.
2647 * ksvg2/svg/SVGTextPathElement.idl: Removed.
2648 * ksvg2/svg/SVGTextPositioningElement.cpp: Removed.
2649 * ksvg2/svg/SVGTextPositioningElement.h: Removed.
2650 * ksvg2/svg/SVGTextPositioningElement.idl: Removed.
2651 * ksvg2/svg/SVGTitleElement.cpp: Removed.
2652 * ksvg2/svg/SVGTitleElement.h: Removed.
2653 * ksvg2/svg/SVGTitleElement.idl: Removed.
2654 * ksvg2/svg/SVGTransform.cpp: Removed.
2655 * ksvg2/svg/SVGTransform.h: Removed.
2656 * ksvg2/svg/SVGTransform.idl: Removed.
2657 * ksvg2/svg/SVGTransformDistance.cpp: Removed.
2658 * ksvg2/svg/SVGTransformDistance.h: Removed.
2659 * ksvg2/svg/SVGTransformList.cpp: Removed.
2660 * ksvg2/svg/SVGTransformList.h: Removed.
2661 * ksvg2/svg/SVGTransformList.idl: Removed.
2662 * ksvg2/svg/SVGTransformable.cpp: Removed.
2663 * ksvg2/svg/SVGTransformable.h: Removed.
2664 * ksvg2/svg/SVGTransformable.idl: Removed.
2665 * ksvg2/svg/SVGURIReference.cpp: Removed.
2666 * ksvg2/svg/SVGURIReference.h: Removed.
2667 * ksvg2/svg/SVGURIReference.idl: Removed.
2668 * ksvg2/svg/SVGUnitTypes.h: Removed.
2669 * ksvg2/svg/SVGUnitTypes.idl: Removed.
2670 * ksvg2/svg/SVGUseElement.cpp: Removed.
2671 * ksvg2/svg/SVGUseElement.h: Removed.
2672 * ksvg2/svg/SVGUseElement.idl: Removed.
2673 * ksvg2/svg/SVGViewElement.cpp: Removed.
2674 * ksvg2/svg/SVGViewElement.h: Removed.
2675 * ksvg2/svg/SVGViewElement.idl: Removed.
2676 * ksvg2/svg/SVGViewSpec.cpp: Removed.
2677 * ksvg2/svg/SVGViewSpec.h: Removed.
2678 * ksvg2/svg/SVGViewSpec.idl: Removed.
2679 * ksvg2/svg/SVGZoomAndPan.cpp: Removed.
2680 * ksvg2/svg/SVGZoomAndPan.h: Removed.
2681 * ksvg2/svg/SVGZoomAndPan.idl: Removed.
2682 * ksvg2/svg/svgattrs.in: Removed.
2683 * ksvg2/svg/svgtags.in: Removed.
2684 * rendering/PointerEventsHitRules.cpp: Copied from ksvg2/misc/PointerEventsHitRules.cpp.
2685 * rendering/PointerEventsHitRules.h: Copied from ksvg2/misc/PointerEventsHitRules.h.
2686 * rendering/SVGRenderStyle.cpp: Copied from ksvg2/css/SVGRenderStyle.cpp.
2687 * rendering/SVGRenderStyle.h: Copied from ksvg2/css/SVGRenderStyle.h.
2688 * rendering/SVGRenderStyleDefs.cpp: Copied from ksvg2/css/SVGRenderStyleDefs.cpp.
2689 * rendering/SVGRenderStyleDefs.h: Copied from ksvg2/css/SVGRenderStyleDefs.h.
2690 * svg: Copied from ksvg2/svg.
2691 * svg/SVGDocumentExtensions.cpp: Copied from ksvg2/misc/SVGDocumentExtensions.cpp.
2692 * svg/SVGDocumentExtensions.h: Copied from ksvg2/misc/SVGDocumentExtensions.h.
2693 * svg/SVGImageLoader.cpp: Copied from ksvg2/misc/SVGImageLoader.cpp.
2694 * svg/SVGImageLoader.h: Copied from ksvg2/misc/SVGImageLoader.h.
2695 * svg/SVGTimer.cpp: Copied from ksvg2/misc/SVGTimer.cpp.
2696 * svg/SVGTimer.h: Copied from ksvg2/misc/SVGTimer.h.
2697 * svg/SVGZoomEvent.cpp: Copied from ksvg2/events/SVGZoomEvent.cpp.
2698 * svg/SVGZoomEvent.h: Copied from ksvg2/events/SVGZoomEvent.h.
2699 * svg/SVGZoomEvent.idl: Copied from ksvg2/events/SVGZoomEvent.idl.
2700 * svg/TimeScheduler.cpp: Copied from ksvg2/misc/TimeScheduler.cpp.
2701 * svg/TimeScheduler.h: Copied from ksvg2/misc/TimeScheduler.h.
2702 * svg/xlinkattrs.in: Copied from ksvg2/misc/xlinkattrs.in.
2704 2007-11-30 Kevin Ollivier <kevino@theolliviers.com>
2706 wx build fix. Add WebCore/platform/graphics/wx to includes.
2710 2007-11-30 Brady Eidson <beidson@apple.com>
2714 Further hookup of Database API
2715 With this change, any database operation that writes to the database (UPDATE, INSERT, CREATE, etc) will
2716 result in a didModifyDatabase notification when the transaction is successfully committed
2718 * storage/DatabaseAuthorizer.cpp: Global rename of "m_lastActionIncreasedSize" to "m_lastActionChangedDatabase"
2719 (WebCore::DatabaseAuthorizer::reset):
2720 (WebCore::DatabaseAuthorizer::createTable):
2721 (WebCore::DatabaseAuthorizer::allowAlterTable):
2722 (WebCore::DatabaseAuthorizer::createIndex):
2723 (WebCore::DatabaseAuthorizer::createTrigger):
2724 (WebCore::DatabaseAuthorizer::createVTable):
2725 (WebCore::DatabaseAuthorizer::allowInsert):
2726 (WebCore::DatabaseAuthorizer::allowUpdate):
2727 * storage/DatabaseAuthorizer.h:
2728 (WebCore::DatabaseAuthorizer::lastActionChangedDatabase):
2730 * storage/DatabaseTracker.cpp:
2731 (WebCore::DatabaseTracker::notifyDatabaseChanged): Added. Allow external entities (SQLTransaction) to be able
2732 to request a didModifyDatabase notification to the delegate
2733 * storage/DatabaseTracker.h:
2735 * storage/SQLTransaction.cpp: Added m_modifiedDatabase flag which tracks if any statement over the course of
2736 a transaction resulted in a change to the database.
2737 (WebCore::SQLTransaction::SQLTransaction):
2738 (WebCore::SQLTransaction::runCurrentStatement): Set m_modifiedDatabase to true if the authorizer reports a mutation
2740 (WebCore::SQLTransaction::postflightAndCommit): If the transaction successfully commits, call DatabaseTracker::notifyDatabaseChanged
2741 (WebCore::SQLTransaction::cleanupAfterTransactionErrorCallback): Ditto
2742 * storage/SQLTransaction.h:
2744 2007-11-30 Nikolas Zimmermann <zimmermann@kde.org>
2746 Rubber stamped by David.
2748 Next round of moves - platform reorganization.
2749 Move text/font/glyph related files from the individual port directories
2750 into platform/text/<port> or platform/graphics/<port>.
2752 * DerivedSources.make:
2754 * WebCore.vcproj/WebCore.vcproj:
2755 * WebCore.xcodeproj/project.pbxproj:
2756 * platform/cf/StringCF.cpp: Removed.
2757 * platform/cf/StringImplCF.cpp: Removed.
2758 * platform/graphics/gtk/FontCacheGtk.cpp: Copied from platform/gtk/FontCacheGtk.cpp.
2759 * platform/graphics/gtk/FontDataGtk.cpp: Copied from platform/gtk/FontDataGtk.cpp.
2760 * platform/graphics/gtk/FontGtk.cpp: Copied from platform/gtk/FontGtk.cpp.
2761 * platform/graphics/gtk/FontPlatformData.h: Copied from platform/gtk/FontPlatformData.h.
2762 * platform/graphics/gtk/FontPlatformDataGtk.cpp: Copied from platform/gtk/FontPlatformDataGtk.cpp.
2763 * platform/graphics/gtk/GlyphPageTreeNodeGtk.cpp: Copied from platform/gtk/GlyphPageTreeNodeGtk.cpp.
2764 * platform/graphics/mac/FontCacheMac.mm: Copied from platform/mac/FontCacheMac.mm.
2765 * platform/graphics/mac/FontCustomPlatformData.cpp: Copied from platform/mac/FontCustomPlatformData.cpp.
2766 * platform/graphics/mac/FontCustomPlatformData.h: Copied from platform/mac/FontCustomPlatformData.h.
2767 * platform/graphics/mac/FontDataMac.mm: Copied from platform/mac/FontDataMac.mm.
2768 * platform/graphics/mac/FontMac.mm: Copied from platform/mac/FontMac.mm.
2769 * platform/graphics/mac/FontPlatformData.h: Copied from platform/mac/FontPlatformData.h.
2770 * platform/graphics/mac/FontPlatformDataMac.mm: Copied from platform/mac/FontPlatformDataMac.mm.
2771 * platform/graphics/mac/GlyphPageTreeNodeMac.cpp: Copied from platform/mac/GlyphPageTreeNodeMac.cpp.
2772 * platform/graphics/qt/FontCacheQt.cpp: Copied from platform/qt/FontCacheQt.cpp.
2773 * platform/graphics/qt/FontCustomPlatformData.cpp: Copied from platform/qt/FontCustomPlatformData.cpp.
2774 * platform/graphics/qt/FontCustomPlatformData.h: Copied from platform/qt/FontCustomPlatformData.h.
2775 * platform/graphics/qt/FontDataQt.cpp: Copied from platform/qt/FontDataQt.cpp.
2776 * platform/graphics/qt/FontPlatformData.h: Copied from platform/qt/FontPlatformData.h.
2777 * platform/graphics/qt/FontQt.cpp: Copied from platform/qt/FontQt.cpp.
2778 * platform/graphics/qt/GlyphPageTreeNodeQt.cpp: Copied from platform/qt/GlyphPageTreeNodeQt.cpp.
2779 * platform/graphics/win/FontCacheWin.cpp: Copied from platform/win/FontCacheWin.cpp.
2780 * platform/graphics/win/FontCustomPlatformData.cpp: Copied from platform/win/FontCustomPlatformData.cpp.
2781 * platform/graphics/win/FontCustomPlatformData.h: Copied from platform/win/FontCustomPlatformData.h.
2782 * platform/graphics/win/FontDataWin.cpp: Copied from platform/win/FontDataWin.cpp.
2783 * platform/graphics/win/FontDatabase.cpp: Copied from platform/win/FontDatabase.cpp.
2784 * platform/graphics/win/FontDatabase.h: Copied from platform/win/FontDatabase.h.
2785 * platform/graphics/win/FontPlatformData.h: Copied from platform/win/FontPlatformData.h.
2786 * platform/graphics/win/FontPlatformDataWin.cpp: Copied from platform/win/FontPlatformDataWin.cpp.
2787 * platform/graphics/win/FontWin.cpp: Copied from platform/win/FontWin.cpp.
2788 * platform/graphics/win/GlyphPageTreeNodeWin.cpp: Copied from platform/win/GlyphPageTreeNodeWin.cpp.
2789 * platform/graphics/wx/FontCacheWx.cpp: Copied from platform/wx/FontCacheWx.cpp.
2790 * platform/graphics/wx/FontDataWx.cpp: Copied from platform/wx/FontDataWx.cpp.
2791 * platform/graphics/wx/FontPlatformData.h: Copied from platform/wx/FontPlatformData.h.
2792 * platform/graphics/wx/FontPlatformDataWx.cpp: Copied from platform/wx/FontPlatformDataWx.cpp.
2793 * platform/graphics/wx/FontWx.cpp: Copied from platform/wx/FontWx.cpp.
2794 * platform/graphics/wx/GlyphMapWx.cpp: Copied from platform/wx/GlyphMapWx.cpp.
2795 * platform/gtk/FontCacheGtk.cpp: Removed.
2796 * platform/gtk/FontDataGtk.cpp: Removed.
2797 * platform/gtk/FontGtk.cpp: Removed.
2798 * platform/gtk/FontPlatformData.h: Removed.
2799 * platform/gtk/FontPlatformDataGtk.cpp: Removed.
2800 * platform/gtk/GlyphPageTreeNodeGtk.cpp: Removed.
2801 * platform/gtk/TextBreakIteratorInternalICUGtk.cpp: Removed.
2802 * platform/mac/FontCacheMac.mm: Removed.
2803 * platform/mac/FontCustomPlatformData.cpp: Removed.
2804 * platform/mac/FontCustomPlatformData.h: Removed.
2805 * platform/mac/FontDataMac.mm: Removed.
2806 * platform/mac/FontMac.mm: Removed.
2807 * platform/mac/FontPlatformData.h: Removed.
2808 * platform/mac/FontPlatformDataMac.mm: Removed.
2809 * platform/mac/GlyphPageTreeNodeMac.cpp: Removed.
2810 * platform/mac/ShapeArabic.c: Removed.
2811 * platform/mac/ShapeArabic.h: Removed.
2812 * platform/mac/StringImplMac.mm: Removed.
2813 * platform/mac/StringMac.mm: Removed.
2814 * platform/mac/TextBoundaries.mm: Removed.
2815 * platform/mac/TextBreakIteratorInternalICUMac.mm: Removed.
2816 * platform/mac/TextCodecMac.cpp: Removed.
2817 * platform/mac/TextCodecMac.h: Removed.
2818 * platform/mac/character-sets.txt: Removed.
2819 * platform/mac/mac-encodings.txt: Removed.
2820 * platform/mac/make-charset-table.pl: Removed.
2821 * platform/qt/FontCacheQt.cpp: Removed.
2822 * platform/qt/FontCustomPlatformData.cpp: Removed.
2823 * platform/qt/FontCustomPlatformData.h: Removed.
2824 * platform/qt/FontDataQt.cpp: Removed.
2825 * platform/qt/FontPlatformData.h: Removed.
2826 * platform/qt/FontQt.cpp: Removed.
2827 * platform/qt/GlyphPageTreeNodeQt.cpp: Removed.
2828 * platform/qt/StringQt.cpp: Removed.
2829 * platform/qt/TextBoundaries.cpp: Removed.
2830 * platform/qt/TextBreakIteratorQt.cpp: Removed.
2831 * platform/qt/TextCodecQt.cpp: Removed.
2832 * platform/qt/TextCodecQt.h: Removed.
2833 * platform/symbian/StringImplSymbian.cpp: Removed.
2834 * platform/symbian/StringSymbian.cpp: Removed.
2835 * platform/text/cf: Added.
2836 * platform/text/cf/StringCF.cpp: Copied from platform/cf/StringCF.cpp.
2837 * platform/text/cf/StringImplCF.cpp: Copied from platform/cf/StringImplCF.cpp.
2838 * platform/text/gtk: Added.
2839 * platform/text/gtk/TextBreakIteratorInternalICUGtk.cpp: Copied from platform/gtk/TextBreakIteratorInternalICUGtk.cpp.
2840 * platform/text/mac/ShapeArabic.c: Copied from platform/mac/ShapeArabic.c.
2841 * platform/text/mac/ShapeArabic.h: Copied from platform/mac/ShapeArabic.h.
2842 * platform/text/mac/StringImplMac.mm: Copied from platform/mac/StringImplMac.mm.
2843 * platform/text/mac/StringMac.mm: Copied from platform/mac/StringMac.mm.
2844 * platform/text/mac/TextBoundaries.mm: Copied from platform/mac/TextBoundaries.mm.
2845 * platform/text/mac/TextBreakIteratorInternalICUMac.mm: Copied from platform/mac/TextBreakIteratorInternalICUMac.mm.
2846 * platform/text/mac/TextCodecMac.cpp: Copied from platform/mac/TextCodecMac.cpp.
2847 * platform/text/mac/TextCodecMac.h: Copied from platform/mac/TextCodecMac.h.
2848 * platform/text/mac/character-sets.txt: Copied from platform/mac/character-sets.txt.
2849 * platform/text/mac/mac-encodings.txt: Copied from platform/mac/mac-encodings.txt.
2850 * platform/text/mac/make-charset-table.pl: Copied from platform/mac/make-charset-table.pl.
2851 * platform/text/qt: Added.
2852 * platform/text/qt/StringQt.cpp: Copied from platform/qt/StringQt.cpp.
2853 * platform/text/qt/TextBoundaries.cpp: Copied from platform/qt/TextBoundaries.cpp.
2854 * platform/text/qt/TextBreakIteratorQt.cpp: Copied from platform/qt/TextBreakIteratorQt.cpp.
2855 * platform/text/qt/TextCodecQt.cpp: Copied from platform/qt/TextCodecQt.cpp.
2856 * platform/text/qt/TextCodecQt.h: Copied from platform/qt/TextCodecQt.h.
2857 * platform/text/symbian: Added.
2858 * platform/text/symbian/StringImplSymbian.cpp: Copied from platform/symbian/StringImplSymbian.cpp.
2859 * platform/text/symbian/StringSymbian.cpp: Copied from platform/symbian/StringSymbian.cpp.
2860 * platform/text/win: Added.
2861 * platform/text/win/TextBreakIteratorInternalICUWin.cpp: Copied from platform/win/TextBreakIteratorInternalICUWin.cpp.
2862 * platform/text/wx: Added.
2863 * platform/text/wx/StringWx.cpp: Copied from platform/wx/StringWx.cpp.
2864 * platform/win/FontCacheWin.cpp: Removed.
2865 * platform/win/FontCustomPlatformData.cpp: Removed.
2866 * platform/win/FontCustomPlatformData.h: Removed.
2867 * platform/win/FontDataWin.cpp: Removed.
2868 * platform/win/FontDatabase.cpp: Removed.
2869 * platform/win/FontDatabase.h: Removed.
2870 * platform/win/FontPlatformData.h: Removed.
2871 * platform/win/FontPlatformDataWin.cpp: Removed.
2872 * platform/win/FontWin.cpp: Removed.
2873 * platform/win/GlyphPageTreeNodeWin.cpp: Removed.
2874 * platform/win/TextBreakIteratorInternalICUWin.cpp: Removed.
2875 * platform/wx/FontCacheWx.cpp: Removed.
2876 * platform/wx/FontDataWx.cpp: Removed.
2877 * platform/wx/FontPlatformData.h: Removed.
2878 * platform/wx/FontPlatformDataWx.cpp: Removed.
2879 * platform/wx/FontWx.cpp: Removed.
2880 * platform/wx/GlyphMapWx.cpp: Removed.
2881 * platform/wx/StringWx.cpp: Removed.
2884 2007-11-30 Kevin Ollivier <kevino@theolliviers.com>
2886 Build fix for wx port. Adding editing/RemoveFormatCommand.cpp
2888 * WebCoreSources.bkl:
2890 2007-11-30 Simon Hausmann <hausmann@webkit.org>
2892 Reviewed by Adam Roben.
2894 Fix the build with DATABASE=0.
2896 * page/Settings.cpp:
2897 (WebCore::Settings::setDefaultDatabaseOriginQuota):
2898 (WebCore::Settings::defaultDatabaseOriginQuota):
2900 2007-11-30 Nikolas Zimmermann <zimmermann@kde.org>
2902 Rubber stamped by Darin.
2904 Fix misplaced file. The name "FontStyle" is not correct though - it probably
2905 needs yet another move - but this time inside platform/graphics - as soon
2906 as we agree on a better name.
2908 * WebCore.xcodeproj/project.pbxproj:
2909 * platform/graphics/FontStyle.h: Copied from platform/text/FontStyle.h.
2910 * platform/text/FontStyle.h: Removed.
2912 2007-11-30 Nikolas Zimmermann <zimmermann@kde.org>
2916 Rename "FontStyle FontStyle(...)" to "FontStyle fontStyle(...)".
2917 I scripted a bit too much while doing the TextStyle -> FontStyle change.
2919 * platform/win/PopupMenuWin.cpp:
2920 (WebCore::PopupMenu::paint):
2921 * rendering/EllipsisBox.cpp:
2922 (WebCore::EllipsisBox::paint):
2923 * rendering/RenderFileUploadControl.cpp:
2924 (WebCore::RenderFileUploadControl::paintObject):
2925 * rendering/RenderListBox.cpp:
2926 (WebCore::RenderListBox::updateFromElement):
2927 (WebCore::RenderListBox::paintItemForeground):
2928 * rendering/RenderTextControl.cpp:
2929 (WebCore::RenderTextControl::setStyle):
2930 (WebCore::RenderTextControl::createInnerTextStyle):
2931 (WebCore::RenderTextControl::createSubtreeIfNeeded):
2932 * rendering/RenderTextControl.h:
2933 * rendering/SVGRootInlineBox.cpp:
2934 (WebCore::svgFontStyleForInlineTextBox):
2936 2007-11-30 Alp Toker <alp@atoker.com>
2938 GTK+ build fix following the recent text reorganization.
2942 2007-11-29 Jon Honeycutt <jhoneycutt@apple.com>
2946 Part of <rdar://problem/5506522> Seed: cannot type into text box in
2947 Facebook, don't see plugin content (Adobe Flash)
2949 * plugins/win/PluginViewWin.cpp:
2950 (WebCore::PluginViewWin::handleMouseEvent): Focus the plugin's parent
2953 2007-11-30 Nikolas Zimmermann <zimmermann@kde.org>
2955 Not reviewed. Trying to fix gtk/qt/wx build. (I expected problems because of the moves)
2960 2007-11-30 Nikolas Zimmermann <zimmermann@kde.org>
2962 Rubber stamped by Brady.
2964 Started platform reorganization (platform/text addition).
2965 Moving string/text/font related classes into new places - as discussed on webkit-dev.
2967 In a follow-up commit I'll move classes out of platform/{mac,win,...} into
2968 platform/text/{mac,win,...}, and also do the ksvg2/ -> svg/ move.
2972 * WebCore.vcproj/WebCore.vcproj:
2973 * WebCore.xcodeproj/project.pbxproj:
2974 * WebCoreSources.bkl:
2975 * editing/ReplaceSelectionCommand.cpp:
2976 (WebCore::ReplacementFragment::insertFragmentForTestRendering):
2977 * platform/AtomicString.cpp: Removed.
2978 * platform/AtomicString.h: Removed.
2979 * platform/AtomicStringImpl.h: Removed.
2980 * platform/Base64.cpp: Removed.
2981 * platform/Base64.h: Removed.
2982 * platform/BidiContext.cpp: Removed.
2983 * platform/BidiContext.h: Removed.
2984 * platform/BidiResolver.h: Removed.
2985 * platform/CString.cpp: Removed.
2986 * platform/CString.h: Removed.
2987 * platform/CharacterNames.h: Removed.
2988 * platform/CharsetData.h: Removed.
2989 * platform/Font.cpp: Removed.
2990 * platform/Font.h: Removed.
2991 * platform/FontCache.cpp: Removed.
2992 * platform/FontCache.h: Removed.
2993 * platform/FontData.cpp: Removed.
2994 * platform/FontData.h: Removed.
2995 * platform/FontDescription.h: Removed.
2996 * platform/FontFallbackList.cpp: Removed.
2997 * platform/FontFallbackList.h: Removed.
2998 * platform/FontFamily.cpp: Removed.
2999 * platform/FontFamily.h: Removed.
3000 * platform/FontSelector.h: Removed.
3001 * platform/GlyphBuffer.h: Removed.
3002 * platform/GlyphPageTreeNode.cpp: Removed.
3003 * platform/GlyphPageTreeNode.h: Removed.
3004 * platform/GlyphWidthMap.cpp: Removed.
3005 * platform/GlyphWidthMap.h: Removed.
3006 * platform/PlatformString.h: Removed.
3007 * platform/RegularExpression.cpp: Removed.
3008 * platform/RegularExpression.h: Removed.
3009 * platform/SegmentedString.cpp: Removed.
3010 * platform/SegmentedString.h: Removed.
3011 * platform/String.cpp: Removed.
3012 * platform/StringHash.h: Removed.
3013 * platform/StringImpl.cpp: Removed.
3014 * platform/StringImpl.h: Removed.
3015 * platform/StringTruncator.cpp: Removed.
3016 * platform/StringTruncator.h: Removed.
3017 * platform/TextBoundaries.h: Removed.
3018 * platform/TextBoundariesICU.cpp: Removed.
3019 * platform/TextBreakIterator.h: Removed.
3020 * platform/TextBreakIteratorICU.cpp: Removed.
3021 * platform/TextBreakIteratorInternalICU.h: Removed.
3022 * platform/TextCodec.cpp: Removed.
3023 * platform/TextCodec.h: Removed.
3024 * platform/TextCodecICU.cpp: Removed.
3025 * platform/TextCodecICU.h: Removed.
3026 * platform/TextCodecLatin1.cpp: Removed.
3027 * platform/TextCodecLatin1.h: Removed.
3028 * platform/TextCodecUTF16.cpp: Removed.
3029 * platform/TextCodecUTF16.h: Removed.
3030 * platform/TextCodecUserDefined.cpp: Removed.
3031 * platform/TextCodecUserDefined.h: Removed.
3032 * platform/TextDecoder.cpp: Removed.
3033 * platform/TextDecoder.h: Removed.
3034 * platform/TextDirection.h: Removed.
3035 * platform/TextEncoding.cpp: Removed.
3036 * platform/TextEncoding.h: Removed.
3037 * platform/TextEncodingRegistry.cpp: Removed.
3038 * platform/TextEncodingRegistry.h: Removed.
3039 * platform/TextStream.cpp: Removed.
3040 * platform/TextStream.h: Removed.
3041 * platform/TextStyle.h: Removed.
3042 * platform/UnicodeRange.cpp: Removed.
3043 * platform/UnicodeRange.h: Removed.
3044 * platform/graphics/Font.cpp: Copied from platform/Font.cpp.
3045 (WebCore::WidthIterator::WidthIterator):
3046 (WebCore::Font::width):
3047 (WebCore::Font::drawSimpleText):
3048 (WebCore::Font::drawGlyphBuffer):
3049 (WebCore::Font::drawText):
3050 (WebCore::Font::floatWidth):
3051 (WebCore::Font::floatWidthForSimpleText):
3052 (WebCore::Font::selectionRectForText):
3053 (WebCore::Font::selectionRectForSimpleText):
3054 (WebCore::Font::offsetForPosition):
3055 (WebCore::Font::offsetForPositionForSimpleText):
3056 * platform/graphics/Font.h: Copied from platform/Font.h.
3057 * platform/graphics/FontCache.cpp: Copied from platform/FontCache.cpp.
3058 * platform/graphics/FontCache.h: Copied from platform/FontCache.h.
3059 * platform/graphics/FontData.cpp: Copied from platform/FontData.cpp.
3060 * platform/graphics/FontData.h: Copied from platform/FontData.h.
3061 * platform/graphics/FontDescription.h: Copied from platform/FontDescription.h.
3062 * platform/graphics/FontFallbackList.cpp: Copied from platform/FontFallbackList.cpp.
3063 * platform/graphics/FontFallbackList.h: Copied from platform/FontFallbackList.h.
3064 * platform/graphics/FontFamily.cpp: Copied from platform/FontFamily.cpp.
3065 * platform/graphics/FontFamily.h: Copied from platform/FontFamily.h.
3066 * platform/graphics/FontSelector.h: Copied from platform/FontSelector.h.
3067 * platform/graphics/GlyphBuffer.h: Copied from platform/GlyphBuffer.h.
3068 * platform/graphics/GlyphPageTreeNode.cpp: Copied from platform/GlyphPageTreeNode.cpp.
3069 * platform/graphics/GlyphPageTreeNode.h: Copied from platform/GlyphPageTreeNode.h.
3070 * platform/graphics/GlyphWidthMap.cpp: Copied from platform/GlyphWidthMap.cpp.
3071 * platform/graphics/GlyphWidthMap.h: Copied from platform/GlyphWidthMap.h.
3072 * platform/graphics/GraphicsContext.cpp:
3073 (WebCore::GraphicsContext::drawText):
3074 (WebCore::GraphicsContext::drawBidiText):
3075 (WebCore::GraphicsContext::drawHighlightForText):
3076 * platform/graphics/GraphicsContext.h:
3077 * platform/graphics/StringTruncator.cpp: Copied from platform/StringTruncator.cpp.
3078 (WebCore::stringWidth):
3079 * platform/graphics/StringTruncator.h: Copied from platform/StringTruncator.h.
3080 * platform/graphics/qt/GraphicsContextQt.cpp:
3081 * platform/gtk/FontGtk.cpp:
3082 (WebCore::Font::drawComplexText):
3083 (WebCore::Font::floatWidthForComplexText):
3084 (WebCore::Font::offsetForPositionForComplexText):
3085 (WebCore::Font::selectionRectForComplexText):
3086 * platform/mac/FontMac.mm:
3087 (WebCore::ATSULayoutParameters::ATSULayoutParameters):
3088 (WebCore::Font::selectionRectForComplexText):
3089 (WebCore::Font::drawComplexText):
3090 (WebCore::Font::floatWidthForComplexText):
3091 (WebCore::Font::offsetForPositionForComplexText):
3092 * platform/mac/WebCoreTextRenderer.mm:
3093 (WebCoreDrawTextAtPoint):
3094 (WebCoreTextFloatWidth):
3095 * platform/qt/FontQt.cpp:
3096 (WebCore::generateComponents):
3097 (WebCore::Font::drawText):
3098 (WebCore::Font::width):
3099 (WebCore::Font::floatWidth):
3100 (WebCore::Font::offsetForPosition):
3101 (WebCore::cursorToX):
3102 (WebCore::Font::selectionRectForText):
3103 * platform/text: Added.
3104 * platform/text/AtomicString.cpp: Copied from platform/AtomicString.cpp.
3105 * platform/text/AtomicString.h: Copied from platform/AtomicString.h.
3106 * platform/text/AtomicStringImpl.h: Copied from platform/AtomicStringImpl.h.
3107 * platform/text/Base64.cpp: Copied from platform/Base64.cpp.
3108 * platform/text/Base64.h: Copied from platform/Base64.h.
3109 * platform/text/BidiContext.cpp: Copied from platform/BidiContext.cpp.
3110 * platform/text/BidiContext.h: Copied from platform/BidiContext.h.
3111 * platform/text/BidiResolver.h: Copied from platform/BidiResolver.h.
3112 * platform/text/CString.cpp: Copied from platform/CString.cpp.
3113 * platform/text/CString.h: Copied from platform/CString.h.
3114 * platform/text/CharacterNames.h: Copied from platform/CharacterNames.h.
3115 * platform/text/FontStyle.h: Copied from platform/TextStyle.h.
3116 (WebCore::FontStyle::FontStyle):
3117 * platform/text/PlatformString.h: Copied from platform/PlatformString.h.
3118 * platform/text/RegularExpression.cpp: Copied from platform/RegularExpression.cpp.
3119 * platform/text/RegularExpression.h: Copied from platform/RegularExpression.h.
3120 * platform/text/SegmentedString.cpp: Copied from platform/SegmentedString.cpp.
3121 * platform/text/SegmentedString.h: Copied from platform/SegmentedString.h.
3122 * platform/text/String.cpp: Copied from platform/String.cpp.
3123 * platform/text/StringHash.h: Copied from platform/StringHash.h.
3124 * platform/text/StringImpl.cpp: Copied from platform/StringImpl.cpp.
3125 * platform/text/StringImpl.h: Copied from platform/StringImpl.h.
3126 * platform/text/TextBoundaries.h: Copied from platform/TextBoundaries.h.
3127 * platform/text/TextBoundariesICU.cpp: Copied from platform/TextBoundariesICU.cpp.
3128 (WebCore::findNextWordFromIndex):
3129 * platform/text/TextBreakIterator.h: Copied from platform/TextBreakIterator.h.
3130 * platform/text/TextBreakIteratorICU.cpp: Copied from platform/TextBreakIteratorICU.cpp.
3131 * platform/text/TextBreakIteratorInternalICU.h: Copied from platform/TextBreakIteratorInternalICU.h.
3132 * platform/text/TextCodec.cpp: Copied from platform/TextCodec.cpp.
3133 * platform/text/TextCodec.h: Copied from platform/TextCodec.h.
3134 * platform/text/TextCodecICU.cpp: Copied from platform/TextCodecICU.cpp.
3135 * platform/text/TextCodecICU.h: Copied from platform/TextCodecICU.h.
3136 * platform/text/TextCodecLatin1.cpp: Copied from platform/TextCodecLatin1.cpp.
3137 * platform/text/TextCodecLatin1.h: Copied from platform/TextCodecLatin1.h.
3138 * platform/text/TextCodecUTF16.cpp: Copied from platform/TextCodecUTF16.cpp.
3139 * platform/text/TextCodecUTF16.h: Copied from platform/TextCodecUTF16.h.
3140 * platform/text/TextCodecUserDefined.cpp: Copied from platform/TextCodecUserDefined.cpp.
3141 * platform/text/TextCodecUserDefined.h: Copied from platform/TextCodecUserDefined.h.
3142 * platform/text/TextDecoder.cpp: Copied from platform/TextDecoder.cpp.
3143 * platform/text/TextDecoder.h: Copied from platform/TextDecoder.h.
3144 * platform/text/TextDirection.h: Copied from platform/TextDirection.h.
3145 * platform/text/TextEncoding.cpp: Copied from platform/TextEncoding.cpp.
3146 * platform/text/TextEncoding.h: Copied from platform/TextEncoding.h.
3147 * platform/text/TextEncodingRegistry.cpp: Copied from platform/TextEncodingRegistry.cpp.
3148 * platform/text/TextEncodingRegistry.h: Copied from platform/TextEncodingRegistry.h.
3149 * platform/text/TextStream.cpp: Copied from platform/TextStream.cpp.
3150 * platform/text/TextStream.h: Copied from platform/TextStream.h.
3151 * platform/text/UnicodeRange.cpp: Copied from platform/UnicodeRange.cpp.
3152 * platform/text/UnicodeRange.h: Copied from platform/UnicodeRange.h.
3153 * platform/text/mac: Added.
3154 * platform/text/mac/CharsetData.h: Copied from platform/CharsetData.h.
3155 * platform/win/FontWin.cpp:
3156 (WebCore::Font::selectionRectForComplexText):
3157 (WebCore::Font::drawComplexText):
3158 (WebCore::Font::floatWidthForComplexText):
3159 (WebCore::Font::offsetForPositionForComplexText):
3160 * platform/win/PopupMenuWin.cpp:
3161 (WebCore::PopupMenu::paint):
3162 * platform/win/UniscribeController.cpp:
3163 (WebCore::UniscribeController::UniscribeController):
3164 * platform/win/UniscribeController.h:
3165 * platform/win/WebCoreTextRenderer.cpp:
3166 (WebCore::doDrawTextAtPoint):
3167 * platform/wx/FontWx.cpp:
3168 (WebCore::Font::selectionRectForComplexText):
3169 (WebCore::Font::drawComplexText):
3170 (WebCore::Font::floatWidthForComplexText):
3171 (WebCore::Font::offsetForPositionForComplexText):
3172 * rendering/EllipsisBox.cpp:
3173 (WebCore::EllipsisBox::paint):
3174 * rendering/InlineTextBox.cpp:
3175 (WebCore::InlineTextBox::selectionRect):
3176 (WebCore::InlineTextBox::paint):
3177 (WebCore::InlineTextBox::paintSelection):
3178 (WebCore::InlineTextBox::paintCompositionBackground):
3179 (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
3180 (WebCore::InlineTextBox::paintTextMatchMarker):
3181 (WebCore::InlineTextBox::offsetForPosition):
3182 (WebCore::InlineTextBox::positionForOffset):
3183 * rendering/RenderFileUploadControl.cpp:
3184 (WebCore::RenderFileUploadControl::paintObject):
3185 (WebCore::RenderFileUploadControl::calcPrefWidths):
3186 * rendering/RenderImage.cpp:
3187 * rendering/RenderListBox.cpp:
3188 (WebCore::RenderListBox::updateFromElement):
3189 (WebCore::RenderListBox::paintItemForeground):
3190 * rendering/RenderMenuList.cpp:
3191 (WebCore::RenderMenuList::updateOptionsWidth):
3192 * rendering/RenderText.cpp:
3193 (WebCore::RenderText::widthFromCache):
3194 (WebCore::RenderText::calcPrefWidths):
3195 (WebCore::RenderText::width):
3196 * rendering/RenderTextControl.cpp:
3197 (WebCore::RenderTextControl::setStyle):
3198 (WebCore::RenderTextControl::createInnerFontStyle):
3199 (WebCore::RenderTextControl::createSubtreeIfNeeded):
3200 (WebCore::RenderTextControl::calcPrefWidths):
3201 * rendering/RenderTextControl.h:
3202 * rendering/SVGInlineTextBox.cpp:
3203 (WebCore::SVGInlineTextBox::calculateGlyphWidth):
3204 (WebCore::SVGInlineTextBox::paintCharacters):
3205 (WebCore::SVGInlineTextBox::paintSelection):
3206 * rendering/SVGRootInlineBox.cpp:
3207 (WebCore::cummulatedWidthOfInlineBoxCharacterRange):
3208 (WebCore::svgFontStyleForInlineTextBox):
3209 * rendering/SVGRootInlineBox.h:
3211 2007-11-30 Adele Peterson <adele@apple.com>
3215 Fix for http://bugs.webkit.org/show_bug.cgi?id=16072
3216 <rdar://problem/5463821> REGRESSION: Mousemove event isn't fired when mouse moves over scrollbar with pressed button (16072)
3218 Test: fast/events/mousemove-after-drag-over-scrollbar.html
3220 * page/EventHandler.cpp:
3221 (WebCore::EventHandler::handleMouseMoveEvent): If the mouse is pressed, and we've moved over a new scrollbar, then we can clear m_lastScrollbarUnderMouse.
3222 We should only need to show the hover effect when the mouse isn't pressed.
3224 2007-11-29 Brady Eidson <beidson@apple.com>
3228 Part of <rdar://problem/5556377> - Need to accurately track and enforce database quota
3230 SQLite has the ability to enforce the page usage for databases. This gives us bulletproof
3231 enforcement of the database size limit with reasonable granularity (within 1023 bytes by
3232 default on OS X with SQLite 3.4.0)
3234 This also involved enhancing the ability to install/remove the authorizer to run the PRAGMA
3237 Note this patch does not actually use the new maximumSize() functionality of the
3238 SQLiteDatabase class - that can be reviewed/landed seperately
3240 * platform/sql/SQLiteDatabase.cpp:
3241 (WebCore::SQLiteDatabase::SQLiteDatabase):
3242 (WebCore::SQLiteDatabase::maximumSize): Return the current maximum size in bytes
3243 (WebCore::SQLiteDatabase::setMaximumSize): Based on m_pageSize, set the maximum page count
3244 to enforce the maximum size in bytes
3245 (WebCore::SQLiteDatabase::pageSize): Fetch m_pageSize if it hasn't been fetched, or return
3247 (WebCore::SQLiteDatabase::setAuthorizer): Use enableAuthorizer for the sqlite_* level
3249 (WebCore::SQLiteDatabase::enableAuthorizer): Install or remove the sqlite authorizer handler
3250 * platform/sql/SQLiteDatabase.h: Add the m_pageSize member so we only have to fetch it once
3252 2007-11-29 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3256 * Fix fast/events/mousedown_in_scrollbar.html
3257 * This test used to crash in PlatformScrollbarQt::mouse*Event due parent() returning 0.
3258 * Extend the current check that the scrollbar in the mev can be go away.
3259 This happens if we destroy a RenderLayer as the result of a click. In the
3260 case of Qt we can have this scrollbar in m_lastScrollbarUnderMouse. The RenderLayer
3261 is the ScrollbarClient, m_lastScrollbarUnderMouse is a RefPtr and keeps the
3262 last reference. When calling into this scrollbar the m_client pointer is a dangling pointer.
3263 We extend the check to set m_lastScrollbarUnderMouse back to zero when it was the
3264 scrollbar in the old mev and is gone in the new one.
3265 * This happens only on the Qt port because we send more/different move events.
3267 * page/EventHandler.cpp:
3268 (WebCore::EventHandler::handleMousePressEvent):
3270 2007-11-29 Antti Koivisto <antti@apple.com>
3274 Fix aspect ratio calculation of video.
3276 Video should always be treated as a replaced element in size calculation.
3278 Test: media/video-aspect-ratio.html
3280 * rendering/RenderBox.cpp:
3281 (WebCore::RenderBox::calcWidth):
3282 (WebCore::RenderBox::calcHeight):
3283 * rendering/RenderBox.h:
3284 (WebCore::RenderBox::shouldCalculateSizeAsReplaced):
3285 * rendering/RenderMedia.h:
3286 (WebCore::RenderMedia::shouldCalculateSizeAsReplaced):
3288 2007-11-29 Sam Weinig <sam@webkit.org>
3292 Additional fix for <rdar://problem/5592988> / http://bugs.webkit.org/show_bug.cgi?id=15936
3293 - More closely match IE's policy for frame navigation.
3295 * bindings/js/kjs_window.cpp:
3296 (KJS::WindowProtoFuncOpen::callAsFunction):
3297 * loader/FrameLoader.cpp:
3298 (WebCore::FrameLoader::shouldAllowNavigation):
3299 * page/FrameTree.cpp:
3300 (WebCore::FrameTree::top):
3303 2007-11-29 Dan Bernstein <mitz@apple.com>
3305 Reviewed by Adam Roben and John Sullivan.
3307 - make the recent searches popup extend only along the straight part of
3308 the search field (unless it needs to be wider).
3310 * platform/PopupMenuClient.h:
3311 Added clientInsetLeft() and clientInsetRight() for clients to
3312 specify desired horizontal insets for the menu.
3313 * platform/win/PopupMenuWin.cpp:
3314 (WebCore::PopupMenu::calculatePositionAndSize):
3315 (WebCore::PopupMenu::paint):
3316 * rendering/RenderMenuList.cpp:
3317 (WebCore::RenderMenuList::clientInsetLeft): Added. Returns 0.
3318 (WebCore::RenderMenuList::clientInsetRight): Ditto.
3319 * rendering/RenderMenuList.h:
3320 * rendering/RenderTextControl.cpp:
3321 (WebCore::RenderTextControl::clientInsetLeft): Added. Returns half the
3322 control's height, which is the radius of the cap on the left.
3323 (WebCore::RenderTextControl::clientInsetRight): Added.
3324 * rendering/RenderTextControl.h:
3326 2007-11-30 Alp Toker <alp@atoker.com>
3330 http://bugs.webkit.org/show_bug.cgi?id=16173
3333 Change license from BSD to LGPL.
3335 This is being done to encourage vendors to contribute their fixes back
3338 * platform/graphics/gtk/ColorGtk.cpp:
3339 * platform/graphics/gtk/IntPointGtk.cpp:
3340 * platform/graphics/gtk/IntRectGtk.cpp:
3341 * platform/graphics/svg/cairo/RenderPathCairo.cpp:
3342 * platform/graphics/svg/cairo/SVGPaintServerCairo.cpp:
3343 * platform/graphics/svg/cairo/SVGPaintServerGradientCairo.cpp:
3344 * platform/graphics/svg/cairo/SVGPaintServerPatternCairo.cpp:
3345 * platform/graphics/svg/cairo/SVGPaintServerSolidCairo.cpp:
3346 * platform/graphics/svg/cairo/SVGResourceClipperCairo.cpp:
3347 * platform/graphics/svg/cairo/SVGResourceMaskerCairo.cpp:
3348 * platform/gtk/Language.cpp:
3349 * platform/gtk/LoggingGtk.cpp:
3350 * platform/gtk/SoundGtk.cpp:
3351 * platform/gtk/SystemTimeGtk.cpp:
3352 * platform/gtk/TextBreakIteratorInternalICUGtk.cpp:
3354 2007-11-29 Darin Adler <darin@apple.com>
3358 - fix http://bugs.webkit.org/show_bug.cgi?id=16191
3359 REGRESSION: cannot tab to radio input after setting checked to false
3361 Test: fast/forms/input-radio-checked-tab.html
3363 * html/HTMLFormElement.cpp:
3364 (WebCore::HTMLFormElement::CheckedRadioButtons::addButton): Fix this code
3365 so that it doesn't call setChecked(false) until after the map has been updated.
3366 Otherwise, we can end up deallocating the map before manipulating it. As long
3367 as I was changing the function, I decided to make it do only a single hash
3370 * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::setChecked):
3371 Remove the button from the radio buttons set before changing the checked
3372 state. This matches the idiom used elsewhere and fixes the problem where
3373 setting checked to false would not remove it from the set.
3375 2007-11-29 Justin Garcia <justin.garcia@apple.com>
3377 Reviewed by Darin Adler.
3379 <rdar://problem/5620093> Brief hang when Safari caches page text of XML document
3381 * editing/TextIterator.cpp:
3382 (WebCore::TextIterator::representNodeOffsetZero): When we haven't been emitting any
3383 characters, shouldRepresentNodeOffsetZero() can create VisiblePositions, which is
3384 expensive. So, we perform the inexpensive checks on m_node to see if it necessitates
3385 emitting a character first and will early return before encountering
3386 shouldRepresentNodeOffsetZero()s worse case behavior.
3388 2007-11-29 Anders Carlsson <andersca@apple.com>
3392 Don't install event handlers or set the zoom cursor if auto-shrink has been disabled.
3394 * loader/ImageDocument.cpp:
3395 (WebCore::ImageDocument::createDocumentStructure):
3396 (WebCore::ImageDocument::imageChanged):
3398 2007-11-29 Beth Dakin <bdakin@apple.com>
3402 Fix for <rdar://problem/5620151> Disable JavaScript for SVG as
3403 image for <img> and CSS images
3405 * platform/graphics/svg/SVGImage.cpp:
3406 (WebCore::SVGImage::dataChanged): When we create the empty clients,
3407 explicitly disable JavaScript in the settings.
3409 2007-11-29 Brady Eidson <beidson@apple.com>
3413 Support for <rdar://problem/5556381> and <rdar://problem/5556379>
3415 The Database feature in the engine needs to support delegate calls for policy decisions and
3416 also provide notifications when origins and databases change their state.
3418 This patch also polishes off the missing features of the management API
3420 * page/Chrome.cpp: Implement the two UIDelegate methods
3421 (WebCore::Chrome::requestQuotaIncreaseForNewDatabase): Ask for more space to create a new database if it won't fit
3422 (WebCore::Chrome::requestQuotaIncreaseForDatabaseOperation): Ask for more space to complete an in-progress operation
3424 * page/ChromeClient.h:
3425 * platform/graphics/svg/SVGImageEmptyClients.h:
3426 (WebCore::SVGEmptyChromeClient::requestQuotaIncreaseForNewDatabase):
3427 (WebCore::SVGEmptyChromeClient::requestQuotaIncreaseForDatabaseOperation):
3429 * storage/Database.cpp:
3430 (WebCore::Database::openDatabase): Check to see if this database can be opened - the quota must be high
3431 enough and if it isn't, the UIDelegate should have a change to bump the quota.
3432 Also update the UI-relevant details (display name and estimated size) upon successful opening of the database
3434 * storage/DatabaseDetails.h: Remove the version parameter as it is a programatic detail of a
3435 site database and is not important to API clients
3436 (WebCore::DatabaseDetails::DatabaseDetails):
3437 (WebCore::DatabaseDetails::isValid):
3438 (WebCore::DatabaseDetails::name):
3440 * storage/DatabaseTracker.cpp:
3441 (WebCore::DatabaseTracker::openTrackerDatabase): Tweaked the schema here - there was a horrible bug with the old schema that would
3442 prevent you from having two databases of the same name from two different origins. Also simplify the origin-management schema
3443 (WebCore::DatabaseTracker::canEstablishDatabase): Added. Does some estimated size vs quota checks, and asks the UI delegate for
3444 more space if necessary
3445 (WebCore::DatabaseTracker::hasEntryForOrigin):
3446 (WebCore::DatabaseTracker::establishEntryForOrigin): Establishes a tracker entry for the given origin with the current default quota
3447 Also notifies the client of the new origin
3448 (WebCore::DatabaseTracker::setDatabaseDetails): Update the display name and estimated size for the given database
3449 (WebCore::DatabaseTracker::fullPathForDatabase): Tweak to add the ability to get the path without creating it - for management purposes
3450 (WebCore::DatabaseTracker::populateOrigins): Populate origins from the Origins table instead of the Databases table
3451 (WebCore::DatabaseTracker::origins):
3452 (WebCore::DatabaseTracker::detailsForNameAndOrigin): For API management
3453 (WebCore::DatabaseTracker::usageForDatabase):
3454 (WebCore::DatabaseTracker::usageForOrigin):
3455 (WebCore::DatabaseTracker::quotaForOrigin):
3456 (WebCore::DatabaseTracker::setQuota): Notify the client
3457 (WebCore::DatabaseTracker::addDatabase): Notify the client
3458 (WebCore::DatabaseTracker::deleteAllDatabases):
3459 (WebCore::DatabaseTracker::deleteDatabasesWithOrigin):
3460 (WebCore::DatabaseTracker::deleteDatabase):