1 2009-06-15 Dan Bernstein <mitz (a] apple.com> 2 3 Reviewed by Tim Hatcher. 4 5 - use a nice source code font in the Web Inspector 6 7 * WebCoreSupport/WebInspectorClient.cpp: 8 (WebInspectorClient::createPage): Set the default monospace font to 9 13px Courier New, which is the default source code font in Visual 10 Studio. 11 12 2009-06-13 Adam Barth <abarth (a] webkit.org> 13 14 Reviewed by Darin Fisher. 15 16 https://bugs.webkit.org/show_bug.cgi?id=24492 17 18 Move registerURLSchemeAsLocal from FrameLoader to SecurityOrigin. 19 20 * WebView.cpp: 21 (WebView::registerURLSchemeAsLocal): 22 23 2009-06-12 Peter Kasting <pkasting (a] google.com> 24 25 Reviewed by Eric Seidel. 26 27 * ChangeLog: Update my email address. 28 29 2009-06-03 Brent Fulgham <bfulgham (a] webkit.org> 30 31 Build fix for Windows Cairo. 32 33 * WebKit.vcproj/WebKit.vcproj: Remove unneeded giflib.lib 34 link command. 35 36 2009-06-01 Brent Fulgham <bfulgham (a] webkit.org> 37 38 Build fix for Cairo Windows target. Windows link definition 39 files were out of sync with the Apple Windows link files. 40 41 * WebKit.vcproj/WebKit_Cairo.def: 42 * WebKit.vcproj/WebKit_Cairo_debug.def: 43 44 2009-05-29 Adam Roben <aroben (a] apple.com> 45 46 Implement WebFrame::startDownload 47 48 Fixes the WebKit side of Bug 25729: Alt-clicking a link doesn't start 49 a download <https://bugs.webkit.org/show_bug.cgi?id=25729>. Fixing 50 this all the way will require a change in Safari. 51 52 Reviewed by Darin Adler. 53 54 * WebFrame.cpp: 55 (WebFrame::startDownload): Call through to WebView::downloadURL. 56 57 2009-05-29 Adam Roben <aroben (a] apple.com> 58 59 Move WebContextMenuClient's downloading code to WebView 60 61 This will allow other code to trigger downloads using this code, and 62 matches Mac. 63 64 Reviewed by Darin Adler. 65 66 * WebCoreSupport/WebContextMenuClient.cpp: 67 (WebContextMenuClient::downloadURL): Moved code from here... 68 * WebView.cpp: 69 (WebView::downloadURL): ...to here. Also tightened up the code a 70 little bit and removed an unnecessary LOG_ERROR. 71 72 * WebView.h: Added downloadURL. 73 74 2009-05-29 Brent Fulgham <bfulgham (a] webkit.org> 75 76 Reviewed by Darin Adler. 77 78 Correct Windows Cairo build error caused by @r42767. 79 http://bugs.webkit.org/show_bug.cgi?id=26082. 80 81 * WebError.cpp: 82 (WebError::localizedDescription): 83 84 2009-05-23 David Kilzer <ddkilzer (a] apple.com> 85 86 Windows build fix for PassOwnPtr 87 88 * WebHistory.cpp: 89 (WebHistory::visitedURL): Changed 90 std::auto_ptr<Vector<String> >() to 0. 91 * WebHistoryItem.cpp: 92 (WebHistoryItem::initFromDictionaryRepresentation): Changed type 93 of redirectURLsVector from std::auto_ptr<Vector<String> > to 94 OwnPtr<Vector<String> >. 95 96 2009-05-23 David Kilzer <ddkilzer (a] apple.com> 97 98 Part 2 of 2: Bug 25495: Implement PassOwnPtr and replace uses of std::auto_ptr 99 100 <https://bugs.webkit.org/show_bug.cgi?id=25495> 101 102 Reviewed by Oliver Hunt. 103 104 * WebCoreSupport/WebChromeClient.h: 105 (WebChromeClient::createHTMLParserQuirks): Return a PassOwnPtr<> 106 instead of a raw HTMLParserQuirks pointer. 107 108 2009-05-22 Brent Fulgham <bfulgham (a] webkit.org> 109 110 Reviewed by Adam Roben. 111 112 https://bugs.webkit.org/show_bug.cgi?id=25971 113 Correct some build errors for Windows Cairo variant. 114 115 * WebKit.vcproj/WebKit.vcproj: Remove WTF.lib link commands as 116 the new JavaScriptCore.dll supplies this now. 117 118 2009-05-22 Brent Fulgham <bfulgham (a] webkit.org> 119 120 Reviewed by Steve Falkenburg. 121 122 https://bugs.webkit.org/show_bug.cgi?id=25950 123 JavaScriptCore Fails to build on Windows (Cairo) due to 124 CoreFoundation link requirement. 125 126 * WebKit.vcproj/WebKit.sln: Modify Debug_Cairo and Release_Cairo 127 targets to use new Debug_CFLite and Release_CFLite targets 128 for JavaScriptCore. 129 130 2009-05-21 Darin Fisher <darin (a] chromium.org> 131 132 Fix-up coding style. 133 134 * WebCoreSupport/WebEditorClient.cpp: 135 (WebEditorClient::getAutoCorrectSuggestionForMisspelledWord): 136 137 2009-05-20 Siddhartha Chattopadhyay <sidchat (a] google.com> 138 139 Reviewed by Justin Garcia. 140 141 Add automatic spell correction support in WebKit 142 143 https://bugs.webkit.org/show_bug.cgi?id=24953 144 145 * WebCoreSupport/WebEditorClient.cpp: 146 (WebEditorClient::getAutoCorrectSuggestionForMisspelledWord): 147 * WebCoreSupport/WebEditorClient.h: 148 149 2009-05-20 Brady Eidson <beidson (a] apple.com> 150 151 Reviewed by Darin Adler. 152 153 More protocolInHTTPFamily() cleanup. 154 155 * WebHistory.cpp: 156 (WebHistory::visitedURL): 157 158 2009-05-20 Holger Hans Peter Freyther <zecke (a] selfish.org> 159 160 Reviewed by Darin Adler. 161 162 https://bugs.webkit.org/show_bug.cgi?id=25834 163 164 Make ChromeClient a interface again 165 166 With recent additions to ChromeClient.h empty defaults were 167 added. This is bad for porters as these changes go unnoticed 168 and at runtime no notImplemented warning is logged and grepping 169 for notImplemented will not show anything. Change this Client 170 to be like the other Clients again and always have pure virtuals 171 (but for stuff inside #ifdef PLATFORM(MAC)). 172 173 Update the various WebKit/* implementations to compile again. 174 175 * WebCoreSupport/WebChromeClient.cpp: 176 (WebChromeClient::requestGeolocationPermissionForFrame): 177 * WebCoreSupport/WebChromeClient.h: 178 (WebChromeClient::scrollRectIntoView): 179 180 2009-05-18 Steve Falkenburg <sfalken (a] apple.com> 181 182 <rdar://problem/6899044> Can't see Apple ad on nytimes.com unless I spoof the user agent 183 184 Add user agent hack for pointroll.com. 185 186 Reviewed by Sam Weinig. 187 188 * WebView.cpp: 189 190 2009-05-13 Dmitry Titov <dimich (a] chromium.org> 191 192 Rubber-stamped by Mark Rowe. 193 194 https://bugs.webkit.org/show_bug.cgi?id=25746 195 Revert http://trac.webkit.org/changeset/43507 which caused crash in PPC nightlies with Safari 4. 196 197 * WebKit.vcproj/WebKit.def: 198 * WebKit.vcproj/WebKit_debug.def: 199 200 2009-05-12 Steve Falkenburg <sfalken (a] apple.com> 201 202 Build fix for Windows nightlies. 203 Change link order to work around CFNetwork bug. 204 205 * WebKit.vcproj/WebKit.vcproj: 206 207 2009-05-11 Dmitry Titov <dimich (a] chromium.org> 208 209 Reviewed by Alexey Proskuryakov and Adam Roben. 210 211 https://bugs.webkit.org/show_bug.cgi?id=25348 212 Change WTF::ThreadIdentifier to be an actual (but wrapped) thread id, remove ThreadMap. 213 214 Most of the change is in WTF and WebCore. 215 216 * WebKit.vcproj/WebKit.def: replaced decorated names of WTF threading functions with new ones. 217 Also, aliased the old implementations so the public Safari 4 beta can load the old WTF functions 218 which it uses. Next time Safari 4 builds, it will pick up new functions and the deprecated ones 219 can be removed. 220 * WebKit.vcproj/WebKit_debug.def: same. 221 222 2009-05-10 Alexey Proskuryakov <ap (a] webkit.org> 223 224 Reviewed by Dan Bernstein. 225 226 <rdar://problem/6870383> Have to enter credentials twice when downloading from a protected page 227 228 * WebDownloadCFNet.cpp: (WebDownload::didReceiveAuthenticationChallenge): Try to use 229 credentials from WebCore storage. 230 231 2009-05-07 Mark Rowe <mrowe (a] apple.com> 232 233 Rubber-stamped by Oliver Hunt. 234 235 Fix <https://bugs.webkit.org/show_bug.cgi?id=25640>. 236 Bug 25640: Crash on quit in r43384 nightly build on Leopard w/ Safari 4 beta installed 237 238 Roll out r43366 as it removed symbols that Safari 4 Beta uses. 239 240 * WebKit.vcproj/WebKit.def: 241 * WebKit.vcproj/WebKit_debug.def: 242 243 2009-05-06 Steve Falkenburg <sfalken (a] apple.com> 244 245 Change default value of WebKitPaintNativeControls to true. 246 247 Reviewed by Adam Roben. 248 249 * WebPreferences.cpp: 250 (WebPreferences::initializeDefaultSettings): 251 252 2009-05-05 Ben Murdoch <benm (a] google.com> 253 254 Reviewed by Eric Seidel. 255 256 Add #if ENABLE(DATABASE) guards around database code so toggling ENABLE_DATABASE off does not break builds. 257 https://bugs.webkit.org/show_bug.cgi?id=24776 258 259 * ForEachCoClass.h: 260 * WebCoreSupport/WebChromeClient.cpp: 261 * WebCoreSupport/WebChromeClient.h: 262 * WebDatabaseManager.cpp: 263 * WebDatabaseManager.h: 264 * WebSecurityOrigin.cpp: 265 (WebSecurityOrigin::usage): 266 (WebSecurityOrigin::quota): 267 (WebSecurityOrigin::setQuota): 268 * WebSecurityOrigin.h: 269 * WebView.cpp: 270 (WebView::initWithFrame): 271 272 2009-05-04 Adam Roben <aroben (a] apple.com> 273 274 Add a call to notify the UI delegate when the WebView gets invalidated 275 276 Reviewed by Steve Falkenburg. 277 278 * Interfaces/IWebUIDelegatePrivate.idl: Added webViewDidInvalidate. 279 * WebView.cpp: 280 (WebView::addToDirtyRegion): Call webViewDidInvalidate. 281 282 2009-05-04 Darin Adler <darin (a] apple.com> 283 284 First try at fixing the Windows build. 285 286 * DOMHTMLClasses.cpp: Added include of HTMLCollection.h. 287 288 2009-05-01 Geoffrey Garen <ggaren (a] apple.com> 289 290 Rubber Stamped by Sam Weinig. 291 292 Renamed JSValuePtr => JSValue. 293 294 * WebView.cpp: 295 (WebView::stringByEvaluatingJavaScriptFromString): 296 297 2009-05-01 Pavel Feldman <pfeldman (a] chromium.org> 298 299 Reviewed by Timothy Hatcher. 300 301 Add a FrameLoaderClient callback for the ResourceRetrievedByXMLHttpRequest. 302 303 https://bugs.webkit.org/show_bug.cgi?id=25347 304 305 * WebCoreSupport/WebFrameLoaderClient.cpp: 306 (WebFrameLoaderClient::dispatchDidLoadResourceByXMLHttpRequest): 307 * WebCoreSupport/WebFrameLoaderClient.h: 308 309 2009-04-30 David Kilzer <ddkilzer (a] apple.com> 310 311 Provide a mechanism to create a quirks delegate for HTMLParser 312 313 Reviewed by David Hyatt. 314 315 * WebCoreSupport/WebChromeClient.h: 316 (WebChromeClient::createHTMLParserQuirks): Added. The default 317 implementation of this factory method returns 0. 318 319 2009-04-30 Pavel Feldman <pfeldman (a] chromium.org> 320 321 Reviewed by Dimitri Glazkov. 322 323 https://bugs.webkit.org/show_bug.cgi?id=25342 324 Add MessageSource and MessageLevel parameters to the ChromeClient::addMessageToConsole. 325 326 * WebCoreSupport/WebChromeClient.cpp: 327 (WebChromeClient::addMessageToConsole): 328 * WebCoreSupport/WebChromeClient.h: 329 330 2009-04-29 Eric Seidel <eric (a] webkit.org> 331 332 No review, rolling out a patch. 333 334 Revert 43020 as it caused accessibility/lists.html to fail 335 and no one is around to tell me if it's a progression or not. 336 337 * AccessibleBase.cpp: 338 (MSAARole): 339 340 2009-04-29 Sankar Aditya Tanguturi <sankaraditya (a] gmail.com> 341 342 Reviewed by Jon Honeycutt. 343 344 Add a new accessibility role for list items. Part of 345 http://bugs.webkit.org/show_id.cgi?id=20013 346 347 * win/AccessibleBase.cpp: 348 (MSAARole): Return ROLE_SYSTEM_LISTITEM for list item role. 349 350 2009-04-29 Sankar Aditya Tanguturi <sankaraditya (a] gmail.com> 351 352 Reviewed by Adele Peterson. 353 354 https://bugs.webkit.org/show_bug.cgi?id=23583 355 Populate role attribute for document objects correctly 356 on Windows platform. 357 358 * AccessibleDocument.cpp: 359 (AccessibleDocument::role): Return ROLE_SYSTEM_DOCUMENT for 360 document objects on windows. (Matching Firefox). 361 * AccessibleDocument.h: Add the role function prototype in 362 header file. 363 364 2009-04-22 Ada Chan <adachan (a] apple.com> 365 366 <rdar://problem/5115298> Don't get error msg when download is interrupted and cannot resume due to server unavailability 367 If we fail to get an error description back from CFNetwork, try to get the localized description 368 based on the error code. 369 370 Reviewed by Darin Adler. 371 372 * WebError.cpp: 373 (WebError::localizedDescription): 374 375 2009-04-21 Jon Honeycutt <jhoneycutt (a] apple.com> 376 377 Allow the UI delegate to control cursor-setting. 378 379 Reviewed by Ada Chan. 380 381 * Interfaces/IWebUIDelegatePrivate.idl: 382 Added a function to the IWebUIDelegatePrivate5 interface. 383 384 * WebCoreSupport/WebChromeClient.cpp: 385 (WebChromeClient::setCursor): 386 Try to call the UI delegate's webViewSetCursor() method. If it fails, 387 fall back to calling SetCursor() with the passed cursor. 388 389 * WebCoreSupport/WebChromeClient.h: 390 391 * WebView.cpp: 392 (WebViewWndProc): 393 Call the Chrome's setCursor() method with the last set cursor. 394 395 2009-04-21 Dan Bernstein <mitz (a] apple.com> 396 397 Reviewed by Jon Honeycutt. 398 399 - Windows part of fixing <rdar://problem/6755137> Action dictionary for 400 policy decision is missing keys when full-page zoom is used 401 402 * WebActionPropertyBag.cpp: 403 (WebActionPropertyBag::Read): Use absoluteLocation() instead of 404 clientX() and clientY(), which are adjusted for zoom. 405 406 2009-04-21 Dan Bernstein <mitz (a] apple.com> 407 408 Reviewed by Jon Honeycutt. 409 410 - implement DOMNode::nodeName() 411 412 * DOMCoreClasses.cpp: 413 (DOMNode::nodeName): 414 415 2009-04-21 Steve Falkenburg <sfalken (a] apple.com> 416 417 Minor clean-ups to WebKitCreateInstance change. 418 419 Reviewed by Jon Honeycutt. 420 421 * WebKitCOMAPI.cpp: 422 (classFactory): 423 (WebKitCreateInstance): 424 425 2009-04-21 Steve Falkenburg <sfalken (a] apple.com> 426 427 Add registry-free CoCreateInstance API for WebKit clients: WebKitCreateInstance. 428 429 Manifest-based registry-free COM continues to work for clients that have embedded 430 manifests with isolated COM information. 431 432 Reviewed by Adam Roben. 433 434 * WebKit.vcproj/WebKit.def: Added WebKitCreateInstance. 435 * WebKit.vcproj/WebKit.vcproj: Link against rpcrt4.dll for UUID hashing. 436 * WebKit.vcproj/WebKit_debug.def: Added WebKitCreateInstance. 437 * WebKitCOMAPI.cpp: Added. 438 (CLSIDHash::hash): 439 (CLSIDHash::equal): 440 (CLSIDHashTraits::constructDeletedValue): 441 (CLSIDHashTraits::isDeletedValue): 442 (classFactory): 443 (WebKitCreateInstance): New API. 444 * WebKitCOMAPI.h: Added. 445 446 2009-04-21 Adam Roben <aroben (a] apple.com> 447 448 Rename JavaScriptCore_debug.dll to JavaScriptCore.dll in the Debug 449 configuration 450 451 This matches the naming scheme for WebKit.dll, and will be necessary 452 once Safari links against JavaScriptCore.dll. This change also causes 453 run-safari not to fail (because the launcher printed by FindSafari was 454 always looking for JavaScriptCore.dll, never 455 JavaScriptCore_debug.dll). 456 457 Part of Bug 25305: can't run safari or drt on windows 458 <https://bugs.webkit.org/show_bug.cgi?id=25305> 459 460 Reviewed by Steve Falkenburg and Sam Weinig. 461 462 * WebKit.vcproj/WebKit.vcproj: Use $(WebKitDLLConfigSuffix) for naming 463 JavaScriptCore.{dll,lib}. 464 465 2009-04-20 Adam Roben <aroben (a] apple.com> 466 467 Build fix 468 469 * MemoryStream.cpp: 470 (MemoryStream::Clone): Fix typo introduced when implementing 471 suggestions from patch review. 472 473 2009-04-20 Adam Roben <aroben (a] apple.com> 474 475 First part of <rdar://6395825> It takes over 20 sec to launch Safari 476 with 500KB history file 477 478 This ports the changes that were made to WebKit/mac's WebHistory 479 implementation in r25275 to WebKit/win. WebHistory now stores a 480 HashMap from CFAbsoluteTime (stored as int64_t) to CFArray of 481 IWebHistoryItem*. The HashMap lets us look up the CFArray for a 482 particular day's history in constant time rather than linear time. The 483 precise reasons why we store the CFAbsoluteTime as an int64_t are lost 484 to the mists of time, but it is likely because these CFAbsoluteTimes 485 never have a decimal part, and integer comparisons are faster than 486 floating-point comparisons, so storing them as int64_t should improve 487 performance without losing precision. We also now use a binary search 488 instead of a linear search when determining the index at which to 489 insert a WebHistoryItem into its day's CFArray. 490 491 This patch reduces the time needed to load a 100,000-item 492 History.plist from ~15 seconds to ~7.5 seconds. Further improvements 493 could likely be made by reducing the number of string conversions, 494 reducing calls to CFTimeZone functions, and removing all the 495 WebHistoryItemsAdded notifications that are sent (Mac doesn't send any 496 while loading history). 497 498 Reviewed by Darin Adler. 499 500 * WebHistory.cpp: 501 (WebHistoryWriter::WebHistoryWriter): Changed to take a 502 DateToEntriesMap instead of a CFArrayRef. Initialize m_dateKeys to 503 contain the keys from m_entriesByDate in ascending order. 504 (WebHistoryWriter::writeHistoryItems): Now loops through m_dateKeys in 505 reverse order and gets the entries array from the DateToEntriesMap. 506 (WebHistory::WebHistory): Removed code to initialize 507 m_datesWithEntries (which has been removed) and m_entriesByDate (which 508 has been converted to a HashMap). 509 (WebHistory::removeAllItems): Clear out m_entriesByDate and 510 m_orderedLastVisitedDays. 511 (WebHistory::orderedLastVisitedDays): If we don't already have a 512 cached m_orderedLastVisitedDays array, create one by converting the 513 keys from m_entriesByDate to DATEs and sorting them in descending 514 order. Then copy m_orderedLastVisitedDays to the output buffer. 515 (WebHistory::orderedItemsLastVisitedOnDay): Updated to use findKey 516 instead of findIndex and to treat m_entriesByDate as a HashMap. 517 Now that the items in each day's CFArray are stored in descending 518 order (newest to oldest), we don't have to reverse them when filling 519 in the output buffer. (The old comment about putting the items in 520 oldest-to-newest order was incorrect -- it was putting them in 521 newest-to-oldest order.) 522 523 (WebHistory::addItemToDateCaches): 524 (WebHistory::removeItemFromDateCaches): 525 Changed to use findKey instead of findIndex and to treat 526 m_entriesByDate as a HashMap. If we're adding a key to or removing a 527 key from m_entriesByDate, also clear m_orderedLastVisitedDays so that 528 we will regenerate it for the current set of keys the next time it is 529 needed. 530 531 (timeIntervalForBeginningOfDay): Added. Returns the CFAbsoluteTime 532 that corresponds to the beginning of the day in which the passed-in 533 DATE occurs. 534 (WebHistory::findKey): Returns the key used in m_entriesByDate to 535 store the CFArray that should contain the IWebHistoryItem that 536 corresponds to the passed-in DATE. Replaces findIndex. 537 (WebHistory::insertItem): Changed to treat m_entriesByDate as a 538 HashMap rather than a CFArray. We now optimize for inserting at the 539 beginning and end of the array, and use a binary rather than linear 540 search when inserting into the middle of the array. 541 (WebHistory::data): Changed to treat m_entriesByDate as a HashMap. 542 543 * WebHistory.h: Changed m_entriesByDate to a DateToEntriesMap, removed 544 m_datesWithEntries, added m_orderedLastVisitedDays. 545 546 2009-04-20 Adam Roben <aroben (a] apple.com> 547 548 Change MemoryStream::createInstance to return a COMPtr 549 550 Part of Bug 25294: All WebKit/win classes should return COMPtrs from 551 their static constructor members 552 <https://bugs.webkit.org/show_bug.cgi?id=25294> 553 554 Reviewed by Darin Adler. 555 556 * MemoryStream.cpp: 557 (MemoryStream::createInstance): Changed to return a COMPtr. 558 (MemoryStream::Clone): Updated for createInstance change. 559 * MemoryStream.h: Changed createInstance to return a COMPtr. 560 561 * WebArchive.cpp: 562 (WebArchive::data): 563 * WebCoreSupport/EmbeddedWidget.cpp: 564 (EmbeddedWidget::didReceiveData): 565 * WebDataSource.cpp: 566 (WebDataSource::data): 567 * WebHistory.cpp: 568 (WebHistory::data): 569 * WebIconFetcher.cpp: 570 (WebIconFetcherClient::finishedFetchingIcon): 571 * WebResource.cpp: 572 (WebResource::createInstance): 573 Updated for changes to MemoryStream::createInstance. 574 575 2009-04-20 Adam Roben <aroben (a] apple.com> 576 577 Fix Bug 25295: Remove WebKit/win code that was used for Drosera 578 support 579 580 <https://bugs.webkit.org/show_bug.cgi?id=25295> 581 582 Reviewed by Sam Weinig. 583 584 * ForEachCoClass.h: Removed WebScriptDebugServer. 585 586 * Interfaces/WebKit.idl: Removed WebScriptDebugServer and references 587 to removed IDL files. 588 589 * WebKit.vcproj/Interfaces.vcproj: 590 * WebKit.vcproj/WebKit.vcproj: 591 Removed IDL and source files for IWebScriptCallFrame, 592 IWebScriptDebugListener, IWebScriptDebugServer, WebScriptCallFrame, 593 and WebScriptDebugServer. 594 595 * WebCoreSupport/WebFrameLoaderClient.cpp: 596 * WebKitClassFactory.cpp: 597 * WebKitDLL.cpp: 598 Removed #includes of WebScriptDebugServer.h. 599 600 * Interfaces/IWebScriptCallFrame.idl: Removed. 601 * Interfaces/IWebScriptDebugListener.idl: Removed. 602 * Interfaces/IWebScriptDebugServer.idl: Removed. 603 * WebScriptCallFrame.cpp: Removed. 604 * WebScriptCallFrame.h: Removed. 605 * WebScriptDebugServer.cpp: Removed. 606 * WebScriptDebugServer.h: Removed. 607 608 2009-04-20 Steve Falkenburg <sfalken (a] apple.com> 609 610 Separate JavaScriptCore.dll from WebKit.dll. 611 Slight performance improvement or no change on benchmarks. 612 613 Allows us to break a circular dependency between CFNetwork and WebKit on Windows, 614 and simplifies standalone JavaScriptCore builds. 615 616 Reviewed by Oliver Hunt. 617 618 * WebKit.vcproj/WebKit.def: Mark JavaScriptCore re-exports as deprecated. 619 * WebKit.vcproj/WebKit.vcproj: Link against JavaScriptCore.dll 620 * WebKit.vcproj/WebKit_debug.def: Mark JavaScriptCore re-exports as deprecated. 621 622 2009-04-17 Ada Chan <adachan (a] apple.com> 623 624 <rdar://problem/6803905> Lots of ASSERTs firing when trying to clear history 625 626 Reviewed by Steve Falkenburg. 627 628 * WebHistory.cpp: 629 (WebHistory::data): Return null if there are no history items. 630 631 2009-04-17 Ada Chan <adachan (a] apple.com> 632 633 - Fix a leak in WebHistoryItem::children() by adopting the created instance of WebHistoryItem. 634 - Remove the unnecessary call to QueryInterface() which is not related to the leak. 635 636 Reviewed by Adam Roben. 637 638 * WebHistoryItem.cpp: 639 (WebHistoryItem::children): 640 641 2009-04-17 Ada Chan <adachan (a] apple.com> 642 643 Fix a leak in WebHistory::data(). 644 645 Reviewed by Adam Roben. 646 647 * WebHistory.cpp: 648 (WebHistory::data): 649 650 2009-04-16 Alice Liu <alice.liu (a] apple.com> 651 652 Reviewed by Mark Rowe. 653 654 Fix for heavy leakage of WebURLResponses seen during the stress test 655 656 * WebCoreSupport/WebFrameLoaderClient.cpp: 657 (WebFrameLoaderClient::shouldCacheResponse): 658 659 2009-04-16 Xan Lopez <xlopez (a] igalia.com> 660 661 Unreviewed build fix. 662 663 * WebView.cpp: 664 665 2009-04-16 Xan Lopez <xlopez (a] igalia.com> 666 667 Reviewed by Sam Weinig. 668 669 https://bugs.webkit.org/show_bug.cgi?id=25241 670 Remove superfluous NotImplemented.h includes 671 672 * WebDownloadCFNet.cpp: 673 * WebURLAuthenticationChallengeSender.cpp: 674 * WebView.cpp: 675 676 2009-04-14 Adam Roben <aroben (a] apple.com> 677 678 Remove support for profile-guided optimization on Windows 679 680 Rubber-stamped by Steve Falkenburg. 681 682 * WebKit.vcproj/WebKit.vcproj: Removed the Release_PGOInstrument and 683 Release_PGOOptimize configurations. 684 685 2009-04-13 Adam Roben <aroben (a] apple.com> 686 687 Windows part 2 of <rdar://5438063> Saving history containing 100,000 688 entries causes pauses of 2s while browsing 689 690 Reviewed by Brady Eidson. 691 692 * Interfaces/IWebHistoryPrivate.idl: Added data, analagous to 693 WebKit/mac's -[WebHistory _data] method. 694 695 * WebHistory.cpp: 696 (WebHistory::saveHistoryGuts): Changed to call data() to get the data for 697 saving. 698 (WebHistory::data): Added. Returns the data for saving as an IStream. 699 (WebHistory::data): Added. Returns the data for saving as a CFDataRef. 700 701 * WebHistory.h: Added data. 702 703 2009-04-10 Steve Falkenburg <sfalken (a] apple.com> 704 705 <rdar://problem/6676024> REGRESSION (PB-40B1): Safari crashes on launch on tablet PC 706 707 r21436 changed the semantics of AXObjectCache::get() to not create 708 objects on demand. Changing this get() call into a getOrCreate() call 709 fixes the crash. 710 711 Rubber stamped by Jon Honeycutt. 712 713 * AccessibleDocument.cpp: 714 (AccessibleDocument::AccessibleDocument): 715 716 2009-04-10 Adam Roben <aroben (a] apple.com> 717 718 Add our invidual IDL files back to Interfaces.vcproj, but disable them 719 720 This allows the IDL files to be found in Solution Explorer. 721 722 Rubber-stamped in advance by Steve Falkenburg. 723 724 * WebKit.vcproj/Interfaces.vcproj: 725 726 2009-04-09 Adam Roben <aroben (a] apple.com> 727 728 Windows part 1 of <rdar://problem/5438063> Saving history containing 729 100,000 entries causes pauses of 2s while browsing 730 731 Use HistoryPropertyListWriter to implement IWebHistory::saveToURL. 732 733 Reviewed by Darin Adler. 734 735 * WebHistory.cpp: 736 (WebHistoryWriter::WebHistoryWriter): Added. 737 (WebHistoryWriter::writeHistoryItems): Added. Loop backwards through 738 the entries for each date, and pass the corresponding 739 WebCore::HistoryItem to writeHistoryItem. 740 (WebHistory::saveHistoryGuts): Use WebHistoryWriter to serialize 741 m_entriesByDate, then write the serialized data to disk using 742 CFWriteStream. 743 744 * WebHistory.h: Removed datesArray. 745 746 2009-04-08 Adam Roben <aroben (a] apple.com> 747 748 Fix security/block-test-no-port.html on Windows 749 750 Reviewed by Beth Dakin. 751 752 * WebMutableURLRequest.cpp: 753 (WebMutableURLRequest::mainDocumentURL): Return the ResourceRequest's 754 mainDocumentURL, not its URL. 755 756 2009-04-01 Darin Adler <darin (a] apple.com> 757 758 Reviewed by Geoff Garen. 759 760 Bug 22378: Crash submitting a form when parsing an XHTML document 761 https://bugs.webkit.org/show_bug.cgi?id=22378 762 rdar://problem/6388377 763 764 * WebFrame.cpp: 765 (WebFrame::dispatchWillSubmitForm): Updated for the new 766 textFieldValues function in FormState. 767 768 2009-03-30 Adam Roben <aroben (a] apple.com> 769 770 Build fixes after recent FrameLoader changes 771 772 * WebCoreSupport/WebContextMenuClient.cpp: 773 (WebContextMenuClient::searchWithGoogle): Updated to match 774 urlSelected's current signature. We pass true for the userGesture 775 parameter, since the user must have selected this item from the 776 context menu. 777 778 * WebCoreSupport/WebFrameLoaderClient.cpp: Removed 779 loadURLIntoChildFrame. 780 (WebFrameLoaderClient::createFrame): Changed to call 781 FrameLoader::loadURLIntoChildFrame. This probably should have been 782 done way back around r31281 when that function was added. 783 784 * WebCoreSupport/WebFrameLoaderClient.h: Removed 785 loadURLIntoChildFrame. 786 787 2009-03-27 Adam Roben <aroben (a] apple.com> 788 789 Don't include substitute data URLs in global history redirect chains 790 791 <rdar://6690169> 792 793 Reviewed by Darin Adler. 794 795 * WebCoreSupport/WebFrameLoaderClient.cpp: 796 (WebFrameLoaderClient::updateGlobalHistory): Don't call 797 updateGlobalHistoryRedirectLinks. FrameLoader calls this for us now. 798 (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks): 799 Added an assertion to help catch cases where we might be adding a 800 substitute data URL into a redirect chain. 801 802 2009-03-26 Dan Bernstein <mitz (a] apple.com> 803 804 Reviewed by Adam Roben. 805 806 - add close() to the WebView API. 807 808 * Interfaces/IWebView.idl: 809 * WebView.cpp: 810 (WebView::close): 811 * WebView.h: 812 813 2009-03-24 Brent Fulgham <bfulgham (a] webkit.org> 814 815 Reviewed by Adam Roben. 816 817 https://bugs.webkit.org/show_bug.cgi?id=24779 818 Conditionalize CFNetwork-specific code in WebView to permit 819 support for other network backends. 820 821 * WebView.cpp: 822 (WebView::setCacheModel): Add CFNETWORK check around CFNetwork 823 specific cache implementation. 824 (updateSharedSettingsFromPreferencesIfNeeded): Add CFNETWORK 825 check around use of CFHTTPCookie code. 826 827 2009-03-23 Sam Weinig <sam (a] webkit.org> 828 829 Reviewed by Dan Bernstein. 830 831 Fix for <rdar://problem/6140966> 832 Empty Caches does not clear the Cross-site XMLHttpRequest preflight cache 833 834 * WebCache.cpp: 835 (WebCache::empty): Also add application cache emptying to match the mac. 836 837 2009-03-18 Steve Falkenburg <sfalken (a] apple.com> 838 839 Add webViewClosing to private UI delegate. 840 841 Reviewed by Adam Roben. 842 843 * Interfaces/IWebUIDelegatePrivate.idl: 844 * Interfaces/WebKit.idl: 845 * WebView.cpp: 846 (WebView::close): 847 848 2009-03-17 Dan Bernstein <mitz (a] apple.com> 849 850 Reviewed by Adam Roben. 851 852 - WebKit part of adding a mechanism for controlling the caching of 853 responses through WebFrameLoaderClient 854 855 * Interfaces/IWebResourceLoadDelegatePrivate.idl: Added the 856 IWebResourceLoadDelegatePrivate3 interface, containing the new 857 delegate method shouldCacheResponse(). 858 859 * Interfaces/IWebURLRequest.idl: Added the isEqual() method. 860 861 * WebCoreSupport/WebFrameLoaderClient.cpp: 862 (WebFrameLoaderClient::shouldCacheResponse): Implemented this new 863 FrameLoaderDelegate method by calling through to the resource load 864 delegate, if it implements shouldCacheResponse(), and returning true 865 otherwise. 866 867 * WebCoreSupport/WebFrameLoaderClient.h: 868 869 * WebMutableURLRequest.cpp: 870 (WebMutableURLRequest::isEqual): Added. 871 (WebMutableURLRequest::setValue): Implemented. 872 873 * WebMutableURLRequest.h: Declared isEqual(). 874 875 2009-03-16 Darin Adler <darin (a] apple.com> 876 877 Reviewed by Dan Bernstein. 878 879 <rdar://problem/6577174> Rename the text directionality submenus to Paragraph Direction and Selection Direction 880 881 For now, change only the localized strings, not the terminology in the code. 882 883 * WebCoreLocalizedStrings.cpp: 884 (WebCore::contextMenuItemTagWritingDirectionMenu): Changed string here. 885 (WebCore::contextMenuItemTagTextDirectionMenu): And here. 886 887 2009-03-16 Adam Roben <aroben (a] apple.com> 888 889 Add IWebFramePrivate::isDisplayingStandaloneImage 890 891 This uses the same logic that -[WebFrame _isDisplayingStandaloneImage] 892 uses. 893 894 Reviewed by Darin Adler. 895 896 * Interfaces/IWebFramePrivate.idl: Added isDisplayingStandaloneImage. 897 898 * WebFrame.cpp: 899 (WebFrame::isDisplayingStandaloneImage): Added. Returns true if our 900 Document is an image document. 901 902 * WebFrame.h: Added isDisplayingStandaloneImage. 903 904 2009-03-12 Peter Kasting <pkasting (a] google.com> 905 906 Reviewed by Darin Fisher. 907 908 https://bugs.webkit.org/show_bug.cgi?id=24502 909 Make horizontal scrolling on Windows always go the correct direction. 910 911 * WebView.cpp: 912 (WebView::mouseWheel): 913 (WebViewWndProc): 914 * WebView.h: 915 916 2009-03-12 Adam Roben <aroben (a] apple.com> 917 918 Implement DOMHTMLDocument::title 919 920 Reviewed by Dan Bernstein. 921 922 * DOMHTMLClasses.cpp: 923 (DOMHTMLDocument::title): Call through to WebCore::Document (with 924 obligatory COM error checking/type conversions). 925 926 2009-03-11 Adam Roben <aroben (a] apple.com> 927 928 Export functions needed by ThreadSpecific from WebKit 929 930 Reviewed by John Sullivan. 931 932 * WebKit.vcproj/WebKit.def: 933 * WebKit.vcproj/WebKit_debug.def: 934 Export WTF::tlsKeyCount and WTF::tlsKeys. 935 936 2009-03-10 Steve Falkenburg <sfalken (a] apple.com> 937 938 <rdar://problem/6662167> When clicking in Top Sites search field, WebHistory::findIndex fails causing crash in BookmarksSearcher::collectHistorySearchResults 939 940 Round CFAbsoluteDates to the nearest second when converting to/from the Windows DATE format. 941 942 This corrects for inaccuracies introduced by round-tripping between DATE (day based) and CFAbsoluteDate (second based). 943 The WebKit COM API on Windows uses DATE, while our history storage uses CFAbsoluteTime. This could lead to WebKit 944 saying there was browsing history for a particular day, and then return no history items when we requested a 945 list of sites visited that day. 946 947 Reviewed by Ada Chan. 948 949 * MarshallingHelpers.cpp: 950 (MarshallingHelpers::DATEToCFAbsoluteTime): 951 (MarshallingHelpers::CFAbsoluteTimeToDATE): 952 953 2009-03-08 Mark Rowe <mrowe (a] apple.com> 954 955 Reviewed by Oliver Hunt. 956 957 Split ScrollAlignment and ScrollBehavior out of RenderLayer.h so that 958 Frame.h no longer needs to include it. This cuts the size of the symbols 959 for a debug build by around 3%. 960 961 * WebView.cpp: 962 (WebView::centerSelectionInVisibleArea): 963 964 2009-03-07 Dan Bernstein <mitz (a] apple.com> 965 966 Reviewed by Mark Rowe. 967 968 - WebKit part of removing build-time and run-time support for legacy 969 versions of CFNetwork and Core Graphics 970 971 * WebView.cpp: 972 (WebView::setCacheModel): 973 974 2009-03-04 Adam Barth <abath (a] webkit.org> 975 976 Reviewed by Alexey Proskuryakov. 977 978 https://bugs.webkit.org/show_bug.cgi?id=24356 979 980 Fix WebKit style for allowUniversalAccessFromFileURLs. 981 982 * Interfaces/IWebPreferencesPrivate.idl: 983 * WebPreferenceKeysPrivate.h: 984 * WebPreferences.cpp: 985 (WebPreferences::initializeDefaultSettings): 986 (WebPreferences::allowUniversalAccessFromFileURLs): 987 (WebPreferences::setAllowUniversalAccessFromFileURLs): 988 * WebPreferences.h: 989 * WebView.cpp: 990 (WebView::notifyPreferencesChanged): 991 992 2009-02-27 Adam Barth <abarth (a] webkit.org> 993 994 Reviewed by Eric Seidel. 995 996 Add a preference to reduce the power of file:// URLs. 997 998 * Interfaces/IWebPreferencesPrivate.idl: 999 * WebPreferenceKeysPrivate.h: 1000 * WebPreferences.cpp: 1001 (WebPreferences::initializeDefaultSettings): 1002 (WebPreferences::allowUniversalAccessFromFileUrls): 1003 (WebPreferences::setAllowUniversalAccessFromFileUrls): 1004 * WebPreferences.h: 1005 * WebView.cpp: 1006 (WebView::notifyPreferencesChanged): 1007 1008 2009-02-19 Alexey Proskuryakov <ap (a] webkit.org> 1009 1010 Reviewed by Darin Adler. 1011 1012 https://bugs.webkit.org/show_bug.cgi?id=24024 1013 REGRESSION (r39845): Assertion failure in -[WebHistoryItem dictionaryRepresentation] when 1014 archiving a submission to about:blank 1015 1016 I don't know how to make an automated test for this bug. 1017 1018 * WebHistory.cpp: (WebHistory::visitedURL): Account for the fact that HTTP method may be 1019 non-empty for non-HTTP requests. 1020 1021 2009-02-25 Andreia Gaita <shana (a] jitted.com> 1022 1023 Reviewed by Alp Toker. 1024 1025 Update Win def files with recent JavaScriptCore API additions. 1026 1027 * WebKit.vcproj/WebKit.def: 1028 * WebKit.vcproj/WebKit_Cairo.def: 1029 * WebKit.vcproj/WebKit_debug.def: 1030 1031 2009-02-24 Sam Weinig <sam (a] webkit.org> 1032 1033 Reviewed by Geoffrey Garen. 1034 1035 Related to <rdar://problem/6590295> 1036 Allow disabling javascript: urls. 1037 1038 * Interfaces/IWebViewPrivate.idl: 1039 * WebView.cpp: 1040 (WebView::setJavaScriptURLsAreAllowed): 1041 * WebView.h: 1042 1043 2009-02-24 Adam Roben <aroben (a] apple.com> 1044 1045 Windows build fix 1046 1047 * WebKit.vcproj/WebKit.def: 1048 * WebKit.vcproj/WebKit_debug.def: 1049 Export WTF::ThreadCondition::timedWait. 1050 1051 2009-02-12 Brady Eidson <beidson (a] apple.com> 1052 1053 Reviewed by Kevin Decker 1054 1055 <rdar://problem/6582180> - Wrong HTTP method applied to history item. 1056 1057 * WebCoreSupport/WebFrameLoaderClient.cpp: 1058 (WebFrameLoaderClient::updateGlobalHistory): Check the original request, not any 1059 redirected request. 1060 1061 2009-02-11 Brady Eidson <beidson (a] apple.com> 1062 1063 Fix my last checkin for more effect. 1064 1065 * WebHistoryItem.cpp: 1066 (WebHistoryItem::initFromDictionaryRepresentation): 1067 1068 2009-02-11 Adam Roben <aroben (a] apple.com> 1069 1070 Windows fix for Bug 22239: Implement missing animation & transition 1071 APIs on LayoutTestController for non-mac platforms 1072 1073 <https://bugs.webkit.org/show_bug.cgi?id=22239> 1074 1075 Reviewed by Simon Fraser. 1076 1077 * Interfaces/IWebFramePrivate.idl: Added pauseAnimation, 1078 pauseTransition, and numberOfActiveAnimations. 1079 1080 * WebFrame.cpp: 1081 (WebFrame::pauseAnimation): 1082 (WebFrame::pauseTransition): 1083 (WebFrame::numberOfActiveAnimation): 1084 Added. These all call through to AnimationController. 1085 1086 * WebFrame.h: Added pauseAnimation, pauseTransition, and 1087 numberOfActiveAnimations. 1088 1089 2009-02-11 Brady Eidson <beidson (a] apple.com> 1090 1091 Reviewed by Mark Rowe 1092 1093 <rdar://problem/6570573> Some visit counts in History.plist have insanely high values, can roll over to negative 1094 1095 Remove the item from the date caches before registering the visit. Otherwise it might not be successfully removed 1096 and when we add it back later it will exist in the list twice. This will cause the entry to be written out twice, 1097 which would lead to doubling (or more!) the visit count on next launch when these multiple items are merged. 1098 1099 * WebHistory.cpp: 1100 (WebHistory::loadHistoryGutsFromURL): 1101 (WebHistory::addItems): 1102 (WebHistory::addItem): Add a mode that allows the entry being added to be discarded if an entry for the URL already 1103 exists. Use that mode when reading the History.plist so only the most recent entry for a given URL will be used. 1104 (WebHistory::visitedURL): Swap the removeItemFromDateCaches and visitedWithTitle calls. 1105 * WebHistory.h: 1106 1107 * WebHistoryItem.cpp: 1108 (WebHistoryItem::initFromDictionaryRepresentation): Add the negative-visit-count-correction-logic as implemented 1109 for Mac in http://trac.webkit.org/changeset/40851. 1110 1111 2009-02-11 Dimitri Dupuis-latour <dupuislatour (a] apple.com> 1112 1113 Stub out WebInspectorClient::hiddenPanels. 1114 1115 Reviewed by Timothy Hatcher. 1116 1117 * WebCoreSupport/WebInspectorClient.cpp: 1118 (WebInspectorClient::hiddenPanels): 1119 * WebCoreSupport/WebInspectorClient.h: 1120 1121 2009-02-11 Adam Roben <aroben (a] apple.com> 1122 1123 Don't release the shared WebHistory instance on quit 1124 1125 This matches Mac, and prevents a race condition when the process exits 1126 that depends on the order in which global destructors are invoked. 1127 1128 Reviewed by Alexey Proskuryakov. 1129 1130 * WebHistory.cpp: 1131 (sharedHistoryStorage): Changed to use DEFINE_STATIC_LOCAL so the 1132 destructor is never called. 1133 1134 2009-02-10 Adam Roben <aroben (a] apple.com> 1135 1136 Fix recursive WebView destruction when running DumpRenderTree 1137 1138 DumpRenderTree would call DestroyWindow on a WebView's host window, 1139 which would send a WM_DESTROY message to the WebView's window. Inside 1140 the WebView's WndProc, we would hold a ref to the WebView, then call 1141 close() and revokeDragDrop(), which would release all remaining 1142 references to the WebView other than the ref we held in the WndProc. 1143 When the WndProc exited, the final ref to the WebView would be 1144 released, invoking WebView's destructor. At this point, 1145 IsWindow(m_viewWindow) would return true, since we were still in the 1146 process of handling WM_DESTROY, so we would call DestroyWindow on the 1147 WebView's window again, re-entering the WndProc and re-reffing the 1148 WebView, leading to recursive destruction. 1149 1150 Reviewed by Alexey Proskuryakov. 1151 1152 * WebView.cpp: 1153 (WebView::~WebView): Don't call DestroyWindow if our window is already 1154 being destroyed. 1155 (WebViewWndProc): Only hold an extra ref to the WebView when we're not 1156 being destroyed. 1157 1158 2009-02-06 Adam Roben <aroben (a] apple.com> 1159 1160 Build fix 1161 1162 Reviewed by Sam Weinig. 1163 1164 * WebCoreSupport/WebFrameLoaderClient.cpp: Added missing #include. 1165 (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks): Removed 1166 incorrect .get(), and changed to use the new overload of 1167 WebHistory::itemForURLString. 1168 1169 * WebHistory.cpp: 1170 (WebHistory::itemForURLString): Made this const. 1171 (WebHistory::itemForURLString): Added an overload that takes a 1172 WebCore::String and returns the IWebHistoryItem instead of using an 1173 out parameter. 1174 1175 * WebHistory.h: Added public overload of itemForURLString. 1176 1177 * WebView.cpp: 1178 (WebView::prepareCandidateWindow): 1179 (WebView::onIMERequestCharPosition): 1180 (WebView::onIMERequestReconvertString): 1181 Updated for toRange -> toNormalizedRange rename. 1182 1183 2009-02-06 Geoffrey Garen <ggaren (a] apple.com> 1184 1185 Reviewed by Sam Weinig. 1186 1187 Part III of <rdar://problem/6552272>. 1188 1189 Refactored to use the redirect data WebCore makes available, instead of 1190 tracking loading state in WebKit. 1191 1192 * WebCoreSupport/WebFrameLoaderClient.cpp: 1193 (WebFrameLoaderClient::updateGlobalHistory): 1194 (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks): 1195 * WebCoreSupport/WebFrameLoaderClient.h: 1196 * WebHistory.cpp: 1197 (WebHistory::visitedURL): 1198 * WebHistory.h: 1199 1200 2009-02-06 Dan Bernstein <mitz (a] apple.com> 1201 1202 Reviewed by Anders Carlsson. 1203 1204 - fix an assertion failure in Vector::at() beneath 1205 WebHistoryItem::dictionaryRepresentation. 1206 1207 * WebHistoryItem.cpp: 1208 (WebHistoryItem::dictionaryRepresentation): Give the numbers vector initial 1209 size. Also reduced the inline capacity of the vector used for weekly visit 1210 counts to 5, which is the expected maximum size. 1211 1212 2009-02-06 Brent Fulgham <bfulgham (a] webkit.org> 1213 1214 Build fix. 1215 1216 * WebKit.vcproj/WebKit.vcproj: Re-enable missing file in Release 1217 target of Cairo. 1218 1219 2009-02-06 Maciej Stachowiak <mjs (a] apple.com> 1220 1221 Rubber stamped by Dan Bernstein. 1222 1223 - fix obvious problem in previous commit (|| used instead of &&) 1224 1225 * WebHistoryItem.cpp: 1226 (WebHistoryItem::initFromDictionaryRepresentation): 1227 1228 2009-02-05 Maciej Stachowiak <mjs (a] apple.com> and Brady Eidson <beidson (a] apple.com> 1229 1230 Reviewed by Dan Bernstein and Geoff Garen.. 1231 1232 - WebKit code to track per-day and per-week visit counts in history 1233 1234 For now this data is only exposed via SPI for performance reasons. 1235 1236 * Interfaces/IWebHistoryItemPrivate.idl: Added new interface. 1237 * WebHistory.cpp: 1238 (WebHistory::visitedURL): Use new recordInitialVisit method. 1239 * WebHistoryItem.cpp: 1240 (WebHistoryItem::initFromDictionaryRepresentation): Add parsing support 1241 for new data. 1242 (WebHistoryItem::dictionaryRepresentation): Add saving support for 1243 new data. 1244 (WebHistoryItem::getDailyVisitCounts): SPI accessor. 1245 (WebHistoryItem::getWeeklyVisitCounts): SPI accessor. 1246 (WebHistoryItem::recordInitialVisit): Tell WebCore to record an initial visit. 1247 * WebHistoryItem.h: 1248 1249 2009-02-05 Brent Fulgham <bfulgham (a] webkit.org> 1250 1251 Reviewed by Sam Weinig <sam (a] webkit.org> 1252 1253 Build fix. Update file for recently removed EventTargetNodeCast. 1254 * DOMCoreClasses.cpp: 1255 (DOMNode::dispatchEvent): 1256 1257 2009-02-05 Aaron Boodman <aa (a] chromium.org> 1258 1259 Reviewed by Dave Hyatt. 1260 1261 https://bugs.webkit.org/show_bug.cgi?id=23708 1262 Adds documentElementAvailable() callback to FrameLoaderClient. 1263 1264 * WebFrame.cpp: 1265 (WebFrame::documentElementAvailable): 1266 Stub out documentElementAvailable() 1267 * WebFrame.h: 1268 Ditto. 1269 1270 2009-02-04 Geoffrey Garen <ggaren (a] apple.com> 1271 1272 Build fix. 1273 1274 * WebHistory.cpp: 1275 (WebHistory::visitedURL): 1276 1277 2009-02-04 Geoffrey Garen <ggaren (a] apple.com> 1278 1279 Reviewed by Mark Rowe. 1280 1281 Part I of <rdar://problem/6552272>. 1282 1283 Clear the redirectURLs entry when first visiting a site, so sites that 1284 only redirect you the first time you visit them can later learn that 1285 they don't redirect. 1286 1287 * WebHistory.cpp: 1288 (WebHistory::visitedURL): 1289 1290 2009-02-03 Geoffrey Garen <ggaren (a] apple.com> 1291 1292 Build fix. 1293 1294 * WebHistory.cpp: 1295 (WebHistory::visitedURL): 1296 1297 2009-02-02 Geoffrey Garen <ggaren (a] apple.com> 1298 1299 Build fix. 1300 1301 * WebHistory.cpp: 1302 (WebHistory::visitedURL): 1303 1304 2009-02-02 Hiroaki Nakamura <hnakamur (a] gmail.com> 1305 1306 Reviewed by Adam Roben. 1307 1308 Fixes https://bugs.webkit.org/show_bug.cgi?id=15813 1309 Modify pre-build step to properly handle the errorlevel 1310 shell command. 1311 1312 * WebKit.vcproj/WebKit.vcproj: Change errorlevel handling 1313 for all targets so prefast is only enabled in builds 1314 where /analyze is available. 1315 1316 2009-02-02 Geoffrey Garen <ggaren (a] apple.com> 1317 1318 Reviewed by Sam Weinig. 1319 1320 Track redirects in global history. 1321 1322 * Interfaces/IWebFramePrivate.idl: Updated for WebCore rename. 1323 1324 * WebCoreSupport/WebFrameLoaderClient.cpp: 1325 (WebFrameLoaderClient::updateGlobalHistory): 1326 (WebFrameLoaderClient::updateGlobalHistoryForRedirectWithoutHistoryItem): 1327 Store redirect information in global history. 1328 1329 (WebFrameLoaderClient::loadURLIntoChild): Updated for extra parameter. 1330 1331 * WebCoreSupport/WebFrameLoaderClient.h: See above. 1332 1333 * WebFrame.cpp: 1334 (WebFrame::loadRequest): 1335 (WebFrame::loadData): Updated for extra parameter. 1336 1337 * WebHistory.cpp: 1338 (WebHistory::visitedURL): 1339 (WebHistory::visitedURLForRedirectWithoutHistoryItem): Store redirect 1340 information in global history. 1341 1342 * WebHistory.h: See above. 1343 1344 2009-02-02 Brady Eidson <beidson (a] apple.com> 1345 1346 Reviewed by Dan Bernstein 1347 1348 Transition Windows WebHistory to using the same "update already existing History Items" technique that Mac does. 1349 1350 * Interfaces/IWebHistoryItemPrivate.idl: 1351 * WebCoreSupport/WebFrameLoaderClient.cpp: 1352 (WebFrameLoaderClient::updateGlobalHistory): 1353 1354 * WebHistory.cpp: 1355 (WebHistory::visitedURL): 1356 * WebHistory.h: 1357 1358 * WebHistoryItem.cpp: 1359 (WebHistoryItem::visitedWithTitle): 1360 * WebHistoryItem.h: 1361 1362 2009-02-02 Anders Carlsson <andersca (a] apple.com> 1363 1364 Fix build. 1365 1366 * WebCoreSupport/WebFrameLoaderClient.cpp: 1367 (WebFrameLoaderClient::createPlugin): 1368 * WebCoreSupport/WebFrameLoaderClient.h: 1369 1370 2009-02-02 Anders Carlsson <andersca (a] apple.com> 1371 1372 Reviewed by Dan Bernstein. 1373 1374 Update for changes to WebCore. 1375 1376 * WebFrame.cpp: 1377 (WebFrame::createJavaAppletWidget): 1378 * WebFrame.h: 1379 1380 2009-02-02 Holger Hans Peter Freyther <zecke (a] selfish.org> 1381 1382 Reviewed by Darin Adler. 1383 1384 Move Frame::forceLayout, Frame::adjustPageHeight and Frame::forceLayoutWithPageWidthRange to FrameView 1385 1386 https://bugs.webkit.org/show_bug.cgi?id=23428 1387 1388 FrameView::forceLayout could be killed but the comment might 1389 contain a value over the the plain FrameView::layout... 1390 1391 Adjust the WebCore/WebKit consumers of these methods. 1392 1393 * WebCoreSupport/WebFrameLoaderClient.cpp: 1394 (WebFrameLoaderClient::forceLayout): 1395 1396 2009-01-31 Matt Lilek <webkit (a] mattlilek.com> 1397 1398 Not reviewed, build fixes. 1399 1400 * WebCoreSupport/WebContextMenuClient.cpp: 1401 (WebContextMenuClient::searchWithGoogle): 1402 * WebFrame.cpp: 1403 (WebFrame::setInPrintingMode): 1404 (WebFrame::isFrameSet): 1405 * WebView.cpp: 1406 (WebView::notifyPreferencesChanged): 1407 1408 2009-01-30 Adam Barth <abarth (a] webkit.org> 1409 1410 Reviewed by Sam Weinig. 1411 1412 Add a pref to disable web security. 1413 1414 * Interfaces/IWebPreferencesPrivate.idl: 1415 * WebPreferenceKeysPrivate.h: 1416 * WebPreferences.cpp: 1417 (WebPreferences::initializeDefaultSettings): 1418 (WebPreferences::isWebSecurityEnabled): 1419 (WebPreferences::setWebSecurityEnabled): 1420 * WebPreferences.h: 1421 * WebView.cpp: 1422 (WebView::notifyPreferencesChanged): 1423 1424 2009-01-30 Geoffrey Garen <ggaren (a] apple.com> 1425 1426 Build fix. 1427 1428 * Interfaces/IWebFramePrivate.idl: 1429 * WebCoreSupport/WebFrameLoaderClient.cpp: 1430 (WebFrameLoaderClient::loadURLIntoChild): 1431 1432 2009-01-30 Holger Hans Peter Freyther <zecke (a] selfish.org> 1433 1434 Reviewed by Simon Hausmann. 1435 1436 Kill FrameLoaderClient.cpp, move the code over to Frame::createView 1437 1438 FrameLoaderClient is supposed to be an interface, move the 1439 to be shared code to Frame which is a controller and is 1440 allowed to create a FrameView. 1441 1442 * WebCoreSupport/WebFrameLoaderClient.cpp: 1443 (WebFrameLoaderClient::transitionToCommittedForNewPage): 1444 1445 2009-01-30 Brady Eidson <beidson (a] apple.com> 1446 1447 Reviewed by Sam Weinig 1448 1449 Remove FrameLoaderClient code that is now handled by FrameLoader itself 1450 1451 * WebFrame.cpp: 1452 (WebFrame::frameLoadCompleted): 1453 1454 2009-01-29 Sam Weinig <sam (a] webkit.org> 1455 1456 Fix Windows build 1457 1458 * WebHistoryItem.cpp: 1459 (WebHistoryItem::initFromDictionaryRepresentation): 1460 1461 2009-01-29 Sam Weinig <sam (a] webkit.org> 1462 1463 Reviewed by Anders Carlsson. 1464 1465 Second step in tracking the urls a HistoryItem was redirected through 1466 Add SPI to access the array of redirect urls associated with a HistoryItem. 1467 1468 * Interfaces/IWebHistoryItemPrivate.idl: 1469 * WebHistoryItem.cpp: 1470 (WebHistoryItem::dictionaryRepresentation): 1471 (WebHistoryItem::redirectURLs): 1472 * WebHistoryItem.h: 1473 1474 2009-01-29 Sam Weinig <sam (a] webkit.org> 1475 1476 Reviewed by Mark Rowe. 1477 1478 First step in tracking the urls a HistoryItem was redirected through. 1479 1480 * WebHistoryItem.cpp: 1481 (WebHistoryItem::initFromDictionaryRepresentation): 1482 (WebHistoryItem::dictionaryRepresentation): 1483 1484 2009-01-29 Adam Roben <aroben (a] apple.com> 1485 1486 Fix Bug 23623: Windowed Flash instances aren't captured when a WebView 1487 receives a WM_PRINTCLIENT message 1488 1489 <https://bugs.webkit.org/show_bug.cgi?id=23623> 1490 <rdar://problem/6513921> 1491 <rdar://problem/6536874> 1492 1493 Reviewed by Darin Adler. 1494 1495 * WebFrame.cpp: 1496 (WebFrame::paintDocumentRectToContext): 1497 (WebFrame::spoolPages): 1498 Call GraphicsContext::setShouldIncludeChildWindows so that child 1499 windows will be painted into the GraphicsContext rather than painted 1500 directly to the screen. 1501 1502 * WebView.cpp: 1503 (WebView::updateBackingStore): Added a windowsToPaint parameter, which 1504 we pass along to paintIntoBackingStore. 1505 1506 (WebView::paint): Tell updateBackingStore to paint child windows if 1507 we're not painting to the screen. 1508 1509 (WebView::paintIntoBackingStore): Added a windowsToPaint paramter, 1510 which we use to tell our GraphicsContext whether or not to include 1511 child windows. 1512 1513 * WebView.h: Added windowsToPaint parameters to paintIntoBackingStore 1514 and updateBackingStore (which I also made private). 1515 1516 2009-01-29 Adam Roben <aroben (a] apple.com> 1517 1518 Build fix after r40353 1519 1520 * WebCoreSupport/WebFrameLoaderClient.cpp: 1521 (WebFrameLoaderClient::loadURLIntoChild): Removed the check for 1522 FrameLoadTypeReloadAllowingStaleData. 1523 1524 2009-01-28 Geoffrey Garen <ggaren (a] apple.com> 1525 1526 Reviewed by Sam Weinig. 1527 1528 Updated for WebCore rename. 1529 1530 * WebView.cpp: 1531 (WebView::setCustomTextEncodingName): 1532 1533 2009-01-27 Brady Eidson <beidson (a] apple.com> 1534 1535 Reviewed by Dan Bernstein 1536 1537 Rework FrameLoaderClient to work on a CachedFrame basis instead of CachedPage 1538 1539 * WebCoreSupport/WebFrameLoaderClient.cpp: 1540 (WebFrameLoaderClient::savePlatformDataToCachedFrame): 1541 (WebFrameLoaderClient::transitionToCommittedFromCachedFrame): 1542 * WebCoreSupport/WebFrameLoaderClient.h: 1543 1544 * WebFrame.cpp: 1545 * WebFrame.h: 1546 1547 2009-01-26 Adam Roben <aroben (a] apple.com> 1548 1549 Fix an assertion failure when Safari loads an error page 1550 1551 Reviewed by Alexey Proskuryakov. 1552 1553 * WebFrame.cpp: 1554 (WebFrame::loadData): Use the two-argument version of KURL and 1555 MarshallingHelpers::BSTRToKURL, for reasons mentioned in r40248. 1556 1557 2009-01-26 Adam Roben <aroben (a] apple.com> 1558 1559 Fix an assertion on launch in KURL::KURL 1560 1561 All URL strings passed in to the WebKit API need to be passed to 1562 MarshallingHelpers::BSTRToKURL so that they may be properly parsed. 1563 1564 Reviewed by Alexey Proskuryakov. 1565 1566 * MarshallingHelpers.cpp: 1567 (MarshallingHelpers::BSTRToKURL): Changed to use the two-argument 1568 constructor for KURL so that the strings will be parsed rather than 1569 assumed to be in the correct encoding/form. 1570 1571 * WebResource.cpp: 1572 (WebResource::initWithData): 1573 * WebURLResponse.cpp: 1574 (WebURLResponse::initWithURL): 1575 * WebView.cpp: 1576 (WebView::userAgentForURL): 1577 (WebView::copyURL): 1578 Changed to use MarshallingHelpers::BSTRToKURL instead of trying to do 1579 the work manually. 1580 1581 2009-01-25 Darin Adler <darin (a] apple.com> 1582 1583 Try to fix Windows build. 1584 1585 * WebView.cpp: Added FloatQuad.h. 1586 1587 2009-01-23 Brent Fulgham <bfulgham (a] webkit.org> 1588 1589 Reviewed by Darin Adler 1590 1591 https://bugs.webkit.org/show_bug.cgi?id=23492 1592 Exclude calls to WebKitSystemInterface functions when not 1593 using CoreGraphics. 1594 1595 * WebPreferences.cpp: 1596 (WebPreferences::setFontSmoothing): 1597 (WebPreferences::setFontSmoothingContrast): 1598 * WebTextRenderer.cpp: 1599 (WebTextRenderer::registerPrivateFont): 1600 1601 2009-01-23 Brady Eidson <beidson (a] apple.com> 1602 1603 Rubberstamped by Darin Adler 1604 1605 Rename CachedPagePlatformData to CachedFramePlatformData to more accurately reflect its true role. 1606 1607 * WebCachedFramePlatformData.h: Copied from WebKit/win/WebCachedPagePlatformData.h. 1608 (WebCachedFramePlatformData::WebCachedFramePlatformData): 1609 * WebCachedPagePlatformData.h: Removed. 1610 1611 * WebCoreSupport/WebFrameLoaderClient.cpp: 1612 (WebFrameLoaderClient::savePlatformDataToCachedPage): 1613 1614 * WebKit.vcproj/WebKit.vcproj: 1615 1616 2009-01-22 Eric Roman <eroman (a] chromium.org> 1617 1618 Reviewed by Eric Seidel. 1619 1620 https://bugs.webkit.org/show_bug.cgi?id=20806 1621 Deprecate RSSFeedReferrer() and setRSSFeedReferrer(). 1622 1623 * WebHistoryItem.cpp: 1624 (WebHistoryItem::RSSFeedReferrer): 1625 (WebHistoryItem::setRSSFeedReferrer): 1626 1627 2009-01-19 Sam Weinig <sam (a] webkit.org> 1628 1629 Rubber-stamped by Gavin Barraclough. 1630 1631 Remove temporary operator-> from JSValuePtr. 1632 1633 * WebScriptCallFrame.cpp: 1634 (WebScriptCallFrame::jsValueToString): 1635 * WebView.cpp: 1636 (WebView::stringByEvaluatingJavaScriptFromString): 1637 1638 2009-01-19 Adam Roben <aroben (a] apple.com> 1639 1640 Windows build fix 1641 1642 * DOMCoreClasses.cpp: Replaced "using namespace WebCore" with 1643 individual using directives for each type we need from that namespace, 1644 to avoid conflicts between DOMObject and WebCore::DOMObject. 1645 (DOMElement::font): Added a now-needed WebCore::. 1646 1647 2009-01-17 Steve Falkenburg <sfalken (a] apple.com> 1648 1649 Build fix. 1650 1651 * WebCoreSupport/WebDragClient.cpp: 1652 (WebDragClient::createDragImageForLink): 1653 1654 2009-01-17 David Hyatt <hyatt (a] apple.com> 1655 1656 Eliminate dependencies on backslashAsCurrencySymbol from WebKit. 1657 1658 Reviewed by Oliver Hunt 1659 1660 * WebFrame.cpp: 1661 (WebFrame::selectedString): 1662 1663 2009-01-16 Steve Falkenburg <sfalken (a] apple.com> 1664 1665 <rdar://problem/6502511> Safari crashes if it's running while the desktop theme is changed. 1666 1667 This was caused by mismatched ENABLE definitions across WebCore and WebKit. 1668 1669 Several virtual methods were added to RenderTheme.h, conditionalized by ENABLE(VIDEO). 1670 In addition to adding ENABLE_VIDEO to WebKit, this change also adds ENABLE_DATABASE and ENABLE_ICONDATABASE 1671 to Windows WebCore/WebKit, and adds ENABLE_WORKERS, and several ENABLE_SVG_ flags to WebKit on Windows. 1672 Our Windows ENABLE flags now match Mac. 1673 1674 Reviewed by Adele Peterson. 1675 1676 * WebKit.vcproj/WebKit.vcproj: 1677 1678 2009-01-15 Adele Peterson <adele (a] apple.com> 1679 1680 Reviewed by Darin Adler. 1681 1682 Fix for https://bugs.webkit.org/show_bug.cgi?id=21799 1683 <rdar://problem/6310684> Crash in dumpFramesAsText() when running http/tests/security/cross-origin-xsl-BLOCKED.html 1684 1685 Return S_OK or E_FAIL based on the result from CreateInstance. 1686 This was causing DumpRenderTree to not realize it had just gotten a null documentElement. 1687 1688 * DOMCoreClasses.cpp: Made all functions that return the result of CreateInstance consistent. 1689 (DOMNode::parentNode): 1690 (DOMNode::ownerDocument): 1691 (DOMNodeList::item): 1692 (DOMDocument::documentElement): 1693 (DOMDocument::createElement): 1694 (DOMDocument::getElementsByTagName): 1695 (DOMDocument::getElementsByTagNameNS): 1696 (DOMDocument::getElementById): 1697 (DOMDocument::getComputedStyle): 1698 (DOMDocument::createEvent): 1699 (DOMElement::style): 1700 1701 2009-01-14 Adele Peterson <adele (a] apple.com> 1702 1703 Reviewed by Darin Adler. 1704 1705 Fix for https://bugs.webkit.org/show_bug.cgi?id=23335 1706 <rdar://problem/6247650> Update <input type="search"> for RenderThemeWin 1707 1708 Added artwork. 1709 1710 * WebKit.vcproj/WebKit.rc: 1711 * WebKit.vcproj/WebKit.vcproj: 1712 * WebKit.vcproj/resource.h: 1713 * WebKit.vcproj/searchCancel.png: Added. 1714 * WebKit.vcproj/searchCancelPressed.png: Added. 1715 * WebKit.vcproj/searchMagnifier.png: Added. 1716 * WebKit.vcproj/searchMagnifierResults.png: Added. 1717 * WebKitDLL.cpp:(loadResourceIntoBuffer): 1718 1719 2009-01-14 Dan Bernstein <mitz (a] apple.com> 1720 1721 Reviewed by John Sullivan. 1722 1723 - update copyright 1724 1725 * WebKit.resources/Info.plist: 1726 * WebKit.vcproj/WebKit.rc: 1727 1728 2009-01-13 Steve Falkenburg <sfalken (a] apple.com> 1729 1730 Build fix. 1731 1732 * WebScriptCallFrame.cpp: 1733 (WebScriptCallFrame::jsValueToString): 1734 1735 2009-01-12 Brady Eidson <beidson (a] apple.com> 1736 1737 Reviewed by Dan Bernstein 1738 1739 <rdar://problem/6490446> - Crash when going back to a cached page 1740 1741 * WebCoreSupport/WebFrameLoaderClient.cpp: 1742 (WebFrameLoaderClient::savePlatformDataToCachedPage): ENABLE(CFNETWORK) needed to be USE(CFNETWORK) 1743 1744 2009-01-12 Brady Eidson <beidson (a] apple.com> 1745 1746 Reviewed by Darin Adler 1747 1748 <rdar://problem/6468274> - Track Non-get requests in global history 1749 1750 * WebCoreSupport/WebFrameLoaderClient.cpp: 1751 (WebFrameLoaderClient::updateGlobalHistory): 1752 1753 * WebHistory.cpp: 1754 (WebHistory::addItem): 1755 * WebHistory.h: 1756 1757 * Interfaces/IWebHistoryItemPrivate.idl: 1758 * WebHistoryItem.cpp: 1759 (WebHistoryItem::initFromDictionaryRepresentation): 1760 (WebHistoryItem::dictionaryRepresentation): 1761 (WebHistoryItem::lastVisitWasHTTPNonGet): 1762 (WebHistoryItem::setLastVisitWasHTTPNonGet): 1763 * WebHistoryItem.h: 1764 1765 2009-01-12 Julien Chaffraix <jchaffraix (a] pleyo.com> 1766 1767 Reviewed by Darin Adler. 1768 1769 Bug 22861: Turn the FontCache into a singleton 1770 https://bugs.webkit.org/show_bug.cgi?id=22861 1771 1772 * WebCoreStatistics.cpp: 1773 (WebCoreStatistics::cachedFontDataCount): 1774 (WebCoreStatistics::cachedFontDataInactiveCount): 1775 (WebCoreStatistics::purgeInactiveFontData): 1776 Redirected all the static calls to the global FontCache 1777 instance. 1778 1779 2009-01-11 Dmitry Titov <dimich (a] chromium.org> 1780 1781 Reviewed by Darin Adler. 1782 1783 https://bugs.webkit.org/show_bug.cgi?id=23207 1784 Moved currentTime() to from WebCore to WTF. 1785 1786 * WebDownload.cpp: a different header file included. 1787 * WebDropSource.cpp: a different header file included. 1788 1789 2009-01-09 Darin Adler <darin (a] apple.com> 1790 1791 Reviewed by Jon Honeycutt. 1792 1793 Bug 22913: REGRESSION: Space bar doesn't scroll on windows 1794 https://bugs.webkit.org/show_bug.cgi?id=22913 1795 rdar://problem/6479834 1796 1797 * WebView.cpp: 1798 (WebView::keyPress): Removed code to handle space bar here; put it in 1799 WebCore instead. 1800 1801 2009-01-09 Brent Fulgham <bfulgham (a] gmail.com> 1802 1803 Reviewed by Adam Roben. 1804 1805 Fixes: http://bugs.webkit.org/show_bug.cgi?id=23092 1806 Separate CFNetwork-specific code in WebKit.dll into separate 1807 implementation files. Create cURL stub files to be populated 1808 with new implementation in a future bug report. 1809 1810 * WebCookieManager.cpp: Move CFNetwork-specific routines to 1811 the new WebCookieManagerCFNet.cpp file. 1812 (WebCookieManager::Release): 1813 * WebCookieManagerCFNet.cpp: Copied from WebCookieManager.cpp. 1814 (WebCookieManager::cookieStorage): 1815 * WebCookieManagerCurl.cpp: Added. 1816 (WebCookieManager::cookieStorage): 1817 (WebCookieManager::setCookieStorage): 1818 * WebCoreSupport/WebFrameLoaderClient.cpp: Conditionalize two 1819 methods in this file. 1820 (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge): 1821 (WebFrameLoaderClient::savePlatformDataToCachedPage): 1822 * WebDownload.cpp: Move CFNetwork-specific logic to the new 1823 WebDownloadCFNet.cpp 1824 (WebDownload::bundleExtension): 1825 (WebDownload::bundleMagicNumber): 1826 (WebDownload::bundlePathForTargetPath): 1827 (WebDownload::extractResumeDataFromBundle): Made static class method 1828 so it could be used in WebDownload.cpp and WebDownloadCFNet.cpp 1829 (WebDownload::appendResumeDataToBundle): Made static class method 1830 so it could be used in WebDownload.cpp and WebDownloadCFNet.cpp 1831 * WebDownload.h: 1832 * WebDownloadCFNet.cpp: Copied from WebDownload.cpp. 1833 (WebDownload::initToResumeWithBundle): 1834 (WebDownload::setDestination): 1835 (didFailCallback): 1836 * WebDownloadCurl.cpp: Added. 1837 (WebDownload::init): 1838 (WebDownload::initWithRequest): 1839 (WebDownload::initToResumeWithBundle): 1840 (WebDownload::start): 1841 (WebDownload::cancel): 1842 (WebDownload::cancelForResume): 1843 (WebDownload::deletesFileUponFailure): 1844 (WebDownload::setDeletesFileUponFailure): 1845 (WebDownload::setDestination): 1846 (WebDownload::cancelAuthenticationChallenge): 1847 (WebDownload::continueWithoutCredentialForAuthenticationChallenge): 1848 (WebDownload::useCredential): 1849 * WebKit.vcproj/WebKit.vcproj: Modify Apple targets to exclude the 1850 new cURL files. Modify Cairo targets to exclude CFNet files. 1851 * WebMutableURLRequest.cpp: Conditionalize the single method 1852 with a CFNetwork-speicic call. 1853 (WebMutableURLRequest::mutableCopy): 1854 * WebURLAuthenticationChallenge.cpp: Conditionalize one line that 1855 causes build problems for cURL. This will be removed later. 1856 (WebURLAuthenticationChallenge::initWithProtectionSpace): 1857 * WebURLAuthenticationChallengeSender.cpp: 1858 * WebURLAuthenticationChallengeSenderCFNet.cpp: Copied from WebURLAuthenticationChallengeSender.cpp. 1859 (WebURLAuthenticationChallengeSender::useCredential): 1860 * WebURLAuthenticationChallengeSenderCurl.cpp: Added. 1861 (WebURLAuthenticationChallengeSender::cancelAuthenticationChallenge): 1862 (WebURLAuthenticationChallengeSender::continueWithoutCredentialForAuthenticationChallenge): 1863 (WebURLAuthenticationChallengeSender::useCredential): 1864 * WebURLResponse.cpp: Exclude WebKitSystemInterface when compiling 1865 for the cURL target. 1866 1867 2009-01-09 Alexey Proskuryakov <ap (a] webkit.org> 1868 1869 Reviewed by Darin Adler. 1870 1871 Fix many appcache tests on Windows by making synchronous XMLHttpRequest throw on cache miss. 1872 1873 * WebFrame.cpp: (WebFrame::cannotShowURLError): Implement, so that synchronous XHR can 1874 raise exceptions, as needed for AppCache tests. I do not know why this error was not 1875 implemented. 1876 1877 2009-01-09 Darin Adler <darin (a] apple.com> 1878 1879 Reviewed and landed by Adele Peterson. 1880 1881 Bug 23160: add setMemoryCacheClientCallsEnabled SPI so Safari can be faster with activity window closed 1882 https://bugs.webkit.org/show_bug.cgi?id=23160 1883 1884 * Interfaces/IWebViewPrivate.idl: Added setMemoryCacheDelegateCallsEnabled. 1885 * WebView.cpp: 1886 (WebView::setMemoryCacheDelegateCallsEnabled): Ditto. 1887 * WebView.h: Ditto. 1888 1889 2009-01-08 Dan Bernstein <mitz (a] apple.com> 1890 1891 Reviewed by Adam Roben. 1892 1893 - WebPreferences changes to support Core Graphics native glyph drawing 1894 1895 * Interfaces/IWebPreferencesPrivate.idl: Added font smoothing contrast 1896 getter and setter. 1897 * WebPreferenceKeysPrivate.h: Added 1898 WebKitFontSmoothingContrastPreferenceKey. 1899 * WebPreferences.cpp: 1900 (WebPreferences::initializeDefaultSettings): Initialized 1901 WebKitFontSmoothingContrastPreferenceKey to 2. 1902 (WebPreferences::setFloatValue): Added. 1903 (WebPreferences::setFontSmoothing): Changed to map 1904 FontSmoothingTypeWindows to FontSmoothingTypeMedium. 1905 (WebPreferences::fontSmoothingContrast): Added. 1906 (WebPreferences::setFontSmoothingContrast): Added. Calls 1907 wkSetFontSmoothingContrast(). 1908 * WebPreferences.h: 1909 1910 2009-01-08 Steve Falkenburg <sfalken (a] apple.com> 1911 1912 <rdar://problem/6474244> REGRESSION(39561-39603): Heap corruption when saving passwords? 1913 1914 Reviewed by Adam Roben. 1915 1916 * WebView.cpp: 1917 (WebViewWndProc): Hold a ref to the WebView inside the WNDPROC, since it could go away in an event handler. 1918 1919 2009-01-07 Jon Honeycutt <jhoneycutt (a] apple.com> 1920 1921 Fix a crash with querying a WebView for its global history item when 1922 its associated Page has no global history item. 1923 1924 Reviewed by Dan Bernstein. 1925 1926 * WebView.cpp: 1927 (WebView::globalHistoryItem): If the Page has no global history item, 1928 report 0. 1929 1930 2009-01-06 Adam Roben <aroben (a] apple.com> 1931 1932 Fix Bug 22262: Clicking close ("X") button in docked Web Inspector 1933 clears Web Inspector but doesn't close it 1934 1935 <https://bugs.webkit.org/show_bug.cgi?id=22262> 1936 <rdar://problem/6371873> 1937 1938 Reviewed by Darin Adler. 1939 1940 * WebCoreSupport/WebInspectorClient.cpp: 1941 (WebInspectorClient::WebInspectorClient): Initialize new member. 1942 (WebInspectorClient::showWindow): Moved code from here to 1943 showWindowWithoutNotifications. 1944 (WebInspectorClient::closeWindow): Moved code from here to 1945 closeWindowWithoutNotifications. 1946 1947 (WebInspectorClient::attachWindow): 1948 (WebInspectorClient::detachWindow): 1949 Record whether or not we should be attached, then close and reopen the 1950 window without notifying the InspectorController. Code that was in 1951 these functions moved to showWindowWithoutNotifications and 1952 closeWindowWithoutNotifications, respectively. 1953 1954 (WebInspectorClient::closeWindowWithoutNotifications): Added. Code 1955 came from closeWindow and detachWindow. 1956 (WebInspectorClient::showWindowWithoutNotifications): Added. Code came 1957 from showWindow and attachWindow. 1958 1959 * WebCoreSupport/WebInspectorClient.h: Added 1960 {close,show}WindowWithoutNotifications and m_shouldAttachWhenShown. 1961 1962 2009-01-06 Anders Carlsson <andersca (a] apple.com> 1963 1964 Reviewed by Sam Weinig. 1965 1966 Add a way for application to provide custom, full frame, views for certain MIME types. 1967 1968 * Interfaces/IWebEmbeddedView.idl: 1969 Add loading related methods. 1970 1971 * Interfaces/IWebViewPrivate.idl: 1972 Add new registerEmbeddedViewMIMEType method. 1973 1974 * WebCoreSupport/EmbeddedWidget.cpp: 1975 (EmbeddedWidget::didReceiveResponse): 1976 (EmbeddedWidget::didReceiveData): 1977 (EmbeddedWidget::didFinishLoading): 1978 (EmbeddedWidget::didFail): 1979 Implement these and call the IEmbeddedView methods. 1980 1981 * WebCoreSupport/EmbeddedWidget.h: 1982 Inherit from PluginManualLoader. 1983 1984 * WebCoreSupport/WebFrameLoaderClient.cpp: 1985 (WebFrameLoaderClient::redirectDataToPlugin): 1986 Handle the case where the widget is an EnbeddedWidget. 1987 1988 (WebFrameLoaderClient::shouldUsePluginDocument): 1989 Have this call WebView::shouldUseEmbeddedView. 1990 1991 * WebView.cpp: 1992 (WebView::canShowMIMEType): 1993 Have this call WebView::shouldUseEmbeddedView. 1994 1995 (WebView::registerEmbeddedViewMIMEType): 1996 Add the MIME type to the set. 1997 1998 (WebView::shouldUseEmbeddedView): 1999 Given a MIME type, returns whether an embedded view should be used or not. 2000 2001 2009-01-06 David Kilzer <ddkilzer (a] apple.com> 2002 2003 BUILD FIX (r39641): Try to fix WebIconDatabase build errors #4 2004 2005 * WebIconDatabase.cpp: 2006 (WebIconDatabase::isEnabled): Added 'WebIconDatabase::' to method 2007 signature. (Another copy-paste error.) 2008 (WebIconDatabase::setEnabled): Ditto. 2009 * WebIconDatabase.h: 2010 (WebIconDatabase::startUpIconDatabase): Make private again. 2011 (WebIconDatabase::shutDownIconDatabase): Ditto. 2012 2013 2009-01-06 David Kilzer <ddkilzer (a] apple.com> 2014 2015 BUILD FIX (r39641): Try to fix build errors #3 2016 2017 Try to fix the following (more specific) build errors: 2018 2019 WebIconDatabase.cpp 2020 ..\WebIconDatabase.cpp(255) : error C2248: 'WebIconDatabase::shutDownIconDatabase' : cannot access private member declared in class 'WebIconDatabase' 2021 ...\webkit\win\WebIconDatabase.h(61) : see declaration of 'WebIconDatabase::shutDownIconDatabase' 2022 ...\webkit\win\WebIconDatabase.h(51) : see declaration of 'WebIconDatabase' 2023 ..\WebIconDatabase.cpp(255) : error C2352: 'WebIconDatabase::shutDownIconDatabase' : illegal call of non-static member function 2024 ...\webkit\win\WebIconDatabase.h(61) : see declaration of 'WebIconDatabase::shutDownIconDatabase' 2025 ..\WebIconDatabase.cpp(258) : error C2248: 'WebIconDatabase::startUpIconDatabase' : cannot access private member declared in class 'WebIconDatabase' 2026 ...\webkit\win\WebIconDatabase.h(60) : see declaration of 'WebIconDatabase::startUpIconDatabase' 2027 ...\webkit\win\WebIconDatabase.h(51) : see declaration of 'WebIconDatabase' 2028 ..\WebIconDatabase.cpp(258) : error C2352: 'WebIconDatabase::startUpIconDatabase' : illegal call of non-static member function 2029 ...\webkit\win\WebIconDatabase.h(60) : see declaration of 'WebIconDatabase::startUpIconDatabase' 2030 2031 * WebIconDatabase.cpp: 2032 (setEnabled): Get instance of shared WebIconDatabase, then call 2033 startUp/shutDown methods on it. 2034 * WebIconDatabase.h: 2035 (WebIconDatabase::startUpIconDatabase): Make protected again. 2036 (WebIconDatabase::shutDownIconDatabase): Ditto. 2037 2038 2009-01-06 David Kilzer <ddkilzer (a] apple.com> 2039 2040 BUILD FIX (r39641): Try to fix build errors again 2041 2042 Try to fix the following build errors: 2043 2044 WebIconDatabase.cpp 2045 ..\WebIconDatabase.cpp(255) : error C3861: 'shutDownIconDatabase': identifier not found 2046 ..\WebIconDatabase.cpp(258) : error C3861: 'startUpIconDatabase': identifier not found 2047 2048 * WebIconDatabase.cpp: 2049 (setEnabled): Add class prefix to startUpIconDatabase() and 2050 shutDownIconDatabase(). 2051 * WebIconDatabase.h: 2052 (WebIconDatabase::startUpIconDatabase): Make private again. 2053 (WebIconDatabase::shutDownIconDatabase): Ditto. 2054 2055 2009-01-06 David Kilzer <ddkilzer (a] apple.com> 2056 2057 BUILD FIX (r39641): Try to fix build error 2058 2059 Try to fix the following build errors: 2060 2061 WebIconDatabase.cpp 2062 ..\WebIconDatabase.cpp(255) : error C3861: 'shutDownIconDatabase': identifier not found 2063 ..\WebIconDatabase.cpp(258) : error C3861: 'startUpIconDatabase': identifier not found 2064 2065 * WebIconDatabase.h: 2066 (WebIconDatabase::startUpIconDatabase): Make protected. 2067 (WebIconDatabase::shutDownIconDatabase): Ditto. 2068 2069 2009-01-06 David Kilzer <ddkilzer (a] apple.com> 2070 2071 BUILD FIX (r39641): Fix more silly errors 2072 2073 Fixes the following compilation errors: 2074 2075 WebIconDatabase.cpp 2076 ..\WebIconDatabase.cpp(85) : error C2065: 'standardPrefs' : undeclared identifier 2077 ..\WebIconDatabase.cpp(85) : error C2227: left of '->iconDatabaseLocation' must point to class/struct/union/generic type 2078 type is ''unknown-type'' 2079 ..\WebIconDatabase.cpp(241) : error C2575: 'isEnabled' : only member functions and bases can be virtual 2080 ..\WebIconDatabase.cpp(248) : error C2575: 'setEnabled' : only member functions and bases can be virtual 2081 ..\WebIconDatabase.cpp(253) : error C3861: 'shutDownIconDatabase': identifier not found 2082 ..\WebIconDatabase.cpp(256) : error C3861: 'startUpIconDatabase': identifier not found 2083 2084 * WebIconDatabase.cpp: 2085 (WebIconDatabase::startUpIconDatabase): Redeclare standardPrefs 2086 since this was in init() but not in this method after it was 2087 extracted from init(). 2088 (isEnabled): Don't use "virtual" in method implementation 2089 (silly copy-paste error). 2090 (setEnabled): Ditto. 2091 2092 2009-01-06 David Kilzer <ddkilzer (a] apple.com> 2093 2094 BUILD FIX (r39641): Remove STDMETHODCALLTYPE from method declarations in IWebIconDatabase.idl 2095 2096 * Interfaces/IWebIconDatabase.idl: Removed "STDMETHODCALLTYPE" 2097 from silly copy-paste error in two method declarations. 2098 2099 2009-01-05 David Kilzer <ddkilzer (a] apple.com> 2100 2101 Add API to enable, disable and check state of WebIconDatabase 2102 2103 Reviewed by Darin Adler & Timothy Hatcher. 2104 2105 Add WebIconDatabase::isEnabled() and WebIconDatabase::setEnabled() 2106 API to make it possible to enable, disable and check the state of 2107 the icon database. 2108 2109 * Interfaces/IWebIconDatabase.idl: Declared isEnabled() and 2110 setEnabled() methods. 2111 * WebIconDatabase.cpp: 2112 (WebIconDatabase::init): Extracted code into startUpIconDatabase(). 2113 (WebIconDatabase::startUpIconDatabase): Added. Extracted from 2114 init(). 2115 (WebIconDatabase::shutDownIconDatabase): Added. Method is empty 2116 since there is nothing to do yet on Windows. 2117 (isEnabled): Added. 2118 (setEnabled): Added. 2119 * WebIconDatabase.h: Added method declarations. 2120 2121 2009-01-05 Anders Carlsson <andersca (a] apple.com> 2122 2123 Reviewed by Jon Honeycutt. 2124 2125 Pass more information in the property bag passed to embeddedViewWithArguments. 2126 2127 * Interfaces/IWebUIDelegatePrivate.idl: 2128 Declare new keys. 2129 2130 * WebCoreSupport/WebFrameLoaderClient.cpp: 2131 (WebFrameLoaderClient::createPlugin): 2132 Pass the base URL, MIME type and the containing element to embeddedViewWithArguments. 2133 2134 2009-01-05 Anders Carlsson <andersca (a] apple.com> 2135 2136 Reviewed by Darin Adler, Jon Honeycutt. 2137 2138 Add a templatized COMVariant constructor so we can make COMVariants out of 2139 everything that has a COMVariantSetter specialization. 2140 2141 Add a COMVariantSetter specialization for COMVariant. 2142 2143 * COMVariantSetter.h: 2144 (COMVariant::COMVariant): 2145 2146 2009-01-05 Brent Fulgham <bfulgham (a] gmail.com> 2147 2148 Reviewed by Oliver Hunt. 2149 2150 Fixes: https://bugs.webkit.org/show_bug.cgi?id=23027 2151 2152 Removes the WebKitGraphics files from the Cairo build, as well 2153 as excluding their link definitions. These are not used outside 2154 of Safari, and should not be part of the 'Redistributable API.' 2155 2156 * WebKit.vcproj/WebKit.vcproj: Update *_Cairo targets to exclude 2157 the WebKitGraphics.cpp/.h files. 2158 * WebKit.vcproj/WebKit_Cairo.def: Added. File without Safari 2159 link definitions. 2160 * WebKit.vcproj/WebKit_Cairo_debug.def: Added. File without Safari 2161 link definitions. 2162 2163 2009-01-05 Anders Carlsson <andersca (a] apple.com> 2164 2165 Reviewed by Jon Honeycutt. 2166 2167 Add a simple, memory managed, wrapper around a VARIANT struuct. 2168 2169 * COMVariantSetter.h: 2170 (COMVariant::COMVariant): 2171 (COMVariant::~COMVariant): 2172 (COMVariant::operator=): 2173 (COMVariant::copyTo): 2174 (COMVariant::variantType): 2175 2176 2009-01-05 Adele Peterson <adele (a] apple.com> 2177 2178 Windows build fix. 2179 2180 * WebCoreSupport/WebChromeClient.cpp: 2181 2182 2009-01-05 Anders Carlsson <andersca (a] apple.com> 2183 2184 Reviewed by Adam Roben. 2185 2186 Make it possible to have per value variant types. 2187 2188 * COMPropertyBag.h: 2189 (::Read): 2190 Call variantType here, passing in the value. 2191 2192 (::GetPropertyInfo): 2193 Ditto. 2194 2195 * COMVariantSetter.h: 2196 (COMVariantSetterBase::variantType): 2197 Add COMVariantSetterBase, whose variantType implementation just returns the 2198 VariantType variable. Make all existing classes inherit from COMVariantSetterBase. 2199 2200 2009-01-05 Adam Treat <adam.treat (a] torchmobile.com> 2201 2202 Fix win build 2203 2204 * WebCoreSupport/WebChromeClient.h: 2205 2206 2009-01-05 Adam Treat <adam.treat (a] torchmobile.com> 2207 2208 Reviewed by George Staikos. 2209 2210 Build fix for contentsSizeChanged 2211 2212 * WebCoreSupport/WebChromeClient.cpp: 2213 (WebChromeClient::contentsSizeChanged): 2214 * WebCoreSupport/WebChromeClient.h: 2215 2216 2009-01-05 Anders Carlsson <andersca (a] apple.com> 2217 2218 Reviewed by Kevin Decker. 2219 2220 Use the ManualLoader class instead of assuming that the manual loader 2221 is a plug-in view. 2222 2223 * WebCoreSupport/WebFrameLoaderClient.cpp: 2224 (WebFrameLoaderClient::WebFrameLoaderClient): 2225 (WebFrameLoaderClient::setMainDocumentError): 2226 (WebFrameLoaderClient::committedLoad): 2227 (WebFrameLoaderClient::finishedLoading): 2228 (WebFrameLoaderClient::redirectDataToPlugin): 2229 * WebCoreSupport/WebFrameLoaderClient.h: 2230 2231 2009-01-04 Adam Treat <adam.treat (a] torchmobile.com> 2232 2233 Reviewed by George Staikos. 2234 2235 Make the apple windows port build with the new fixedLayoutSize feature 2236 2237 * WebCoreSupport/WebFrameLoaderClient.cpp: 2238 (WebFrameLoaderClient::transitionToCommittedForNewPage): 2239 2240 2008-12-20 Dan Bernstein <mitz (a] apple.com> 2241 2242 Reviewed by Ada Chan. 2243 2244 - expose the new allItems() method via a new IWebHistoryPrivate 2245 interface 2246 2247 * Interfaces/IWebHistoryPrivate.idl: Added. 2248 * Interfaces/WebKit.idl: Added IWebHistoryPrivate.idl. 2249 * WebHistory.cpp: 2250 (WebHistory::QueryInterface): Added IWebHistoryPrivate. 2251 (WebHistory::allItems): 2252 * WebHistory.h: 2253 2254 2008-12-19 Geoffrey Garen <ggaren (a] apple.com> 2255 2256 Build fix. 2257 2258 * WebHistory.cpp: 2259 (WebHistory::allItems): 2260 2261 2008-12-19 Geoffrey Garen <ggaren (a] apple.com> 2262 2263 Reviewed by Darin Adler, Adele Peterson, Brady Eidson. 2264 2265 Added SPI for getting an unsorted vector of all items in history. 2266 2267 * WebHistory.cpp: 2268 (WebHistory::orderedItemsLastVisitedOnDay): 2269 (WebHistory::allItems): 2270 * WebHistory.h: 2271 2272 2008-12-18 Dan Bernstein <mitz (a] apple.com> 2273 2274 Reviewed by Sam Weinig. 2275 2276 - implement FrameLoaderClient::shouldUseCredentialStorage() by calling 2277 a new resource load delegae method. 2278 2279 * Interfaces/IWebResourceLoadDelegatePrivate.idl: Added 2280 a ne interface, IWebResourceLoadDelegatePrivate2, including a new 2281 method, shouldUseCredentialStorage(). 2282 * WebCoreSupport/WebFrameLoaderClient.cpp: 2283 (WebFrameLoaderClient::shouldUseCredentialStorage): Added. Calls the 2284 delegate method. If the method is unimplemented, returns true for 2285 backwards compatibility. 2286 * WebCoreSupport/WebFrameLoaderClient.h: 2287 2288 2008-12-18 Sam Weinig <sam (a] webkit.org> 2289 2290 Reviewed by John Sullivan. 2291 2292 Implement FrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout() by calling 2293 a new private frame load delegate method. 2294 2295 * Interfaces/IWebFrameLoadDelegatePrivate.idl: 2296 * WebCoreSupport/WebFrameLoaderClient.cpp: 2297 (WebFrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout): 2298 * WebCoreSupport/WebFrameLoaderClient.h: 2299 2300 2008-12-16 Steve Falkenburg <sfalken (a] apple.com> 2301 2302 Windows build fix. 2303 2304 Reviewed by Stephanie Lewis. 2305 2306 * COMPropertyBag.h: 2307 (::createInstance): 2308 (::adopt): 2309 (::QueryInterface): 2310 (::AddRef): 2311 (::Release): 2312 (::Read): 2313 (::Write): 2314 (::CountProperties): 2315 (::GetPropertyInfo): 2316 (::LoadObject): 2317 * WebURLResponse.cpp: 2318 (WebURLResponse::allHeaderFields): 2319 2320 2008-12-16 Stephanie Lewis <slewis (a] apple.com> 2321 2322 Another Windows Build Fix. 2323 2324 * WebURLResponse.cpp: 2325 (WebURLResponse::allHeaderFields): 2326 2327 2008-12-14 Dan Bernstein <mitz (a] apple.com> 2328 2329 Reviewed by Darin Adler. 2330 2331 - Windows equivalent of <rdar://problem/3258561> 2332 WebHistoryAllItemsRemovedNotification should add items to userInfo 2333 2334 * WebHistory.cpp: 2335 (WebHistory::removeAllItems): Changed to create an array of all items 2336 and send it in the notification. 2337 2338 2008-12-12 Brent Fulgham <bfulgham (a] gmail.com> 2339 2340 Reviewed by Oliver Hunt. 2341 2342 Fixes: https://bugs.webkit.org/show_bug.cgi?id=22805 2343 2344 Provides implementation of image drag for Windows Cairo back-end. 2345 Switch to generic PlatformGraphicsContext data type, rather than 2346 specific use of CoreGraphics types. 2347 2348 * WebCoreSupport/WebDragClient.cpp: 2349 (WebDragClient::createDragImageForLink): Revise calls to use more 2350 generic PlatformGraphicsContext data types and calls for better 2351 portability. 2352 2353 2008-12-12 Steve Falkenburg <sfalken (a] apple.com> 2354 2355 Update Windows cache sizes to match recent Mac change. 2356 2357 Reviewed by Stephanie Lewis, Sam Weinig. 2358 2359 * WebView.cpp: 2360 (WebView::setCacheModel): 2361 2362 2008-12-12 Tor Arne Vestb <tavestbo (a] trolltech.com> 2363 2364 Rubber-stamped by Oliver Hunt. 2365 2366 Remove mutables from EmbeddedWidget 2367 2368 We can do this now that frameRectsChanged() is no longer const 2369 2370 * WebCoreSupport/EmbeddedWidget.h: 2371 2372 2008-12-11 Cameron Zwarich <zwarich (a] apple.com> 2373 2374 Rubber-stamped by Mark Rowe. 2375 2376 Roll out r39212 due to assertion failures during layout tests, multiple 2377 layout test failures, memory leaks, and obvious incorrectness. 2378 2379 * Interfaces/IWebPreferencesPrivate.idl: 2380 * WebPreferenceKeysPrivate.h: 2381 * WebPreferences.cpp: 2382 * WebPreferences.h: 2383 2384 2008-12-10 Glenn Wilson <gwilson (a] google.com> 2385 2386 Reviewed by Adam Roben. 2387 2388 Added support for overriding default preferences per-test. 2389 https://bugs.webkit.org/show_bug.cgi?id=20534 2390 Two new methods were added: resetToDefaults and overridePreference. 2391 2392 * Interfaces/IWebPreferencesPrivate.idl: new method signatures 2393 * WebPreferenceKeysPrivate.h: added new key for internal state 2394 * WebPreferences.cpp: added new methods 2395 (WebPreferences::overridePreference): new method 2396 (WebPreferences::resetToDefaults): new method 2397 * WebPreferences.h: new method signatures 2398 2399 2008-12-08 Tor Arne Vestb <tavestbo (a] trolltech.com> 2400 2401 Reviewed by Darin Adler and Holger Freyther. 2402 2403 Make Widget::frameRectsChanged() and overrides non-const 2404 2405 This will hopefully allow us to get rid of some of the mutables in 2406 the classes that react to the callback by changing their own state. 2407 2408 * WebCoreSupport/EmbeddedWidget.cpp: 2409 (EmbeddedWidget::frameRectsChanged): 2410 * WebCoreSupport/EmbeddedWidget.h: 2411 2412 2008-12-09 Brett Wilson <brettw (a] chromium.org> 2413 2414 Reviewed by Dave Hyatt. 2415 2416 https://bugs.webkit.org/show_bug.cgi?id=22177 2417 2418 Add a callback on ChromeClient that the state of form elements on 2419 the page has changed. This is to allow clients implementing session 2420 saving to know when the current state is dirty. 2421 2422 * WebCoreSupport/WebChromeClient.h: 2423 (WebChromeClient::formStateDidChange): 2424 2425 ks2008-12-08 Dan Bernstein <mitz (a] apple.com> 2426 2427 Reviewed by Adam Roben. 2428 2429 - Fix nightly builds 2430 2431 * Interfaces/IWebViewPrivate.idl: Moved globalHistoryItem() to the end, 2432 so that it comes after all methods used by Safari 3.2.1. 2433 2434 2008-12-08 Dan Bernstein <mitz (a] apple.com> 2435 2436 Reviewed by John Sullivan. 2437 2438 - WebKit/win part of tracking the global history item for a WebView 2439 2440 * Interfaces/IWebViewPrivate.idl: Declared globalHistoryItem() 2441 * WebView.cpp: 2442 (WebView::globalHistoryItem): Added. Gets the page's global history 2443 item. 2444 * WebView.h: 2445 2446 2008-12-06 Simon Fraser <simon.fraser (a] apple.com> 2447 2448 Reviewed by Dave Hyatt 2449 2450 https://bugs.webkit.org/show_bug.cgi?id=15671 2451 2452 Renderer::caretRect() is now localCaretRect(), which needs 2453 converting to absolute coordinates (taking transforms into account). 2454 2455 * WebView.cpp: 2456 (WebView::handleContextMenuEvent): 2457 2458 2008-12-05 Darin Adler <darin (a] apple.com> 2459 2460 Reviewed by Alexey Proskuryakov. 2461 2462 - fix https://bugs.webkit.org/show_bug.cgi?id=22674 2463 Webkit r39005 does not start, an entry point not found 2464 2465 * WebView.cpp: 2466 (findCFNetworkModule): Added. 2467 (findCopySharedURLCacheFunction): Added. 2468 (WebView::setCacheModel): Call CFURLCacheCopySharedURLCache via dynamic loading 2469 instead of compiling based on which version of CFNetwork headers are present. 2470 2471 2008-12-04 Steve Falkenburg <sfalken (a] apple.com> 2472 2473 Implement IPropertyBag2::Read. 2474 Fill in dwType for IPropertyBag2::GetPropertyInfo (we always use PROPBAG2_TYPE_DATA). 2475 https://bugs.webkit.org/show_bug.cgi?id=22659 2476 2477 This fixes <rdar://problem/6419127> REGRESSION: Forms autocomplete is broken for "other forms" 2478 2479 Reviewed by Ada Chan, Alice Liu. 2480 2481 * COMPropertyBag.h: 2482 (::Read): Implemented. 2483 (::GetPropertyInfo): Set dwType to PROPBAG2_TYPE_DATA. 2484 2485 2008-12-02 Adam Roben <aroben (a] apple.com> 2486 2487 Export new-ish JSCore convenience constructor functions 2488 2489 Reviewed by Jon Honeycutt. 2490 2491 * WebKit.vcproj/WebKit.def: 2492 * WebKit.vcproj/WebKit_debug.def: 2493 Export JSObjectMakeArray, JSObjectMakeDate, and JSObjectMakeRegExp. 2494 Remove duplicate export of JSObjectMakeFunction. 2495 2496 2008-12-02 Michael Moss <mmoss (a] chromium.org> 2497 2498 Reviewed by Eric Seidel. 2499 2500 - Fix http/tests/navigation/reload-subframe-*frame.html on Windows. 2501 https://bugs.webkit.org/show_bug.cgi?id=20926 2502 2503 Change 31264 fixed this on Mac (since moved to WebCore/loader/FrameLoader.cpp), but was never ported to Windows. 2504 2505 * WebCoreSupport/WebFrameLoaderClient.cpp: 2506 (WebFrameLoaderClient::loadURLIntoChild): 2507 2508 2008-12-01 Steve Falkenburg <sfalken (a] apple.com> 2509 2510 Implement renderedImage for Windows. 2511 https://bugs.webkit.org/show_bug.cgi?25648 2512 2513 Reviewed by Adam Roben. 2514 2515 * DOMCoreClasses.cpp: 2516 (DOMElement::renderedImage): 2517 * DOMCoreClasses.h: 2518 * Interfaces/DOMPrivate.idl: 2519 2520 2008-12-01 Eric Seidel <eric (a] webkit.org> 2521 2522 Reviewed by Adam Roben. 2523 2524 NULL-check documentFrameView() and topDocumentFrameView() it's possible 2525 for either of these methods to return NULL, and this was seen to cause 2526 crashes in Chromium. 2527 https://bugs.webkit.org/show_bug.cgi?id=22572 2528 2529 * AccessibleBase.cpp: 2530 (AccessibleBase::get_accParent): 2531 (AccessibleBase::accLocation): 2532 (AccessibleBase::accHitTest): 2533 2534 2008-11-30 Antti Koivisto <antti (a] apple.com> 2535 2536 Another Windows build fix. 2537 2538 * WebCoreStatistics.cpp: 2539 (WebCoreStatistics::javaScriptObjectsCount): 2540 2541 2008-11-30 Antti Koivisto <antti (a] apple.com> 2542 2543 Windows build fix. 2544 2545 * WebJavaScriptCollector.cpp: 2546 (WebJavaScriptCollector::objectCount): 2547 2548 2008-11-29 Brent Fulgham <bfulgham (a] gmail.com> 2549 2550 Reviewed by Alexey Proskuryakov. 2551 2552 Remove Visual Studio project dependencies on non-redistributable 2553 components in the Debug_Cairo and Release_Cairo build targets. 2554 See https://bugs.webkit.org/show_bug.cgi?id=22527 2555 2556 * WebKit.vcproj/WebKit.vcproj: 2557 * WebKit.vcproj/WebKit.sln: Instruct Cairo builds to not bother 2558 building the unused QuickTime support library. 2559 2560 2008-11-24 Glenn Wilson <gwilson (a] chromium.org> 2561 2562 Reviewed by Alexey Proskuryakov. 2563 2564 http://bugs.webkit.org/show_bug.cgi?id=15643 2565 2566 Added API support for the "trailing whitespace" work-around. This includes an APIs 2567 to get and set the state of this configuration variable. 2568 2569 * Interfaces/IWebView.idl: 2570 * WebCoreSupport/WebEditorClient.cpp: 2571 (WebEditorClient::selectTrailingWhitespaceEnabled): 2572 * WebCoreSupport/WebEditorClient.h: 2573 * WebView.cpp: 2574 (WebView::WebView): 2575 (WebView::setSelectTrailingWhitespaceEnabled): 2576 (WebView::selectTrailingWhitespaceEnabled): 2577 * WebView.h: 2578 2579 2008-11-24 Darin Adler <darin (a] apple.com> 2580 2581 Reviewed by Dan Bernstein. 2582 2583 - https://bugs.webkit.org/show_bug.cgi?id=22470 2584 remove unneeded URL argument from FrameLoaderClient::updateGlobalHistory 2585 2586 * WebCoreSupport/WebFrameLoaderClient.cpp: 2587 (WebFrameLoaderClient::updateGlobalHistory): Get the URL from the 2588 DocumentLoader, just as we do the title and the failure flag. 2589 * WebCoreSupport/WebFrameLoaderClient.h: Remove argument. 2590 2591 2008-11-24 Darin Adler <darin (a] apple.com> 2592 2593 Reviewed by Dan Bernstein. 2594 2595 - finish https://bugs.webkit.org/show_bug.cgi?id=22295 2596 track which history items are from page load failures 2597 2598 Last time around I did this only for the back/forward list and missed the 2599 global history list. 2600 2601 * Interfaces/IWebHistoryItemPrivate.idl: Added setLastVisitWasFailure. 2602 2603 * WebCoreSupport/WebFrameLoaderClient.cpp: 2604 (WebFrameLoaderClient::updateGlobalHistory): Added code to check for failure 2605 and pass the argument in to WebHistory. 2606 2607 * WebHistory.cpp: (WebHistory::addItem): Added wasFailure argument. 2608 Set the flag on the newly created history item. 2609 * WebHistory.h: Ditto. 2610 2611 * WebHistoryItem.cpp: 2612 (WebHistoryItem::setLastVisitWasFailure): Added. 2613 * WebHistoryItem.h: Ditto. 2614 2615 2008-11-24 Simon Fraser <simon.fraser (a] apple.com> 2616 2617 Fix call to Frame::selectionBounds in Windows build. 2618 2619 * WebView.cpp: 2620 (WebView::selectionRect): 2621 2622 2008-11-21 Dimitri Glazkov <dglazkov (a] chromium.org> 2623 2624 Reviewed by Alexey Proskuryakov. 2625 2626 Debug WebKit crashes on launch because of threading not being initialized early enough. 2627 2628 * WebKitClassFactory.cpp: (WebKitClassFactory::WebKitClassFactory): 2629 Call JSC::InitializeThreading(). 2630 2631 2008-11-19 Darin Fisher <darin (a] chromium.org> 2632 2633 Reviewed by Geoff Garen. 2634 2635 https://bugs.webkit.org/show_bug.cgi?id=22345 2636 Define ScriptValue as a thin container for a JSC::Value*. 2637 2638 * WebView.cpp: 2639 (WebView::stringByEvaluatingJavaScriptFromString): 2640 2641 2008-11-19 Adele Peterson <adele (a] apple.com> 2642 2643 Reviewed by Darin Adler. 2644 2645 For transparent views, clear the dirty rect instead of painting it white. 2646 2647 * WebView.cpp: (WebView::paintIntoBackingStore): 2648 2649 2008-11-18 Adele Peterson <adele (a] apple.com> 2650 2651 Reverting last change. I just realized it causes the view to never get cleared out. 2652 2653 * WebView.cpp: (WebView::paintIntoBackingStore): 2654 2655 2008-11-18 Adele Peterson <adele (a] apple.com> 2656 2657 Reviewed by John Sullivan. 2658 2659 Don't fill the view with white if its transparent. 2660 2661 * WebView.cpp: (WebView::paintIntoBackingStore): 2662 2663 2008-11-18 Holger Hans Peter Freyther <zecke (a] selfish.org> 2664 2665 Try to fix the Windows build. It is view and not webView. 2666 2667 * WebCoreSupport/WebFrameLoaderClient.cpp: 2668 (WebFrameLoaderClient::transitionToCommittedForNewPage): 2669 2670 2008-11-18 Holger Hans Peter Freyther <zecke (a] selfish.org> 2671 2672 Reviewed by Simon Hausmann. 2673 2674 Attempt to share transitionToCommittedForNewPage of FrameLoaderClient with the different ports 2675 2676 After Hyatt's work on Widget and ScrollView there is little difference 2677 between the implementation of Qt, Gtk+ and Win. In fact any kind of 2678 difference is mostly a bug. Alp has fixed two of such errors for the Gtk+ 2679 port and the Qt port has at least one of them left. 2680 2681 The only difference between the implementations is in getting the the 2682 IntSize for the new FrameView, the background color to be applied and 2683 eventually some post processing. 2684 2685 Unify the implementations by providing a static helper function that 2686 takes a Frame, IntSize, color and transparency bit and calling it from 2687 the Gtk+, the Qt and the Windows port. 2688 2689 * WebCoreSupport/WebFrameLoaderClient.cpp: 2690 (WebFrameLoaderClient::transitionToCommittedForNewPage): 2691 2692 2008-11-18 Holger Hans Peter Freyther <zecke (a] selfish.org> 2693 2694 Reviewed by Simon Hausmann. 2695 2696 https://bugs.webkit.org/show_bug.cgi?id=22056 2697 2698 Move setting the background color and transparency from WebKit/win 2699 to WebCore. This allows WebKit/win, WebKit/Qt and WebKit/Gtk+ 2700 to share this code. 2701 2702 * WebFrame.cpp: 2703 (WebFrame::updateBackground): 2704 2705 2008-11-16 Geoffrey Garen <ggaren (a] apple.com> 2706 2707 Not reviewed. 2708 2709 Try to fix Windows build. 2710 2711 * WebCoreSupport/WebFrameLoaderClient.cpp: 2712 2713 2008-11-16 Darin Adler <darin (a] apple.com> 2714 2715 Reviewed by Dan Bernstein. 2716 2717 - https://bugs.webkit.org/show_bug.cgi?id=22295 2718 track which history items are from page load failures 2719 2720 * Interfaces/IWebHistoryItemPrivate.idl: Added lastVisitWasFailure function. 2721 2722 * WebHistoryItem.cpp: 2723 (WebHistoryItem::initFromDictionaryRepresentation): Set the lastVisitWasFailure 2724 flag in the history item if the dictionary had an entry for lastVisitWasFailureKey. 2725 (WebHistoryItem::dictionaryRepresentation): Set the lastVisitWasFailureKey key 2726 in the dictionary if the history item had the lastVisitWasFailure flag. 2727 (WebHistoryItem::lastVisitWasFailure): Added. 2728 2729 * WebHistoryItem.h: Added lastVisitWasFailure function. 2730 2731 2008-11-15 Geoffrey Garen <ggaren (a] apple.com> 2732 2733 Reviewed by Sam Weinig. 2734 2735 Updated for JavaScriptCore renames. 2736 2737 * WebScriptCallFrame.cpp: 2738 (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString): 2739 2740 2008-11-14 Dan Bernstein <mitz (a] apple.com> 2741 2742 - try to fix the Windows build 2743 2744 * WebCoreLocalizedStrings.cpp: 2745 (WebCore::contextMenuItemTagTextDirectionMenu): Added. 2746 2747 2008-11-13 Adam Roben <aroben (a] apple.com> 2748 2749 Fix Bug 22244: Webkit nightly builds crash with Safari 3.2 2750 2751 <https://bugs.webkit.org/show_bug.cgi?id=22244> 2752 2753 r36652 added IWebViewPrivate::clearMainFrameName into the middle of 2754 the IWebViewPrivate interface, which modifies the part of the 2755 IWebViewPrivate vtable that Safari 3.2 relies on. 2756 2757 Reviewed by Dan Bernstein. 2758 2759 * Interfaces/IWebViewPrivate.idl: Move clearMainFrameName to the end 2760 of the interface. 2761 2762 2008-11-11 Dan Bernstein <mitz (a] apple.com> 2763 2764 Reviewed by Adam Roben. 2765 2766 WebKit/win part of adding a master volume control for media elements in a WebView 2767 * Interfaces/IWebViewPrivate.idl: Added setMediaVolume() and 2768 mediaVolume(). 2769 * WebView.cpp: 2770 (WebView::setMediaVolume): Added. 2771 (WebView::mediaVolume): Added. 2772 * WebView.h: 2773 2774 2008-11-10 Adam Roben <aroben (a] apple.com> 2775 2776 Fix Bug 22158: Would like to turn on WebCore logging channels via an 2777 environment variable 2778 2779 <https://bugs.webkit.org/show_bug.cgi?id=22158> 2780 2781 Reviewed by Anders Carlsson. 2782 2783 * WebView.cpp: 2784 (WebView::initWithFrame): Call WebCore's 2785 InitializeLoggingChannelsIfNecessary. 2786 2787 2008-11-08 Dan Bernstein <mitz (a] apple.com> 2788 2789 Reviewed by Darin Adler. 2790 2791 - WebKit/win part of adding WebPreferences for controlling databases and local storage 2792 2793 * Interfaces/IWebPreferencesPrivate.idl: Declared setDatabasesEnabled, 2794 databasesEnabled, setLocalStorageEnabled and localStorageEnabled. 2795 * WebPreferenceKeysPrivate.h: Added WebKitDatabasesEnabledPreferenceKey 2796 and WebKitLocalStorageEnabledPreferenceKey. 2797 * WebPreferences.cpp: 2798 (WebPreferences::initializeDefaultSettings): Made databases and local 2799 storage enabled by default. 2800 (WebPreferences::setDatabasesEnabled): Added. 2801 (WebPreferences::databasesEnabled): Added. 2802 (WebPreferences::setLocalStorageEnabled): Added. 2803 (WebPreferences::localStorageEnabled): Added. 2804 * WebPreferences.h: 2805 * WebView.cpp: 2806 (WebView::notifyPreferencesChanged): Transfer the databases and local 2807 storage preferences to WebCore settings. 2808 2809 2008-11-06 John Sullivan <sullivan (a] apple.com> 2810 2811 Eliminated one of the two booleans tracking whether zoom was text-only, to avoid future problems. 2812 2813 Reviewed by Adam Roben 2814 2815 * WebView.h: 2816 removed m_zoomMultiplierIsTextOnly 2817 2818 * WebView.cpp: 2819 (WebView::WebView): 2820 removed initialization of m_zoomMultiplierIsTextOnly 2821 (WebView::setZoomMultiplier): 2822 use m_page->settings()->setZoomsTextOnly() instead of setting m_zoomMultiplierIsTextOnly 2823 (WebView::zoomMultiplier): 2824 use m_page->settings()->zoomsTextOnly() instead of reading m_zoomMultiplierIsTextOnly 2825 2826 2008-11-06 Adele Peterson <adele (a] apple.com> 2827 2828 Reviewed by Adam Roben. 2829 2830 Add support for a WebKitZoomsTextOnly preference. 2831 2832 * Interfaces/IWebPreferences.idl: 2833 * WebPreferenceKeysPrivate.h: 2834 * WebPreferences.cpp: 2835 (WebPreferences::setZoomsTextOnly): 2836 (WebPreferences::zoomsTextOnly): 2837 * WebPreferences.h: 2838 2839 * WebView.cpp: 2840 (WebView::canMakeTextLarger): Consider the zoomsTextOnly setting when computing this. 2841 (WebView::makeTextLarger): ditto. 2842 (WebView::canMakeTextSmaller): ditto. 2843 (WebView::makeTextSmaller): ditto. 2844 (WebView::canMakeTextStandardSize): 2845 Don't consider the setting in this case since we need to reset both text zoom and page zoom regardless of the setting. 2846 (WebView::makeTextStandardSize): 2847 (WebView::notifyPreferencesChanged): Set the WebCore settings to match the WebPreference for WebKitZoomsTextOnly. 2848 2849 2008-11-05 Dan Bernstein <mitz (a] apple.com> 2850 2851 Reviewed by John Sullivan. 2852 2853 - make the {protocol,proxyType} argument of 2854 WebURLProtectionSpace::initWith{Proxy}Host actually work and fix 2855 assertion failures. 2856 2857 * WebURLProtectionSpace.cpp: 2858 (WebURLProtectionSpace::initWithHost): The BString comparisons were 2859 applying the BString==BSTR operator to a right hand side that was 2860 actually a WCHAR string. Fixed by using BStrings on both sides. 2861 (WebURLProtectionSpace::initWithProxyHost): Ditto. 2862 2863 2008-11-01 Alexey Proskuryakov <ap (a] webkit.org> 2864 2865 Reviewed by Darin Adler. 2866 2867 https://bugs.webkit.org/show_bug.cgi?id=22030 2868 Make EventNames usable from multiple threads 2869 2870 * WebView.cpp: (WebView::interpretKeyEvent): Access event names via eventNames() function. 2871 2872 2008-11-03 Cameron Zwarich <zwarich (a] apple.com> 2873 2874 Rubber-stamped by Maciej Stachowiak. 2875 2876 Move more files into the runtime subdirectory of JavaScriptCore. 2877 2878 * WebJavaScriptCollector.cpp: 2879 2880 2008-11-03 Dan Bernstein <mitz (a] apple.com> 2881 2882 Reviewed by Steve Falkenburg. 2883 2884 - implement WebMutableURLRequest::setHTTPShouldHandleCookies() 2885 - add and implement WebMutableURLRequest::mutableCopy() 2886 2887 * Interfaces/IWebURLRequest.idl: 2888 * WebMutableURLRequest.cpp: 2889 (WebMutableURLRequest::setHTTPShouldHandleCookies): 2890 (WebMutableURLRequest::mutableCopy): 2891 * WebMutableURLRequest.h: 2892 2893 2008-10-31 Dan Bernstein <mitz (a] apple.com> 2894 2895 Reviewed by John Sullivan. 2896 2897 - WebKit/win part of <rdar://problem/6334641> Add WebView SPI for disabling document.cookie 2898 2899 * Interfaces/IWebViewPrivate.idl: 2900 * WebView.cpp: 2901 (WebView::setCookieEnabled): 2902 (WebView::cookieEnabled): 2903 * WebView.h: 2904 2905 2008-10-31 Adele Peterson <adele (a] apple.com> 2906 2907 Reviewed by Darin Adler. 2908 2909 WebKit Windows part of fix for <rdar://problem/5839256> FILE CONTROL: multi-file upload. 2910 https://bugs.webkit.org/show_bug.cgi?id=22008 2911 2912 * WebCoreSupport/WebChromeClient.cpp: (WebChromeClient::runOpenPanel): 2913 Add support for mulitple file selection. 2914 2915 2008-10-31 Darin Adler <darin (a] apple.com> 2916 2917 - try to fix build 2918 2919 * WebView.cpp: 2920 (WebView::setCacheModel): Roll out the part of my last change 2921 that involved no longer using wkCopyFoundationCacheDirectory. 2922 2923 2008-10-30 Darin Adler <darin (a] apple.com> 2924 2925 Reviewed by Sam Weinig. 2926 2927 - https://bugs.webkit.org/show_bug.cgi?id=21986 2928 <rdar://problem/6294285> adopt CFURLCopySharedURLCache 2929 2930 * WebView.cpp: 2931 (WebView::setCacheModel): Use CFURLCopySharedURLCache if present. 2932 2933 2008-10-30 Dan Bernstein <mitz (a] apple.com> 2934 2935 Reviewed by Sam Weinig. 2936 2937 - export WTFReportAssertionFailureWithMessage() 2938 2939 * WebKit.vcproj/WebKit_debug.def: 2940 2941 2008-10-29 Steve Falkenburg <sfalken (a] apple.com> 2942 2943 <rdar://problem/6326563> Crash on launch 2944 2945 For Windows, export explicit functions rather than exporting data for atomicallyInitializedStaticMutex. 2946 2947 Exporting data from a DLL on Windows requires specifying __declspec(dllimport) in the header used by 2948 callers, but __declspec(dllexport) when defined in the DLL implementation. By instead exporting 2949 the explicit lock/unlock functions, we can avoid this. 2950 2951 Fixes a crash on launch, since we were previously erroneously exporting atomicallyInitializedStaticMutex as a function. 2952 2953 Reviewed by Darin Adler. 2954 2955 * WebKit.vcproj/WebKit.def: 2956 * WebKit.vcproj/WebKit_debug.def: 2957 2958 2008-10-29 Jon Honeycutt <jhoneycutt (a] apple.com> 2959 2960 Export atomicallyInitializedStaticMutex. 2961 2962 Rubber-stamped by Steve Falkenburg. 2963 2964 * WebKit.vcproj/WebKit.def: 2965 * WebKit.vcproj/WebKit_debug.def: 2966 2967 2008-10-28 Cameron Zwarich <zwarich (a] apple.com> 2968 2969 Reviewed by Mark Rowe. 2970 2971 Move ForwardingHeaders to their correct location after the creation of 2972 the runtime directory in JavaScriptCore. 2973 2974 * WebScriptCallFrame.h: 2975 2976 2008-10-28 Adele Peterson <adele (a] apple.com> 2977 2978 Reviewed by John Sullivan. 2979 2980 Fix for https://bugs.webkit.org/show_bug.cgi?id=21880 2981 "files" string for multifile uploads needs to be localized 2982 2983 * WebCoreLocalizedStrings.cpp: (multipleFileUploadText): 2984 2985 2008-10-28 Adele Peterson <adele (a] apple.com> 2986 2987 Reviewed by Sam Weinig. 2988 2989 * English.lproj: Removed. 2990 * English.lproj/Localizable.strings: Removed. 2991 * WebKit.vcproj/WebKit.vcproj: Updated to use Localizable.strings in the top directory, to share with the Mac. 2992 2993 2008-10-28 Timothy Hatcher <timothy (a] apple.com> 2994 2995 Add IWebInspector methods to enable the profiler. 2996 2997 https://bugs.webkit.org/show_bug.cgi?id=21927 2998 2999 <rdar://problem/6211578> Make the JavaScript profiler opt-in, so it does 3000 not slow down JavaScript all the time 3001 3002 Reviewed by Darin Adler and Kevin McCullough. 3003 3004 * WebInspector.cpp: 3005 (WebInspector::isJavaScriptProfilingEnabled): Added. Calls InspectorController::profilerEnabled. 3006 (WebInspector::setJavaScriptProfilingEnabled): Added. Call InspectorController's disableProfiler 3007 or enableProfiler methods. 3008 * WebInspector.h: 3009 3010 2008-10-27 Timothy Hatcher <timothy (a] apple.com> 3011 3012 Rename a few methods related to attaching and detaching the debugger. 3013 3014 * Rename attachDebugger to enableDebugger. 3015 * Rename detachDebugger to disableDebugger. 3016 * Rename the debuggerAttached getter to debuggerEnabled. 3017 3018 Reviewed by Darin Adler. 3019 3020 * WebInspector.cpp: 3021 (WebInspector::isDebuggingJavaScript): 3022 (WebInspector::toggleDebuggingJavaScript): 3023 3024 2008-10-24 Sam Weinig <sam (a] webkit.org> 3025 3026 Yet another windows build fix. 3027 3028 * WebCoreSupport/WebChromeClient.cpp: 3029 3030 2008-10-24 Sam Weinig <sam (a] webkit.org> 3031 3032 Another windows build fix. 3033 3034 * WebCoreSupport/WebChromeClient.cpp: 3035 3036 2008-10-24 Sam Weinig <sam (a] webkit.org> 3037 3038 Reviewed by Dan Bernstein. 3039 3040 Fix https://bugs.webkit.org/show_bug.cgi?id=21759 3041 Layering violation: FileChooser should not depend on Document/Frame/Page 3042 3043 * WebCoreSupport/WebChromeClient.cpp: 3044 (WebChromeClient::runOpenPanel): 3045 * WebCoreSupport/WebChromeClient.h: 3046 3047 2008-10-24 Timothy Hatcher <timothy (a] apple.com> 3048 3049 Implement new InspectorClient methods to work with Settings. 3050 3051 https://bugs.webkit.org/show_bug.cgi?id=21856 3052 3053 Reviewed by Adam Roben. 3054 3055 * WebKit.vcproj/WebKit.vcproj: Add the new InspectorClientCF.cpp file. 3056 * WebCoreSupport/WebInspectorClient.h: Add the new methods. 3057 3058 2008-10-24 Darin Adler <darin (a] apple.com> 3059 3060 - finish rolling out https://bugs.webkit.org/show_bug.cgi?id=21732 3061 3062 * WebScriptCallFrame.cpp: 3063 (WebScriptCallFrame::jsValueToString): 3064 (WebScriptCallFrame::stringByEvaluatingJavaScriptFromString): 3065 (WebScriptCallFrame::valueForVariable): 3066 (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString): 3067 * WebScriptCallFrame.h: 3068 * WebView.cpp: 3069 (WebView::stringByEvaluatingJavaScriptFromString): 3070 Use JSValue* instead of JSValuePtr. 3071 3072 2008-10-22 Brent Fulgham <bfulgham (a] gmail.com> 3073 3074 Correct build regressions in Cairo port for Windows. 3075 http://bugs.webkit.org/show_bug.cgi?id=21724 3076 3077 Reviewed by Adam Roben. 3078 3079 * WebView.cpp: 3080 (WebView::notifyPreferencesChanged): Don't try to call 3081 setShouldPaintNativeControls when SafariTheme support is disabled, as 3082 that function doesn't exist in that case. 3083 3084 2008-10-22 Brady Eidson <beidson (a] apple.com> 3085 3086 Reviewed by Adam Roben 3087 3088 Move elementDoesAutoComplete() to IWebFramePrivate so it is exposed for DRT to use 3089 3090 * Interfaces/IWebFramePrivate.idl: 3091 3092 * WebFrame.cpp: 3093 (WebFrame::elementDoesAutoComplete): 3094 * WebFrame.h: 3095 3096 * WebHTMLRepresentation.cpp: 3097 (WebHTMLRepresentation::elementDoesAutoComplete): 3098 3099 2008-10-20 Sam Weinig <sam (a] webkit.org> 3100 3101 Reviewed by Anders Carlsson. 3102 3103 Remove FrameLoaderClient::detachedFromParent4. It is no longer used by any port. 3104 3105 * WebFrame.cpp: 3106 * WebFrame.h: 3107 3108 2008-10-19 Darin Adler <darin (a] apple.com> 3109 3110 Reviewed by Oliver Hunt. 3111 3112 - next step of https://bugs.webkit.org/show_bug.cgi?id=21732 3113 improve performance by eliminating JSValue as a base class for JSCell 3114 3115 Remove most uses of JSValue, which will be removed in a future patch. 3116 3117 * WebScriptCallFrame.cpp: 3118 (WebScriptCallFrame::jsValueToString): Use JSValuePtr. 3119 (WebScriptCallFrame::stringByEvaluatingJavaScriptFromString): Ditto. 3120 (WebScriptCallFrame::valueForVariable): Put more code inside and ifdef. 3121 (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString): Ditto. 3122 * WebScriptCallFrame.h: Use JSValuePtr. 3123 3124 * WebView.cpp: 3125 (WebView::stringByEvaluatingJavaScriptFromString): Use JSValuePtr. 3126 3127 2008-10-18 Dan Bernstein <mitz (a] apple.com> 3128 3129 - build fix 3130 3131 * WebScriptCallFrame.cpp: 3132 (WebScriptCallFrame::jsValueToString): 3133 3134 2008-10-18 Dan Bernstein <mitz (a] apple.com> 3135 3136 Reviewed by Sam Weinig. 3137 3138 - WebKit/win part of https://bugs.webkit.org/show_bug.cgi?id=21736 3139 Long-dead decoded image data make up for most of the object cache's memory use over time 3140 3141 * WebView.cpp: 3142 (WebView::setCacheModel): In the primary web browser model, 3143 set the cache's dead decoded data deletion interval to 60 seconds. 3144 3145 2008-10-16 Kevin McCullough <kmccullough (a] apple.com> 3146 3147 Reviewed by Steve Falkenburg. 3148 3149 <rdar://problem/6292718> 3150 Implement a standard way to get the UA given an application name. 3151 3152 * Interfaces/IWebViewPrivate.idl: 3153 * WebView.cpp: 3154 (WebView::standardUserAgentWithApplicationName): 3155 * WebView.h: 3156 3157 2008-10-17 Dan Bernstein <mitz (a] apple.com> 3158 3159 Reviewed by Sam Weinig. 3160 3161 - export WTF::initializeOnMainThread() 3162 3163 * WebKit.vcproj/WebKit.def: 3164 * WebKit.vcproj/WebKit_debug.def: 3165 3166 2008-10-15 Geoffrey Garen <ggaren (a] apple.com> 3167 3168 Reviewed by Cameron Zwarich. 3169 3170 Fixed https://bugs.webkit.org/show_bug.cgi?id=21345 3171 Start the debugger without reloading the inspected page 3172 3173 * WebInspector.cpp: 3174 (WebInspector::toggleDebuggingJavaScript): Updated for rename. 3175 3176 2008-10-15 Adam Roben <aroben (a] apple.com> 3177 3178 Export WTF::Mutex::tryLock 3179 3180 * WebKit.vcproj/WebKit.def: 3181 * WebKit.vcproj/WebKit_debug.def: 3182 3183 2008-10-14 Jon Honeycutt <jhoneycutt (a] apple.com> 3184 3185 Export currentThread. 3186 3187 Rubber-stamped by Dan Bernstein. 3188 3189 * WebKit.vcproj/WebKit.def: 3190 * WebKit.vcproj/WebKit_debug.def: 3191 3192 2008-10-13 Steve Falkenburg <sfalken (a] apple.com> 3193 3194 Reorder methods to preserve compatibility. 3195 3196 Rubber stamped by Oliver Hunt. 3197 3198 * Interfaces/IWebViewPrivate.idl: 3199 3200 2008-10-11 Dan Bernstein <mitz (a] apple.com> 3201 3202 Reviewed by Sam Weinig. 3203 3204 - add SPI for forcing the complex text code path to be used for all text 3205 3206 * Interfaces/IWebViewPrivate.idl: 3207 * WebView.cpp: 3208 (WebView::setAlwaysUsesComplexTextCodePath): 3209 (WebView::alwaysUsesComplexTextCodePath): 3210 * WebView.h: 3211 3212 2008-10-10 Ada Chan <adachan (a] apple.com> 3213 3214 Bug 21526: The hashmap webPreferencesInstances in WebPreferences.cpp can 3215 potentially hold onto stale instances of WebPreferences 3216 https://bugs.webkit.org/show_bug.cgi?id=21526 3217 3218 webPreferencesInstances now keeps a reference to all the instances it holds. 3219 Fix up callers of WebPreferences::removeReferenceForIdentifier() to call 3220 it after they have released their references to the WebPreferences objects. 3221 3222 Reviewed by Adam Roben. 3223 3224 * WebPreferences.cpp: 3225 (WebPreferences::getInstanceForIdentifier): 3226 (WebPreferences::removeReferenceForIdentifier): 3227 * WebView.cpp: 3228 (WebView::close): 3229 (WebView::setPreferences): 3230 3231 2008-10-06 David Hyatt <hyatt (a] apple.com> 3232 3233 Enable viewless Mac WebKit to paint some basic pages. 3234 3235 Reviewed by Sam Weinig 3236 3237 * WebCoreSupport/WebFrameLoaderClient.cpp: 3238 (WebFrameLoaderClient::createFrame): 3239 * WebCoreSupport/WebFrameLoaderClient.h: 3240 3241 2008-10-03 David Hyatt <hyatt (a] apple.com> 3242 3243 https://bugs.webkit.org/show_bug.cgi?id=21340 3244 3245 Remove "containingWindow()/setContainingWindow()" from Widget. HostWindow covers this now. 3246 3247 Reviewed by Dan Bernstein & Darin Adler 3248 3249 * WebCoreSupport/WebFrameLoaderClient.cpp: 3250 (WebFrameLoaderClient::transitionToCommittedForNewPage): 3251 * WebScrollBar.cpp: 3252 (WebScrollBar::WebScrollBar): 3253 (WebScrollBar::init): 3254 (WebScrollBar::invalidateScrollbarRect): 3255 * WebScrollBar.h: 3256 3257 2008-10-03 David Hyatt <hyatt (a] apple.com> 3258 3259 Remove addToDirtyRegion. 3260 3261 Reviewed by Oliver Hunt 3262 3263 * WebCoreSupport/WebChromeClient.cpp: 3264 3265 2008-10-02 David Hyatt <hyatt (a] apple.com> 3266 3267 https://bugs.webkit.org/show_bug.cgi?id=21328 3268 3269 Make widget invalidation more cross-platform. 3270 3271 (1) Make invalidateRect a pure virtual function on Widget. All leaf widgets must now implement this function. 3272 3273 (2) Scrollbars now send invalidations through the ScrollbarClient. windowClipRect on ScrollbarClient has been removed and replaced with this invalidation call. 3274 This allows all scrollbar invalidations to go through the render tree so that transforms and reflections will be respected. 3275 3276 (3) Plugins now have the native window invalidation code for windowed plugins. Windowless plugins do a repaintRectangle on the plugin's renderer. 3277 3278 (4) FrameViews now do a repaintRectangle on their owner element's renderer. 3279 3280 Reviewed by Sam Weinig 3281 3282 * WebCoreSupport/EmbeddedWidget.cpp: 3283 (EmbeddedWidget::invalidateRect): 3284 * WebCoreSupport/EmbeddedWidget.h: 3285 * WebScrollBar.cpp: 3286 (WebScrollBar::invalidateScrollbarRect): 3287 * WebScrollBar.h: 3288 3289 2008-10-02 Darin Adler <darin (a] apple.com> 3290 3291 - https://bugs.webkit.org/show_bug.cgi?id=21321 3292 Bug 21321: speed up JavaScriptCore by inlining Heap in JSGlobalData 3293 3294 * WebCoreStatistics.cpp: 3295 (WebCoreStatistics::javaScriptObjectsCount): Use heap. instead of heap-> to 3296 work with the heap. 3297 (WebCoreStatistics::javaScriptGlobalObjectsCount): Ditto. 3298 (WebCoreStatistics::javaScriptProtectedObjectsCount): Ditto. 3299 (WebCoreStatistics::javaScriptProtectedGlobalObjectsCount): Ditto. 3300 (WebCoreStatistics::javaScriptProtectedObjectTypeCounts): Ditto. 3301 * WebJavaScriptCollector.cpp: 3302 (WebJavaScriptCollector::objectCount): Ditto. 3303 3304 2008-10-02 Dave Hyatt <hyatt (a] apple.com> 3305 3306 https://bugs.webkit.org/show_bug.cgi?id=21316 3307 3308 Reviewed by Adele 3309 3310 * WebCoreSupport/WebFrameLoaderClient.cpp: 3311 (WebFrameLoaderClient::transitionToCommittedForNewPage): 3312 3313 2008-10-02 David Hyatt <hyatt (a] apple.com> 3314 3315 https://bugs.webkit.org/show_bug.cgi?id=21314 3316 3317 Make scrollBackingStore cross-platform. 3318 3319 Reviewed by Sam Weinig 3320 3321 * WebCoreSupport/WebChromeClient.cpp: 3322 (WebChromeClient::repaint): 3323 (WebChromeClient::scroll): 3324 * WebCoreSupport/WebChromeClient.h: 3325 * WebView.cpp: 3326 (WebView::repaint): 3327 * WebView.h: 3328 3329 2008-10-01 David Hyatt <hyatt (a] apple.com> 3330 3331 https://bugs.webkit.org/show_bug.cgi?id=21298 3332 3333 Make updateScrollbars cross-platform. For now a stubbed out scrollContents function is invoked to do the scrolling of the backing store. Next patch 3334 will make that cross-platform. 3335 3336 The ScrollView now implements ScrollbarClient, which means that there was a clash of windowClipRect methods from the 3337 multiple inheritance. For now I solved this by adding a Scrollbar* to the ScrollbarClient version of the method, but longer term 3338 windowClipRect is going to be removed from ScrollbarClient (when Widget invalidation gets rewritten). 3339 3340 Reviewed by Sam Weinig 3341 3342 * WebScrollBar.cpp: 3343 (WebScrollBar::windowClipRect): 3344 * WebScrollBar.h: 3345 3346 2008-10-01 David Hyatt <hyatt (a] apple.com> 3347 3348 https://bugs.webkit.org/show_bug.cgi?id=21282 3349 3350 Make contentsToScreen/screenToContents cross-platform. Only implemented by Mac/Win right now. 3351 3352 Reviewed by Adam Roben 3353 3354 * WebCoreSupport/WebChromeClient.cpp: 3355 (WebChromeClient::windowToScreen): 3356 (WebChromeClient::screenToWindow): 3357 * WebCoreSupport/WebChromeClient.h: 3358 3359 2008-09-30 Dave Hyatt <hyatt (a] apple.com> 3360 3361 https://bugs.webkit.org/show_bug.cgi?id=21269 3362 3363 This patch makes the ScrollView::paint method cross-platform. The paint method calls the base class 3364 Widget paint on platforms with native widgets (Mac and wx). Otherwise it calls a virtual function, 3365 paintContents, to paint the ScrollView's contents, and then it paints each of the two scrollbars and 3366 the scrollbar corner. 3367 3368 The scrollbar themes are now responsible for painting scrollbar corners. At the moment ScrollbarThemeWin still 3369 paints white (which is incorrect), so a future patch will actually implement proper native scroll corner painting 3370 for Windows. 3371 3372 paintContents is implemented by FrameView, and replaces Frame::paint. All of the FramePrivate member 3373 variables used by Frame::paint have moved to FrameViewPrivate instead. All callers of Frame::paint have 3374 been patched to use FrameView::paintContents instead. 3375 3376 Reviewed by Darin Adler 3377 3378 * WebFrame.cpp: 3379 (WebFrame::paintDocumentRectToContext): 3380 (WebFrame::spoolPages): 3381 3382 2008-09-30 Dave Hyatt <hyatt (a] apple.com> 3383 3384 http://bugs.webkit.org/show_bug.cgi?id=21250 3385 3386 Rename updateContents to repaintContentRectangle and make it cross-platform by always sending 3387 repaints up through the ChromeClient. 3388 3389 Reviewed by Darin Adler 3390 3391 * WebCoreSupport/WebChromeClient.cpp: 3392 (WebChromeClient::repaint): 3393 * WebCoreSupport/WebChromeClient.h: 3394 * WebView.cpp: 3395 (WebView::repaint): 3396 * WebView.h: 3397 3398 2008-09-29 Dan Bernstein <mitz (a] apple.com> 3399 3400 Reviewed by Adam Roben. 3401 3402 - WebKit/win part of fixing <rdar://problem/6247906> REGRESSION (r19500): Crash on quit beneath CloseThemeData 3403 3404 * WebKitDLL.cpp: 3405 (DllMain): Call RenderThemeWin::setWebKitIsBeingUnloaded() when WebKit 3406 is being unloaded. 3407 3408 2008-09-27 David Hyatt <hyatt (a] apple.com> 3409 3410 Land the frameGeometry->frameRect changes that I forgot to land in WebKit. 3411 3412 * Interfaces/IWebScrollBarPrivate.idl: 3413 * WebCoreSupport/EmbeddedWidget.cpp: 3414 (EmbeddedWidget::setFrameRect): 3415 (EmbeddedWidget::frameRectsChanged): 3416 * WebCoreSupport/EmbeddedWidget.h: 3417 * WebScrollBar.cpp: 3418 (WebScrollBar::setRect): 3419 (WebScrollBar::frameRect): 3420 * WebScrollBar.h: 3421 3422 2008-09-27 Anders Carlsson <andersca (a] apple.com> 3423 3424 Fix build. 3425 3426 * WebCoreSupport/EmbeddedWidget.cpp: 3427 (EmbeddedWidget::setFrameRect): 3428 (EmbeddedWidget::frameRectsChanged): 3429 * WebCoreSupport/EmbeddedWidget.h: 3430 * WebScrollBar.cpp: 3431 (WebScrollBar::setRect): 3432 (WebScrollBar::frameGeometry): 3433 3434 2008-09-26 David Kilzer <ddkilzer (a] apple.com> 3435 3436 Speculative Windows build fix with XSLT disabled 3437 3438 Reviewed by Alexey. 3439 3440 * WebCache.cpp: 3441 (WebCache::statistics): Populate xslStyleSheet statistics with 3442 zeros if XSLT is disabled. 3443 3444 2008-09-24 Matt Lilek <webkit (a] mattlilek.com> 3445 3446 Reviewed by Darin Adler. 3447 3448 Bug 20999: Inspector hover to select does not work properly on Windows 3449 https://bugs.webkit.org/show_bug.cgi?id=20999 3450 <rdar://problem/6236524> 3451 3452 * WebNodeHighlight.cpp: 3453 (WebNodeHighlight::show): 3454 3455 2008-09-24 Darin Adler <darin (a] apple.com> 3456 3457 * English.lproj/Localizable.strings: Updated for recent changes. 3458 3459 2008-09-22 Alice Liu <alice.liu (a] apple.com> 3460 3461 Added record-memory-win.vcproj tool to the solution 3462 3463 Reviewed by Steve Falkenburg. 3464 3465 * WebKit.vcproj/WebKit.sln: 3466 3467 2008-09-20 Darin Adler <darin (a] apple.com> 3468 3469 - fix build 3470 3471 * WebCoreSupport/WebChromeClient.cpp: 3472 (WebChromeClient::paintCustomScrollbar): Tweaked constant names to make this 3473 compile, but it may not be working correctly. Hyatt should do the real fix. 3474 3475 2008-09-19 Alice Liu <alice.liu (a] apple.com> 3476 3477 Fix crash when submitting form at bugreport.apple.com rdar://6234126 3478 3479 Reviewed by Mark Rowe. 3480 3481 * COMPropertyBag.h: 3482 (::GetPropertyInfo): 3483 correct mis-use of comma operator 3484 3485 2008-09-18 Mark Rowe <mrowe (a] apple.com> 3486 3487 Reviewed by Dan Bernstein. 3488 3489 Add SPI to WebView to allow DRT to clear the main frame's name between tests. 3490 3491 * Interfaces/IWebViewPrivate.idl: 3492 * WebView.cpp: 3493 (WebView::clearMainFrameName): 3494 * WebView.h: 3495 3496 2008-09-16 Alp Toker <alp (a] nuanti.com> 3497 3498 Suggested by Dave Hyatt. 3499 3500 Build fix and cleanup. Rename ScrollBar to Scrollbar. 3501 3502 * WebScrollBar.cpp: 3503 * WebScrollBar.h: 3504 3505 2008-09-16 David Hyatt <hyatt (a] apple.com> 3506 3507 Eliminate PlatformScrollbar. 3508 3509 Reviewed by Sam Weinig 3510 3511 * WebScrollBar.cpp: 3512 (WebScrollBar::init): 3513 * WebScrollBar.h: 3514 3515 2008-09-15 Chris Fleizach <cfleizach (a] apple.com> 3516 3517 Reviewed by Darin Adler, Beth Dakin 3518 3519 Support strings for AXLists 3520 3521 * WebCoreLocalizedStrings.cpp: 3522 (WebCore::AXDefinitionListTermText): 3523 (WebCore::AXDefinitionListDefinitionText): 3524 3525 2008-09-13 Dave Hyatt <hyatt (a] apple.com> 3526 3527 Add ScrollbarTheme to the build. 3528 3529 Reviewed by Sam Weinig 3530 3531 * WebScrollBar.cpp: 3532 (WebScrollBar::requestedWidth): 3533 (WebScrollBar::requestedHeight): 3534 3535 2008-09-13 Dave Hyatt <hyatt (a] apple.com> 3536 3537 More scrollbar refactoring. 3538 3539 Reviewed by Sam Weinig 3540 3541 * WebScrollBar.h: 3542 3543 2008-09-08 Adam Roben <aroben (a] apple.com> 3544 3545 Respect the font smoothing preference when drawing via WebKitGraphics 3546 3547 Reviewed by Dave Hyatt. 3548 3549 * WebKitGraphics.cpp: 3550 (makeFont): Check the font smoothing preference and update the 3551 FontDescription's rendering mode based on it. 3552 3553 2008-09-08 Steve Falkenburg <sfalken (a] apple.com> 3554 3555 Another Windows nightly build fix. 3556 3557 Remove non-production versions of CLSIDs since we'll use registry free COM with 3558 an embedded manifest now in all cases to find COM classes. 3559 3560 Reviewed by Sam Weinig. 3561 3562 * ForEachCoClass.cpp: 3563 (setUseOpenSourceWebKit): Remove COM registration code. 3564 * Interfaces/WebKit.idl: Remove non-production COM classes 3565 3566 2008-09-07 Cameron Zwarich <cwzwarich (a] uwaterloo.ca> 3567 3568 Reviewed by Maciej Stachowiak. 3569 3570 Bug 20704: Replace the KJS namespace 3571 <https://bugs.webkit.org/show_bug.cgi?id=20704> 3572 3573 Rename the KJS namespace to JSC. 3574 3575 * WebCoreStatistics.cpp: 3576 * WebJavaScriptCollector.cpp: 3577 * WebScriptCallFrame.cpp: 3578 (WebScriptCallFrame::jsValueToString): 3579 * WebScriptCallFrame.h: 3580 (WebScriptCallFrame::state): 3581 * WebView.cpp: 3582 (WebView::WebView): 3583 (WebView::stringByEvaluatingJavaScriptFromString): 3584 3585 2008-09-05 Dave Hyatt <hyatt (a] apple.com> 3586 3587 Add support for runtime switchability of the Aqua look and the native look on Windows. 3588 Make RenderThemeWin compile by default even when USE(SAFARI_THEME) is set. 3589 3590 Reviewed by Adam Roben 3591 3592 * Interfaces/IWebPreferencesPrivate.idl: 3593 * WebPreferenceKeysPrivate.h: 3594 * WebPreferences.cpp: 3595 (WebPreferences::initializeDefaultSettings): 3596 (WebPreferences::shouldPaintNativeControls): 3597 (WebPreferences::setShouldPaintNativeControls): 3598 * WebPreferences.h: 3599 * WebView.cpp: 3600 (WebView::notifyPreferencesChanged): 3601 3602 2008-09-04 Adam Roben <aroben (a] apple.com> 3603 3604 Make JavaScriptCoreGenerated build first instead of WTF 3605 3606 JavaScriptCoreGenerated does some setup work that we want to happen 3607 before WTF builds. 3608 3609 * WebKit.vcproj/WebKit.sln: Reversed the dependencies of WTF and 3610 JavaScriptCoreGenerated. 3611 3612 2008-08-30 Sam Weinig <sam (a] webkit.org> 3613 3614 Reviewed by Dan Bernstein. 3615 3616 Add WebView SPI to defer loading callbacks. 3617 3618 * Interfaces/IWebViewPrivate.idl: 3619 * WebView.cpp: 3620 (WebView::setDefersCallbacks): 3621 (WebView::defersCallbacks): 3622 * WebView.h: 3623 3624 2008-08-28 Adele Peterson <adele (a] apple.com> 3625 3626 Build fix. 3627 3628 * WebIconDatabase.cpp: (WebIconDatabase::getOrCreateDefaultIconBitmap): 3629 3630 2008-08-28 Holger Hans Peter Freyther <zecke (a] selfish.org> 3631 3632 Rubber-stamped by Darin Adler. 3633 3634 https://bugs.webkit.org/show_bug.cgi?id=17261 3635 3636 Remove the urlIcon.png from the project and the resource file. Remove 3637 the usage of this icon from WebKitDLL.cpp and change WebIconDatabase 3638 to get the icon from the IconDatabase code which is using a version of 3639 the icon that is compiled into the code. 3640 3641 * WebIconDatabase.cpp: 3642 (WebIconDatabase::getOrCreateDefaultIconBitmap): Use the icon from the 3643 IconDatabase.cpp 3644 * WebKit.vcproj/WebKit.rc: Remove urlIcon.cpp 3645 * WebKit.vcproj/urlIcon.png: Removed. 3646 * WebKitDLL.cpp: 3647 (loadResourceIntoBuffer): Remove "urlIcon" 3648 3649 2008-08-27 Alice Liu <alice.liu (a] apple.com> 3650 3651 Add interface for obtaining JS object counts broken down by type 3652 3653 Reviewed by Steve Falkenburg. 3654 3655 * Interfaces/IWebCoreStatistics.idl: 3656 * WebCoreStatistics.cpp: 3657 (WebCoreStatistics::javaScriptProtectedObjectTypeCounts): 3658 * WebCoreStatistics.h: 3659 3660 2008-08-27 Ada Chan <adachan (a] apple.com> 3661 3662 Fixed build. 3663 3664 * WebFrame.cpp: 3665 (WebFrame::pluginWillHandleLoadError): 3666 3667 2008-08-27 Brady Eidson <beidson (a] apple.com> 3668 3669 Reviewed by Anders 3670 3671 <rdar://problem/6134133> - Crash when loading large movie as a standalone document 3672 3673 * WebFrame.cpp: 3674 (WebFrame::pluginWillHandleLoadError): 3675 * WebFrame.h: 3676 3677 2008-08-26 Alice Liu <alice.liu (a] apple.com> 3678 3679 Implement COMPropertyBag::GetPropertyInfo 3680 and a variant setter for type int 3681 3682 Reviewed by Anders Carlsson. 3683 3684 * COMPropertyBag.h: 3685 (::GetPropertyInfo): 3686 * COMVariantSetter.h: 3687 3688 2008-08-25 Adam Roben <aroben (a] apple.com> 3689 3690 Fix an assertion when showing the Web Inspector 3691 3692 Reviewed by Kevin McCullough. 3693 3694 * WebCoreSupport/WebInspectorClient.cpp: 3695 (WebInspectorClient::attachWindow): 3696 (WebInspectorClient::detachWindow): 3697 Recent code changes have caused these functions to get called even 3698 when the window is already attached/detached, respectively. Handle 3699 this case gracefully instead of asserting something that is no longer 3700 true. 3701 3702 2008-08-24 Beth Dakin <bdakin (a] apple.com> 3703 3704 Reviewed by John Sullivan. 3705 3706 Provide the excludeFromTextSearch SPI on Windows as well. 3707 3708 * Interfaces/IWebFrame.idl: 3709 * WebFrame.cpp: 3710 (WebFrame::setExcludeFromTextSearch): 3711 * WebFrame.h: 3712 3713 2008-08-24 Jon Honeycutt <jhoneycutt (a] apple.com> 3714 3715 Cannot get the focused accessible object from the root object. 3716 3717 AccessibleBase::get_AccFocus() checks whether the focused object is a 3718 child of the current object, but 3719 http://msdn.microsoft.com/en-us/library/ms696150(VS.85).aspx states that 3720 the result is the object itself, if it has focus, or a child object of 3721 the active window, not a child of the object. 3722 3723 Reviewed by Sam Weinig. 3724 3725 * AccessibleBase.cpp: 3726 (AccessibleBase::get_accFocus): Don't check whether the focused object 3727 is our child. 3728 3729 2008-08-18 Jon Honeycutt <jhoneycutt (a] apple.com> 3730 3731 Add SPI to make a Windows WebView transparent. 3732 3733 Reviewed by Dan Bernstein. 3734 3735 * Interfaces/IWebViewPrivate.idl: 3736 * WebCoreSupport/WebFrameLoaderClient.cpp: 3737 (WebFrameLoaderClient::transitionToCommittedForNewPage): Call 3738 updateBackground() when a new frame is attached, matching the Mac. 3739 * WebFrame.cpp: 3740 (WebFrame::updateBackground): Propagate WebView transparency to ourself 3741 and our child frames. 3742 * WebFrame.h: 3743 * WebView.cpp: 3744 (WebView::WebView): 3745 (WebView::paintIntoBackingStore): Pass m_transparent when creating a 3746 GraphicsContext, so the context will be created with an alpha channel. 3747 (WebView::setTransparent): 3748 (WebView::transparent): 3749 * WebView.h: 3750 3751 2008-08-12 Jon Honeycutt <jhoneycutt (a] apple.com> 3752 3753 Add SPI to get a handle to the WebView's backing store bitmap. 3754 3755 Reviewed by Dan Bernstein. 3756 3757 * Interfaces/IWebViewPrivate.idl: 3758 * WebView.cpp: 3759 (WebView::backingStore): 3760 * WebView.h: 3761 3762 2008-08-21 Jonas Klink <klinktech (a] gmail.com> 3763 3764 Reviewed by Jon Honeycutt. 3765 3766 Fix https://bugs.webkit.org/show_bug.cgi?id=20231 3767 Bug 20231: accNavigate: no screen element found in the specified direction should return S_FALSE 3768 3769 Per <http://msdn.microsoft.com/en-us/library/ms696145(VS.85).aspx>, we should return S_FALSE 3770 from accNavigate if no screen element is found in the specified direction. 3771 3772 * AccessibleBase.cpp: 3773 (AccessibleBase::accNavigate): 3774 3775 2008-08-21 Jonas Klink <klinktech (a] gmail.com> 3776 3777 Reviewed by Jon Honeycutt. 3778 3779 Fix http://bugs.webkit.org/show_bug.cgi?id=20230 3780 Bug 20230: get_accState should be testing state on childObj 3781 3782 Also initializes output parameter action to 0 in get_accDefaultAction. 3783 3784 * AccessibleBase.cpp: 3785 (AccessibleBase::get_accState): 3786 (AccessibleBase::get_accDefaultAction): 3787 3788 2008-08-20 Maxime Britto <britto (a] apple.com> 3789 3790 Reviewed by Ada Chan. 3791 3792 rdar://5259746 3793 Mouse events are sent to page while resizing window (affects Gmail) 3794 In the WebView, if the MouseEvent is located in the resize corner, we send it back to the UIDelegate and early return. 3795 3796 * Interfaces/IWebUIDelegatePrivate.idl: Add a new method to the UIDelegate to send the resize message 3797 * WebView.cpp: 3798 (WebView::handleMouseEvent): If the mouse event is in the resize corner and our UIDelegate supports the message it sends the new message and early returns 3799 3800 2008-08-19 Alexey Proskuryakov <ap (a] webkit.org> 3801 3802 Reviewed by Geoff Garen. 3803 3804 Bring back shared JSGlobalData and implicit locking, because too many clients rely on it. 3805 3806 * WebCoreStatistics.cpp: 3807 (WebCoreStatistics::javaScriptObjectsCount): 3808 (WebCoreStatistics::javaScriptGlobalObjectsCount): 3809 (WebCoreStatistics::javaScriptProtectedObjectsCount): 3810 (WebCoreStatistics::javaScriptProtectedGlobalObjectsCount): 3811 * WebJavaScriptCollector.cpp: 3812 (WebJavaScriptCollector::objectCount): 3813 * WebScriptCallFrame.cpp: 3814 (WebScriptCallFrame::stringByEvaluatingJavaScriptFromString): 3815 * WebView.cpp: 3816 (WebView::stringByEvaluatingJavaScriptFromString): 3817 3818 2008-08-19 Steve Falkenburg <sfalken (a] apple.com> 3819 3820 Fix build. 3821 3822 * WebScriptCallFrame.cpp: 3823 (WebScriptCallFrame::jsValueToString): 3824 3825 2008-08-14 Steve Falkenburg <sfalken (a] apple.com> 3826 3827 Update cache capacities to match values used on Mac. 3828 3829 Reviewed by Dan Bernstein. 3830 3831 * WebView.cpp: 3832 (WebView::setCacheModel): 3833 3834 2008-08-14 Sam Weinig <sam (a] webkit.org> 3835 3836 Reviewed by Jon Honeycutt. 3837 3838 Add WebView SPI to set HTMLTokenizer yielding parameters. 3839 3840 * Interfaces/IWebViewPrivate.idl: 3841 * WebView.cpp: 3842 (WebView::setCustomHTMLTokenizerTimeDelay): 3843 (WebView::setCustomHTMLTokenizerChunkSize): 3844 * WebView.h: 3845 3846 2008-08-13 Eric Seidel <eric (a] webkit.org> 3847 3848 Attempt to fix the windows build, not review. 3849 3850 * WebIconDatabase.cpp: 3851 (WebIconDatabase::getOrCreateDefaultIconBitmap): 3852 3853 2008-08-13 Ada Chan <adachan (a] apple.com> 3854 3855 Implemented DOMHTMLElement::idName() and WebFrame::frameElement(). 3856 Added IWebFrame::paintDocumentRectToContext() so we can paint a frame's 3857 content into a device context. Changed WebView::paintDocumentRectToContext() 3858 to call that WebFrame method. 3859 3860 Reviewed by Adam Roben. 3861 3862 * DOMHTMLClasses.cpp: 3863 (DOMHTMLElement::idName): 3864 * Interfaces/IWebFramePrivate.idl: 3865 * WebFrame.cpp: 3866 (WebFrame::paintDocumentRectToContext): 3867 (WebFrame::frameElement): 3868 * WebFrame.h: 3869 * WebView.cpp: 3870 (WebView::paintDocumentRectToContext): 3871 3872 2008-08-12 Timothy Hatcher <timothy (a] apple.com> 3873 3874 Add a stub for InspectorClient::setAttachedWindowHeight. 3875 3876 * WebCoreSupport/WebInspectorClient.cpp: 3877 (WebInspectorClient::setAttachedWindowHeight): Add a FIXME to implement this. 3878 * WebCoreSupport/WebInspectorClient.h: 3879 3880 2008-08-12 Adam Roben <aroben (a] apple.com> 3881 3882 Export WTFLog in Debug builds 3883 3884 Reviewed by John Sullivan. 3885 3886 * WebKit.vcproj/WebKit_debug.def: 3887 3888 2008-08-07 Steve Falkenburg <sfalken (a] apple.com> 3889 3890 Delete backing stores before 5 second WM_TIMER fires if more than 2 are already queued. 3891 3892 WM_TIMER-based timers can be starved if enough other events are keeping 3893 our message loop busy. This change prevents many backing store deletes from stacking 3894 up in this case. 3895 3896 Reviewed by Geoff Garen. 3897 3898 * WebView.cpp: 3899 (WebView::deleteBackingStore): 3900 (WebView::deleteBackingStoreSoon): 3901 (WebView::cancelDeleteBackingStoreSoon): 3902 3903 2008-08-05 Ada Chan <adachan (a] apple.com> 3904 3905 Add a getter for CFURLRequestRef in WebMutableURLRequest. 3906 3907 Reviewed by Anders Carlsson. 3908 3909 * Interfaces/IWebMutableURLRequestPrivate.idl: 3910 * WebMutableURLRequest.cpp: 3911 (WebMutableURLRequest::cfRequest): 3912 * WebMutableURLRequest.h: 3913 3914 2008-08-05 Steve Falkenburg <sfalken (a] apple.com> 3915 3916 Don't invalidate a WebView in the process of being closed when prefs change. 3917 3918 Reviewed by Ada Chan. 3919 3920 * WebView.cpp: 3921 (WebView::notifyPreferencesChanged): 3922 3923 2008-08-04 Alice Liu <alice.liu (a] apple.com> 3924 3925 Reviewed by Steve Falkenburg. 3926 3927 Fix CFDictionary leak 3928 3929 * CFDictionaryPropertyBag.cpp: 3930 (CFDictionaryPropertyBag::Write): 3931 m_dictionary is a RetainPtr and should adopt the CF type created 3932 3933 2008-08-02 Maxime Britto <britto (a] apple.com> 3934 3935 Reviewed by Eric Seidel. 3936 3937 These icons are copies from the resizers in WebCore/Ressources 3938 3939 * ChangeLog: 3940 * WebKit.vcproj/WebKit.rc: 3941 * WebKit.vcproj/panEastCursor.png: Added. 3942 * WebKit.vcproj/panNorthCursor.png: Added. 3943 * WebKit.vcproj/panNorthEastCursor.png: Added. 3944 * WebKit.vcproj/panNorthWestCursor.png: Added. 3945 * WebKit.vcproj/panSouthCursor.png: Added. 3946 * WebKit.vcproj/panSouthEastCursor.png: Added. 3947 * WebKit.vcproj/panSouthWestCursor.png: Added. 3948 * WebKit.vcproj/panWestCursor.png: Added. 3949 * WebKit.vcproj/resource.h: 3950 * WebKitDLL.cpp: 3951 (loadResourceIntoBuffer): 3952 3953 2008-08-01 Beth Dakin <bdakin (a] apple.com> 3954 3955 Reviewed by Adam Roben. 3956 3957 Fix for <rdar://problem/6119382> Need to hook up WebFrame's 3958 disconnected frame API on Windows. 3959 3960 * Interfaces/IWebFrame.idl: 3961 * WebFrame.cpp: 3962 (WebFrame::setIsDisconnected): 3963 * WebFrame.h: 3964 3965 2008-08-01 Adam Roben <aroben (a] apple.com> 3966 3967 Fix <rdar://6118733> REGRESSION (r35502): Crash when submitting any 3968 form 3969 3970 Reviewed by Darin Adler. 3971 3972 * COMPropertyBag.h: 3973 (COMPropertyBag::QueryInterface): Cast to an appropriate type before 3974 assigning into ppvObject. 3975 3976 2008-07-31 Anders Carlsson <andersca (a] apple.com> 3977 3978 Reviewed by Adam. 3979 3980 Get rid of FormValuesPropertyBag and use COMPropertyBag instead. 3981 3982 * COMPropertyBag.h: 3983 Implement parts of IPropertyBag2. 3984 Currently just one method (CountProperties) is implemented. 3985 3986 * WebCoreSupport/FormValuesPropertyBag.cpp: Removed. 3987 * WebCoreSupport/FormValuesPropertyBag.h: Removed. 3988 3989 * WebFrame.cpp: 3990 (WebFrame::dispatchWillSubmitForm): 3991 Create a COMPropertyBag instead. 3992 3993 * WebKit.vcproj/WebKit.vcproj: 3994 3995 2008-07-31 Anders Carlsson <andersca (a] apple.com> 3996 3997 Reviewed by Jon. 3998 3999 Tweak the names. 4000 4001 * WebCoreSupport/WebFrameLoaderClient.cpp: 4002 (WebFrameLoaderClient::createPlugin): 4003 4004 2008-07-31 Anders Carlsson <andersca (a] apple.com> 4005 4006 Reviewed by Jon. 4007 4008 <rdar://problem/5826110> 4009 4010 Add a way for WebKit clients to embed custom content in web pages. 4011 4012 * Interfaces/IWebEmbeddedView.idl: Added. 4013 New interface which an embedded view must implement. 4014 4015 * Interfaces/IWebUIDelegatePrivate.idl: 4016 Add new UI delegate method for creating an embedded view. 4017 4018 * Interfaces/WebKit.idl: 4019 Include IWebEmbeddedView.idl. 4020 4021 * WebCoreSupport/EmbeddedWidget.cpp: Added. 4022 * WebCoreSupport/EmbeddedWidget.h: Added. 4023 Add EmbeddedWidget, a widget subclass which can hold an IWebEmbeddedView. 4024 4025 * WebCoreSupport/WebFrameLoaderClient.cpp: 4026 (WebFrameLoaderClient::createPlugin): 4027 Check if the UI delegate wants to create an embedded view. 4028 4029 * WebKit.vcproj/WebKit.vcproj: 4030 Add EmbeddedWidget.{cpp|h} 4031 4032 2008-07-31 Alexey Proskuryakov <ap (a] webkit.org> 4033 4034 Rubber-stamped by Maciej. 4035 4036 Eliminate JSLock (it was already disabled, removing the stub implementaion and all 4037 call sites now). 4038 4039 * WebCoreStatistics.cpp: 4040 (WebCoreStatistics::javaScriptObjectsCount): 4041 (WebCoreStatistics::javaScriptGlobalObjectsCount): 4042 (WebCoreStatistics::javaScriptProtectedObjectsCount): 4043 (WebCoreStatistics::javaScriptProtectedGlobalObjectsCount): 4044 * WebJavaScriptCollector.cpp: 4045 (WebJavaScriptCollector::objectCount): 4046 * WebScriptCallFrame.cpp: 4047 (WebScriptCallFrame::stringByEvaluatingJavaScriptFromString): 4048 * WebView.cpp: 4049 (WebView::stringByEvaluatingJavaScriptFromString): 4050 4051 2008-07-31 Jon Honeycutt <jhoneycutt (a] apple.com> 4052 4053 Windows build fix. 4054 4055 * WebURLResponse.cpp: 4056 4057 2008-07-30 Mark Rowe <mrowe (a] apple.com> 4058 4059 Windows build fix. 4060 4061 * WebURLResponse.cpp: Don't include a header file that we just deleted. 4062 4063 2008-07-30 Anders Carlsson <andersca (a] apple.com> 4064 4065 Reviewed by Mitz. 4066 4067 Use a COMPropertyBag instead of the HTTPHeaderPropertyBag. 4068 4069 * HTTPHeaderPropertyBag.cpp: Removed. 4070 * HTTPHeaderPropertyBag.h: Removed. 4071 * WebURLResponse.cpp: 4072 (WebURLResponse::allHeaderFields): 4073 4074 2008-07-30 Anders Carlsson <andersca (a] apple.com> 4075 4076 Fix copyright years. 4077 4078 * COMPropertyBag.h: 4079 * COMVariantSetter.h: 4080 4081 2008-07-30 Anders Carlsson <andersca (a] apple.com> 4082 4083 Reviewed by Sam. 4084 4085 More property bag work. 4086 4087 * COMPropertyBag.h: 4088 (COMPropertyBag::COMPropertyBag): 4089 (::adopt): 4090 (::Read): 4091 * COMVariantSetter.h: 4092 (COMIUnknownVariantSetter::setVariant): 4093 4094 2008-07-30 Anders Carlsson <andersca (a] apple.com> 4095 4096 Reviewed by Sam. 4097 4098 Add COMPropertyBag, a simple template class that implements the IPropertyBag interface. All 4099 property bag values must be of the same type. 4100 4101 The COMVariantSetter helpers are now in COMVariantSetter.h 4102 4103 * COMEnumVariant.h: 4104 * COMPropertyBag.h: Added. 4105 * COMVariantSetter.h: Added. 4106 * WebKit.vcproj/WebKit.vcproj: 4107 4108 2008-07-30 Alice Liu <alice.liu (a] apple.com> 4109 4110 Reviewed by Adam Roben. 4111 4112 Adding logging of COM class names and counts to facilitate 4113 investigating memory issues. 4114 4115 * Interfaces/IWebKitStatistics.idl: 4116 * WebKitDLL.cpp: 4117 * WebKitDLL.h: 4118 * WebKitStatistics.cpp: 4119 (WebKitStatistics::comClassNameCounts): 4120 * WebKitStatistics.h: 4121 4122 2008-07-29 Alice Liu <alice.liu (a] apple.com> 4123 4124 Reviewed by Geoff Garen. 4125 4126 Fix WebDocumentLoader leak on Windows. 4127 4128 * WebCoreSupport/WebFrameLoaderClient.cpp: 4129 (WebFrameLoaderClient::createDocumentLoader): 4130 * WebDocumentLoader.cpp: 4131 (WebDocumentLoader::create): 4132 * WebDocumentLoader.h: 4133 4134 2008-07-29 Adam Roben <aroben (a] apple.com> 4135 4136 Export detachThread 4137 4138 Reviewed by Geoff Garen. 4139 4140 * WebKit.vcproj/WebKit.def: 4141 * WebKit.vcproj/WebKit_debug.def: 4142 4143 2008-07-29 Adam Roben <aroben (a] apple.com> 4144 4145 Export the new version of createThread 4146 4147 Reviewed by Anders Carlsson. 4148 4149 * WebKit.vcproj/WebKit.def: 4150 * WebKit.vcproj/WebKit_debug.def: 4151 Also moved the old version of createThread into the deprecated 4152 section. 4153 4154 2008-07-26 Matt Lilek <webkit (a] mattlilek.com> 4155 4156 Reviewed by Geoff Garen. 4157 4158 Changes to accommodate newly named/signatured loading methods in WebCore. 4159 4160 * WebCoreSupport/WebContextMenuClient.cpp: 4161 (WebContextMenuClient::searchWithGoogle): 4162 * WebCoreSupport/WebFrameLoaderClient.cpp: 4163 (WebFrameLoaderClient::loadURLIntoChild): 4164 4165 2008-07-25 Adam Roben <aroben (a] apple.com> 4166 4167 Try to fix the Windows build bot 4168 4169 * WebKit.vcproj/WebKit.sln: Linearize the project dependencies. Each 4170 project now depends only on the project that should immediately 4171 precede it in the build. For the frameworks, this order makes sense. 4172 For the applications built on top of the frameworks, the order is 4173 arbitrary (but roughly follows the applications' complexity). 4174 4175 2008-07-17 Adele Peterson <adele (a] apple.com> 4176 4177 Reviewed by Adam. 4178 4179 WebKit part of fix for <rdar://problem/5698672> Add drawing callback for a WebKit app to draw its own scrollbars 4180 4181 Added a setting so an application can tell WebKit its going to draw custom scrollbars. Also added delegate methods for the actual painting. 4182 4183 * Interfaces/IWebPreferences.idl: Added setShouldPaintCustomScrollbars and shouldPaintCustomScrollbars. 4184 * Interfaces/IWebScrollBarPrivate.idl: Moved types to WebScrollbarTypes.idl 4185 * Interfaces/IWebUIDelegate.idl: Added WebUIDelegate4 with new delegate methods, paintCustomScrollbar and paintCustomScrollCorner 4186 * Interfaces/WebKit.idl: Include new WebScrollbarTypes.idl 4187 * Interfaces/WebScrollbarTypes.idl: Added. Has types that the new delegate methods use. 4188 * WebCoreSupport/WebChromeClient.cpp: 4189 (WebChromeClient::paintCustomScrollbar): Added. Calls new delegate method and converts between WebCore types and types exported in WebScrollbarTypes.idl 4190 (WebChromeClient::paintCustomScrollCorner): Added. Calls new delegate method. 4191 (WebChromeClient::uiDelegate4): Added. 4192 * WebCoreSupport/WebChromeClient.h: 4193 * WebPreferenceKeysPrivate.h: Added WebKitPaintCustomScrollbarsPreferenceKey 4194 * WebPreferences.cpp: 4195 (WebPreferences::): Added. 4196 (WebPreferences::shouldPaintCustomScrollbars): Added. 4197 * WebPreferences.h: 4198 * WebView.cpp: (WebView::notifyPreferencesChanged): 4199 4200 2008-07-15 Adam Roben <aroben (a] apple.com> 4201 4202 Add WebKit[Set]ShouldUseFontSmoothing functions 4203 4204 <rdar://6059127> 4205 4206 Reviewed by John Sullivan. 4207 4208 * WebKit.vcproj/WebKit.def: 4209 * WebKit.vcproj/WebKit_debug.def: 4210 Export the new functions. 4211 * WebKitGraphics.cpp: 4212 (WebKitSetShouldUseFontSmoothing): 4213 (WebKitShouldUseFontSmoothing): 4214 Call through to the relevant WebCore functions. 4215 * WebKitGraphics.h: 4216 4217 2008-07-14 Steve Falkenburg <sfalken (a] apple.com> 4218 4219 Don't include autoversion.h in WebKitDLL.cpp. 4220 autoversion.h changes for every build, so we don't want to include it unless necessary. 4221 4222 Rubber stamped by Ada Chan. 4223 4224 * WebKitDLL.cpp: 4225 4226 2008-07-14 Adam Roben <aroben (a] apple.com> 4227 4228 Windows build fix 4229 4230 * WebJavaScriptCollector.cpp: 4231 (WebJavaScriptCollector::objectCount): Updated to match 4232 -[WebCoreStatistics javaScriptsObjectCount]. 4233 4234 2008-07-14 Alexey Proskuryakov <ap (a] webkit.org> 4235 4236 Reviewed by Geoff Garen. 4237 4238 Eliminate per-thread JavaScript global data instance support and make arbitrary 4239 global data/global object combinations possible. 4240 4241 * WebCoreStatistics.cpp: 4242 (WebCoreStatistics::javaScriptObjectsCount): 4243 (WebCoreStatistics::javaScriptGlobalObjectsCount): 4244 (WebCoreStatistics::javaScriptProtectedObjectsCount): 4245 (WebCoreStatistics::javaScriptProtectedGlobalObjectsCount): 4246 Ask WebCore for its instance of JSGlobalData, now that it is not in per-thread storage. 4247 4248 2008-07-11 Steve Falkenburg <sfalken (a] apple.com> 4249 4250 Build fix. 4251 4252 * WebKit.vcproj/WebKit.vcproj: 4253 4254 2008-07-10 Steve Falkenburg <sfalken (a] apple.com> 4255 4256 Build fix. 4257 4258 * WebKit.vcproj/Interfaces.vcproj: 4259 4260 2008-07-10 Adam Roben <aroben (a] apple.com> 4261 4262 Windows build fix 4263 4264 * WebKit.vcproj/resource.h: Revert some changes that VS made to this 4265 file in r35083. 4266 4267 2008-07-09 Maxime Britto <britto (a] apple.com> 4268 4269 Reviewed by Adele. 4270 4271 Added the panning icon in the ressources. 4272 Its name is compass.png to make a difference with moveCursor.png (from the WebCore ressources) 4273 4274 * ChangeLog: 4275 * WebKit.vcproj/WebKit.rc: 4276 * WebKit.vcproj/panIcon.png: Added. 4277 * WebKit.vcproj/resource.h: 4278 * WebKitDLL.cpp: Declared the new ressource with the name "panIcon" 4279 (loadResourceIntoBuffer): 4280 4281 2008-07-02 Dan Bernstein <mitz (a] apple.com> 4282 4283 - try to fix the Windows build 4284 4285 * WebScriptCallFrame.cpp: 4286 4287 2008-07-01 Alexey Proskuryakov <ap (a] webkit.org> 4288 4289 Reviewed by Darin Adler. 4290 4291 Disable JSLock for per-thread contexts. 4292 4293 * WebCoreStatistics.cpp: 4294 (WebCoreStatistics::javaScriptObjectsCount): 4295 (WebCoreStatistics::javaScriptGlobalObjectsCount): 4296 (WebCoreStatistics::javaScriptProtectedObjectsCount): 4297 (WebCoreStatistics::javaScriptProtectedGlobalObjectsCount): 4298 * WebScriptCallFrame.cpp: 4299 (WebScriptCallFrame::stringByEvaluatingJavaScriptFromString): 4300 * WebView.cpp: 4301 (WebView::stringByEvaluatingJavaScriptFromString): 4302 Pass a parameter (false) to JSLock to indicate that WebKit doesn't need locking. 4303 Include JSLock.h, as it is no longer brought in implicitly. 4304 4305 2008-06-27 Adam Roben <aroben (a] apple.com> 4306 4307 Change WebKitGraphics truncation functions to return the length of the 4308 truncated string 4309 4310 Reviewed by Darin Adler. 4311 4312 * WebKitGraphics.cpp: 4313 (CenterTruncateStringToWidth): 4314 (RightTruncateStringToWidth): 4315 Return the length. 4316 * WebKitGraphics.h: 4317 The truncation functions now return an unsigned int that is the length 4318 of the truncated string. The whole file has been marked extern "C" to 4319 keep the symbols for these functions from changing (which would break 4320 nightly builds). 4321 4322 2008-06-19 Alexey Proskuryakov <ap (a] webkit.org> 4323 4324 Windows build fix. 4325 4326 * WebJavaScriptCollector.cpp: Added a missing include. 4327 4328 2008-06-17 Alexey Proskuryakov <ap (a] webkit.org> 4329 4330 Reviewed by Darin Adler. 4331 4332 Prepare JavaScript heap for being per-thread. 4333 4334 * WebCoreStatistics.cpp: 4335 (WebCoreStatistics::javaScriptObjectsCount): 4336 (WebCoreStatistics::javaScriptGlobalObjectsCount): 4337 (WebCoreStatistics::javaScriptProtectedObjectsCount): 4338 (WebCoreStatistics::javaScriptProtectedGlobalObjectsCount): 4339 * WebJavaScriptCollector.cpp: 4340 (WebJavaScriptCollector::objectCount): 4341 Use JSGlobalData::threadInstance()->heap instead of static Collector calls. 4342 4343 * WebScriptCallFrame.cpp: 4344 (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString): Pass ExecState* where 4345 now required. 4346 4347 2008-06-16 Alexey Proskuryakov <ap (a] webkit.org> 4348 4349 Trying to fix Windows build. 4350 4351 * WebScriptCallFrame.cpp: 4352 (WebScriptCallFrame::variableNames): 4353 (WebScriptCallFrame::valueForVariable): 4354 Give ExecState to functions that now take it. 4355 4356 2008-06-16 Adam Roben <aroben (a] apple.com> 4357 4358 Windows build fix 4359 4360 * WebScriptCallFrame.cpp: Fixed a header name. 4361 4362 2008-06-15 Darin Adler <darin (a] apple.com> 4363 4364 - give Frame object functions shorter names: scriptProxy() -> script(), 4365 selectionController() -> selection(), animationController() -> animation() 4366 4367 * WebFrame.cpp: 4368 (WebFrame::globalContext): 4369 (WebFrame::windowObjectCleared): 4370 * WebView.cpp: 4371 (WebView::handleContextMenuEvent): 4372 (WebViewWndProc): 4373 (WebView::updateFocusedAndActiveState): 4374 (WebView::hasSelectedRange): 4375 (WebView::replaceSelectionWithText): 4376 (WebView::clearSelection): 4377 (WebView::prepareCandidateWindow): 4378 (WebView::onIMERequestCharPosition): 4379 (WebView::onIMERequestReconvertString): 4380 4381 2008-06-15 Darin Adler <darin (a] apple.com> 4382 4383 - rename KJS::List to KJS::ArgList 4384 4385 * WebScriptCallFrame.cpp: 4386 (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString): 4387 4388 2008-06-15 Darin Adler <darin (a] apple.com> 4389 4390 - new names for a few key JavaScriptCore files 4391 4392 * WebView.cpp: 4393 4394 2008-06-15 Darin Adler <darin (a] apple.com> 4395 4396 Rubber stamped by Sam. 4397 4398 - use JS prefix and simpler names for basic JavaScriptCore types, 4399 to complement JSValue and JSObject 4400 4401 * WebScriptCallFrame.cpp: 4402 (WebScriptCallFrame::functionName): 4403 4404 2008-06-15 Maciej Stachowiak <mjs (a] apple.com> 4405 4406 Rubber stamped by Oliver. 4407 4408 - fix WebKit solution for testkjs --> jsc rename 4409 4410 * WebKit.vcproj/WebKit.sln: 4411 4412 2008-06-14 Darin Adler <darin (a] apple.com> 4413 4414 Rubber stamped by Sam. 4415 4416 - new names for kjs_binding.h and kjs_proxy.h 4417 4418 * WebFrame.cpp: 4419 4420 2008-06-14 Darin Adler <darin (a] apple.com> 4421 4422 Rubber stamped by Sam. 4423 4424 - renamed HTMLGenericFormElement to HTMLFormControlElement 4425 4426 * WebFrame.cpp: 4427 (WebFrame::elementWithName): 4428 (WebFrame::controlsInForm): 4429 4430 2008-06-14 Darin Adler <darin (a] apple.com> 4431 4432 - try to fix Windows build, again 4433 4434 * WebFrame.cpp: 4435 (WebFrame::dispatchDecidePolicyForNewWindowAction): Fix arguments. Pass form. 4436 (WebFrame::dispatchDecidePolicyForNavigationAction): Ditto. 4437 * WebFrame.h: Fix arguments. 4438 4439 2008-06-14 Darin Adler <darin (a] apple.com> 4440 4441 - try to fix Windows build 4442 4443 * WebActionPropertyBag.cpp: 4444 (WebActionPropertyBag::Read): Use IDOMNode, not IHTMLFormElement. 4445 * WebFrame.h: Added missing FormState arguments. 4446 * WebScrollBar.cpp: 4447 (WebScrollBar::init): Use create instead of new. 4448 4449 2008-06-14 Darin Adler <darin (a] apple.com> 4450 4451 Reviewed by Sam. 4452 4453 - more of https://bugs.webkit.org/show_bug.cgi?id=17257 4454 start ref counts at 1 instead of 0 for speed 4455 4456 * WebCoreSupport/WebFrameLoaderClient.cpp: 4457 (WebFrameLoaderClient::createFrame): Remove now-obsolete adoptRef that was balanced by 4458 a ref call inside the Frame constructor. The lifetime rules for Frame are now the 4459 conventional ones without a special case. 4460 4461 * WebFrame.cpp: 4462 (WebFrame::init): Renamed function from initWithWebFrameView and removed the unused 4463 IWebFrameView argument (every caller was passing 0). Also changed this to return the 4464 WebCore Frame object, which is needed to straighten out the lifetime and ownership 4465 issues. 4466 * WebFrame.h: Ditto. 4467 4468 * WebView.cpp: 4469 (WebView::initWithFrame): Changed to call new init function and use the return value. 4470 4471 2008-06-13 Darin Adler <darin (a] apple.com> 4472 4473 Reviewed by John Sullivan. 4474 4475 - updated for addition of FormState argument to action policy functions 4476 - added WebActionFormKey 4477 4478 * Interfaces/IWebPolicyDelegate.idl: 4479 * WebActionPropertyBag.cpp: 4480 (WebActionPropertyBag::WebActionPropertyBag): 4481 (WebActionPropertyBag::createInstance): 4482 (WebActionPropertyBag::AddRef): 4483 (WebActionPropertyBag::Release): 4484 (WebActionPropertyBag::Read): 4485 * WebActionPropertyBag.h: 4486 * WebFrame.cpp: 4487 (WebFrame::dispatchDecidePolicyForNewWindowAction): 4488 (WebFrame::dispatchDecidePolicyForNavigationAction): 4489 4490 2008-06-07 Darin Adler <darin (a] apple.com> 4491 4492 Reviewed by Mitz. 4493 4494 - work on https://bugs.webkit.org/show_bug.cgi?id=17257 4495 start ref counts at 1 instead of 0 for speed 4496 4497 * WebHistoryItem.cpp: 4498 (WebHistoryItem::createInstance): 4499 (WebHistoryItem::initFromDictionaryRepresentation): 4500 (WebHistoryItem::initWithURLString): 4501 4502 2008-05-30 Steve Falkenburg <sfalken (a] apple.com> 4503 4504 Registry-free COM. 4505 4506 WebKit no longer requires COM registration. 4507 Registry-free COM information is read from the application manifest. 4508 4509 Only 1 set of CLSIDs are now used, since we don't need to worry about registry collisions. 4510 The second set remains, but only temporarily so nightlies continue to work. 4511 4512 This is supported for XPSP2 and later. Earlier systems require an installer 4513 to write the required registry keys. Nightlies and developer builds require 4514 XPSP2, Server 2003, or later. 4515 4516 Reviewed by Adam. 4517 4518 * ForEachCoClass.cpp: Moved COM registration code here from WebKitDLL.cpp. This is ONLY used in the nightly case. 4519 (substituteGUID): Moved here from WebKitDLL.cpp. 4520 (registerWebKit): Moved here from WebKitDLL.cpp. 4521 (setUseOpenSourceWebKit): Call registerWebKit instead of swapping progids. There is only 1 set of progids now - for the nightly. 4522 * ForEachCoClass.h: Removed production progids. 4523 * Interfaces/WebKit.idl: Added prototype for shutDownWebKit. 4524 * WebKit.vcproj/Interfaces.vcproj: Changed path to type library to move it out of project directory. 4525 * WebKit.vcproj/WebKit.vcproj: Changed path to type library to move it out of project directory. 4526 * WebKitDLL.cpp: 4527 (DllUnregisterServer): Does nothing. Entry point is still present for backward compatibility. 4528 (DllRegisterServer): Does nothing. Entry point is still present for backward compatibility. 4529 (RunAsLocalServer): Does nothing. Entry point is still present for backward compatibility. 4530 (shutDownWebKit): Moved from ForEachCoClass. 4531 * WebKitDLL.h: 4532 4533 2008-05-29 Anders Carlsson <andersca (a] apple.com> 4534 4535 Reviewed by Brady. 4536 4537 <rdar://problem/5970312> 4538 icon file specified for stand alone web app causes crash if the icon can't be found 4539 4540 Handle the case where iconData is null. 4541 4542 * WebIconFetcher.cpp: 4543 (WebIconFetcherClient::finishedFetchingIcon): 4544 4545 2008-05-22 Anders Carlsson <andersca (a] apple.com> 4546 4547 Reviewed by Adam. 4548 4549 Add IWebIconFetcher interface and implementation. 4550 4551 * Interfaces/IWebFramePrivate.idl: 4552 * Interfaces/IWebIconFetcher.idl: Added. 4553 * Interfaces/WebKit.idl: 4554 * WebFrame.cpp: 4555 * WebFrame.h: 4556 * WebIconFetcher.cpp: Added. 4557 * WebIconFetcher.h: Added. 4558 * WebKit.vcproj/WebKit.vcproj: 4559 4560 2008-05-22 Adam Roben <aroben (a] apple.com> 4561 4562 Add functions to IWebInspector to start/stop profiling/debugging 4563 4564 <rdar://5956403> 4565 4566 Reviewed by Jon Honeycutt. 4567 4568 * Interfaces/IWebInspector.idl: 4569 * WebInspector.cpp: 4570 (WebInspector::isDebuggingJavaScript): 4571 (WebInspector::toggleDebuggingJavaScript): 4572 (WebInspector::isProfilingJavaScript): 4573 (WebInspector::toggleProfilingJavaScript): 4574 * WebInspector.h: 4575 4576 2008-05-22 Steve Falkenburg <sfalken (a] apple.com> 4577 4578 Build fix. 4579 4580 * Interfaces/IWebInspector.idl: 4581 * Interfaces/WebKit.idl: 4582 * WebInspector.cpp: 4583 (WebInspector::unused1): 4584 * WebInspector.h: 4585 4586 2008-05-22 Timothy Hatcher <timothy (a] apple.com> 4587 4588 Changes to keep Windows building. 4589 4590 <rdar://problem/5956403> Update the Develop menu to match the new Inspector items 4591 4592 Reviewed by Adam Roben. 4593 4594 * English.lproj/Localizable.strings: Added new strings. 4595 * WebInspector.cpp: 4596 (WebInspector::showConsole): Call showPanel. 4597 * WebInspector.h: 4598 4599 2008-05-21 Adele Peterson <adele (a] apple.com> 4600 4601 Reviewed by Adam. 4602 4603 WebKit part of for <rdar://problem/5787733> fast/dom/HTMLDocument/hasFocus.html fails on Windows 4604 4605 * WebCoreSupport/WebChromeClient.cpp: 4606 (WebChromeClient::focus): Call updateActiveState directly. 4607 Normally this would happen on a timer, but JS might need to know this earlier, so we'll update here. 4608 (WebChromeClient::unfocus): ditto. 4609 * WebView.cpp: (WebView::updateActiveStateSoon): Added comment about why we use a timer for this. 4610 4611 === End merge of squirrelfish === 4612 4613 2008-05-13 Geoffrey Garen <ggaren (a] apple.com> 4614 4615 Reviewed by Oliver Hunt. 4616 4617 Updated for new JS debugging APIs. 4618 4619 * WebScriptDebugServer.cpp: 4620 (WebScriptDebugServer::didParseSource): 4621 (WebScriptDebugServer::failedToParseSource): 4622 * WebScriptDebugServer.h: 4623 4624 2008-05-09 Oliver Hunt <oliver (a] apple.com> 4625 4626 Reviewed by Geoff. 4627 4628 Build fixes for SquirrelFish on windows. 4629 4630 * WebScriptCallFrame.cpp: 4631 (callingFunctionOrGlobalExecState): 4632 (WebScriptCallFrame::caller): 4633 (WebScriptCallFrame::functionName): 4634 (WebScriptCallFrame::variableNames): 4635 (WebScriptCallFrame::valueForVariable): 4636 (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString): 4637 * WebScriptDebugServer.cpp: 4638 (WebScriptDebugServer::willLeaveCallFrame): 4639 4640 2008-05-19 Adam Roben <aroben (a] apple.com> 4641 4642 Make WebKit.idl rebuild whenever any of its included interfaces are 4643 changed 4644 4645 Reviewed by Tim Hatcher. 4646 4647 * WebKit.vcproj/DerivedSources.make: Touch WebKit.idl whenever any 4648 other IDL file is changed. This will force VS to rebuild WebKit.idl. 4649 4650 2008-05-19 Anders Carlsson <andersca (a] apple.com> 4651 4652 Reviewed by Adam. 4653 4654 <rdar://problem/5946454> 4655 Support navigator.onLine from HTML5. 4656 4657 Link with iphlpapi.lib, and make iphlpapi.dll a delay loaded library. 4658 4659 * WebKit.vcproj/WebKit.vcproj: 4660 4661 === Start merge of squirrelfish === 4662 4663 2008-05-19 Anders Carlsson <andersca (a] apple.com> 4664 4665 Reviewed by Darin, Alexey, Jess and Brady. 4666 4667 Set the application cache path. 4668 4669 * WebView.cpp: 4670 (WebKitSetApplicationCachePathIfNecessary): 4671 New function that sets the cache path. 4672 4673 (WebView::initWithFrame): 4674 Set the application cache path. 4675 4676 2008-05-19 Ada Chan <adachan (a] apple.com> 4677 4678 Added IWebCookieManager interface which allows client to set the 4679 CFHTTPCookieStorageRef that WebCore should use. 4680 4681 Implement IWebCookieManager interface in WebCookieManager. 4682 4683 Update the cookie accept policy in the current cookie storage. 4684 4685 Reviewed by Steve Falkenburg. 4686 4687 * ForEachCoClass.h: 4688 * Interfaces/IWebCookieManager.idl: Added. 4689 * Interfaces/WebKit.idl: 4690 * WebCookieManager.cpp: Added. 4691 (WebCookieManager::createInstance): 4692 (WebCookieManager::WebCookieManager): 4693 (WebCookieManager::~WebCookieManager): 4694 (WebCookieManager::QueryInterface): 4695 (WebCookieManager::AddRef): 4696 (WebCookieManager::Release): 4697 (WebCookieManager::cookieStorage): 4698 (WebCookieManager::setCookieStorage): 4699 * WebCookieManager.h: Added. 4700 * WebKit.vcproj/WebKit.vcproj: 4701 * WebKitClassFactory.cpp: 4702 * WebView.cpp: 4703 (updateSharedSettingsFromPreferencesIfNeeded): 4704 4705 2008-05-16 Stephanie Lewis <slewis (a] apple.com> 4706 4707 Reviewed by Steve. 4708 4709 Get pending unload event count from WebCore. 4710 4711 * Interfaces/IWebFramePrivate.idl: 4712 * WebFrame.cpp: 4713 (WebFrame::pendingFrameUnloadEventCount): 4714 * WebFrame.h: 4715 4716 2008-05-16 Matt Lilek <webkit (a] mattlilek.com> 4717 4718 Rubber stamped by Oliver. 4719 4720 Remove the Drosera sub-project. 4721 4722 * WebKit.vcproj/WebKit.sln: 4723 4724 2008-05-16 Brady Eidson <beidson (a] apple.com> 4725 4726 Reviewed by Steve Falkenburg 4727 4728 <rdar://problem/5942624> - Get LocalStorage persistence working on Windows 4729 4730 * WebPreferenceKeysPrivate.h: Add the LocalStorageDirectory defaults key 4731 4732 * WebPreferences.cpp: 4733 (WebPreferences::initializeDefaultSettings): 4734 (WebPreferences::localStorageDatabasePath): 4735 (WebPreferences::setLocalStorageDatabasePath): 4736 * WebPreferences.h: 4737 * Interfaces/IWebPreferencesPrivate.idl: 4738 4739 * WebView.cpp: 4740 (WebView::initWithFrame): Set the path in the WebCore::Settings after new Page creation 4741 4742 2008-05-06 Brady Eidson <beidson (a] apple.com> 4743 4744 Reviewed by Tim Hatcher 4745 4746 Until the settings/preferences equation can be reworked, we'll need to manually set the local storage path 4747 before setting the page group of the new page. 4748 4749 Since I still need to add the local storage path to WebPreferences on Windows, mark this with a FIXME for now. 4750 4751 * WebView.cpp: 4752 (WebView::initWithFrame): Mark an important FIXME for setting the LocalStorage path as 4753 appropriate. Until this FIXME is handled, Windows will have no persistent LocalStorage 4754 4755 2008-05-14 Adam Roben <aroben (a] apple.com> 4756 4757 Fix Bug 18767: Inspector is currently pretty much useless on Windows 4758 4759 <https://bugs.webkit.org/show_bug.cgi?id=18767> 4760 4761 Reviewed by Tim Hatcher. 4762 4763 * WebCoreSupport/WebInspectorClient.cpp: 4764 (WebInspectorClient::highlight): Only move the highlight behind the 4765 Inspector window when first creating the highlight, not every time we 4766 update it. 4767 4768 2008-05-13 Adam Roben <aroben (a] apple.com> 4769 4770 Neuter WebScriptDebugServer 4771 4772 Some upcoming changes to JavaScriptDebugServer and 4773 JavaScriptDebugListener will break WebScriptDebugServer. Since Drosera 4774 is being replaced by the Inspector's debugger, and Drosera is the only 4775 client of WebScriptDebugServer, it makes more sense to get rid of 4776 WebScriptDebugServer than to update it to keep it working. 4777 4778 We can't actually remove WebScriptDebugServer entirely yet, so I've 4779 just made it non-functional. This will completely break Drosera, but 4780 as stated above, Drosera's days are numbered anyway. 4781 4782 Reviewed by Tim Hatcher and Kevin McCullough. 4783 4784 * WebCoreSupport/WebFrameLoaderClient.cpp: 4785 (WebFrameLoaderClient::dispatchDidLoadMainResource): Removed all code 4786 in this function. 4787 * WebKitDLL.cpp: 4788 (LocalServerDidDie): Ditto. 4789 * WebScriptDebugServer.cpp: Made all IWebScriptDebugServer functions 4790 return E_NOTIMPL. 4791 * WebScriptDebugServer.h: Removed everything but the 4792 IWebScriptDebugServer functions. 4793 4794 2008-05-12 Dan Bernstein <mitz (a] apple.com> 4795 4796 - build fix 4797 4798 * Interfaces/WebKit.idl: Touched. 4799 4800 2008-05-12 Dan Bernstein <mitz (a] apple.com> 4801 4802 Reviewed by Ada Chan. 4803 4804 - WebKit/win changes for https://bugs.webkit.org/show_bug.cgi?id=17097 4805 <rdar://problem/5715471> CGFontRefs (and HFONTs on Windows) leak because FontCache grows without bound 4806 4807 Added font cache statistics and a function to purge inactive font data. 4808 4809 * Interfaces/IWebCoreStatistics.idl: 4810 * WebCoreStatistics.cpp: 4811 (WebCoreStatistics::cachedFontDataCount): 4812 (WebCoreStatistics::cachedFontDataInactiveCount): 4813 (WebCoreStatistics::purgeInactiveFontData): 4814 (WebCoreStatistics::glyphPageCount): 4815 * WebCoreStatistics.h: 4816 4817 2008-05-12 Adam Roben <aroben (a] apple.com> 4818 4819 Build fix 4820 4821 * WebKitPrefix.cpp: Touch this so that it will rebuild after 4822 ENABLE_CROSS_DOCUMENT_MESSAGING was removed. 4823 4824 2008-05-12 Alexey Proskuryakov <ap (a] webkit.org> 4825 4826 Roll out recent threading changes (r32807, r32810, r32819, r32822) to simplify 4827 SquirrelFish merging. 4828 4829 * WebCoreStatistics.cpp: 4830 (WebCoreStatistics::javaScriptObjectsCount): 4831 (WebCoreStatistics::javaScriptGlobalObjectsCount): 4832 (WebCoreStatistics::javaScriptProtectedObjectsCount): 4833 (WebCoreStatistics::javaScriptProtectedGlobalObjectsCount): 4834 * WebJavaScriptCollector.cpp: 4835 (WebJavaScriptCollector::objectCount): 4836 * WebScriptCallFrame.cpp: 4837 (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString): 4838 4839 2008-05-09 Brady Eidson <beidson (a] apple.com> 4840 4841 Reviewed by Adam Roben 4842 4843 Fix a hang-on-quit bug where in the DLL_PROCESS_DETACH DllMain callback, we assummed that 4844 we could cleanly shutdown WebKit but we couldn't because any background threads have already 4845 been uncleanly aborted at that point. 4846 4847 * ForEachCoClass.cpp: 4848 (shutDownWebKit): Moved from WebKitDLL to here, to be exposed via WebKit.def 4849 * ForEachCoClass.h: 4850 4851 * WebKit.vcproj/WebKit.def: 4852 * WebKit.vcproj/WebKit_debug.def: 4853 4854 * WebKitDLL.cpp: 4855 (DllMain): Don't call shutDownWebKit here 4856 4857 2008-05-09 Sam Weinig <sam (a] webkit.org> 4858 4859 Rubber-stamped by Mark Rowe. 4860 4861 Remove the ENABLE_CROSS_DOCUMENT_MESSAGING #ifdefs. 4862 4863 * WebKit.vcproj/WebKit.vcproj: 4864 4865 2008-05-09 Adam Roben <aroben (a] apple.com> 4866 4867 Build fix 4868 4869 * Interfaces/WebKit.idl: Touched. 4870 4871 2008-05-06 Alice Liu <alice.liu (a] apple.com> 4872 4873 Reviewed by Adele Peterson and John Sullivan. 4874 4875 changes needed to build on Windows after r32911 and r32927 4876 4877 * AccessibleBase.cpp: 4878 (AccessibleBase::get_accParent): 4879 * AccessibleDocument.cpp: 4880 (AccessibleDocument::document): 4881 4882 2008-05-06 Brady Eidson <beidson (a] apple.com> 4883 4884 Reviewed by Darin Adler 4885 4886 Preparation for upcoming work making LocalStorage persistent. 4887 4888 When the application terminates, all LocalStorage areas must be sync'ed out to disk first. 4889 4890 * WebKitDLL.cpp: 4891 (shutDownWebKit): Close all LocalStorage areas before quitting. 4892 4893 2008-05-05 Anders Carlsson <andersca (a] apple.com> 4894 4895 Reviewed by John. 4896 4897 Add preference for enabling the offline web application cache. 4898 4899 * Interfaces/IWebPreferencesPrivate.idl: 4900 * WebPreferenceKeysPrivate.h: 4901 * WebPreferences.cpp: 4902 (WebPreferences::initializeDefaultSettings): 4903 (WebPreferences::setOfflineWebApplicationCacheEnabled): 4904 (WebPreferences::offlineWebApplicationCacheEnabled): 4905 * WebPreferences.h: 4906 * WebView.cpp: 4907 (WebView::notifyPreferencesChanged): 4908 4909 2008-05-05 Sam Weinig <sam (a] webkit.org> 4910 4911 Reviewed by Tim Hatcher. 4912 4913 Make the Inspector's localizable strings file match the format used by Dashboard widgets. 4914 4915 * WebCoreSupport/WebInspectorClient.cpp: 4916 (WebInspectorClient::localizedStringsURL): 4917 4918 2008-05-05 Steve Falkenburg <sfalken (a] apple.com> 4919 4920 Add WebPreference for application chrome mode. 4921 4922 Reviewed by Dave Hyatt. 4923 4924 * Interfaces/IWebPreferencesPrivate.idl: 4925 * WebPreferenceKeysPrivate.h: 4926 * WebPreferences.cpp: 4927 (WebPreferences::initializeDefaultSettings): 4928 (WebPreferences::inApplicationChromeMode): 4929 (WebPreferences::setApplicationChromeMode): 4930 * WebPreferences.h: 4931 * WebView.cpp: 4932 (WebView::notifyPreferencesChanged): 4933 4934 2008-05-02 Alexey Proskuryakov <ap (a] webkit.org> 4935 4936 Reviewed by Geoffrey Garen. 4937 4938 https://bugs.webkit.org/show_bug.cgi?id=18826 4939 Make JavaScript heap per-thread 4940 4941 * WebCoreStatistics.cpp: 4942 (WebCoreStatistics::javaScriptObjectsCount): 4943 (WebCoreStatistics::javaScriptGlobalObjectsCount): 4944 (WebCoreStatistics::javaScriptProtectedObjectsCount): 4945 (WebCoreStatistics::javaScriptProtectedGlobalObjectsCount): 4946 * WebJavaScriptCollector.cpp: 4947 (WebJavaScriptCollector::objectCount): 4948 * WebScriptCallFrame.cpp: 4949 (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString): 4950 Replaced static Collector calls with calls to a current thread's instance. Pass ExecState to jsString(). 4951 4952 2008-04-29 Ada Chan <adachan (a] apple.com> 4953 4954 Support text shadow in WebDrawText(). 4955 Remove DrawTextAtPoint() since it is only called by WebDrawText(). 4956 4957 Reviewed by Adam. 4958 4959 * WebKit.vcproj/WebKit.def: 4960 * WebKit.vcproj/WebKit_debug.def: 4961 * WebKitGraphics.cpp: 4962 (WebDrawText): 4963 * WebKitGraphics.h: 4964 4965 2008-04-29 Adam Roben <aroben (a] apple.com> 4966 4967 Restore the beloved COMPtr::operator& 4968 4969 2008-04-29 Adam Roben <aroben (a] apple.com> 4970 4971 Windows build fix 4972 4973 Replaced uses of COMPtr::operator& with COMPtr::adoptionPointer. 4974 4975 2008-04-29 Adam Roben <aroben (a] apple.com> 4976 4977 Fix a Windows build error 4978 4979 * WebScriptCallFrame.cpp: 4980 (WebScriptCallFrame::variableNames): Don't use ::adopt now that 4981 PropertyNameArray has no swap function. 4982 4983 2008-04-28 Adam Roben <aroben (a] apple.com> 4984 4985 Fix some Windows build errors in WebKit 4986 4987 * Interfaces/WebKit.idl: Touched to force Interfaces to rebuild. 4988 * WebKitPrefix.cpp: Touched to force WebKit to rebuild. 4989 4990 2008-04-25 Alexey Proskuryakov <ap (a] webkit.org> 4991 4992 Reviewed by Darin Adler. 4993 4994 Fix run-webkit-tests --threading 4995 and provisionally fix <https://bugs.webkit.org/show_bug.cgi?id=18661> 4996 Proxy server issue in Sunday's Nightly 4997 4998 * WebView.cpp: (WebView::WebView): Initialize threading. Previously, this was only done from 4999 icon database code, which is not robust enough. 5000 5001 2008-04-26 Adam Barth <hk9565 (a] gmail.com> 5002 5003 Reviewed by Adam Roben and Sam Weinig. 5004 5005 Renamed "domain" method to "host" to match SecurityOrigin. 5006 5007 * Interfaces/IWebSecurityOrigin.idl: 5008 * WebSecurityOrigin.cpp: 5009 (WebSecurityOrigin::host): 5010 * WebSecurityOrigin.h: 5011 5012 2008-04-25 Anders Carlsson <andersca (a] apple.com> 5013 5014 Reviewed by Adam. 5015 5016 Fix internal debug build. 5017 5018 * WebKit.vcproj/WebKit.vcproj: 5019 5020 2008-04-24 Dan Bernstein <mitz (a] apple.com> 5021 5022 - build fix 5023 5024 * WebView.cpp: 5025 (WebView::handleContextMenuEvent): 5026 5027 2008-04-24 Brady Eidson <beidson (a] apple.com> 5028 5029 Reviewed by Darin 5030 5031 Revert my previous change to WebKit/Win until I can make it act more like the new Mac code 5032 5033 * WebView.cpp: 5034 (WebView::initWithFrame): 5035 5036 2008-04-24 Anders Carlsson <andersca (a] apple.com> 5037 5038 Reviewed by Sam. 5039 5040 Change some String arguments to be const references instead. 5041 5042 * WebCoreSupport/WebEditorClient.cpp: 5043 (WebEditorClient::shouldInsertText): 5044 * WebCoreSupport/WebEditorClient.h: 5045 5046 2008-04-23 Brady Eidson <beidson (a] apple.com> 5047 5048 Reviewed by Sam Weinig 5049 5050 In some current work I noticed that when a new Page is created, it is possible that it requires info from its Settings 5051 object before the Settings object is initialized. It seems quite prudent to post the preferences changed notification, 5052 thereby populating the Settings object, immediately after the Page is created. 5053 5054 * WebView.cpp: 5055 (WebView::initWithFrame): Post the notification right after the Page is created 5056 5057 2008-04-23 Jon Honeycutt <jhoneycutt (a] apple.com> 5058 5059 Reviewed by Brady. 5060 5061 Implement accDoDefaultAction(). 5062 5063 * AccessibleBase.cpp: 5064 (AccessibleBase::accDoDefaultAction): Call the object's 5065 performDefaultAction() method. Return S_FALSE if the call returns false, 5066 indicating that the object has no default action associated with it. 5067 5068 2008-04-23 Jon Honeycutt <jhoneycutt (a] apple.com> 5069 5070 Reviewed by Adam. 5071 5072 Implement accHitTest(). 5073 5074 * AccessibleBase.cpp: 5075 (AccessibleBase::accHitTest): Perform a hit test for a child object. If 5076 none is found, report whether the point was within our own bounding box. 5077 5078 2008-04-23 Jon Honeycutt <jhoneycutt (a] apple.com> 5079 5080 Reviewed by Adam and Darin. 5081 5082 Implement accNavigate(). 5083 5084 * AccessibleBase.cpp: 5085 (AccessibleBase::accNavigate): This method navigates between elements, 5086 given a start point and a direction. The directions UP, DOWN, LEFT, 5087 RIGHT are not are not implemented, matching Mozilla and IE. The 5088 directions FIRSTCHILD and LASTCHILD are only allowed from self. NEXT and 5089 PREVIOUS are allowed from self or any of our children. 5090 5091 2008-04-23 Jon Honeycutt <jhoneycutt (a] apple.com> 5092 5093 Reviewed by Adam. 5094 5095 Implement accLocation(). 5096 5097 * AccessibleBase.cpp: 5098 (AccessibleBase::accLocation): Report the screen coordinates for the 5099 object's bounding box. 5100 5101 2008-04-23 Jon Honeycutt <jhoneycutt (a] apple.com> 5102 5103 Reviewed by Adam, Darin, Oliver. 5104 5105 Implement get_accDefaultAction(). 5106 5107 * AccessibleBase.cpp: 5108 (AccessibleBase::get_accDefaultAction): Report the result of calling the 5109 object's actionVerb method. 5110 * English.lproj/Localizable.strings: Updated with new strings. 5111 * WebCoreLocalizedStrings.cpp: 5112 (WebCore::AXButtonActionVerb): Return a localized string representing 5113 the object's default action. 5114 (WebCore::AXRadioButtonActionVerb): Same. 5115 (WebCore::AXTextFieldActionVerb): Same. 5116 (WebCore::AXCheckedCheckBoxActionVerb): Same 5117 (WebCore::AXUncheckedCheckBoxActionVerb): Same. 5118 (WebCore::AXLinkActionVerb): Same. 5119 5120 2008-04-23 Daniel Zucker <zucker (a] wake3.com> 5121 5122 Reviewed by Adam Roben. 5123 5124 <https://bugs.webkit.org/show_bug.cgi?id=18468> 5125 5126 * WebError.h: include RetainPtr.h to fix build errors in Cairo build 5127 5128 2008-04-23 Daniel Zucker <zucker (a] wake3.com> 5129 5130 Reviewed by Adam Roben. 5131 5132 Move the location of #if USE(CFNETWORK) to fix a cairo/curl build error. 5133 <https://bugs.webkit.org/show_bug.cgi?id=18470> 5134 5135 * WebError.cpp: 5136 (WebError::sslPeerCertificate): 5137 5138 2008-04-22 Jon Honeycutt <jhoneycutt (a] apple.com> 5139 5140 Reviewed by Adam. 5141 5142 Implement get_accFocus(). 5143 5144 * AccessibleBase.cpp: 5145 (AccessibleBase::get_accRole): Remove redundant initialization; 5146 VariantInit does this. 5147 (AccessibleBase::get_accState): Same. 5148 (AccessibleBase::get_accSelection): Relocated next to accSelect(). 5149 (AccessibleBase::get_accFocus): If the focused object is this object or 5150 a child of this object, report it. Otherwise, report VT_EMPTY. 5151 5152 2008-04-22 Jon Honeycutt <jhoneycutt (a] apple.com> 5153 5154 Reviewed by Sam. 5155 5156 Implement get_accKeyboardShortcut(). 5157 5158 * AccessibleBase.cpp: 5159 (AccessibleBase::get_accKeyboardShortcut): Report the key combination 5160 that will perform the object's access key action, represented as a 5161 string. 5162 5163 2008-04-19 Jon Honeycutt <jhoneycutt (a] apple.com> 5164 5165 Reviewed by Darin Adler. 5166 5167 Implement get_accHelp(). 5168 5169 * AccessibleBase.cpp: 5170 (AccessibleBase::get_accHelp): Report the result of calling the object's 5171 helpText() method. 5172 5173 2008-04-19 Jon Honeycutt <jhoneycutt (a] apple.com> 5174 5175 Reviewed by Darin Adler. 5176 5177 Implement get_accState(). 5178 5179 * AccessibleBase.cpp: 5180 (AccessibleBase::get_accState): 5181 5182 2008-04-21 Alexey Proskuryakov <ap (a] webkit.org> 5183 5184 Reviewed by Darin Adler. 5185 5186 Move collector main thread initialization from WebKit/win to KJS::initializeThreading. 5187 5188 * WebView.cpp: 5189 (WebView::WebView): 5190 5191 2008-04-18 Jon Honeycutt <jhoneycutt (a] apple.com> 5192 5193 Reviewed by Darin Adler. 5194 5195 Implement get_accRole(). 5196 5197 * AccessibleBase.cpp: 5198 (AccessibleBase::get_accRole): Report the result of role(). 5199 (MSAARole): Added; returns the MSAA role for a WebCore role. 5200 (AccessibleBase::role): Return the MSAA role for the object's roleValue. 5201 * AccessibleBase.h: Add declaration for role(). 5202 5203 2008-04-18 Jon Honeycutt <jhoneycutt (a] apple.com> 5204 5205 Reviewed by Darin Adler. 5206 5207 Implement get_accName(), get_accValue(), get_accDescription(). Added 5208 virtual methods that accessible objects can override to customize the 5209 result. 5210 5211 * AccessibleBase.cpp: 5212 (AccessibleBase::get_accName): Report result of name(). 5213 (AccessibleBase::get_accValue): Report result of value(). 5214 (AccessibleBase::get_accDescription): Report result of description(). 5215 (AccessibleBase::name): Added; returns AccessibilityObject::title(). 5216 (AccessibleBase::value): Added; returns 5217 AccessibilityObject::stringValue(). 5218 (AccessibleBase::description): Added; returns 5219 AccessibilityObject::accessibilityDescription(). 5220 * AccessibleBase.h: Added declarations for name(), value(), and 5221 description(). 5222 * ChangeLog: Fix my misuse of "definition." 5223 5224 2008-04-18 Jon Honeycutt <jhoneycutt (a] apple.com> 5225 5226 Fix build after r32231. 5227 5228 * WebFrame.cpp: 5229 (WebFrame::renderTreeAsExternalRepresentation): renderer() -> 5230 contentRenderer() 5231 5232 2008-04-18 Jon Honeycutt <jhoneycutt (a] apple.com> 5233 5234 Fix build after r32231. 5235 5236 * WebView.cpp: 5237 (WebView::paintIntoBackingStore): renderer() -> contentRenderer() 5238 (WebView::elementAtPoint): Same. 5239 5240 2008-04-18 Jon Honeycutt <jhoneycutt (a] apple.com> 5241 5242 * AccessibleBase.cpp: Build fix for copy/paste error. 5243 5244 2008-04-18 Jon Honeycutt <jhoneycutt (a] apple.com> 5245 5246 Reviewed by Darin Adler. 5247 5248 Implement IAccessible::get_accChild(). 5249 5250 * AccessibleBase.cpp: 5251 (AccessibleBase::get_accChild): Call getAccessibilityObjectForChild 5252 to find the AccessibilityObject for the VARIANT vChild. Get the 5253 AccessibilityObjectWrapper for the child, add a ref, and pass it back. 5254 (AccessibleBase::getAccessibilityObjectForChild): Added; finds the 5255 AccessibilityObject referred to by a VARIANT, or returns a COM error on 5256 failure. 5257 (AccessibleBase::wrapper): Added; returns the wrapper for the 5258 AccessibilityObject. Creates one if necessary. 5259 * AccessibleBase.h: Added declarations for wrapper() and 5260 getAccessibilityObjectForChild(). 5261 5262 2008-04-18 Jon Honeycutt <jhoneycutt (a] apple.com> 5263 5264 Reviewed by Darin, Ollie. 5265 5266 * AccessibleBase.cpp: 5267 (AccessibleBase::get_accChildCount): Implement get_accChildCount. 5268 5269 2008-04-17 Jon Honeycutt <jhoneycutt (a] apple.com> 5270 5271 Reviewed by Darin Adler. 5272 5273 Implement IAccessible::get_accParent(). 5274 5275 * AccessibleBase.cpp: 5276 (AccessibleBase::get_accParent): Call AccessibleObjectFromWindow with 5277 OBJID_WINDOW. This will be handled by Windows to return the default 5278 accessible object for the WebView, because we only handle OBJID_CLIENT. 5279 * WebView.cpp: 5280 (WebView::AccessibleObjectFromWindow): Added; calls through to the 5281 AccessibleObjectFromWindow in the MSAA DLL. 5282 * WebView.h: Added declaration for AccessibleObjectFromWindow. 5283 5284 2008-04-17 Jon Honeycutt <jhoneycutt (a] apple.com> 5285 5286 Reviewed by Darin Adler. 5287 5288 Return an AccessibleDocument when our root accessible object is queried 5289 for. 5290 5291 * AccessibleDocument.cpp: Added; represents an AccessibilityObject that 5292 itself represents a Document. 5293 (AccessibleDocument::AccessibleDocument): Initialize AccessibleBase with 5294 the AccessibilityObject for this Document. 5295 * AccessibleDocument.h: Added. 5296 * WebFrame.cpp: 5297 (WebFrame::accessible): If m_accessible is 0, or if Document in this 5298 frame does not match the Document in the cached m_accessible object, 5299 create a new AccessibleDocument for this frame's Document. 5300 * WebFrame.h: Swap AccessibleBase.h for AccessibleDocument.h 5301 * WebKit.vcproj/WebKit.vcproj: Add AccessibleDocument.{h,cpp} 5302 5303 2008-04-17 Jon Honeycutt <jhoneycutt (a] apple.com> 5304 5305 Reviewed by Darin Adler. 5306 5307 Respond to WM_GETOBJECT messages. Currently returns NULL. 5308 5309 * WebFrame.cpp: 5310 (WebFrame::accessible): Added; will return the root accessible object 5311 for this frame. 5312 * WebFrame.h: Added declaration for accessible(). 5313 * WebView.cpp: 5314 (WebViewWndProc): Handle WM_GETOBJECT messages by calling onGetObject(). 5315 (WebView::onGetObject): Added; enables the AXObjectCache in WebCore, 5316 queries the top-level frame for its root accessible object, and loads 5317 the MSAA DLL and locates its LresultFromObject function. If calling 5318 LresultFromObject succeeds, it returns a reference to the accessible 5319 object to pass back to Windows. If not, we return false and let Windows 5320 handle the request through DefWindowProc. 5321 * WebView.h: Added declaration for onGetObject(). 5322 5323 2008-04-18 Brady Eidson <beidson (a] apple.com> 5324 5325 Reviewed by Sam Weinig 5326 5327 Don't clear the PageGroup on _close, as the WebCore::Page destructor already does this. 5328 No reason to do the work twice... 5329 5330 * WebView.cpp: 5331 (WebView::close): 5332 5333 2008-04-18 Adam Roben <aroben (a] apple.com> 5334 5335 Update WebScriptDebugServer for JavaScriptDebugListener changes 5336 5337 Reviewed by Tim Hatcher. 5338 5339 * WebScriptDebugServer.cpp: Changed to use KJS::UString instead of 5340 WebCore::String. 5341 * WebScriptDebugServer.h: Ditto. 5342 5343 2008-04-16 Jon Honeycutt <jhoneycutt (a] apple.com> 5344 5345 Reviewed by Darin Adler. 5346 5347 Add a base AccessibilityObject wrapper class. Currently just stubs all 5348 of the IAccessible methods. 5349 5350 * AccessibleBase.cpp: Added. Implements IAccessible, and inherits from 5351 WebCore::AccessibilityObjectWrapper. 5352 (AccessibleBase::AccessibleBase): Set the object's wrapper to this 5353 instance. 5354 (AccessibleBase::~AccessibleBase): 5355 (AccessibleBase::createInstance): Create an instance of a wrapper for 5356 this AccessibilityObject. 5357 (AccessibleBase::QueryInterface): 5358 (AccessibleBase::Release): 5359 (AccessibleBase::get_accParent): 5360 (AccessibleBase::get_accChildCount): 5361 (AccessibleBase::get_accChild): 5362 (AccessibleBase::get_accName): 5363 (AccessibleBase::get_accValue): 5364 (AccessibleBase::get_accDescription): 5365 (AccessibleBase::get_accRole): 5366 (AccessibleBase::get_accState): 5367 (AccessibleBase::get_accHelp): 5368 (AccessibleBase::get_accKeyboardShortcut): 5369 (AccessibleBase::accSelect): 5370 (AccessibleBase::get_accFocus): 5371 (AccessibleBase::get_accSelection): 5372 (AccessibleBase::get_accDefaultAction): 5373 (AccessibleBase::accLocation): 5374 (AccessibleBase::accNavigate): 5375 (AccessibleBase::accHitTest): 5376 * AccessibleBase.h: Added. 5377 (AccessibleBase::AddRef): 5378 (AccessibleBase::put_accName): 5379 (AccessibleBase::put_accValue): 5380 (AccessibleBase::get_accHelpTopic): 5381 (AccessibleBase::GetTypeInfoCount): 5382 (AccessibleBase::GetTypeInfo): 5383 (AccessibleBase::GetIDsOfNames): 5384 (AccessibleBase::Invoke): 5385 (AccessibleBase::detach): Detach this wrapper from its object. 5386 * WebKit.vcproj/WebKit.vcproj: 5387 5388 2008-04-15 Anders Carlsson <andersca (a] apple.com> 5389 5390 Reviewed by Adam. 5391 5392 Add ENABLE_OFFLINE_WEB_APPLICATIONS to FEATURE_DEFINES. 5393 5394 * WebKit.vcproj/WebKit.vcproj: 5395 5396 2008-04-12 Matt Lilek <webkit (a] mattlilek.com> 5397 5398 Not reviewed, build fix. 5399 5400 * WebView.cpp: 5401 (WebView::paintDocumentRectToContext): 5402 5403 2008-04-11 Steve Falkenburg <sfalken (a] apple.com> 5404 5405 Fix caching typo. 5406 5407 Made this code match the Mac. 5408 5409 Reviewed by Mark Rowe. 5410 5411 * WebView.cpp: 5412 (PreferencesChangedOrRemovedObserver::notifyPreferencesChanged): 5413 5414 2008-04-11 Adam Roben <aroben (a] apple.com> 5415 5416 * ForEachCoClass.h: Added a deprecation notice. 5417 5418 2008-04-11 Adam Roben <aroben (a] apple.com> 5419 5420 Fix Bug 18376: r31733 and 27 don't work w/Safari 3.1 5421 5422 <https://bugs.webkit.org/show_bug.cgi?id=18376> 5423 5424 Rubberstamped by Steve. 5425 5426 * ForEachCoClass.h: Move post-3.1 classes to the end of the 5427 FOR_EACH_COCLASS macro so that pre-3.1 classes will be in the place 5428 Safari expects them to be. We will soon be deprecating 5429 setUseOpenSourceWebKit/progIDForClass because it is clearly very 5430 fragile. 5431 5432 2008-04-10 Ada Chan <adachan (a] apple.com> 5433 5434 Added WebCoreStatistics that provides stats on Javascript objects 5435 and IconDatabase. 5436 5437 Changed WebCache::statistics() to additionally return xsl stylesheets data 5438 and data on live sizes and decoded sizes. 5439 5440 Reviewed by Steve. 5441 5442 * ForEachCoClass.h: 5443 * Interfaces/IWebCoreStatistics.idl: Added. 5444 * Interfaces/WebKit.idl: 5445 * WebCache.cpp: 5446 (WebCache::statistics): 5447 * WebCoreStatistics.cpp: Added. 5448 (WebCoreStatistics::WebCoreStatistics): 5449 (WebCoreStatistics::~WebCoreStatistics): 5450 (WebCoreStatistics::createInstance): 5451 (WebCoreStatistics::QueryInterface): 5452 (WebCoreStatistics::AddRef): 5453 (WebCoreStatistics::Release): 5454 (WebCoreStatistics::javaScriptObjectsCount): 5455 (WebCoreStatistics::javaScriptGlobalObjectsCount): 5456 (WebCoreStatistics::javaScriptProtectedObjectsCount): 5457 (WebCoreStatistics::javaScriptProtectedGlobalObjectsCount): 5458 (WebCoreStatistics::iconPageURLMappingCount): 5459 (WebCoreStatistics::iconRetainedPageURLCount): 5460 (WebCoreStatistics::iconRecordCount): 5461 (WebCoreStatistics::iconsWithDataCount): 5462 * WebCoreStatistics.h: Added. 5463 * WebKit.vcproj/WebKit.vcproj: 5464 * WebKitClassFactory.cpp: 5465 5466 2008-04-09 Steve Falkenburg <sfalken (a] apple.com> 5467 5468 Delete backing store (after a delay) when a WebView's top-level parent becomes inactive. 5469 5470 Reviewed by Brady Eidson. 5471 5472 * WebView.cpp: 5473 (WebView::windowReceivedMessage): 5474 5475 2008-04-08 Adam Roben <aroben (a] apple.com> 5476 5477 Export callOnMainThread from WebKit.dll 5478 5479 Rubberstamped by Anders. 5480 5481 * WebKit.vcproj/WebKit.def: 5482 * WebKit.vcproj/WebKit_debug.def: 5483 5484 2008-04-08 Adam Roben <aroben (a] apple.com> 5485 5486 Move callOnMainThread to WTF 5487 5488 Reviewed by Alexey Proskuryakov. 5489 5490 * WebIconDatabase.cpp: Updated #include 5491 5492 2008-04-08 Steve Falkenburg <sfalken (a] apple.com> 5493 5494 Add missing increment/decrement COM class counts to detect leaks. 5495 5496 Reviewed by Adam Roben. 5497 5498 * CFDictionaryPropertyBag.cpp: 5499 (CFDictionaryPropertyBag::CFDictionaryPropertyBag): 5500 (CFDictionaryPropertyBag::~CFDictionaryPropertyBag): 5501 * CFDictionaryPropertyBag.h: 5502 * HTTPHeaderPropertyBag.cpp: 5503 (HTTPHeaderPropertyBag::HTTPHeaderPropertyBag): 5504 (HTTPHeaderPropertyBag::~HTTPHeaderPropertyBag): 5505 * HTTPHeaderPropertyBag.h: 5506 * WebActionPropertyBag.cpp: 5507 (WebActionPropertyBag::WebActionPropertyBag): 5508 (WebActionPropertyBag::~WebActionPropertyBag): 5509 * WebDocumentLoader.cpp: 5510 (WebDocumentLoader::WebDocumentLoader): 5511 (WebDocumentLoader::~WebDocumentLoader): 5512 * WebDropSource.cpp: 5513 (WebDropSource::WebDropSource): 5514 (WebDropSource::~WebDropSource): 5515 * WebDropSource.h: 5516 * WebElementPropertyBag.cpp: 5517 (WebElementPropertyBag::WebElementPropertyBag): 5518 (WebElementPropertyBag::~WebElementPropertyBag): 5519 * WebTextRenderer.cpp: 5520 (WebTextRenderer::WebTextRenderer): 5521 (WebTextRenderer::~WebTextRenderer): 5522 5523 2008-04-07 Brady Eidson <beidson (a] apple.com> 5524 5525 Reviewed by John Honeycutt 5526 5527 ENABLE_DOM_STORAGE for Windows 5528 5529 * WebKit.vcproj/WebKit.vcproj: 5530 5531 2008-04-04 Adam Roben <aroben (a] apple.com> 5532 5533 Export some more WTF functions from WebKit.dll 5534 5535 Reviewed by Alexey Proskuryakov. 5536 5537 * WebKit.vcproj/WebKit.def: 5538 * WebKit.vcproj/WebKit_debug.def: 5539 5540 2008-04-04 Steve Falkenburg <sfalken (a] apple.com> 5541 5542 Only delete the backing store of background windows. 5543 5544 Reviewed by Ada Chan. 5545 5546 * WebView.cpp: 5547 (WebView::WebView): 5548 (WebView::deleteBackingStore): 5549 (WebView::paint): Added active check. 5550 (WebView::deleteBackingStoreSoon): 5551 (WebView::cancelDeleteBackingStoreSoon): Added. 5552 (WebView::active): Added. 5553 (WebView::updateActiveState): Moved active check code from here to active(). 5554 * WebView.h: 5555 5556 2008-04-04 Steve Falkenburg <sfalken (a] apple.com> 5557 5558 Fix tooltip window leak. 5559 5560 Explicitly call DestroyWindow on the tooltip. 5561 Destroying its parent won't destroy the tooltip, since it not a WS_CHILD style window. 5562 5563 Reviewed by Ada Chan. 5564 5565 * WebView.cpp: 5566 (WebView::~WebView): 5567 5568 2008-04-04 Steve Falkenburg <sfalken (a] apple.com> 5569 5570 Delete backing store after we go 5 seconds without a paint. 5571 5572 Timer will be reset if a paint occurs, so this won't negatively impact performance. 5573 5574 Reviewed by Ada Chan. 5575 5576 * WebView.cpp: 5577 (WebView::paint): Call deleteBackingStoreSoon after paint. 5578 (WebViewWndProc): Add DeleteBackingStoreTimer. 5579 (WebView::deleteBackingStoreSoon): Added. 5580 * WebView.h: Add deleteBackingStoreSoon. 5581 5582 2008-04-04 Ada Chan <adachan (a] apple.com> 5583 5584 <rdar://problem/5830598> Image file opened in the browser window shows "Localized String Not Found' in window's title bar instead file name 5585 Save WebCoreLocalizedStrings.cpp with UTF8 encoding. 5586 Changed the format string to take in integers. 5587 5588 Reviewed by Dan. 5589 5590 * English.lproj/Localizable.strings: Updated. 5591 * WebCoreLocalizedStrings.cpp: 5592 (WebCore::imageTitle): 5593 5594 2008-04-03 Dan Bernstein <mitz (a] apple.com> 5595 5596 Reviewed by Dave Hyatt. 5597 5598 - WebKit part of fixing http://bugs.webkit.org/show_bug.cgi?id=6484 5599 font-weight does not properly support graded weights 5600 5601 * DOMCoreClasses.cpp: 5602 (DOMElement::font): Updated for the change to FontDescription. 5603 * WebCoreSupport/WebDragClient.cpp: 5604 (dragLabelFont): Ditto. 5605 * WebKitGraphics.cpp: 5606 (makeFont): Ditto. 5607 * WebKitGraphics.h: Added a FIXME. 5608 5609 2008-04-03 Steve Falkenburg <sfalken (a] apple.com> 5610 5611 <rdar://problem/5835382> Calling window.open immediately after window.close can sometimes result in no window being created 5612 5613 Group name tracking needs to happen using code in WebCore::Page, since it is more involved than 5614 just setting a string. 5615 5616 Reviewed by Adam Roben. 5617 5618 * WebView.cpp: 5619 (WebView::close): Add null check (found via code inspection). 5620 (WebView::initWithFrame): Store the group name directly in Page. 5621 (WebView::setGroupName): Store the group name directly in Page. 5622 (WebView::groupName): Retrieve the group name directly from Page. 5623 * WebView.h: Removed m_groupName 5624 5625 2008-04-03 Simon Hausmann <hausmann (a] webkit.org> 5626 5627 Reviewed by Mark Rowe. 5628 5629 Roll out r31599 and r31605 again after discussion with Mark Rowe. 5630 5631 * WebIconDatabase.cpp: 5632 (WebIconDatabase::iconForURL): 5633 5634 2008-04-03 Simon Hausmann <hausmann (a] webkit.org> 5635 5636 Attempted build fix 5637 5638 * WebIconDatabase.cpp: 5639 (WebIconDatabase::iconForURL): Adjust to changed iconForPageURL 5640 signature 5641 5642 2008-04-03 Ada Chan <adachan (a] apple.com> 5643 5644 Allow WebArchive to be created via COM. 5645 Replaced IID_DOMNode with __uuidof(DOMNode). 5646 5647 Reviewed by Adam and Steve. 5648 5649 * DOMCoreClasses.cpp: 5650 (DOMNode::QueryInterface): 5651 (DOMNode::isSameNode): 5652 * DOMCoreClasses.h: 5653 * ForEachCoClass.h: 5654 * Interfaces/WebKit.idl: 5655 * WebArchive.cpp: 5656 (WebArchive::createInstance): 5657 * WebArchive.h: 5658 * WebKitClassFactory.cpp: 5659 5660 2008-04-01 Brady Eidson <beidson (a] apple.com> 5661 5662 Reviewed by Jon Honeycutt and Cake 5663 5664 Hookup WebArchive API enough to be able to save the archive of a DOMNode 5665 5666 * DOMCoreClasses.h: Add a GUID for DOMNode 5667 5668 * Interfaces/IWebArchive.idl: Add initWithNode() 5669 5670 * WebArchive.cpp: 5671 (WebArchive::initWithNode): 5672 (WebArchive::data): Actually return LegacyWebArchive-style data 5673 * WebArchive.h: 5674 5675 2008-04-01 Brady Eidson <beidson (a] apple.com> 5676 5677 Reviewed by Adam Roben 5678 5679 Add empty implementations of WebArchive for future work 5680 5681 * WebArchive.cpp: Added. 5682 (WebArchive::createInstance): 5683 (WebArchive::WebArchive): 5684 (WebArchive::~WebArchive): 5685 (WebArchive::QueryInterface): 5686 (WebArchive::AddRef): 5687 (WebArchive::Release): 5688 (WebArchive::initWithMainResource): 5689 (WebArchive::initWithData): 5690 (WebArchive::mainResource): 5691 (WebArchive::subResources): 5692 (WebArchive::subframeArchives): 5693 (WebArchive::data): 5694 * WebArchive.h: Added. 5695 5696 * WebKit.vcproj/WebKit.vcproj: 5697 5698 2008-03-29 Adam Roben <aroben (a] apple.com> 5699 5700 Rename IWebViewPrivate::addAdditionalPluginPath to 5701 addAdditionalPluginDirectory 5702 5703 Reviewed by Mitz Pettel. 5704 5705 * Interfaces/IWebViewPrivate.idl: 5706 * Interfaces/WebKit.idl: Touched to make sure the Interfaces project 5707 rebuilds. 5708 * WebView.cpp: 5709 (WebView::addAdditionalPluginDirectory): 5710 * WebView.h: 5711 5712 2008-03-26 Brent Fulgham <bfulgham (a] gmail.com> 5713 5714 Reviewed by Adam Roben. 5715 5716 Add necessary files and build commands to vcproj files to 5717 build a Curl-based Windows WebKit. For details, see 5718 http://bugs.webkit.org/show_bug.cgi?id=17985 5719 5720 * WebKit.vcproj/WebKit.vcproj: 5721 5722 2008-03-25 Adam Roben <aroben (a] apple.com> 5723 5724 Attempted build fix 5725 5726 * WebKit.vcproj/WebKit.sln: Make testapi build after most other 5727 projects. 5728 5729 2008-03-25 Adam Roben <aroben (a] apple.com> 5730 5731 Fix Bug 18077: Integrate testapi.c into the Windows build 5732 5733 <http://bugs.webkit.org/show_bug.cgi?id=18077> 5734 5735 Reviewed by Steve Falkenburg. 5736 5737 * WebKit.vcproj/WebKit.sln: Added testapi.vcproj to the solution. 5738 5739 2008-03-25 Brady Eidson <beidson (a] apple.com> 5740 5741 Reviewed by Darin 5742 5743 Remove newly obsolete FrameLoaderClient methods 5744 5745 * WebFrame.cpp: 5746 * WebFrame.h: 5747 5748 2008-03-25 Darin Adler <darin (a] apple.com> 5749 5750 Suggested by Adam. 5751 5752 * Interfaces/WebKit.idl: Touch this file to make the Interface project rebuild. 5753 5754 2008-03-21 Ada Chan <adachan (a] apple.com> 5755 5756 <rdar://problem/5810324> visitCount not updated in History.plist 5757 Call WebCore::HistoryItem::mergeAutoCompleteHints() in WebHistoryItem::mergeAutoCompleteHints(). 5758 5759 Reviewed by Steve. 5760 5761 * WebHistoryItem.cpp: 5762 (WebHistoryItem::mergeAutoCompleteHints): 5763 (WebHistoryItem::QueryInterface): 5764 5765 2008-03-20 Dan Bernstein <mitz (a] apple.com> 5766 5767 Reviewed by Adam Roben. 5768 5769 - make makeTextLarger() and zoomPageIn() do what they are supposed to do 5770 5771 * WebView.cpp: 5772 (WebView::makeTextLarger): Changed call to canZoomIn() to zoomIn(). 5773 (WebView::zoomPageIn): Ditto. 5774 5775 2008-03-20 Dave Hyatt <hyatt (a] apple.com> 5776 5777 Add full page zoom API for Windows WebKit. 5778 5779 Reviewed by aroben 5780 5781 * Interfaces/IWebView.idl: 5782 * WebView.cpp: 5783 (WebView::WebView): 5784 (WebView::setTextSizeMultiplier): 5785 (WebView::setPageSizeMultiplier): 5786 (WebView::setZoomMultiplier): 5787 (WebView::textSizeMultiplier): 5788 (WebView::pageSizeMultiplier): 5789 (WebView::zoomMultiplier): 5790 (WebView::canMakeTextLarger): 5791 (WebView::canZoomPageIn): 5792 (WebView::canZoomIn): 5793 (WebView::makeTextLarger): 5794 (WebView::zoomPageIn): 5795 (WebView::zoomIn): 5796 (WebView::canMakeTextSmaller): 5797 (WebView::canZoomPageOut): 5798 (WebView::canZoomOut): 5799 (WebView::makeTextSmaller): 5800 (WebView::zoomPageOut): 5801 (WebView::zoomOut): 5802 (WebView::canMakeTextStandardSize): 5803 (WebView::canResetPageZoom): 5804 (WebView::canResetZoom): 5805 (WebView::makeTextStandardSize): 5806 (WebView::resetPageZoom): 5807 (WebView::resetZoom): 5808 * WebView.h: 5809 5810 2008-03-20 John Sullivan <sullivan (a] apple.com> 5811 5812 * English.lproj/Localizable.strings: 5813 Brought this file up to date 5814 5815 2008-03-19 Dan Bernstein <mitz (a] apple.com> 5816 5817 - build fix 5818 5819 * Interfaces/WebKit.idl: Touched. 5820 5821 2008-03-19 Adam Roben <aroben (a] apple.com> 5822 5823 Fix a couple of bugs where the node highlight would appear when it shouldn't 5824 5825 There were at least two ways you could get the highlight to appear 5826 when it shouldn't: 5827 1) Selecting a node in the Inspector while the inspected WebView was 5828 in a background tab. 5829 2) Selecting a node in the Inspector, switching to another tab, 5830 closing the Inspector, then switching back to the inspected 5831 WebView's tab. 5832 5833 This patch fixes the above two issues, and possibly others. 5834 5835 show() and hide() are now private methods of WebNodeHighlight. They 5836 are replaced by a single public method, 5837 setShowsWhileWebViewIsVisible(bool). WebInspectorClient uses this to 5838 tell the highlight whether it should be showing when the inspected 5839 WebView is visible. 5840 5841 Reviewed by John Sullivan. 5842 5843 * WebCoreSupport/WebInspectorClient.cpp: 5844 (WebInspectorClient::highlight): If the highlight is already showing, 5845 it just needs to update since the highlighted node has changed. If the 5846 highlight is not showing, call setShowsWhileWebViewIsVisible(true) so 5847 that the highlight will show when the WebView is shown. 5848 (WebInspectorClient::hideHighlight): Changed to call 5849 setShowsWhileWebViewIsVisible(false) instead of hide(). 5850 * WebNodeHighlight.cpp: 5851 (WebNodeHighlight::WebNodeHighlight): Initialize new member, and 5852 initialize m_inspectedWebViewWindow to its final value here instead of 5853 in show(). 5854 (WebNodeHighlight::setShowsWhileWebViewIsVisible): Added. If we're not 5855 supposed to show ourselves when the WebView is visible, we hide 5856 ourselves and return. Otherwise, we make our visibility match the 5857 WebView's. 5858 (WebNodeHighlight::isWebViewVisible): Added. 5859 (WebNodeHighlight::show): Removed initialization of 5860 m_inspectedWebViewWindow (this is now done by our constructor). Added 5861 an assertion that we're supposed to show ourselves when the WebView is 5862 visible. 5863 (WebNodeHighlight::onWebViewShowWindow): If we shouldn't show 5864 ourselves when the WebView is visible, then we don't need to do 5865 anything at all when the WebView's visibility changes. 5866 * WebNodeHighlight.h: 5867 5868 2008-03-19 Adam Roben <aroben (a] apple.com> 5869 5870 Small WebNodeHighlight cleanup 5871 5872 Renamed the following methods: 5873 visible() -> isShowing() 5874 updateWindow() -> update() 5875 5876 Removed the window() method. 5877 5878 Added a new method, placeBehindWindow(HWND), that moves the highlight 5879 overlay in the window z-order to be just behind the passed-in window. 5880 WebInspectorClient calls this instead of doing the move directly using 5881 the old window() method. 5882 5883 Reviewed by John Sullivan. 5884 5885 * WebCoreSupport/WebInspectorClient.cpp: 5886 (WebInspectorClient::attachWindow): 5887 (WebInspectorClient::detachWindow): 5888 (WebInspectorClient::highlight): Call placeBehindWindow instead of 5889 calling SetWindowPos directly. 5890 * WebNodeHighlight.cpp: 5891 (WebNodeHighlight::show): 5892 (WebNodeHighlight::isShowing): 5893 (WebNodeHighlight::placeBehindWindow): Added. Code came from 5894 WebInspectorClient::highlight. 5895 (WebNodeHighlight::onWebViewWindowPosChanged): 5896 (WebNodeHighlight::onRootWindowPosChanged): 5897 * WebNodeHighlight.h: 5898 5899 2008-03-19 Ada Chan <adachan (a] apple.com> 5900 5901 Added a method to paint WebView content specified by 5902 the document rect into a device context. 5903 5904 Reviewed by Darin Adler. 5905 5906 * Interfaces/IWebViewPrivate.idl: 5907 * WebView.cpp: 5908 (WebView::paintDocumentRectToContext): 5909 * WebView.h: 5910 5911 2008-03-18 Brent Fulgham <bfulgham (a] gmail.com> 5912 5913 Reviewed by Adam Roben. 5914 5915 Provide some stub implementations for things that WebKit 5916 uses for performing authentication/challenge activities. This 5917 is in support of http://bugs.webkit.org/show_bug.cgi?id=17837 5918 5919 * WebDataSource.cpp: 5920 * WebError.cpp: Conditionalize CFNetwork-specific logic 5921 * WebURLAuthenticationChallenge.cpp: Conditionalize constructor 5922 for authentication/challenge member. 5923 (WebURLAuthenticationChallenge::initWithAuthenticationChallenge): 5924 * WebURLResponse.cpp: Remove CFNetwork-specific logic. 5925 * WebURLResponse.h: Conditionalize CFNetwork-specific member. 5926 * WebView.cpp: Conditionalize CFNetwork-specific network protocol test. 5927 (WebView::canHandleRequest): 5928 5929 2008-03-18 Adam Roben <aroben (a] apple.com> 5930 5931 Focus the Inspector's WebView whenever the Inspector window is focused 5932 5933 Reviewed by Mitz. 5934 5935 * WebCoreSupport/WebInspectorClient.cpp: 5936 (WebInspectorClient::onSetFocus): Send focus to the WebView. 5937 (WebInspectorWndProc): Added a handler for WM_SETFOCUS. 5938 * WebCoreSupport/WebInspectorClient.h: 5939 5940 2008-03-18 Adam Roben <aroben (a] apple.com> 5941 5942 Fix Bug 14276: Element highlight also covers Web inspector 5943 5944 <http://bugs.webkit.org/show_bug.cgi?id=14276> 5945 <rdar://5712796> 5946 5947 Also fixes <rdar://5622837> Browser window comes to front when node 5948 highlight appears, potentially blocking Inspector 5949 5950 Reviewed by Mitz. 5951 5952 * WebCoreSupport/WebInspectorClient.cpp: 5953 (WebInspectorClient::highlight): After showing the highlight, 5954 reposition it just behind the Inspector's window. 5955 * WebNodeHighlight.cpp: 5956 (WebNodeHighlight::show): 5957 - Changed flags passed to CreateWindowEx to not specify WS_VISIBLE. 5958 This is not needed because we'll show the window later in this 5959 function. 5960 - Removed call to SetWindowPos that tried to position the overlay 5961 just in front of the WebView. This is now handled by 5962 WebInspectorClient. 5963 - Changed call to ShowWindow to use SetWindowPos so that we can pass 5964 SWP_NOACTIVATE. This prevents the highlight from jumping in front 5965 of the Inspector every time it's shown. 5966 * WebNodeHighlight.h: Added a method to get the highlight's HWND. 5967 5968 2008-03-14 Steve Falkenburg <sfalken (a] apple.com> 5969 5970 PGO build fixes. 5971 5972 * WebKit.vcproj/WebKit.vcproj: 5973 5974 2008-03-13 Adam Roben <aroben (a] apple.com> 5975 5976 Another Windows build fix after r31034 5977 5978 * WebKitDLL.cpp: 5979 (loadResourceIntoBuffer): Use SharedBuffer::create. 5980 5981 2008-03-13 Adam Roben <aroben (a] apple.com> 5982 5983 Windows build fix after r31034 5984 5985 * WebFrame.cpp: 5986 (WebFrame::loadData): Use SharedBuffer::create. 5987 (WebFrame::loadHTMLString): Ditto. 5988 5989 2008-03-13 Steve Falkenburg <sfalken (a] apple.com> 5990 5991 More PGO build fixes. 5992 5993 * WebKit.vcproj/WebKit.pgd: Removed. 5994 * WebKit.vcproj/WebKit.vcproj: 5995 * WebKitPrefix.cpp: 5996 5997 2008-03-13 Anders Carlsson <andersca (a] apple.com> 5998 5999 Reviewed by Adam. 6000 6001 Call originalRequest instead of initialRequest. 6002 6003 * WebDataSource.cpp: 6004 (WebDataSource::initialRequest): 6005 6006 2008-03-13 Steve Falkenburg <sfalken (a] apple.com> 6007 6008 PGO build fixes. 6009 6010 Disable PGO for normal release builds. 6011 Added work-in-progress Release_PGOInstrument/Release_PGOOptimize targets. 6012 6013 * WebKit.vcproj/WebKit.vcproj: 6014 6015 2008-03-12 Steve Falkenburg <sfalken (a] apple.com> 6016 6017 Fix build. 6018 6019 * WebKit.vcproj/WebKit.vcproj: 6020 6021 2008-03-12 Ada Chan <adachan (a] apple.com> 6022 6023 <rdar://problem/5795843> 6024 CFURLDownload needs to be cancelled if we don't have a destination path 6025 to save resume information. 6026 6027 Reviewed by Brady. 6028 6029 * WebDownload.cpp: 6030 (WebDownload::cancelForResume): 6031 6032 2008-03-12 David Hyatt <hyatt (a] apple.com> 6033 6034 Make the zoom factor a float and not a percent. 6035 6036 Reviewed by antti 6037 6038 * WebFrame.cpp: 6039 (WebFrame::setTextSizeMultiplier): 6040 6041 2008-03-12 Steve Falkenburg <sfalken (a] apple.com> 6042 6043 Build fix. 6044 6045 * WebKit.vcproj/WebKit.pgd: 6046 * WebKit.vcproj/WebKit.vcproj: 6047 6048 2008-03-12 Steve Falkenburg <sfalken (a] apple.com> 6049 6050 Re-enabled PGO. 6051 6052 Rubber stamped by Mark Rowe. 6053 6054 * WebKit.vcproj/WebKit.pgd: 6055 * WebKit.vcproj/WebKit.vcproj: 6056 * WebKitPrefix.cpp: touched this file to force a re-build. 6057 6058 2008-03-12 Steve Falkenburg <sfalken (a] apple.com> 6059 6060 Fix build. 6061 6062 * WebKit.vcproj/WebKit.vcproj: 6063 6064 2008-03-11 Steve Falkenburg <sfalken (a] apple.com> 6065 6066 Use PGO to build WebKit.dll. 6067 6068 Reviewed by Oliver. 6069 6070 * WebKit.vcproj/WebKit.pgd: Added. 6071 * WebKit.vcproj/WebKit.vcproj: 6072 6073 2008-03-11 Brent Fulgham <bfulgham (a] gmail.com> 6074 6075 Reviewed by Adam Roben. 6076 6077 Enabled WinLauncher as part of normal Windows build. 6078 http://bugs.webkit.org/show_bug.cgi?id=17715. 6079 6080 * WebKit.vcproj/WebKit.sln: Add WinLauncher to the set of things 6081 build during a Windows build. 6082 6083 2008-03-11 Adam Roben <aroben (a] apple.com> 6084 6085 Roll out r30961 since it broke the default site icon on Windows 6086 6087 * WebKit.vcproj/WebKit.rc: 6088 * WebKit.vcproj/urlIcon.png: Renamed from WebCore/Resources/urlIcon.png. 6089 * WebKitDLL.cpp: 6090 (loadResourceIntoBuffer): 6091 6092 2008-03-11 Holger Hans Peter Freyther <zecke (a] selfish.org> 6093 6094 Reviewed by Darin Adler. 6095 6096 r25512 inlined the urlIcon to improve the startup time of Safari on Mac. Inlining is 6097 not suitable for platforms where this icon is themable. E.g. the Qt platform is allowing 6098 to theme this icon and the Gtk+ platform will probably end up with themable icons 6099 as well. 6100 6101 Remove dead code from the windows port and move the urlIcon from the windows 6102 directory to the Resource directory to be used by Qt and other ports. 6103 6104 Ifdef the usage of the built-in icon in IconDatabase.cpp and for Qt do not use 6105 it. Gtk+ currently has no proper implementation of Image::loadPlatformResource but 6106 once it does it wants to use this for getting the urlIcon as well. 6107 6108 * WebKit.vcproj/WebKit.rc: 6109 * WebKitDLL.cpp: 6110 (loadResourceIntoBuffer): 6111 6112 2008-03-10 Eric Seidel <eric (a] webkit.org> 6113 6114 No review, build fix only. 6115 6116 Speculative fix for Windows build, use ::UChar instead of KJS::UChar 6117 6118 * WebScriptCallFrame.cpp: 6119 (WebScriptCallFrame::valueForVariable): 6120 (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString): 6121 6122 2008-03-10 Steve Falkenburg <sfalken (a] apple.com> 6123 6124 Fix build break caused by r30920. 6125 6126 Serialize remaining dependent builds by adding dependencies. 6127 Visual Studio per-vcproj parallelization doesn't add a lot of value 6128 since so many of our builds are dependent - this just enforces that. 6129 We do our parallelization via pdevenv, which works much better. 6130 6131 * WebKit.vcproj/WebKit.sln: 6132 * WebKit.vcproj/WebKit.submit.sln: 6133 6134 2008-03-09 Steve Falkenburg <sfalken (a] apple.com> 6135 6136 Stop Windows build if an error occurs in a prior project. 6137 6138 Rubber stamped by Darin Adler. 6139 6140 * WebKit.vcproj/Interfaces.vcproj: 6141 * WebKit.vcproj/InterfacesGenerated.vcproj: 6142 * WebKit.vcproj/WebKit.vcproj: 6143 * WebKit.vcproj/WebKitGUID.vcproj: 6144 6145 2008-03-09 Adam Roben <aroben (a] apple.com> 6146 6147 Make WebInspectorClient use WindowMessageBroadcaster instead of manual subclassing 6148 6149 Reviewed by Darin Adler. 6150 6151 * WebCoreSupport/WebInspectorClient.cpp: 6152 (WebInspectorClient::WebInspectorClient): Removed 6153 m_orignalWebViewWndProc member. 6154 (WebInspectorClient::attachWindow): Register as a listener with 6155 WindowMessageBroadcaster instead of subclassing. 6156 (WebInspectorClient::detachWindow): Deregister as a listener with 6157 WindowMessageBroadcaster instead of unsubclassing. 6158 (WebInspectorClient::windowReceivedMessage): Renamed from 6159 SubclassedWebViewWndProc. Also added a missing break statement after 6160 the call to onWebViewWindowPosChanging. 6161 * WebCoreSupport/WebInspectorClient.h: 6162 6163 2008-03-09 Adam Roben <aroben (a] apple.com> 6164 6165 Make the node highlight not obscure the tab bar when it first appears 6166 6167 Reviewed by Darin Adler. 6168 6169 * WebNodeHighlight.cpp: 6170 (WebNodeHighlight::onWebViewWindowPosChanged): Added. Listens for 6171 changes to the WebView's size and resizes the highlight window to 6172 match. 6173 (WebNodeHighlight::onRootWindowPosChanged): Added. Listens for changes 6174 to the WebView's root window's position and moves the highlight window 6175 to match. 6176 (WebNodeHighlight::windowReceivedMessage): Call 6177 onWebViewWindowPosChanged/onRootWindowPosChanged as appropriate. 6178 * WebNodeHighlight.h: 6179 6180 2008-03-09 Adam Roben <aroben (a] apple.com> 6181 6182 Fix Bug 14254: Inspector node highlight applied to all tabs 6183 6184 <http://bugs.webkit.org/show_bug.cgi?id=14254> 6185 <rdar://problem/5322306> 6186 6187 WebNodeHighlight now listens for the WM_SHOWWINDOW message being sent 6188 to the inspected WebView so that it can hide/show itself as the 6189 WebView is hidden/shown. 6190 6191 Reviewed by Anders. 6192 6193 * WebNodeHighlight.cpp: 6194 (WebNodeHighlight::~WebNodeHighlight): Remove ourselves as a listener 6195 for our inspected WebView's window's messages. 6196 (WebNodeHighlight::show): Add ourselves as a listener for our 6197 inspected WebView's window's messages. 6198 (WebNodeHighlight::onWebViewShowWindow): Added. Hide ourselves when 6199 the WebView hides, show ourselves when the WebView is shown. 6200 (WebNodeHighlight::windowReceivedMessage): Added a separate switch 6201 statement to handle the inspected WebView's window's messages. 6202 * WebNodeHighlight.h: 6203 6204 2008-03-07 Brent Fulgham <bfulgham (a] gmail.com> 6205 6206 Reviewed by Mark Rowe. 6207 6208 Correct build intermediary output 6209 (http://bugs.webkit.org/show_bug.cgi?id=17713) 6210 6211 * WebKit/win/WebKit.vcproj/WebKit.vcproj: Correct output and intermediary paths 6212 6213 2008-03-07 Brent Fulgham <bfulgham (a] gmail.com> 6214 6215 Reviewed by Adam Roben. 6216 6217 Do not link (or attempt to initialize) the SafariTheme.dll 6218 when not building with USE(SAFARI_THEME) enabled. 6219 (http://bugs.webkit.org/show_bug.cgi?id=17707) 6220 6221 * WebKit/win/WebKitClassFactory.cpp: Conditionalize use of SafariTheme.dll 6222 6223 2008-03-07 Brent Fulgham <bfulgham (a] gmail.com> 6224 6225 Reviewed by Steve Falkenburg. 6226 6227 Update solution to understand Cairo build target. Add 6228 library dependencies for Cairo build target. 6229 (http://bugs.webkit.org/show_bug.cgi?id=17300) 6230 6231 * WebKit.vcproj/WebKit.sln: 6232 * WebKit.vcproj/WebKit.vcproj: 6233 6234 2008-03-06 Adam Roben <aroben (a] apple.com> 6235 6236 Change WebScriptDebugServer to use WebCore::JavaScriptDebugServer 6237 6238 WebScriptDebugServer is now a JavaScriptDebugListener. 6239 6240 Reviewed by Darin Adler. 6241 6242 * WebScriptDebugServer.cpp: 6243 (WebScriptDebugServer::WebScriptDebugServer): Removed initialization 6244 of m_callingListeners member. 6245 (WebScriptDebugServer::addListener): Register as a listener with 6246 JavaScriptDebugServer if we've just added our first listener. 6247 (WebScriptDebugServer::removeListener): Deregister as a listener with 6248 JavaScriptDebugServer if we've just removed our last listener. 6249 (WebScriptDebugServer::didParseSource): Added. Code came from the old 6250 sourceParsed method. Removed m_callingListeners code because 6251 JavaScriptDebugServer guards against re-entry for us. 6252 (WebScriptDebugServer::failedToParseSource): Ditto. 6253 (WebScriptDebugServer::didEnterCallFrame): Ditto for callEvent. 6254 (WebScriptDebugServer::willExecuteStatement): Ditto for atStatement. 6255 (WebScriptDebugServer::willLeaveCallFrame): Ditto for 6256 willLeaveCallFrame. 6257 (WebScriptDebugServer::exceptionWasRaised): Ditto for exception. 6258 * WebScriptDebugServer.h: Changed to inherit from 6259 WebCore::JavaScriptDebugListener. 6260 * WebView.cpp: 6261 (WebView::initWithFrame): Removed call to 6262 WebScriptDebugServer::pageCreated. This is now handled by WebCore. 6263 6264 2008-03-06 Darin Adler <darin (a] apple.com> 6265 6266 Reviewed by Mitz. 6267 6268 - fix regression test failures and crashes from the visited-link change 6269 6270 * WebCoreSupport/WebChromeClient.cpp: 6271 (WebChromeClient::populateVisitedLinks): Check for null before calling 6272 addVisitedLinksToPageGroup. 6273 * WebCoreSupport/WebFrameLoaderClient.cpp: 6274 (WebFrameLoaderClient::updateGlobalHistory): Ditto. 6275 * WebHistory.cpp: 6276 (WebHistory::setOptionalSharedHistory): Call PageGroup::setShouldTrackVisitedLinks 6277 to turn off visited links if there is no history object. Also call 6278 removeAllVisitedLinks so we can start over from scratch with the new history. 6279 6280 2008-03-06 Matt Lilek <webkit (a] mattlilek.com> 6281 6282 Reviewed by Adam Roben. 6283 6284 Bug 17691: REGRESSION: FindSafari doesn't work 6285 http://bugs.webkit.org/show_bug.cgi?id=17691 6286 6287 Swap my change from r30394 to use the Release libraries instead of Debug 6288 since some machines don't have the Debug version. 6289 6290 * WebKit.vcproj/WebKit.sln: 6291 6292 2008-03-06 Darin Adler <darin (a] apple.com> 6293 6294 Reviewed by Mitz. 6295 6296 - fix http://bugs.webkit.org/show_bug.cgi?id=17526 6297 REGRESSION: iframes are added to Safari's History menu 6298 by separating the visited link machinery from global history 6299 6300 * WebCoreSupport/WebChromeClient.cpp: 6301 (WebChromeClient::populateVisitedLinks): Added a call to the new 6302 WebHistory::addVisitedLinksToPageGroup function. 6303 * WebCoreSupport/WebChromeClient.h: Added populateVisitedLinks. 6304 Also fixed the webView function to be non-virtual. 6305 6306 * WebCoreSupport/WebFrameLoaderClient.cpp: 6307 (WebFrameLoaderClient::updateGlobalHistory): Changed to use the 6308 new WebHistory::addItem function. 6309 (WebFrameLoaderClient::webHistory): Changed to return a WebHistory*, 6310 there's no reason to AddRef the result from this function. 6311 * WebCoreSupport/WebFrameLoaderClient.h: Ditto. 6312 6313 * WebHistory.cpp: Removed IWebHistoryPrivate and _WebCoreHistoryProvider. 6314 (WebHistory::QueryInterface): Removed IWebHistoryPrivate. 6315 (sharedHistoryStorage): Added. 6316 (WebHistory::sharedHistory): Added. 6317 (WebHistory::optionalSharedHistory): Changed to use sharedHistory(). 6318 (WebHistory::setOptionalSharedHistory): Changed to require a WebHistory 6319 object, not just an IWebHistory. 6320 (WebHistory::removeAllItems): Call PageGroup::removeAllVisitedLinks. 6321 (WebHistory::addItem): Changed parameter types since this is called with 6322 arguments from WebCore -- at some point this could allow better efficiency. 6323 (WebHistory::removeItemForURLString): Call PageGroup::removeAllVisitedLinks 6324 if the last URL is being removed. 6325 (addVisitedLinkToPageGroup): Added. Helper. Adds a single link to a group's 6326 visited link set. 6327 (WebHistory::addVisitedLinksToPageGroup): Added. Adds all links to a group's 6328 visited link. 6329 * WebHistory.h: Removed IWebHistoryPrivate. Removed optionalSharedHistoryInternal 6330 and added sharedHistory. Replaced addItemForURL and containsItemForURLString with 6331 non-virtual addItem and addVisitedLinksToPageGroup functions. 6332 6333 2008-03-05 Anders Carlsson <andersca (a] apple.com> 6334 6335 Build fix. 6336 6337 * WebKit.vcproj/WebKit.vcproj: 6338 6339 2008-03-04 Sam Weinig <sam (a] webkit.org> 6340 6341 Reviewed by Mark Rowe. 6342 6343 - Remove all unnecessary includes of JSDOMWindowBase.h, we prefer including 6344 JSDOMWindow.h 6345 6346 * WebFrame.cpp: 6347 6348 2008-03-04 Adam Roben <aroben (a] apple.com> 6349 6350 WebScriptDebugServer cleanup 6351 6352 Reviewed by Anders. 6353 6354 * WebScriptDebugServer.cpp: Renamed m_callingServer to 6355 m_callingListeners. 6356 (WebScriptDebugServer::WebScriptDebugServer): 6357 (WebScriptDebugServer::sharedWebScriptDebugServer): Changed to keep 6358 the shared instance as a function-level static. 6359 (WebScriptDebugServer::didLoadMainResourceForDataSource): Made return 6360 void. 6361 (WebScriptDebugServer::sourceParsed): 6362 (WebScriptDebugServer::callEvent): 6363 (WebScriptDebugServer::atStatement): 6364 (WebScriptDebugServer::returnEvent): 6365 (WebScriptDebugServer::exception): 6366 (WebScriptDebugServer::serverDidDie): Made return void. 6367 * WebScriptDebugServer.h: 6368 - Removed unnecessary #includes 6369 - Made inheritance from KJS::Debugger private 6370 - Made some methods private 6371 6372 2008-03-04 Adam Roben <aroben (a] apple.com> 6373 6374 Remove WebScriptDebugger 6375 6376 Reviewed by Anders. 6377 6378 * WebKit.vcproj/WebKit.vcproj: Removed files from project. 6379 * WebScriptDebugServer.cpp: 6380 (frame): Moved here from WebScriptDebugger.cpp. 6381 (webFrame): Ditto. 6382 (webView): Ditto. 6383 (WebScriptDebugServer::WebScriptDebugServer): Initialize new member. 6384 * WebScriptDebugServer.h: Changed to inherit directly from 6385 KJS::Debugger instead of from WebScriptDebugger, and added 6386 m_callingServer member that WebScriptDebugger used to own. 6387 * WebScriptDebugger.cpp: Removed. 6388 * WebScriptDebugger.h: Removed. 6389 6390 2008-03-04 Adam Roben <aroben (a] apple.com> 6391 6392 Move sourceParsed to WebScriptDebugServer 6393 6394 Reviewed by Anders. 6395 6396 * WebScriptDebugServer.cpp: 6397 (WebScriptDebugServer::sourceParsed): Moved here from 6398 WebScriptDebugger and merged with didParseSource/failedToParseSource. 6399 * WebScriptDebugServer.h: Removed didParseSource/failedToParseSource. 6400 * WebScriptDebugger.cpp: Removed sourceParsed. 6401 * WebScriptDebugger.h: Ditto. 6402 6403 2008-03-04 Adam Roben <aroben (a] apple.com> 6404 6405 Move callEvent, returnEvent, and exception to WebScriptDebugServer 6406 6407 Reviewed by Anders. 6408 6409 * WebScriptDebugServer.cpp: 6410 (WebScriptDebugServer::callEvent): Moved here from WebScriptDebugger 6411 and merged with didEnterCallFrame. 6412 (WebScriptDebugServer::returnEvent): Ditto for willLeaveCallFrame. 6413 (WebScriptDebugServer::exception): Ditto for exceptionWasRaised. 6414 * WebScriptDebugServer.h: Removed didEnterCallFrame, 6415 willLeaveCallFrame, and exceptionWasRaised. 6416 * WebScriptDebugger.cpp: Removed callEvent, returnEvent, and 6417 exception. 6418 * WebScriptDebugger.h: Ditto. 6419 6420 2008-03-04 Adam Roben <aroben (a] apple.com> 6421 6422 Move atStatement to WebScriptDebugServer 6423 6424 Reviewed by Anders. 6425 6426 * WebScriptDebugServer.cpp: 6427 (WebScriptDebugServer::atStatement): Moved here and merged with the 6428 old willExecuteStatement method. 6429 * WebScriptDebugServer.h: Removed inheritance from 6430 IWebScriptDebugListener, which no one was relying on. 6431 * WebScriptDebugger.cpp: 6432 (webFrame): Made non-static. 6433 (webView): Ditto. 6434 * WebScriptDebugger.h: Added declarations of webFrame and webView 6435 methods for WebScriptDebugServer's benefit. Removed unused m_webView 6436 and m_frame members. 6437 6438 2008-03-04 Adam Roben <aroben (a] apple.com> 6439 6440 Start to merge WebScriptDebugger and WebScriptDebugServer 6441 6442 WebScriptDebugServer now inherits from WebScriptDebugger. 6443 6444 Reviewed by Anders. 6445 6446 * WebScriptDebugServer.cpp: 6447 (WebScriptDebugServer::pageCreated): Use sharedWebScriptDebugServer 6448 instead of WebScriptDebugger::shared. 6449 (WebScriptDebugServer::addListener): Ditto. 6450 (WebScriptDebugServer::removeListener): Ditto. 6451 * WebScriptDebugServer.h: Changed to inherit from WebScriptDebugger. 6452 * WebScriptDebugger.cpp: Removed shared method. 6453 * WebScriptDebugger.h: Made constructor/destructor protected, and 6454 removed shared method. 6455 6456 2008-03-04 Adam Roben <aroben (a] apple.com> 6457 6458 Use WebCore's new debugger-attaching code 6459 6460 Reviewed by Kevin M. 6461 6462 * WebCoreSupport/WebFrameLoaderClient.cpp: Moved a kit() function to 6463 WebView.{cpp,h} so that other files can call it. 6464 * WebFrame.cpp: 6465 (WebFrame::WebFrame): Removed m_scriptDebugger member. 6466 (WebFrame::windowObjectCleared): Removed attach/detach calls. This is 6467 no longer needed because WebScriptDebugger no longer stores any 6468 per-WebFrame state. 6469 * WebFrame.h: 6470 * WebScriptDebugServer.cpp: 6471 (WebScriptDebugServer::pageCreated): Added. Attaches our shared 6472 debugger to the Page if we have any listeners. 6473 (WebScriptDebugServer::addListener): Sets our shared debugger for all 6474 Pages when we get our first listener. 6475 (WebScriptDebugServer::removeListener): Removes our shared debugger 6476 from all Pages when we lose our last listener. 6477 * WebScriptDebugServer.h: 6478 * WebScriptDebugger.cpp: 6479 (WebScriptDebugger::shared): Added. 6480 (WebScriptDebugger::WebScriptDebugger): Removed m_frame member. 6481 (WebScriptDebugger::~WebScriptDebugger): Added. 6482 (frame): Gets a Frame from an ExecState. 6483 (webFrame): Gets a WebFrame from an ExecState. 6484 (webView): Gets a WebView from an ExecState. 6485 (WebScriptDebugger::sourceParsed): Changed to call webFrame() and 6486 webView() instead of using m_frame and m_webView members. 6487 (WebScriptDebugger::callEvent): Ditto. 6488 (WebScriptDebugger::atStatement): Ditto. 6489 (WebScriptDebugger::returnEvent): Ditto. 6490 (WebScriptDebugger::exception): Ditto. 6491 * WebScriptDebugger.h: 6492 * WebView.cpp: 6493 (kit): Moved here from WebFrameLoaderClient.cpp. 6494 (WebView::initWithFrame): Tell the WebScriptDebugServer about the new 6495 Page so it can attach a debugger if needed. 6496 * WebView.h: 6497 6498 2008-03-04 Adam Roben <aroben (a] apple.com> 6499 6500 Change WebView's string-finding methods to call through to Page 6501 6502 These methods were added to Page back in r28878 (and the 6503 implementation was copied from WebView!) but we never switched over to 6504 using them. 6505 6506 Reviewed by Sam. 6507 6508 * WebView.cpp: 6509 (WebView::searchFor): Call through to Page::findString. 6510 (WebView::markAllMatchesForText): Call through to Page. 6511 (WebView::unmarkAllTextMatches): Ditto. 6512 6513 2008-03-04 Adam Roben <aroben (a] apple.com> 6514 6515 Actually pause the process while Drosera is at a breakpoint 6516 6517 WebScriptDebugServer::suspendProcessIfPaused is supposed to pause the 6518 process while Drosera is at a breakpoint. Previously we were just 6519 starting a message pump that would deliver messages to all windows in 6520 the process, allowing mouse events, JS timers, etc. to execute. 6521 6522 Now we only deliver messages to COM's message window, which is all we 6523 need to allow RPC to function. 6524 6525 Reviewed by Anders. 6526 6527 * WebScriptDebugServer.cpp: 6528 (comMessageWindow): Added. Finds COM's message window. 6529 (WebScriptDebugServer::suspendProcessIfPaused): Only deliver messages 6530 to COM's message window so that mouse events, JS timers, etc., won't 6531 execute. 6532 6533 2008-03-03 Adam Roben <aroben (a] apple.com> 6534 6535 Generate WebScriptCallFrame instances dynamically 6536 6537 WebScriptDebugger no longer holds a reference to the topmost call 6538 frame, and WebScriptCallFrame no longer holds a reference to its 6539 caller. We now generate WebScriptCallFrame instances as needed by 6540 walking the callingExecState chain. 6541 6542 By making WebKit no longer responsible for keeping track of the call 6543 stack, we get one step closer to moving most JS debugging code out of 6544 WebKit entirely. 6545 6546 This incidentally fixes a bug in Drosera where we'd never show the 6547 global scope in the call stack. 6548 6549 Reviewed by Sam and Kevin M. 6550 6551 * WebScriptCallFrame.cpp: 6552 (callingFunctionOrGlobalExecState): Finds the nearest calling 6553 ExecState that is a FunctionExecState or GlobalExecState, if any, and 6554 returns it. 6555 (WebScriptCallFrame::WebScriptCallFrame): 6556 - No longer takes a caller parameter. 6557 - Sets m_state to the callingFunctionOrGlobalExecState of the 6558 ExecState passed in. 6559 (WebScriptCallFrame::createInstance): Removed the caller parameter. 6560 (WebScriptCallFrame::caller): Generate a new WebScriptCallFrame on the 6561 fly from our ExecState. 6562 * WebScriptCallFrame.h: No longer holds a reference to the caller. 6563 * WebScriptDebugger.cpp: 6564 (WebScriptDebugger::WebScriptDebugger): Removed the call to callEvent 6565 that was supposed to set up the global scope call frame, but never 6566 worked because m_callingServer was set to true, which would cause 6567 callEvent to return early without doing anything. Also removed the 6568 m_callingServer guards since we're not calling callEvent anymore. 6569 (WebScriptDebugger::callEvent): Create a WebScriptCallFrame on the 6570 fly from the passed-in ExecState. 6571 (WebScriptDebugger::atStatement): Ditto. 6572 (WebScriptDebugger::returnEvent): Ditto, but use the callingExecState. 6573 This is equivalent to what calling leaveFrame() did before. 6574 (WebScriptDebugger::exception): Ditto, using the passed-in ExecState. 6575 * WebScriptDebugger.h: Removed m_topStackFrame member and 6576 enterFrame/leaveFrame methods. 6577 6578 2008-03-03 Sam Weinig <sam (a] webkit.org> 6579 6580 Windows build fix. 6581 6582 * WebFrame.cpp: 6583 (WebFrame::windowObjectCleared): 6584 6585 2008-03-03 David Hyatt <hyatt (a] apple.com> 6586 6587 Full page zoom work. Make setting of a zoom factor take a boolean saying whether it is a text only 6588 or full page zoom. 6589 6590 Reviewed by Tim H. 6591 6592 * WebFrame.cpp: 6593 (WebFrame::setTextSizeMultiplier): 6594 6595 2008-02-29 Adam Roben <aroben (a] apple.com> 6596 6597 Delete an unused file 6598 6599 Rubberstamped by Brady. 6600 6601 * Interfaces/IWebScriptScope.idl: Removed. 6602 6603 2008-02-28 Adam Roben <aroben (a] apple.com> 6604 6605 Change WebPreferences to be backed by CFPreferences 6606 6607 Reviewed by Ada, Geoff, Steve, and Darin. 6608 6609 * WebPreferenceKeysPrivate.h: 6610 * WebPreferences.cpp: 6611 (WebPreferences::sharedStandardPreferences): Changed to call 6612 setAutoSaves(TRUE) before calling load(). This ensures that the 6613 preferences being migrated to CFPreferences are saved to disk. 6614 (WebPreferences::valueForKey): Changed to return a RetainPtr to ensure 6615 that the refcount is managed properly. Now attempts to retrieve a 6616 value from CFPreferences before falling back to the default settings. 6617 (WebPreferences::setValueForKey): Now saves the value in 6618 CFPreferences if m_autoSaves is true. 6619 (WebPreferences::stringValueForKey): Updated for valueForKey changes. 6620 (WebPreferences::integerValueForKey): DItto. 6621 (WebPreferences::boolValueForKey): Ditto. 6622 (WebPreferences::floatValueForKey): Ditto. 6623 (WebPreferences::save): Now simply calls CFPreferencesAppSynchronize. 6624 (WebPreferences::load): Always initializes m_privatePrefs to an empty 6625 CFMutableDictionary. 6626 (WebPreferences::migrateWebKitPreferencesToCFPreferences): Migrates 6627 preferences from our old custom plist to CFPreferences and then 6628 deletes our custom plist, if the migration has never occurred before. 6629 (WebPreferences::copyWebKitPreferencesToCFPreferences): Copies 6630 preferences to CFPreferences. If we've never migrated the default 6631 settings from Safari 3 Beta before, we omit them from this copying 6632 procedure. 6633 * WebPreferences.h: 6634 6635 2008-02-28 Adam Roben <aroben (a] apple.com> 6636 6637 Refactor value <-> CFNumber conversions into some helper functions 6638 6639 Reviewed by Jon. 6640 6641 * WebPreferences.cpp: 6642 (preferencesPath): Changed to return a const String&. 6643 (numberValueForPreferencesValue): Converts a value from preferences to 6644 a native numeric type. 6645 (cfNumber): Converts a native numeric value to a CFNumberRef. 6646 (booleanValueForPreferencesValue): Converts a value from preferences 6647 to a native boolean. 6648 (WebPreferences::integerValueForKey): Changed to call 6649 numberValueForPreferencesValue. 6650 (WebPreferences::floatValueForKey): Ditto. 6651 (WebPreferences::boolValueForKey): Changed to call 6652 booleanValueForPreferencesValue. 6653 (WebPreferences::setIntegerValue): Changed to call cfNumber. 6654 (WebPreferences::setLongLongValue): Ditto. 6655 6656 2008-02-27 Adam Roben <aroben (a] apple.com> 6657 6658 Add WebPreferences::setValueForKey 6659 6660 This is just a small refactoring of some duplicated logic into a 6661 shared method. 6662 6663 Reviewed by Sam. 6664 6665 * WebPreferences.cpp: 6666 (WebPreferences::setValueForKey): Added. 6667 (WebPreferences::setStringValue): Call setValueForKey. 6668 (WebPreferences::setIntegerValue): Ditto. 6669 (WebPreferences::setBoolValue): Ditto. 6670 (WebPreferences::setLongLongValue): Ditto. 6671 * WebPreferences.h: 6672 6673 2008-02-27 Adam Roben <aroben (a] apple.com> 6674 6675 Remove WebPreferences' static members 6676 6677 s_defaultSettings is now a file-level static, and 6678 s_standardPreferences has been removed completely (it wasn't being 6679 used). 6680 6681 Reviewed by Sam. 6682 6683 * WebPreferences.cpp: 6684 (WebPreferences::initializeDefaultSettings): 6685 (WebPreferences::valueForKey): 6686 (WebPreferences::migrateDefaultSettingsFromSafari3Beta): 6687 (WebPreferences::removeValuesMatchingDefaultSettings): 6688 * WebPreferences.h: 6689 6690 2008-02-29 Steve Falkenburg <sfalken (a] apple.com> 6691 6692 Don't free the VARIANT passed into Write, since it is an input parameter owned by the caller. 6693 Found via code inspection. 6694 6695 Reviewed by Adam. 6696 6697 * WebActionPropertyBag.cpp: 6698 (WebActionPropertyBag::Write): 6699 * WebElementPropertyBag.cpp: 6700 (WebElementPropertyBag::Write): 6701 6702 2008-02-27 Matt Lilek <webkit (a] mattlilek.com> 6703 6704 Reviewed by Adam Roben. 6705 6706 Bug 14348: Messing up the inspector by dragging an URL into it 6707 http://bugs.webkit.org/show_bug.cgi?id=14348 6708 <rdar://problem/5283620> and <rdar://problem/5712808> 6709 6710 Add a new class to handle the Inspector's delegate calls. 6711 6712 * WebCoreSupport/WebInspectorClient.cpp: 6713 (WebInspectorClient::createPage): 6714 * WebCoreSupport/WebInspectorDelegate.cpp: Added. 6715 (:m_refCount): 6716 (WebInspectorDelegate::createInstance): 6717 (WebInspectorDelegate::AddRef): 6718 (WebInspectorDelegate::Release): 6719 (WebInspectorDelegate::dragDestinationActionMaskForDraggingInfo): 6720 * WebCoreSupport/WebInspectorDelegate.h: Added. 6721 (WebInspectorDelegate::QueryInterface): 6722 (WebInspectorDelegate::createWebViewWithRequest): 6723 (WebInspectorDelegate::webViewShow): 6724 (WebInspectorDelegate::webViewClose): 6725 (WebInspectorDelegate::webViewFocus): 6726 (WebInspectorDelegate::webViewUnfocus): 6727 (WebInspectorDelegate::webViewFirstResponder): 6728 (WebInspectorDelegate::makeFirstResponder): 6729 (WebInspectorDelegate::setStatusText): 6730 (WebInspectorDelegate::webViewStatusText): 6731 (WebInspectorDelegate::webViewAreToolbarsVisible): 6732 (WebInspectorDelegate::setToolbarsVisible): 6733 (WebInspectorDelegate::webViewIsStatusBarVisible): 6734 (WebInspectorDelegate::setStatusBarVisible): 6735 (WebInspectorDelegate::webViewIsResizable): 6736 (WebInspectorDelegate::setResizable): 6737 (WebInspectorDelegate::setFrame): 6738 (WebInspectorDelegate::webViewFrame): 6739 (WebInspectorDelegate::setContentRect): 6740 (WebInspectorDelegate::webViewContentRect): 6741 (WebInspectorDelegate::runJavaScriptAlertPanelWithMessage): 6742 (WebInspectorDelegate::runJavaScriptConfirmPanelWithMessage): 6743 (WebInspectorDelegate::runJavaScriptTextInputPanelWithPrompt): 6744 (WebInspectorDelegate::runBeforeUnloadConfirmPanelWithMessage): 6745 (WebInspectorDelegate::runOpenPanelForFileButtonWithResultListener): 6746 (WebInspectorDelegate::mouseDidMoveOverElement): 6747 (WebInspectorDelegate::contextMenuItemsForElement): 6748 (WebInspectorDelegate::validateUserInterfaceItem): 6749 (WebInspectorDelegate::shouldPerformAction): 6750 (WebInspectorDelegate::willPerformDragDestinationAction): 6751 (WebInspectorDelegate::dragSourceActionMaskForPoint): 6752 (WebInspectorDelegate::willPerformDragSourceAction): 6753 (WebInspectorDelegate::contextMenuItemSelected): 6754 (WebInspectorDelegate::hasCustomMenuImplementation): 6755 (WebInspectorDelegate::trackCustomPopupMenu): 6756 (WebInspectorDelegate::measureCustomMenuItem): 6757 (WebInspectorDelegate::drawCustomMenuItem): 6758 (WebInspectorDelegate::addCustomMenuDrawingData): 6759 (WebInspectorDelegate::cleanUpCustomMenuDrawingData): 6760 (WebInspectorDelegate::canTakeFocus): 6761 (WebInspectorDelegate::takeFocus): 6762 (WebInspectorDelegate::registerUndoWithTarget): 6763 (WebInspectorDelegate::removeAllActionsWithTarget): 6764 (WebInspectorDelegate::setActionTitle): 6765 (WebInspectorDelegate::undo): 6766 (WebInspectorDelegate::redo): 6767 (WebInspectorDelegate::canUndo): 6768 (WebInspectorDelegate::canRedo): 6769 * WebKit.vcproj/WebKit.vcproj: 6770 6771 2008-02-26 Adam Roben <aroben (a] apple.com> 6772 6773 Move ResourceLoadDelegate methods to WebFrameLoaderClient 6774 6775 Changed all methods to use early returns where possible and COMPtr's 6776 AdoptCOM/Query constructors. 6777 6778 Reviewed by Anders. 6779 6780 * WebCoreSupport/WebFrameLoaderClient.cpp: 6781 (WebFrameLoaderClient::assignIdentifierToInitialRequest): 6782 (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge): 6783 (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge): 6784 (WebFrameLoaderClient::dispatchWillSendRequest): 6785 (WebFrameLoaderClient::dispatchDidReceiveResponse): 6786 (WebFrameLoaderClient::dispatchDidReceiveContentLength): 6787 (WebFrameLoaderClient::dispatchDidFinishLoading): 6788 (WebFrameLoaderClient::dispatchDidFailLoading): 6789 * WebCoreSupport/WebFrameLoaderClient.h: 6790 * WebFrame.cpp: 6791 * WebFrame.h: 6792 6793 2008-02-26 Adam Roben <aroben (a] apple.com> 6794 6795 Move two more methods to WebFrameLoaderClient 6796 6797 Reviewed by Anders. 6798 6799 * WebCoreSupport/WebFrameLoaderClient.cpp: 6800 (kit): 6801 (WebFrameLoaderClient::dispatchCreatePage): Changed nested ifs to 6802 early returns, and changed to use the COMPtr Query constructor. 6803 (WebFrameLoaderClient::dispatchDidLoadMainResource): Added an early 6804 return, and changed to use getWebDataSource. 6805 * WebCoreSupport/WebFrameLoaderClient.h: 6806 * WebFrame.cpp: 6807 * WebFrame.h: 6808 6809 2008-02-26 Adam Roben <aroben (a] apple.com> 6810 6811 Get rid of IID_WebFrame 6812 6813 Reviewed by Anders. 6814 6815 * WebFrame.cpp: Removed IID_WebFrame definition. 6816 (WebFrame::QueryInterface): Use __uuidof(WebFrame) instead of 6817 IID_WebFrame. 6818 (WebFrame::isDescendantOfFrame): Use COMPtr's Query constructor 6819 instead of a manual QueryInterface. 6820 * WebFrame.h: Removed IID_WebFrame declaration, gave WebFrame a 6821 DECLSPEC_UUID. 6822 6823 2008-02-26 Adam Roben <aroben (a] apple.com> 6824 6825 Move WebHistory-related methods to WebFrameLoaderClient 6826 6827 Reviewed by Anders. 6828 6829 * WebCoreSupport/WebFrameLoaderClient.cpp: 6830 (WebFrameLoaderClient::updateGlobalHistory): 6831 (WebFrameLoaderClient::shouldGoToHistoryItem): 6832 (WebFrameLoaderClient::setTitle): Changed some nested ifs into early 6833 returns. 6834 (WebFrameLoaderClient::webHistory): Changed to return a COMPtr to 6835 make the reference management foolproof. 6836 * WebCoreSupport/WebFrameLoaderClient.h: 6837 * WebFrame.cpp: 6838 * WebFrame.h: 6839 6840 2008-02-26 Adam Roben <aroben (a] apple.com> 6841 6842 Move cache-related methods to WebFrameLoaderClient 6843 6844 Reviewed by Anders. 6845 6846 * WebCoreSupport/WebFrameLoaderClient.cpp: 6847 (getWebDataSource): Moved to the top of the file. 6848 (WebFrameLoaderClient::savePlatformDataToCachedPage): 6849 (WebFrameLoaderClient::transitionToCommittedForNewPage): 6850 (WebFrameLoaderClient::canCachePage): 6851 * WebCoreSupport/WebFrameLoaderClient.h: 6852 * WebFrame.cpp: 6853 * WebFrame.h: 6854 6855 2008-02-25 Adam Roben <aroben (a] apple.com> 6856 6857 Move plugin-related methods to WebFrameLoaderClient 6858 6859 Reviewed by Anders. 6860 6861 * WebCoreSupport/WebFrameLoaderClient.cpp: 6862 (WebFrameLoaderClient::WebFrameLoaderClient): 6863 (WebFrameLoaderClient::setMainDocumentError): 6864 (WebFrameLoaderClient::committedLoad): Added some early returns. 6865 (WebFrameLoaderClient::receivedData): 6866 (WebFrameLoaderClient::finishedLoading): Ditto. 6867 (getWebDataSource): 6868 (WebFrameLoaderClient::createPlugin): 6869 * WebCoreSupport/WebFrameLoaderClient.h: 6870 * WebFrame.cpp: 6871 (WebFrame::WebFramePrivate::WebFramePrivate): 6872 * WebFrame.h: 6873 6874 2008-02-25 Adam Roben <aroben (a] apple.com> 6875 6876 Move createFrame to WebFrameLoaderClient 6877 6878 Reviewed by Anders. 6879 6880 * WebCoreSupport/WebFrameLoaderClient.cpp: 6881 (WebFrameLoaderClient::createFrame): 6882 (WebFrameLoaderClient::loadURLIntoChild): 6883 * WebCoreSupport/WebFrameLoaderClient.h: 6884 * WebFrame.cpp: 6885 * WebFrame.h: 6886 6887 2008-02-25 Adam Roben <aroben (a] apple.com> 6888 6889 Move progress-related methods to WebFrameLoaderClient 6890 6891 Reviewed by Anders. 6892 6893 * WebCoreSupport/WebFrameLoaderClient.cpp: 6894 (WebFrameLoaderClient::postProgressStartedNotification): 6895 (WebFrameLoaderClient::postProgressEstimateChangedNotification): 6896 (WebFrameLoaderClient::postProgressFinishedNotification): 6897 * WebCoreSupport/WebFrameLoaderClient.h: 6898 * WebFrame.cpp: 6899 * WebFrame.h: 6900 6901 2008-02-25 Adam Roben <aroben (a] apple.com> 6902 6903 Remove WebFrame::detachedFromParent1 6904 6905 This method was removed from FrameLoaderClient in r19042, but was 6906 never removed from WebFrame. 6907 6908 Reviewed by Anders. 6909 6910 * WebFrame.cpp: 6911 * WebFrame.h: 6912 6913 2008-02-23 Adam Roben <aroben (a] apple.com> 6914 6915 Move many dispatch methods to WebFrameLoaderClient 6916 6917 Reviewed by Sam. 6918 6919 * WebCoreSupport/WebFrameLoaderClient.cpp: 6920 (WebFrameLoaderClient::dispatchDidHandleOnloadEvents): 6921 (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad): 6922 (WebFrameLoaderClient::dispatchDidCancelClientRedirect): 6923 (WebFrameLoaderClient::dispatchWillPerformClientRedirect): 6924 (WebFrameLoaderClient::dispatchDidChangeLocationWithinPage): 6925 (WebFrameLoaderClient::dispatchWillClose): 6926 (WebFrameLoaderClient::dispatchDidReceiveIcon): 6927 (WebFrameLoaderClient::dispatchDidStartProvisionalLoad): 6928 (WebFrameLoaderClient::dispatchDidReceiveTitle): 6929 (WebFrameLoaderClient::dispatchDidCommitLoad): 6930 (WebFrameLoaderClient::dispatchDidFinishDocumentLoad): 6931 (WebFrameLoaderClient::dispatchDidFinishLoad): 6932 (WebFrameLoaderClient::dispatchDidFirstLayout): 6933 (WebFrameLoaderClient::dispatchShow): 6934 * WebCoreSupport/WebFrameLoaderClient.h: 6935 * WebFrame.cpp: 6936 * WebFrame.h: 6937 6938 2008-02-23 Adam Roben <aroben (a] apple.com> 6939 6940 Move two more methods to WebFrameLoaderClient 6941 6942 Reviewed by Sam. 6943 6944 * WebCoreSupport/WebFrameLoaderClient.cpp: 6945 (WebFrameLoaderClient::hasFrameView): 6946 (WebFrame::forceLayout): 6947 * WebCoreSupport/WebFrameLoaderClient.h: 6948 * WebFrame.cpp: 6949 * WebFrame.h: 6950 6951 2008-02-24 Darin Adler <darin (a] apple.com> 6952 6953 Reviewed by Sam. 6954 6955 - remove separate client calls for "standard" and "reload' history 6956 6957 * WebFrame.cpp: 6958 (WebFrame::updateGlobalHistory): 6959 * WebFrame.h: 6960 6961 2008-02-23 Brent Fulgham <bfulgham (a] gmail.com> 6962 6963 Not reviewed, build fix. 6964 6965 * WebIconDatabase.cpp: 6966 * WebIconDatabase.h: 6967 6968 2008-02-22 Adam Roben <aroben (a] apple.com> 6969 6970 Move hasWebView to WebFrameLoaderClient 6971 6972 I added an m_webFrame member to WebFrameLoaderClient. This is slightly 6973 strange because WebFrame inherits from WebFrameLoaderClient, but this 6974 member will be needed once we remove the inheritance, so we might as 6975 well prepare for that now. 6976 6977 Reviewed by Anders. 6978 6979 * WebCoreSupport/WebFrameLoaderClient.cpp: 6980 (WebFrameLoaderClient::WebFrameLoaderClient): Changed to take a 6981 WebFrame* parameter. 6982 (WebFrameLoaderClient::hasWebView): Moved here from WebFrame.cpp. 6983 * WebCoreSupport/WebFrameLoaderClient.h: Added an m_webFrame 6984 parameter. 6985 * WebFrame.cpp: Removed hasWebView. 6986 (WebFrame::WebFrame): Updated for WebFrameLoaderClient constructor 6987 change. 6988 * WebFrame.h: 6989 6990 2008-02-22 Adam Roben <aroben (a] apple.com> 6991 6992 Start to move FrameLoaderClient methods off WebFrame onto a separate class 6993 6994 WebFrame now inherits from a new WebFrameLoaderClient class, which 6995 will gradually assume all FrameLoaderClient responsibilities. Once 6996 that process is complete, WebFrame will no longer inherit from 6997 WebFrameLoaderClient. 6998 6999 In this first patch, I've only moved createDocumentLoader up to the 7000 WebFrameLoaderClient class. 7001 7002 Reviewed by Anders. 7003 7004 * WebCoreSupport/WebFrameLoaderClient.cpp: Added. 7005 (WebFrameLoaderClient::WebFrameLoaderClient): 7006 (WebFrameLoaderClient::~WebFrameLoaderClient): 7007 (WebFrameLoaderClient::createDocumentLoader): Moved here from 7008 WebFrame.cpp. 7009 * WebCoreSupport/WebFrameLoaderClient.h: Added. 7010 * WebFrame.cpp: Removed createDocumentLoader implementation. 7011 * WebFrame.h: Changed to inherit from WebFrameLoaderClient. 7012 * WebKit.vcproj/WebKit.vcproj: Added new files to the project. 7013 7014 2008-02-22 Adam Roben <aroben (a] apple.com> 7015 7016 Move FormValuesPropertyBag into its own files 7017 7018 Reviewed by Sam. 7019 7020 * WebCoreSupport/FormValuesPropertyBag.cpp: Added. 7021 (FormValuesPropertyBag::QueryInterface): 7022 (FormValuesPropertyBag::AddRef): 7023 (FormValuesPropertyBag::Release): 7024 (FormValuesPropertyBag::Read): 7025 (FormValuesPropertyBag::Write): 7026 (FormValuesPropertyBag::CountProperties): 7027 (FormValuesPropertyBag::GetPropertyInfo): 7028 (FormValuesPropertyBag::LoadObject): 7029 * WebCoreSupport/FormValuesPropertyBag.h: Added. 7030 (FormValuesPropertyBag::FormValuesPropertyBag): 7031 * WebFrame.cpp: Deleted FormValuesPropertyBag code. 7032 * WebKit.vcproj/WebKit.vcproj: Added new files to the project. 7033 7034 2008-02-22 Adam Roben <aroben (a] apple.com> 7035 7036 Remove some unused WebFrame methods 7037 7038 FrameWinClient was deleted back in r22965, but these methods were 7039 never deleted. 7040 7041 Reviewed by Sam. 7042 7043 * WebFrame.cpp: 7044 * WebFrame.h: Made one createFrame overload protected, since it's only 7045 called internally by WebFrame. 7046 7047 2008-02-21 Adam Roben <aroben (a] apple.com> 7048 7049 Move Client implementations into a WebCoreSupport directory 7050 7051 Reviewed by Anders. 7052 7053 * WebKit.vcproj/WebKit.vcproj: Updated file paths, and added 7054 WebCoreSupport directory to the include path. 7055 * WebCoreSupport/WebChromeClient.cpp: Renamed from WebKit/win/WebChromeClient.cpp. 7056 * WebCoreSupport/WebChromeClient.h: Renamed from WebKit/win/WebChromeClient.h. 7057 * WebCoreSupport/WebContextMenuClient.cpp: Renamed from WebKit/win/WebContextMenuClient.cpp. 7058 * WebCoreSupport/WebContextMenuClient.h: Renamed from WebKit/win/WebContextMenuClient.h. 7059 * WebCoreSupport/WebDragClient.cpp: Renamed from WebKit/win/WebDragClient.cpp. 7060 * WebCoreSupport/WebDragClient.h: Renamed from WebKit/win/WebDragClient.h. 7061 * WebCoreSupport/WebEditorClient.cpp: Renamed from WebKit/win/WebEditorClient.cpp. 7062 * WebCoreSupport/WebEditorClient.h: Renamed from WebKit/win/WebEditorClient.h. 7063 * WebCoreSupport/WebInspectorClient.cpp: Renamed from WebKit/win/WebInspectorClient.cpp. 7064 * WebCoreSupport/WebInspectorClient.h: Renamed from WebKit/win/WebInspectorClient.h. 7065 7066 2008-02-20 Sam Weinig <sam (a] webkit.org> 7067 7068 Reviewed by Darin and Geoff. 7069 7070 - WebKit part of <rdar://problem/5754378> work around missing video on YouTube front page with a site-specific hack 7071 7072 * WebView.cpp: 7073 (WebView::notifyPreferencesChanged): Added a call to Settings::setNeedsSiteSpecificQuirks. 7074 (WebView::setAllowSiteSpecificHacks): Added a comment about the problem Darin noticed, where 7075 after you disable the site-specific hacks they persist until you open a new window or tweak 7076 some other preference. 7077 7078 2008-02-19 Darin Adler <darin (a] apple.com> 7079 7080 Reviewed by Sam. 7081 7082 * WebFrame.cpp: 7083 (WebFrame::renderTreeAsExternalRepresentation): Changed to use String instead 7084 of DeprecatedString. 7085 7086 2008-02-18 Steve Falkenburg <sfalken (a] apple.com> 7087 7088 Make Drosera work on Vista. 7089 7090 Runtime type library registration on Vista requires use of two new call: 7091 RegisterTypeLibraryForUser and UnRegisterTypeLibraryForUser, which write to 7092 HKCU. LoadTypeLib[Ex] registers under HKLM, which fails under vista due to UAC. 7093 7094 Reviewed by Adam. 7095 7096 * WebKitDLL.cpp: 7097 (DllUnregisterServer): Call UnRegisterTypeLibraryForUser if available. Fix version number. 7098 (DllRegisterServer): Call RegisterTypeLibraryForUser if available. 7099 7100 2008-02-18 Matt Lilek <webkit (a] mattlilek.com> 7101 7102 Reviewed by Adam. 7103 7104 Remove FindSafari's Release configuration. 7105 7106 * WebKit.vcproj/WebKit.sln: 7107 7108 2008-02-16 Alexey Proskuryakov <ap (a] webkit.org> 7109 7110 Reviewed by Darin Adler. 7111 7112 http://bugs.webkit.org/show_bug.cgi?id=17397 7113 <rdar://problem/5748245> REGRESSION (r30236-30336): Cannot backspace/enter in forms on Windows 7114 7115 * WebKit.vcproj/WebKit.vcproj: Add ENABLE_CROSS_DOCUMENT_MESSAGING definitions. 7116 7117 2008-02-15 Darin Adler <darin (a] apple.com> 7118 7119 Reviewed by Adam. 7120 7121 - quick fix for a problem causing an assertion on launch 7122 7123 * WebFrame.cpp: 7124 (WebFrame::loadData): Make an empty KURL even if the BSTR is null. 7125 Later we might want to rethink this. 7126 7127 2008-02-14 Darin Adler <darin (a] apple.com> 7128 7129 - updated for WebCore KURL changes 7130 7131 * MarshallingHelpers.cpp: 7132 (MarshallingHelpers::BSTRToKURL): Removed deprecatedString call. 7133 (MarshallingHelpers::KURLToBSTR): Tweaked for efficiency. 7134 * WebContextMenuClient.cpp: 7135 (WebContextMenuClient::searchWithGoogle): Updated for KURL changes. 7136 * WebDataSource.cpp: 7137 (WebDataSource::unreachableURL): Ditto. 7138 * WebDownload.cpp: 7139 (WebDownload::init): Ditto. 7140 (WebDownload::initWithRequest): Ditto. 7141 * WebFrame.cpp: 7142 (WebFrame::loadData): Ditto. 7143 (WebFrame::loadURLIntoChild): Ditto. 7144 (WebFrame::objectContentType): Ditto. 7145 * WebResource.cpp: 7146 (WebResource::initWithData): Ditto. 7147 * WebURLResponse.cpp: 7148 (WebURLResponse::createInstance): Ditto. 7149 (WebURLResponse::initWithURL): Ditto. 7150 * WebView.cpp: 7151 (WebView::userAgentForURL): Ditto. 7152 (WebView::copyURL): Ditto. 7153 (WebView::notifyPreferencesChanged): Ditto. 7154 7155 2008-02-14 Alexey Proskuryakov <ap (a] webkit.org> 7156 7157 * WebChromeClient.cpp: (WebChromeClient::exceededDatabaseQuota): Forgot to re-apply review comments to 7158 the previous check-in, fixing. 7159 7160 2008-02-14 Alexey Proskuryakov <ap (a] webkit.org> 7161 7162 Reviewed by Adam Roben. 7163 7164 http://bugs.webkit.org/show_bug.cgi?id=17207 7165 Database example doesn't work (requires not-yet-released Safari) 7166 7167 * WebChromeClient.cpp: 7168 (WebChromeClient::exceededDatabaseQuota): Check Safari version, and allow 5 megabytes of storage 7169 if it's too old. 7170 7171 2008-02-13 Ada Chan <adachan (a] apple.com> 7172 7173 <rdar://problem/5740656> Leak in postDidAddIconNotification in WebIconDatabase 7174 7175 Reviewed by Darin Adler. 7176 7177 * WebIconDatabase.cpp: 7178 (postDidAddIconNotification): Need to adopt the newly created instance of CFDictionaryPropertyBag, 7179 which already has a ref count of 1. 7180 7181 2008-02-13 Rodney Dawes <dobey (a] wayofthemonkey.com> 7182 7183 Fix Bug 17220: Illogical dependency between PluginView and 7184 PluginDatabase 7185 7186 <http://bugs.webkit.org/show_bug.cgi?id=17220> 7187 7188 Reviewed by Adam and Darin. 7189 7190 Update for the rename of PluginDatabase::createPluginView 7191 to PluginView::create 7192 7193 * WebFrame.cpp: 7194 7195 2008-02-13 Adam Roben <aroben (a] apple.com> 7196 7197 Windows build fix 7198 7199 * Interfaces/WebKit.idl: Create the typelib version symbol ourselves. 7200 7201 2008-02-12 Steve Falkenburg <sfalken (a] apple.com> 7202 7203 Use a precompiled header to build WebKit. 7204 7205 Reviewed by Adam. 7206 7207 * WebKit.vcproj/WebKit.vcproj: 7208 * WebKitPrefix.cpp: Added. 7209 * WebKitPrefix.h: Added. 7210 7211 2008-02-12 Steve Falkenburg <sfalken (a] apple.com> 7212 7213 Changes to support merged MIDL output. 7214 7215 All COM interfaces are now generated to WebKit.h. 7216 7217 Reviewed by Sam, Ada. 7218 7219 * DOMCSSClasses.h: 7220 * DOMCoreClasses.h: 7221 * DOMEventsClasses.h: 7222 * DOMHTMLClasses.h: 7223 * DefaultDownloadDelegate.h: 7224 * DefaultPolicyDelegate.cpp: 7225 * DefaultPolicyDelegate.h: 7226 * GEN_DOMObject.h: 7227 * Interfaces/DOMCSS.idl: 7228 * Interfaces/DOMCore.idl: 7229 * Interfaces/DOMEvents.idl: 7230 * Interfaces/DOMExtensions.idl: 7231 * Interfaces/DOMHTML.idl: 7232 * Interfaces/DOMPrivate.idl: 7233 * Interfaces/DOMRange.idl: 7234 * Interfaces/DOMWindow.idl: 7235 * Interfaces/IGEN_DOMObject.idl: 7236 * Interfaces/IWebArchive.idl: 7237 * Interfaces/IWebBackForwardList.idl: 7238 * Interfaces/IWebBackForwardListPrivate.idl: 7239 * Interfaces/IWebCache.idl: 7240 * Interfaces/IWebDataSource.idl: 7241 * Interfaces/IWebDatabaseManager.idl: 7242 * Interfaces/IWebDocument.idl: 7243 * Interfaces/IWebDownload.idl: 7244 * Interfaces/IWebEditingDelegate.idl: 7245 * Interfaces/IWebError.idl: 7246 * Interfaces/IWebErrorPrivate.idl: 7247 * Interfaces/IWebFormDelegate.idl: 7248 * Interfaces/IWebFrame.idl: 7249 * Interfaces/IWebFrameLoadDelegate.idl: 7250 * Interfaces/IWebFrameLoadDelegatePrivate.idl: 7251 * Interfaces/IWebFramePrivate.idl: 7252 * Interfaces/IWebFrameView.idl: 7253 * Interfaces/IWebHTMLRepresentation.idl: 7254 * Interfaces/IWebHTTPURLResponse.idl: 7255 * Interfaces/IWebHistory.idl: 7256 * Interfaces/IWebHistoryItem.idl: 7257 * Interfaces/IWebHistoryItemPrivate.idl: 7258 * Interfaces/IWebIconDatabase.idl: 7259 * Interfaces/IWebInspector.idl: 7260 * Interfaces/IWebJavaScriptCollector.idl: 7261 * Interfaces/IWebKitStatistics.idl: 7262 * Interfaces/IWebMutableURLRequest.idl: 7263 * Interfaces/IWebMutableURLRequestPrivate.idl: 7264 * Interfaces/IWebNotification.idl: 7265 * Interfaces/IWebNotificationCenter.idl: 7266 * Interfaces/IWebNotificationObserver.idl: 7267 * Interfaces/IWebPolicyDelegate.idl: 7268 * Interfaces/IWebPreferences.idl: 7269 * Interfaces/IWebPreferencesPrivate.idl: 7270 * Interfaces/IWebResource.idl: 7271 * Interfaces/IWebResourceLoadDelegate.idl: 7272 * Interfaces/IWebResourceLoadDelegatePrivate.idl: 7273 * Interfaces/IWebScriptCallFrame.idl: 7274 * Interfaces/IWebScriptDebugListener.idl: 7275 * Interfaces/IWebScriptDebugServer.idl: 7276 * Interfaces/IWebScriptObject.idl: 7277 * Interfaces/IWebScriptScope.idl: 7278 * Interfaces/IWebScrollBarDelegatePrivate.idl: 7279 * Interfaces/IWebScrollBarPrivate.idl: 7280 * Interfaces/IWebSecurityOrigin.idl: 7281 * Interfaces/IWebTextRenderer.idl: 7282 * Interfaces/IWebUIDelegate.idl: 7283 * Interfaces/IWebUIDelegatePrivate.idl: 7284 * Interfaces/IWebURLAuthenticationChallenge.idl: 7285 * Interfaces/IWebURLRequest.idl: 7286 * Interfaces/IWebURLResponse.idl: 7287 * Interfaces/IWebURLResponsePrivate.idl: 7288 * Interfaces/IWebUndoManager.idl: 7289 * Interfaces/IWebUndoTarget.idl: 7290 * Interfaces/IWebView.idl: 7291 * Interfaces/IWebViewPrivate.idl: 7292 * Interfaces/WebKit.idl: 7293 * WebActionPropertyBag.cpp: 7294 * WebBackForwardList.h: 7295 * WebCache.h: 7296 * WebDataSource.cpp: 7297 * WebDataSource.h: 7298 * WebDatabaseManager.h: 7299 * WebDownload.h: 7300 * WebEditorClient.cpp: 7301 * WebEditorClient.h: 7302 * WebError.h: 7303 * WebFrame.cpp: 7304 * WebFrame.h: 7305 * WebFramePolicyListener.h: 7306 * WebHTMLRepresentation.cpp: 7307 * WebHTMLRepresentation.h: 7308 * WebHistory.cpp: 7309 * WebHistory.h: 7310 * WebHistoryItem.h: 7311 * WebIconDatabase.h: 7312 * WebInspector.h: 7313 * WebJavaScriptCollector.h: 7314 * WebKit.vcproj/Interfaces.vcproj: 7315 * WebKit.vcproj/WebKitGUID.vcproj: 7316 * WebKitDLL.cpp: 7317 * WebKitStatistics.h: 7318 * WebMutableURLRequest.cpp: 7319 * WebMutableURLRequest.h: 7320 * WebNotification.h: 7321 * WebNotificationCenter.h: 7322 * WebPreferences.h: 7323 * WebResource.h: 7324 * WebScriptCallFrame.h: 7325 * WebScriptDebugServer.cpp: 7326 * WebScriptDebugServer.h: 7327 * WebScriptDebugger.cpp: 7328 * WebScriptDebugger.h: 7329 * WebScriptObject.h: 7330 * WebScrollBar.h: 7331 * WebSecurityOrigin.h: 7332 * WebTextRenderer.h: 7333 * WebURLAuthenticationChallenge.h: 7334 * WebURLAuthenticationChallengeSender.h: 7335 * WebURLCredential.h: 7336 * WebURLProtectionSpace.h: 7337 * WebURLResponse.h: 7338 * WebView.cpp: 7339 * WebView.h: 7340 7341 2008-02-12 Anders Carlsson <andersca (a] apple.com> 7342 7343 Reviewed by Adam. 7344 7345 Implement imageTitle. 7346 7347 * WebCoreLocalizedStrings.cpp: 7348 (WebCore::imageTitle): 7349 7350 2008-02-12 Anders Carlsson <andersca (a] apple.com> 7351 7352 Reviewed by Mitz. 7353 7354 * WebCoreLocalizedStrings.cpp: 7355 (WebCore::imageTitle): 7356 Add stub. 7357 7358 7359 2008-02-07 Ada Chan <adachan (a] apple.com> 7360 7361 <rdar://problem/5292433> certificate authentication support broken in Safari 3.0 7362 Added mechanism to communicate client certificate info back to CFNetwork. 7363 7364 Reviewed by Adam. 7365 7366 * Interfaces/IWebError.idl: Added new WebURLErrorClientCertificateRequired error. 7367 * Interfaces/IWebMutableURLRequestPrivate.idl: Added. Added method to set client 7368 certificate info on the request. 7369 * WebKit.vcproj/Interfaces.vcproj: Added new idl. 7370 * WebKit.vcproj/WebKit.vcproj: Link crypt32.lib 7371 * WebKit.vcproj/WebKitGUID.vcproj: 7372 * WebMutableURLRequest.cpp: 7373 (WebMutableURLRequest::QueryInterface): Implements IWebMutableURLRequestPrivate. 7374 (deallocCertContext): Free certificate context. 7375 (copyCert): Duplicate the certificate context and returns it in a CFDataRef. 7376 (WebMutableURLRequest::setClientCertificate): 7377 * WebMutableURLRequest.h: 7378 7379 2008-02-05 Rodney Dawes <dobey (a] wayofthemonkey.com> 7380 7381 Reviewed by Anders Carlsson. 7382 7383 Part one of http://bugs.webkit.org/show_bug.cgi?id=16924. 7384 Shared PluginDatabase, PluginInfoStore and PluginPackage implementations. 7385 7386 Track WebCore renames. 7387 7388 * WebFrame.cpp: 7389 (WebFrame::createPlugin): 7390 (WebFrame::redirectDataToPlugin): 7391 (WebFrame::createJavaAppletWidget): 7392 (WebFrame::objectContentType): 7393 * WebView.cpp: 7394 (WebViewWndProc): 7395 (WebView::canShowMIMEType): 7396 (WebView::addAdditionalPluginPath): 7397 7398 2008-02-05 Alexey Proskuryakov <ap (a] webkit.org> 7399 7400 Reviewed by Darin Adler. 7401 7402 http://bugs.webkit.org/show_bug.cgi?id=15248 7403 <rdar://problem/5497032> Can not enter accented characters using alt-numeric keypad (take two) 7404 7405 * WebView.cpp: (WebViewWndProc): KeyUp messages need to be translated, too. 7406 7407 2008-02-01 Darin Adler <darin (a] apple.com> 7408 7409 - fix <rdar://problem/5680469> Each database worker thread takes a JSLock, 7410 which slows down all JavaScript execution until the thread terminates 7411 7412 * WebIconDatabase.cpp: 7413 (WebIconDatabase::scheduleNotificationDelivery): Updated for new callOnMainThread. 7414 (WebIconDatabase::deliverNotifications): Ditto. 7415 * WebIconDatabase.h: Ditto. 7416 7417 2008-01-31 Adam Roben <aroben (a] apple.com> 7418 7419 Fix <rdar://5713172> Focus lost from Gmail message body after toggling 7420 tabs 7421 7422 This regressed in r29583. Prior to r29583, the code path that resulted 7423 in calling focusController->setFocusedFrame(0) was never getting hit. 7424 r29583 changed the code to adhere to the comment above the code and 7425 actually call setFocusedFrame(0) when losing focus to another part of 7426 the window. It turns out this is wrong behavior (and not what 7427 WebKit/mac does). The only time we should clear the focused frame is 7428 when we tab out of the WebView, and that's already taken care of by 7429 FocusController::advanceFocus. The code to clear the focused frame in 7430 WebView was written before FocusController::advanceFocus, so it was 7431 correct at one point but no longer is. 7432 7433 We now never call setFocusedFrame(0) when the WebView receives a 7434 WM_KILLFOCUS message. Instead we just call setFocused(false) on the 7435 focused frame so that blur events will be sent. This matches what 7436 WebKit/mac does. 7437 7438 Reviewed by Darin and Adele. 7439 7440 * WebView.cpp: 7441 (WebViewWndProc): Also reworded a couple of comments to make them 7442 clearer. 7443 7444 2008-01-31 Adam Roben <aroben (a] apple.com> 7445 7446 Let WebCore take care of the highlight drawing entirely 7447 7448 Reviewed by Darin Adler. 7449 7450 * WebInspectorClient.cpp: 7451 (WebInspectorClient::highlight): We now just show our highlight 7452 window and let WebCore figure out what/where to paint. Once all ports 7453 follow suit the Node* parameter to this method should be removed 7454 entirely, and the name should probably change to 7455 updateAndShowHighlight or something similar. 7456 * WebNodeHighlight.cpp: Renamed m_webView to m_inspectedWebViewWindow. 7457 (WebNodeHighlight::WebNodeHighlight): Now takes a WebView* parameter. 7458 (WebNodeHighlight::show): Renamed from highlight(). Now gets the 7459 WebView's HWND. Updated for member rename/removal. 7460 (WebNodeHighlight::updateWindow): Updated for member rename and for 7461 InspectorController changes. 7462 * WebNodeHighlight.h: Added m_inspectedWebView member, removed m_rect 7463 member, renamed highlight(Node*) -> show(). 7464 7465 2008-01-31 Adam Roben <aroben (a] apple.com> 7466 7467 Move node highlight drawing code to WebCore 7468 7469 Reviewed by Darin Adler. 7470 7471 * WebNodeHighlight.cpp: 7472 (WebNodeHighlight::updateWindow): Call into WebCore to do the node 7473 highlight drawing. 7474 7475 2008-01-29 Adam Roben <aroben (a] apple.com> 7476 7477 Fix a crash when opening the Inspector 7478 7479 Reviewed by Anders. 7480 7481 * WebInspectorClient.cpp: 7482 (WebInspectorClient::createPage): Call 7483 WebPreferences::initWithIdentifier so our custom WebPreferences will 7484 have all its members initialized. 7485 7486 2008-01-29 Adam Roben <aroben (a] apple.com> 7487 7488 Fix Bug 16786: "Display images when page opens" preference affects 7489 Inspector 7490 7491 <http://bugs.webkit.org/show_bug.cgi?id=16786> 7492 <rdar://5712914> 7493 7494 Reviewed by Anders and Darin. 7495 7496 * WebInspectorClient.cpp: 7497 (WebInspectorClient::createPage): Create our own custom WebPreferences 7498 so that we won't be affected by global preference changes. This 7499 matches what Mac does. 7500 7501 2008-01-29 Adam Roben <aroben (a] apple.com> 7502 7503 Fix <rdar://5713302> Web Inspector on Windows is not using the 7504 localized strings 7505 7506 Reviewed by Steve. 7507 7508 * WebInspectorClient.cpp: 7509 (getWebKitBundle): Added. 7510 (WebInspectorClient::createPage): Call getWebKitBundle. 7511 (WebInspectorClient::localizedStringsURL): Implemented. 7512 7513 2008-01-29 Alexey Proskuryakov <ap (a] webkit.org> 7514 7515 Reviewed by Darin Adler. 7516 7517 <rdar://problem/5710692> All storage tests fail/crash 7518 7519 * WebChromeClient.cpp: (WebChromeClient::exceededDatabaseQuota): Clients that do not implement 7520 database quota callbacks should have no database support - but not crash. 7521 7522 2008-01-26 Steve Falkenburg <sfalken (a] apple.com> 7523 7524 <rdar://problem/5707607> REGRESSION: I hear a beep when selecting Alt-enter in address or search fields 7525 7526 Reviewed by Oliver. 7527 7528 * WebView.cpp: 7529 (WebView::keyDown): Allow alt-return to be marked as handled by WebKit. 7530 7531 2008-01-24 Steve Falkenburg <sfalken (a] apple.com> 7532 7533 Build fix 7534 7535 * WebKit.vcproj/WebKit.sln: 7536 * WebKit.vcproj/WebKit.submit.sln: 7537 7538 2008-01-24 Adam Roben <aroben (a] apple.com> 7539 7540 Build fix 7541 7542 * WebView.cpp: Added a comma. 7543 7544 2008-01-24 Alexey Proskuryakov <ap (a] webkit.org> 7545 7546 Reviewed by Adam Roben. 7547 7548 <rdar://problem/5702734> REGRESSION(r28936/r15890): Shift+del does not work in win Safari 7549 7550 * WebView.cpp: Fixed keyDownEntries to list this shortcut (and related ones, for consistency). 7551 7552 2008-01-23 Steve Falkenburg <sfalken (a] apple.com> 7553 7554 <rdar://problem/5698732> Copyright strings should include 2008 7555 7556 Reviewed by Sam. 7557 7558 * WebKit.vcproj/WebKit.rc: 7559 7560 2008-01-23 Adam Roben <aroben (a] apple.com> 7561 7562 Fix <rdar://5698502> Inspector window reverts to default position/size unexpectedly 7563 7564 Reviewed by Hyatt. 7565 7566 * WebInspectorClient.cpp: 7567 (defaultWindowRect): Added. 7568 (WebInspectorClient::createPage): 7569 - Use defaultWindowRect() to set the initial size/position of the 7570 Inspector window. 7571 - Pass the Inspector window's client rect to 7572 IWebView::initWithFrame so that the WebView will be initially 7573 sized to fill the window. 7574 (WebInspectorClient::showWindow): Don't move/resize the window back to 7575 the defaults every time this method is called. 7576 7577 2008-01-23 Adam Roben <aroben (a] apple.com> 7578 7579 Fix <rdar://5700620> REGRESSION (r28190): "Open frame in new tab" instead of "Open link in new tab" @ digg.com 7580 7581 Test: fast/events/contextmenu-scrolled-page-with-frame.html 7582 7583 Reviewed by Dan. 7584 7585 * WebView.cpp: 7586 (WebView::handleContextMenuEvent): Translate the mouse coordinates 7587 into document coordinates before performing the hit-test. This is what 7588 EventHandler does internally. 7589 7590 2008-01-23 Steve Falkenburg <sfalken (a] apple.com> 7591 7592 <rdar://problem/5699509> Allow file upload dialog to be localized. 7593 7594 Reviewed by Darin Adler. 7595 7596 * English.lproj/Localizable.strings: Updated. 7597 * WebCoreLocalizedStrings.cpp: 7598 (WebCore::uploadFileText): Added. 7599 (WebCore::allFilesText): Added. 7600 7601 2008-01-22 Adam Roben <aroben (a] apple.com> 7602 7603 Fix <rdar://5693599> REGRESSION (r29369): scroll bars are drawing when they shouldn't be on an ad on cnn.com 7604 7605 Now that we have multiple FrameViews per Frame on Windows, we need to 7606 make sure each FrameView gets its scrolling mode set correctly. On Mac 7607 this works because WebFrameView holds the scrolling mode and a single 7608 WebFrameView is shared by many FrameViews. On Windows, we have no such 7609 shared object, so we just ask the Frame's owner element for the 7610 scrolling mode. 7611 7612 Tests: fast/frames/frame-scrolling-attribute.html 7613 fast/frames/iframe-scrolling-attribute.html 7614 7615 Reviewed by Hyatt. 7616 7617 * WebFrame.cpp: 7618 (WebFrame::transitionToCommittedForNewPage): Set the scrolling mode 7619 on the FrameView based on the scrolling mode of the Frame's owner 7620 element. 7621 7622 2008-01-21 Darin Adler <darin (a] apple.com> 7623 7624 Reviewed by John Sullivan. 7625 7626 - fix <rdar://problem/5644324> Delegate-less WebKit clients should have no databases 7627 - fix incorrect value for WebDatabaseDisplayNameKey in header 7628 7629 * Interfaces/IWebDatabaseManager.idl: Renamed detailsForDatabaseWithOrigin to 7630 detailsForDatabase. Replaced deleteDatabasesWithOrigin with deleteOrigin. 7631 Renamed deleteDatabaseWithOrigin to deleteDatabase. Fixed incorrect value for 7632 WebDatabaseDisplayNameKey. 7633 * Interfaces/IWebPreferencesPrivate.idl: Removed defaultDatabaseQuota and 7634 setDefaultDatabaseQuota. 7635 * Interfaces/IWebUIDelegatePrivate.idl: Replaced the two database quota functions 7636 with a single one. 7637 7638 * WebChromeClient.cpp: 7639 (WebChromeClient::exceededDatabaseQuota): Replaced the two database quota functions 7640 with a single one. 7641 * WebChromeClient.h: Ditto. 7642 7643 * WebDatabaseManager.cpp: 7644 (WebDatabaseManager::detailsForDatabase): Changed to check for a name of null to 7645 detect a nonexistent database rather than using isValid. 7646 (WebDatabaseManager::deleteOrigin): Updated for name change (actually a semantic 7647 change too, but both have the same name). 7648 (WebDatabaseManager::deleteDatabase): Updated for name change. 7649 (WebKitSetWebDatabasesPathIfNecessary): Ditto. 7650 7651 * WebDatabaseManager.h: Updated for name changes. 7652 7653 * WebPreferenceKeysPrivate.h: Removed WebKitDefaultDatabaseQuotaKey. 7654 * WebPreferences.cpp: 7655 (WebPreferences::initializeDefaultSettings): Removed the default for 7656 WebKitDefaultDatabaseQuotaKey. 7657 * WebPreferences.h: Removed defaultDatabaseQuota and setDefaultDatabaseQuota. 7658 * WebView.cpp: 7659 (WebView::notifyPreferencesChanged): Removed the code to set the 7660 default database origin quota in WebCore::Settings based on IWebPreferencesPrivate. 7661 7662 2008-01-19 Mark Rowe <mrowe (a] apple.com> 7663 7664 Fix inconsistent line endings and set svn:eol-style=native 7665 on IDL files that did not have it set. 7666 7667 * Interfaces/IGEN_DOMObject.idl: 7668 7669 2008-01-18 Adam Roben <aroben (a] apple.com> 7670 7671 Fix <rdar://5693854> REGRESSION (r29581): fast/events/frame-click-focus.html failing 7672 7673 Restored the previous behavior of IWebViewPrivate::updateActiveState, 7674 which DRT depends on, and renamed it to 7675 IWebViewPrivate::updateFocusedAndActiveState to be clearer about its 7676 side-effects. 7677 7678 Reviewed by Adele. 7679 7680 * Interfaces/IWebViewPrivate.idl: 7681 * WebView.cpp: 7682 (WebViewWndProc): Removed some FIXMEs that we no longer want to fix 7683 because the current design is better. 7684 (WebView::updateActiveState): This is now just a method of WebView, 7685 not any of its public interfaces. 7686 (WebView::updateFocusedAndActiveState): Performs the tasks that the 7687 old IWebViewPrivate::updateActiveState performed. 7688 * WebView.h: 7689 7690 2008-01-18 Alexey Proskuryakov <ap (a] webkit.org> 7691 7692 Reviewed by Adam Roben. 7693 7694 Fix plugin-related tests in Debug_Internal configuration, which are failing because of CRT version mismatch 7695 between DRT and TestNetscapePlugin. 7696 7697 * WebKit.vcproj/WebKit.sln: Use newly added TestNetscapePlugin Debug_Internal configuration. 7698 7699 2008-01-17 Steve Falkenburg <sfalken (a] apple.com> 7700 7701 Build fix. 7702 7703 * WebKit.vcproj/WebKit.make: 7704 7705 2008-01-16 Adam Roben <aroben (a] apple.com> 7706 7707 Trigger activation changes at the right time by listening for WM_NCACTIVATE 7708 7709 This is the final part of <rdar://5006915> Inactive look for Aqua 7710 controls 7711 7712 WebView now listens to messages sent to its top-level parent window. 7713 When the top-level parent receives a WM_NCACTIVATE message, WebView 7714 recalculates whether it is contained within the current active window. 7715 7716 Reviewed by Darin Adler. 7717 7718 * Interfaces/IWebViewPrivate.idl: 7719 (IWebViewPrivate::windowAncestryDidChange): Added. WebKit clients 7720 should call this when they change the parent window chain of a 7721 WebView. 7722 * WebView.cpp: 7723 (WebView::WebView): Initialize new member. 7724 (findTopLevelParent): Added. 7725 (WebViewWndProc): 7726 - Separated activation handling from focus handling, now that 7727 activation handling is taken care of by updateActiveState 7728 exclusively. 7729 - Compare top-level parents in our WM_KILLFOCUS handler so that we 7730 really know if focus is staying inside our top-level window. 7731 - Update our active state on WM_WINDOWPOSCHANGED. 7732 - Added a WM_TIMER handler. 7733 (WebView::initWithFrame): Call windowAncestryDidChange after setting 7734 up our HWND as a child of the host window. 7735 (WebView::windowReceivedMessage): Added. Update our active state when 7736 our top-level parent receives a WM_NCACTIVATE message. 7737 (WebView::updateActiveStateSoon): Added. 7738 (WebView::setHostWindow): Call windowAncestryDidChange after changing 7739 the host window. 7740 (WebView::updateActiveState): We are active if our top-level parent is 7741 the same as the top-level parent of the active window. 7742 (WebView::windowAncestryDidChange): Added. Recalculates our top-level 7743 parent and registers as a listener for the new top-level parent's 7744 messages. 7745 * WebView.h: Made WebView and WindowMessageListener so that it can 7746 utilize WindowMessageBroadcaster to listen to its top-level parent's 7747 messages. 7748 7749 2008-01-16 Adam Roben <aroben (a] apple.com> 7750 7751 Updated for ScrollBarClient changes 7752 7753 Reviewed by Darin Adler. 7754 7755 * WebScrollBar.h: 7756 (WebScrollBar::isActive): Added. 7757 7758 2008-01-16 Adam Roben <aroben (a] apple.com> 7759 7760 Updated for changes to WebCore methods 7761 7762 Focus and active state are now handled (somewhat) separately. Future 7763 patches will further separate these concepts. 7764 7765 Reviewed by Darin Adler. 7766 7767 * WebView.cpp: 7768 (WebViewWndProc): Updated for method renames. 7769 (WebView::updateActiveState): Only change the active state here. Focus 7770 is handled inside WM_SETFOCUS and WM_KILLFOCUS message handlers. 7771 7772 2008-01-16 Steve Falkenburg <sfalken (a] apple.com> 7773 7774 <rdar://problem/5097419> Cursor flickers when over window resizer 7775 7776 Reviewed by Sam. 7777 7778 * WebView.cpp: 7779 (WebViewWndProc): Don't set the resize cursor when over the non-border resize area. 7780 7781 2008-01-15 Steve Falkenburg <sfalken (a] apple.com> 7782 7783 <rdar://problem/5663888> Cannot type into a JavaScript prompt created from a timer 7784 7785 Allow nested timers from javascript prompts to allow for WebView-based edit fields. 7786 7787 Reviewed by Darin Adler. 7788 7789 * WebChromeClient.cpp: 7790 (WebChromeClient::runJavaScriptPrompt): 7791 7792 2008-01-14 Steve Falkenburg <sfalken (a] apple.com> 7793 7794 Use shared vsprops for most vcproj properties. 7795 7796 Reviewed by Darin Adler. 7797 7798 * WebKit.vcproj/Interfaces.vcproj: 7799 * WebKit.vcproj/WebKit.vcproj: 7800 * WebKit.vcproj/WebKitGUID.vcproj: Add missing Debug_Internal config. 7801 7802 2008-01-11 Steve Falkenburg <sfalken (a] apple.com> 7803 7804 Share common files across projects. 7805 7806 Unify vsprops files 7807 Debug: common.vsprops, debug.vsprops 7808 Debug_Internal: common.vsprops, debug.vsprops, debug_internal.vsprops 7809 Release: common.vsprops, release.vsprops 7810 7811 Shared properties can go into common.vsprops, shared debug settings can go into debug.vsprops. 7812 debug_internal.vsprops will be mostly empty except for file path prefix modifiers. 7813 7814 Pull auto-version.sh, VERSION, and PRODUCTVERSION from tools. 7815 7816 Reviewed by Adam Roben. 7817 7818 * WebKit.vcproj/Interfaces.vcproj: 7819 * WebKit.vcproj/PRODUCTVERSION: Removed. 7820 * WebKit.vcproj/VERSION: Removed. 7821 * WebKit.vcproj/WebKit.vcproj: 7822 * WebKit.vcproj/WebKitGUID.vcproj: 7823 * WebKit.vcproj/auto-version.sh: Removed. 7824 * WebKit.vcproj/debug.vsprops: Removed. 7825 * WebKit.vcproj/debug_internal.vsprops: Removed. 7826 * WebKit.vcproj/release.vsprops: Removed. 7827 7828 2008-01-11 Adam Roben <aroben (a] apple.com> 7829 7830 Fix Bug 16828: WebView never paints if first page load is canceled after being committed but before layout 7831 7832 <http://bugs.webkit.org/show_bug.cgi?id=16828> 7833 <rdar://5682402> 7834 7835 Now that we have 1) a real loader and 2) multiple FrameViews per 7836 Frame, we no longer need the hackery we had in our WM_PAINT handler 7837 that decided whether or not to paint. We now always want to paint, 7838 letting the swapping of FrameViews that happens in 7839 transitionToCommittedForNewPage handle which document gets painted. 7840 7841 Reviewed by Hyatt. 7842 7843 * WebView.cpp: 7844 (WebViewWndProc): Removed hackery that decided sometimes not to paint. 7845 7846 2008-01-11 Mark Rowe <mrowe (a] apple.com> 7847 7848 Windows build fix. Update to match method name in WebCore. 7849 7850 * WebJavaScriptCollector.cpp: 7851 (WebJavaScriptCollector::collectOnAlternateThread): 7852 7853 2008-01-10 Geoffrey Garen <ggaren (a] apple.com> 7854 7855 Reviewed by John Sullivan. 7856 7857 Updated for transition away from JavaScriptStatistics, which is gone now. 7858 7859 * WebJavaScriptCollector.cpp: 7860 (WebJavaScriptCollector::collect): 7861 (WebJavaScriptCollector::collectOnAlternateThread): 7862 (WebJavaScriptCollector::objectCount): 7863 7864 2008-01-10 Maciej Stachowiak <mjs (a] apple.com> 7865 7866 Not reviewed, build fix. 7867 7868 - more build fixing 7869 7870 * WebDatabaseManager.cpp: 7871 * WebSecurityOrigin.h: 7872 7873 2008-01-10 Maciej Stachowiak <mjs (a] apple.com> 7874 7875 Not reviewed, build fix. 7876 7877 - try to fix build 7878 7879 * WebDatabaseManager.cpp: 7880 (WebDatabaseManager::databasesWithOrigin): 7881 * WebSecurityOrigin.h: 7882 7883 2008-01-10 Maciej Stachowiak <mjs (a] apple.com> 7884 7885 Reviewed by Sam. 7886 7887 - remove SecurityOriginData and fold its functionality into SecurityOrigin 7888 7889 * WebChromeClient.cpp: 7890 (WebChromeClient::requestQuotaIncreaseForNewDatabase): 7891 (WebChromeClient::requestQuotaIncreaseForDatabaseOperation): 7892 * WebChromeClient.h: 7893 * WebDatabaseManager.cpp: 7894 (WebDatabaseManager::origins): 7895 (WebDatabaseManager::databasesWithOrigin): 7896 (WebDatabaseManager::detailsForDatabaseWithOrigin): 7897 (WebDatabaseManager::deleteDatabasesWithOrigin): 7898 (WebDatabaseManager::deleteDatabaseWithOrigin): 7899 (WebDatabaseManager::dispatchDidModifyOrigin): 7900 (WebDatabaseManager::dispatchDidModifyDatabase): 7901 * WebDatabaseManager.h: 7902 * WebSecurityOrigin.cpp: 7903 (WebSecurityOrigin::createInstance): 7904 (WebSecurityOrigin::WebSecurityOrigin): 7905 (WebSecurityOrigin::protocol): 7906 (WebSecurityOrigin::domain): 7907 (WebSecurityOrigin::port): 7908 (WebSecurityOrigin::usage): 7909 (WebSecurityOrigin::quota): 7910 (WebSecurityOrigin::setQuota): 7911 * WebSecurityOrigin.h: 7912 7913 2008-01-10 David Kilzer <ddkilzer (a] apple.com> 7914 7915 dftables should be rewritten as a script 7916 7917 <http://bugs.webkit.org/show_bug.cgi?id=16818> 7918 <rdar://problem/5681463> 7919 7920 Reviewed by Darin Adler. 7921 7922 * WebKit.vcproj/WebKit.sln: Removed reference to dftables project. 7923 7924 2008-01-10 Adam Roben <aroben (a] apple.com> 7925 7926 Fix many bugs by giving Windows one FrameView per page load 7927 7928 Bugs include: 7929 <rdar://5659200> 7930 Windows back/forward cache causes crashes in the layout tests 7931 <rdar://5659355> 7932 <http://bugs.webkit.org/show_bug.cgi?id=16808> 7933 REGRESSION: PLT broken on Windows due to back/forward cache 7934 <rdar://5663654> 7935 <http://bugs.webkit.org/show_bug.cgi?id=16607> 7936 Random crashes in FrameView::scheduleRelayout while surfing 7937 Thinkgeek 7938 7939 On Windows until now we've only had one FrameView per Frame. Once the 7940 back/forward cache was turned on this started causing assertions to 7941 fail and crashes to occur due to a single FrameView being both in the 7942 back/forward cache (possibly multiple times!) and used by a live 7943 document. We now create a new FrameView for each page load, just as 7944 Mac does. 7945 7946 This has the side-effect of plugging some of the world leaks seen at 7947 the end of the PLT. 7948 7949 Reviewed by Hyatt. 7950 7951 * WebFrame.cpp: 7952 (WebFrame::initWithWebFrameView): Don't create the FrameView right 7953 away -- it'll be created when the load is committed. 7954 (WebFrame::transitionToCommittedFromCachedPage): Match the Mac by no 7955 longer calling resetMultipleFormSubmissionProtection here. 7956 (WebFrame::transitionToCommittedForNewPage): Ported code from 7957 -[WebCoreFrameBridge 7958 createFrameViewWithNSView:marginWidth:marginHeight:], 7959 -[WebCoreFrameBridge installInFrame:], and moved code here from 7960 WebFrame::initWithWebFrameView and WebView::initWithFrame. WebCore 7961 takes care of resetMultipleFormSubmissionProtection, just like it does 7962 on the Mac. 7963 * WebView.cpp: 7964 (WebView::initWithFrame): Moved FrameView initialization code to 7965 WebFrame::transitionToCommittedForNewPage. 7966 7967 2008-01-09 Ada Chan <adachan (a] apple.com> 7968 7969 Fix crash that could happen if the key we are passing to the HashMap is 0 in WebView::interpretKeyEvent(). 7970 7971 Reviewed by Darin Adler. 7972 7973 * WebView.cpp: 7974 (WebView::interpretKeyEvent): 7975 7976 2008-01-08 Steve Falkenburg <sfalken (a] apple.com> 7977 7978 Fix build. 7979 7980 * DOMCoreClasses.cpp: 7981 7982 2008-01-07 Antti Koivisto <antti (a] apple.com> 7983 7984 Try to fix the Windows build. 7985 7986 * WebKit.vcproj/WebKit.sln: 7987 7988 2008-01-07 Antti Koivisto <antti (a] apple.com> 7989 7990 Reviewed by Steve. 7991 7992 Re-enable media support in Windows build. 7993 7994 * WebKit.vcproj/WebKit.vcproj: 7995 7996 2008-01-07 Steve Falkenburg <sfalken (a] apple.com> 7997 7998 Build fix. 7999 8000 * WebKit.vcproj/InterfacesGenerated.vcproj: 8001 8002 2008-01-07 Dan Bernstein <mitz (a] apple.com> 8003 8004 Reviewed by Dave Hyatt. 8005 8006 - <rdar://problem/5665216> Support the unicode-range property in @font-face rules 8007 8008 * WebView.cpp: 8009 (WebView::setShouldApplyMacFontAscentHack): 8010 8011 2008-01-07 Holger Freyther <zecke (a] selfish.org> 8012 8013 Reviewed by Alp Toker. 8014 8015 * Qt and Gtk must know if a ContextMenuItem is checkable. Add a new ContextMenuItemType for checkable 8016 actions. 8017 * Use this information in the Gtk platform to create a GtkCheckMenuItem when needed. 8018 * Update the ContextMenuController to accept CheckableActionTypes as well. 8019 * Change ContextMenu.cpp to use the CheckableActionType. The information if a item is checkable 8020 was extracted from ContextMenu::checkOrEnableIfNeeded. 8021 * Update the Qt and Windows port. 8022 8023 * WebContextMenuClient.cpp: 8024 8025 2008-01-04 Alexey Proskuryakov <ap (a] webkit.org> 8026 8027 Reviewed by Adam Roben. 8028 8029 http://bugs.webkit.org/show_bug.cgi?id=16733 8030 REGRESSION: Crash on Safari Start 8031 8032 * Interfaces/IWebViewPrivate.idl: Should have added a new method at the end. 8033 8034 2008-01-04 Alexey Proskuryakov <ap (a] webkit.org> 8035 8036 Reviewed by Darin Adler. 8037 8038 <rdar://problem/5611712> xsl:sort does not use a case folding sort, and the 'case-order' attribute is ignored (16077) 8039 8040 * WebKit.vcproj/WebKit.vcproj: Link to icuin{_debug}.lib 8041 8042 2008-01-04 Adam Roben <aroben (a] apple.com> 8043 8044 Fix <rdar://4968855> Shift-PageUp/Shift-PageDown only select one line of text 8045 8046 Test: platform/win/editing/selection/shift-page-down-up.html 8047 8048 Reviewed by Oliver. 8049 8050 * WebView.cpp: Correct the commands associated with 8051 Shift-PageUp/Shift-PageDown. 8052 8053 2008-01-03 Alexey Proskuryakov <ap (a] webkit.org> 8054 8055 Reviewed by Darin Adler. 8056 8057 <rdar://problem/5463489> A number of layout tests should be using execCommand instead of textInputController 8058 8059 * Interfaces/IWebViewPrivate.idl: 8060 * WebView.cpp: 8061 (WebView::executeCoreCommandByName): 8062 * WebView.h: 8063 Added an SPI to implement layoutTestController.execCommand. 8064 8065 2008-01-03 Ada Chan <adachan (a] apple.com> 8066 8067 Replaced the use of editor command "ForwardDelete" with "DeleteForward" to be consistent 8068 with our use of "DeleteBackward". 8069 8070 Rubber-stamped by Jon. 8071 8072 * WebView.cpp: 8073 8074 2008-01-03 Ada Chan <adachan (a] apple.com> 8075 8076 Regression: backspace stopped working on text inputs 8077 - Replaced the use of editor command "BackwardDelete" with "DeleteBackward" since it's no longer supported. 8078 8079 Reviewed by Adam. 8080 8081 * WebEditorClient.cpp: 8082 (WebEditorClient::textWillBeDeletedInTextField): 8083 * WebView.cpp: 8084 8085 2008-01-02 Alice Liu <alice.liu (a] apple.com> 8086 8087 Reviewed by Maciej. 8088 8089 Fixed <rdar://5283861> (problems scrolling in gmail message content area) 8090 8091 * WebView.cpp: 8092 (WebView::keyDown): 8093 bubble scrolling from a key event 8094 8095 2008-01-01 Matt Lilek <webkit (a] mattlilek.com> 8096 8097 Attempt to fix the Windows bots until the bots 8098 can get the Quicktime SDK installed. 8099 8100 * WebKit.vcproj/WebKit.sln: 8101 * WebKit.vcproj/WebKit.vcproj: 8102 8103 2007-12-30 Matt Lilek <webkit (a] mattlilek.com> 8104 8105 Reviewed by Darin Adler. 8106 8107 Bug 16578: Windows Web Inspector window needs minimum size 8108 http://bugs.webkit.org/show_bug.cgi?id=16578 8109 8110 * WebInspectorClient.cpp: 8111 (WebInspectorClient::onGetMinMaxInfo): 8112 (WebInspectorWndProc): 8113 * WebInspectorClient.h: 8114 8115 2007-12-21 Antti Koivisto <antti (a] apple.com> 8116 8117 Reviewed by Steve. 8118 8119 Build media support on Windows. 8120 8121 * WebKit.vcproj/WebKit.sln: 8122 * WebKit.vcproj/WebKit.vcproj: 8123 8124 2007-12-21 Ada Chan <adachan (a] apple.com> 8125 8126 Implemented DOMDocument::getElementById(). 8127 8128 Reviewed by Darin Adler. 8129 8130 * DOMCoreClasses.cpp: 8131 (DOMDocument::getElementById): 8132 8133 2007-12-21 Alexey Proskuryakov <ap (a] webkit.org> 8134 8135 Reviewed by Steve and Darin. 8136 8137 <rdar://problem/5497037> Win32: Accelerator keys (ctrl-x,c,v,w,q,etc) only fire keyUp, 8138 keyDown/Press consumed by accelerator table (14104) 8139 8140 <rdar://problem/5346299> preventing default behavior for key down does not block accelerators like Ctrl+N 8141 8142 This is WebKit part of a fix, most of which will be in Safari. 8143 8144 * WebView.cpp: 8145 (WebViewWndProc): Return our result for WM_(SYS)KEYDOWN to let the client know whether 8146 further procesing is desired. 8147 8148 2007-12-21 Alexey Proskuryakov <ap (a] webkit.org> 8149 8150 Build fix: cannot use framework-style include for ProgIDMacros.h, 8151 because the file is only created on a later step. 8152 8153 * ForEachCoClass.h: 8154 8155 2007-12-20 Kevin McCullough <kmccullough (a] apple.com> 8156 8157 Reviewed by Steve. 8158 8159 - <rdar://5656485> Drosera: Win: Nightly does not reliably connect to 8160 WebKit. 8161 8162 - Drosera and Safari need to use the same ProgIDs in order for 8163 CoCreateInstance to work properly. The most robust way to do this is 8164 for WebKit to dynamically publish those ProgIDs. 8165 8166 * ForEachCoClass.cpp: Added. 8167 (setUseOpenSourceWebKit): 8168 (progIDForClass): 8169 * ForEachCoClass.h: Added functionality to publish ProgIDs. 8170 * WebKit.vcproj/WebKit.def: Exposed added functions for applications. 8171 * WebKit.vcproj/WebKit.vcproj: Added ForEachCoClass.cpp 8172 * WebKit.vcproj/WebKit_debug.def: Exposed added functions fori 8173 applications. 8174 8175 2007-12-19 Dave Hyatt <hyatt (a] apple.com> 8176 8177 Add a fourth preference value for GDI text in the font smoothing prefs. 8178 8179 Reviewed by mitz 8180 8181 * Interfaces/IWebPreferences.idl: 8182 * WebPreferenceKeysPrivate.h: 8183 * WebPreferences.cpp: 8184 (WebPreferences::initializeDefaultSettings): 8185 (WebPreferences::fontSmoothing): 8186 (WebPreferences::setFontSmoothing): 8187 * WebView.cpp: 8188 (WebView::notifyPreferencesChanged): 8189 8190 2007-12-17 Darin Adler <darin (a] apple.com> 8191 8192 Reviewed by Sam. 8193 8194 - <rdar://4516170> Back/Forward Cache on Windows 8195 8196 * WebFrame.cpp: 8197 (WebFrame::forceLayout): Implemented this. Just calling through to 8198 Frame::forceLayout matches the Mac pretty well and should be enough 8199 for now. Without this we won't repaint the new page when we go back 8200 and forward. 8201 (WebFrame::dispatchWillSubmitForm): Use COMPtr's AdoptCOM constructor 8202 instead of the adoptRef function. 8203 (WebFrame::restoreViewState): Removed unneeded notImplemented() call. 8204 This is implemented as much as it needs to be. 8205 (WebFrame::shouldGoToHistoryItem): Ditto. 8206 (WebFrame::saveViewStateToItem): Ditto. 8207 (WebFrame::canCachePage): Ditto, also changed it to return true. This 8208 is what was preventing the back/forward cache from running, and there's 8209 no need for any additional checks in the Windows version. 8210 8211 * WebView.cpp: 8212 (PreferencesChangedOrRemovedObserver::onNotify): Fix backwards null check 8213 that was preventing this notification from ever being sent, which in turn 8214 meant that page cache had a capacity of 0. 8215 (WebView::initWithFrame): Removed unneeded setUsesPageCache(false) code. 8216 This actually was ineffective and ended up doing no harm, but we don't 8217 need it. 8218 8219 2007-12-16 Alexey Proskuryakov <ap (a] webkit.org> 8220 8221 Reviewed by Darin Adler. 8222 8223 http://bugs.webkit.org/show_bug.cgi?id=16462 8224 REGRESSION: access keys broken on Windows 8225 8226 * WebView.cpp: (WebView::keyPress): Handle system key presses as access keys. 8227 8228 2007-12-15 Alexey Proskuryakov <ap (a] webkit.org> 8229 8230 Reviewed by Maciej. 8231 8232 http://bugs.webkit.org/show_bug.cgi?id=16436 8233 Alt+Space works incorrectly 8234 8235 Test: platform/win/fast/events/alt-space-scroll.html 8236 8237 * WebView.cpp: 8238 (WebView::keyDown): 8239 (WebView::keyPress): 8240 We do not handle WM_SYSCHAR events. 8241 8242 2007-12-14 Dan Bernstein <mitz (a] apple.com> 8243 8244 - yet another build fix 8245 8246 * DOMHTMLClasses.cpp: 8247 (DOMHTMLDocument::URL): 8248 8249 2007-12-14 Dan Bernstein <mitz (a] apple.com> 8250 8251 - build fix 8252 8253 * WebIconDatabase.h: 8254 8255 2007-12-14 Darin Adler <darin (a] apple.com> 8256 8257 Reviewed by Adele. 8258 8259 - http://bugs.webkit.org/show_bug.cgi?id=16443 8260 implement some missing Windows WebKit functions 8261 8262 * DOMHTMLClasses.cpp: 8263 (DOMHTMLDocument::URL): Implemented. 8264 8265 * WebActionPropertyBag.cpp: 8266 (WebActionPropertyBag::Read): Fixed the WebActionElementKey case. 8267 8268 2007-12-14 Darin Adler <darin (a] apple.com> 8269 8270 Reviewed by Alexey. 8271 8272 * WebView.cpp: 8273 (WebView::execCommand): Switched from Editor::execCommand to Editor:command. 8274 Updated name from MoveUpByPageAndModifyCaret to MovePageUp and from 8275 MoveDownByPageAndModifyCaret to MovePageDown. 8276 (WebView::copy): Switched from Editor::execCommand to Editor:command. 8277 (WebView::cut): Ditto. 8278 (WebView::paste): Ditto. 8279 (WebView::delete_): Ditto. 8280 8281 2007-12-13 Steve Falkenburg <sfalken (a] apple.com> 8282 8283 Move source file generation into its own vcproj to fix build dependencies. 8284 8285 Reviewed by Adam. 8286 8287 * WebKit.vcproj/Interfaces.vcproj: 8288 * WebKit.vcproj/InterfacesGenerated.vcproj: Added. 8289 * WebKit.vcproj/WebKit.sln: 8290 * WebKit.vcproj/WebKit.submit.sln: 8291 * WebKit.vcproj/build-generated-files.sh: 8292 8293 2007-12-13 Adam Roben <aroben (a] apple.com> 8294 8295 Fix <rdar://5517707> Crash on wptv.wp.pl when "make bigger" button is clicked 8296 8297 Reviewed by Anders. 8298 8299 * WebView.cpp: 8300 (WebViewWndProc): Repost paint messages and ignore all other messages 8301 when we're calling a plugin. 8302 8303 2007-12-13 Steve Falkenburg <sfalken (a] apple.com> 8304 8305 Fix project dependencies based on JavaScriptCore change. 8306 8307 * WebKit.vcproj/WebKit.sln: 8308 8309 2007-12-13 Alexey Proskuryakov <ap (a] webkit.org> 8310 8311 Reviewed by Adele. 8312 8313 http://bugs.webkit.org/show_bug.cgi?id=16421 8314 REGRESSION(r28669): Page scrolls down when you hit space key in text area 8315 8316 Test: fast/events/space-scroll-event.html 8317 8318 * WebView.cpp: 8319 (WebView::keyDown): 8320 (WebView::keyPress): 8321 Moved space handling to keyPress() to fix this bug and to match IE. Scrolling via arrow keys is correctly handled 8322 in keyDown(). 8323 8324 2007-12-12 Brady Eidson <beidson (a] apple.com> 8325 8326 Reviewed by Sam Weinig 8327 8328 Fix for <rdar://problem/4886844> and lay groundwork for <rdar://problem/4516170> (Back/Forward Cache on Windows) 8329 8330 Even though this new code isn't exercised yet because the page cache is still turned off for Windows, local testing 8331 has indicated it works well. 8332 8333 * WebCachedPagePlatformData.h: Added. 8334 (WebCachedPagePlatformData::WebCachedPagePlatformData): Constructor takes an IWebDataSource and the object retains it 8335 (WebCachedPagePlatformData::clear): 8336 (WebCachedPagePlatformData::webDataSource): 8337 8338 * WebFrame.cpp: 8339 (WebFrame::savePlatformDataToCachedPage): 8340 (WebFrame::transitionToCommittedFromCachedPage): 8341 (WebFrame::transitionToCommittedForNewPage): 8342 * WebFrame.h: 8343 8344 * WebKit.vcproj/WebKit.vcproj: 8345 8346 2007-12-12 Steve Falkenburg <sfalken (a] apple.com> 8347 8348 Build fix. 8349 8350 * WebKit.vcproj/WebKit.make: Copy only what we need out of obj/bin. 8351 8352 2007-12-12 Dan Bernstein <mitz (a] apple.com> 8353 8354 Reviewed by Darin Adler. 8355 8356 - revert my earlier crash fix after making WebCore return the empty 8357 editor command for the empty command name. 8358 8359 * WebView.cpp: 8360 (WebView::handleEditingKeyboardEvent): 8361 8362 2007-12-12 Oliver Hunt <oliver (a] apple.com> 8363 8364 Reviewed by Maciej. 8365 8366 <rdar://problem/5071781> window.mouseout events are not 8367 sent to window when mouse moves out of window 8368 8369 Hook up the windows mouse tracking logic to allow us to 8370 detect the mouse leaving the window. 8371 8372 * WebView.cpp: 8373 (WebView::close): 8374 (WebView::handleMouseEvent): 8375 (WebViewWndProc): 8376 * WebView.h: 8377 8378 2007-12-12 Dan Bernstein <mitz (a] apple.com> 8379 8380 Reviewed by Alexey Proskuryakov. 8381 8382 - fix a crash when pressing a key that is not associated with a command 8383 8384 * WebView.cpp: 8385 (WebView::handleEditingKeyboardEvent): Check if the result of 8386 interpretKeyEvent() is empty. 8387 8388 2007-12-11 Sam Weinig <sam (a] webkit.org> 8389 8390 Reviewed by Darin Adler. 8391 8392 Scrub URL out of the tree in preparation for renaming KURL to URL. 8393 8394 * WebFrame.cpp: 8395 (WebFrame::url): 8396 (WebFrame::dispatchWillPerformClientRedirect): 8397 (WebFrame::setTitle): 8398 (WebFrame::updateGlobalHistoryForStandardLoad): 8399 (WebFrame::updateGlobalHistoryForReload): 8400 (WebFrame::cancelledError): 8401 (WebFrame::blockedError): 8402 (WebFrame::interruptForPolicyChangeError): 8403 (WebFrame::createPlugin): 8404 * WebView.cpp: 8405 (WebView::notifyDidAddIcon): 8406 8407 2007-12-10 Anders Carlsson <andersca (a] apple.com> 8408 8409 Reviewed by Darin Adler. 8410 8411 <rdar://problem/5636865> 8412 WebKit needs API to allow registering a protocol as local (RSS feeds appear unstyled) 8413 8414 * Interfaces/IWebView.idl: 8415 * WebView.cpp: 8416 (WebView::registerURLSchemeAsLocal): 8417 * WebView.h: 8418 8419 2007-12-11 Ada Chan <adachan (a] apple.com> 8420 8421 Updated the database SPI to take in IWebFrame. 8422 8423 Reviewed by Adam. 8424 8425 * Interfaces/IWebUIDelegatePrivate.idl: 8426 * WebChromeClient.cpp: 8427 (WebChromeClient::requestQuotaIncreaseForNewDatabase): 8428 (WebChromeClient::requestQuotaIncreaseForDatabaseOperation): 8429 8430 2007-12-11 Alexey Proskuryakov <ap (a] webkit.org> 8431 8432 Windows build fix. 8433 8434 * WebView.cpp: 8435 (WebView::interpretKeyEvent): 8436 8437 2007-12-11 Darin Adler <darin (a] apple.com> 8438 8439 * WebView.cpp: 8440 (WebView::handleEditingKeyboardEvent): Update for change to Editor API. 8441 8442 2007-12-11 Alexey Proskuryakov <ap (a] webkit.org> 8443 8444 Reviewed by Darin Adler. 8445 8446 <rdar://problem/5535636> 8447 Have to press 4 times instead of 2 times to get the expected result of ^^ with german keyboard. 8448 8449 http://bugs.webkit.org/show_bug.cgi?id=13916 8450 JavaScript detects Tab as a character input on a textfield validation 8451 8452 Listen to WM_CHAR messages, and actually pass the type of message received down to WebCore. 8453 Since WM_KEYDOWN == keydown and WM_CHAR == keypress, this allows for much better IE compatibility 8454 than layering Windows keyboard event handling on top of Mac one. 8455 8456 * WebView.cpp: 8457 (WebView::keyUp): Do not special case Alt+F4 and Alt+Space - we don't get keyups for those anyway! 8458 (WebView::interpretKeyEvent): Renamed WindowsKeyCode() to windowsVirtualKeyCode(). 8459 (WebView::handleEditingKeyboardEvent): Use the additional information about event type that 8460 we now pass with PlatformKeyboardEvent. 8461 (WebView::keyDown): (WebView::keyPress): Split WM_KEYDOWN and WM_CHAR handling in separate 8462 functions, pass them down as is, without trying to guess what WM_CHAR Windows would have sent 8463 for a given WM_KEYDOWN. 8464 8465 (WebViewWndProc): Handle WM_CHAR and WM_SYSCHAR. 8466 8467 * WebView.h: Removed inIMEKeyDown() - it doesn't look like we need it at all. At least, I didn't 8468 notice any regressions after removing the only call to it in WebEditorClient. 8469 8470 * WebEditorClient.cpp: 8471 (WebEditorClient::handleKeyboardEvent): 8472 (WebEditorClient::handleInputMethodKeydown): 8473 * WebEditorClient.h: 8474 Renamed handleKeypress() to handleKeyboardEvent(), as it gets both keydowns and keypresses. 8475 Renamed handleInputMethodKeypress() to handleInputMethodKeydown() and removed 8476 inIMEKeyDown()-related code. 8477 8478 2007-12-10 Geoffrey Garen <ggaren (a] apple.com> 8479 8480 Reviewed by Sam Weinig. 8481 8482 Updated for rename in JavaScriptCore. 8483 8484 * WebScriptCallFrame.cpp: 8485 (WebScriptCallFrame::functionName): 8486 (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString): 8487 8488 2007-12-07 Steve Falkenburg <sfalken (a] apple.com> 8489 8490 Fix version parsing. 8491 8492 Rubber-stamped by Oliver. 8493 8494 * WebKit.vcproj/auto-version.sh: 8495 8496 2007-12-07 Steve Falkenburg <sfalken (a] apple.com> 8497 8498 Fix build. 8499 8500 * WebKit.vcproj/WebKit.vcproj: 8501 * WebScriptCallFrame.cpp: 8502 8503 2007-12-07 Steve Falkenburg <sfalken (a] apple.com> 8504 8505 Fix build. 8506 8507 * WebHistory.cpp: 8508 (_WebCoreHistoryProvider::containsURL): 8509 8510 2007-12-07 Geoffrey Garen <ggaren (a] apple.com> 8511 8512 Tried to fix build by suppressing warning. 8513 8514 * WebScriptCallFrame.cpp: 8515 8516 2007-12-07 Darin Adler <darin (a] apple.com> 8517 8518 Reviewed by Mitz. 8519 8520 - http://bugs.webkit.org/show_bug.cgi?id=15981 8521 speed up visited-link code a bit 8522 8523 * WebHistory.cpp: Removed unused Latin-1 code path. 8524 (_WebCoreHistoryProvider::containsItem): Updated for function name change. 8525 8526 2007-12-07 Steve Falkenburg <sfalken (a] apple.com> 8527 8528 Re-named our B&I flag from BUILDBOT to PRODUCTION. 8529 Fix our tiny versioning. 8530 Bump our product version. 8531 Use just the major version in the fallback VERSION files. 8532 Pick up the version numbers from the production builder. 8533 8534 Reviewed by Sam Weinig. 8535 8536 * Interfaces/WebKit.idl: 8537 * WebKit.vcproj/Interfaces.vcproj: 8538 * WebKit.vcproj/PRODUCTVERSION: 8539 * WebKit.vcproj/VERSION: 8540 * WebKit.vcproj/WebKit.make: 8541 * WebKit.vcproj/WebKit.rc: 8542 * WebKit.vcproj/WebKit.vcproj: 8543 * WebKit.vcproj/auto-version.sh: 8544 * WebKitDLL.cpp: 8545 (DllUnregisterServer): 8546 8547 2007-12-07 Adam Roben <aroben (a] apple.com> 8548 8549 Fix <rdar://5624866> CFStringRef UI_STRING should use a cache and follow the CF "Get" model (current uses leak) 8550 8551 Added a new class, LocalizedString, that wraps a CFStringRef and a 8552 WebCore::String. We store one LocalizedString for each key string. 8553 8554 Reviewed by Steve. 8555 8556 * WebLocalizableStrings.cpp: Changed our two HashMaps to map from 8557 WebCore::String to LocalizedString*. 8558 (LocalizedString::LocalizedString): 8559 (LocalizedString::operator CFStringRef): 8560 (LocalizedString::operator LPCTSTR): Code moved here from 8561 localizedLPCTSTR. 8562 (findCachedString): Changed to return a LocalizedString*. 8563 (cacheString): Changed to take a LocalizedString*. 8564 (localizedString): Changed to return a const LocalizedString&. We 8565 first try to find a cached LocalizedString. If there isn't one, we 8566 create a new one and cache it. 8567 (WebLocalizedLPCTSTRUTF8): Changed to call localizedString. 8568 (WebLocalizedLPCTSTR): Ditto. 8569 8570 2007-12-07 Adam Roben <aroben (a] apple.com> 8571 8572 Make WebLocalizableStrings work a little more like the Mac version 8573 8574 Reviewed by Steve. 8575 8576 * WebKit.vcproj/WebKit.def: Deprecated SetWebLocalizedStringMainBundle. 8577 * WebKit.vcproj/WebKit_debug.def: Ditto. 8578 * WebLocalizableStrings.cpp: 8579 (createWebKitBundle): Changed to only create the bundle once. 8580 (cfBundleForStringsBundle): Added. Code was factored out of 8581 copyLocalizedStringFromBundle. We now use the CFBundleGetMainBundle to 8582 get the main bundle and WebLocalizableStringsBundle's identifier to 8583 fetch the framework's bundle. 8584 (copyLocalizedStringFromBundle): Changed to call 8585 cfBundleForStringsBundle. 8586 (cacheString): Cleaned up logic a bit with an early return. 8587 (SetWebLocalizedStringMainBundle): Moved down with the other 8588 deprecated functions and made into a no-op. 8589 8590 2007-12-07 Adam Roben <aroben (a] apple.com> 8591 8592 Use SoftLinking.h in WebKitClassFactory. 8593 8594 Reviewed by Oliver. 8595 8596 * WebKitClassFactory.cpp: 8597 (WebKitClassFactory::WebKitClassFactory): We don't have to worry about 8598 not finding STInitialize anymore now that a version of SafariTheme 8599 containing this function has shipped. 8600 8601 2007-12-06 Ada Chan <adachan (a] apple.com> 8602 8603 <rdar://problem/5556378> Implemented database related UI delegate methods (prompts for new/enlarged databases) 8604 8605 Reviewed by Darin Adler. 8606 8607 * Interfaces/IWebUIDelegatePrivate.idl: 8608 * WebChromeClient.cpp: 8609 (WebChromeClient::requestQuotaIncreaseForNewDatabase): 8610 (WebChromeClient::requestQuotaIncreaseForDatabaseOperation): 8611 8612 2007-12-06 Alice Liu <alice.liu (a] apple.com> 8613 8614 Fixed <rdar://5540000> onbeforeunload doesn't fire when closing window/tab 8615 8616 Reviewed by Darin Adler. 8617 8618 * Interfaces/IWebViewPrivate.idl: 8619 * WebView.cpp: 8620 (WebView::shouldClose): 8621 * WebView.h: 8622 8623 2007-12-06 Adam Roben <aroben (a] apple.com> 8624 8625 Fix <rdar://5615283> Crash in WebFrame::receivedPolicyDecision 8626 8627 It's possible for a second policy listener to be created while we're 8628 waiting for a decision on the first policy listener. In this case we 8629 would crash when the first policy listener had a decision made. Mac 8630 WebKit already handles this by invalidating any existing policy 8631 listener when creating a new one. 8632 8633 A test case is coming in a future commit. 8634 8635 Reviewed by Anders. 8636 8637 * WebFrame.cpp: 8638 (WebFrame::setUpPolicyListener): Copy the Mac behavior of invalidating 8639 any existing policy listener, and remove some assertions that we know 8640 can fire. 8641 8642 2007-12-06 Adam Roben <aroben (a] apple.com> 8643 8644 Add SPI so that DumpRenderTree can turn on the Mac font ascent hack 8645 8646 Reviewed by Hyatt. 8647 8648 * Interfaces/IWebViewPrivate.idl: Added new method declaration. 8649 * WebView.cpp: 8650 (WebView::setShouldApplyMacFontAscentHack): Added. Just calls down to 8651 FontData. 8652 * WebView.h: 8653 8654 2007-12-06 Ada Chan <adachan (a] apple.com> 8655 8656 Build fix. 8657 8658 Reviewed by Geoff. 8659 8660 * WebScriptCallFrame.cpp: 8661 (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString): 8662 8663 2007-12-04 Geoffrey Garen <ggaren (a] apple.com> 8664 8665 Reviewed by Darin Adler. 8666 8667 Third step in refactoring JSGlobalObject: Moved data members and data 8668 member access from Interpreter to JSGlobalObject. 8669 8670 * WebFrame.cpp: 8671 (WebFrame::globalContext): 8672 (WebFrame::attachScriptDebugger): 8673 (WebFrame::windowObjectCleared): 8674 * WebScriptDebugger.cpp: 8675 (WebScriptDebugger::WebScriptDebugger): 8676 8677 2007-12-05 Steve Falkenburg <sfalken (a] apple.com> 8678 8679 <rdar://problem/5625327> Crash toggling check grammar w/ spelling when no spell checker exists. 8680 8681 Reviewed by Adam. 8682 8683 * WebView.cpp: 8684 (WebView::setGrammarCheckingEnabled): Add null check 8685 8686 2007-12-05 Adam Roben <aroben (a] apple.com> 8687 8688 Expose WebView::setProhibitsMainFrameScrolling through IWebViewPrivate 8689 8690 Reviewed by Steve. 8691 8692 * Interfaces/IWebViewPrivate.idl: Added declaration. 8693 * WebInspectorClient.cpp: 8694 (WebInspectorClient::createPage): Updated for change to 8695 setProhibitsMainFrameScrolling signature. 8696 * WebView.cpp: 8697 (WebView::setProhibitsMainFrameScrolling): Updated and robustified. 8698 * WebView.h: 8699 8700 2007-12-05 Dan Bernstein <mitz (a] apple.com> 8701 8702 Reviewed by Darin Adler. 8703 8704 - WebKit/win part of fixing <rdar://problem/5111082> Flash popup video ad doesn't close when clicked at http://www.firestonecompleteautocare.com/ 8705 8706 * WebView.cpp: 8707 (WebView::initWithFrame): Attach the main frame's view. 8708 8709 2007-12-04 Ada Chan <adachan (a] apple.com> 8710 8711 Provide API for setting the default storage quota per database origin 8712 8713 Reviewed by Jon. 8714 8715 * Interfaces/IWebPreferencesPrivate.idl: added SPI to get/set default database quota 8716 * WebPreferenceKeysPrivate.h: 8717 * WebPreferences.cpp: 8718 (WebPreferences::initializeDefaultSettings): default database quota is 5MB 8719 (WebPreferences::longlongValueForKey): 8720 (WebPreferences::setLongLongValue): 8721 (WebPreferences::defaultDatabaseQuota): 8722 (WebPreferences::setDefaultDatabaseQuota): 8723 * WebPreferences.h: 8724 * WebView.cpp: 8725 (WebView::notifyPreferencesChanged): propagate default database quota change to WebCore settings. 8726 8727 2007-12-04 Kevin McCullough <kmccullough (a] apple.com> 8728 8729 Reviewed by Adam and Darin. 8730 8731 - Fixed a crasher where the top of the stack was not updated correctly. 8732 And set the eol style on IWebScriptCallFrame.idl file. 8733 8734 * Interfaces/IWebScriptCallFrame.idl: 8735 * WebScriptDebugger.cpp: 8736 (WebScriptDebugger::atStatement): 8737 (WebScriptDebugger::leaveFrame): 8738 8739 2007-11-27 Adam Roben <aroben (a] apple.com> 8740 8741 Hook up the authorAndUserStylesEnabled preference 8742 8743 This is the Windows counterpart of r28071. 8744 8745 Reviewed by Maciej. 8746 8747 * Interfaces/IWebPreferencesPrivate.idl: Added new method 8748 declarations. 8749 * WebPreferenceKeysPrivate.h: Added a new preference key. 8750 * WebPreferences.cpp: 8751 (WebPreferences::initializeDefaultSettings): Set the default for the 8752 new preference. 8753 (WebPreferences::setAuthorAndUserStylesEnabled): Added. 8754 (WebPreferences::authorAndUserStylesEnabled): Added. 8755 * WebPreferences.h: 8756 * WebView.cpp: 8757 (WebView::notifyPreferencesChanged): Communicate the new preference 8758 down to WebCore::Settings. 8759 8760 2007-12-04 Jon Honeycutt <jhoneycutt (a] apple.com> 8761 8762 Reviewed by Ollie. 8763 8764 Don't crash if our JavaPlugin DLL can't be found 8765 8766 * WebFrame.cpp: 8767 (WebFrame::createJavaAppletWidget): Added null check 8768 8769 2007-12-04 Darin Adler <darin (a] apple.com> 8770 8771 Reviewed by Kevin Decker. 8772 8773 * WebFrame.cpp: Removed obsolete privateBrowsingEnabled. 8774 * WebFrame.h: Ditto. 8775 8776 2007-12-04 Adam Roben <aroben (a] apple.com> 8777 8778 Windows build fix 8779 8780 * WebScriptCallFrame.cpp: 8781 8782 2007-12-03 Dan Bernstein <mitz (a] apple.com> 8783 8784 Reviewed by Dave Hyatt. 8785 8786 - fix <rdar://problem/5346452> Resize event doesn't fire on body element inside a frame 8787 8788 * WebView.cpp: 8789 (WebViewWndProc): Removed call to sendResizeEvent() since FrameView 8790 sends them now. 8791 8792 2007-12-03 Kevin McCullough <kmccullough (a] apple.com> 8793 8794 Reviewed by Adam. 8795 8796 - <rdar://5618942> Drosera: Console window does not process everything 8797 correctly. 8798 - <rdar://5619005> Drosera: could be sped up by moving the 8799 WebScriptScope stuff into the WebScriptCallFrame. 8800 - Now the console can correctly process objects and does not receive 8801 notifications from JavaScriptCore about the JavaScript in Drosera's 8802 own process. 8803 8804 * Interfaces/IWebScriptCallFrame.idl: Moved the variable lookup 8805 functions from WebScriptScope to here. 8806 * Interfaces/WebKit.idl: Removed WebScriptScope. 8807 * WebKit.vcproj/Interfaces.vcproj: Ditto. 8808 * WebKit.vcproj/WebKit.vcproj: Ditto. 8809 * WebKit.vcproj/WebKitGUID.vcproj: Ditto. 8810 * WebScriptCallFrame.cpp: Moved WebScriptScope functionality into here. 8811 (WebScriptCallFrame::stringByEvaluatingJavaScriptFromString): Now 8812 returns a string value for things that are not strings. 8813 (WebScriptCallFrame::variableNames): Moved from WebScriptScope. 8814 (WebScriptCallFrame::valueForVariable): Moved from WebScriptScope. 8815 (WebScriptCallFrame::jsValueToString): Helper functions that converts 8816 any JSValue to a String. 8817 * WebScriptCallFrame.h: Moved WebScriptScope functionality into here. 8818 * WebScriptDebugger.cpp: Added nested guards so that Drosera does not 8819 receive notifications about JavaScript that Drosera is running just the 8820 JavaScript WebKit is running. 8821 (WebScriptDebugger::WebScriptDebugger): 8822 (WebScriptDebugger::sourceParsed): 8823 (WebScriptDebugger::callEvent): 8824 (WebScriptDebugger::atStatement): 8825 (WebScriptDebugger::returnEvent): 8826 (WebScriptDebugger::exception): 8827 * WebScriptDebugger.h: Ditto. 8828 * WebScriptScope.cpp: Removed. 8829 * WebScriptScope.h: Removed. 8830 8831 2007-12-03 Mark Rowe <mrowe (a] apple.com> 8832 8833 Speculative Windows build fix. 8834 8835 * WebScriptCallFrame.cpp: 8836 (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString): 8837 8838 2007-12-03 Adam Roben <aroben (a] apple.com> 8839 8840 Another speculative Windows build fix 8841 8842 * WebScriptCallFrame.cpp: 8843 (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString): 8844 8845 2007-12-03 Adam Roben <aroben (a] apple.com> 8846 8847 Speculative Windows build fix 8848 8849 * WebFrame.cpp: 8850 (WebFrame::globalContext): 8851 (WebFrame::windowObjectCleared): 8852 * WebScriptDebugger.cpp: 8853 (WebScriptDebugger::WebScriptDebugger): 8854 8855 2007-12-01 Sam Weinig <sam (a] webkit.org> 8856 8857 Rename IWebViewPrivate::selectionImageRect to IWebViewPrivate::selectionRect. 8858 8859 Rubber stamped by Adam Roben. 8860 8861 * Interfaces/IWebViewPrivate.idl: 8862 * WebView.cpp: 8863 (WebView::selectionRect): 8864 * WebView.h: 8865 8866 2007-11-30 Ada Chan <adachan (a] apple.com> 8867 8868 <rdar://problem/5621373> Added a way for the client to clear undo/redo 8869 operations from a WebView. 8870 8871 Reviewed by Steve. 8872 8873 * Interfaces/IWebViewPrivate.idl: 8874 * WebView.cpp: 8875 (WebView::clearUndoRedoOperations): 8876 * WebView.h: 8877 8878 2007-11-29 Anders Carlsson <andersca (a] apple.com> 8879 8880 Reviewed by Sam. 8881 8882 Add an IWebFrameLoadDelegate2 interface with a didClearWindowObject method 8883 that passes in the frame whose window has been cleared. This matches a newly 8884 added delegate method on the Mac. 8885 8886 * Interfaces/IWebFrameLoadDelegate.idl: 8887 * WebFrame.cpp: 8888 (WebFrame::windowObjectCleared): 8889 8890 2007-11-29 Kevin McCullough <kmccullough (a] apple.com> 8891 8892 Reviewed by Sam. 8893 8894 - <rdar://5618976> Drosera: should listen for the WebScriptDebugServer 8895 dying and vice versa. 8896 8897 * Interfaces/IWebScriptDebugListener.idl: Added the new function to the 8898 interface. 8899 * WebKit.vcproj/WebKit.def: Added the new function to the def file so 8900 Safari can tell WebKit when the server is dying. 8901 * WebKit.vcproj/WebKit_debug.def: Ditto. 8902 * WebKitDLL.cpp: Added the new function for Safari to call. 8903 (RunAsLocalServer): 8904 (LocalServerDidDie): 8905 * WebScriptDebugServer.cpp: 8906 (WebScriptDebugServer::WebScriptDebugServer): Removed unused member. 8907 (WebScriptDebugServer::sharedWebScriptDebugServer): Ditto, and added new 8908 member to prevent adding or removing listeners when the server is dying. 8909 (WebScriptDebugServer::addListener): Don't let new listeners be added 8910 when the server is dying. 8911 (WebScriptDebugServer::removeListener): Don't let listeners remove 8912 themselves when the server is dying. The server will remove them all 8913 anyways. 8914 (WebScriptDebugServer::serverDidDie): Notify all listeners that the 8915 server is dying and remove all listeners. 8916 * WebScriptDebugServer.h: Added the new method and removed an unused 8917 member. 8918 8919 2007-11-29 Brady Eidson <beidson (a] apple.com> 8920 8921 Build fix that works...? 8922 8923 * WebChromeClient.h: 8924 8925 2007-11-29 Brady Eidson <beidson (a] apple.com> 8926 8927 Build fix 8928 8929 * WebChromeClient.cpp: 8930 (WebChromeClient::requestQuotaIncreaseForNewDatabase): 8931 (WebChromeClient::requestQuotaIncreaseForDatabaseOperation): 8932 8933 2007-11-29 Brady Eidson <beidson (a] apple.com> 8934 8935 Keep it building with new client method 8936 8937 * WebChromeClient.cpp: 8938 (ChromeClient::requestQuotaIncreaseForNewDatabase): 8939 (ChromeClient::requestQuotaIncreaseForDatabaseOperation): 8940 * WebChromeClient.h: 8941 8942 2007-11-29 Dan Bernstein <mitz (a] apple.com> 8943 8944 Reviewed by Beth Dakin and Darin Adler. 8945 8946 - fix <rdar://problem/5346394> Contextmenu event doesn't fire on body element inside frame 8947 8948 * WebView.cpp: 8949 (WebView::handleContextMenuEvent): Send the context menu event to the 8950 frame containing the node that was hit. 8951 8952 2007-11-28 Kevin McCullough <kmccullough (a] apple.com> 8953 8954 Reviewed by Tim. 8955 8956 - Added guards to the wait loop so execution would not hang and now the 8957 console window can process JavaScript. 8958 8959 * WebScriptDebugServer.cpp: 8960 (WebScriptDebugServer::suspendProcessIfPaused): 8961 8962 2007-11-28 Anders Carlsson <andersca (a] apple.com> 8963 8964 Reviewed by Adam. 8965 8966 Implement the last bits of the WebDatabaseManager API. 8967 8968 * Interfaces/IWebDatabaseManager.idl: 8969 * WebDatabaseManager.cpp: 8970 (isEqual): 8971 (WebDatabaseManager::sharedWebDatabaseManager): 8972 (WebDatabaseManager::dispatchDidModifyOrigin): 8973 (WebDatabaseManager::dispatchDidModifyDatabase): 8974 * WebDatabaseManager.h: 8975 8976 2007-11-28 Anders Carlsson <andersca (a] apple.com> 8977 8978 Get Drosera working again for real. 8979 8980 * COMEnumVariant.h: 8981 (::Next): 8982 8983 2007-11-27 Kevin McCullough <kmccullough (a] apple.com> 8984 8985 Reviewed by Maciej and Adam. 8986 8987 - Added Drosera to the WebKit project. 8988 8989 * WebKit.vcproj/WebKit.sln: 8990 8991 2007-11-27 Jon Honeycutt <jhoneycutt (a] apple.com> 8992 8993 Reviewed by Adam. 8994 8995 Return bool from registerWebViewWindowClass, as nothing uses the ATOM. 8996 Set haveRegisteredWindowClass to true 8997 8998 * WebView.cpp: 8999 (registerWebViewWindowClass): 9000 9001 2007-11-27 Anders Carlsson <andersca (a] apple.com> 9002 9003 Speculative fix to get Drosera working. 9004 9005 * COMEnumVariant.h: 9006 (::Next): 9007 Update the number of elements fetched correctly. 9008 9009 2007-11-27 Anders Carlsson <andersca (a] apple.com> 9010 9011 Reviewed by Adam. 9012 9013 Some COM cleanup. 9014 9015 * CFDictionaryPropertyBag.cpp: 9016 (CFDictionaryPropertyBag::QueryInterface): 9017 * CFDictionaryPropertyBag.h: 9018 * WebBackForwardList.cpp: 9019 (WebBackForwardList::addItem): 9020 (WebBackForwardList::removeItem): 9021 * WebDownload.cpp: 9022 (WebDownload::initWithRequest): 9023 * WebFrame.cpp: 9024 (WebFrame::loadRequest): 9025 (WebFrame::initWithWebFrameView): 9026 (WebFrame::webHistory): 9027 (WebFrame::dispatchWillSendRequest): 9028 * WebURLAuthenticationChallenge.cpp: 9029 (WebURLAuthenticationChallenge::QueryInterface): 9030 (WebURLAuthenticationChallenge::initWithProtectionSpace): 9031 * WebURLAuthenticationChallenge.h: 9032 * WebURLAuthenticationChallengeSender.cpp: 9033 (WebURLAuthenticationChallengeSender::QueryInterface): 9034 * WebURLAuthenticationChallengeSender.h: 9035 * WebURLResponse.cpp: 9036 (WebURLResponse::QueryInterface): 9037 * WebURLResponse.h: 9038 * WebView.cpp: 9039 (WebView::notifyDidAddIcon): 9040 (WebView::goToBackForwardItem): 9041 (WebView::canHandleRequest): 9042 (WebView::loadBackForwardListFromOtherView): 9043 (core): 9044 9045 2007-11-27 Anders Carlsson <andersca (a] apple.com> 9046 9047 Add COMEnumVariant.h to the project. 9048 9049 * WebKit.vcproj/WebKit.vcproj: 9050 9051 2007-11-27 Anders Carlsson <andersca (a] apple.com> 9052 9053 Reviewed by Adam. 9054 9055 Return E_INVALIDARG if the databaseName BSTR is null. 9056 9057 * WebDatabaseManager.cpp: 9058 (WebDatabaseManager::detailsForDatabaseWithOrigin): 9059 (WebDatabaseManager::deleteDatabaseWithOrigin): 9060 9061 2007-11-27 Anders Carlsson <andersca (a] apple.com> 9062 9063 Reviewed by Adam. 9064 9065 Implement the rest of the WebDatabaseManager API. 9066 9067 * COMEnumVariant.h: 9068 * Interfaces/IWebDatabaseManager.idl: 9069 * WebDatabaseManager.cpp: 9070 (isEqual): 9071 (DatabaseDetailsPropertyBag::DatabaseDetailsPropertyBag): 9072 (DatabaseDetailsPropertyBag::~DatabaseDetailsPropertyBag): 9073 (DatabaseDetailsPropertyBag::createInstance): 9074 (DatabaseDetailsPropertyBag::AddRef): 9075 (DatabaseDetailsPropertyBag::Release): 9076 (DatabaseDetailsPropertyBag::QueryInterface): 9077 (DatabaseDetailsPropertyBag::Read): 9078 (DatabaseDetailsPropertyBag::Write): 9079 (WebDatabaseManager::detailsForDatabaseWithOrigin): 9080 (WebDatabaseManager::deleteAllDatabases): 9081 (WebDatabaseManager::deleteDatabasesWithOrigin): 9082 (WebDatabaseManager::deleteDatabaseWithOrigin): 9083 * WebDatabaseManager.h: 9084 9085 2007-11-27 Ada Chan <adachan (a] apple.com> 9086 9087 <rdar://problem/5616098> The BSTR returned by WebHistoryItem::alternateTitle 9088 was not allocated correctly. 9089 9090 Reviewed by Anders. 9091 9092 * WebHistoryItem.cpp: 9093 (WebHistoryItem::setAlternateTitle): 9094 (WebHistoryItem::alternateTitle): 9095 * WebHistoryItem.h: 9096 9097 2007-11-27 Anders Carlsson <andersca (a] apple.com> 9098 9099 Reviewed by Adam. 9100 9101 Use COMEnumVariant in WebScriptCallFrame and WebScriptScope. 9102 9103 * WebScriptCallFrame.cpp: 9104 (WebScriptCallFrame::scopeChain): 9105 * WebScriptScope.cpp: 9106 (WebScriptScope::variableNames): 9107 9108 2007-11-27 Anders Carlsson <andersca (a] apple.com> 9109 9110 Reviewed by Adam. 9111 9112 Use the correct include paths. 9113 9114 * COMEnumVariant.h: 9115 9116 2007-11-27 Anders Carlsson <andersca (a] apple.com> 9117 9118 Reviewed by Darin Adler. 9119 9120 Add COMEnumVariant, a templatized class with implements IEnumVARIANT and lets 9121 you enumerate over a C++ container, be it WTF or STL. 9122 9123 * COMEnumVariant.h: Added. 9124 9125 * WebDatabaseManager.cpp: 9126 (WebDatabaseManager::origins): 9127 (WebDatabaseManager::databasesWithOrigin): 9128 Implement these using COMEnumVariant. 9129 9130 * WebSecurityOrigin.cpp: 9131 (WebSecurityOrigin::QueryInterface): 9132 * WebSecurityOrigin.h: 9133 Add a UUID for the implementation so that other parts of WebKit can access 9134 the WebCore::SecurityOriginData object. 9135 9136 2007-11-26 Adam Roben <aroben (a] apple.com> 9137 9138 Take advantage of the new Color constructor that takes a CGColorRef 9139 9140 This lets us handle grayscale colors (which only have 2 components). 9141 9142 Reviewed by Darin Adler. 9143 9144 * WebKitGraphics.cpp: 9145 (DrawTextAtPoint): 9146 9147 2007-11-26 Steve Falkenburg <sfalken (a] apple.com> 9148 9149 Build fix. 9150 9151 * WebKit.vcproj/WebKit.make: 9152 9153 2007-11-26 Steve Falkenburg <sfalken (a] apple.com> 9154 9155 Build fix. 9156 9157 * WebKit.vcproj/build-generated-files.sh: 9158 9159 2007-11-26 Steve Falkenburg <sfalken (a] apple.com> 9160 9161 Build fix. 9162 9163 * WebKit.vcproj/build-generated-files.sh: 9164 9165 2007-11-26 Anders Carlsson <andersca (a] apple.com> 9166 9167 Reviewed by Adam. 9168 9169 Add an implementation of IWebSecurityOrigin and a partially stubbed out 9170 implementation of IWebDatabaseManager. 9171 9172 * ForEachCoClass.h: 9173 * Interfaces/IWebDatabaseManager.idl: 9174 * Interfaces/WebKit.idl: 9175 * WebDatabaseManager.cpp: 9176 (WebDatabaseManager::createInstance): 9177 (WebDatabaseManager::WebDatabaseManager): 9178 (WebDatabaseManager::~WebDatabaseManager): 9179 (WebDatabaseManager::QueryInterface): 9180 (WebDatabaseManager::AddRef): 9181 (WebDatabaseManager::Release): 9182 (WebDatabaseManager::sharedWebDatabaseManager): 9183 (WebDatabaseManager::origins): 9184 (WebDatabaseManager::databasesWithOrigin): 9185 (WebDatabaseManager::detailsForDatabaseWithOrigin): 9186 (WebDatabaseManager::deleteAllDatabases): 9187 (WebDatabaseManager::deleteDatabasesWithOrigin): 9188 (WebDatabaseManager::deleteDatabaseWithOrigin): 9189 * WebDatabaseManager.h: 9190 * WebKit.vcproj/WebKit.vcproj: 9191 * WebKitClassFactory.cpp: 9192 * WebSecurityOrigin.cpp: Added. 9193 (WebSecurityOrigin::createInstance): 9194 (WebSecurityOrigin::WebSecurityOrigin): 9195 (WebSecurityOrigin::~WebSecurityOrigin): 9196 (WebSecurityOrigin::QueryInterface): 9197 (WebSecurityOrigin::AddRef): 9198 (WebSecurityOrigin::Release): 9199 (WebSecurityOrigin::protocol): 9200 (WebSecurityOrigin::domain): 9201 (WebSecurityOrigin::port): 9202 (WebSecurityOrigin::usage): 9203 (WebSecurityOrigin::quota): 9204 (WebSecurityOrigin::setQuota): 9205 * WebSecurityOrigin.h: Added. 9206 9207 2007-11-26 Kevin McCullough <kmccullough (a] apple.com> 9208 9209 Reviewed by Maciej. 9210 9211 - Implemented displaying variables for Drosera on Win. 9212 9213 * Interfaces/IWebScriptCallFrame.idl: Added a local function to be 9214 able to access the WebScriptCallFrame. 9215 * Interfaces/IWebScriptScope.idl: Implemented. 9216 * Interfaces/WebKit.idl: Added WebScriptScope to the tlb. 9217 * WebKit.vcproj/Interfaces.vcproj: 9218 * WebScriptCallFrame.cpp: Implemented the helper and accessor methods. 9219 (EnumScopes::Next): Fixed a bug where we did not release correctly and 9220 would accidentally destroy scopes. 9221 (WebScriptCallFrame::stringByEvaluatingJavaScriptFromString): 9222 Implemented. 9223 (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString): Implemented 9224 * WebScriptCallFrame.h: Implemented the helper and accessor methods. 9225 (WebScriptCallFrame::impl): 9226 (WebScriptCallFrame::state): 9227 * WebScriptScope.cpp: Implmented. 9228 (EnumVariables::EnumVariables): Created an IEnumVariant over the 9229 variables to be able to pass a DCOM acceptable structure back to 9230 Drosera. 9231 (EnumVariables::createInstance): 9232 (EnumVariables::QueryInterface): 9233 (EnumVariables::AddRef): 9234 (EnumVariables::Release): 9235 (EnumVariables::Next): 9236 (EnumVariables::Skip): 9237 (EnumVariables::Reset): 9238 (EnumVariables::Clone): 9239 (WebScriptScope::WebScriptScope): 9240 (WebScriptScope::createInstance): Implemented. 9241 (WebScriptScope::variableNames): Implemented. 9242 (WebScriptScope::valueForVariable): 9243 * WebScriptScope.h: Implmeneted. 9244 9245 2007-11-26 Anders Carlsson <andersca (a] apple.com> 9246 9247 Reviewed by Brady. 9248 9249 Add IWebDatabaseManager and IWebSecurityOrigin interfaces. 9250 9251 * Interfaces/IWebDatabaseManager.idl: Added. 9252 * Interfaces/IWebSecurityOrigin.idl: Added. 9253 * WebKit.vcproj/Interfaces.vcproj: 9254 * WebKit.vcproj/WebKitGUID.vcproj: 9255 9256 2007-11-26 Alice Liu <alice.liu (a] apple.com> 9257 9258 Reviewed by Jon Honeycutt. 9259 9260 Fall back to the default Policy Delegate in these functions, 9261 as is already done in dispatchDecidePolicyForNavigationAction 9262 9263 * WebFrame.cpp: 9264 (WebFrame::dispatchDecidePolicyForMIMEType): 9265 (WebFrame::dispatchDecidePolicyForNewWindowAction): 9266 (WebFrame::dispatchUnableToImplementPolicy): 9267 9268 2007-11-25 Adam Roben <aroben (a] apple.com> 9269 9270 Fix a leak pointed out by Alexey 9271 9272 * WebView.cpp: 9273 (getUpdateRects): Use a Vector<unsigned char>, since OwnPtr doesn't 9274 know to call delete[]. 9275 9276 2007-11-25 Adam Roben <aroben (a] apple.com> 9277 9278 Fix Bug 16138: Reduce code duplication in WebView.cpp 9279 9280 http://bugs.webkit.org/show_bug.cgi?id=16138 9281 9282 Reviewed by Sam. 9283 9284 * WebView.cpp: 9285 (getUpdateRects): Factored code out of updateBackingStore and paint 9286 into this new helper function. 9287 (WebView::updateBackingStore): Use getUpdateRects. 9288 (WebView::paint): Ditto. 9289 (WebView::paintIntoBackingStore): Changed to take a const IntRect&. 9290 (WebView::paintIntoWindow): Ditto. 9291 * WebView.h: 9292 9293 2007-11-25 Adam Roben <aroben (a] apple.com> 9294 9295 Add ImageDiff.vcproj to WebKit.sln 9296 9297 Reviewed by Sam. 9298 9299 * WebKit.vcproj/WebKit.sln: 9300 9301 2007-11-17 Timothy Hatcher <timothy (a] apple.com> 9302 9303 Reviewed by Mark Rowe. 9304 9305 Bug 13470: i18n: The Web Inspector is not localizable 9306 http://bugs.webkit.org/show_bug.cgi?id=13470 9307 9308 * English.lproj/Localizable.strings: Updated. 9309 * WebInspectorClient.cpp: 9310 (WebInspectorClient::localizedStringsURL): Empty stub. 9311 * WebInspectorClient.h: Added localizedStringsURL. 9312 9313 2007-11-17 Alexey Proskuryakov <ap (a] webkit.org> 9314 9315 Windows build fix. 9316 9317 * WebView.cpp: 9318 (WebView::deleteSelection): Use canSmartCopyOrDelete() directly. 9319 9320 2007-11-14 Adam Roben <aroben (a] apple.com> 9321 9322 Change Interfaces to be a "Static Library" project 9323 9324 Being a Utility project meant that Interfaces was rebuilding every 9325 time (Utility projects are supposed to handle their own dependencies). 9326 Interfaces isn't really a static library, but it means that VS will 9327 handle dependencies for us (and not complain about missing manifests 9328 like it did when the project was an Application). 9329 9330 * WebKit.vcproj/Interfaces.vcproj: 9331 9332 2007-11-14 Adam Roben <aroben (a] apple.com> 9333 9334 Shut up FixMIDLHeaders.pl 9335 9336 * WebKit.vcproj/FixMIDLHeaders.pl: 9337 9338 2007-11-14 Adam Roben <aroben (a] apple.com> 9339 9340 Change Interfaces to use a Utility configuration 9341 9342 It had previously been marked as an "Application (.exe)", which is 9343 wrong but worked with most versions of Visual Studio. 9344 9345 Rubberstamped by Steve. 9346 9347 * WebKit.vcproj/Interfaces.vcproj: 9348 9349 2007-11-14 Anders Carlsson <andersca (a] apple.com> 9350 9351 Reviewed by Adam. 9352 9353 Get the new focus window from the wParam instead of calling GetFocus(). 9354 Also, send blur even if there is no focused frame. 9355 9356 * WebView.cpp: 9357 (WebViewWndProc): 9358 9359 2007-11-14 Adam Roben <aroben (a] apple.com> 9360 9361 Another build fix for systems without Cygwin in their PATH 9362 9363 * WebKit.vcproj/Interfaces.vcproj: Add Cygwin to the PATH in the 9364 Post-Build Event. 9365 9366 2007-11-13 Kevin McCullough <kmccullough (a] apple.com> 9367 9368 Reviewed by Adam. 9369 9370 - Make Drosera show source, source URLs, and function stack on Windows 9371 and some minor fixes. 9372 9373 * WebScriptCallFrame.cpp: Fixed a bug where the callFrame was not reffed 9374 properly before being returned, and changed functionName() to check for 9375 Null or if the name is empty. 9376 (EnumScopes::Clone): 9377 (WebScriptCallFrame::WebScriptCallFrame): 9378 (WebScriptCallFrame::createInstance): 9379 (WebScriptCallFrame::caller): 9380 (WebScriptCallFrame::functionName): 9381 * WebScriptCallFrame.h: Ditto 9382 * WebScriptDebugServer.cpp: Made the listenerSet static since we were 9383 already treating it as if it were. Removed the EnumViews stuff. This 9384 was added by Steve to demonstrate DCOM and he thought it would be needed 9385 by Drosera, but I don't believe it will be. 9386 Implemented suspendProcessIfPaused() also added calls to it at the end 9387 of several functions to ensure we pause if Drosera has told WebKit to. 9388 (WebScriptDebugServer::WebScriptDebugServer): 9389 (WebScriptDebugServer::sharedWebScriptDebugServer): 9390 (WebScriptDebugServer::addListener): 9391 (WebScriptDebugServer::removeListener): 9392 (WebScriptDebugServer::suspendProcessIfPaused): 9393 (WebScriptDebugServer::didLoadMainResourceForDataSource): 9394 (WebScriptDebugServer::didParseSource): 9395 (WebScriptDebugServer::failedToParseSource): 9396 (WebScriptDebugServer::didEnterCallFrame): 9397 (WebScriptDebugServer::willExecuteStatement): 9398 (WebScriptDebugServer::willLeaveCallFrame): 9399 (WebScriptDebugServer::exceptionWasRaised): 9400 * WebScriptDebugServer.h: Ditto. 9401 * WebScriptDebugger.cpp: The important change here is that leaveFrame() 9402 is called before willLeaveCallFrame(). I think there is some EOL stuff 9403 going on too. 9404 - It was the implementing of these functions that allows source, the 9405 source URLs and function stack to be displayed. 9406 (WebScriptDebugger::callEvent): 9407 (WebScriptDebugger::atStatement): 9408 (WebScriptDebugger::returnEvent): 9409 (WebScriptDebugger::exception): 9410 (WebScriptDebugger::enterFrame): 9411 (WebScriptDebugger::leaveFrame): 9412 * WebView.cpp: Removed the EnumView functions. 9413 (WebView::WebView): 9414 (WebView::~WebView): 9415 9416 2007-11-13 Adam Roben <aroben (a] apple.com> 9417 9418 Fix <rdar://5346832> Infinite recursion when opening Web Inspector on more than one tab 9419 9420 The bug was that multiple WebNodeHighlights would subclass the same 9421 browser window, leading to infinite recursion within 9422 SubclassedWndProc. 9423 9424 WebNodeHighlight is now a WindowMessageListener, and lets 9425 WindowMessageBroadcaster handle subclassing the window. 9426 9427 Reviewed by Ada. 9428 9429 * WebNodeHighlight.cpp: 9430 (WebNodeHighlight::WebNodeHighlight): Initialize m_observedWindow 9431 member. 9432 (WebNodeHighlight::~WebNodeHighlight): Unregister as a listener for 9433 m_observedWindow. 9434 (WebNodeHighlight::highlight): Register as a listener. 9435 (WebNodeHighlight::windowReceivedMessage): Do the work that used to be 9436 done in SubclassedWndProc. 9437 * WebNodeHighlight.h: Made WebNodeHighlight a WindowMessageListener, 9438 and renamed m_subclassedWindow to m_observedWindow. 9439 9440 2007-11-13 Adam Roben <aroben (a] apple.com> 9441 9442 Build fix for systems that don't have Cygwin in their PATH 9443 9444 * WebKit.vcproj/Interfaces.vcproj: Put Cygwin in the PATH before 9445 trying to run bash. 9446 9447 2007-11-13 Steve Falkenburg <sfalken (a] apple.com> 9448 9449 Add IDOMElementPrivate::font() to get an element's font 9450 as a WebFontDescription. 9451 9452 Reviewed by Darin Adler. 9453 9454 * DOMCoreClasses.cpp: 9455 (DOMElement::font): 9456 * DOMCoreClasses.h: 9457 * Interfaces/DOMPrivate.idl: 9458 9459 2007-11-12 Adam Roben <aroben (a] apple.com> 9460 9461 Windows build fix 9462 9463 * WebKit.vcproj/WebKit.def: Export fastZeroedMalloc. 9464 * WebKit.vcproj/WebKit_debug.def: Ditto. 9465 9466 2007-11-09 Jon Honeycutt <jhoneycutt (a] apple.com> 9467 9468 Reviewed by Sam. 9469 9470 <rdar://5585900>: Safari crashes when selected in context menu to open 9471 audio format files (au, aif) with QT 7.3 9472 9473 The crash occurred on a machine where QT 7.3 was failing to initialize. 9474 The fix is to avoid sending streams to full-page plugins that've failed 9475 to load 9476 9477 * WebFrame.cpp: 9478 (WebFrame::finishedLoading): Check plugin status before calling manual 9479 stream methods 9480 (WebFrame::setMainDocumentError): Same 9481 (WebFrame::committedLoad): Same 9482 9483 2007-11-09 Sam Weinig <sam (a] webkit.org> 9484 9485 Rubber stamped by Oliver. 9486 9487 Make WebCore a dependency of Interfaces. 9488 9489 * WebKit.vcproj/WebKit.sln: 9490 9491 2007-11-04 Sam Weinig <sam (a] webkit.org> 9492 9493 Reviewed by Adam Roben. 9494 9495 <rdar://problem/5435940> 9496 The COM bindings for the DOM should be autogenerated like the other DOM bindings 9497 9498 Initial commit of the autogeneration of the COM DOM Bindings. No behavior change 9499 is being introduced in this patch and to insure that no conflicts arise, a temporary 9500 prefix of "GEN_" has been used for all the new classes. 9501 9502 The build architecture for these bindings differs slightly from the other autogenerated 9503 bindings. Instead of building in WebCore and migrating the resuting code to WebKit (as 9504 is done for the Objective-C bindigs currently), the IDLs and generation scripts are 9505 migrated to WebKit and built there. This is done with a series of scripts and Makefiles. 9506 9507 This commit includes: 9508 - Hand rolled root class/Interface GEN_DOMObject used to facilated object creation 9509 and ref-counting. 9510 - Generating all of the Core DOM and most of HTML and CSS 9511 - Generating Event, EventTarget, and EventListener 9512 9513 * DOMCreateInstance.cpp: Added. 9514 (domWrapperCache): 9515 (getDOMWrapper): 9516 (setDOMWrapper): 9517 (removeDOMWrapper): 9518 (GEN_DOMNode::createInstance): 9519 (GEN_DOMImplementation::createInstance): 9520 (GEN_DOMCSSRule::createInstance): 9521 (GEN_DOMStyleSheet::createInstance): 9522 (GEN_DOMCSSValue::createInstance): 9523 * DOMCreateInstance.h: Added. 9524 Temporary location for createInstance/object caching methods. This will be broken up 9525 into seperate files in the near future. 9526 9527 * GEN_DOMObject.cpp: Added. 9528 (GEN_DOMObject::GEN_DOMObject): 9529 (GEN_DOMObject::~GEN_DOMObject): 9530 (GEN_DOMObject::QueryInterface): 9531 (GEN_DOMObject::AddRef): 9532 (GEN_DOMObject::Release): 9533 * GEN_DOMObject.h: Added. 9534 Hand rolled base class. 9535 9536 * Interfaces/IGEN_DOMObject.idl: Added. 9537 Hand rolled base interface. 9538 9539 * WebKit.vcproj/DerivedSources.make: Added. 9540 * WebKit.vcproj/FixMIDLHeaders.pl: Added. 9541 This script is required because MIDL is producing un-buildable code due to 9542 circular dependencies. 9543 9544 * WebKit.vcproj/Interfaces.vcproj: 9545 * WebKit.vcproj/WebKit.vcproj: 9546 * WebKit.vcproj/WebKitGUID.vcproj: 9547 * WebKit.vcproj/build-generated-files.sh: Added. 9548 9549 2007-11-08 Kevin McCullough <kmccullough (a] apple.com> 9550 9551 Reviewed by Adam. 9552 9553 - This patch does two main things. 9554 1) It adds pragma warning guards around WebCore includes in WebKit files 9555 that were previously overlooked. 9556 2) It implements almost the entireity of WebScriptDebugger. Only one 9557 function remains and that implementation is dependent on finishing the 9558 implementation of WebScriptScope. 9559 9560 * WebScriptCallFrame.h: 9561 * WebScriptDebugServer.h: 9562 * WebScriptDebugger.cpp: 9563 (WebScriptDebugger::WebScriptDebugger): 9564 (WebScriptDebugger::sourceParsed): 9565 (WebScriptDebugger::callEvent): 9566 (WebScriptDebugger::atStatement): 9567 (WebScriptDebugger::returnEvent): 9568 (WebScriptDebugger::exception): 9569 (WebScriptDebugger::enterFrame): 9570 (WebScriptDebugger::leaveFrame): 9571 * WebScriptDebugger.h: 9572 9573 2007-11-08 Steve Falkenburg <sfalken (a] apple.com> 9574 9575 <rdar://problem/5491463> Wrong dates shown in History menu. 9576 9577 Fix off-by-one error in Windows epoch. 9578 9579 For the Windows DATE type, 1/1/1900 should be 2.0, not 1.0. 9580 DATE is the number of days since 12/30/1899. 9581 9582 Reviewed by Ada. 9583 9584 * MarshallingHelpers.cpp: 9585 (MarshallingHelpers::windowsEpochAbsoluteTime): 9586 9587 2007-11-08 Kevin McCullough <kmccullough (a] apple.com> 9588 9589 Reviewed by Sam. 9590 9591 - With this change Drosera can now get the source of a website and the 9592 listings of the sources it gets. This also lays the foundation for 9593 letting Drosera show the scope chain of the JavaScript stack. 9594 9595 * Interfaces/IWebFrame.idl: Changed the signature of the local function, 9596 globalContext(), because COM was unable to marshal this object with the 9597 other signature. 9598 * Interfaces/IWebScriptDebugServer.idl: Of course adding and removing 9599 a listener cannot be done in a const function. 9600 * WebChromeClient.h: Added accessor to the WebView for the new added 9601 kit() function in WebFrame. 9602 (WebChromeClient::webView): 9603 * WebFrame.cpp: Added a script debugger object and the necessary 9604 functions to attach and communicate with it. Also needed to change the 9605 local function, globalContext(), because of a COM issue. 9606 (kit): 9607 (WebFrame::WebFrame): 9608 (WebFrame::globalContext): 9609 (WebFrame::loadData): 9610 (WebFrame::attachScriptDebugger): 9611 (WebFrame::detachScriptDebugger): 9612 (WebFrame::dispatchDidLoadMainResource): 9613 (WebFrame::windowObjectCleared): 9614 * WebFrame.h: Ditto. 9615 * WebHTMLRepresentation.cpp: Implemented documentSource so Drosera has 9616 some source code to display. 9617 (WebHTMLRepresentation::WebHTMLRepresentation): 9618 (WebHTMLRepresentation::documentSource): 9619 * WebKit.vcproj/WebKit.vcproj: Added the new WebScriptDebugger class. 9620 * WebScriptCallFrame.cpp: Implemented much of this class' functionality. 9621 (EnumScopes::EnumScopes): Made an EnumScopes class to create an 9622 IEnumVARIANT to wrap a ScopeChain for Drosera. 9623 (EnumScopes::QueryInterface): 9624 (EnumScopes::AddRef): 9625 (EnumScopes::Release): 9626 (EnumScopes::Next): 9627 (EnumScopes::Skip): 9628 (EnumScopes::Reset): 9629 (EnumScopes::Clone): 9630 (WebScriptCallFrame::caller): 9631 (WebScriptCallFrame::scopeChain): 9632 (WebScriptCallFrame::functionName): 9633 (WebScriptCallFrame::stringByEvaluatingJavaScriptFromString): 9634 * WebScriptCallFrame.h: Added member data needed for the above functions 9635 * WebScriptDebugServer.cpp: Began implementing. 9636 (WebScriptDebugServer::listenerCount): 9637 (EnumViews::QueryInterface): 9638 (EnumViews::AddRef): 9639 (EnumViews::Release): 9640 (EnumViews::Next): 9641 (EnumViews::Skip): 9642 (EnumViews::Reset): 9643 (EnumViews::Clone): 9644 (WebScriptDebugServer::WebScriptDebugServer): 9645 (WebScriptDebugServer::createInstance): 9646 (WebScriptDebugServer::sharedWebScriptDebugServer): 9647 (WebScriptDebugServer::AddRef): 9648 (WebScriptDebugServer::Release): 9649 (WebScriptDebugServer::addListener): 9650 (WebScriptDebugServer::removeListener): 9651 (WebScriptDebugServer::step): 9652 (WebScriptDebugServer::pause): 9653 (WebScriptDebugServer::resume): 9654 (WebScriptDebugServer::isPaused): 9655 (WebScriptDebugServer::suspendProcessIfPaused): 9656 (WebScriptDebugServer::didLoadMainResourceForDataSource): 9657 (WebScriptDebugServer::didParseSource): 9658 (WebScriptDebugServer::failedToParseSource): 9659 (WebScriptDebugServer::didEnterCallFrame): 9660 (WebScriptDebugServer::willExecuteStatement): 9661 (WebScriptDebugServer::willLeaveCallFrame): 9662 (WebScriptDebugServer::exceptionWasRaised): 9663 * WebScriptDebugServer.h: Began implementing. 9664 * WebScriptDebugger.cpp: Added. 9665 (WebScriptDebugger::WebScriptDebugger): 9666 (WebScriptDebugger::sourceParsed): 9667 * WebScriptDebugger.h: Added. 9668 * WebScriptScope.cpp: Make this class use createInstance which is more 9669 in line with our guidelines. 9670 (WebScriptScope::WebScriptScope): 9671 (WebScriptScope::createInstance): 9672 * WebScriptScope.h: 9673 9674 9675 2007-11-07 Darin Adler <darin (a] apple.com> 9676 9677 Reviewed by Steve. 9678 9679 * Interfaces/IWebUIDelegate.idl: Added the functions needed below. 9680 * WebChromeClient.cpp: 9681 (WebChromeClient::setMenubarVisible): Eliminated the notImplemented() 9682 here by calling through the UI delegate. 9683 (WebChromeClient::menubarVisible): Ditto. 9684 (WebChromeClient::runDatabaseSizeLimitPrompt): Ditto. 9685 9686 2007-11-07 Steve Falkenburg <sfalken (a] apple.com> 9687 9688 Added IWebDocumentText available via QI from WebFrame. 9689 9690 Reviewed by Sam. 9691 9692 * WebFrame.cpp: 9693 (WebFrame::QueryInterface): Added IID_IWebDocumentText. 9694 (WebFrame::supportsTextEncoding): Stubbed out. 9695 (WebFrame::selectedString): Implemented. 9696 (WebFrame::selectAll): Stubbed out. 9697 (WebFrame::deselectAll): Stubbed out. 9698 * WebFrame.h: 9699 9700 2007-11-07 Adam Roben <aroben (a] apple.com> 9701 9702 Fix <rdar://5569268> Crash when opening any FTP site in second tab/window 9703 9704 Reviewed by Sam. 9705 9706 * WebView.cpp: 9707 (WebView::initWithFrame): Set the ftpDirectoryTemplatePath for every 9708 Page, not just the first one. 9709 9710 2007-11-06 Adam Roben <aroben (a] apple.com> 9711 9712 Change WebLocalizableStrings to take UTF-8 C strings 9713 9714 This matches the way things work on the Mac, and will allow source 9715 files containing localizable strings to be shared between Mac and 9716 Windows. The old functions have not been removed for compatibility 9717 reasons, but are now just wrappers around the new UTF-8 functions. 9718 9719 Reviewed by Ada. 9720 9721 * WebKit.vcproj/WebKit.def: Added new functions. 9722 * WebKit.vcproj/WebKit_debug.def: Ditto. 9723 * WebLocalizableStrings.cpp: 9724 (copyLocalizedStringFromBundle): Changed to take a WebCore::String 9725 representing the key. 9726 (localizedString): Refactored from WebLocalizedString. Takes a 9727 WebCore::String representing the key. 9728 (localizedLPCTSTR): Ditto for WebLocalizedLPCTSTR. 9729 (WebLocalizedStringUTF8): Added. Takes a UTF-8 C string as the key. 9730 (WebLocalizedLPCTSTRUTF8): Ditto. 9731 (WebLocalizedString): Changed to call localizedString. 9732 (WebLocalizedLPCTSTR): Changed to call localizedLPCTSTR. 9733 * WebLocalizableStrings.h: Changed macros to use the new UTF-8 9734 functions. 9735 9736 2007-11-06 Darin Adler <darin (a] apple.com> 9737 9738 Reviewed by Adam and Steve. 9739 9740 - added hooks needed to implement showModalDialog on Windows 9741 9742 * Interfaces/IWebUIDelegate.idl: Added canRunModal, createModalDialog, 9743 and runModal functions to the end of IWebUIDelegate3. 9744 9745 * WebChromeClient.h: Added uiDelegate and uiDelegate2 helper functions, 9746 so it's easier to write client functions. 9747 * WebChromeClient.cpp: 9748 (WebChromeClient::createWindow): Implemented dialog case. Calls IWebUIDelegate3. 9749 (WebChromeClient::canRunModal): Implemented. Calls IWebUIDelegate3. 9750 (WebChromeClient::runModal): Ditto. 9751 (WebChromeClient::uiDelegate): Added. 9752 (WebChromeClient::uiDelegate2): Added. 9753 (WebChromeClient::uiDelegate3): Added. 9754 9755 2007-11-06 Alexey Proskuryakov <ap (a] webkit.org> 9756 9757 Rubber-stamped by Adam Roben. 9758 9759 Windows build fix. 9760 9761 * WebFrame.cpp: 9762 (WebFrame::string): plainText() returns a String now. 9763 9764 2007-11-05 Ada Chan <adachan (a] apple.com> 9765 9766 <rdar://problem/5579772> Regression: AltGr does not work 9767 Testing whether alt-key is down is not the right test for system key event. 9768 Added a m_isSystemKey flag in PlatformKeyboardEvent to keep track of whether 9769 this is a system key event, check that flag instead in handleEditingKeyboardEvent(). 9770 9771 Reviewed by Oliver. 9772 9773 * WebView.cpp: 9774 (WebView::keyUp): 9775 (WebView::handleEditingKeyboardEvent): 9776 (WebView::keyDown): 9777 (WebViewWndProc): 9778 * WebView.h: 9779 9780 2007-11-05 Ada Chan <adachan (a] apple.com> 9781 9782 Build fix. 9783 9784 Reviewed by Tristan. 9785 9786 * WebChromeClient.h: 9787 9788 2007-11-05 Tristan O'Tierney <tristan (a] apple.com> 9789 9790 Reviewed by Darin Adler. 9791 9792 Part of the WebKit/WebCore API changes for 9793 <rdar://problem/5368188> 9794 9795 * WebChromeClient.cpp: 9796 (WebChromeClient::createWindow): 9797 Removed usage of createModalDialog and revised to use new createWindow 9798 ChromeClient API. 9799 9800 2007-11-04 Adam Roben <aroben (a] apple.com> 9801 9802 Add IWebCache::disabled 9803 9804 This matches the Mac WebCache class. 9805 9806 Reviewed by Sam. 9807 9808 * Interfaces/IWebCache.idl: 9809 * WebCache.cpp: 9810 (WebCache::disabled): 9811 * WebCache.h: 9812 9813 2007-11-04 Adam Roben <aroben (a] apple.com> 9814 9815 Add IWebInspector and a way to get one from a WebView 9816 9817 This API matches the Mac one added in r27266. 9818 9819 Reviewed by Sam. 9820 9821 * Interfaces/IWebInspector.idl: Added. 9822 * Interfaces/IWebViewPrivate.idl: Added a new inspector method to 9823 match Mac. 9824 * WebInspector.cpp: Added. 9825 (WebInspector::createInstance): 9826 (WebInspector::WebInspector): 9827 (WebInspector::~WebInspector): 9828 (WebInspector::webViewClosed): 9829 (WebInspector::QueryInterface): 9830 (WebInspector::AddRef): 9831 (WebInspector::Release): 9832 (WebInspector::show): 9833 (WebInspector::showConsole): 9834 (WebInspector::showTimeline): 9835 (WebInspector::close): 9836 (WebInspector::attach): 9837 (WebInspector::detach): 9838 * WebInspector.h: Added. 9839 * WebKit.vcproj/Interfaces.vcproj: Added IWebInspector.idl. 9840 * WebKit.vcproj/WebKit.vcproj: Added WebInspector.{cpp,h}. 9841 * WebKit.vcproj/WebKitGUID.vcproj: Added IWebInspector_i.c. 9842 * WebView.cpp: 9843 (WebView::close): Notify the WebInspector that we're closing. 9844 (WebView::inspector): Added. 9845 * WebView.h: 9846 9847 2007-11-04 Adam Roben <aroben (a] apple.com> 9848 9849 Cache strings that come directly from WebLocalizedString 9850 9851 Reviewed by Steve. 9852 9853 * WebLocalizableStrings.cpp: 9854 (copyLocalizedStringFromBundle): This used to be WebLocalizedString, 9855 but is now just a static helper function. 9856 (findCachedStringInMap): Added static helper. 9857 (findCachedString): Refactored and cleaned up code from 9858 WebLocalizedLPCTSTR. 9859 (cacheString): Ditto. 9860 (WebLocalizedString): Rewrote to use the new helper functions. 9861 (WebLocalizedLPCTSTR): Changed to use the new helper functions. 9862 9863 2007-11-03 Adam Roben <aroben (a] apple.com> 9864 9865 Only override the default user agent string if we're actually given a custom one 9866 9867 Reviewed by Sam. 9868 9869 * WebView.cpp: 9870 (WebView::setCustomUserAgent): 9871 9872 2007-11-01 Oliver Hunt <oliver (a] apple.com> 9873 9874 Reviewed by Alexey. 9875 9876 Allow Shift, Ctrl, Alt, Meta and Capslock keys to be sent into WebCore. 9877 9878 * WebView.cpp: 9879 (WebView::keyDown): 9880 (WebView::keyUp): 9881 9882 2007-11-01 Kevin McCullough <kmccullough (a] apple.com> 9883 9884 - Fixed a build failure 9885 9886 * WebEditorClient.cpp: 9887 (WebEditorClient::textWillBeDeletedInTextField): 9888 9889 2007-11-01 Adam Roben <aroben (a] apple.com> 9890 9891 Fix the parameter type of WebLocalizedString to match the UI_STRING macro 9892 9893 Reviewed by Sam. 9894 9895 * WebLocalizableStrings.cpp: 9896 (WebLocalizedString): 9897 (WebLocalizedLPCTSTR): 9898 * WebLocalizableStrings.h: 9899 9900 2007-11-01 Alexey Proskuryakov <ap (a] webkit.org> 9901 9902 Rubber-stamped by Adam Roben. 9903 9904 Rolled out r27326 - debug CRT seems to cause no problems after all. 9905 9906 * WebKit.vcproj/WebKit.vcproj: 9907 9908 2007-10-31 Adam Roben <aroben (a] apple.com> 9909 9910 Switch the Debug configuration to using the non-debug CRT 9911 9912 The debug CRT conflicts with what Safari uses, which causes loading 9913 problems. 9914 9915 Reviewed by Steve. 9916 9917 * WebKit.vcproj/WebKit.vcproj: 9918 9919 2007-10-30 Kevin McCullough <kmccullough (a] apple.com> 9920 9921 Reviewed by Adam and Geoff. 9922 9923 - Added the globalContext method so Drosera can ask a WebFrame for its 9924 context. 9925 9926 * Interfaces/IWebFrame.idl: 9927 * WebFrame.cpp: 9928 * WebFrame.h: 9929 9930 2007-10-30 Adele Peterson <adele (a] apple.com> 9931 9932 Reviewed by Darin Adler. 9933 9934 WebKitWin part of fix for http://bugs.webkit.org/show_bug.cgi?id=10577 9935 <rdar://problem/5110427> REGRESSION: Caps lock icon should show in password fields 9936 9937 * WebView.cpp: (WebView::keyDown): Call capsLockStateMayHaveChanged so WebCore knows it may have to update a password field. 9938 9939 2007-10-29 Kevin McCullough <kmccullough (a] apple.com> 9940 9941 Reviewed by Adam and Maciej. 9942 9943 - Added the IWebScriptScope interface which is used by Drosera to get 9944 information and run contextually significant code with respect to the 9945 current JS stack frame. 9946 9947 * Interfaces/IWebScriptCallFrame.idl: Line endings changed, not sure why 9948 but the real changes were to change the return type of scopeChain() and 9949 the return type and name of evaluateWebScript() to 9950 stringByEvaluatingJavaScriptFromString(). 9951 * Interfaces/IWebScriptScope.idl: Added. 9952 * WebKit.vcproj/Interfaces.vcproj: Added the new interface. 9953 * WebKit.vcproj/WebKit.vcproj: Added the files for the new class. 9954 * WebKit.vcproj/WebKitGUID.vcproj: Added the new interfaces. 9955 * WebScriptCallFrame.cpp: Changed the return type to E_NOTIMPL and 9956 asserted so it would be obvious if I accidentally try to use one of 9957 these functions before it's implemented. 9958 (WebScriptCallFrame::caller): 9959 (WebScriptCallFrame::scopeChain): 9960 (WebScriptCallFrame::functionName): 9961 (WebScriptCallFrame::stringByEvaluatingJavaScriptFromString): 9962 * WebScriptCallFrame.h: Changed the return types mentioned above. 9963 * WebScriptDebugServer.cpp: Also changed the return type to E_NOTIMPL. 9964 (WebScriptDebugServer::addListener): 9965 (WebScriptDebugServer::removeListener): 9966 (WebScriptDebugServer::step): 9967 (WebScriptDebugServer::pause): 9968 (WebScriptDebugServer::resume): 9969 (WebScriptDebugServer::isPaused): 9970 * WebScriptScope.cpp: Added. 9971 (WebScriptScope::WebScriptScope): 9972 (WebScriptScope::~WebScriptScope): 9973 (WebScriptScope::QueryInterface): 9974 (WebScriptScope::AddRef): 9975 (WebScriptScope::Release): 9976 (WebScriptScope::getVariableNames): 9977 (WebScriptScope::getValueForVariable): 9978 * WebScriptScope.h: Added. 9979 9980 2007-10-28 Darin Adler <darin (a] apple.com> 9981 9982 - try to fix Windows build 9983 9984 * WebKit.vcproj/WebKit.vcproj: Suppress warning 4800 (conversion to bool), 9985 since we don't want to add !! everywhere, and because HashTable.h has a 9986 conversion to bool of this type now. 9987 9988 2007-10-27 Kevin McCullough <kmccullough (a] apple.com> 9989 9990 Reviewed by Adam. 9991 9992 - Stubbed out IWebScriptCallFrame for Drosera. 9993 9994 * Interfaces/IWebScriptCallFrame.idl: Added function declarations. 9995 * WebKit.vcproj/WebKit.vcproj: Added .h/.cpp files to the project. 9996 * WebScriptCallFrame.cpp: Added. 9997 (WebScriptCallFrame::WebScriptCallFrame): 9998 (WebScriptCallFrame::~WebScriptCallFrame): 9999 (WebScriptCallFrame::createInstance): 10000 (WebScriptCallFrame::QueryInterface): 10001 (WebScriptCallFrame::AddRef): 10002 (WebScriptCallFrame::Release): 10003 (WebScriptCallFrame::caller): 10004 (WebScriptCallFrame::scopeChain): 10005 (WebScriptCallFrame::functionName): 10006 (WebScriptCallFrame::evaluateWebScript): 10007 * WebScriptCallFrame.h: Added. 10008 10009 2007-10-26 Kevin McCullough <kmccullough (a] apple.com> 10010 10011 Reviewed by Sam and Steve. 10012 10013 - Added convenience methods for converting between BSTR and JSSTringRefs 10014 - Added WebKit_debug.def to the project. 10015 10016 * WebKit.vcproj/WebKit.def: 10017 * WebKit.vcproj/WebKit.vcproj: 10018 * WebKit.vcproj/WebKit_debug.def: 10019 10020 2007-10-25 Sam Weinig <sam (a] webkit.org> 10021 10022 Reviewed by Adam Roben. 10023 10024 Make debug builds run again. 10025 10026 * WebView.cpp: 10027 (WebView::notifyPreferencesChanged): 10028 10029 2007-10-25 Sam Weinig <sam (a] webkit.org> 10030 10031 Reviewed by Adam Roben. 10032 10033 Remove JSStringRefCFHack. 10034 10035 * WebKit.vcproj/WebKit.vcproj: 10036 10037 2007-10-25 Sam Weinig <sam (a] webkit.org> 10038 10039 Reviewed by Steve Falkenburg. 10040 10041 Fix for <rdar://problem/5463608> 10042 Port WebKit cache model code (Windows needs a big disk cache, smarter memory cache) 10043 10044 * Interfaces/IWebPreferences.idl: 10045 Deprecate pageCacheSize and objectCacheSize and add cacheModel/setCacheModel. 10046 10047 * Interfaces/IWebPreferencesPrivate.idl: 10048 Add automaticallyDetectsCacheModel/setAutomaticallyDetectsCacheModel 10049 10050 * WebFrame.cpp: 10051 (WebFrame::didPerformFirstNavigation): 10052 Implement based on the mac version. 10053 10054 * WebKit.vcproj/WebKit.vcproj: 10055 * WebKitSystemBits.cpp: Added. 10056 (WebMemorySize): Moved and renamed from WebPreferences.cpp 10057 (WebVolumeFreeSize): Added. 10058 * WebKitSystemBits.h: Added. 10059 * WebPreferenceKeysPrivate.h: Added WebKitCacheModelPreferenceKey. 10060 10061 * WebPreferences.cpp: 10062 (WebPreferences::sharedStandardPreferences): 10063 (WebPreferences::WebPreferences): 10064 (WebPreferences::initializeDefaultSettings): Added default for cacheModel. 10065 (WebPreferences::webPreferencesChangedNotification): 10066 (WebPreferences::webPreferencesRemovedNotification): 10067 (WebPreferences::initWithIdentifier): Post a preferences change notification. 10068 (WebPreferences::pageCacheSize): Deprecated. 10069 (WebPreferences::objectCacheSize): Deprecated. 10070 (WebPreferences::cacheModel): Added. 10071 (WebPreferences::setCacheModel): Added. 10072 (WebPreferences::setAutomaticallyDetectsCacheModel): Added. 10073 (WebPreferences::automaticallyDetectsCacheModel): Added. 10074 (WebPreferences::willAddToWebView): Added. 10075 (WebPreferences::didRemoveFromWebView): Added. 10076 * WebPreferences.h: 10077 10078 * WebView.cpp: 10079 (PreferencesChangedOrRemovedObserver::PreferencesChangedOrRemovedObserver): 10080 (PreferencesChangedOrRemovedObserver::~PreferencesChangedOrRemovedObserver): 10081 (PreferencesChangedOrRemovedObserver::QueryInterface): 10082 (PreferencesChangedOrRemovedObserver::AddRef): 10083 (PreferencesChangedOrRemovedObserver::Release): 10084 (PreferencesChangedOrRemovedObserver::sharedInstance): 10085 (PreferencesChangedOrRemovedObserver::onNotify): 10086 (PreferencesChangedOrRemovedObserver::notifyPreferencesChanged): 10087 (PreferencesChangedOrRemovedObserver::notifyPreferencesRemoved): 10088 This singleton class updates static properties for all webviews when 10089 preferenceChange or preferenceRemoved notifications are fired for 10090 any WebPreference. 10091 (WebView::WebView): 10092 (WebView::~WebView): 10093 (initializeStaticObservers): 10094 (allWebViewsSet): 10095 (WebView::addToAllWebViewsSet): 10096 (WebView::removeFromAllWebViewsSet): 10097 (WebView::setCacheModel): 10098 (WebView::cacheModel): 10099 (WebView::didSetCacheModel): 10100 (WebView::maxCacheModelInAnyInstance): 10101 (WebView::close): 10102 (WebViewWndProc): 10103 (WebView::developerExtrasEnabled): 10104 (WebView::initWithFrame): 10105 (WebView::setPreferences): 10106 (WebView::preferences): 10107 (WebView::onNotify): 10108 (WebView::notifyPreferencesChanged): 10109 (updateSharedSettingsFromPreferencesIfNeeded): 10110 * WebView.h: 10111 Match the macs behavior by using explicit postings of notifications to 10112 update the preferences. 10113 10114 2007-10-25 Adam Roben <aroben (a] apple.com> 10115 10116 Update WebKit.sln for the removal of Release dftables 10117 10118 * WebKit.vcproj/WebKit.sln: 10119 10120 2007-10-25 Kevin McCullough <kmccullough (a] apple.com> 10121 10122 Rubber stamped by Geoff. 10123 10124 - Stubbed out the WebScriptDebugServer methods to give Drosera something 10125 to connect to and now the signature of the interface matches the mac. 10126 10127 * Interfaces/IWebScriptDebugServer.idl: 10128 * WebScriptDebugServer.cpp: 10129 (WebScriptDebugServer::addListener): 10130 (WebScriptDebugServer::removeListener): 10131 (WebScriptDebugServer::step): 10132 (WebScriptDebugServer::pause): 10133 (WebScriptDebugServer::resume): 10134 (WebScriptDebugServer::isPaused): 10135 * WebScriptDebugServer.h: 10136 10137 2007-10-24 Kevin McCullough <kmccullough (a] apple.com> 10138 10139 Reviewed by Darin Adler. 10140 10141 - Renamed WebDebugProgram to WebScriptDebugServer to match the naming 10142 scheme on the mac. 10143 10144 * Interfaces/IWebDebugProgram.idl: Removed. 10145 * Interfaces/IWebScriptDebugServer.idl: Copied from win/Interfaces/IWebDebugProgram.idl. 10146 * Interfaces/WebKit.idl: 10147 * WebDebugProgram.cpp: Removed. 10148 * WebDebugProgram.h: Removed. 10149 * WebKit.vcproj/Interfaces.vcproj: 10150 * WebKit.vcproj/WebKit.vcproj: 10151 * WebKit.vcproj/WebKitGUID.vcproj: 10152 * WebKitClassFactory.cpp: 10153 (WebKitClassFactory::CreateInstance): 10154 * WebKitDLL.cpp: 10155 (RunAsLocalServer): 10156 * WebScriptDebugServer.cpp: Copied from win/WebDebugProgram.cpp. 10157 (WebScriptDebugServer::WebScriptDebugServer): 10158 (WebScriptDebugServer::~WebScriptDebugServer): 10159 (WebScriptDebugServer::createInstance): 10160 (WebScriptDebugServer::QueryInterface): 10161 (WebScriptDebugServer::AddRef): 10162 (WebScriptDebugServer::Release): 10163 (WebScriptDebugServer::viewAdded): 10164 (WebScriptDebugServer::viewRemoved): 10165 (WebScriptDebugServer::attach): 10166 (WebScriptDebugServer::detach): 10167 (WebScriptDebugServer::statistics): 10168 (WebScriptDebugServer::webViews): 10169 * WebScriptDebugServer.h: Copied from win/WebDebugProgram.h. 10170 * WebView.cpp: 10171 (WebView::WebView): 10172 (WebView::~WebView): 10173 10174 2007-10-24 Adam Roben <aroben (a] apple.com> 10175 10176 Fix <rdar://5549919> Initialize the font database before any font code is invoked 10177 10178 We initialize the database in two places: 10179 1. When instantiating WebKitClassFactory, which is guaranteed to 10180 happen before any WebView is instantiated. 10181 2. When making a WebCore::Font in WebKitGraphics. 10182 10183 This ensures that the font database will be populated before any font 10184 code is invoked. We rely on WebCore to only populate the database 10185 once. 10186 10187 Reviewed by Ada. 10188 10189 * WebKitClassFactory.cpp: 10190 (WebKitClassFactory::WebKitClassFactory): Populate the font database. 10191 * WebKitGraphics.cpp: 10192 (makeFont): Ditto. 10193 10194 2007-10-24 Adam Roben <aroben (a] apple.com> 10195 10196 Add [I]WebTextRenderer 10197 10198 Right now this class can only be used to add private fonts for use by 10199 the running process, but will eventually be the home of the 10200 WebKitGraphics functions. 10201 10202 Reviewed by Ada. 10203 10204 * ForEachCoClass.h: Added WebTextRenderer. 10205 * Interfaces/WebKit.idl: Ditto. 10206 * WebKit.vcproj/Interfaces.vcproj: Ditto. 10207 * WebKit.vcproj/WebKit.vcproj: Ditto. 10208 * WebKit.vcproj/WebKitGUID.vcproj: Ditto. 10209 * WebKitClassFactory.cpp: Ditto. 10210 * WebTextRenderer.cpp: Added. 10211 (WebTextRenderer::createInstance): 10212 (WebTextRenderer::WebTextRenderer): 10213 (WebTextRenderer::~WebTextRenderer): 10214 (WebTextRenderer::QueryInterface): 10215 (WebTextRenderer::AddRef): 10216 (WebTextRenderer::Release): 10217 (WebTextRenderer::registerPrivateFont): 10218 * WebTextRenderer.h: Added. 10219 10220 2007-10-24 Adam Roben <aroben (a] apple.com> 10221 10222 Use FOR_EACH_COCLASS in WebKitClassFactory 10223 10224 Reviewed by Ada. 10225 10226 * WebError.cpp: 10227 (WebError::createInstance): Added an overload that takes no arguments 10228 to make the macro used in WebKitClassFactory work. 10229 * WebError.h: 10230 * WebKitClassFactory.cpp: 10231 (WebKitClassFactory::CreateInstance): Use FOR_EACH_COCLASS. 10232 10233 2007-10-24 Adam Roben <aroben (a] apple.com> 10234 10235 Put FOR_EACH_COCLASS macro into its own file and export it 10236 10237 The macro used to be called FOR_EACH_CLASS and lived in WebKitDLL.cpp. 10238 This way we will be able to use the macro in more places that care 10239 about all WebKit's COM classes. 10240 10241 Reviewed by Ada. 10242 10243 * ForEachCoClass.h: Added. 10244 * WebKit.vcproj/WebKit.vcproj: Copy ForEachCoClass.h to 10245 WebKitOutputDir, and added it to the project. 10246 * WebKitDLL.cpp: Updated for macro rename, and changed to #undef the 10247 macros we pass to FOR_EACH_COCLASS after we're done with them. 10248 10249 2007-10-24 Ada Chan <adachan (a] apple.com> 10250 10251 <rdar://problem/5552221> REGRESSION(310A24-ToT): Shortcut key disable. (15604) 10252 10253 Reviewed by Adam. 10254 10255 * WebView.cpp: 10256 (WebView::handleEditingKeyboardEvent): don't handle system key events as text input 10257 (WebView::keyDown): only remove WM_SYSCHAR message from the queue if we handle it. 10258 For WM_SYSCHAR message that we don't handle, let it stay in the queue and return 10259 false to let windows handle it. 10260 10261 2007-10-24 Brady Eidson <beidson (a] apple.com> 10262 10263 Reviewed by Anders 10264 10265 Windows portion of <rdar://5554130> 10266 10267 Slowly introduce Windows WebKit portion of the Database API that sets the 10268 on-disk location for databases 10269 10270 * WebDatabaseManager.cpp: Added. 10271 (WebKitSetWebDatabasesPathIfNecessary): 10272 * WebDatabaseManager.h: Added. 10273 10274 * WebKit.vcproj/WebKit.vcproj: 10275 10276 * WebView.cpp: 10277 (WebView::initWithFrame): Call WebKitSetWebDatabasesPathIfNecessary() 10278 10279 2007-10-24 Kevin McCullough <kmccullough (a] apple.com> 10280 10281 Reviewed by Sam, Steve and Darin. 10282 10283 - Added stubs for what will be neede to let Drosera attach to the 10284 WebKit process and debug it. 10285 10286 * Interfaces/IWebScriptCallFrame.idl: Added. 10287 * Interfaces/IWebScriptDebugListener.idl: Added. 10288 * Interfaces/WebKit.idl: 10289 * WebKit.vcproj/Interfaces.vcproj: 10290 * WebKit.vcproj/WebKitGUID.vcproj: 10291 10292 2007-10-23 Adam Roben <aroben (a] apple.com> 10293 10294 Move safe file creation code to WebCore 10295 10296 Reviewed by Brady. 10297 10298 * WebPreferences.cpp: 10299 (preferencesPath): Made into a static helper function. 10300 (WebPreferences::save): Now calls WebCore's safeCreateFile function. 10301 (WebPreferences::load): Uses String/CString to handle the UTF-8 10302 conversion. 10303 * WebPreferences.h: Removed preferencesPath and 10304 safeCreateFileWithData. 10305 10306 2007-10-23 Adam Roben <aroben (a] apple.com> 10307 10308 Reduce code duplication by using WebCore's FileSystem functions 10309 10310 Reviewed by Brady. 10311 10312 * WebIconDatabase.cpp: Removed a now-unused function and a fixed 10313 FIXME. 10314 (WebIconDatabase::init): Changed to use FileSystem functions. 10315 * WebPreferences.cpp: 10316 (WebPreferences::preferencesPath): Ditto. 10317 10318 2007-10-23 Sam Weinig <sam (a] webkit.org> 10319 10320 Make the WebNotificationCenter work with null (wildcard) and specific 10321 observed objects, matching NSNotificationCenter. 10322 10323 - Removes the ObserverKey, ObserverHash, and ObserverKeyTraits as we now 10324 hash against the notification name only and check the object on notification 10325 posting. 10326 - Use OwnPtr for the WebNotificationCenterPrivate member variable. 10327 10328 Reviewed by Adam Roben. 10329 10330 * WebNotificationCenter.cpp: 10331 (WebNotificationCenter::WebNotificationCenter): 10332 (WebNotificationCenter::~WebNotificationCenter): 10333 (WebNotificationCenter::postNotificationInternal): 10334 (WebNotificationCenter::addObserver): 10335 (WebNotificationCenter::postNotification): 10336 (WebNotificationCenter::postNotificationName): 10337 (WebNotificationCenter::removeObserver): 10338 * WebNotificationCenter.h: 10339 10340 2007-10-23 Ada Chan <adachan (a] apple.com> 10341 10342 <rdar://problem/5244261> SafariWin ignores cookie policy setting "never" in the preferences 10343 Custom WebPreferences (not the shared WebPreferences) could override the cookie accept 10344 policy setting on the default cookie storage. To fix that, I added a new method in 10345 WebView called updateGlobalSettingsFromPreferences() to handle updating the global pref 10346 options such as cookie accept policy, and it's only called to update changes from 10347 the shared WebPreferences. 10348 10349 Use CLSID_WebPreferences and remove IID_WebPreferences. 10350 10351 Reviewed by Darin and Adam. 10352 10353 * WebPreferences.cpp: 10354 (WebPreferences::QueryInterface): 10355 * WebPreferences.h: 10356 * WebView.cpp: 10357 (WebView::updateWebCoreSettingsFromPreferences): 10358 (WebView::updateGlobalSettingsFromPreferences): 10359 (WebView::updateSettingsFromPreferences): 10360 (WebView::developerExtrasEnabled): 10361 (WebView::initWithFrame): 10362 (WebView::onNotify): 10363 * WebView.h: 10364 10365 2007-10-18 Brady Eidson <beidson (a] apple.com> 10366 10367 Reviewed by Anders 10368 10369 Keep windows building with new Chrome additions 10370 10371 * WebChromeClient.cpp: 10372 * WebChromeClient.h: 10373 10374 2007-10-18 Adam Roben <aroben (a] apple.com> 10375 10376 Fix <rdar://5547784> ProgIDMacros.h should explicitly use wide strings 10377 10378 Reviewed by Adele. 10379 10380 * ProgIDMacros.h: Always use wide strings instead of relying on the 10381 TEXT macro. 10382 10383 2007-10-17 Adam Roben <aroben (a] apple.com> 10384 10385 Fix for clean builds needed after r26683 10386 10387 * WebView.cpp: Remove #include of non-existant file. 10388 10389 2007-10-17 Anders Carlsson <andersca (a] apple.com> 10390 10391 Update for locking primitive changes. 10392 10393 * WebIconDatabase.cpp: 10394 (WebIconDatabase::scheduleNotificationDelivery): 10395 10396 2007-10-16 Adam Roben <aroben (a] apple.com> 10397 10398 Remove WebKitInitializer 10399 10400 Reviewed by Sam. 10401 10402 * WebKit.vcproj/WebKit.sln: 10403 10404 2007-10-16 Adam Roben <aroben (a] apple.com> 10405 10406 Add FindSafari 10407 10408 Reviewed by Darin Adler. 10409 10410 * WebKit.vcproj/WebKit.sln: 10411 10412 2007-10-16 Adam Roben <aroben (a] apple.com> 10413 10414 Rename WebKit_debug.dll to WebKit.dll for the Debug configuration 10415 10416 This is needed so that we can stop having Safari delay-load WebKit, 10417 which in turn is needed so that Maciej can land a JavaScript speedup 10418 which breaks delay-loading. 10419 10420 Reviewed by Kevin McCullough. 10421 10422 * WebKit.vcproj/WebKit.vcproj: Use WebKitDLLConfigSuffix for the name 10423 of our DLL and module definition file. 10424 * WebKit.vcproj/debug.vsprops: Added WebKitDLLConfigSuffix. 10425 * WebKit.vcproj/debug_internal.vsprops: Ditto. 10426 * WebKit.vcproj/release.vsprops: Ditto. 10427 10428 2007-10-15 Jon Honeycutt <jhoneycutt (a] apple.com> 10429 10430 Reviewed by Ollie. 10431 10432 <rdar://5530789>: REGRESSION(303-310A19): Crash opening .wma files with 10433 MediaPlayer for the first time 10434 10435 Failure to setup the stream in PluginView::didReceiveResponse will lead, 10436 in a full-page plugin, to the main document load being cancelled. This 10437 is the case with at least two versions of Windows Media Player, which 10438 cancels the stream and brings up its own "Welcome to Windows Media 10439 Player" dialog. 10440 10441 As part of the main document load cancellation, m_pluginView is set to 10442 null, and the crash came from dereferencing this pointer. This patch 10443 adds a null check. 10444 10445 * WebFrame.cpp: 10446 (WebFrame::finishedLoading): Fix some typos 10447 (WebFrame::committedLoad): Added a null check 10448 10449 2007-10-15 Alice Liu <alice.liu (a] apple.com> 10450 10451 Reviewed by Sam Weinig. 10452 10453 Fixed <rdar://5382546> layoutTestController.setCustomPolicyDelegate is unimplemented causing tests to fail 10454 10455 * DefaultPolicyDelegate.cpp: Added. 10456 Implementation is a direct port of WebKit/DefaultDelegates/WebDefaultPolicyDelegate.m 10457 (DefaultPolicyDelegate::DefaultPolicyDelegate): 10458 (DefaultPolicyDelegate::~DefaultPolicyDelegate): 10459 (DefaultPolicyDelegate::sharedInstance): 10460 (DefaultPolicyDelegate::createInstance): 10461 (DefaultPolicyDelegate::QueryInterface): 10462 (DefaultPolicyDelegate::AddRef): 10463 (DefaultPolicyDelegate::Release): 10464 (DefaultPolicyDelegate::decidePolicyForNavigationAction): 10465 (DefaultPolicyDelegate::decidePolicyForNewWindowAction): 10466 (DefaultPolicyDelegate::decidePolicyForMIMEType): 10467 (DefaultPolicyDelegate::unableToImplementPolicyWithError): 10468 * DefaultPolicyDelegate.h: Added. 10469 * WebFrame.cpp: 10470 (WebFrame::dispatchDecidePolicyForNavigationAction): 10471 Implemented default action 10472 * WebKit.vcproj/WebKit.vcproj: 10473 Adding files to project 10474 10475 2007-10-12 Steve Falkenburg <sfalken (a] apple.com> 10476 10477 Move pthreads up in the linker order and don't mark it for delay load. 10478 Fixes crash during regsvr32 of WebKit (currently repro if you do a spade ti). 10479 10480 Reviewed by Darin, Ada. 10481 10482 * WebKit.vcproj/WebKit.vcproj: 10483 10484 2007-10-11 Steve Falkenburg <sfalken (a] apple.com> 10485 10486 Delay load additional libraries to improve startup time. 10487 10488 Reviewed by Darin, Ada. 10489 10490 * WebKit.vcproj/WebKit.vcproj: 10491 10492 2007-10-11 Ada Chan <adachan (a] apple.com> 10493 10494 <rdar://problem/5534421> 10495 Switched to using wkGetDefaultHTTPCookieStorage() to avoid recreating CFHTTPCookieStorageRef. 10496 Removed usage of ResourceHandle::cookieStorage(). 10497 10498 Reviewed by Oliver. 10499 10500 * WebView.cpp: 10501 (WebView::updateWebCoreSettingsFromPreferences): 10502 (WebView::initWithFrame): 10503 10504 2007-10-10 Alice Liu <alice.liu (a] apple.com> 10505 10506 Reviewed by Geoff Garen. 10507 10508 Fixed <rdar://5464402> Crash when running fast/frames/onload-remove-iframe-crash.html in DRT 10509 10510 * WebFrame.cpp: 10511 (WebFrame::createFrame): 10512 The crash was caused by the early destruction of the subframe. To resolve this issue, 10513 the manual deref of the child frame that occurs in between being appended to the 10514 frametree and being used in loadURLIntoChild wasn't exactly incorrect, but just needed 10515 to be moved until after loadURLIntoChild. This hasn't been a problem for other uses of 10516 child frames because this test case involves removing a child frame immediately after 10517 loading it, all in an onload handler. Even better than just moving the deref would be 10518 to change the signature of createFrame to use a RefPtr<Frame> so that a manual deref isn't 10519 necessary. This is what was done in this patch. 10520 * WebFrame.h: 10521 createFrame() now returns a RefPtr instead of a raw Frame pointer. 10522 Making this change improves the way we handle frames on Windows WebKit. 10523 10524 10525 2007-10-05 Ada Chan <adachan (a] apple.com> 10526 10527 <rdar://problem/5436617> 10528 Implement WebIconDatabase::delayDatabaseCleanup() and WebIconDatabase::allowDatabaseCleanup(). 10529 10530 Reviewed by Brady. 10531 10532 * WebIconDatabase.cpp: 10533 (WebIconDatabase::delayDatabaseCleanup): 10534 (WebIconDatabase::allowDatabaseCleanup): 10535 10536 2007-10-04 Adele Peterson <adele (a] apple.com> 10537 10538 * Interfaces/IWebViewPrivate.idl: Moving setInitialFocus down to the end to avoid breaking the OpenSource build. 10539 10540 2007-10-04 Adele Peterson <adele (a] apple.com> 10541 10542 Reviewed by Darin Adler. 10543 10544 WebKit/win part of fix for <rdar://problem/5369017> REGRESSION: Can't tab to webview that doesn't have editable content 10545 10546 * WebView.cpp: Added setInitialFocus so the application can specify that its handing off focus to WebKit 10547 and so that it can specify the focus direction. 10548 * WebView.h: ditto. 10549 * Interfaces/IWebViewPrivate.idl: ditto. 10550 10551 2007-10-03 Ada Chan <adachan (a] apple.com> 10552 10553 <rdar://problem/5521230> Implement IWebIconDatabase::iconURLForURL in WebKit for windows 10554 10555 Reviewed by Steve and Brady. 10556 10557 * Interfaces/IWebIconDatabase.idl: 10558 * WebIconDatabase.cpp: 10559 (WebIconDatabase::iconURLForURL): 10560 * WebIconDatabase.h: 10561 10562 2007-10-02 Sam Weinig <sam (a] webkit.org> 10563 10564 Rubber-stamped by Adam Roben. 10565 10566 * Interfaces/IWebPreferences.idl: Remove unnecessary comments. 10567 10568 2007-10-02 Darin Adler <darin (a] apple.com> 10569 10570 Reviewed by Adam. 10571 10572 - started using the new OwnPtr everywhere we do DeleteObject 10573 10574 * WebNodeHighlight.cpp: 10575 (WebNodeHighlight::updateWindow): 10576 * WebView.cpp: 10577 (WebView::WebView): 10578 (WebView::deleteBackingStore): 10579 (WebView::ensureBackingStore): 10580 (WebView::addToDirtyRegion): 10581 (WebView::scrollBackingStore): 10582 (WebView::updateBackingStore): 10583 (WebView::paint): 10584 (WebView::paintIntoBackingStore): 10585 (WebView::paintIntoWindow): 10586 * WebView.h: 10587 10588 2007-10-02 Adam Roben <aroben (a] apple.com> 10589 10590 Fix <rdar://5505062> WebKit's version-independent ProgIDs contain version numbers 10591 10592 I also added a few registry keys for our version-independent ProgIDs 10593 that we were missing. 10594 10595 Reviewed by Steve. 10596 10597 * ProgIDMacros.h: Added new macros to get version-independent ProgIDs. 10598 * WebKitDLL.cpp: Use the version-independent ProgIDs in the right 10599 places, and added some new keys for version-independent ProgIDs. 10600 10601 2007-10-02 Anders Carlsson <andersca (a] apple.com> 10602 10603 Reviewed by Adam. 10604 10605 Fix a bug discovered by app verifier where we would treat an LPCTSTR as a BSTR causing a crash. 10606 10607 Also rename some protection space constants and change their values to match the mac version. 10608 10609 * Interfaces/IWebURLAuthenticationChallenge.idl: 10610 * WebURLProtectionSpace.cpp: 10611 (WebURLProtectionSpace::initWithHost): 10612 (WebURLProtectionSpace::initWithProxyHost): 10613 (WebURLProtectionSpace::protocol): 10614 (WebURLProtectionSpace::proxyType): 10615 10616 2007-09-29 Adam Roben <aroben (a] apple.com> 10617 10618 Clean-up in preparation for <rdar://5505062> WebKit's version-independent ProgIDs contain version numbers 10619 10620 Reviewed by Steve. 10621 10622 * ProgIDMacros.h: Stringify the passed in class name. 10623 * WebKitDLL.cpp: Added a FOR_EACH_CLASS macro to ensure that our class 10624 lists stay in the right order, and updated uses of the *_PROGID macros 10625 for to take the stringification into account. 10626 10627 2007-09-27 Kevin McCullough <kmccullough (a] apple.com> 10628 10629 Reviewed by Darin Adler. 10630 10631 - <rdar://5261371> Nothing downloaded when exporting bookmarks from iGoogle web history 10632 - Implemented IWebHTTPURLResponse::allHeaderFields so that if the content disposition is "attachment" we will download the file instead of display it. Also implemented some missing functionality. 10633 10634 * HTTPHeaderPropertyBag.cpp: Added. 10635 (HTTPHeaderPropertyBag::HTTPHeaderPropertyBag): 10636 (HTTPHeaderPropertyBag::createInstance): 10637 (HTTPHeaderPropertyBag::setResponse): 10638 (HTTPHeaderPropertyBag::response): 10639 (HTTPHeaderPropertyBag::QueryInterface): 10640 (HTTPHeaderPropertyBag::AddRef): 10641 (HTTPHeaderPropertyBag::Release): 10642 (ConvertFromLPCOLESTR): 10643 (ConvertToVariant): 10644 (ConvertFromVariant): 10645 (HTTPHeaderPropertyBag::Read): 10646 (HTTPHeaderPropertyBag::Write): 10647 * HTTPHeaderPropertyBag.h: Added. 10648 * Interfaces/IWebHTTPURLResponse.idl: 10649 * WebKit.vcproj/WebKit.vcproj: 10650 * WebURLResponse.cpp: 10651 (WebURLResponse::allHeaderFields): 10652 (WebURLResponse::isAttachment): 10653 * WebURLResponse.h: 10654 10655 2007-09-27 Ada Chan <adachan (a] apple.com> 10656 10657 <rdar://problem/5507481> Added a delegate method to inform the client 10658 app that WebView has painted. 10659 10660 Reviewed by Steve. 10661 10662 * Interfaces/IWebUIDelegatePrivate.idl: 10663 * WebView.cpp: 10664 (WebView::updateBackingStore): 10665 10666 2007-09-25 Adam Roben <aroben (a] apple.com> 10667 10668 Add WebKitInitializer to WebKit.sln 10669 10670 Reviewed by Sam. 10671 10672 * WebKit.vcproj/WebKit.sln: DumpRenderTree and testkjs now depend on 10673 WebKitInitializer. 10674 10675 2007-09-25 Darin Adler <darin (a] apple.com> 10676 10677 Reviewed by Steve. 10678 10679 - fix <rdar://problem/5095701> Download requring HTTP auth fails 10680 (progress bar forever) 10681 10682 The functions in WebDownload relating to authentication challenges needed 10683 to be implemented. 10684 10685 * WebDownload.cpp: 10686 (WebDownload::cancelAuthenticationChallenge): Implement. 10687 (WebDownload::continueWithoutCredentialForAuthenticationChallenge): Ditto. 10688 (WebDownload::useCredential): Ditto. 10689 (WebDownload::willSendRequest): Fix storage leak by adopting request 10690 and response after creating them. Also retain the result before returning 10691 it, since that's the API contract with CFNetwork. 10692 (WebDownload::didReceiveAuthenticationChallenge): Implement. 10693 (WebDownload::didReceiveResponse): Fix storage leak by adopting response. 10694 (WebDownload::willResumeWithResponse): Ditto. 10695 (WebDownload::didFail): Ditto. 10696 10697 * WebURLAuthenticationChallenge.h: Get rid of the IID #define, 10698 instead using __declspec(uuid). Added a sender parameter to the 10699 create function and an m_sender data member. 10700 * WebURLAuthenticationChallenge.cpp: 10701 (WebURLAuthenticationChallenge::WebURLAuthenticationChallenge): Added an 10702 explicit sender parameter so this can be used with a WebDownload, which 10703 does not involve a ResourceHandle. Later we should clean this up and not 10704 involve WebCore or ResourceHandle directly even for the non-download case. 10705 (WebURLAuthenticationChallenge::createInstance): Added an overload for the 10706 case with an explicit sender parameter. 10707 (WebURLAuthenticationChallenge::QueryInterface): Use __uuidof for the ID 10708 of this class. In general, we should move to __uuidof as much as possible 10709 and keep the separate macros to a minimum -- but we should do this for all 10710 uses of each class at one time to make sure we don't run into problems 10711 with two different UUIDs for the same class. This patch does it for three 10712 classes. 10713 (WebURLAuthenticationChallenge::initWithProtectionSpace): Use the query 10714 constructor instead of an explicit QueryInterface for WebURLCredential. 10715 This is another class where I'm switching from CLSID/IID macros to the 10716 use of __uuidof, but in this case the use of __uuidof is implicit. 10717 (WebURLAuthenticationChallenge::initWithAuthenticationChallenge): Ditto, 10718 but for WebURLAuthenticationChallenge and WebURLAuthenticationChallengeSender. 10719 (WebURLAuthenticationChallenge::sender): Use the new m_sender member to 10720 cache the sender object and also use the one that was passed into the 10721 constructor, if any. 10722 10723 * WebURLAuthenticationChallengeSender.h: Get rid of the IID #define, 10724 instead using __declspec(uuid). Also minimize includes and make data 10725 members private instead of protected. 10726 * WebURLAuthenticationChallengeSender.cpp: 10727 (WebURLAuthenticationChallengeSender::QueryInterface): Use __uuidof instead 10728 of IID macro. 10729 (WebURLAuthenticationChallengeSender::cancelAuthenticationChallenge): 10730 Use query constructor instead of QueryInterface. 10731 (WebURLAuthenticationChallengeSender::continueWithoutCredentialForAuthenticationChallenge): 10732 Ditto. 10733 (WebURLAuthenticationChallengeSender::useCredential): Ditto. 10734 10735 * WebURLCredential.cpp: (WebURLCredential::QueryInterface): Use __uuidof 10736 instead of CLSID_WebURLCredential. 10737 10738 - tangentially-related cleanup 10739 10740 * WebFrame.cpp: 10741 (WebFrame::dispatchDidReceiveAuthenticationChallenge): Use the adopt 10742 constructor instead of a separate adoptRef call. 10743 (WebFrame::dispatchDidCancelAuthenticationChallenge): Ditto. 10744 10745 2007-09-24 Brady Eidson <beidson (a] apple.com> 10746 10747 Reviewed by John Sullivan 10748 10749 Fix for <rdar://5493371> - Crash in Icon Database on Windows 10750 10751 * WebIconDatabase.cpp: 10752 (WebIconDatabase::iconForURL): If the URL is NULL, fallback to the default icon without asking WebCore 10753 10754 2007-09-24 Adam Roben <aroben (a] apple.com> 10755 10756 Fix <rdar://5499507> FrameView will always have size (0,0) if its parent WebView is never resized 10757 10758 Reviewed by Darin Adler. 10759 10760 * WebView.cpp: 10761 (WebView::initWithFrame): Set the main FrameView's size to the size of 10762 the WebView. 10763 10764 2007-09-21 Kevin McCullough <kmccullough (a] apple.com> 10765 10766 - Fixed a syntax guideline mistake. 10767 10768 * WebChromeClient.cpp: 10769 (WebChromeClient::scrollbarsVisible): 10770 10771 2007-09-20 Oliver Hunt <oliver (a] apple.com> 10772 10773 Reviewed by Steve. 10774 10775 <rdar://problem/5487153> Korean characters are displayed as garbage with default encoding in some Korean web sites 10776 10777 Adding support for per-localisation default character encodings on 10778 windows. 10779 10780 * English.lproj/Localizable.strings: 10781 * WebPreferences.cpp: 10782 (WebPreferences::initializeDefaultSettings): 10783 10784 2007-09-20 Kevin McCullough <kmccullough (a] apple.com> 10785 10786 Reviewed by Oliver. 10787 10788 - Added the ability to ask if scrollbars are visible 10789 - <rdar://problem/5496211> scrollbarsVisible in WebChromeClient is not implemented 10790 10791 * WebChromeClient.cpp: 10792 (WebChromeClient::scrollbarsVisible): 10793 10794 2007-09-20 Ada Chan <adachan (a] apple.com> 10795 10796 <rdar://problem/5477240> Regression: Footer is too high in print preview 10797 10798 Reviewed by Steve. 10799 10800 * WebFrame.cpp: 10801 (WebFrame::WebFrame): initialize new data member m_pageHeight, which is the height of the page adjusted for margins. 10802 (WebFrame::computePageRects): get the height of the page adjusted for margins by passing m_pageHeight to 10803 computePageRectsForFrame(). 10804 (WebFrame::spoolPages): footer rect's top is the max of the bottom of the page content and the bottom of the page 10805 minus footer height. 10806 * WebFrame.h: 10807 10808 2007-09-19 Kevin McCullough <kmccullough (a] apple.com> 10809 10810 Reviewed by Hyatt. 10811 10812 - <rdar://problem/5101991> Avril Lavigne music player comes up in a window with scrollbars 10813 - Implementing missing scrollbar functionality to allow turning off scrollbars correctly. 10814 10815 * Interfaces/IWebFrame.idl: 10816 * Interfaces/IWebFrameView.idl: 10817 * WebChromeClient.cpp: 10818 (WebChromeClient::setScrollbarsVisible): 10819 * WebFrame.cpp: 10820 (WebFrame::setAllowsScrolling): 10821 (WebFrame::allowsScrolling): 10822 (WebFrame::frameView): 10823 * WebFrame.h: 10824 10825 2007-09-20 Brady Eidson <beidson (a] apple.com> 10826 10827 Reviewed by Dave Hyatt 10828 10829 <rdar://problem/5245981> - No favicon shows up for cnet.com 10830 10831 * WebIconDatabase.cpp: 10832 (WebIconDatabase::iconForURL): Call getHBITMAPOfSize 10833 (WebIconDatabase::getOrCreateDefaultIconBitmap): Ditto 10834 10835 2007-09-19 Sam Weinig <sam (a] webkit.org> 10836 10837 Rubber stamped by Adam Roben. 10838 10839 * WebKit.vcproj/WebKit.sln: Update location of DumpRenderTree and TestNetscapePlugin 10840 to point to their new locations. 10841 10842 2007-09-18 Brady Eidson <beidson (a] apple.com> 10843 10844 Reviewed by Adam 10845 10846 Final part of <rdar://problem/5471308> - Hook up async icon database on Windows 10847 10848 * CFDictionaryPropertyBag.cpp: 10849 (CFDictionaryPropertyBag::CFDictionaryPropertyBag): Took the opportunity to rewrite with a RetainPtr 10850 since it became available after the initial implementation 10851 (CFDictionaryPropertyBag::setDictionary): 10852 (CFDictionaryPropertyBag::dictionary): Added accessor to the CFDictionaryRef to ease use within WebKit 10853 (CFDictionaryPropertyBag::QueryInterface): Added IID_CFDictionaryPropertyBag accessor 10854 (CFDictionaryPropertyBag::Read): 10855 (CFDictionaryPropertyBag::Write): 10856 * CFDictionaryPropertyBag.h: Added IID_CFDictionaryPropertyBag 10857 10858 * WebFrame.cpp: 10859 (WebFrame::url): Added accessor, gets the current URL from WebCore 10860 (WebFrame::dispatchDidReceiveIcon): Calls through to the WebView 10861 (WebFrame::registerForIconNotification): Ditto 10862 * WebFrame.h: 10863 10864 * WebIconDatabase.cpp: 10865 (WebIconDatabase::iconDatabaseDidAddIconNotification): 10866 (WebIconDatabase::iconDatabaseNotificationUserInfoURLKey): 10867 (WebIconDatabase::iconDatabaseDidRemoveAllIconsNotification): 10868 (postDidRemoveAllIconsNotification): 10869 (postDidAddIconNotification): 10870 * WebIconDatabase.h: 10871 10872 * WebView.cpp: 10873 (WebView::close): Unregister for the notification, just in case 10874 (WebView::notifyDidAddIcon): Called when the webview gets the didAddIcon notification, compares the url 10875 in the notification to the current main frame URL. If they match, calls to dispatchDidReceiveIconFromWebFrame 10876 (WebView::registerForIconNotification): 10877 (WebView::dispatchDidReceiveIconFromWebFrame): Dispatches the FrameLoadDelegate call. Once the delegate call is dispatched, 10878 either via the FrameLoaderClient interface of by listening for a notification, we know that our info is up to date in the 10879 IconDatabase and we don't need to listen for the generic notification any long, so we unregister for it here, as well. 10880 (WebView::onNotify): The WebView listens for two notifications now, so make the decision which was received 10881 * WebView.h: 10882 10883 2007-09-18 Brady Eidson <beidson (a] apple.com> 10884 10885 Reviewed by Ada and Geoff 10886 10887 Part of <rdar://problem/5471308> - Get async Icon Database fully hooked up on Windows 10888 10889 Hook up main thread delivery of Icon Database notifications from the secondary thread 10890 10891 * WebIconDatabase.cpp: 10892 (WebIconDatabase::WebIconDatabase): Initialize m_deliveryRequested 10893 (WebIconDatabase::init): Set the IconDatabaseClient to the shared WebIconDatabase 10894 (WebIconDatabase::dispatchDidRemoveAllIcons): Queue the notification to be delivered on the main thread then 10895 ask for the delivery 10896 (WebIconDatabase::dispatchDidAddIconForPageURL): Ditto 10897 (WebIconDatabase::scheduleNotificationDelivery): If the m_deliveryRequested hasn't been set, then set it 10898 and perform the callOnMainThread() for WebIconDatabase::deliverNotifications 10899 (postDidRemoveAllIconsNotification): 10900 (postDidAddIconNotification): 10901 (WebIconDatabase::deliverNotifications): Deliver all notifications in the current queue 10902 * WebIconDatabase.h: 10903 10904 2007-09-17 Geoffrey Garen <ggaren (a] apple.com> 10905 10906 Reviewed by Darin Adler. 10907 10908 Fixed a hang due to an infinite script running in the window's unload 10909 event handler, which may be the cause of <rdar://problem/5479443> 10910 REGRESSION: Hang due to infinite JS recursion on close @ engadget.com 10911 (onunload-based ad) 10912 10913 Added a bunch of WebKitMac's close features, and reordered others to 10914 match WebKitMac. 10915 10916 * WebView.cpp: 10917 (WebView::close): 10918 (WebView::removeDragCaret): 10919 10920 2007-09-17 Adam Roben <aroben (a] apple.com> 10921 10922 Fix <rdar://4979801> overflow divs don't respond to keyboard scrolling (affects RSS pages) 10923 10924 Reviewed by Hyatt. 10925 10926 * WebView.cpp: 10927 (WebView::keyDown): Attempt to scroll an overflow area before 10928 scrolling the whole frame. 10929 10930 2007-09-17 Brady Eidson <beidson (a] apple.com> 10931 10932 Reviewed by Adam 10933 10934 <rdar://problem/5471308> - Get async Icon Database fully hooked up on Windows 10935 10936 Add a global "shut down WebKit" procedure to do cleanup at the engine level on quit. 10937 Critical now for the IconDatabase and might be for other things in the future. 10938 10939 * WebKitDLL.cpp: 10940 (shutDownWebKit): For now, just close the IconDatabase 10941 (DllMain): On DLL_PROCESS_DETACH, call shutDownWebKit 10942 10943 2007-09-17 Anders Carlsson <andersca (a] apple.com> 10944 10945 Reviewed by Adam. 10946 10947 <rdar://problem/5421997> 10948 http://bugs.webkit.org/show_bug.cgi?id=14247 10949 Display problem with Flash - image does not stop changing 10950 10951 Port the manual load code over from the Mac version. 10952 10953 * WebFrame.cpp: 10954 (WebFrame::WebFramePrivate::WebFramePrivate): 10955 Initialize the plugin pointer. 10956 10957 (WebFrame::finishedLoading): 10958 (WebFrame::setMainDocumentError): 10959 (WebFrame::committedLoad): 10960 Feed the data to the plug-in. 10961 10962 (WebFrame::redirectDataToPlugin): 10963 Store the plug-in widget. 10964 10965 2007-09-14 Steve Falkenburg <sfalken (a] apple.com> 10966 10967 Fix build. 10968 10969 * WebFrame.cpp: 10970 (WebFrame::createPlugin): 10971 (WebFrame::createJavaAppletWidget): 10972 10973 2007-09-13 Darin Adler <darin (a] apple.com> 10974 10975 Reviewed by Oliver. 10976 10977 - fix <rdar://problem/5470457> REGRESSION: Input method inline hole is mishandled in text 10978 <input> elements with maxlength limit 10979 10980 * WebView.cpp: 10981 (WebView::resetIME): Change to use confirmCompositionWithoutDisturbingSelection. 10982 (WebView::updateSelectionForIME): Update for name changes, and to use new functions 10983 in Editor. 10984 (WebView::onIMEStartComposition): Removed unneeded call to unmarkText. 10985 (compositionToUnderlines): Removed startOffset parameter, since setComposition now 10986 handles this. 10987 (WebView::onIMEComposition): Changed to use confirmComposition and setComposition. 10988 Logic gets a lot cleaner. 10989 (WebView::onIMEEndComposition): Removed unneeded calls to Editor. 10990 (WebView::onIMERequestCharPosition): Updated for name changes. 10991 10992 2007-09-12 Oliver Hunt <oliver (a] apple.com> 10993 10994 Reviewed by Adam. 10995 10996 Fixing 10997 <rdar://problem/5018591> Windows doesn't have a standard vertical text cursor 10998 <rdar://problem/5224996> Add zoom in and zoom out cursors 10999 11000 Add images for vertical text and zoom in and out cursors to WebKit resources. 11001 11002 * WebKit.vcproj/verticalTextCursor.png: Added. 11003 * WebKit.vcproj/WebKit.rc: 11004 * WebKit.vcproj/WebKit.vcproj: 11005 * WebKit.vcproj/resource.h: 11006 * WebKit.vcproj/zoomInCursor.png: Added. 11007 * WebKit.vcproj/zoomOutCursor.png: Added. 11008 * WebKitDLL.cpp: 11009 (loadResourceIntoBuffer): 11010 11011 2007-09-12 Adam Roben <aroben (a] apple.com> 11012 11013 Initialize SafariTheme early in WebKit's instantiation 11014 11015 New versions of SafariTheme will require this initialization. We have 11016 to use GetProcAddress for now since the initialize method doesn't 11017 exist in any released SafariTheme. 11018 11019 Reviewed by Ada. 11020 11021 * WebKit.vcproj/debug_internal.vsprops: Pick up the debug SafariTheme. 11022 * WebKitClassFactory.cpp: 11023 (WebKitClassFactory::WebKitClassFactory): Call STInitialize. 11024 11025 2007-09-12 Ada Chan <adachan (a] apple.com> 11026 11027 <rdar://problem/5478690> Regression: printing: footer only appears on the first page of print 11028 11029 Reviewed by Adam. 11030 11031 * WebFrame.cpp: 11032 (WebFrame::spoolPages): the footer rect is relative to the top left of the current page. So 11033 instead of passing pageRect.bottom() as the top of the footer rect (which is relative to the 11034 document), we should pass in headerHeight plus the height of the pageRect. 11035 11036 2007-09-12 Anders Carlsson <andersca (a] apple.com> 11037 11038 Reviewed by Darin (reluctantly). 11039 11040 <rdar://problem/5320461> 11041 http://bugs.webkit.org/show_bug.cgi?id=14548 11042 REGRESSION (r23987-r24061) : Reproducible crash with a local stylesheet file 11043 11044 Add a workaround which converts the string passed in to an URL if it's a path. 11045 11046 * WebView.cpp: 11047 (WebView::updateWebCoreSettingsFromPreferences): 11048 11049 2007-09-10 Steve Falkenburg <sfalken (a] apple.com> 11050 11051 Remove site-specific hacks that we don't need anymore. 11052 11053 Reviewed by Adam. 11054 11055 * WebView.cpp: 11056 (WebView::userAgentForKURL): 11057 11058 2007-09-08 Steve Falkenburg <sfalken (a] apple.com> 11059 11060 Prevent WebKit version numbers from containing "4" in Windows. 11061 11062 Reviewed by Darin Adler. 11063 11064 * WebKit.vcproj/VERSION: Bump version since our current version ends in 4. 11065 * WebKit.vcproj/auto-version.sh: Add version checking code. 11066 11067 2007-09-08 Brady Eidson <beidson (a] apple.com> 11068 11069 <rdar://problem/5434431> - Asynchronous Icon Database 11070 11071 * WebFrame.cpp: 11072 (WebFrame::didPerformFirstNavigation): Empty impl for now 11073 (WebFrame::registerForIconNotification): Ditto 11074 * WebFrame.h: 11075 11076 2007-09-05 Geoffrey Garen <ggaren (a] apple.com> 11077 11078 Reviewed by Darin Adler, Maciej Stachowiak, Mark Rowe, Tim Hatcher. 11079 11080 Fixed <rdar://problem/5326009> Make non-browser WebKit clients have no 11081 memory cache, or a very tiny one 11082 11083 Keep the Windows build working with an empty stub. 11084 11085 * WebFrame.cpp: 11086 (FrameLoaderClient::didPerformFirstNavigation): 11087 * WebFrame.h: 11088 11089 2007-09-07 Ada Chan <adachan (a] apple.com> 11090 11091 Need to let the OS handle Alt+F4. 11092 11093 Reviewed by Hyatt. 11094 11095 * WebView.cpp: 11096 (WebView::keyUp): 11097 (WebView::keyDown): 11098 11099 2007-09-07 Anders Carlsson <andersca (a] apple.com> 11100 11101 Reviewed by Oliver. 11102 11103 <rdar://problem/5461487> 11104 Seed: Embedded media content (Flash Player 9) inside RSS reported as unknown MIME type. 11105 11106 Don't return ObjectContentNone if the URL's extension can't be mapped to a MIME type. If the MIME type is empty, 11107 we will try to display the content in a subframe instead, just like Mac WebKit. 11108 11109 * WebFrame.cpp: 11110 (WebFrame::objectContentType): 11111 11112 2007-09-07 Ada Chan <adachan (a] apple.com> 11113 11114 <rdar://problem/5395928> Need to be able to handle context menu item selection by index 11115 11116 Reviewed by Beth. 11117 11118 * WebView.cpp: 11119 (WebView::performContextMenuAction): performContextMenuAction() can now handle context menu 11120 item selection via WM_MENUCOMMAND (by specifying byPosition to be true). In that case, we 11121 get the ContextMenuItem by position rather than by action id. 11122 (WebViewWndProc): handle WM_MENUCOMMAND 11123 * WebView.h: 11124 11125 2007-09-07 Ada Chan <adachan (a] apple.com> 11126 11127 <rdar://problem/5453494> Better lifetime management of WebDataSource and WebDocumentLoader 11128 The problem was that WebDataSource does not hold a strong reference to the WebDocumentLoader. If 11129 a WebDataSource is still around after the loader has been destroyed, it'll just point to 11130 a stale WebDocumentLoader. 11131 To fix this without a circular reference, WebDataSource now holds a strong reference to the 11132 WebDocumentLoader. The WebDocumentLoader holds a strong reference to the WebDataSource 11133 until it's detached from the WebFrame. When the WebDataSource is destroyed, it'll notify 11134 its WebDocumentLoader so the loader will clear any references to it. 11135 11136 Reviewed by Darin Adler. 11137 11138 * WebDataSource.cpp: 11139 (WebDataSource::~WebDataSource): call WebDocumentLoader::detachDataSource() so the loader 11140 will clear any references to this data source 11141 (WebDataSource::documentLoader): m_loader is now a RefPtr so we need to call get(). 11142 * WebDataSource.h: 11143 * WebDocumentLoader.cpp: 11144 (WebDocumentLoader::WebDocumentLoader): initialize m_dataSource since it's no longer a COMPtr. 11145 (WebDocumentLoader::~WebDocumentLoader): release m_dataSource if necessary 11146 (WebDocumentLoader::setDataSource): add a reference to m_dataSource 11147 (WebDocumentLoader::dataSource): 11148 (WebDocumentLoader::detachDataSource): clear m_detachedDataSource. 11149 (WebDocumentLoader::attachToFrame): call setDataSource() so it'll add the reference to the data source if necessary. 11150 (WebDocumentLoader::detachFromFrame): release the reference to the data source 11151 * WebDocumentLoader.h: 11152 11153 2007-09-05 Dave Hyatt <hyatt (a] apple.com> 11154 11155 Make sure ALT+other keys is properly sent into the DOM so that Web pages (and editing fields) can 11156 detect key combos like ALT+Enter. 11157 11158 Reviewed by Steve 11159 11160 * WebView.cpp: 11161 (WebView::keyUp): 11162 (WebView::keyDown): 11163 (WebViewWndProc): 11164 * WebView.h: 11165 11166 2007-09-04 Sam Weinig <sam (a] webkit.org> 11167 11168 Build fix. 11169 11170 * WebKit.vcproj/WebKit.vcproj: 11171 11172 2007-09-01 Oliver Hunt <oliver (a] apple.com> 11173 11174 Reviewed by Sam. 11175 11176 <rdar://problem/5344848> IME is incorrectly used for key events when on non-editable regions 11177 11178 When focusing a password field or a non-editable element we disassociate any IME that may have 11179 been active, and reassociate should a non-password editable element is focused. 11180 11181 This makes password input with an IME active simpler, and brings our IME behaviour in line with 11182 IE. 11183 11184 * WebEditorClient.cpp: 11185 (WebEditorClient::setInputMethodState): 11186 * WebEditorClient.h: 11187 * WebView.cpp: 11188 (IMMDict::IMMDict): 11189 (WebView::setInputMethodState): 11190 * WebView.h: 11191 11192 2007-08-31 Steve Falkenburg <sfalken (a] apple.com> 11193 11194 <rdar://problem/5432594> Safari quits when hovering over mailto links on a webpage 11195 11196 In addition to substituting %@ with %s, we also need to substitute %{1-9}$@ with %{1-9}$s. 11197 11198 Reviewed by Oliver. 11199 11200 * WebLocalizableStrings.cpp: 11201 (WebLocalizedLPCTSTR): 11202 11203 2007-08-29 Ada Chan <adachan (a] apple.com> 11204 11205 <rdar://problem/5074612> Added SPI to retrieve certificate info from a WebError. 11206 11207 Reviewed by Steve. 11208 11209 * Interfaces/IWebErrorPrivate.idl: Added IWebErrorPrivate 11210 * WebError.cpp: 11211 (WebError::QueryInterface): WebError now also implements IWebErrorPrivate 11212 (WebError::sslPeerCertificate): retrieves certificate info from CFError's user info. 11213 * WebError.h: 11214 * WebKit.vcproj/WebKitGUID.vcproj: Added IWebErrorPrivate_i.c 11215 11216 2007-08-28 Steve Falkenburg <sfalken (a] apple.com> 11217 11218 <rdar://problem/5079253> Cannot set different margins for the page 11219 11220 Added support for setting margins via page setup for Windows printing. 11221 11222 Reviewed by Adam. 11223 11224 * Interfaces/IWebUIDelegate.idl: Added webViewPrintingMarginRect. 11225 * WebFrame.cpp: 11226 (WebFrame::printerMarginRect): Added. 11227 (WebFrame::computePageRects): Account for margins when calculating page rects. 11228 (WebFrame::spoolPages): Position footer at the bottom of the page rect (fixes footer drawing if left/right margins are set). 11229 * WebFrame.h: 11230 11231 2007-08-28 Jon Honeycutt <jhoneycutt (a] apple.com> 11232 11233 Reviewed by Adam. 11234 11235 <rdar://problem/5444457>: Content is cut when page orientation changed 11236 in print preview 11237 Fix: Don't return WebFrame::m_pageRects if it exists; let 11238 computePageRectsForFrame clear and rewrite it. 11239 11240 * WebFrame.cpp: 11241 (WebFrame::computePageRects): Removed an early-return case. Added a 11242 space. 11243 11244 2007-08-28 Ada Chan <adachan (a] apple.com> 11245 11246 <rdar://problem/4876242> Added SPI to fetch SSL certificate information. 11247 11248 Reviewed by Adam and Steve. 11249 11250 * Interfaces/IWebURLResponsePrivate.idl: Added. 11251 * WebKit.vcproj/Interfaces.vcproj: 11252 * WebKit.vcproj/WebKitGUID.vcproj: 11253 * WebURLResponse.cpp: 11254 (WebURLResponse::QueryInterface): 11255 (WebURLResponse::sslPeerCertificate): gets peer certificate context from CFNetwork 11256 (WebURLResponse::certificateDictionary): gets the dictionary that contains SSL certificate 11257 info from CFNetwork. We retain the dictionary to ensure the certificate context is valid 11258 throughout the lifetime of the WebURLResponse. 11259 * WebURLResponse.h: 11260 11261 2007-08-27 Steve Falkenburg <sfalken (a] apple.com> 11262 11263 <rdar://problem/5424801> REGRESSION (r25151): Web page area of window doesn't redraw if page isn't loaded 11264 11265 Don't bypass WebView WM_PAINT if the WebView has never committed a page. 11266 11267 Reviewed by Maciej. 11268 11269 * WebView.cpp: 11270 (WebViewWndProc): Don't skip painting if we haven't committed any pages in this view. 11271 11272 2007-08-25 Oliver Hunt <oliver (a] apple.com> 11273 11274 Reviewed by Adam and Sam 11275 11276 <rdar://problem/5269732> Safari 3.0 for Windows cuts off text in textarea boxes during sending forms (14562) 11277 <http://bugs.webkit.org/show_bug.cgi?id=14562> [Win] Textarea contents partially eaten on submit/copy 11278 11279 WebView::handleEditingKeyboardEvent assumed all keycodes that did not trigger a named command were 11280 to be inserted. This could cause unexpected behaviour when control characters (eg. escape) are sent, 11281 or could cause data loss when sent a null character (as happens when dead keys are used for international 11282 input). 11283 11284 This patch corrects WebView::handleEditingKeyboardEvent to prevent such characters from being sent 11285 to Editor::insertText. This behaviour matches Firefox. 11286 11287 * WebView.cpp: 11288 (WebView::handleEditingKeyboardEvent): 11289 11290 2007-08-24 Sam Weinig <sam (a] webkit.org> 11291 11292 Revert r25216 which renamed the COM DOM bindings to use Deprecated prefix. 11293 11294 2007-08-24 Ada Chan <adachan (a] apple.com> 11295 11296 <rdar://problem/5147315> and <rdar://problem/5183935> 11297 Added accelerator key mappings for Select All, Undo, and Redo. 11298 11299 Reviewed by Adam. 11300 11301 * WebView.cpp: 11302 11303 2007-08-24 Jon Honeycutt <jhoneycutt (a] apple.com> 11304 11305 Reviewed by Darin Adler. 11306 11307 Part of <rdar://problem/5433236> Print preview of empty txt file crashes 11308 Safari 11309 11310 * WebFrame.cpp: 11311 (WebFrame::computePageRects): Pass m_pageRects by reference into 11312 computePageRectsForFrame 11313 11314 2007-08-24 Sam Weinig <sam (a] webkit.org> 11315 11316 Rubber-stamped by Adam Roben. 11317 11318 <rdar://problem/5434593> Deprecate current manually written COM DOM bindings in anticipation of autogeneration 11319 11320 Rename COM DOM bindings to use Deprecated prefix. 11321 11322 * DOMCSSClasses.cpp: 11323 (DeprecatedDOMCSSStyleDeclaration::DeprecatedDOMCSSStyleDeclaration): 11324 (DeprecatedDOMCSSStyleDeclaration::~DeprecatedDOMCSSStyleDeclaration): 11325 (DeprecatedDOMCSSStyleDeclaration::createInstance): 11326 (DeprecatedDOMCSSStyleDeclaration::QueryInterface): 11327 (DeprecatedDOMCSSStyleDeclaration::cssText): 11328 (DeprecatedDOMCSSStyleDeclaration::setCssText): 11329 (DeprecatedDOMCSSStyleDeclaration::getPropertyValue): 11330 (DeprecatedDOMCSSStyleDeclaration::getPropertyCSSValue): 11331 (DeprecatedDOMCSSStyleDeclaration::removeProperty): 11332 (DeprecatedDOMCSSStyleDeclaration::getPropertyPriority): 11333 (DeprecatedDOMCSSStyleDeclaration::setProperty): 11334 (DeprecatedDOMCSSStyleDeclaration::length): 11335 (DeprecatedDOMCSSStyleDeclaration::item): 11336 (DeprecatedDOMCSSStyleDeclaration::parentRule): 11337 * DOMCSSClasses.h: 11338 (DeprecatedDOMCSSStyleDeclaration::AddRef): 11339 (DeprecatedDOMCSSStyleDeclaration::Release): 11340 (DeprecatedDOMCSSStyleDeclaration::throwException): 11341 (DeprecatedDOMCSSStyleDeclaration::callWebScriptMethod): 11342 (DeprecatedDOMCSSStyleDeclaration::evaluateWebScript): 11343 (DeprecatedDOMCSSStyleDeclaration::removeWebScriptKey): 11344 (DeprecatedDOMCSSStyleDeclaration::stringRepresentation): 11345 (DeprecatedDOMCSSStyleDeclaration::webScriptValueAtIndex): 11346 (DeprecatedDOMCSSStyleDeclaration::setWebScriptValueAtIndex): 11347 (DeprecatedDOMCSSStyleDeclaration::setException): 11348 * DOMCoreClasses.cpp: 11349 (DeprecatedDOMObject::QueryInterface): 11350 (DeprecatedDOMNode::QueryInterface): 11351 (DeprecatedDOMNode::nodeName): 11352 (DeprecatedDOMNode::nodeValue): 11353 (DeprecatedDOMNode::setNodeValue): 11354 (DeprecatedDOMNode::nodeType): 11355 (DeprecatedDOMNode::parentNode): 11356 (DeprecatedDOMNode::childNodes): 11357 (DeprecatedDOMNode::firstChild): 11358 (DeprecatedDOMNode::lastChild): 11359 (DeprecatedDOMNode::previousSibling): 11360 (DeprecatedDOMNode::nextSibling): 11361 (DeprecatedDOMNode::attributes): 11362 (DeprecatedDOMNode::ownerDocument): 11363 (DeprecatedDOMNode::insertBefore): 11364 (DeprecatedDOMNode::replaceChild): 11365 (DeprecatedDOMNode::removeChild): 11366 (DeprecatedDOMNode::appendChild): 11367 (DeprecatedDOMNode::hasChildNodes): 11368 (DeprecatedDOMNode::cloneNode): 11369 (DeprecatedDOMNode::normalize): 11370 (DeprecatedDOMNode::isSupported): 11371 (DeprecatedDOMNode::namespaceURI): 11372 (DeprecatedDOMNode::prefix): 11373 (DeprecatedDOMNode::setPrefix): 11374 (DeprecatedDOMNode::localName): 11375 (DeprecatedDOMNode::hasAttributes): 11376 (DeprecatedDOMNode::isSameNode): 11377 (DeprecatedDOMNode::isEqualNode): 11378 (DeprecatedDOMNode::textContent): 11379 (DeprecatedDOMNode::setTextContent): 11380 (DeprecatedDOMNode::addEventListener): 11381 (DeprecatedDOMNode::removeEventListener): 11382 (DeprecatedDOMNode::dispatchEvent): 11383 (DeprecatedDOMNode::DeprecatedDOMNode): 11384 (DeprecatedDOMNode::~DeprecatedDOMNode): 11385 (DeprecatedDOMNode::createInstance): 11386 (DeprecatedDOMNodeList::QueryInterface): 11387 (DeprecatedDOMNodeList::item): 11388 (DeprecatedDOMNodeList::length): 11389 (DeprecatedDOMNodeList::DeprecatedDOMNodeList): 11390 (DeprecatedDOMNodeList::~DeprecatedDOMNodeList): 11391 (DeprecatedDOMNodeList::createInstance): 11392 (DeprecatedDOMDocument::QueryInterface): 11393 (DeprecatedDOMDocument::doctype): 11394 (DeprecatedDOMDocument::implementation): 11395 (DeprecatedDOMDocument::documentElement): 11396 (DeprecatedDOMDocument::createElement): 11397 (DeprecatedDOMDocument::createDocumentFragment): 11398 (DeprecatedDOMDocument::createTextNode): 11399 (DeprecatedDOMDocument::createComment): 11400 (DeprecatedDOMDocument::createCDATASection): 11401 (DeprecatedDOMDocument::createProcessingInstruction): 11402 (DeprecatedDOMDocument::createAttribute): 11403 (DeprecatedDOMDocument::createEntityReference): 11404 (DeprecatedDOMDocument::getElementsByTagName): 11405 (DeprecatedDOMDocument::importNode): 11406 (DeprecatedDOMDocument::createElementNS): 11407 (DeprecatedDOMDocument::createAttributeNS): 11408 (DeprecatedDOMDocument::getElementsByTagNameNS): 11409 (DeprecatedDOMDocument::getElementById): 11410 (DeprecatedDOMDocument::getComputedStyle): 11411 (DeprecatedDOMDocument::createEvent): 11412 (DeprecatedDOMDocument::DeprecatedDOMDocument): 11413 (DeprecatedDOMDocument::~DeprecatedDOMDocument): 11414 (DeprecatedDOMDocument::createInstance): 11415 (DeprecatedDOMElement::QueryInterface): 11416 (DeprecatedDOMElement::boundingBox): 11417 (DeprecatedDOMElement::lineBoxRects): 11418 (DeprecatedDOMElement::tagName): 11419 (DeprecatedDOMElement::getAttribute): 11420 (DeprecatedDOMElement::setAttribute): 11421 (DeprecatedDOMElement::removeAttribute): 11422 (DeprecatedDOMElement::getAttributeNode): 11423 (DeprecatedDOMElement::setAttributeNode): 11424 (DeprecatedDOMElement::removeAttributeNode): 11425 (DeprecatedDOMElement::getElementsByTagName): 11426 (DeprecatedDOMElement::getAttributeNS): 11427 (DeprecatedDOMElement::setAttributeNS): 11428 (DeprecatedDOMElement::removeAttributeNS): 11429 (DeprecatedDOMElement::getAttributeNodeNS): 11430 (DeprecatedDOMElement::setAttributeNodeNS): 11431 (DeprecatedDOMElement::getElementsByTagNameNS): 11432 (DeprecatedDOMElement::hasAttribute): 11433 (DeprecatedDOMElement::hasAttributeNS): 11434 (DeprecatedDOMElement::focus): 11435 (DeprecatedDOMElement::blur): 11436 (DeprecatedDOMElement::coreElement): 11437 (DeprecatedDOMElement::isEqual): 11438 (DeprecatedDOMElement::isFocused): 11439 (DeprecatedDOMElement::innerText): 11440 (DeprecatedDOMElement::style): 11441 (DeprecatedDOMElement::offsetLeft): 11442 (DeprecatedDOMElement::offsetTop): 11443 (DeprecatedDOMElement::offsetWidth): 11444 (DeprecatedDOMElement::offsetHeight): 11445 (DeprecatedDOMElement::offsetParent): 11446 (DeprecatedDOMElement::clientWidth): 11447 (DeprecatedDOMElement::clientHeight): 11448 (DeprecatedDOMElement::scrollLeft): 11449 (DeprecatedDOMElement::setScrollLeft): 11450 (DeprecatedDOMElement::scrollTop): 11451 (DeprecatedDOMElement::setScrollTop): 11452 (DeprecatedDOMElement::scrollWidth): 11453 (DeprecatedDOMElement::scrollHeight): 11454 (DeprecatedDOMElement::scrollIntoView): 11455 (DeprecatedDOMElement::scrollIntoViewIfNeeded): 11456 (DeprecatedDOMElement::DeprecatedDOMElement): 11457 (DeprecatedDOMElement::~DeprecatedDOMElement): 11458 (DeprecatedDOMElement::createInstance): 11459 * DOMCoreClasses.h: 11460 (DeprecatedDOMNode::AddRef): 11461 (DeprecatedDOMNode::Release): 11462 (DeprecatedDOMNode::throwException): 11463 (DeprecatedDOMNode::callWebScriptMethod): 11464 (DeprecatedDOMNode::evaluateWebScript): 11465 (DeprecatedDOMNode::removeWebScriptKey): 11466 (DeprecatedDOMNode::stringRepresentation): 11467 (DeprecatedDOMNode::webScriptValueAtIndex): 11468 (DeprecatedDOMNode::setWebScriptValueAtIndex): 11469 (DeprecatedDOMNode::setException): 11470 (DeprecatedDOMNodeList::AddRef): 11471 (DeprecatedDOMNodeList::Release): 11472 (DeprecatedDOMNodeList::throwException): 11473 (DeprecatedDOMNodeList::callWebScriptMethod): 11474 (DeprecatedDOMNodeList::evaluateWebScript): 11475 (DeprecatedDOMNodeList::removeWebScriptKey): 11476 (DeprecatedDOMNodeList::stringRepresentation): 11477 (DeprecatedDOMNodeList::webScriptValueAtIndex): 11478 (DeprecatedDOMNodeList::setWebScriptValueAtIndex): 11479 (DeprecatedDOMNodeList::setException): 11480 (DeprecatedDOMDocument::AddRef): 11481 (DeprecatedDOMDocument::Release): 11482 (DeprecatedDOMDocument::throwException): 11483 (DeprecatedDOMDocument::callWebScriptMethod): 11484 (DeprecatedDOMDocument::evaluateWebScript): 11485 (DeprecatedDOMDocument::removeWebScriptKey): 11486 (DeprecatedDOMDocument::stringRepresentation): 11487 (DeprecatedDOMDocument::webScriptValueAtIndex): 11488 (DeprecatedDOMDocument::setWebScriptValueAtIndex): 11489 (DeprecatedDOMDocument::setException): 11490 (DeprecatedDOMDocument::nodeName): 11491 (DeprecatedDOMDocument::nodeValue): 11492 (DeprecatedDOMDocument::setNodeValue): 11493 (DeprecatedDOMDocument::nodeType): 11494 (DeprecatedDOMDocument::parentNode): 11495 (DeprecatedDOMDocument::childNodes): 11496 (DeprecatedDOMDocument::firstChild): 11497 (DeprecatedDOMDocument::lastChild): 11498 (DeprecatedDOMDocument::previousSibling): 11499 (DeprecatedDOMDocument::nextSibling): 11500 (DeprecatedDOMDocument::attributes): 11501 (DeprecatedDOMDocument::ownerDocument): 11502 (DeprecatedDOMDocument::insertBefore): 11503 (DeprecatedDOMDocument::replaceChild): 11504 (DeprecatedDOMDocument::removeChild): 11505 (DeprecatedDOMDocument::appendChild): 11506 (DeprecatedDOMDocument::hasChildNodes): 11507 (DeprecatedDOMDocument::cloneNode): 11508 (DeprecatedDOMDocument::normalize): 11509 (DeprecatedDOMDocument::isSupported): 11510 (DeprecatedDOMDocument::namespaceURI): 11511 (DeprecatedDOMDocument::prefix): 11512 (DeprecatedDOMDocument::setPrefix): 11513 (DeprecatedDOMDocument::localName): 11514 (DeprecatedDOMDocument::hasAttributes): 11515 (DeprecatedDOMDocument::isSameNode): 11516 (DeprecatedDOMDocument::isEqualNode): 11517 (DeprecatedDOMDocument::textContent): 11518 (DeprecatedDOMDocument::setTextContent): 11519 (DeprecatedDOMElement::AddRef): 11520 (DeprecatedDOMElement::Release): 11521 (DeprecatedDOMElement::throwException): 11522 (DeprecatedDOMElement::callWebScriptMethod): 11523 (DeprecatedDOMElement::evaluateWebScript): 11524 (DeprecatedDOMElement::removeWebScriptKey): 11525 (DeprecatedDOMElement::stringRepresentation): 11526 (DeprecatedDOMElement::webScriptValueAtIndex): 11527 (DeprecatedDOMElement::setWebScriptValueAtIndex): 11528 (DeprecatedDOMElement::setException): 11529 (DeprecatedDOMElement::nodeName): 11530 (DeprecatedDOMElement::nodeValue): 11531 (DeprecatedDOMElement::setNodeValue): 11532 (DeprecatedDOMElement::nodeType): 11533 (DeprecatedDOMElement::parentNode): 11534 (DeprecatedDOMElement::childNodes): 11535 (DeprecatedDOMElement::firstChild): 11536 (DeprecatedDOMElement::lastChild): 11537 (DeprecatedDOMElement::previousSibling): 11538 (DeprecatedDOMElement::nextSibling): 11539 (DeprecatedDOMElement::attributes): 11540 (DeprecatedDOMElement::ownerDocument): 11541 (DeprecatedDOMElement::insertBefore): 11542 (DeprecatedDOMElement::replaceChild): 11543 (DeprecatedDOMElement::removeChild): 11544 (DeprecatedDOMElement::appendChild): 11545 (DeprecatedDOMElement::hasChildNodes): 11546 (DeprecatedDOMElement::cloneNode): 11547 (DeprecatedDOMElement::normalize): 11548 (DeprecatedDOMElement::isSupported): 11549 (DeprecatedDOMElement::namespaceURI): 11550 (DeprecatedDOMElement::prefix): 11551 (DeprecatedDOMElement::setPrefix): 11552 (DeprecatedDOMElement::localName): 11553 (DeprecatedDOMElement::hasAttributes): 11554 (DeprecatedDOMElement::isSameNode): 11555 (DeprecatedDOMElement::isEqualNode): 11556 (DeprecatedDOMElement::textContent): 11557 (DeprecatedDOMElement::setTextContent): 11558 * DOMEventsClasses.cpp: 11559 (DeprecatedDOMEventListener::QueryInterface): 11560 (DeprecatedDOMEventListener::handleEvent): 11561 (DeprecatedDOMEvent::DeprecatedDOMEvent): 11562 (DeprecatedDOMEvent::~DeprecatedDOMEvent): 11563 (DeprecatedDOMEvent::createInstance): 11564 (DeprecatedDOMEvent::QueryInterface): 11565 (DeprecatedDOMEvent::type): 11566 (DeprecatedDOMEvent::target): 11567 (DeprecatedDOMEvent::currentTarget): 11568 (DeprecatedDOMEvent::eventPhase): 11569 (DeprecatedDOMEvent::bubbles): 11570 (DeprecatedDOMEvent::cancelable): 11571 (DeprecatedDOMEvent::timeStamp): 11572 (DeprecatedDOMEvent::stopPropagation): 11573 (DeprecatedDOMEvent::preventDefault): 11574 (DeprecatedDOMEvent::initEvent): 11575 (DeprecatedDOMUIEvent::QueryInterface): 11576 (DeprecatedDOMUIEvent::view): 11577 (DeprecatedDOMUIEvent::detail): 11578 (DeprecatedDOMUIEvent::initUIEvent): 11579 (DeprecatedDOMUIEvent::keyCode): 11580 (DeprecatedDOMUIEvent::charCode): 11581 (DeprecatedDOMUIEvent::layerX): 11582 (DeprecatedDOMUIEvent::layerY): 11583 (DeprecatedDOMUIEvent::pageX): 11584 (DeprecatedDOMUIEvent::pageY): 11585 (DeprecatedDOMUIEvent::which): 11586 (DeprecatedDOMKeyboardEvent::QueryInterface): 11587 (DeprecatedDOMKeyboardEvent::keyIdentifier): 11588 (DeprecatedDOMKeyboardEvent::keyLocation): 11589 (DeprecatedDOMKeyboardEvent::ctrlKey): 11590 (DeprecatedDOMKeyboardEvent::shiftKey): 11591 (DeprecatedDOMKeyboardEvent::altKey): 11592 (DeprecatedDOMKeyboardEvent::metaKey): 11593 (DeprecatedDOMKeyboardEvent::altGraphKey): 11594 (DeprecatedDOMKeyboardEvent::getModifierState): 11595 (DeprecatedDOMKeyboardEvent::initKeyboardEvent): 11596 (DeprecatedDOMMouseEvent::QueryInterface): 11597 (DeprecatedDOMMouseEvent::screenX): 11598 (DeprecatedDOMMouseEvent::screenY): 11599 (DeprecatedDOMMouseEvent::clientX): 11600 (DeprecatedDOMMouseEvent::clientY): 11601 (DeprecatedDOMMouseEvent::ctrlKey): 11602 (DeprecatedDOMMouseEvent::shiftKey): 11603 (DeprecatedDOMMouseEvent::altKey): 11604 (DeprecatedDOMMouseEvent::metaKey): 11605 (DeprecatedDOMMouseEvent::button): 11606 (DeprecatedDOMMouseEvent::relatedTarget): 11607 (DeprecatedDOMMouseEvent::initMouseEvent): 11608 (DeprecatedDOMMouseEvent::offsetX): 11609 (DeprecatedDOMMouseEvent::offsetY): 11610 (DeprecatedDOMMouseEvent::x): 11611 (DeprecatedDOMMouseEvent::y): 11612 (DeprecatedDOMMouseEvent::fromElement): 11613 (DeprecatedDOMMouseEvent::toElement): 11614 (DeprecatedDOMMutationEvent::QueryInterface): 11615 (DeprecatedDOMMutationEvent::relatedNode): 11616 (DeprecatedDOMMutationEvent::prevValue): 11617 (DeprecatedDOMMutationEvent::newValue): 11618 (DeprecatedDOMMutationEvent::attrName): 11619 (DeprecatedDOMMutationEvent::attrChange): 11620 (DeprecatedDOMMutationEvent::initMutationEvent): 11621 (DeprecatedDOMOverflowEvent::QueryInterface): 11622 (DeprecatedDOMOverflowEvent::orient): 11623 (DeprecatedDOMOverflowEvent::horizontalOverflow): 11624 (DeprecatedDOMOverflowEvent::verticalOverflow): 11625 (DeprecatedDOMWheelEvent::QueryInterface): 11626 (DeprecatedDOMWheelEvent::screenX): 11627 (DeprecatedDOMWheelEvent::screenY): 11628 (DeprecatedDOMWheelEvent::clientX): 11629 (DeprecatedDOMWheelEvent::clientY): 11630 (DeprecatedDOMWheelEvent::ctrlKey): 11631 (DeprecatedDOMWheelEvent::shiftKey): 11632 (DeprecatedDOMWheelEvent::altKey): 11633 (DeprecatedDOMWheelEvent::metaKey): 11634 (DeprecatedDOMWheelEvent::wheelDelta): 11635 (DeprecatedDOMWheelEvent::wheelDeltaX): 11636 (DeprecatedDOMWheelEvent::wheelDeltaY): 11637 (DeprecatedDOMWheelEvent::offsetX): 11638 (DeprecatedDOMWheelEvent::offsetY): 11639 (DeprecatedDOMWheelEvent::x): 11640 (DeprecatedDOMWheelEvent::y): 11641 (DeprecatedDOMWheelEvent::isHorizontal): 11642 (DeprecatedDOMWheelEvent::initWheelEvent): 11643 * DOMEventsClasses.h: 11644 (DeprecatedDOMEventListener::AddRef): 11645 (DeprecatedDOMEventListener::Release): 11646 (DeprecatedDOMEventListener::throwException): 11647 (DeprecatedDOMEventListener::callWebScriptMethod): 11648 (DeprecatedDOMEventListener::evaluateWebScript): 11649 (DeprecatedDOMEventListener::removeWebScriptKey): 11650 (DeprecatedDOMEventListener::stringRepresentation): 11651 (DeprecatedDOMEventListener::webScriptValueAtIndex): 11652 (DeprecatedDOMEventListener::setWebScriptValueAtIndex): 11653 (DeprecatedDOMEventListener::setException): 11654 (DeprecatedDOMEvent::AddRef): 11655 (DeprecatedDOMEvent::Release): 11656 (DeprecatedDOMEvent::throwException): 11657 (DeprecatedDOMEvent::callWebScriptMethod): 11658 (DeprecatedDOMEvent::evaluateWebScript): 11659 (DeprecatedDOMEvent::removeWebScriptKey): 11660 (DeprecatedDOMEvent::stringRepresentation): 11661 (DeprecatedDOMEvent::webScriptValueAtIndex): 11662 (DeprecatedDOMEvent::setWebScriptValueAtIndex): 11663 (DeprecatedDOMEvent::setException): 11664 (DeprecatedDOMUIEvent::DeprecatedDOMUIEvent): 11665 (DeprecatedDOMUIEvent::AddRef): 11666 (DeprecatedDOMUIEvent::Release): 11667 (DeprecatedDOMUIEvent::throwException): 11668 (DeprecatedDOMUIEvent::callWebScriptMethod): 11669 (DeprecatedDOMUIEvent::evaluateWebScript): 11670 (DeprecatedDOMUIEvent::removeWebScriptKey): 11671 (DeprecatedDOMUIEvent::stringRepresentation): 11672 (DeprecatedDOMUIEvent::webScriptValueAtIndex): 11673 (DeprecatedDOMUIEvent::setWebScriptValueAtIndex): 11674 (DeprecatedDOMUIEvent::setException): 11675 (DeprecatedDOMUIEvent::type): 11676 (DeprecatedDOMUIEvent::target): 11677 (DeprecatedDOMUIEvent::currentTarget): 11678 (DeprecatedDOMUIEvent::eventPhase): 11679 (DeprecatedDOMUIEvent::bubbles): 11680 (DeprecatedDOMUIEvent::cancelable): 11681 (DeprecatedDOMUIEvent::timeStamp): 11682 (DeprecatedDOMUIEvent::stopPropagation): 11683 (DeprecatedDOMUIEvent::preventDefault): 11684 (DeprecatedDOMUIEvent::initEvent): 11685 (DeprecatedDOMKeyboardEvent::DeprecatedDOMKeyboardEvent): 11686 (DeprecatedDOMKeyboardEvent::AddRef): 11687 (DeprecatedDOMKeyboardEvent::Release): 11688 (DeprecatedDOMKeyboardEvent::throwException): 11689 (DeprecatedDOMKeyboardEvent::callWebScriptMethod): 11690 (DeprecatedDOMKeyboardEvent::evaluateWebScript): 11691 (DeprecatedDOMKeyboardEvent::removeWebScriptKey): 11692 (DeprecatedDOMKeyboardEvent::stringRepresentation): 11693 (DeprecatedDOMKeyboardEvent::webScriptValueAtIndex): 11694 (DeprecatedDOMKeyboardEvent::setWebScriptValueAtIndex): 11695 (DeprecatedDOMKeyboardEvent::setException): 11696 (DeprecatedDOMKeyboardEvent::type): 11697 (DeprecatedDOMKeyboardEvent::target): 11698 (DeprecatedDOMKeyboardEvent::currentTarget): 11699 (DeprecatedDOMKeyboardEvent::eventPhase): 11700 (DeprecatedDOMKeyboardEvent::bubbles): 11701 (DeprecatedDOMKeyboardEvent::cancelable): 11702 (DeprecatedDOMKeyboardEvent::timeStamp): 11703 (DeprecatedDOMKeyboardEvent::stopPropagation): 11704 (DeprecatedDOMKeyboardEvent::preventDefault): 11705 (DeprecatedDOMKeyboardEvent::initEvent): 11706 (DeprecatedDOMKeyboardEvent::view): 11707 (DeprecatedDOMKeyboardEvent::detail): 11708 (DeprecatedDOMKeyboardEvent::initUIEvent): 11709 (DeprecatedDOMKeyboardEvent::keyCode): 11710 (DeprecatedDOMKeyboardEvent::charCode): 11711 (DeprecatedDOMKeyboardEvent::layerX): 11712 (DeprecatedDOMKeyboardEvent::layerY): 11713 (DeprecatedDOMKeyboardEvent::pageX): 11714 (DeprecatedDOMKeyboardEvent::pageY): 11715 (DeprecatedDOMKeyboardEvent::which): 11716 (DeprecatedDOMMouseEvent::DeprecatedDOMMouseEvent): 11717 (DeprecatedDOMMouseEvent::AddRef): 11718 (DeprecatedDOMMouseEvent::Release): 11719 (DeprecatedDOMMouseEvent::throwException): 11720 (DeprecatedDOMMouseEvent::callWebScriptMethod): 11721 (DeprecatedDOMMouseEvent::evaluateWebScript): 11722 (DeprecatedDOMMouseEvent::removeWebScriptKey): 11723 (DeprecatedDOMMouseEvent::stringRepresentation): 11724 (DeprecatedDOMMouseEvent::webScriptValueAtIndex): 11725 (DeprecatedDOMMouseEvent::setWebScriptValueAtIndex): 11726 (DeprecatedDOMMouseEvent::setException): 11727 (DeprecatedDOMMouseEvent::type): 11728 (DeprecatedDOMMouseEvent::target): 11729 (DeprecatedDOMMouseEvent::currentTarget): 11730 (DeprecatedDOMMouseEvent::eventPhase): 11731 (DeprecatedDOMMouseEvent::bubbles): 11732 (DeprecatedDOMMouseEvent::cancelable): 11733 (DeprecatedDOMMouseEvent::timeStamp): 11734 (DeprecatedDOMMouseEvent::stopPropagation): 11735 (DeprecatedDOMMouseEvent::preventDefault): 11736 (DeprecatedDOMMouseEvent::initEvent): 11737 (DeprecatedDOMMouseEvent::view): 11738 (DeprecatedDOMMouseEvent::detail): 11739 (DeprecatedDOMMouseEvent::initUIEvent): 11740 (DeprecatedDOMMouseEvent::keyCode): 11741 (DeprecatedDOMMouseEvent::charCode): 11742 (DeprecatedDOMMouseEvent::layerX): 11743 (DeprecatedDOMMouseEvent::layerY): 11744 (DeprecatedDOMMouseEvent::pageX): 11745 (DeprecatedDOMMouseEvent::pageY): 11746 (DeprecatedDOMMouseEvent::which): 11747 (DeprecatedDOMMutationEvent::DeprecatedDOMMutationEvent): 11748 (DeprecatedDOMMutationEvent::AddRef): 11749 (DeprecatedDOMMutationEvent::Release): 11750 (DeprecatedDOMMutationEvent::throwException): 11751 (DeprecatedDOMMutationEvent::callWebScriptMethod): 11752 (DeprecatedDOMMutationEvent::evaluateWebScript): 11753 (DeprecatedDOMMutationEvent::removeWebScriptKey): 11754 (DeprecatedDOMMutationEvent::stringRepresentation): 11755 (DeprecatedDOMMutationEvent::webScriptValueAtIndex): 11756 (DeprecatedDOMMutationEvent::setWebScriptValueAtIndex): 11757 (DeprecatedDOMMutationEvent::setException): 11758 (DeprecatedDOMMutationEvent::type): 11759 (DeprecatedDOMMutationEvent::target): 11760 (DeprecatedDOMMutationEvent::currentTarget): 11761 (DeprecatedDOMMutationEvent::eventPhase): 11762 (DeprecatedDOMMutationEvent::bubbles): 11763 (DeprecatedDOMMutationEvent::cancelable): 11764 (DeprecatedDOMMutationEvent::timeStamp): 11765 (DeprecatedDOMMutationEvent::stopPropagation): 11766 (DeprecatedDOMMutationEvent::preventDefault): 11767 (DeprecatedDOMMutationEvent::initEvent): 11768 (DeprecatedDOMOverflowEvent::DeprecatedDOMOverflowEvent): 11769 (DeprecatedDOMOverflowEvent::AddRef): 11770 (DeprecatedDOMOverflowEvent::Release): 11771 (DeprecatedDOMOverflowEvent::throwException): 11772 (DeprecatedDOMOverflowEvent::callWebScriptMethod): 11773 (DeprecatedDOMOverflowEvent::evaluateWebScript): 11774 (DeprecatedDOMOverflowEvent::removeWebScriptKey): 11775 (DeprecatedDOMOverflowEvent::stringRepresentation): 11776 (DeprecatedDOMOverflowEvent::webScriptValueAtIndex): 11777 (DeprecatedDOMOverflowEvent::setWebScriptValueAtIndex): 11778 (DeprecatedDOMOverflowEvent::setException): 11779 (DeprecatedDOMOverflowEvent::type): 11780 (DeprecatedDOMOverflowEvent::target): 11781 (DeprecatedDOMOverflowEvent::currentTarget): 11782 (DeprecatedDOMOverflowEvent::eventPhase): 11783 (DeprecatedDOMOverflowEvent::bubbles): 11784 (DeprecatedDOMOverflowEvent::cancelable): 11785 (DeprecatedDOMOverflowEvent::timeStamp): 11786 (DeprecatedDOMOverflowEvent::stopPropagation): 11787 (DeprecatedDOMOverflowEvent::preventDefault): 11788 (DeprecatedDOMOverflowEvent::initEvent): 11789 (DeprecatedDOMWheelEvent::DeprecatedDOMWheelEvent): 11790 (DeprecatedDOMWheelEvent::AddRef): 11791 (DeprecatedDOMWheelEvent::Release): 11792 (DeprecatedDOMWheelEvent::throwException): 11793 (DeprecatedDOMWheelEvent::callWebScriptMethod): 11794 (DeprecatedDOMWheelEvent::evaluateWebScript): 11795 (DeprecatedDOMWheelEvent::removeWebScriptKey): 11796 (DeprecatedDOMWheelEvent::stringRepresentation): 11797 (DeprecatedDOMWheelEvent::webScriptValueAtIndex): 11798 (DeprecatedDOMWheelEvent::setWebScriptValueAtIndex): 11799 (DeprecatedDOMWheelEvent::setException): 11800 (DeprecatedDOMWheelEvent::type): 11801 (DeprecatedDOMWheelEvent::target): 11802 (DeprecatedDOMWheelEvent::currentTarget): 11803 (DeprecatedDOMWheelEvent::eventPhase): 11804 (DeprecatedDOMWheelEvent::bubbles): 11805 (DeprecatedDOMWheelEvent::cancelable): 11806 (DeprecatedDOMWheelEvent::timeStamp): 11807 (DeprecatedDOMWheelEvent::stopPropagation): 11808 (DeprecatedDOMWheelEvent::preventDefault): 11809 (DeprecatedDOMWheelEvent::initEvent): 11810 (DeprecatedDOMWheelEvent::view): 11811 (DeprecatedDOMWheelEvent::detail): 11812 (DeprecatedDOMWheelEvent::initUIEvent): 11813 (DeprecatedDOMWheelEvent::keyCode): 11814 (DeprecatedDOMWheelEvent::charCode): 11815 (DeprecatedDOMWheelEvent::layerX): 11816 (DeprecatedDOMWheelEvent::layerY): 11817 (DeprecatedDOMWheelEvent::pageX): 11818 (DeprecatedDOMWheelEvent::pageY): 11819 (DeprecatedDOMWheelEvent::which): 11820 * DOMHTMLClasses.cpp: 11821 (DeprecatedDOMHTMLCollection::DeprecatedDOMHTMLCollection): 11822 (DeprecatedDOMHTMLCollection::createInstance): 11823 (DeprecatedDOMHTMLCollection::QueryInterface): 11824 (DeprecatedDOMHTMLCollection::length): 11825 (DeprecatedDOMHTMLCollection::item): 11826 (DeprecatedDOMHTMLCollection::namedItem): 11827 (DeprecatedDOMHTMLOptionsCollection::QueryInterface): 11828 (DeprecatedDOMHTMLOptionsCollection::length): 11829 (DeprecatedDOMHTMLOptionsCollection::setLength): 11830 (DeprecatedDOMHTMLOptionsCollection::item): 11831 (DeprecatedDOMHTMLOptionsCollection::namedItem): 11832 (DeprecatedDOMHTMLDocument::QueryInterface): 11833 (DeprecatedDOMHTMLDocument::title): 11834 (DeprecatedDOMHTMLDocument::setTitle): 11835 (DeprecatedDOMHTMLDocument::referrer): 11836 (DeprecatedDOMHTMLDocument::domain): 11837 (DeprecatedDOMHTMLDocument::URL): 11838 (DeprecatedDOMHTMLDocument::body): 11839 (DeprecatedDOMHTMLDocument::setBody): 11840 (DeprecatedDOMHTMLDocument::images): 11841 (DeprecatedDOMHTMLDocument::applets): 11842 (DeprecatedDOMHTMLDocument::links): 11843 (DeprecatedDOMHTMLDocument::forms): 11844 (DeprecatedDOMHTMLDocument::anchors): 11845 (DeprecatedDOMHTMLDocument::cookie): 11846 (DeprecatedDOMHTMLDocument::setCookie): 11847 (DeprecatedDOMHTMLDocument::open): 11848 (DeprecatedDOMHTMLDocument::close): 11849 (DeprecatedDOMHTMLDocument::write): 11850 (DeprecatedDOMHTMLDocument::writeln): 11851 (DeprecatedDOMHTMLDocument::getElementById_): 11852 (DeprecatedDOMHTMLDocument::getElementsByName): 11853 (DeprecatedDOMHTMLElement::QueryInterface): 11854 (DeprecatedDOMHTMLElement::idName): 11855 (DeprecatedDOMHTMLElement::setIdName): 11856 (DeprecatedDOMHTMLElement::title): 11857 (DeprecatedDOMHTMLElement::setTitle): 11858 (DeprecatedDOMHTMLElement::lang): 11859 (DeprecatedDOMHTMLElement::setLang): 11860 (DeprecatedDOMHTMLElement::dir): 11861 (DeprecatedDOMHTMLElement::setDir): 11862 (DeprecatedDOMHTMLElement::className): 11863 (DeprecatedDOMHTMLElement::setClassName): 11864 (DeprecatedDOMHTMLElement::innerHTML): 11865 (DeprecatedDOMHTMLElement::setInnerHTML): 11866 (DeprecatedDOMHTMLElement::innerText): 11867 (DeprecatedDOMHTMLElement::setInnerText): 11868 (DeprecatedDOMHTMLFormElement::QueryInterface): 11869 (DeprecatedDOMHTMLFormElement::elements): 11870 (DeprecatedDOMHTMLFormElement::length): 11871 (DeprecatedDOMHTMLFormElement::name): 11872 (DeprecatedDOMHTMLFormElement::setName): 11873 (DeprecatedDOMHTMLFormElement::acceptCharset): 11874 (DeprecatedDOMHTMLFormElement::setAcceptCharset): 11875 (DeprecatedDOMHTMLFormElement::action): 11876 (DeprecatedDOMHTMLFormElement::setAction): 11877 (DeprecatedDOMHTMLFormElement::encType): 11878 (DeprecatedDOMHTMLFormElement::setEnctype): 11879 (DeprecatedDOMHTMLFormElement::method): 11880 (DeprecatedDOMHTMLFormElement::setMethod): 11881 (DeprecatedDOMHTMLFormElement::target): 11882 (DeprecatedDOMHTMLFormElement::setTarget): 11883 (DeprecatedDOMHTMLFormElement::submit): 11884 (DeprecatedDOMHTMLFormElement::reset): 11885 (DeprecatedDOMHTMLSelectElement::QueryInterface): 11886 (DeprecatedDOMHTMLSelectElement::type): 11887 (DeprecatedDOMHTMLSelectElement::selectedIndex): 11888 (DeprecatedDOMHTMLSelectElement::setSelectedIndx): 11889 (DeprecatedDOMHTMLSelectElement::value): 11890 (DeprecatedDOMHTMLSelectElement::setValue): 11891 (DeprecatedDOMHTMLSelectElement::length): 11892 (DeprecatedDOMHTMLSelectElement::form): 11893 (DeprecatedDOMHTMLSelectElement::options): 11894 (DeprecatedDOMHTMLSelectElement::disabled): 11895 (DeprecatedDOMHTMLSelectElement::setDisabled): 11896 (DeprecatedDOMHTMLSelectElement::multiple): 11897 (DeprecatedDOMHTMLSelectElement::setMultiple): 11898 (DeprecatedDOMHTMLSelectElement::name): 11899 (DeprecatedDOMHTMLSelectElement::setName): 11900 (DeprecatedDOMHTMLSelectElement::size): 11901 (DeprecatedDOMHTMLSelectElement::setSize): 11902 (DeprecatedDOMHTMLSelectElement::tabIndex): 11903 (DeprecatedDOMHTMLSelectElement::setTabIndex): 11904 (DeprecatedDOMHTMLSelectElement::add): 11905 (DeprecatedDOMHTMLSelectElement::remove): 11906 (DeprecatedDOMHTMLSelectElement::activateItemAtIndex): 11907 (DeprecatedDOMHTMLOptionElement::QueryInterface): 11908 (DeprecatedDOMHTMLOptionElement::form): 11909 (DeprecatedDOMHTMLOptionElement::defaultSelected): 11910 (DeprecatedDOMHTMLOptionElement::setDefaultSelected): 11911 (DeprecatedDOMHTMLOptionElement::text): 11912 (DeprecatedDOMHTMLOptionElement::index): 11913 (DeprecatedDOMHTMLOptionElement::disabled): 11914 (DeprecatedDOMHTMLOptionElement::setDisabled): 11915 (DeprecatedDOMHTMLOptionElement::label): 11916 (DeprecatedDOMHTMLOptionElement::setLabel): 11917 (DeprecatedDOMHTMLOptionElement::selected): 11918 (DeprecatedDOMHTMLOptionElement::setSelected): 11919 (DeprecatedDOMHTMLOptionElement::value): 11920 (DeprecatedDOMHTMLOptionElement::setValue): 11921 (DeprecatedDOMHTMLInputElement::QueryInterface): 11922 (DeprecatedDOMHTMLInputElement::defaultValue): 11923 (DeprecatedDOMHTMLInputElement::setDefaultValue): 11924 (DeprecatedDOMHTMLInputElement::defaultChecked): 11925 (DeprecatedDOMHTMLInputElement::setDefaultChecked): 11926 (DeprecatedDOMHTMLInputElement::form): 11927 (DeprecatedDOMHTMLInputElement::accept): 11928 (DeprecatedDOMHTMLInputElement::setAccept): 11929 (DeprecatedDOMHTMLInputElement::accessKey): 11930 (DeprecatedDOMHTMLInputElement::setAccessKey): 11931 (DeprecatedDOMHTMLInputElement::align): 11932 (DeprecatedDOMHTMLInputElement::setAlign): 11933 (DeprecatedDOMHTMLInputElement::alt): 11934 (DeprecatedDOMHTMLInputElement::setAlt): 11935 (DeprecatedDOMHTMLInputElement::checked): 11936 (DeprecatedDOMHTMLInputElement::setChecked): 11937 (DeprecatedDOMHTMLInputElement::disabled): 11938 (DeprecatedDOMHTMLInputElement::setDisabled): 11939 (DeprecatedDOMHTMLInputElement::maxLength): 11940 (DeprecatedDOMHTMLInputElement::setMaxLength): 11941 (DeprecatedDOMHTMLInputElement::name): 11942 (DeprecatedDOMHTMLInputElement::setName): 11943 (DeprecatedDOMHTMLInputElement::readOnly): 11944 (DeprecatedDOMHTMLInputElement::setReadOnly): 11945 (DeprecatedDOMHTMLInputElement::size): 11946 (DeprecatedDOMHTMLInputElement::setSize): 11947 (DeprecatedDOMHTMLInputElement::src): 11948 (DeprecatedDOMHTMLInputElement::setSrc): 11949 (DeprecatedDOMHTMLInputElement::tabIndex): 11950 (DeprecatedDOMHTMLInputElement::setTabIndex): 11951 (DeprecatedDOMHTMLInputElement::type): 11952 (DeprecatedDOMHTMLInputElement::setType): 11953 (DeprecatedDOMHTMLInputElement::useMap): 11954 (DeprecatedDOMHTMLInputElement::setUseMap): 11955 (DeprecatedDOMHTMLInputElement::value): 11956 (DeprecatedDOMHTMLInputElement::setValue): 11957 (DeprecatedDOMHTMLInputElement::select): 11958 (DeprecatedDOMHTMLInputElement::click): 11959 (DeprecatedDOMHTMLInputElement::setSelectionStart): 11960 (DeprecatedDOMHTMLInputElement::selectionStart): 11961 (DeprecatedDOMHTMLInputElement::setSelectionEnd): 11962 (DeprecatedDOMHTMLInputElement::selectionEnd): 11963 (DeprecatedDOMHTMLInputElement::isTextField): 11964 (DeprecatedDOMHTMLInputElement::rectOnScreen): 11965 (DeprecatedDOMHTMLInputElement::replaceCharactersInRange): 11966 (DeprecatedDOMHTMLInputElement::selectedRange): 11967 (DeprecatedDOMHTMLInputElement::setAutofilled): 11968 (DeprecatedDOMHTMLInputElement::isUserEdited): 11969 (DeprecatedDOMHTMLTextAreaElement::QueryInterface): 11970 (DeprecatedDOMHTMLTextAreaElement::defaultValue): 11971 (DeprecatedDOMHTMLTextAreaElement::setDefaultValue): 11972 (DeprecatedDOMHTMLTextAreaElement::form): 11973 (DeprecatedDOMHTMLTextAreaElement::accessKey): 11974 (DeprecatedDOMHTMLTextAreaElement::setAccessKey): 11975 (DeprecatedDOMHTMLTextAreaElement::cols): 11976 (DeprecatedDOMHTMLTextAreaElement::setCols): 11977 (DeprecatedDOMHTMLTextAreaElement::disabled): 11978 (DeprecatedDOMHTMLTextAreaElement::setDisabled): 11979 (DeprecatedDOMHTMLTextAreaElement::name): 11980 (DeprecatedDOMHTMLTextAreaElement::setName): 11981 (DeprecatedDOMHTMLTextAreaElement::readOnly): 11982 (DeprecatedDOMHTMLTextAreaElement::setReadOnly): 11983 (DeprecatedDOMHTMLTextAreaElement::rows): 11984 (DeprecatedDOMHTMLTextAreaElement::setRows): 11985 (DeprecatedDOMHTMLTextAreaElement::tabIndex): 11986 (DeprecatedDOMHTMLTextAreaElement::setTabIndex): 11987 (DeprecatedDOMHTMLTextAreaElement::type): 11988 (DeprecatedDOMHTMLTextAreaElement::value): 11989 (DeprecatedDOMHTMLTextAreaElement::setValue): 11990 (DeprecatedDOMHTMLTextAreaElement::select): 11991 (DeprecatedDOMHTMLTextAreaElement::isUserEdited): 11992 * DOMHTMLClasses.h: 11993 (DeprecatedDOMHTMLCollection::AddRef): 11994 (DeprecatedDOMHTMLCollection::Release): 11995 (DeprecatedDOMHTMLCollection::throwException): 11996 (DeprecatedDOMHTMLCollection::callWebScriptMethod): 11997 (DeprecatedDOMHTMLCollection::evaluateWebScript): 11998 (DeprecatedDOMHTMLCollection::removeWebScriptKey): 11999 (DeprecatedDOMHTMLCollection::stringRepresentation): 12000 (DeprecatedDOMHTMLCollection::webScriptValueAtIndex): 12001 (DeprecatedDOMHTMLCollection::setWebScriptValueAtIndex): 12002 (DeprecatedDOMHTMLCollection::setException): 12003 (DeprecatedDOMHTMLOptionsCollection::AddRef): 12004 (DeprecatedDOMHTMLOptionsCollection::Release): 12005 (DeprecatedDOMHTMLOptionsCollection::throwException): 12006 (DeprecatedDOMHTMLOptionsCollection::callWebScriptMethod): 12007 (DeprecatedDOMHTMLOptionsCollection::evaluateWebScript): 12008 (DeprecatedDOMHTMLOptionsCollection::removeWebScriptKey): 12009 (DeprecatedDOMHTMLOptionsCollection::stringRepresentation): 12010 (DeprecatedDOMHTMLOptionsCollection::webScriptValueAtIndex): 12011 (DeprecatedDOMHTMLOptionsCollection::setWebScriptValueAtIndex): 12012 (DeprecatedDOMHTMLOptionsCollection::setException): 12013 (DeprecatedDOMHTMLDocument::DeprecatedDOMHTMLDocument): 12014 (DeprecatedDOMHTMLDocument::AddRef): 12015 (DeprecatedDOMHTMLDocument::Release): 12016 (DeprecatedDOMHTMLDocument::throwException): 12017 (DeprecatedDOMHTMLDocument::callWebScriptMethod): 12018 (DeprecatedDOMHTMLDocument::evaluateWebScript): 12019 (DeprecatedDOMHTMLDocument::removeWebScriptKey): 12020 (DeprecatedDOMHTMLDocument::stringRepresentation): 12021 (DeprecatedDOMHTMLDocument::webScriptValueAtIndex): 12022 (DeprecatedDOMHTMLDocument::setWebScriptValueAtIndex): 12023 (DeprecatedDOMHTMLDocument::setException): 12024 (DeprecatedDOMHTMLDocument::nodeName): 12025 (DeprecatedDOMHTMLDocument::nodeValue): 12026 (DeprecatedDOMHTMLDocument::nodeType): 12027 (DeprecatedDOMHTMLDocument::parentNode): 12028 (DeprecatedDOMHTMLDocument::childNodes): 12029 (DeprecatedDOMHTMLDocument::firstChild): 12030 (DeprecatedDOMHTMLDocument::lastChild): 12031 (DeprecatedDOMHTMLDocument::previousSibling): 12032 (DeprecatedDOMHTMLDocument::nextSibling): 12033 (DeprecatedDOMHTMLDocument::attributes): 12034 (DeprecatedDOMHTMLDocument::ownerDocument): 12035 (DeprecatedDOMHTMLDocument::insertBefore): 12036 (DeprecatedDOMHTMLDocument::replaceChild): 12037 (DeprecatedDOMHTMLDocument::removeChild): 12038 (DeprecatedDOMHTMLDocument::appendChild): 12039 (DeprecatedDOMHTMLDocument::hasChildNodes): 12040 (DeprecatedDOMHTMLDocument::cloneNode): 12041 (DeprecatedDOMHTMLDocument::normalize): 12042 (DeprecatedDOMHTMLDocument::isSupported): 12043 (DeprecatedDOMHTMLDocument::namespaceURI): 12044 (DeprecatedDOMHTMLDocument::prefix): 12045 (DeprecatedDOMHTMLDocument::setPrefix): 12046 (DeprecatedDOMHTMLDocument::localName): 12047 (DeprecatedDOMHTMLDocument::hasAttributes): 12048 (DeprecatedDOMHTMLDocument::isSameNode): 12049 (DeprecatedDOMHTMLDocument::isEqualNode): 12050 (DeprecatedDOMHTMLDocument::textContent): 12051 (DeprecatedDOMHTMLDocument::setTextContent): 12052 (DeprecatedDOMHTMLDocument::doctype): 12053 (DeprecatedDOMHTMLDocument::implementation): 12054 (DeprecatedDOMHTMLDocument::documentElement): 12055 (DeprecatedDOMHTMLDocument::createElement): 12056 (DeprecatedDOMHTMLDocument::createDocumentFragment): 12057 (DeprecatedDOMHTMLDocument::createTextNode): 12058 (DeprecatedDOMHTMLDocument::createComment): 12059 (DeprecatedDOMHTMLDocument::createCDATASection): 12060 (DeprecatedDOMHTMLDocument::createProcessingInstruction): 12061 (DeprecatedDOMHTMLDocument::createAttribute): 12062 (DeprecatedDOMHTMLDocument::createEntityReference): 12063 (DeprecatedDOMHTMLDocument::getElementsByTagName): 12064 (DeprecatedDOMHTMLDocument::importNode): 12065 (DeprecatedDOMHTMLDocument::createElementNS): 12066 (DeprecatedDOMHTMLDocument::createAttributeNS): 12067 (DeprecatedDOMHTMLDocument::getElementsByTagNameNS): 12068 (DeprecatedDOMHTMLDocument::getElementById): 12069 (DeprecatedDOMHTMLElement::DeprecatedDOMHTMLElement): 12070 (DeprecatedDOMHTMLElement::AddRef): 12071 (DeprecatedDOMHTMLElement::Release): 12072 (DeprecatedDOMHTMLElement::throwException): 12073 (DeprecatedDOMHTMLElement::callWebScriptMethod): 12074 (DeprecatedDOMHTMLElement::evaluateWebScript): 12075 (DeprecatedDOMHTMLElement::removeWebScriptKey): 12076 (DeprecatedDOMHTMLElement::stringRepresentation): 12077 (DeprecatedDOMHTMLElement::webScriptValueAtIndex): 12078 (DeprecatedDOMHTMLElement::setWebScriptValueAtIndex): 12079 (DeprecatedDOMHTMLElement::setException): 12080 (DeprecatedDOMHTMLElement::nodeName): 12081 (DeprecatedDOMHTMLElement::nodeValue): 12082 (DeprecatedDOMHTMLElement::setNodeValue): 12083 (DeprecatedDOMHTMLElement::nodeType): 12084 (DeprecatedDOMHTMLElement::parentNode): 12085 (DeprecatedDOMHTMLElement::childNodes): 12086 (DeprecatedDOMHTMLElement::firstChild): 12087 (DeprecatedDOMHTMLElement::lastChild): 12088 (DeprecatedDOMHTMLElement::previousSibling): 12089 (DeprecatedDOMHTMLElement::nextSibling): 12090 (DeprecatedDOMHTMLElement::attributes): 12091 (DeprecatedDOMHTMLElement::ownerDocument): 12092 (DeprecatedDOMHTMLElement::insertBefore): 12093 (DeprecatedDOMHTMLElement::replaceChild): 12094 (DeprecatedDOMHTMLElement::removeChild): 12095 (DeprecatedDOMHTMLElement::appendChild): 12096 (DeprecatedDOMHTMLElement::hasChildNodes): 12097 (DeprecatedDOMHTMLElement::cloneNode): 12098 (DeprecatedDOMHTMLElement::normalize): 12099 (DeprecatedDOMHTMLElement::isSupported): 12100 (DeprecatedDOMHTMLElement::namespaceURI): 12101 (DeprecatedDOMHTMLElement::prefix): 12102 (DeprecatedDOMHTMLElement::setPrefix): 12103 (DeprecatedDOMHTMLElement::localName): 12104 (DeprecatedDOMHTMLElement::hasAttributes): 12105 (DeprecatedDOMHTMLElement::isSameNode): 12106 (DeprecatedDOMHTMLElement::isEqualNode): 12107 (DeprecatedDOMHTMLElement::textContent): 12108 (DeprecatedDOMHTMLElement::setTextContent): 12109 (DeprecatedDOMHTMLElement::tagName): 12110 (DeprecatedDOMHTMLElement::getAttribute): 12111 (DeprecatedDOMHTMLElement::setAttribute): 12112 (DeprecatedDOMHTMLElement::removeAttribute): 12113 (DeprecatedDOMHTMLElement::getAttributeNode): 12114 (DeprecatedDOMHTMLElement::setAttributeNode): 12115 (DeprecatedDOMHTMLElement::removeAttributeNode): 12116 (DeprecatedDOMHTMLElement::getElementsByTagName): 12117 (DeprecatedDOMHTMLElement::getAttributeNS): 12118 (DeprecatedDOMHTMLElement::setAttributeNS): 12119 (DeprecatedDOMHTMLElement::removeAttributeNS): 12120 (DeprecatedDOMHTMLElement::getAttributeNodeNS): 12121 (DeprecatedDOMHTMLElement::setAttributeNodeNS): 12122 (DeprecatedDOMHTMLElement::getElementsByTagNameNS): 12123 (DeprecatedDOMHTMLElement::hasAttribute): 12124 (DeprecatedDOMHTMLElement::hasAttributeNS): 12125 (DeprecatedDOMHTMLElement::focus): 12126 (DeprecatedDOMHTMLElement::blur): 12127 (DeprecatedDOMHTMLFormElement::DeprecatedDOMHTMLFormElement): 12128 (DeprecatedDOMHTMLFormElement::AddRef): 12129 (DeprecatedDOMHTMLFormElement::Release): 12130 (DeprecatedDOMHTMLFormElement::throwException): 12131 (DeprecatedDOMHTMLFormElement::callWebScriptMethod): 12132 (DeprecatedDOMHTMLFormElement::evaluateWebScript): 12133 (DeprecatedDOMHTMLFormElement::removeWebScriptKey): 12134 (DeprecatedDOMHTMLFormElement::stringRepresentation): 12135 (DeprecatedDOMHTMLFormElement::webScriptValueAtIndex): 12136 (DeprecatedDOMHTMLFormElement::setWebScriptValueAtIndex): 12137 (DeprecatedDOMHTMLFormElement::setException): 12138 (DeprecatedDOMHTMLFormElement::nodeName): 12139 (DeprecatedDOMHTMLFormElement::nodeValue): 12140 (DeprecatedDOMHTMLFormElement::setNodeValue): 12141 (DeprecatedDOMHTMLFormElement::nodeType): 12142 (DeprecatedDOMHTMLFormElement::parentNode): 12143 (DeprecatedDOMHTMLFormElement::childNodes): 12144 (DeprecatedDOMHTMLFormElement::firstChild): 12145 (DeprecatedDOMHTMLFormElement::lastChild): 12146 (DeprecatedDOMHTMLFormElement::previousSibling): 12147 (DeprecatedDOMHTMLFormElement::nextSibling): 12148 (DeprecatedDOMHTMLFormElement::attributes): 12149 (DeprecatedDOMHTMLFormElement::ownerDocument): 12150 (DeprecatedDOMHTMLFormElement::insertBefore): 12151 (DeprecatedDOMHTMLFormElement::replaceChild): 12152 (DeprecatedDOMHTMLFormElement::removeChild): 12153 (DeprecatedDOMHTMLFormElement::appendChild): 12154 (DeprecatedDOMHTMLFormElement::hasChildNodes): 12155 (DeprecatedDOMHTMLFormElement::cloneNode): 12156 (DeprecatedDOMHTMLFormElement::normalize): 12157 (DeprecatedDOMHTMLFormElement::isSupported): 12158 (DeprecatedDOMHTMLFormElement::namespaceURI): 12159 (DeprecatedDOMHTMLFormElement::prefix): 12160 (DeprecatedDOMHTMLFormElement::setPrefix): 12161 (DeprecatedDOMHTMLFormElement::localName): 12162 (DeprecatedDOMHTMLFormElement::hasAttributes): 12163 (DeprecatedDOMHTMLFormElement::isSameNode): 12164 (DeprecatedDOMHTMLFormElement::isEqualNode): 12165 (DeprecatedDOMHTMLFormElement::textContent): 12166 (DeprecatedDOMHTMLFormElement::setTextContent): 12167 (DeprecatedDOMHTMLFormElement::tagName): 12168 (DeprecatedDOMHTMLFormElement::getAttribute): 12169 (DeprecatedDOMHTMLFormElement::setAttribute): 12170 (DeprecatedDOMHTMLFormElement::removeAttribute): 12171 (DeprecatedDOMHTMLFormElement::getAttributeNode): 12172 (DeprecatedDOMHTMLFormElement::setAttributeNode): 12173 (DeprecatedDOMHTMLFormElement::removeAttributeNode): 12174 (DeprecatedDOMHTMLFormElement::getElementsByTagName): 12175 (DeprecatedDOMHTMLFormElement::getAttributeNS): 12176 (DeprecatedDOMHTMLFormElement::setAttributeNS): 12177 (DeprecatedDOMHTMLFormElement::removeAttributeNS): 12178 (DeprecatedDOMHTMLFormElement::getAttributeNodeNS): 12179 (DeprecatedDOMHTMLFormElement::setAttributeNodeNS): 12180 (DeprecatedDOMHTMLFormElement::getElementsByTagNameNS): 12181 (DeprecatedDOMHTMLFormElement::hasAttribute): 12182 (DeprecatedDOMHTMLFormElement::hasAttributeNS): 12183 (DeprecatedDOMHTMLFormElement::focus): 12184 (DeprecatedDOMHTMLFormElement::blur): 12185 (DeprecatedDOMHTMLFormElement::idName): 12186 (DeprecatedDOMHTMLFormElement::setIdName): 12187 (DeprecatedDOMHTMLFormElement::title): 12188 (DeprecatedDOMHTMLFormElement::setTitle): 12189 (DeprecatedDOMHTMLFormElement::lang): 12190 (DeprecatedDOMHTMLFormElement::setLang): 12191 (DeprecatedDOMHTMLFormElement::dir): 12192 (DeprecatedDOMHTMLFormElement::setDir): 12193 (DeprecatedDOMHTMLFormElement::className): 12194 (DeprecatedDOMHTMLFormElement::setClassName): 12195 (DeprecatedDOMHTMLFormElement::innerHTML): 12196 (DeprecatedDOMHTMLFormElement::setInnerHTML): 12197 (DeprecatedDOMHTMLFormElement::innerText): 12198 (DeprecatedDOMHTMLFormElement::setInnerText): 12199 (DeprecatedDOMHTMLSelectElement::DeprecatedDOMHTMLSelectElement): 12200 (DeprecatedDOMHTMLSelectElement::AddRef): 12201 (DeprecatedDOMHTMLSelectElement::Release): 12202 (DeprecatedDOMHTMLSelectElement::throwException): 12203 (DeprecatedDOMHTMLSelectElement::callWebScriptMethod): 12204 (DeprecatedDOMHTMLSelectElement::evaluateWebScript): 12205 (DeprecatedDOMHTMLSelectElement::removeWebScriptKey): 12206 (DeprecatedDOMHTMLSelectElement::stringRepresentation): 12207 (DeprecatedDOMHTMLSelectElement::webScriptValueAtIndex): 12208 (DeprecatedDOMHTMLSelectElement::setWebScriptValueAtIndex): 12209 (DeprecatedDOMHTMLSelectElement::setException): 12210 (DeprecatedDOMHTMLSelectElement::nodeName): 12211 (DeprecatedDOMHTMLSelectElement::nodeValue): 12212 (DeprecatedDOMHTMLSelectElement::setNodeValue): 12213 (DeprecatedDOMHTMLSelectElement::nodeType): 12214 (DeprecatedDOMHTMLSelectElement::parentNode): 12215 (DeprecatedDOMHTMLSelectElement::childNodes): 12216 (DeprecatedDOMHTMLSelectElement::firstChild): 12217 (DeprecatedDOMHTMLSelectElement::lastChild): 12218 (DeprecatedDOMHTMLSelectElement::previousSibling): 12219 (DeprecatedDOMHTMLSelectElement::nextSibling): 12220 (DeprecatedDOMHTMLSelectElement::attributes): 12221 (DeprecatedDOMHTMLSelectElement::ownerDocument): 12222 (DeprecatedDOMHTMLSelectElement::insertBefore): 12223 (DeprecatedDOMHTMLSelectElement::replaceChild): 12224 (DeprecatedDOMHTMLSelectElement::removeChild): 12225 (DeprecatedDOMHTMLSelectElement::appendChild): 12226 (DeprecatedDOMHTMLSelectElement::hasChildNodes): 12227 (DeprecatedDOMHTMLSelectElement::cloneNode): 12228 (DeprecatedDOMHTMLSelectElement::normalize): 12229 (DeprecatedDOMHTMLSelectElement::isSupported): 12230 (DeprecatedDOMHTMLSelectElement::namespaceURI): 12231 (DeprecatedDOMHTMLSelectElement::prefix): 12232 (DeprecatedDOMHTMLSelectElement::setPrefix): 12233 (DeprecatedDOMHTMLSelectElement::localName): 12234 (DeprecatedDOMHTMLSelectElement::hasAttributes): 12235 (DeprecatedDOMHTMLSelectElement::isSameNode): 12236 (DeprecatedDOMHTMLSelectElement::isEqualNode): 12237 (DeprecatedDOMHTMLSelectElement::textContent): 12238 (DeprecatedDOMHTMLSelectElement::setTextContent): 12239 (DeprecatedDOMHTMLSelectElement::tagName): 12240 (DeprecatedDOMHTMLSelectElement::getAttribute): 12241 (DeprecatedDOMHTMLSelectElement::setAttribute): 12242 (DeprecatedDOMHTMLSelectElement::removeAttribute): 12243 (DeprecatedDOMHTMLSelectElement::getAttributeNode): 12244 (DeprecatedDOMHTMLSelectElement::setAttributeNode): 12245 (DeprecatedDOMHTMLSelectElement::removeAttributeNode): 12246 (DeprecatedDOMHTMLSelectElement::getElementsByTagName): 12247 (DeprecatedDOMHTMLSelectElement::getAttributeNS): 12248 (DeprecatedDOMHTMLSelectElement::setAttributeNS): 12249 (DeprecatedDOMHTMLSelectElement::removeAttributeNS): 12250 (DeprecatedDOMHTMLSelectElement::getAttributeNodeNS): 12251 (DeprecatedDOMHTMLSelectElement::setAttributeNodeNS): 12252 (DeprecatedDOMHTMLSelectElement::getElementsByTagNameNS): 12253 (DeprecatedDOMHTMLSelectElement::hasAttribute): 12254 (DeprecatedDOMHTMLSelectElement::hasAttributeNS): 12255 (DeprecatedDOMHTMLSelectElement::focus): 12256 (DeprecatedDOMHTMLSelectElement::blur): 12257 (DeprecatedDOMHTMLSelectElement::idName): 12258 (DeprecatedDOMHTMLSelectElement::setIdName): 12259 (DeprecatedDOMHTMLSelectElement::title): 12260 (DeprecatedDOMHTMLSelectElement::setTitle): 12261 (DeprecatedDOMHTMLSelectElement::lang): 12262 (DeprecatedDOMHTMLSelectElement::setLang): 12263 (DeprecatedDOMHTMLSelectElement::dir): 12264 (DeprecatedDOMHTMLSelectElement::setDir): 12265 (DeprecatedDOMHTMLSelectElement::className): 12266 (DeprecatedDOMHTMLSelectElement::setClassName): 12267 (DeprecatedDOMHTMLSelectElement::innerHTML): 12268 (DeprecatedDOMHTMLSelectElement::setInnerHTML): 12269 (DeprecatedDOMHTMLSelectElement::innerText): 12270 (DeprecatedDOMHTMLSelectElement::setInnerText): 12271 (DeprecatedDOMHTMLOptionElement::DeprecatedDOMHTMLOptionElement): 12272 (DeprecatedDOMHTMLOptionElement::AddRef): 12273 (DeprecatedDOMHTMLOptionElement::Release): 12274 (DeprecatedDOMHTMLOptionElement::throwException): 12275 (DeprecatedDOMHTMLOptionElement::callWebScriptMethod): 12276 (DeprecatedDOMHTMLOptionElement::evaluateWebScript): 12277 (DeprecatedDOMHTMLOptionElement::removeWebScriptKey): 12278 (DeprecatedDOMHTMLOptionElement::stringRepresentation): 12279 (DeprecatedDOMHTMLOptionElement::webScriptValueAtIndex): 12280 (DeprecatedDOMHTMLOptionElement::setWebScriptValueAtIndex): 12281 (DeprecatedDOMHTMLOptionElement::setException): 12282 (DeprecatedDOMHTMLOptionElement::nodeName): 12283 (DeprecatedDOMHTMLOptionElement::nodeValue): 12284 (DeprecatedDOMHTMLOptionElement::setNodeValue): 12285 (DeprecatedDOMHTMLOptionElement::nodeType): 12286 (DeprecatedDOMHTMLOptionElement::parentNode): 12287 (DeprecatedDOMHTMLOptionElement::childNodes): 12288 (DeprecatedDOMHTMLOptionElement::firstChild): 12289 (DeprecatedDOMHTMLOptionElement::lastChild): 12290 (DeprecatedDOMHTMLOptionElement::previousSibling): 12291 (DeprecatedDOMHTMLOptionElement::nextSibling): 12292 (DeprecatedDOMHTMLOptionElement::attributes): 12293 (DeprecatedDOMHTMLOptionElement::ownerDocument): 12294 (DeprecatedDOMHTMLOptionElement::insertBefore): 12295 (DeprecatedDOMHTMLOptionElement::replaceChild): 12296 (DeprecatedDOMHTMLOptionElement::removeChild): 12297 (DeprecatedDOMHTMLOptionElement::appendChild): 12298 (DeprecatedDOMHTMLOptionElement::hasChildNodes): 12299 (DeprecatedDOMHTMLOptionElement::cloneNode): 12300 (DeprecatedDOMHTMLOptionElement::normalize): 12301 (DeprecatedDOMHTMLOptionElement::isSupported): 12302 (DeprecatedDOMHTMLOptionElement::namespaceURI): 12303 (DeprecatedDOMHTMLOptionElement::prefix): 12304 (DeprecatedDOMHTMLOptionElement::setPrefix): 12305 (DeprecatedDOMHTMLOptionElement::localName): 12306 (DeprecatedDOMHTMLOptionElement::hasAttributes): 12307 (DeprecatedDOMHTMLOptionElement::isSameNode): 12308 (DeprecatedDOMHTMLOptionElement::isEqualNode): 12309 (DeprecatedDOMHTMLOptionElement::textContent): 12310 (DeprecatedDOMHTMLOptionElement::setTextContent): 12311 (DeprecatedDOMHTMLOptionElement::tagName): 12312 (DeprecatedDOMHTMLOptionElement::getAttribute): 12313 (DeprecatedDOMHTMLOptionElement::setAttribute): 12314 (DeprecatedDOMHTMLOptionElement::removeAttribute): 12315 (DeprecatedDOMHTMLOptionElement::getAttributeNode): 12316 (DeprecatedDOMHTMLOptionElement::setAttributeNode): 12317 (DeprecatedDOMHTMLOptionElement::removeAttributeNode): 12318 (DeprecatedDOMHTMLOptionElement::getElementsByTagName): 12319 (DeprecatedDOMHTMLOptionElement::getAttributeNS): 12320 (DeprecatedDOMHTMLOptionElement::setAttributeNS): 12321 (DeprecatedDOMHTMLOptionElement::removeAttributeNS): 12322 (DeprecatedDOMHTMLOptionElement::getAttributeNodeNS): 12323 (DeprecatedDOMHTMLOptionElement::setAttributeNodeNS): 12324 (DeprecatedDOMHTMLOptionElement::getElementsByTagNameNS): 12325 (DeprecatedDOMHTMLOptionElement::hasAttribute): 12326 (DeprecatedDOMHTMLOptionElement::hasAttributeNS): 12327 (DeprecatedDOMHTMLOptionElement::focus): 12328 (DeprecatedDOMHTMLOptionElement::blur): 12329 (DeprecatedDOMHTMLOptionElement::idName): 12330 (DeprecatedDOMHTMLOptionElement::setIdName): 12331 (DeprecatedDOMHTMLOptionElement::title): 12332 (DeprecatedDOMHTMLOptionElement::setTitle): 12333 (DeprecatedDOMHTMLOptionElement::lang): 12334 (DeprecatedDOMHTMLOptionElement::setLang): 12335 (DeprecatedDOMHTMLOptionElement::dir): 12336 (DeprecatedDOMHTMLOptionElement::setDir): 12337 (DeprecatedDOMHTMLOptionElement::className): 12338 (DeprecatedDOMHTMLOptionElement::setClassName): 12339 (DeprecatedDOMHTMLOptionElement::innerHTML): 12340 (DeprecatedDOMHTMLOptionElement::setInnerHTML): 12341 (DeprecatedDOMHTMLOptionElement::innerText): 12342 (DeprecatedDOMHTMLOptionElement::setInnerText): 12343 (DeprecatedDOMHTMLInputElement::DeprecatedDOMHTMLInputElement): 12344 (DeprecatedDOMHTMLInputElement::AddRef): 12345 (DeprecatedDOMHTMLInputElement::Release): 12346 (DeprecatedDOMHTMLInputElement::throwException): 12347 (DeprecatedDOMHTMLInputElement::callWebScriptMethod): 12348 (DeprecatedDOMHTMLInputElement::evaluateWebScript): 12349 (DeprecatedDOMHTMLInputElement::removeWebScriptKey): 12350 (DeprecatedDOMHTMLInputElement::stringRepresentation): 12351 (DeprecatedDOMHTMLInputElement::webScriptValueAtIndex): 12352 (DeprecatedDOMHTMLInputElement::setWebScriptValueAtIndex): 12353 (DeprecatedDOMHTMLInputElement::setException): 12354 (DeprecatedDOMHTMLInputElement::nodeName): 12355 (DeprecatedDOMHTMLInputElement::nodeValue): 12356 (DeprecatedDOMHTMLInputElement::setNodeValue): 12357 (DeprecatedDOMHTMLInputElement::nodeType): 12358 (DeprecatedDOMHTMLInputElement::parentNode): 12359 (DeprecatedDOMHTMLInputElement::childNodes): 12360 (DeprecatedDOMHTMLInputElement::firstChild): 12361 (DeprecatedDOMHTMLInputElement::lastChild): 12362 (DeprecatedDOMHTMLInputElement::previousSibling): 12363 (DeprecatedDOMHTMLInputElement::nextSibling): 12364 (DeprecatedDOMHTMLInputElement::attributes): 12365 (DeprecatedDOMHTMLInputElement::ownerDocument): 12366 (DeprecatedDOMHTMLInputElement::insertBefore): 12367 (DeprecatedDOMHTMLInputElement::replaceChild): 12368 (DeprecatedDOMHTMLInputElement::removeChild): 12369 (DeprecatedDOMHTMLInputElement::appendChild): 12370 (DeprecatedDOMHTMLInputElement::hasChildNodes): 12371 (DeprecatedDOMHTMLInputElement::cloneNode): 12372 (DeprecatedDOMHTMLInputElement::normalize): 12373 (DeprecatedDOMHTMLInputElement::isSupported): 12374 (DeprecatedDOMHTMLInputElement::namespaceURI): 12375 (DeprecatedDOMHTMLInputElement::prefix): 12376 (DeprecatedDOMHTMLInputElement::setPrefix): 12377 (DeprecatedDOMHTMLInputElement::localName): 12378 (DeprecatedDOMHTMLInputElement::hasAttributes): 12379 (DeprecatedDOMHTMLInputElement::isSameNode): 12380 (DeprecatedDOMHTMLInputElement::isEqualNode): 12381 (DeprecatedDOMHTMLInputElement::textContent): 12382 (DeprecatedDOMHTMLInputElement::setTextContent): 12383 (DeprecatedDOMHTMLInputElement::tagName): 12384 (DeprecatedDOMHTMLInputElement::getAttribute): 12385 (DeprecatedDOMHTMLInputElement::setAttribute): 12386 (DeprecatedDOMHTMLInputElement::removeAttribute): 12387 (DeprecatedDOMHTMLInputElement::getAttributeNode): 12388 (DeprecatedDOMHTMLInputElement::setAttributeNode): 12389 (DeprecatedDOMHTMLInputElement::removeAttributeNode): 12390 (DeprecatedDOMHTMLInputElement::getElementsByTagName): 12391 (DeprecatedDOMHTMLInputElement::getAttributeNS): 12392 (DeprecatedDOMHTMLInputElement::setAttributeNS): 12393 (DeprecatedDOMHTMLInputElement::removeAttributeNS): 12394 (DeprecatedDOMHTMLInputElement::getAttributeNodeNS): 12395 (DeprecatedDOMHTMLInputElement::setAttributeNodeNS): 12396 (DeprecatedDOMHTMLInputElement::getElementsByTagNameNS): 12397 (DeprecatedDOMHTMLInputElement::hasAttribute): 12398 (DeprecatedDOMHTMLInputElement::hasAttributeNS): 12399 (DeprecatedDOMHTMLInputElement::focus): 12400 (DeprecatedDOMHTMLInputElement::blur): 12401 (DeprecatedDOMHTMLInputElement::idName): 12402 (DeprecatedDOMHTMLInputElement::setIdName): 12403 (DeprecatedDOMHTMLInputElement::title): 12404 (DeprecatedDOMHTMLInputElement::setTitle): 12405 (DeprecatedDOMHTMLInputElement::lang): 12406 (DeprecatedDOMHTMLInputElement::setLang): 12407 (DeprecatedDOMHTMLInputElement::dir): 12408 (DeprecatedDOMHTMLInputElement::setDir): 12409 (DeprecatedDOMHTMLInputElement::className): 12410 (DeprecatedDOMHTMLInputElement::setClassName): 12411 (DeprecatedDOMHTMLInputElement::innerHTML): 12412 (DeprecatedDOMHTMLInputElement::setInnerHTML): 12413 (DeprecatedDOMHTMLInputElement::innerText): 12414 (DeprecatedDOMHTMLInputElement::setInnerText): 12415 (DeprecatedDOMHTMLTextAreaElement::DeprecatedDOMHTMLTextAreaElement): 12416 (DeprecatedDOMHTMLTextAreaElement::AddRef): 12417 (DeprecatedDOMHTMLTextAreaElement::Release): 12418 (DeprecatedDOMHTMLTextAreaElement::throwException): 12419 (DeprecatedDOMHTMLTextAreaElement::callWebScriptMethod): 12420 (DeprecatedDOMHTMLTextAreaElement::evaluateWebScript): 12421 (DeprecatedDOMHTMLTextAreaElement::removeWebScriptKey): 12422 (DeprecatedDOMHTMLTextAreaElement::stringRepresentation): 12423 (DeprecatedDOMHTMLTextAreaElement::webScriptValueAtIndex): 12424 (DeprecatedDOMHTMLTextAreaElement::setWebScriptValueAtIndex): 12425 (DeprecatedDOMHTMLTextAreaElement::setException): 12426 (DeprecatedDOMHTMLTextAreaElement::nodeName): 12427 (DeprecatedDOMHTMLTextAreaElement::nodeValue): 12428 (DeprecatedDOMHTMLTextAreaElement::setNodeValue): 12429 (DeprecatedDOMHTMLTextAreaElement::nodeType): 12430 (DeprecatedDOMHTMLTextAreaElement::parentNode): 12431 (DeprecatedDOMHTMLTextAreaElement::childNodes): 12432 (DeprecatedDOMHTMLTextAreaElement::firstChild): 12433 (DeprecatedDOMHTMLTextAreaElement::lastChild): 12434 (DeprecatedDOMHTMLTextAreaElement::previousSibling): 12435 (DeprecatedDOMHTMLTextAreaElement::nextSibling): 12436 (DeprecatedDOMHTMLTextAreaElement::attributes): 12437 (DeprecatedDOMHTMLTextAreaElement::ownerDocument): 12438 (DeprecatedDOMHTMLTextAreaElement::insertBefore): 12439 (DeprecatedDOMHTMLTextAreaElement::replaceChild): 12440 (DeprecatedDOMHTMLTextAreaElement::removeChild): 12441 (DeprecatedDOMHTMLTextAreaElement::appendChild): 12442 (DeprecatedDOMHTMLTextAreaElement::hasChildNodes): 12443 (DeprecatedDOMHTMLTextAreaElement::cloneNode): 12444 (DeprecatedDOMHTMLTextAreaElement::normalize): 12445 (DeprecatedDOMHTMLTextAreaElement::isSupported): 12446 (DeprecatedDOMHTMLTextAreaElement::namespaceURI): 12447 (DeprecatedDOMHTMLTextAreaElement::prefix): 12448 (DeprecatedDOMHTMLTextAreaElement::setPrefix): 12449 (DeprecatedDOMHTMLTextAreaElement::localName): 12450 (DeprecatedDOMHTMLTextAreaElement::hasAttributes): 12451 (DeprecatedDOMHTMLTextAreaElement::isSameNode): 12452 (DeprecatedDOMHTMLTextAreaElement::isEqualNode): 12453 (DeprecatedDOMHTMLTextAreaElement::textContent): 12454 (DeprecatedDOMHTMLTextAreaElement::setTextContent): 12455 (DeprecatedDOMHTMLTextAreaElement::tagName): 12456 (DeprecatedDOMHTMLTextAreaElement::getAttribute): 12457 (DeprecatedDOMHTMLTextAreaElement::setAttribute): 12458 (DeprecatedDOMHTMLTextAreaElement::removeAttribute): 12459 (DeprecatedDOMHTMLTextAreaElement::getAttributeNode): 12460 (DeprecatedDOMHTMLTextAreaElement::setAttributeNode): 12461 (DeprecatedDOMHTMLTextAreaElement::removeAttributeNode): 12462 (DeprecatedDOMHTMLTextAreaElement::getElementsByTagName): 12463 (DeprecatedDOMHTMLTextAreaElement::getAttributeNS): 12464 (DeprecatedDOMHTMLTextAreaElement::setAttributeNS): 12465 (DeprecatedDOMHTMLTextAreaElement::removeAttributeNS): 12466 (DeprecatedDOMHTMLTextAreaElement::getAttributeNodeNS): 12467 (DeprecatedDOMHTMLTextAreaElement::setAttributeNodeNS): 12468 (DeprecatedDOMHTMLTextAreaElement::getElementsByTagNameNS): 12469 (DeprecatedDOMHTMLTextAreaElement::hasAttribute): 12470 (DeprecatedDOMHTMLTextAreaElement::hasAttributeNS): 12471 (DeprecatedDOMHTMLTextAreaElement::focus): 12472 (DeprecatedDOMHTMLTextAreaElement::blur): 12473 (DeprecatedDOMHTMLTextAreaElement::idName): 12474 (DeprecatedDOMHTMLTextAreaElement::setIdName): 12475 (DeprecatedDOMHTMLTextAreaElement::title): 12476 (DeprecatedDOMHTMLTextAreaElement::setTitle): 12477 (DeprecatedDOMHTMLTextAreaElement::lang): 12478 (DeprecatedDOMHTMLTextAreaElement::setLang): 12479 (DeprecatedDOMHTMLTextAreaElement::dir): 12480 (DeprecatedDOMHTMLTextAreaElement::setDir): 12481 (DeprecatedDOMHTMLTextAreaElement::className): 12482 (DeprecatedDOMHTMLTextAreaElement::setClassName): 12483 (DeprecatedDOMHTMLTextAreaElement::innerHTML): 12484 (DeprecatedDOMHTMLTextAreaElement::setInnerHTML): 12485 (DeprecatedDOMHTMLTextAreaElement::innerText): 12486 (DeprecatedDOMHTMLTextAreaElement::setInnerText): 12487 * Interfaces/DOMCSS.idl: 12488 * Interfaces/DOMCore.idl: 12489 * Interfaces/DOMEvents.idl: 12490 * Interfaces/DOMExtensions.idl: 12491 * Interfaces/DOMHTML.idl: 12492 * Interfaces/DOMPrivate.idl: 12493 * Interfaces/DOMRange.idl: 12494 * Interfaces/DOMWindow.idl: 12495 * Interfaces/IWebEditingDelegate.idl: 12496 * Interfaces/IWebFormDelegate.idl: 12497 * Interfaces/IWebFrame.idl: 12498 * Interfaces/IWebHTMLRepresentation.idl: 12499 * Interfaces/IWebView.idl: 12500 * WebEditorClient.cpp: 12501 (WebEditorClient::shouldDeleteRange): 12502 (WebEditorClient::shouldInsertText): 12503 (WebEditorClient::textFieldDidBeginEditing): 12504 (WebEditorClient::textFieldDidEndEditing): 12505 (WebEditorClient::textDidChangeInTextField): 12506 (WebEditorClient::doTextFieldCommandFromEvent): 12507 (WebEditorClient::textWillBeDeletedInTextField): 12508 (WebEditorClient::textDidChangeInTextArea): 12509 * WebElementPropertyBag.cpp: 12510 (WebElementPropertyBag::Read): 12511 * WebFrame.cpp: 12512 (elementFromDOMElement): 12513 (formElementFromDOMElement): 12514 (inputElementFromDOMElement): 12515 (WebFrame::DOMDocument): 12516 (WebFrame::frameElement): 12517 (WebFrame::currentForm): 12518 (WebFrame::elementWithName): 12519 (WebFrame::formForElement): 12520 (WebFrame::elementDoesAutoComplete): 12521 (WebFrame::controlsInForm): 12522 (WebFrame::elementIsPassword): 12523 (WebFrame::searchForLabelsBeforeElement): 12524 (WebFrame::matchLabelsAgainstElement): 12525 (WebFrame::dispatchWillSubmitForm): 12526 * WebFrame.h: 12527 * WebHTMLRepresentation.cpp: 12528 (WebHTMLRepresentation::attributedStringFromDOMNodes): 12529 (WebHTMLRepresentation::elementWithName): 12530 (WebHTMLRepresentation::elementDoesAutoComplete): 12531 (WebHTMLRepresentation::elementIsPassword): 12532 (WebHTMLRepresentation::formForElement): 12533 (WebHTMLRepresentation::currentForm): 12534 (WebHTMLRepresentation::controlsInForm): 12535 (WebHTMLRepresentation::searchForLabels): 12536 (WebHTMLRepresentation::matchLabels): 12537 * WebHTMLRepresentation.h: 12538 * WebView.cpp: 12539 (WebView::mainFrameDocument): 12540 (WebView::computedStyleForElement): 12541 (WebView::editableDOMRangeForPoint): 12542 (WebView::setSelectedDOMRange): 12543 (WebView::selectedDOMRange): 12544 (WebView::setTypingStyle): 12545 (WebView::typingStyle): 12546 (WebView::styleDeclarationWithText): 12547 (WebView::replaceSelectionWithNode): 12548 (WebView::applyStyle): 12549 * WebView.h: 12550 12551 2007-08-22 Jon Honeycutt <jhoneycutt (a] apple.com> 12552 12553 Reviewed by Adam. 12554 12555 Refactoring of <radr://problem/5220598> Dragging URL out and back 12556 inserts a second copy of the URL 12557 12558 * Interfaces/IWebViewPrivate.idl: Added setCustomDropTarget and 12559 removeCustomDropTarget 12560 * WebView.cpp: 12561 (WebView::WebView): Initialize m_hasCustomDropTarget 12562 (WebView::setCustomDropTarget): Revoke any existing drop target and set 12563 the incoming drop target. 12564 (WebView::removeCustomDropTarget): Revoke any existing drop target and 12565 set the default drop target. 12566 * WebView.h: 12567 12568 2007-08-21 Ada Chan <adachan (a] apple.com> 12569 12570 Fix <rdar://problem/5416630> Accelerator to open link in window in background opens window in foreground instead 12571 Placing tooltip window at the topmost in z-order brought windows that were opened in the 12572 background to the front. Use HWND_TOP instead. 12573 12574 Reviewed by Adam. 12575 12576 * WebView.cpp: 12577 (WebView::initializeToolTipWindow): 12578 12579 2007-08-21 Adam Roben <aroben (a] apple.com> 12580 12581 Switch Windows to using FrameView::layoutIfNeededRecursive 12582 12583 Reviewed by Darin Adler. 12584 12585 * WebFrame.cpp: Removed layoutIfNeededRecursive. 12586 * WebFrame.h: Ditto. 12587 * WebView.cpp: 12588 (WebView::updateBackingStore): Call FrameView::layoutIfNeededRecursive. 12589 12590 2007-08-17 Adam Roben <aroben (a] apple.com> 12591 12592 Fix <rdar://5192578> Inspect Element should not appear in context menu in non-debug mode 12593 12594 We now follow the same logic as Mac WebKit for displaying the Inspect Element item: 12595 1) If DisableWebKitDeveloperExtras is set to true, don't display it 12596 2) If not, and we're in a debug build, display it 12597 3) If not, and we're in a release build, display it if 12598 WebKitDeveloperExtras is set to true 12599 12600 Reviewed by Ada. 12601 12602 * Interfaces/IWebPreferencesPrivate.idl: Added. 12603 * WebKit.vcproj/Interfaces.vcproj: Add new IWebPreferencesPrivate.idl 12604 file to project. 12605 * WebKit.vcproj/WebKitGUID.vcproj: Added generated .c file for 12606 IWebPreferencesPrivate to project. 12607 * WebPreferenceKeysPrivate.h: Added new keys. 12608 * WebPreferences.cpp: Added IID_WebPreferences. 12609 (WebPreferences::postPreferencesChangesNotification): Added an explicit 12610 cast needed now that WebPreferences implements two interfaces. 12611 (WebPreferences::QueryInterface): Added new cases. 12612 (WebPreferences::setDeveloperExtrasEnabled): Added. 12613 (WebPreferences::developerExtrasEnabled): Added. 12614 (WebPreferences::developerExtrasDisabledByOverride): Added. 12615 * WebPreferences.h: Now implements IWebPreferencesPrivate. 12616 * WebView.cpp: 12617 (WebView::updateWebCoreSettingsFromPreferences): Call developerExtrasEnabled. 12618 (WebView::developerExtrasEnabled): Ported from -[WebView _developerExtrasEnabled]. 12619 * WebView.h: 12620 12621 2007-08-17 Adam Roben <aroben (a] apple.com> 12622 12623 Add WebPreferences::sharedStandardPreferences 12624 12625 This is a convenience method to get the standard preferences object so 12626 that within WebKit we don't have to deal with the fact that COM doesn't 12627 support static methods. 12628 12629 Reviewed by Ada. 12630 12631 * WebHistory.cpp: 12632 (WebHistory::WebHistory): Use sharedStandardPreferences. 12633 * WebIconDatabase.cpp: 12634 (WebIconDatabase::init): Ditto. 12635 * WebPreferences.cpp: 12636 (WebPreferences::sharedStandardPreferences): Added. 12637 (WebPreferences::getInstanceForIdentifier): Use sharedStandardPreferences. 12638 (WebPreferences::standardPreferences): Ditto. 12639 * WebPreferences.h: 12640 * WebView.cpp: 12641 (WebView::preferences): Ditto. 12642 12643 2007-08-17 Anders Carlsson <andersca (a] apple.com> 12644 12645 Build fix. 12646 12647 * WebFrame.cpp: 12648 (WebFrame::createPlugin): 12649 * WebFrame.h: 12650 12651 2007-08-13 Geoffrey Garen <ggaren (a] apple.com> 12652 12653 Reviewed by Dave Hyatt. 12654 12655 WebKit changes to support new cache eviction model in WebCore. 12656 12657 * WebPreferences.cpp: 12658 (WebPreferences::initialize): 12659 12660 * WebView/WebPreferences.m: Modified to reflect new API in WebCore. 12661 * WebView.cpp: 12662 (WebView::initializeCacheSizesIfNecessary): Slightly increased cache 12663 size on low memory systems to avoid affecting the PLT for now. 12664 12665 2007-08-14 Steve Falkenburg <sfalken (a] apple.com> 12666 12667 <rdar://problem/5411482> Windows user agent language always returns "en" 12668 12669 Call WebCore::defaultLanguage() to pick up UA language. 12670 12671 Reviewed by Oliver. 12672 12673 * WebView.cpp: 12674 (WebView::userAgentForKURL): 12675 12676 2007-08-15 Peter Kasting <pkasting (a] google.com> 12677 12678 Reviewed by Darin Adler. 12679 12680 http://bugs.webkit.org/show_bug.cgi?id=14967 part 1 - Eliminate most implicit 12681 conversions of wtf::Vector<T> to T* by explicitly calling .data() 12682 12683 * WebView.cpp: 12684 (getCompositionString): 12685 12686 2007-08-12 Adam Roben <aroben (a] apple.com> 12687 12688 Store user defaults in a non-mutable CFDictionaryRef 12689 12690 Also renamed WebPreferences' static members: 12691 m_standardPreferences -> s_standardPreferences 12692 m_standardUserDefaults -> s_defaultSettings 12693 12694 Reviewed by Darin and John. 12695 12696 * WebPreferences.cpp: 12697 (WebPreferences::getInstanceForIdentifier): 12698 (WebPreferences::initializeUserDefaults): Construct the dictionary as a 12699 local CFMutableDictionaryRef, then assign it to the non-mutable static 12700 member. 12701 (WebPreferences::valueForKey): 12702 (WebPreferences::removeDefaultsIfNeeded): 12703 (WebPreferences::standardPreferences): 12704 * WebPreferences.h: 12705 12706 2007-08-12 Adam Roben <aroben (a] apple.com> 12707 12708 Fix <rdar://problem/5214504> No way to change WebPreferences defaults (all preferences get written to disk) 12709 12710 We now only write to disk values that have been explicitly set, and 12711 never write any default values. 12712 12713 This is not enough, however, as anyone who has used WebKit prior to 12714 this change will have the default values sitting in their preferences 12715 plist on disk. To remedy this, we perform a one-time removal of any 12716 key-value pairs that match a pair in the defaults dictionary. 12717 12718 Reviewed by Steve, John, Ada, and Darin. 12719 12720 * WebPreferenceKeysPrivate.h: Added new key to ensure we only remove 12721 the defaults once. 12722 * WebPreferences.cpp: 12723 (WebPreferences::initializeDefaultSettings): Renamed from initialize, and 12724 made sure we only set up the defaults dictionary once. Now that the 12725 defaults dictionary is never modified after creation, we don't need to 12726 check whether the keys are already present. 12727 (WebPreferences::setStringValue): Don't modify the defaults dictionary. 12728 (WebPreferences::setIntegerValue): Ditto. 12729 (WebPreferences::setBoolValue): Ditto. 12730 (WebPreferences::save): Write out the user's preferences, not the defaults. 12731 (WebPreferences::load): 12732 - Removed gotos and early declarations now that we're using 12733 RetainPtr everywhere. 12734 - Initialize m_privatePrefs with an empty dictionary if we didn't 12735 read in a plist. 12736 - Call migrateDefaultSettingsFromSafari3Beta after loading. 12737 (WebPreferences::migrateDefaultSettingsFromSafari3Beta): Added. 12738 (WebPreferences::removeValuesMatchingDefaultSettings): Added. 12739 (WebPreferences::initWithIdentifier): Don't initialize m_privatePrefs 12740 -- load() does this now. 12741 * WebPreferences.h: Updated/added declarations. 12742 12743 2007-08-12 Adam Roben <aroben (a] apple.com> 12744 12745 Use RetainPtr to store WebPreferences::m_privatePrefs 12746 12747 Reviewed by Darin Adler. 12748 12749 * WebPreferences.cpp: 12750 (WebPreferences::setStringValue): 12751 (WebPreferences::setIntegerValue): 12752 (WebPreferences::setBoolValue): 12753 (WebPreferences::initWithIdentifier): 12754 * WebPreferences.h: 12755 12756 2007-08-12 Adam Roben <aroben (a] apple.com> 12757 12758 Fix <rdar://problem/5278790> Hole for find-on-page match in subframe isn't clipped by frame bounds 12759 12760 Reviewed by Maciej. 12761 12762 * WebView.cpp: 12763 (WebView::rectsForTextMatches): Ported fix from r23586. 12764 12765 2007-08-12 Adam Roben <aroben (a] apple.com> 12766 12767 Prevent an ASSERT on launch by initializing AtomicString in WebKitGraphics 12768 12769 Reviewed by Maciej. 12770 12771 * WebKitGraphics.cpp: 12772 (makeFont): 12773 12774 2007-08-10 Ada Chan <adachan (a] apple.com> 12775 12776 Reviewed by Adam and Darin. 12777 12778 <rdar://problem/5403095> Crash in WebViewWndProc after closing a window 12779 We are seeing another case where WM_SETFOCUS is sent after WM_DESTROY has been handled in WebView. 12780 Bail early in the wndProc if WebView is set to be destroyed. 12781 12782 * WebView.cpp: 12783 (WebViewWndProc): 12784 12785 2007-08-02 Ada Chan <adachan (a] apple.com> 12786 12787 Reviewed by Steve. 12788 12789 <rdar://problem/5079175> Printing header and footer 12790 12791 * Interfaces/IWebUIDelegate.idl: added methods for header/footer drawing. 12792 * WebFrame.cpp: 12793 (WebFrame::headerAndFooterHeights): ask client for the header and 12794 footer heights via IWebUIDelegate2 methods. 12795 (WebFrame::computePageRects): pass in header and footer heights when 12796 calculating page rect heights. 12797 (WebFrame::spoolPages): ask client to draw header and footer via 12798 IWebUIDelegate2 methods. 12799 * WebFrame.h: 12800 * WebKitGraphics.cpp: 12801 (DrawTextAtPoint): the code assumes color has 4 components - might as well 12802 assert it. 12803 12804 2007-08-01 Steve Falkenburg <sfalken (a] apple.com> 12805 12806 Build mod: Fix sln to match configs in vcproj. 12807 12808 Reviewed by Adam. 12809 12810 * WebKit.vcproj/WebKit.make: 12811 * WebKit.vcproj/WebKit.submit.sln: 12812 12813 2007-07-27 Justin Garcia <justin.garcia (a] apple.com> 12814 12815 Reviewed by Tristan. 12816 12817 <rdar://problem/5098931> Attachments are lost when they are moved into a ToDo after a delete 12818 12819 * WebEditorClient.cpp: 12820 (WebEditorClient::shouldMoveRangeAfterDelete): Method stub. 12821 * WebEditorClient.h: 12822 12823 2007-07-27 Anders Carlsson <andersca (a] apple.com> 12824 12825 Reviewed by Adam. 12826 12827 Add FIXME comment. 12828 12829 * Interfaces/DOMHTML.idl: 12830 12831 2007-07-27 Ada Chan <adachan (a] apple.com> 12832 12833 Reviewed by Adam. 12834 12835 Added methods to track user edited text fields now that 12836 <rdar://problem/5359921> has been fixed. 12837 12838 * DOMHTMLClasses.cpp: 12839 (DOMHTMLInputElement::QueryInterface): 12840 (DOMHTMLInputElement::isUserEdited): 12841 (DOMHTMLTextAreaElement::QueryInterface): 12842 (DOMHTMLTextAreaElement::isUserEdited): 12843 * DOMHTMLClasses.h: 12844 * Interfaces/DOMPrivate.idl: 12845 12846 2007-07-27 Adam Roben <aroben (a] apple.com> 12847 12848 Fix Bug 14773: REGRESSION (r24630): ASSERT_NOT_REACHED in DOMHTMLInputElement::name on Windows 12849 http://bugs.webkit.org/show_bug.cgi?id=14773 12850 12851 Reviewed by Steve. 12852 12853 * Interfaces/DOMHTML.idl: Change IDOMHTMLInputElement back to 12854 inheriting from IDOMElement. Safari 3 Beta uses this interface, so we 12855 can't change its vtable. 12856 12857 2007-07-25 Ada Chan <adachan (a] apple.com> 12858 12859 Reviewed by Adam and Steve. 12860 12861 Implemented some DOM methods and other fixes for <rdar://problem/5311601>. 12862 12863 * DOMCoreClasses.cpp: 12864 (DOMNode::ownerDocument): implemented 12865 (DOMDocument::getComputedStyle): get the DOMElement via QueryInterface 12866 (DOMElement::QueryInterface): 12867 * DOMHTMLClasses.cpp: 12868 (DOMHTMLDocument::body): fixed leak 12869 (DOMHTMLFormElement::action): implemented 12870 (DOMHTMLFormElement::method): ditto 12871 (DOMHTMLInputElement::form): ditto 12872 (DOMHTMLTextAreaElement::form): ditto 12873 * Interfaces/DOMHTML.idl: IDOMHTMLInputElement should inherit from IDOMHTMLElement 12874 12875 2007-07-24 Steve Falkenburg <sfalken (a] apple.com> 12876 12877 Removed touch of WebKit.rc to prevent rebuilds of the rc file. 12878 The autoversion info can get slightly out of date now, but this isn't a huge problem relative to the rebuilds. 12879 12880 Rubber-stamped by Adam. 12881 12882 * WebKit.vcproj/WebKit.vcproj: 12883 12884 2007-07-23 Steve Falkenburg <sfalken (a] apple.com> 12885 12886 Fixes to versioning script. 12887 12888 Reviewed by Ada. 12889 12890 * WebKit.vcproj/auto-version.sh: 12891 12892 2007-07-23 Adam Roben <aroben (a] apple.com> 12893 12894 Implement IWebHistoryItem::[set]AlternateTitle 12895 12896 The argument types were reversed for these two methods, so I fixed that as 12897 well. 12898 12899 Reviewed by Geoff and Oliver. 12900 12901 * Interfaces/IWebHistoryItem.idl: 12902 * WebHistoryItem.cpp: 12903 (WebHistoryItem::setAlternateTitle): Implemented. 12904 (WebHistoryItem::alternateTitle): Implemented. 12905 * WebHistoryItem.h: 12906 12907 2007-07-23 Ada Chan <adachan (a] apple.com> 12908 12909 Reviewed by Steve. 12910 12911 Added a new text drawing method that allows caller to override the font smoothing level. 12912 12913 * WebKit.vcproj/WebKit.def: 12914 * WebKit.vcproj/WebKit_debug.def: 12915 * WebKitGraphics.cpp: 12916 (WebDrawText): 12917 * WebKitGraphics.h: 12918 12919 2007-07-22 Adam Roben <aroben (a] apple.com> 12920 12921 Implement IDOMElement::setAttribute 12922 12923 This method was mistakenly called "setResult" in DOMCore.idl, so I 12924 fixed that as well. 12925 12926 Needed for <rdar://problem/5314906>. 12927 12928 Reviewed by Ada. 12929 12930 * DOMCoreClasses.cpp: 12931 (DOMElement::setAttribute): Implemented/renamed. 12932 * DOMCoreClasses.h: Renamed setResult => setAttribute. 12933 * DOMHTMLClasses.h: Ditto. 12934 * Interfaces/DOMCore.idl: Ditto. 12935 12936 2007-07-21 Ada Chan <adachan (a] apple.com> 12937 12938 Reviewed by Adam. 12939 12940 Fix bug 14706: http://bugs.webkit.org/show_bug.cgi?id=14706 12941 Need to set the last visited time before calling WebHistory::addItem(). 12942 12943 * WebHistory.cpp: 12944 (WebHistory::addItemForURL): 12945 12946 2007-07-20 Justin Garcia <justin.garcia (a] apple.com> 12947 12948 Reviewed by Darin Adler. 12949 12950 <rdar://problem/5109817> Ctrl-click on word in non-editable text doesn't select it 12951 12952 * WebEditorClient.cpp: Removed the now unused selectWordBeforeMenuEvent(). 12953 * WebEditorClient.h: 12954 12955 2007-07-20 Ada Chan <adachan (a] apple.com> 12956 12957 Reviewed by Steve. 12958 12959 <rdar://problem/5350832> History item's visitedCount wasn't updated correctly 12960 12961 The call to setLastVisitedTimeInterval() in WebHistory::addItemForURL() does not 12962 really increment the visitedCount of the HistoryItem - because we only increment the count 12963 if the last visited time is different. We should initialize the HistoryItem with 12964 lastVisited time = 0 so when we call setLastVisitedTimeInterval() later, it'll update 12965 the last visited time AND the visitedCount. 12966 12967 * WebHistory.cpp: 12968 (WebHistory::addItemForURL): 12969 12970 2007-07-20 Oliver Hunt <oliver (a] apple.com> 12971 12972 Reviewed by Maciej. 12973 12974 <rdar://problem/5349668> WebKit/Win needs to send same key events during IME composition as it does on mac 12975 12976 Removed guards against sending key events during composition, and added a flag 12977 to indicate a key event is IME related. This is needed to prevent the first 12978 keydown from firing a keypress event, and makes WebEditorClient::handleInputMethodKeypress 12979 somewhat cleaner. 12980 12981 * WebEditorClient.cpp: 12982 (WebEditorClient::handleInputMethodKeypress): 12983 * WebView.cpp: 12984 (WebView::keyUp): 12985 (WebView::keyDown): 12986 * WebView.h: 12987 (WebView::inIMEKeyDown): 12988 12989 2007-07-19 Maciej Stachowiak <mjs (a] apple.com> 12990 12991 Reviewed by Adam. 12992 12993 - WebKit part of fix for <rdar://problem/5262230> Crash while loading a popup in addictinggames.com 12994 12995 Made closeWindowSoon fire on a timer instead of happening synchronously. 12996 12997 * WebChromeClient.cpp: 12998 (WebChromeClient::closeWindowSoon): Actually close the window on a timer, not immediately. 12999 * WebKit.vcproj/WebKit.vcproj: 13000 * WebView.cpp: 13001 (WebView::WebView): 13002 (WebView::closeWindowSoon): 13003 (WebView::closeWindowTimerFired): 13004 * WebView.h: 13005 13006 2007-07-18 Timothy Hatcher <timothy (a] apple.com> 13007 13008 Reviewed by Adam. 13009 13010 Make the Page with the now required InspectorClient. 13011 13012 * WebView.cpp: 13013 (WebView::initWithFrame): 13014 13015 2007-07-18 Sam Weinig <sam (a] webkit.org> 13016 13017 Build fix. 13018 13019 * WebFrame.cpp: 13020 (WebFrame::dispatchDecidePolicyForMIMEType): 13021 (WebFrame::objectContentType): 13022 * WebView.cpp: 13023 (WebView::canShowMIMEType): 13024 13025 2007-07-17 Brady Eidson <beidson (a] apple.com> 13026 13027 Blind Windows build fix from r24395 13028 13029 * WebView.cpp: 13030 (WebView::initWithFrame): BSTR, not BString 13031 13032 2007-07-17 Brady Eidson <beidson (a] apple.com> 13033 13034 Reviewed by Steve 13035 13036 <rdar://problem/4516185> - FTP Directory Listings 13037 13038 * Interfaces/IWebUIDelegate.idl: Add IWebUIDelegate2 method for getting the path to the template 13039 13040 * WebView.cpp: 13041 (WebView::initWithFrame): Set the preference for the template path in WebCore when the first 13042 WebView is initialized 13043 13044 2007-07-17 Ada Chan <adachan (a] apple.com> 13045 13046 Rubbet-stamped by Adam. 13047 13048 Fixed build. 13049 13050 * Interfaces/IWebFramePrivate.idl: 13051 * WebContextMenuClient.cpp: 13052 (fixMenuReceivedFromOldSafari): 13053 * WebFrame.cpp: 13054 (WebFrame::loadURLIntoChild): 13055 (WebFrame::download): 13056 * WebFrame.h: 13057 13058 2007-07-17 Adam Roben <aroben (a] apple.com> 13059 13060 Fix Bug 14324: Cannot remove/customize the "Inspect Element" contextual menu item 13061 http://bugs.webkit.org/show_bug.cgi?id=14324 13062 13063 If we detect that we're running against the Safari 3 Beta, we add back 13064 the Inspect Element menu item after passing it off to the delegate 13065 because Safari's UI delegate will remove it. 13066 13067 Reviewed by Tim. 13068 13069 * WebContextMenuClient.cpp: 13070 (isPreInspectElementTagSafari): Added. 13071 (fixMenuReceivedFromOldSafari): Added. 13072 (WebContextMenuClient::getCustomMenuFromDefaultItems): Call 13073 fixMenuReceivedFromOldSafari before returning the new menu. 13074 13075 2007-07-17 Adam Roben <aroben (a] apple.com> 13076 13077 Remove WebContextMenuClient::shouldIncludeInspectElementItem 13078 13079 Reviewed by Tim. 13080 13081 * WebContextMenuClient.cpp: 13082 * WebContextMenuClient.h: 13083 13084 2007-07-17 Adam Roben <aroben (a] apple.com> 13085 13086 Initialize Settings::developerExtrasEnabled 13087 13088 Reviewed by Tim. 13089 13090 * WebView.cpp: 13091 (WebView::updateWebCoreSettingsFromPreferences): 13092 13093 2007-07-17 Geoffrey Garen <ggaren (a] apple.com> 13094 13095 Build fix. 13096 13097 * WebContextMenuClient.cpp: 13098 (WebContextMenuClient::searchWithGoogle): Pass false for lockHistory 13099 like we do elsewhere. 13100 13101 2007-07-17 Oliver Hunt <oliver (a] apple.com> 13102 13103 Reviewed by Adam. 13104 13105 Fix for <rdar://problem/5339416> Candidate window does not 13106 appear in the correct location for japanese IME 13107 13108 * WebView.cpp: 13109 (WebView::prepareCandidateWindow): 13110 We now use an exclusion zone so that the composition window never 13111 overlaps the composition string 13112 (WebView::onIMERequestCharPosition): 13113 Correctly handle character offsets marked regions 13114 13115 2007-07-16 Oliver Hunt <oliver (a] apple.com> 13116 13117 Reviewed by Maciej. 13118 13119 Fix for <rdar://problem/5334818> Support IME reconversion in windows 13120 13121 Also includes a small amount of IME refactoring. 13122 13123 * WebView.cpp: 13124 (WebView::onIMERequestCharPosition): 13125 (WebView::onIMERequestReconvertString): 13126 (WebView::onIMERequest): 13127 * WebView.h: 13128 13129 2007-07-16 Brady Eidson <beidson (a] apple.com> 13130 13131 Reviewed by Adam 13132 13133 Begin the arduous task of localizing FTP directory listings while removing a global initializer! 13134 13135 * English.lproj/Localizable.strings: 13136 * WebCoreLocalizedStrings.cpp: 13137 (WebCore::unknownFileSizeText): 13138 13139 2007-07-16 Oliver Hunt <oliver (a] apple.com> 13140 13141 Reviewed by Maciej. 13142 13143 Fix for <rdar://problem/5334826> Chinese IME composition window does not appear in the correct location 13144 13145 Respect IME requests for character position. 13146 13147 * WebView.cpp: 13148 (WebView::onIMERequestCharPosition): 13149 (WebView::onIMERequest): 13150 * WebView.h: 13151 13152 2007-07-16 Adam Roben <aroben (a] apple.com> 13153 13154 WebKit/win part of <rdar://problem/5336005> Calling window.print() on a subframe prints whole page, should only print that subframe 13155 13156 Reviewed by Darin Adler. 13157 13158 * Interfaces/IWebUIDelegate.idl: Rename print to printFrame to closer 13159 match the Mac method, and copy more of the Mac API comments. 13160 * WebChromeClient.cpp: 13161 (WebChromeClient::print): Call printFrame instead of print. 13162 13163 2007-07-16 Adam Roben <aroben (a] apple.com> 13164 13165 Updated WebChromeClient for ChromeClient changes. 13166 13167 Reviewed by Darin Adler. 13168 13169 * WebChromeClient.cpp: 13170 (WebChromeClient::print): Added a Frame* parameter. 13171 * WebChromeClient.h: Ditto. 13172 13173 2007-07-16 Oliver Hunt <oliver (a] apple.com> 13174 13175 Reviewed by Steve. 13176 13177 Fix for http://bugs.webkit.org/show_bug.cgi?id=14630 13178 13179 Remove bogus assertion 13180 13181 * WebView.cpp: 13182 (WebView::getIMMContext): 13183 13184 2007-07-14 Brady Eidson <beidson (a] apple.com> 13185 13186 Reviewed by Sam 13187 13188 Set the pref to override the policy delegate for FTP directory listings on Windows 13189 13190 * WebView.cpp: 13191 (WebView::updateWebCoreSettingsFromPreferences): 13192 13193 2007-07-13 Oliver Hunt <oliver (a] apple.com> 13194 13195 Reviewed by Darin and Alexey. 13196 13197 Fix for <rdar://problem/5231528> Inline input of International text (IME) 13198 http://bugs.webkit.org/show_bug.cgi?id=14331 13199 13200 This patch adds IME support to WebKit/win, it currently does not support 13201 reconversion (<rdar://problem/5334818>) and has issues with the chinese 13202 IMEs (<rdar://problem/5334826>) 13203 13204 * WebEditorClient.cpp: 13205 (WebEditorClient::respondToChangedSelection): 13206 (WebEditorClient::handleInputMethodKeypress): 13207 Prevent the initial keydown for an IME from triggering a keypressed event 13208 * WebView.cpp: 13209 (WebView::WebView): 13210 (WebView::keyUp): 13211 (WebView::keyDown): 13212 (WebViewWndProc): 13213 (IMMDict::dict): 13214 (IMMDict::IMMDict): 13215 Dynamic loader for IME libraries 13216 13217 (WebView::getIMMContext): 13218 (WebView::releaseIMMContext): 13219 (WebView::prepareCandidateWindow): 13220 (selectionInsideMarkedText): 13221 (setSelectionToEndOfRange): 13222 (WebView::resetIME): 13223 (WebView::updateSelectionForIME): 13224 (WebView::selectionChanged): 13225 (getCompositionString): 13226 (compositionToUnderlines): 13227 Helper functions 13228 13229 (WebView::onIMEStartComposition): 13230 (WebView::onIMEComposition): 13231 (WebView::onIMEEndComposition): 13232 (WebView::onIMEChar): 13233 (WebView::onIMENotify): 13234 (WebView::onIMERequest): 13235 (WebView::onIMESelect): 13236 (WebView::onIMESetContext): 13237 IME event handling, so far most of these are not implemented, but the bulk of functionality 13238 is performed the the composition event handlers 13239 * WebView.h: 13240 13241 2007-07-12 Alice Liu <alice.liu (a] apple.com> 13242 13243 Reviewed by Maciej and Steve. 13244 13245 fixed <rdar://4982432> window.print() needs to be implemented 13246 13247 * Interfaces/IWebUIDelegate.idl: 13248 * WebChromeClient.cpp: 13249 (WebChromeClient::print): 13250 * WebChromeClient.h: 13251 13252 2007-07-11 Steve Falkenburg <sfalken (a] apple.com> 13253 13254 Static analysis build fix. 13255 13256 Only specify /analyze (PREfast) if it is available. 13257 Prevents entire project from rebuilding each time. 13258 13259 Reviewed by Hyatt. 13260 13261 * WebKit.vcproj/WebKit.vcproj: 13262 13263 2007-07-10 Ada Chan <adachan (a] apple.com> 13264 13265 Fixed build. 13266 13267 * WebView.cpp: 13268 13269 2007-07-09 Alice Liu <alice.liu (a] apple.com> 13270 13271 Reviewed by Adam Roben. 13272 13273 Adding DOM Paste Allowed preference, setters and getters 13274 for the purpose of layout tests. 13275 13276 * Interfaces/IWebPreferences.idl: 13277 * WebPreferenceKeysPrivate.h: 13278 * WebPreferences.cpp: 13279 (WebPreferences::isDOMPasteAllowed): 13280 (WebPreferences::setDOMPasteAllowed): 13281 * WebPreferences.h: 13282 * WebView.cpp: 13283 (WebView::updateWebCoreSettingsFromPreferences): 13284 13285 2007-07-09 Anders Carlsson <andersca (a] apple.com> 13286 13287 Build fix. 13288 13289 * WebView.cpp: 13290 (WebView::stringByEvaluatingJavaScriptFromString): 13291 13292 2007-07-05 Adam Roben <aroben (a] apple.com> 13293 13294 Fix a leak in WebView::setToolTip 13295 13296 Reviewed by Beth. 13297 13298 * WebView.cpp: 13299 (WebView::setToolTip): 13300 13301 2007-07-05 Adam Roben <aroben (a] apple.com> 13302 13303 Fix Bug 14143: Tooltips not displayed on Windows 13304 http://bugs.webkit.org/show_bug.cgi?id=14143 13305 <rdar://problem/4719799> 13306 13307 Reviewed by Oliver. 13308 13309 * WebChromeClient.cpp: 13310 (WebChromeClient::setToolTip): Call up to WebView. 13311 * WebView.cpp: 13312 (WebView::WebView): Initialize m_toolTipHwnd member. 13313 (WebView::initWithFrame): Set up the tool tip window. 13314 (initCommonControls): Added. 13315 (WebView::initializeToolTipWindow): Added. 13316 (WebView::setToolTip): Set the tool tip text and enable/disable the 13317 tool tip. 13318 * WebView.h: Added/updated declarations. 13319 13320 2007-07-04 Adam Roben <aroben (a] apple.com> 13321 13322 Added a stub for WebChromeClient::setToolTip 13323 13324 Reviewed by Sam. 13325 13326 * WebChromeClient.cpp: 13327 * WebChromeClient.h: 13328 13329 2007-07-04 Adam Roben <aroben (a] apple.com> 13330 13331 Initialize Settings::showsURLsInToolTips 13332 13333 Reviewed by Sam. 13334 13335 * WebView.cpp: 13336 (WebView::updateWebCoreSettingsFromPreferences): 13337 13338 2007-07-04 Adam Roben <aroben (a] apple.com> 13339 13340 Removed call to mouseDidMoveOverElement now that WebCore handles it 13341 13342 Reviewed by Sam. 13343 13344 * WebView.cpp: 13345 (WebView::handleMouseEvent): 13346 13347 2007-07-04 Adam Roben <aroben (a] apple.com> 13348 13349 Add WebChromeClient::mouseDidMoveOverElement 13350 13351 This is not called yet. 13352 13353 Reviewed by Sam. 13354 13355 * WebChromeClient.cpp: 13356 (WebChromeClient::mouseDidMoveOverElement): 13357 * WebChromeClient.h: 13358 13359 2007-07-03 Adam Roben <aroben (a] apple.com> 13360 13361 Merge the Windows and Mac localized strings and exceptions files 13362 13363 Reviewed by Darin and Anders. 13364 13365 * English.lproj/Localizable.strings: Added Mac strings. 13366 * English.lproj/StringsNotToBeLocalized.txt: Removed. 13367 13368 2007-06-27 Steve Falkenburg <sfalken (a] apple.com> 13369 13370 Turn on static code analysis. 13371 13372 Reviewed by Oliver. 13373 13374 Affects only folks that have Visual Studio Team Suite installed, 13375 or who have replaced their compiler with the version shipping in the 13376 Vista SDK. 13377 13378 * CodeAnalysisConfig.h: Added. 13379 * WebKit.vcproj/WebKit.vcproj: 13380 * WebLocalizableStrings.cpp: 13381 (createWebKitBundle): 13382 13383 2007-06-27 Steve Falkenburg <sfalken (a] apple.com> 13384 13385 Prefast: Remove variable redefinitions in inner scopes. 13386 13387 Reviewed by Ada. 13388 13389 * WebDownload.cpp: 13390 (WebDownload::didFinish): 13391 * WebNotificationCenter.cpp: 13392 (WebNotificationCenter::postNotificationInternal): 13393 (WebNotificationCenter::removeObserver): 13394 13395 2007-06-27 Steve Falkenburg <sfaken (a] apple.com> 13396 13397 Remove SEH block from around history plist read, since the underlying bug has been fixed. 13398 13399 Reviewed by Darin Adler. 13400 13401 * WebHistory.cpp: 13402 (createHistoryListFromStream): 13403 13404 2007-06-27 Steve Falkenburg <sfalken (a] apple.com> 13405 13406 Prefast: Fix misplaced parenthesis. 13407 13408 Reviewed by Darin Adler. 13409 13410 * WebView.cpp: 13411 (core): 13412 13413 2007-06-27 Steve Falkenburg <sfalken (a] apple.com> 13414 13415 Prefast: Add null check prior to writing into allocated BSTR. 13416 13417 Reviewed by Darin Adler. 13418 13419 * MarshallingHelpers.cpp: 13420 (MarshallingHelpers::CFStringRefToBSTR): 13421 13422 2007-06-27 Steve Falkenburg <sfalken (a] apple.com> 13423 13424 Prefast: Add error handling for SysAllocStringLen where the string length is determined by website content. 13425 13426 Reviewed by Sam, Darin. 13427 13428 Allocation failure will result in a null dereference in this case, 13429 so it isn't exploitable. 13430 13431 * DefaultDownloadDelegate.cpp: 13432 (DefaultDownloadDelegate::decideDestinationWithSuggestedFilename): 13433 13434 2007-06-20 Adam Roben <aroben (a] apple.com> 13435 13436 Land the new Inspector. 13437 13438 Co-written with Tim Hatcher. 13439 13440 Reviewed by Anders, Adele, Hyatt, and Sam. 13441 13442 Implement the InspectorClient interface. 13443 13444 * WebInspectorClient.cpp: Added. 13445 (WebInspectorClient::WebInspectorClient): 13446 (WebInspectorClient::~WebInspectorClient): 13447 (WebInspectorClient::inspectorDestroyed): 13448 (WebInspectorClient::createPage): 13449 (WebInspectorClient::showWindow): 13450 (WebInspectorClient::closeWindow): 13451 (WebInspectorClient::windowVisible): 13452 (WebInspectorClient::attachWindow): 13453 (WebInspectorClient::detachWindow): 13454 (WebInspectorClient::highlight): 13455 (WebInspectorClient::hideHighlight): 13456 (WebInspectorClient::inspectedURLChanged): 13457 (WebInspectorClient::updateWindowTitle): 13458 (WebInspectorClient::onSize): 13459 (WebInspectorClient::onClose): 13460 (WebInspectorClient::onWebViewWindowPosChanging): 13461 (WebInspectorWndProc): 13462 (SubclassedWebViewWndProc): 13463 (registerWindowClass): 13464 * WebInspectorClient.h: Added. 13465 13466 Add an easier-to-see highlight. 13467 13468 * WebNodeHighlight.cpp: Added. 13469 (WebNodeHighlight::WebNodeHighlight): 13470 (WebNodeHighlight::~WebNodeHighlight): 13471 (WebNodeHighlight::highlight): 13472 (WebNodeHighlight::hide): 13473 (WebNodeHighlight::visible): 13474 (WebNodeHighlight::updateWindow): 13475 (WebNodeHighlight::removeSubclass): 13476 (registerOverlayClass): 13477 (OverlayWndProc): 13478 (SubclassedWndProc): 13479 * WebNodeHighlight.h: Added. 13480 13481 WebView changes needed for the new Inspector. 13482 13483 * WebView.cpp: Removed old inspectElement method now that this is 13484 handled by WebCore. 13485 (WebView::WebView): 13486 (WebView::close): 13487 (WebView::performContextMenuAction): Removed handling of the Inspect 13488 Element context menu item. 13489 (WebView::initWithFrame): Give each Page an InspectorClient to enable 13490 the Inspector. 13491 (WebView::setProhibitsMainFrameScrolling): Added. 13492 * WebView.h: 13493 13494 Updates needed for WebCore changes. 13495 13496 * Interfaces/IWebUIDelegate.idl: 13497 * WebContextMenuClient.cpp: 13498 (WebContextMenuClient::getCustomMenuFromDefaultItems): 13499 * WebContextMenuClient.h: 13500 * WebCoreLocalizedStrings.cpp: 13501 13502 Remove old Inspector code. 13503 13504 * WebFrame.cpp: 13505 * WebFrame.h: 13506 * WebInspector/WebInspector.cpp: Removed. 13507 * WebInspector/WebInspector.h: Removed. 13508 * WebInspector/webInspector/Images/button.png: Removed. 13509 * WebInspector/webInspector/Images/buttonDivider.png: Removed. 13510 * WebInspector/webInspector/Images/buttonPressed.png: Removed. 13511 * WebInspector/webInspector/Images/close.png: Removed. 13512 * WebInspector/webInspector/Images/closePressed.png: Removed. 13513 * WebInspector/webInspector/Images/downTriangle.png: Removed. 13514 * WebInspector/webInspector/Images/menu.png: Removed. 13515 * WebInspector/webInspector/Images/menuPressed.png: Removed. 13516 * WebInspector/webInspector/Images/popup.png: Removed. 13517 * WebInspector/webInspector/Images/popupPressed.png: Removed. 13518 * WebInspector/webInspector/Images/resize.png: Removed. 13519 * WebInspector/webInspector/Images/rightTriangle.png: Removed. 13520 * WebInspector/webInspector/Images/scrollThumbBottom.png: Removed. 13521 * WebInspector/webInspector/Images/scrollThumbMiddle.png: Removed. 13522 * WebInspector/webInspector/Images/scrollTrackMiddle.png: Removed. 13523 * WebInspector/webInspector/Images/upTriangle.png: Removed. 13524 * WebInspector/webInspector/inspector.css: Removed. 13525 * WebInspector/webInspector/inspector.html: Removed. 13526 * WebInspector/webInspector/inspector.js: Removed. 13527 * WebInspector/webInspector/scrollarea.js: Removed. 13528 * WebInspector/webInspector/scrollbar.js: Removed. 13529 * WebInspector/webInspector/treeoutline.js: Removed. 13530 * WebInspector/webInspector/utilities.js: Removed. 13531 13532 Build-fu: 13533 13534 * WebKit.vcproj/WebKit.vcproj: 13535 13536 2007-06-19 Dave Hyatt <hyatt (a] apple.com> 13537 13538 Fix for <rdar://problem/5022197>, backspace and ctrl+left arrow should go back. Shift+backspace 13539 and ctrl+right arrow should go forward. Add support for these keybindings to Windows. 13540 13541 Reviewed by ada 13542 13543 * WebView.cpp: 13544 (WebView::keyDown): 13545 13546 2007-06-18 Dave Hyatt <hyatt (a] apple.com> 13547 13548 Let through more newline+modifier key combos in order to support Alt+Enter and Ctrl+Enter in the 13549 SafariWin URL bar. 13550 13551 Reviewed by mccullough 13552 13553 * WebView.cpp: 13554 13555 2007-06-18 Dave Hyatt <hyatt (a] apple.com> 13556 13557 Add support for horizontal mouse wheeling to Windows. Shift+wheel is supported for horizontal 13558 wheeling just like on OS X. In addition, the WM_MOUSEHWHEEL event is now processed correctly so that 13559 input devices like tilt wheels will now work. 13560 13561 Reviewed by aroben 13562 13563 * WebView.cpp: 13564 (WebView::mouseWheel): 13565 (WebViewWndProc): 13566 * WebView.h: 13567 13568 2007-06-17 Dave Hyatt <hyatt (a] apple.com> 13569 13570 Add support for Ctrl+Mouse Wheel to increase/decrease text zoom (Win32 only). 13571 13572 Reviewed by aroben 13573 13574 * WebView.cpp: 13575 (WebView::mouseWheel): 13576 13577 2007-06-09 Steve Falkenburg <sfalken (a] apple.com> 13578 13579 Reviewed by Adam. 13580 13581 Workaround: <rdar://problem/5213266> schwab.com menu is ridiculously big. 13582 13583 * WebView.cpp: 13584 (WebView::userAgentForKURL): Add schwab to spoof list to fix gigantic menus. 13585 13586 2007-06-08 Ada Chan <adachan (a] apple.com> 13587 13588 Reviewed by Hyatt, Adam, and Steve. 13589 13590 Fixed WebView::selectedText to get the selected text out of the focused frame or main frame. 13591 13592 * WebView.cpp: 13593 (WebView::selectedText): 13594 13595 2007-06-08 Adam Roben <aroben (a] apple.com> 13596 13597 Get rid of the Safari part of the query string used for Google searches. 13598 13599 Reviewed by Steve and Ada. 13600 13601 * WebContextMenuClient.cpp: 13602 (WebContextMenuClient::searchWithGoogle): 13603 13604 2007-06-08 Kevin McCullough <kmccullough (a] apple.com> 13605 13606 Reviewed by Kevin Decker, and Sam. 13607 13608 - Added and updated licenses. 13609 13610 * CFDictionaryPropertyBag.cpp: 13611 * CFDictionaryPropertyBag.h: 13612 * DOMCSSClasses.cpp: 13613 * DOMCSSClasses.h: 13614 * DOMEventsClasses.cpp: 13615 * DOMEventsClasses.h: 13616 * DOMHTMLClasses.cpp: 13617 * DOMHTMLClasses.h: 13618 * MarshallingHelpers.cpp: 13619 * MarshallingHelpers.h: 13620 * MemoryStream.cpp: 13621 * MemoryStream.h: 13622 * WebBackForwardList.cpp: 13623 * WebBackForwardList.h: 13624 * WebCache.cpp: 13625 * WebCache.h: 13626 * WebChromeClient.cpp: 13627 * WebChromeClient.h: 13628 * WebContextMenuClient.h: 13629 * WebDataSource.h: 13630 * WebEditorClient.cpp: 13631 * WebEditorClient.h: 13632 * WebElementPropertyBag.cpp: 13633 * WebElementPropertyBag.h: 13634 * WebHTMLRepresentation.h: 13635 * WebHistory.cpp: 13636 * WebHistory.h: 13637 * WebIconDatabase.cpp: 13638 * WebIconDatabase.h: 13639 * WebKit.vcproj/auto-version.sh: 13640 * WebKitClassFactory.h: 13641 * WebKitDLL.h: 13642 * WebLocalizableStrings.cpp: 13643 * WebLocalizableStrings.h: 13644 * WebMutableURLRequest.cpp: 13645 * WebMutableURLRequest.h: 13646 * WebNotification.cpp: 13647 * WebNotification.h: 13648 * WebNotificationCenter.cpp: 13649 * WebNotificationCenter.h: 13650 * WebPreferenceKeysPrivate.h: 13651 * WebPreferences.cpp: 13652 * WebPreferences.h: 13653 * WebScriptObject.cpp: 13654 * WebScriptObject.h: 13655 * WebURLResponse.cpp: 13656 * WebURLResponse.h: 13657 13658 2007-06-07 Sam Weinig <sam (a] webkit.org> 13659 13660 Reviewed by Adam Roben. 13661 13662 Make the inspector compile again. 13663 13664 * WebInspector/WebInspector.cpp: 13665 (setFocusedDOMNodeCallback): 13666 (focusedDOMNodeCallback): 13667 (setRootDOMNodeCallback): 13668 (rootDOMNodeCallback): 13669 13670 2007-06-06 Steve Falkenburg <sfalken (a] apple.com> 13671 13672 Reviewed by Adam. 13673 13674 <rdar://problem/5255861> REGRESSION: Can't download Adobe Acrobat Reader and plug-in 13675 <rdar://problem/5243655> Flash download page doesn't recognize Boomer 13676 13677 Refine user agent spoofing code to only spoof Flash download as Firefox without spoofing all of adobe.com. 13678 This fixes the Acrobat Reader download. 13679 13680 * WebView.cpp: 13681 (WebView::userAgentForKURL): 13682 13683 2007-06-03 Steve Falkenburg <sfalken (a] apple.com> 13684 13685 Reviewed by Adam. 13686 13687 <rdar://problem/5246665> Drop down lists are not drawn on volvocars.us 13688 13689 * WebView.cpp: 13690 (WebView::userAgentForKURL): 13691 13692 2007-06-01 Kevin McCullough <kmccullough (a] apple.com> 13693 13694 Reviewed by Oliver. 13695 13696 - Uncommenting some functions that should not be commented out. I needed them for the Drosera port. 13697 13698 * WebKit.vcproj/WebKit_debug.def: 13699 13700 2007-06-01 Steve Falkenburg <sfalken (a] apple.com> 13701 13702 Reviewed by Kevin Decker. 13703 13704 Remove unnecessary user agent spoofs, now that we have the final UA in place. 13705 Added spoof to allow Flash downloads from adobe.com 13706 13707 * WebView.cpp: 13708 (WebView::userAgentForKURL): 13709 13710 2007-05-30 Ada Chan <adachan (a] apple.com> 13711 13712 Reviewed by Steve. 13713 13714 Implemented the mechanism to associate a WebPreferences instance with an identifier. 13715 13716 * WebIconDatabase.cpp: 13717 (WebIconDatabase::init): fixed a missing Release on standardPrefs by using COMPtr. 13718 * WebPreferences.cpp: 13719 (WebPreferences::getInstanceForIdentifier): implemented 13720 (WebPreferences::setInstance): implemented 13721 (WebPreferences::removeReferenceForIdentifier): if the WebPreferences going to be 13722 released has only one ref left, remove it from the s_webPreferencesInstances dictionary. 13723 (WebPreferences::load): don't need to reread in the default preferences if we have done so. 13724 (WebPreferences::initWithIdentifier): update the m_identifier data member with the 13725 passed in identifier string, and store the identifier to WebPreferences instance mapping in 13726 s_webPreferencesInstances dictionary. 13727 (WebPreferences::identifier): implemented 13728 * WebPreferences.h: 13729 * WebView.cpp: 13730 (WebView::~WebView): removed the call to removeObserver for the WebPreferencesChangedNotification 13731 since it's already done in close(). 13732 (WebView::close): the call to removeObserver now takes in the WebPreferences instance for the object - 13733 this way the WebView is only notified when that particular WebPreferences instance changes. 13734 (WebView::initWithFrame): the call to addObserver now takes in the WebPreferences instance for the object - 13735 this way the WebView is only notified when that particular WebPreferences instance changes. 13736 (WebView::setPreferences): implemented 13737 (WebView::onNotify): used COMPtr to fix a missing release 13738 13739 2007-05-29 Steve Falkenburg <sfalken (a] apple.com> 13740 13741 Reviewed by Darin Adler. 13742 13743 Removed setPageCacheSize/pageCacheSize from IWebBackForwardList. 13744 13745 * Interfaces/IWebBackForwardList.idl: Removed unnecessary methods. 13746 * WebBackForwardList.cpp: Removed unnecessary methods. 13747 * WebBackForwardList.h: Removed unnecessary methods. 13748 13749 2007-05-29 Sam Weinig <sam (a] webkit.org> 13750 13751 Reviewed by Adam Roben. 13752 13753 - Removes platform/win/NotImplemented.h because we have consolidated 13754 the notImplemented() for all platforms in platform/NotImplemented.h 13755 - Fixes remaining uses of old macro to use the new notImplemented() one. 13756 13757 * WebChromeClient.cpp: 13758 (WebChromeClient::createModalDialog): 13759 (WebChromeClient::canRunModal): 13760 (WebChromeClient::runModal): 13761 (WebChromeClient::setScrollbarsVisible): 13762 (WebChromeClient::scrollbarsVisible): 13763 (WebChromeClient::setMenubarVisible): 13764 (WebChromeClient::menubarVisible): 13765 * WebContextMenuClient.cpp: 13766 (WebContextMenuClient::lookUpInDictionary): 13767 (WebContextMenuClient::speak): 13768 (WebContextMenuClient::stopSpeaking): 13769 * WebDownload.cpp: 13770 (WebDownload::canResumeDownloadDecodedWithEncodingMIMEType): 13771 (WebDownload::cancelAuthenticationChallenge): 13772 (WebDownload::continueWithoutCredentialForAuthenticationChallenge): 13773 (WebDownload::useCredential): 13774 (WebDownload::didReceiveAuthenticationChallenge): 13775 * WebEditorClient.cpp: 13776 (WebEditorClient::spellCheckerDocumentTag): 13777 (WebEditorClient::shouldBeginEditing): 13778 (WebEditorClient::shouldEndEditing): 13779 (WebEditorClient::didBeginEditing): 13780 (WebEditorClient::respondToChangedContents): 13781 (WebEditorClient::respondToChangedSelection): 13782 (WebEditorClient::didEndEditing): 13783 (WebEditorClient::didWriteSelectionToPasteboard): 13784 (WebEditorClient::didSetSelectionTypesForPasteboard): 13785 (WebEditorClient::shouldDeleteRange): 13786 (WebEditorClient::shouldInsertNode): 13787 (WebEditorClient::shouldInsertText): 13788 (WebEditorClient::shouldApplyStyle): 13789 (WebEditorClient::shouldChangeTypingStyle): 13790 (WebEditorClient::webViewDidChangeTypingStyle): 13791 (WebEditorClient::webViewDidChangeSelection): 13792 (WebEditorClient::shouldShowDeleteInterface): 13793 (WebEditorClient::shouldChangeSelectedRange): 13794 * WebFrame.cpp: 13795 (WebFrame::makeRepresentation): 13796 (WebFrame::forceLayout): 13797 (WebFrame::forceLayoutForNonHTML): 13798 (WebFrame::setCopiesOnScroll): 13799 (WebFrame::detachedFromParent1): 13800 (WebFrame::detachedFromParent2): 13801 (WebFrame::detachedFromParent3): 13802 (WebFrame::detachedFromParent4): 13803 (WebFrame::loadedFromCachedPage): 13804 (WebFrame::dispatchDidLoadMainResource): 13805 (WebFrame::revertToProvisionalState): 13806 (WebFrame::clearUnarchivingState): 13807 (WebFrame::setMainFrameDocumentReady): 13808 (WebFrame::willChangeTitle): 13809 (WebFrame::didChangeTitle): 13810 (WebFrame::finalSetupForReplace): 13811 (WebFrame::setDefersLoading): 13812 (WebFrame::isArchiveLoadPending): 13813 (WebFrame::cancelPendingArchiveLoad): 13814 (WebFrame::clearArchivedResources): 13815 (WebFrame::canShowMIMEType): 13816 (WebFrame::representationExistsForURLScheme): 13817 (WebFrame::generatedMIMETypeForURLScheme): 13818 (WebFrame::restoreViewState): 13819 (WebFrame::provisionalLoadStarted): 13820 (WebFrame::shouldTreatURLAsSameAsCurrent): 13821 (WebFrame::addHistoryItemForFragmentScroll): 13822 (WebFrame::didFinishLoad): 13823 (WebFrame::prepareForDataSourceReplacement): 13824 (WebFrame::setDocumentViewFromCachedPage): 13825 (WebFrame::shouldGoToHistoryItem): 13826 (WebFrame::saveViewStateToItem): 13827 (WebFrame::saveDocumentViewToCachedPage): 13828 (WebFrame::canCachePage): 13829 (WebFrame::setMainDocumentError): 13830 (WebFrame::cannotShowURLError): 13831 (WebFrame::cannotShowMIMETypeError): 13832 (WebFrame::fileDoesNotExistError): 13833 (WebFrame::willUseArchive): 13834 (WebFrame::dispatchDidLoadResourceFromMemoryCache): 13835 (WebFrame::startDownload): 13836 (WebFrame::overrideMediaType): 13837 (WebFrame::addInspector): 13838 (WebFrame::removeInspector): 13839 13840 2007-05-25 Oliver Hunt <oliver (a] apple.com> 13841 13842 Reviewed by Hyatt. 13843 13844 Fix rdar://problem/5212399 <object> with PNG src rendered as image document (causes Acid2 to fail) 13845 13846 * WebFrame.cpp: 13847 (WebFrame::objectContentType): 13848 13849 2007-05-25 Geoffrey Garen <ggaren (a] apple.com> 13850 13851 Build fix -- forgot to commit a little bit in my last patch. 13852 13853 2007-05-25 Geoffrey Garen <ggaren (a] apple.com> 13854 13855 Reviewed by Darin Adler, Adam Roben. 13856 13857 Fixed <rdar://problem/5055182> The page cache has no global cap. 13858 13859 The main WebKit changes are: 13860 1. Gutted IWebBackForwardList::setPageCacheSize and IWebBackForwardList:: 13861 pageCacheSize because they're deprecated on Mac now. I didn't remove 13862 them, though, because doing so can cause COM badness. 13863 13864 2. Added IWebPreferences::setUsesPageCache IWebPreferences:: 13865 usesPageCache because that's the new Mac API. I added them to the end 13866 of IWebPreferences to avoid COM badness. 13867 13868 3. Centralized calculation of object cache and page cache sizes inside 13869 WebPreferences. 13870 13871 Changed our old behavior of reading a preference and applying a fudge 13872 factor with a new behavior of just using the preference directly. The 13873 old behavior was confusing and often inappropriate. (For example, if 13874 you set a page cache size of 100, a 256MB machine would somewhat 13875 arbitrarily reduce that number to 98.) 13876 13877 2007-05-24 Geoffrey Garen <ggaren (a] apple.com> 13878 13879 Reviewed by Darin Adler. 13880 13881 Fixed a bug with Settings where a number of different objects held bare 13882 Settings* data members, even though the Page owns the Settings object and 13883 deletes it upon destruction. 13884 13885 Added NULL checks since the Page can be deleted before the frame/document. 13886 13887 2007-05-23 Steve Falkenburg <sfalken (a] apple.com> 13888 13889 Added IWebFramePrivate::isDescendantOfFrame. 13890 13891 * Interfaces/IWebFramePrivate.idl: 13892 * WebFrame.cpp: 13893 (WebFrame::isDescendantOfFrame): 13894 * WebFrame.h: 13895 13896 2007-05-23 Steve Falkenburg <sfalken (a] apple.com> 13897 13898 Build fix. Fix continuous rebuilding of Interfaces by turning off Generate Type Library for every IDL except WebKit.idl. 13899 13900 * WebKit.vcproj/Interfaces.vcproj: 13901 13902 2007-05-22 Alice Liu <alice.liu (a] apple.com> 13903 13904 Reviewed by Oliver. 13905 13906 Enabling smartInsertDelete to resolve 13907 <rdar://problem/5082891> editing/deleting/smart-delete-003.html (and 004) fail 13908 13909 * Interfaces/IWebView.idl: 13910 * WebEditorClient.cpp: 13911 (WebEditorClient::smartInsertDeleteEnabled): 13912 * WebView.cpp: 13913 (WebView::WebView): 13914 (WebView::initWithFrame): 13915 (WebView::toggleSmartInsertDelete): 13916 (WebView::setSmartInsertDeleteEnabled): 13917 (WebView::smartInsertDeleteEnabled): 13918 * WebView.h: 13919 13920 2007-05-22 Justin Garcia <justin.garcia (a] apple.com> 13921 13922 Reviewed by oliver 13923 13924 Build fix. 13925 13926 * WebView.cpp: 13927 (WebView::clearFocusNode): 13928 13929 2007-05-22 Steve Falkenburg <sfalken (a] apple.com> 13930 13931 Reviewed by Ada. 13932 13933 Added 3 view-related methods to IWebFramePrivate. 13934 13935 * Interfaces/IWebFramePrivate.idl: Added 3 new methods 13936 * WebFrame.cpp: 13937 (WebFrame::hasScrollBars): Added. 13938 (WebFrame::contentBounds): Added. 13939 (WebFrame::frameBounds): Added. 13940 * WebFrame.h: 13941 13942 2007-05-21 Steve Falkenburg <sfalken (a] apple.com> 13943 13944 Reviewed by Adam, Ada. 13945 13946 Added IWebFramePrivate::size(). 13947 13948 * Interfaces/IWebFramePrivate.idl: Added size. 13949 * WebFrame.cpp: 13950 (WebFrame::size): Added. 13951 * WebFrame.h: Added size. 13952 13953 2007-05-21 Ada Chan <adachan (a] apple.com> 13954 13955 Reviewed by Steve. 13956 13957 Added IWebViewPrivate::loadBackForwardListFromOtherView(). It replicates the backforward 13958 list from another webview and loads that in the current webview. 13959 13960 * Interfaces/IWebViewPrivate.idl: 13961 * WebView.cpp: 13962 (WebView::loadBackForwardListFromOtherView): 13963 * WebView.h: 13964 13965 2007-05-18 Steve Falkenburg <sfalken (a] apple.com> 13966 13967 Build-related fix: stamp version resource properly. 13968 13969 * WebKit.vcproj/WebKit.rc: Fix version resource 13970 13971 2007-05-18 Adam Roben <aroben (a] apple.com> 13972 13973 Build fix after r21555. 13974 13975 * WebView.cpp: 13976 13977 2007-05-17 Ada Chan <adachan (a] apple.com> 13978 13979 Reviewed by Steve. 13980 13981 Implemented IWebHTTPURLResponse::localizedStringForStatusCode(). 13982 13983 * English.lproj/Localizable.strings: new http status strings 13984 * Interfaces/WebKit.idl: added code to create WebURLResponse instances 13985 * WebKitClassFactory.cpp: 13986 (WebKitClassFactory::CreateInstance): ditto 13987 * WebKitDLL.cpp: ditto 13988 * WebURLResponse.cpp: 13989 (CFHTTPMessageCopyLocalizedShortDescriptionForStatusCode): return the description 13990 text for the given status code 13991 (WebURLResponse::createInstance): create a general instance of web url response. 13992 (WebURLResponse::localizedStringForStatusCode): 13993 * WebURLResponse.h: 13994 13995 2007-05-17 Ada Chan <adachan (a] apple.com> 13996 13997 Reviewed by Steve. 13998 13999 Changed the context menu title "Search in Google" to "Search with Google". 14000 14001 * English.lproj/Localizable.strings: 14002 * WebCoreLocalizedStrings.cpp: 14003 (WebCore::contextMenuItemTagSearchWeb): 14004 14005 2007-05-17 Anders Carlsson <andersca (a] apple.com> 14006 14007 Fix build. 14008 14009 * WebFrame.cpp: 14010 (WebFrame::loadURLIntoChild): 14011 14012 2007-05-15 Steve Falkenburg <sfalken (a] apple.com> 14013 14014 Reviewed by Darin, Oliver. 14015 14016 <rdar://problem/4967360> Need to detect damaged installs, alert the user to reinstall, and exit 14017 14018 * WebLocalizableStrings.cpp: 14019 (WebLocalizedString): Make failure to load a localized string slightly less fatal 14020 14021 2007-05-15 Steve Falkenburg <sfalken (a] apple.com> 14022 14023 Reviewed by Darin Adler. 14024 14025 <rdar://problem/4956541> Need to implement preference for how much History is maintained 14026 14027 * WebHistory.cpp: 14028 (WebHistory::ageLimitDate): Remove extra +30 from history age in days. 14029 14030 2007-05-14 Anders Carlsson <andersca (a] apple.com> 14031 14032 Reviewed by Darin Adler. 14033 14034 Pass an empty property bag when constructing the WebError, the code in Safari relies on having a user info bag. 14035 14036 * WebFrame.cpp: 14037 (WebFrame::createJavaAppletWidget): 14038 14039 2007-05-14 Anders Carlsson <andersca (a] apple.com> 14040 14041 Reviewed by Antti. 14042 14043 Report an error to the resource load delegate if the Java plugin can't be loaded. 14044 14045 * WebFrame.cpp: 14046 (WebFrame::createJavaAppletWidget): 14047 14048 2007-05-11 Steve Falkenburg <sfalken (a] apple.com> 14049 14050 Reviewed by Darin, Ada. 14051 14052 WebKit DCOM compatibility. 14053 When a WebKit hosting app calls RunAsLocalServer, the class object for CLSID_WebDebugProgram 14054 is registered to allow creation across processes. This is for future compatibility with 14055 Drosera. 14056 14057 Added new exported function: RunAsLocalServer. 14058 This exposes WebKit inside the running exe as a LocalServer32 (COM server), which 14059 will allow Drosera to connect to it via DCOM. 14060 14061 We use the DCOM Universal Marshaller from oleaut32.dll, which performs marshalling 14062 based on type libraries, so as part of this change, I've done some work on making our 14063 interfaces compatible with this marshaller. 14064 14065 Updated for compatibility w/ COM automation, and fixed up our type library. 14066 Added type library registration/unregistration code. 14067 Marked methods not compatible w/ automation/marshalling as [local]. 14068 14069 As a side-effect, with these changes, the .NET tlbimp tool can create a .NET interop 14070 assembly to theoretically allow WebKit to be invoked from .NET apps. I haven't 14071 tried this. It could end up being useful to drive API testing. 14072 14073 To test, I wrote a small app that calls: 14074 ::CoCreateInstance(CLSID_IWebDebugProgram, 0, CLSCTX_LOCAL_SERVER, IID_IUnknown, (void**)&viewUnknown); 14075 Using this instantiated class, I'm able to iterate the exisitng webviews and retrieve their 14076 source, title, URL, etc. 14077 14078 * DOMCoreClasses.cpp: 14079 (DOMElement::isEqual): 14080 * DOMCoreClasses.h: 14081 * DefaultDownloadDelegate.cpp: 14082 (DefaultDownloadDelegate::decideDestinationWithSuggestedFilename): 14083 * DefaultDownloadDelegate.h: 14084 * Interfaces/DOMCSS.idl: 14085 * Interfaces/DOMCore.idl: 14086 * Interfaces/DOMEvents.idl: 14087 * Interfaces/DOMExtensions.idl: 14088 * Interfaces/DOMHTML.idl: 14089 * Interfaces/DOMPrivate.idl: 14090 * Interfaces/DOMRange.idl: 14091 * Interfaces/DOMWindow.idl: 14092 * Interfaces/IWebArchive.idl: 14093 * Interfaces/IWebAttributedString.idl: Removed. 14094 * Interfaces/IWebBackForwardList.idl: 14095 * Interfaces/IWebBackForwardListPrivate.idl: 14096 * Interfaces/IWebCache.idl: 14097 * Interfaces/IWebDataSource.idl: 14098 * Interfaces/IWebDebugProgram.idl: Added. 14099 * Interfaces/IWebDocument.idl: 14100 * Interfaces/IWebDownload.idl: 14101 * Interfaces/IWebEditingDelegate.idl: 14102 * Interfaces/IWebError.idl: 14103 * Interfaces/IWebFormDelegate.idl: 14104 * Interfaces/IWebFrame.idl: 14105 * Interfaces/IWebFrameLoadDelegate.idl: 14106 * Interfaces/IWebFrameLoadDelegatePrivate.idl: 14107 * Interfaces/IWebFramePrivate.idl: 14108 * Interfaces/IWebFrameView.idl: 14109 * Interfaces/IWebHTMLRepresentation.idl: 14110 * Interfaces/IWebHTTPURLResponse.idl: 14111 * Interfaces/IWebHistory.idl: 14112 * Interfaces/IWebHistoryItem.idl: 14113 * Interfaces/IWebHistoryItemPrivate.idl: 14114 * Interfaces/IWebIconDatabase.idl: 14115 * Interfaces/IWebJavaScriptCollector.idl: 14116 * Interfaces/IWebKitStatistics.idl: 14117 * Interfaces/IWebMutableURLRequest.idl: 14118 * Interfaces/IWebNotification.idl: 14119 * Interfaces/IWebNotificationCenter.idl: 14120 * Interfaces/IWebNotificationObserver.idl: 14121 * Interfaces/IWebPolicyDelegate.idl: 14122 * Interfaces/IWebPreferences.idl: 14123 * Interfaces/IWebResource.idl: 14124 * Interfaces/IWebResourceLoadDelegate.idl: 14125 * Interfaces/IWebResourceLoadDelegatePrivate.idl: 14126 * Interfaces/IWebScriptObject.idl: 14127 * Interfaces/IWebScrollBarDelegatePrivate.idl: 14128 * Interfaces/IWebScrollBarPrivate.idl: 14129 * Interfaces/IWebUIDelegate.idl: 14130 * Interfaces/IWebUIDelegatePrivate.idl: 14131 * Interfaces/IWebURLAuthenticationChallenge.idl: 14132 * Interfaces/IWebURLRequest.idl: 14133 * Interfaces/IWebURLResponse.idl: 14134 * Interfaces/IWebUndoManager.idl: 14135 * Interfaces/IWebUndoTarget.idl: 14136 * Interfaces/IWebView.idl: 14137 * Interfaces/IWebViewPrivate.idl: 14138 * Interfaces/WebKit.idl: 14139 * WebContextMenuClient.cpp: 14140 (WebContextMenuClient::getCustomMenuFromDefaultItems): 14141 * WebDataSource.cpp: 14142 (WebDataSource::subresources): 14143 * WebDataSource.h: 14144 * WebDebugProgram.cpp: Added. 14145 (EnumViews::EnumViews): 14146 (EnumViews::QueryInterface): 14147 (EnumViews::AddRef): 14148 (EnumViews::Release): 14149 (EnumViews::Next): 14150 (EnumViews::Skip): 14151 (EnumViews::Reset): 14152 (EnumViews::Clone): 14153 (WebDebugProgram::WebDebugProgram): 14154 (WebDebugProgram::~WebDebugProgram): 14155 (WebDebugProgram::createInstance): 14156 (WebDebugProgram::QueryInterface): 14157 (WebDebugProgram::AddRef): 14158 (WebDebugProgram::Release): 14159 (WebDebugProgram::viewAdded): 14160 (WebDebugProgram::viewRemoved): 14161 (WebDebugProgram::attach): 14162 (WebDebugProgram::detach): 14163 (WebDebugProgram::statistics): 14164 (WebDebugProgram::webViews): 14165 * WebDebugProgram.h: Added. 14166 * WebDropSource.cpp: 14167 (generateMouseEvent): 14168 * WebError.cpp: 14169 (WebError::localizedRecoveryOptions): 14170 * WebError.h: 14171 * WebFrame.cpp: 14172 (EnumChildFrames::EnumChildFrames): 14173 (EnumChildFrames::QueryInterface): 14174 (EnumChildFrames::AddRef): 14175 (EnumChildFrames::Release): 14176 (EnumChildFrames::Next): 14177 (EnumChildFrames::Skip): 14178 (EnumChildFrames::Reset): 14179 (EnumChildFrames::Clone): 14180 (WebFrame::childFrames): 14181 (WebFrame::initWithWebFrameView): 14182 * WebFrame.h: 14183 * WebHistoryItem.cpp: 14184 (WebHistoryItem::icon): 14185 * WebHistoryItem.h: 14186 * WebIconDatabase.cpp: 14187 (WebIconDatabase::iconForURL): 14188 (WebIconDatabase::defaultIconWithSize): 14189 * WebIconDatabase.h: 14190 * WebInspector/WebInspector.cpp: 14191 (WebInspector::WebInspector): 14192 (WebInspector::show): 14193 (WebInspector::onDestroy): 14194 (WebInspector::onSize): 14195 * WebInspector/WebInspector.h: 14196 (WebInspector::didReceiveIcon): 14197 (WebInspector::webViewFirstResponder): 14198 (WebInspector::makeFirstResponder): 14199 (WebInspector::contextMenuItemsForElement): 14200 (WebInspector::trackCustomPopupMenu): 14201 (WebInspector::addCustomMenuDrawingData): 14202 (WebInspector::cleanUpCustomMenuDrawingData): 14203 * WebKit.vcproj/Interfaces.vcproj: 14204 * WebKit.vcproj/WebKit.def: 14205 * WebKit.vcproj/WebKit.vcproj: 14206 * WebKit.vcproj/WebKitGUID.vcproj: 14207 * WebKit.vcproj/WebKit_debug.def: 14208 * WebKitClassFactory.cpp: 14209 (WebKitClassFactory::CreateInstance): 14210 * WebKitDLL.cpp: 14211 (DllGetClassObject): 14212 (DllUnregisterServer): 14213 (DllRegisterServer): 14214 (RunAsLocalServer): 14215 * WebKitStatistics.cpp: 14216 * WebScrollBar.cpp: 14217 (WebScrollBar::init): 14218 (WebScrollBar::handleMouseEvent): 14219 * WebScrollBar.h: 14220 * WebView.cpp: 14221 (WebView::WebView): 14222 (WebView::~WebView): 14223 (WebView::handleContextMenuEvent): 14224 (WebView::onInitMenuPopup): 14225 (WebView::onUninitMenuPopup): 14226 (WebViewWndProc): 14227 (WebView::QueryInterface): 14228 (WebView::MIMETypesShownAsHTML): 14229 (WebView::setHostWindow): 14230 (WebView::hostWindow): 14231 (WebView::generateSelectionImage): 14232 (WebView::pasteboardTypesForSelection): 14233 (WebView::pasteboardTypesForElement): 14234 (WebView::mainFrameIcon): 14235 (WebView::canMakeTextStandardSize): 14236 (WebView::viewWindow): 14237 * WebView.h: 14238 14239 2007-05-11 Adele Peterson <adele (a] apple.com> 14240 14241 Build fix. 14242 14243 * WebView.cpp: (WebView::selectionImageRect): 14244 14245 2007-05-10 Geoffrey Garen <ggaren (a] apple.com> 14246 14247 Reviewed by Darin Adler. 14248 14249 "IconDatabase::sharedIconDatabase()" => "iconDatabase()" for terseness. 14250 14251 2007-05-10 Maciej Stachowiak <mjs (a] apple.com> 14252 14253 Reviewed by Oliver. 14254 14255 - WebKitWin part of fix for: 14256 <rdar://problem/5063277> blank screen after login to Citibank Online (accessing document before frame starts loading cancels load) 14257 <rdar://problem/5159541> REGRESSION (r20972): Wall Street Journal pages replaced by advertisements (13465) 14258 14259 The basic approach is to have Frames start out containing an empty document instead of absolutely nothing, 14260 so there is no need to initialize them on demand. Various side effects of that cause both of these bugs. 14261 14262 However, this caused many regressions so I had to fix the fallout. 14263 14264 * WebFrame.cpp: 14265 (WebFrame::createFrame): init frame 14266 * WebView.cpp: 14267 (WebView::initWithFrame): init frame 14268 (WebView::stringByEvaluatingJavaScriptFromString): don't create empty document 14269 14270 2007-05-08 Steve Falkenburg <sfalken (a] apple.com> 14271 14272 Reviewed by Darin, Oliver. 142