b5fe0645281f1b4caa4d82bc6ca89d728d6af57d
[WebKit-https.git] / WebCore / ChangeLog
1 2006-10-19  David Hyatt  <hyatt@apple.com>
2
3         Correct typos from changing "flush" to "prune" using automated search/replace.
4
5         Change the cache heuristic for flushing to allow a higher watermark before initiating an
6         aggressive prune.  This ensures that small cache sizes are no worse in terms of performance
7         than the old buggy cache.
8
9         Make sizes unsigned instead of ints in the cache's APIs and member variables.
10
11         * loader/Cache.cpp:
12         (WebCore::Cache::prune):
13         (WebCore::Cache::setMaximumSize):
14         * loader/Cache.h:
15         (WebCore::Cache::maximumSize):
16
17 2006-10-19  Anders Carlsson  <acarlsson@apple.com>
18
19         Reviewed by Daddy Hyatt.
20
21         Use a real hash map for the headers.
22
23         * loader/LoaderFunctions.h:
24         * loader/mac/LoaderFunctionsMac.mm:
25         (WebCore::ServeSynchronousRequest):
26         * platform/ResourceLoader.cpp:
27         (WebCore::ResourceLoader::setRequestHeaders):
28         (WebCore::ResourceLoader::requestHeaders):
29         * platform/ResourceLoader.h:
30         * platform/ResourceLoaderInternal.h:
31         * platform/mac/ResourceLoaderMac.mm:
32         (WebCore::ResourceLoader::start):
33         * xml/xmlhttprequest.cpp:
34         (WebCore::XMLHttpRequest::open):
35         (WebCore::XMLHttpRequest::send):
36         (WebCore::XMLHttpRequest::setRequestHeader):
37         (WebCore::XMLHttpRequest::getRequestHeader):
38         * xml/xmlhttprequest.h:
39
40 2006-10-19  Adam Roben  <aroben@apple.com>
41
42         Reviewed by Ada.
43
44         Pippity-poppity popup tweaks.
45
46         * WebCore.xcodeproj/project.pbxproj: Removed PopupMenu.cpp from project.
47         * html/HTMLSelectElement.cpp:
48         (WebCore::HTMLSelectElement::setSelectedIndex): Only fire onChange if
49         requested and the new index is actually different than the old one.
50         * platform/IntPoint.h: Added another casting operator.
51         * platform/PopupMenu.cpp: Removed. The code in here, while
52         platform-independent, was only useful for the NSPopUpButtonCell
53         implementation of popup menus, so I've moved it to PopupMenuMac.mm.
54         * platform/PopupMenu.h: Moved the definition of PopupMenu::create into
55         the header since it's fairly simple. Made some more methods private now
56         that we don't have subclasses and virtual methods anymore.
57         (WebCore::PopupMenu::create):
58         (WebCore::PopupMenu::menuList):
59         (WebCore::PopupMenu::itemHeight):
60         (WebCore::PopupMenu::windowRect):
61         (WebCore::PopupMenu::listIndexAtPoint):
62         (WebCore::PopupMenu::focusedIndex):
63         (WebCore::PopupMenu::setWasClicked):
64         (WebCore::PopupMenu::wasClicked):
65         (WebCore::PopupMenu::setScrollOffset):
66         (WebCore::PopupMenu::scrollOffset):
67         (WebCore::PopupMenu::wheelDelta):
68         * platform/mac/PopupMenuMac.mm: Added the code from PopupMenu.cpp.
69         (WebCore::PopupMenu::populate): Call our own clear() method to clear
70         the menu.
71         * platform/win/IntPointWin.cpp: New casting operator.
72         (WebCore::IntPoint::IntPoint):
73         (WebCore::IntPoint::operator POINTS):
74
75 2006-10-19  Adam Roben  <aroben@apple.com>
76
77         Reviewed by Darin.
78
79         Cleaning up Document::nextFocusNode and Document::previousFocusNode.
80
81         * dom/Document.cpp:
82         (WebCore::Document::nextFocusNode):
83         (WebCore::Document::previousFocusNode):
84
85 2006-10-19  Maciej Stachowiak  <mjs@apple.com>
86
87         Reviewed by Geoff.
88
89         - implement new ResourceRequest API and fix up code as appropriate
90         
91         * bindings/js/kjs_window.cpp:
92         (KJS::createNewWindow):
93         (KJS::WindowFunc::callAsFunction):
94         * bridge/mac/BrowserExtensionMac.mm:
95         (WebCore::BrowserExtensionMac::createNewWindow):
96         * bridge/mac/FrameMac.mm:
97         (WebCore::FrameMac::submitForm):
98         (WebCore::FrameMac::openURLRequest):
99         (WebCore::FrameMac::urlSelected):
100         * bridge/mac/WebCoreFrameBridge.mm:
101         (-[WebCoreFrameBridge openURL:reload:contentType:refresh:lastModified:pageCache:]):
102         * dom/DOMImplementation.cpp:
103         (WebCore::addString):
104         (WebCore::isSVG10Feature):
105         (WebCore::isSVG11Feature):
106         * dom/Document.h:
107         * editing/CommandByName.cpp:
108         * editing/JSEditor.cpp:
109         * page/Frame.cpp:
110         (WebCore::Frame::changeLocation):
111         (WebCore::Frame::urlSelected):
112         (WebCore::Frame::requestFrame):
113         (WebCore::Frame::submitForm):
114         * page/Frame.h:
115         * page/FramePrivate.h:
116         * page/ResourceRequest.h:
117         (WebCore::):
118         (WebCore::ResourceRequest::ResourceRequest):
119         (WebCore::ResourceRequest::cachePolicy):
120         (WebCore::ResourceRequest::setCachePolicy):
121         (WebCore::ResourceRequest::timeoutInterval):
122         (WebCore::ResourceRequest::setTimeoutInterval):
123         (WebCore::ResourceRequest::mainDocumentURL):
124         (WebCore::ResourceRequest::setMainDocumentURL):
125         (WebCore::ResourceRequest::httpMethod):
126         (WebCore::ResourceRequest::setHTTPMethod):
127         (WebCore::ResourceRequest::httpHeaderField):
128         (WebCore::ResourceRequest::setHTTPHeaderField):
129         (WebCore::ResourceRequest::httpContentType):
130         (WebCore::ResourceRequest::setHTTPContentType):
131         (WebCore::ResourceRequest::httpReferrer):
132         (WebCore::ResourceRequest::setHTTPReferrer):
133         (WebCore::ResourceRequest::httpUserAgent):
134         (WebCore::ResourceRequest::setHTTPUserAgent):
135         (WebCore::ResourceRequest::httpBody):
136         (WebCore::ResourceRequest::setHTTPBody):
137         (WebCore::ResourceRequest::addHTTPHeaderField):
138         * platform/FontCache.cpp:
139         (WebCore::computeHash):
140         * platform/StringHash.h:
141         (WTF::):
142         * platform/StringImpl.cpp:
143         (WebCore::equalIgnoringCase):
144         * rendering/RenderPartObject.cpp:
145         (WebCore::RenderPartObject::updateWidget):
146
147 2006-10-19  Justin Garcia  <justin.garcia@apple.com>
148
149         Reviewed by levi
150         
151         <rdar://problem/4447885>
152         API: WebView should have a method something like incrementLeftMarginBy: or indentBy:
153         
154         Fixed indent/outdent to only increment the left margin, to match other browsers.
155         Used blockquote class="webkit-indent-blockquote" to do this.  Mail can now
156         implement indent/outdent by customizing the appearance of these blockquotes,
157         instead of using a new API.
158         
159         * css/html4.css: Added margin: 0 0 0 40px for webkit-indent-blockquotes.
160         * editing/IndentOutdentCommand.cpp:
161         (WebCore::indentBlockquoteString): Added.
162         (WebCore::createIndentBlockquoteElement): Added.
163         (WebCore::isIndentBlockquote): Added.
164         (WebCore::isListOrBlockquote): Added.
165         (WebCore::IndentOutdentCommand::IndentOutdentCommand):
166         (WebCore::IndentOutdentCommand::prepareBlockquoteLevelForInsertion): Fixed
167         a bug in the code that added an extra br if the placeholder collapsed upon insertion.
168         Used the new indentBlockquote checks and enclosing element getters.  
169         (WebCore::IndentOutdentCommand::indentRegion): Ditto.
170         (WebCore::IndentOutdentCommand::outdentParagraph): Ditto.  Cleaned up the
171         logic to pull the selection out of a list a bit.
172         * editing/htmlediting.cpp:
173         (WebCore::enclosingNodeOfType): Added this generic enclosing element getter.
174         * editing/htmlediting.h:
175
176 2006-10-19  Timothy Hatcher  <timothy@apple.com>
177
178         Rolling out the this change since it caused a bad regression:
179         <rdar://problem/4788524> REGRESSION: Incomplete repaint of text area when deleting (11277)
180
181 2006-10-12  Adele Peterson  <adele@apple.com>
182           
183         Reviewed by Dave Harrison.
184           
185         - Fixed <rdar://problem/4650813> REGRESSION: typing in a textarea in Safari is extremely slow (sample shows focus ring drawing)
186           
187         * rendering/RenderObject.cpp: (WebCore::RenderObject::markContainingBlocksForLayout):
188         Make subtree layouts work for textareas as well as text fields.
189
190 2006-10-19  Nikolas Zimmermann  <zimmermann@kde.org>
191
192         Reviewed and landed by Anders.
193
194         Fix Qt/Linux build.
195
196         * CMakeLists.txt:
197         * loader/Cache.h:
198         * platform/qt/BrowserExtensionQt.cpp:
199         * platform/qt/BrowserExtensionQt.h:
200         * platform/qt/CursorQt.cpp:
201         (WebCore::pointerCursor):
202         * platform/qt/LoaderFunctionsQt.cpp:
203         (WebCore::NumberOfPendingOrLoadingRequests):
204         (WebCore::CheckCacheObjectStatus):
205         * platform/qt/ResourceLoaderQt.cpp:
206         (WebCore::ResourceLoader::retrieveResponseEncoding):
207         (WebCore::ResourceLoader::receivedResponse):
208
209 2006-10-19  Sam Weinig  <sam.weinig@gmail.com>
210
211         Reviewed by ap.
212
213         Win32 build fix.
214
215         * bridge/win/FrameWin.cpp:
216         * bridge/win/FrameWin.h:
217         * platform/win/TemporaryLinkStubs.cpp:
218         (WebCore::ResourceLoader::retrieveResponseEncoding):
219
220 2006-10-19  Alexey Proskuryakov  <ap@nypop.com>
221
222         Reviewed by Mitz.
223
224         http://bugs.webkit.org/show_bug.cgi?id=11141
225         REGRESSION(r16681-r16691): CSS '@import' doesn't respect HTML Base element
226
227         Undo one misguided change made in bug 11011 - stop setting inline stylesheet's href
228         to document URL. This matches WinIE and partially matches Firefox - although the latter
229         reports the href as if it were inherited, it still doesn't use it when resolving URIs in
230         @import rules.
231
232         Test: http/tests/uri/css-href.php
233
234         * html/HTMLStyleElement.cpp:
235         (WebCore::HTMLStyleElement::childrenChanged):
236         * ksvg2/svg/SVGStyleElement.cpp:
237         (WebCore::SVGStyleElement::childrenChanged):
238
239 2006-10-19  Anders Carlsson  <acarlsson@apple.com>
240
241         * loader/Cache.cpp:
242         Get rid of #include "loader.h", Cache.h already includes this and it breaks on operating systems
243         with case-sensitive file systems.
244
245 2006-10-19  Anders Carlsson  <acarlsson@apple.com>
246
247         Reviewed by Maciej, Brady.
248
249         Remove "charset" from the ResourceLoader metadata map and use 
250         a getter function instead. Also, rename charset to encoding in a couple of places.
251         
252         * loader/CachedCSSStyleSheet.cpp:
253         (WebCore::CachedCSSStyleSheet::setEncoding):
254         * loader/CachedCSSStyleSheet.h:
255         * loader/CachedResource.h:
256         (WebCore::CachedResource::setEncoding):
257         * loader/CachedScript.cpp:
258         (WebCore::CachedScript::setEncoding):
259         * loader/CachedScript.h:
260         * loader/CachedXBLDocument.cpp:
261         (WebCore::CachedXBLDocument::setEncoding):
262         * loader/CachedXBLDocument.h:
263         * loader/CachedXSLStyleSheet.cpp:
264         (WebCore::CachedXSLStyleSheet::setEncoding):
265         * loader/CachedXSLStyleSheet.h:
266         * loader/loader.cpp:
267         (WebCore::Loader::receivedResponse):
268         * platform/ResourceLoader.cpp:
269         (WebCore::ResourceLoader::responseEncoding):
270         (WebCore::ResourceLoader::queryMetaData):
271         * platform/ResourceLoader.h:
272         * platform/ResourceLoaderInternal.h:
273         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
274         * platform/mac/ResourceLoaderMac.mm:
275         (WebCore::ResourceLoader::retrieveResponseEncoding):
276         (WebCore::ResourceLoader::receivedResponse):
277         * xml/xmlhttprequest.cpp:
278         (WebCore::XMLHttpRequest::receivedData):
279
280 2006-10-19  David Hyatt  <hyatt@apple.com>
281
282         Rewrite of the WebCore memory cache.  The following changes have been made (along with many more):
283
284         (1) Referenced objects are now also cached.
285
286         (2) Pruning of the cache will occur once the cache is both full and in addition
287         more than half full with unreferenced objects.
288
289         (3) The prune is much more aggressive now, since referenced objects are counted when
290         pruning.  The cache will therefore often prune out every unreferenced object if lots of
291         windows/tabs are open.
292
293         (4) Consolidated the request methods for various types of resources to go through a single
294         requestResource bottleneck function.
295
296         (5) deref on CachedResource is no longer virtual, since the implementation in every subclass was
297         identical.
298
299         (6) Changed "object" to "resource" everywhere.
300
301         (7) The Cache is now an actual object, obtained via cache().
302
303         (8) Fixed bugs with the autoload images preference so that it would really work properly when disabled
304         and enabled.
305
306         (9) Tweaked ImageDocuments to set up the status properly for the CachedResource that they use.
307
308         (10) Fixed the LRU-SP algorithm so that the LRU aspect really kicks in (by leaving the live objects
309         in the LRU lists).  Also fixed a bug with the "-SP" part of the algorithm where the access count was
310         being incorrectly weighted too much due to a math error.
311
312         (11) Fixed a bug where the old cache could grow without bound because it didn't know anything about
313         the size of referenced resources.
314
315         Reviewed by Maciej, bradee-oh
316
317         * bridge/mac/WebCoreCache.mm:
318         (+[WebCoreCache statistics]):
319         (+[WebCoreCache empty]):
320         (+[WebCoreCache setDisabled:]):
321         * bridge/mac/WebCoreFrameBridge.mm:
322         (-[WebCoreFrameBridge initMainFrameWithPage:]):
323         (-[WebCoreFrameBridge getData:andResponse:forURL:]):
324         (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
325         * css/CSSImageValue.cpp:
326         (WebCore::CSSImageValue::image):
327         * dom/XMLTokenizer.cpp:
328         (WebCore::openFunc):
329         * html/HTMLImageLoader.cpp:
330         (WebCore::HTMLImageLoader::updateFromElement):
331         * loader/Cache.cpp:
332         (WebCore::cache):
333         (WebCore::Cache::Cache):
334         (WebCore::createResource):
335         (WebCore::Cache::requestResource):
336         (WebCore::Cache::resourceForURL):
337         (WebCore::Cache::prune):
338         (WebCore::Cache::setMaximumSize):
339         (WebCore::Cache::remove):
340         (WebCore::Cache::addDocLoader):
341         (WebCore::Cache::removeDocLoader):
342         (WebCore::fastLog2):
343         (WebCore::Cache::lruListFor):
344         (WebCore::Cache::removeFromLRUList):
345         (WebCore::Cache::insertInLRUList):
346         (WebCore::Cache::resourceAccessed):
347         (WebCore::Cache::adjustSize):
348         (WebCore::Cache::getStatistics):
349         (WebCore::Cache::setDisabled):
350         * loader/Cache.h:
351         (WebCore::LRUList::LRUList):
352         (WebCore::Cache::loader):
353         (WebCore::Cache::maximumSize):
354         (WebCore::Cache::disabled):
355         (WebCore::Cache::addToLiveObjectSize):
356         (WebCore::Cache::removeFromLiveObjectSize):
357         (WebCore::Cache::TypeStatistic::TypeStatistic):
358         * loader/CachedCSSStyleSheet.cpp:
359         (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet):
360         * loader/CachedCSSStyleSheet.h:
361         * loader/CachedImage.cpp:
362         (WebCore::CachedImage::CachedImage):
363         (WebCore::CachedImage::~CachedImage):
364         (WebCore::brokenImage):
365         (WebCore::nullImage):
366         (WebCore::CachedImage::image):
367         (WebCore::CachedImage::data):
368         * loader/CachedImage.h:
369         (WebCore::CachedImage::stillNeedsLoad):
370         * loader/CachedResource.cpp:
371         (WebCore::CachedResource::CachedResource):
372         (WebCore::CachedResource::~CachedResource):
373         (WebCore::CachedResource::finish):
374         (WebCore::CachedResource::setExpireDate):
375         (WebCore::CachedResource::isExpired):
376         (WebCore::CachedResource::setRequest):
377         (WebCore::CachedResource::ref):
378         (WebCore::CachedResource::deref):
379         (WebCore::CachedResource::setSize):
380         * loader/CachedResource.h:
381         (WebCore::CachedResource::):
382         (WebCore::CachedResource::setCharset):
383         (WebCore::CachedResource::url):
384         (WebCore::CachedResource::type):
385         (WebCore::CachedResource::referenced):
386         (WebCore::CachedResource::count):
387         (WebCore::CachedResource::status):
388         (WebCore::CachedResource::size):
389         (WebCore::CachedResource::isLoaded):
390         (WebCore::CachedResource::setLoading):
391         (WebCore::CachedResource::isImage):
392         (WebCore::CachedResource::accessCount):
393         (WebCore::CachedResource::increaseAccessCount):
394         (WebCore::CachedResource::setInCache):
395         (WebCore::CachedResource::inCache):
396         (WebCore::CachedResource::cachePolicy):
397         (WebCore::CachedResource::response):
398         (WebCore::CachedResource::allData):
399         (WebCore::CachedResource::canDelete):
400         (WebCore::CachedResource::schedule):
401         (WebCore::CachedResource::accept):
402         (WebCore::CachedResource::setAccept):
403         * loader/CachedScript.cpp:
404         (WebCore::CachedScript::CachedScript):
405         * loader/CachedScript.h:
406         * loader/CachedXBLDocument.cpp:
407         * loader/CachedXBLDocument.h:
408         * loader/CachedXSLStyleSheet.cpp:
409         (WebCore::CachedXSLStyleSheet::CachedXSLStyleSheet):
410         * loader/CachedXSLStyleSheet.h:
411         * loader/DocLoader.cpp:
412         (WebCore::DocLoader::DocLoader):
413         (WebCore::DocLoader::~DocLoader):
414         (WebCore::DocLoader::checkForReload):
415         (WebCore::DocLoader::requestImage):
416         (WebCore::DocLoader::requestCSSStyleSheet):
417         (WebCore::DocLoader::requestScript):
418         (WebCore::DocLoader::requestXSLStyleSheet):
419         (WebCore::DocLoader::requestXBLDocument):
420         (WebCore::DocLoader::requestResource):
421         (WebCore::DocLoader::setAutoLoadImages):
422         (WebCore::DocLoader::removeCachedResource):
423         * loader/DocLoader.h:
424         (WebCore::DocLoader::cachedResource):
425         (WebCore::DocLoader::allCachedResources):
426         (WebCore::DocLoader::autoLoadImages):
427         (WebCore::DocLoader::cachePolicy):
428         (WebCore::DocLoader::expireDate):
429         (WebCore::DocLoader::frame):
430         (WebCore::DocLoader::doc):
431         (WebCore::DocLoader::loadInProgress):
432         * loader/ImageDocument.cpp:
433         (WebCore::ImageTokenizer::finish):
434         * loader/loader.cpp:
435         (WebCore::Loader::receivedAllData):
436         (WebCore::Loader::cancelRequests):
437         * loader/mac/LoaderFunctionsMac.mm:
438         (WebCore::NumberOfPendingOrLoadingRequests):
439         (WebCore::CheckCacheObjectStatus):
440         * page/Frame.cpp:
441         (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
442         (WebCore::Frame::Frame):
443         (WebCore::Frame::stopLoading):
444         (WebCore::Frame::setAutoLoadImages):
445         (WebCore::Frame::autoLoadImages):
446         (WebCore::Frame::begin):
447         (WebCore::Frame::checkCompleted):
448         (WebCore::Frame::reparseConfiguration):
449         * page/Frame.h:
450         * xml/XSLTProcessor.cpp:
451         (WebCore::docLoaderFunc):
452         * xml/xmlhttprequest.cpp:
453         (WebCore::XMLHttpRequest::send):
454
455 2006-10-18  Maciej Stachowiak  <mjs@apple.com>
456
457         Reviewed by Geoff.
458
459         - remove vestiges of KXMLCore name (former name of WTF).
460
461         * config.h:
462
463 2006-10-18  Geoffrey Garen  <ggaren@apple.com>
464
465         Reviewed by Beth.
466         
467         Fixed http://bugs.webkit.org/show_bug.cgi?id=11222
468
469         Some global JS objects lacked references to their property hashtables,
470         so for-in enumeration didn't work. I added the references, and then removed
471         a few bogus properties from the tables. The bogus ones got in there through
472         bit rot.
473         
474         We should come up with some solution to these hand-written bindings bugs.
475         Maybe we could use a script to autogenerate them or something.
476
477         * bindings/js/kjs_window.cpp:
478         (KJS::):
479         (KJS::History::getValueProperty):
480
481 2006-10-18  Adam Roben  <aroben@apple.com>
482
483         Reviewed by Brady.
484
485         Change Shift-Tab to generate keyIdentifier U+000009 (Tab) instead of
486         U+000019 (Backtab). This matches our windowsKeyCode for this key
487         combination.
488
489         * platform/mac/KeyEventMac.mm:
490         (WebCore::keyIdentifierForKeyEvent):
491
492 2006-10-18  Steve Falkenburg  <sfalken@apple.com>
493
494         Reviewed by Adam, Brady.
495
496         Loader tweaks.
497
498         * platform/cf/ResourceLoaderCFNet.cpp:
499         (WebCore::didFinishLoading):
500         (WebCore::didFail):
501         (WebCore::didReceiveChallenge):
502         (WebCore::runLoaderThread):
503         (WebCore::ResourceLoader::start):
504         (WebCore::ResourceLoader::cancel):
505
506 2006-10-18  Timothy Hatcher  <timothy@apple.com>
507
508         Reviewed by Darin.
509
510         <rdar://problem/4752138> Manipulating popup in HTML page crashed Xcode
511
512         - Store the Mac popup button cell as a RetainPtr to prevent GC collection.
513         - Convert more ObjC local statics and member variables to use RetainPtr.
514         - Convert more CFRetain/CFRelease to HardRetain/HardRelease.
515
516         * bindings/objc/DOM.mm:
517         (ObjCNodeFilterCondition::ObjCNodeFilterCondition): use HardRetain and not CFRetain
518         (ObjCNodeFilterCondition::~ObjCNodeFilterCondition): use HardRelease and not CFRelease
519         * bridge/mac/AXObjectCacheMac.mm:
520         (WebCore::AXObjectCache::~AXObjectCache): use HardRelease and not CFRelease
521         (WebCore::AXObjectCache::get): use HardRetain and not CFRetain
522         (WebCore::AXObjectCache::remove): use HardRelease and not CFRelease
523         * bridge/mac/WebCoreFrameBridge.mm:
524         (+[WebCoreFrameBridge supportedImageResourceMIMETypes]): use RetainPtr
525         (+[WebCoreFrameBridge supportedImageMIMETypes]): ditto
526         * bridge/mac/WebCoreIconDatabaseBridge.mm:
527         (+[WebCoreIconDatabaseBridge sharedInstance]): use RetainPtr
528         * platform/PopupMenu.h: renamed popup to m_popup and switched to RetainPtr<NSPopUpButtonCell>
529         * platform/cf/RetainPtr.h:
530         (WTF::::operator): implement a missing operator= template function
531         * platform/mac/PopupMenuMac.mm:
532         (WebCore::PopupMenu::PopupMenu): remove nil initialization
533         (WebCore::PopupMenu::~PopupMenu): use .get(), remove release message and rename to m_popup
534         (WebCore::PopupMenu::clear): use .get() when sending a message and rename to m_popup
535         (WebCore::PopupMenu::populate): ditto 
536         (WebCore::PopupMenu::show): ditto
537         (WebCore::PopupMenu::hide): ditto
538         (WebCore::PopupMenu::addSeparator): ditto
539         (WebCore::PopupMenu::addGroupLabel): ditto
540         (WebCore::PopupMenu::addOption): ditto
541
542 2006-10-18  Geoffrey Garen  <ggaren@apple.com>
543
544         Reviewed by Adele.
545
546         Fixed <rdar://problem/3673233> JavaScript timers do not fire if controls
547         are tracking or menus are down (run loop modes)
548
549         I spent a few hours trying to write an automated test, but DRT doesn't
550         seem to support it. Manual tests attached to related bugs.
551         
552         * bridge/mac/FrameMac.mm:
553         (WebCore::FrameMac::passMouseDownEventToWidget):
554         * platform/mac/SharedTimerMac.cpp:
555         (WebCore::setSharedTimerFireTime):
556
557 2006-10-18  Sam Weinig  <sam.weinig@gmail.com>
558
559         Reviewed by Maciej.
560
561         More Win32 buildfix.
562
563         * bridge/win/FrameWin.h:
564
565 2006-10-18  Sam Weinig  <sam.weinig@gmail.com>
566
567         Reviewed by Mitz
568
569         Win32 build fix.
570
571         * bridge/win/BrowserExtensionWin.cpp:
572         (WebCore::BrowserExtensionWin::BrowserExtensionWin):
573         (WebCore::BrowserExtensionWin::createNewWindow):
574         * bridge/win/BrowserExtensionWin.h:
575         * bridge/win/FrameWin.cpp:
576         (WebCore::FrameWin::createNewWindow):
577         * bridge/win/FrameWin.h:
578         * platform/win/CursorWin.cpp:
579         * platform/win/TemporaryLinkStubs.cpp:
580         (Image::getHBITMAP):
581
582 2006-10-18  Justin Garcia  <justin.garcia@apple.com>
583
584         Reviewed by harrison
585         
586         <rdar://problem/4784823>
587         GMail Editor: Hang occurs when removing list styling on text in a rich text message
588
589         List removal moves the contents of every list item out of the list it's 
590         in. When the code tried to move the contents of an empty list item (an li 
591         with no child nodes, not even a placeholder br), moveParagraph didn't prune 
592         the li, like it would if the li had a placeholder inside it.  So the list 
593         removal code went into an infinite loop, continually attempting to de-list 
594         an empty list item.
595
596         * editing/CompositeEditCommand.cpp:
597         (WebCore::CompositeEditCommand::moveParagraphs): If the selection
598         to move was empty and in an empty block that doesn't require a 
599         placeholder to prop itself open (like a bordered div or an li), 
600         remove it during the move.
601
602 2006-10-18  Adele Peterson  <adele@apple.com>
603
604         Reviewed by Beth.
605
606         - Fixed http://bugs.webkit.org/show_bug.cgi?id=11343
607           REGRESSION (r16975): fast/events/objc-event-api is failing
608
609           When I moved the autoscroll code from FrameMac to Frame, I mistakingly changed the order of
610           a call to invalidateClick.  This change moves it back to the sequence that existed before.  This allows
611           the click count to get properly reset during a selection.
612
613         * page/Frame.cpp: (WebCore::Frame::handleMouseMoveEvent):
614
615 2006-10-17  Geoffrey Garen  <ggaren@apple.com>
616         
617         Reviewed by Anders.
618         
619         Factored common scaling code into a helper function.
620
621         * platform/mac/ScreenMac.mm:
622         (WebCore::scale):
623         (WebCore::scaleScreenRectToPageCoordinates):
624         (WebCore::scalePageRectToScreenCoordinates):
625
626 2006-10-17  Steve Falkenburg  <sfalken@apple.com>
627
628         Build fixes
629
630         * bridge/win/BrowserExtensionWin.cpp:
631         (WebCore::BrowserExtensionWin::createNewWindow):
632         * bridge/win/BrowserExtensionWin.h:
633         * bridge/win/FrameWin.cpp:
634         (WebCore::FrameWin::createNewWindow):
635         * bridge/win/FrameWin.h:
636         * platform/gdk/BrowserExtensionGdk.h:
637         * platform/gdk/TemporaryLinkStubs.cpp:
638         (BrowserExtensionGdk::createNewWindow):
639         * platform/qt/BrowserExtensionQt.cpp:
640         (WebCore::BrowserExtensionQt::createNewWindow):
641         * platform/qt/BrowserExtensionQt.h:
642
643 2006-10-17  Geoffrey Garen  <ggaren@apple.com>
644
645         Reviewed by Anders.
646         
647         Renamed WindowArgs to WindowFeatures, and moved it into its own header.
648         ("Features" is the term of art in IE documentation. "Args" is pirate
649         talk.)
650
651         * WebCore.xcodeproj/project.pbxproj:
652         * bindings/js/kjs_window.cpp:
653         (KJS::createNewWindow):
654         (KJS::showModalDialog):
655         (KJS::setWindowFeature):
656         (KJS::parseWindowFeatures):
657         (KJS::constrainToVisible):
658         (KJS::WindowFunc::callAsFunction):
659         * bridge/BrowserExtension.h:
660         * bridge/WindowFeatures.h: Added.
661         * bridge/mac/BrowserExtensionMac.h:
662         * bridge/mac/BrowserExtensionMac.mm:
663         (WebCore::BrowserExtensionMac::createNewWindow):
664
665 2006-10-17  Sam Weinig  <sam.weinig@gmail.com>
666
667         Reviewed by Tim H.
668
669         Patch for http://bugs.webkit.org/show_bug.cgi?id=11268
670         Implement the Objective-C DOM bindings for SVGNumber, SVGRect, and SVGPoint
671
672         - Adds implementation for DOMSVGNumber, DOMSVGRect, and DOMSVGPoint.
673
674         - Moves the contents of ksvg/bindings/js/ to bindings/js/.
675
676         - Moves SVGZoomEvent.idl from ksvg/svg/ to ksvg/events/.
677
678         - Adds isSVGColor() and isSVGPaint() methods to StyleBase, matching 
679           the other CSSValue classing, and allowing the bindings to allocate
680           appropriately.
681
682         - Removes #ifdefs around the getBBox() method in SVGLocatable.idl allowing
683           generation for Objective-C.
684
685         - Assorted style cleanups.
686
687         * DerivedSources.make:
688         * WebCore.xcodeproj/project.pbxproj:
689         * bindings/objc/DOMCSS.mm:
690         (+[DOMCSSValue _CSSValueWith:WebCore::]):
691         * bindings/objc/DOMEvents.mm:
692         (+[DOMEvent _eventWith:WebCore::]):
693         * bindings/objc/DOMSVG.h:
694         * bindings/objc/DOMSVGNumber.mm:
695         (-[DOMSVGNumber dealloc]):
696         (-[DOMSVGNumber finalize]):
697         (-[DOMSVGNumber value]):
698         (-[DOMSVGNumber setValue:]):
699         (-[DOMSVGNumber _SVGNumber]):
700         (-[DOMSVGNumber _initWithFloat:]):
701         (+[DOMSVGNumber _SVGNumberWith:]):
702         * bindings/objc/DOMSVGPoint.mm:
703         (-[DOMSVGPoint dealloc]):
704         (-[DOMSVGPoint finalize]):
705         (-[DOMSVGPoint x]):
706         (-[DOMSVGPoint setX:]):
707         (-[DOMSVGPoint y]):
708         (-[DOMSVGPoint setY:]):
709         (-[DOMSVGPoint WebCore::]):
710         (-[DOMSVGPoint _initWithFloatPoint:WebCore::]):
711         (+[DOMSVGPoint _SVGPointWith:WebCore::]):
712         * bindings/objc/DOMSVGRect.mm:
713         (-[DOMSVGRect dealloc]):
714         (-[DOMSVGRect finalize]):
715         (-[DOMSVGRect x]):
716         (-[DOMSVGRect setX:]):
717         (-[DOMSVGRect y]):
718         (-[DOMSVGRect setY:]):
719         (-[DOMSVGRect width]):
720         (-[DOMSVGRect setWidth:]):
721         (-[DOMSVGRect height]):
722         (-[DOMSVGRect setHeight:]):
723         (-[DOMSVGRect WebCore::]):
724         (-[DOMSVGRect _initWithFloatRect:WebCore::]):
725         (+[DOMSVGRect _SVGRectWith:WebCore::]):
726         * bindings/scripts/CodeGeneratorObjC.pm:
727         * css/StyleBase.h:
728         (WebCore::StyleBase::isSVGColor):
729         (WebCore::StyleBase::isSVGPaint):
730         * ksvg2/bindings/js/JSSVGElementWrapperFactory.cpp: Removed.
731         * ksvg2/bindings/js/JSSVGElementWrapperFactory.h: Removed.
732         * ksvg2/bindings/js/JSSVGNumber.cpp: Removed.
733         * ksvg2/bindings/js/JSSVGNumber.h: Removed.
734         * ksvg2/bindings/js/JSSVGPoint.cpp: Removed.
735         * ksvg2/bindings/js/JSSVGPoint.h: Removed.
736         * ksvg2/bindings/js/JSSVGRect.cpp: Removed.
737         * ksvg2/bindings/js/JSSVGRect.h: Removed.
738         * ksvg2/svg/SVGColor.h:
739         (WebCore::SVGColor::isSVGColor):
740         * ksvg2/svg/SVGFECompositeElement.idl:
741         * ksvg2/svg/SVGFEFloodElement.idl:
742         * ksvg2/svg/SVGLocatable.idl:
743         * ksvg2/svg/SVGMarkerElement.idl:
744         * ksvg2/svg/SVGPaint.h:
745         (WebCore::SVGPaint::isSVGPaint):
746         * ksvg2/svg/SVGRectElement.idl:
747         * ksvg2/svg/SVGZoomEvent.idl: Removed.
748
749 2006-10-17  David Hyatt  <hyatt@apple.com>
750
751         Prepare for the elimination of the RenderLayer for <html> elements.  The layer is still present,
752         but this patch makes everything work without a root layer being around.
753
754         Reviewed by beth
755
756         * rendering/RenderBlock.cpp:
757         (WebCore::RenderBlock::paint):
758         (WebCore::RenderBlock::paintChildren):
759         (WebCore::RenderBlock::nodeAtPoint):
760         * rendering/RenderLayer.cpp:
761         (WebCore::frameVisibleRect):
762         (WebCore::RenderLayer::hitTest):
763         (WebCore::RenderLayer::hitTestLayer):
764         (WebCore::RenderLayer::intersectsDamageRect):
765         * rendering/RenderObject.cpp:
766         (WebCore::RenderObject::setInnerNode):
767         * rendering/RenderView.cpp:
768         (WebCore::RenderView::paint):
769
770 2006-10-17  David Hyatt  <hyatt@apple.com>
771
772         Back out my previous patch to the WebCore memory cache.
773
774         * loader/Cache.cpp:
775         (WebCore::Cache::flush):
776         (WebCore::Cache::setSize):
777         (WebCore::Cache::getLRUListFor):
778         (WebCore::Cache::removeFromLRUList):
779         (WebCore::Cache::insertInLRUList):
780         * loader/Cache.h:
781         * loader/CachedCSSStyleSheet.cpp:
782         (WebCore::CachedCSSStyleSheet::deref):
783         * loader/CachedCSSStyleSheet.h:
784         * loader/CachedImage.cpp:
785         (WebCore::CachedImage::deref):
786         * loader/CachedImage.h:
787         * loader/CachedResource.cpp:
788         (WebCore::CachedResource::setRequest):
789         (WebCore::CachedResource::deref):
790         * loader/CachedResource.h:
791         (WebCore::CachedResource::allowInLRUList):
792         * loader/CachedScript.cpp:
793         (WebCore::CachedScript::deref):
794         * loader/CachedScript.h:
795         * loader/CachedXBLDocument.cpp:
796         (WebCore::CachedXBLDocument::deref):
797         * loader/CachedXBLDocument.h:
798         * loader/CachedXSLStyleSheet.cpp:
799         (WebCore::CachedXSLStyleSheet::deref):
800         * loader/CachedXSLStyleSheet.h:
801
802 2006-10-17  Oliver Hunt  <oliver@apple.com>
803
804         Reviewed by Anders.
805
806         Make north and east resize cursors use correct image
807
808         * platform/win/CursorWin.cpp:
809         (WebCore::eastResizeCursor):
810         (WebCore::northResizeCursor):
811
812 2006-10-17  Oliver Hunt  <oliver@apple.com>
813
814         Reviewed by Brady
815
816         Various cursor fixes
817
818         * page/FrameView.cpp:
819         (WebCore::FrameView::handleMouseMoveEvent):
820         * platform/Cursor.h:
821         * platform/mac/CursorMac.mm:
822         (WebCore::pointerCursor):
823         * platform/win/CursorWin.cpp:
824         (WebCore::supportsAlphaCursors):
825         (WebCore::Cursor::Cursor):
826         (WebCore::Cursor::~Cursor):
827         (WebCore::pointerCursor):
828
829 2006-10-17  Justin Garcia  <justin.garcia@apple.com>
830
831         Reviewed by harrison
832         
833         <rdar://problem/4776665>
834         REGRESSION: In Mail, caret is visible when the message body isn't focused
835
836         * page/Frame.cpp:
837         (WebCore::Frame::paintCaret): If a caret blink timer is ever on in error
838         (like when the frame that contains the caret isn't focused) then we don't 
839         want to paint the caret.  We should eventually move to using a single bool
840         for caret painting.
841
842 2006-10-17  Justin Garcia  <justin.garcia@apple.com>
843
844         Reviewed by harrison
845         
846         <rdar://problem/4774354>
847         REGRESSION: In Gmail, caret reappears when dragging a selection over some text in the message body
848
849         Functions call recomputCaretRect to see if the caret rect has changed, 
850         and, if it has, they invalidate (repaint) it.  recomputeCaretRect was 
851         returning false if the caret turned into a range selection or was blown 
852         away.
853
854         * editing/SelectionController.cpp:
855         (WebCore::SelectionController::recomputeCaretRect): Don't early return if
856         !isCaret().  Obtain the FrameView* using the m_frame pointer, because m_sel 
857         may now be null.
858
859 2006-10-17  Geoffrey Garen  <ggaren@apple.com>
860
861         Reviewed by Brady.
862
863         BrowserExtension cleanup.
864         
865         - Removed unnecessary #include of BrowserExtension in Frame.h, added
866         #includes to compensate in other files.
867         
868         - Removed unused versions of createNewWindow.
869         
870         * bindings/js/kjs_window.cpp:
871         * bridge/BrowserExtension.h:
872         * bridge/mac/BrowserExtensionMac.h:
873         * bridge/mac/BrowserExtensionMac.mm:
874         (WebCore::BrowserExtensionMac::createNewWindow):
875         * bridge/mac/WebCoreFrameBridge.mm:
876         * html/HTMLFormElement.cpp:
877         * loader/mac/LoaderFunctionsMac.mm:
878         * page/Frame.h:
879         * page/FramePrivate.h:
880
881 2006-10-15  Geoffrey Garen  <ggaren@apple.com>
882
883         Reviewed by Adam.
884         
885         - Fixed "FIXME: Violates Liskov Substitution principle."
886         
887         IFRAME was never a true subclass of FRAME, since they disagreed on a
888         number of behaviors, which, confusingly, IFRAME just overrode and contradicted. 
889
890         The fix here is to factor out things common to IFRAME and FRAME into a
891         common base class, HTMLFrameElementBase.
892         
893         I also changed some " *" to "* " and added #includes in files that implicitly
894         assumed that HTMLIFrameElement.h #included HTMLFrameElement.h.
895
896 2006-10-16  Justin Garcia  <justin.garcia@apple.com>
897
898         Reviewed by sullivan
899         
900         <rdar://problem/4776765>
901         REGRESSION: Caret's ghost left behind after inserting a paragraph separator (11237)
902
903         We set m_needsLayout to false and call caretRect() in the hopes that it will give us 
904         the old caret rect.  It in fact corrects the caret rect for an offset that it 
905         believes is due to scrolling but which is actually due to a change in selection
906         without an accompanying layout.  So it returns the new caret rect regardless of
907         what m_needsLayout is set to.
908         
909         * editing/SelectionController.cpp:
910         (WebCore::repaintRectForCaret): Moved the code from caretRepaintRect that
911         adds a one pixel slop to this new function.
912         (WebCore::SelectionController::caretRepaintRect): Moved this code to
913         repaintRectForCaret.
914         (WebCore::SelectionController::recomputeCaretRect): Compare the old
915         caret rect to the new one that's computed with a fresh layout.  If
916         they are different, invalidate both repaint rects.
917
918 2006-10-17  David Harrison  <harrison@apple.com>
919
920         Reviewed by Adele.
921
922         <rdar://problem/4770453> VO not honoring secure edit fields in web pages
923
924         * bridge/mac/WebCoreAXObject.mm:
925         (-[WebCoreAXObject isPasswordField]):
926         New. Checks for input with inputType() of PASSWORD.
927         
928         (-[WebCoreAXObject subrole]):
929         Returns NSAccessibilitySecureTextFieldSubrole if [self isPasswordField].
930         
931         (-[WebCoreAXObject roleDescription]):
932         Pass [self subrole] instead of nil when calling NSAccessibilityRoleDescription.
933         
934         (-[WebCoreAXObject value]):
935         Return nil if [self isPasswordField].
936         
937         (-[WebCoreAXObject accessibilityAttributeNames]):
938         Return generic attributes if [self isPasswordField].
939
940         (-[WebCoreAXObject accessibilityParameterizedAttributeNames]):
941         Return empty array if [self isPasswordField].
942
943 2006-10-17  David Hyatt  <hyatt@apple.com>
944
945         Fix "flash to white' problem on yahoo.com as it finishes loading.  Refine the FOUC suppression
946         code so that it will only run if the body still has no renderer.
947
948         * dom/Document.cpp:
949         (WebCore::Document::updateLayoutIgnorePendingStylesheets):
950
951 2006-10-17  David Hyatt  <hyatt@apple.com>
952
953         Fix a bug where the WebCore memory cache could grow without bound during extended browsing
954         sessions.
955
956         Reviewed by mjs
957
958         * loader/Cache.cpp:
959         (WebCore::Cache::flush):
960         (WebCore::Cache::setSize):
961         (WebCore::Cache::getLRUListFor):
962         (WebCore::Cache::removeFromLRUList):
963         (WebCore::Cache::insertInLRUList):
964         * loader/Cache.h:
965         * loader/CachedCSSStyleSheet.cpp:
966         * loader/CachedCSSStyleSheet.h:
967         * loader/CachedImage.cpp:
968         * loader/CachedImage.h:
969         * loader/CachedResource.cpp:
970         (WebCore::CachedResource::setRequest):
971         (WebCore::CachedResource::deref):
972         * loader/CachedResource.h:
973         (WebCore::CachedResource::allowInLRUList):
974         * loader/CachedScript.cpp:
975         * loader/CachedScript.h:
976         * loader/CachedXBLDocument.cpp:
977         * loader/CachedXBLDocument.h:
978         * loader/CachedXSLStyleSheet.cpp:
979         * loader/CachedXSLStyleSheet.h:
980
981 2006-10-13  Justin Garcia  <justin.garcia@apple.com>
982
983         Reviewed by harrison
984         
985         <rdar://problem/3655385>
986         Editing: -indent: method unimplemented
987
988         Added Frame and bridge methods.
989
990         * bridge/mac/WebCoreFrameBridge.h:
991         * bridge/mac/WebCoreFrameBridge.mm:
992         (-[WebCoreFrameBridge indent]):
993         (-[WebCoreFrameBridge outdent]):
994         * page/Frame.cpp:
995         (WebCore::Frame::indent): 
996         (WebCore::Frame::outdent):
997         * page/Frame.h:
998
999 2006-10-16  Adam Roben  <aroben@apple.com>
1000
1001         Reviewed by John.
1002
1003         More menulist cleanup/tweaking.
1004
1005         * html/HTMLSelectElement.cpp:
1006         (WebCore::HTMLSelectElement::setSelectedIndex): Renamed 'index'
1007         parameter to 'optionIndex' for clarity.
1008         (WebCore::HTMLSelectElement::menuListDefaultEventHandler): Skip over
1009         items that are not enabled <option> elements when using arrow keys, and
1010         make sure we pass an option index to setSelectedIndex.
1011         * platform/PopupMenu.h:
1012         (WebCore::PopupMenu::setWasClicked): Specify default argument.
1013         * rendering/RenderMenuList.cpp:
1014         (WebCore::RenderMenuList::setTextFromOption): Strip whitespace from
1015         option text before setting the control text so that options within
1016         <optgroup>s don't appear indented in the actual control.
1017
1018 2006-10-16  Sam Weinig  <sam.weinig@gmail.com>
1019
1020         Reviewed by Adam.
1021
1022         Win32 build fix.
1023
1024         * WebCore.vcproj/WebCore/WebCore.vcproj:
1025         * bridge/win/BrowserExtensionWin.cpp:
1026         (WebCore::BrowserExtensionWin::createNewWindow):
1027         * bridge/win/FrameWin.cpp:
1028         (WebCore::FrameWin::urlSelected):
1029         (WebCore::FrameWin::submitForm):
1030         (WebCore::FrameWin::createNewWindow):
1031         * bridge/win/FrameWin.h:
1032         * loader/loader.cpp:
1033         (WebCore::Loader::receivedResponse):
1034         * platform/win/GraphicsContextWin.cpp:
1035         (WebCore::GraphicsContext::getWindowsContext):
1036         (WebCore::GraphicsContext::releaseWindowsContext):
1037         * platform/win/TemporaryLinkStubs.cpp:
1038         (FrameWin::openURLRequest):
1039         (WebCore::ServeSynchronousRequest):
1040         (WebCore::CheckIfReloading):
1041         (WebCore::IsResponseURLEqualToURL):
1042         (WebCore::ResponseMIMEType):
1043         (WebCore::ResponseIsMultipart):
1044         (WebCore::CacheObjectExpiresTime):
1045         (CachedResource::setResponse):
1046         (CachedResource::setAllData):
1047         * rendering/RenderThemeWin.cpp:
1048         (WebCore::doneDrawing):
1049         (WebCore::RenderThemeWin::paintButton):
1050         (WebCore::RenderThemeWin::paintTextField):
1051
1052 2006-10-16  David Hyatt  <hyatt@apple.com>
1053
1054         Fix for bug 9347, positioned elements have the wrong containing block.  This is a change from CSS2 to
1055         CSS2.1.  In the absence of any other enclosing positioned elements, the containing block for a positioned
1056         element is the initial containing block (our RenderView).
1057
1058         Reviewed by mjs
1059
1060         Test cases added to fast/block/positioning for quirks and strict modes.
1061
1062         * rendering/RenderBlock.cpp:
1063         (WebCore::RenderBlock::lowestPosition):
1064         (WebCore::RenderBlock::rightmostPosition):
1065         (WebCore::RenderBlock::leftmostPosition):
1066         * rendering/RenderBox.cpp:
1067         (WebCore::RenderBox::containingBlockHeightForPositioned):
1068         (WebCore::RenderBox::calcAbsoluteVertical):
1069         * rendering/RenderObject.cpp:
1070         (WebCore::RenderObject::containingBlock):
1071         (WebCore::RenderObject::container):
1072
1073 2006-10-15  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
1074
1075         Reviewed by Anders.
1076
1077         Misc Gdk/Linux build fixes.
1078
1079         * platform/gdk/BrowserExtensionGdk.h:
1080         * platform/gdk/FrameGdk.cpp:
1081         (WebCore::FrameGdk::submitForm):
1082         (WebCore::FrameGdk::urlSelected):
1083         * platform/gdk/FrameGdk.h:
1084         * platform/gdk/RenderPopupMenuGdk.cpp:
1085         (WebCore::PopupMenu::PopupMenu):
1086         (WebCore::PopupMenu::~PopupMenu):
1087         (WebCore::PopupMenu::clear):
1088         (WebCore::PopupMenu::populate):
1089         (WebCore::PopupMenu::show):
1090         (WebCore::PopupMenu::hide):
1091         (WebCore::PopupMenu::addSeparator):
1092         (WebCore::PopupMenu::addGroupLabel):
1093         (WebCore::PopupMenu::addOption):
1094         * platform/gdk/RenderPopupMenuGdk.h:
1095         * platform/gdk/RenderThemeGdk.cpp:
1096         * platform/gdk/RenderThemeGdk.h:
1097         (WebCore::RenderThemeGdk::RenderThemeGdk):
1098         * platform/gdk/TemporaryLinkStubs.cpp:
1099         (BrowserExtensionGdk::createNewWindow):
1100         (BrowserExtensionGdk::BrowserExtensionGdk):
1101         (BrowserExtensionGdk::setTypedIconURL):
1102         (BrowserExtensionGdk::setIconURL):
1103         (BrowserExtensionGdk::getHistoryLength):
1104         (WebCore::CheckIfReloading):
1105         (WebCore::CacheObjectExpiresTime):
1106         (WebCore::ResponseURL):
1107         (WebCore::IsResponseURLEqualToURL):
1108         (WebCore::ResponseIsMultipart):
1109         (WebCore::ResponseMIMEType):
1110         (WebCore::CachedResource::setResponse):
1111         (WebCore::CachedResource::setAllData):
1112         (FileChooser::disconnectUploadControl):
1113         * rendering/RenderTheme.h:
1114         * rendering/RenderThemeMac.h:
1115
1116 2006-10-15  Sam Weinig  <sam.weinig@gmail.com>
1117
1118         Reviewed by Mitz.
1119
1120         Fix for http://bugs.webkit.org/show_bug.cgi?id=11294
1121         Add getModifierState method to KeyboardEvent
1122
1123         * bindings/objc/DOMEvents.h:
1124         * bindings/objc/DOMEvents.mm:
1125         * bindings/objc/PublicDOMInterfaces.h:
1126         * dom/KeyboardEvent.cpp:
1127         (WebCore::KeyboardEvent::getModifierState):
1128         * dom/KeyboardEvent.h:
1129         * dom/KeyboardEvent.idl:
1130
1131 2006-10-15  Nikolas Zimmermann  <zimmermann@kde.org>
1132
1133         Reviewed and landed by ap.
1134
1135         Changed PlatformResponse handling for Qt. Don't just store
1136         a QString object containing the data but a new PlatformResponseQt struct
1137         containing data and url, and store it as pointer. This is compatible
1138         to the OS X handling and removes the Qt plaform specific hacks from
1139         CachedCSSStyleSheet, CachedResource & loader.
1140
1141         Add new file LoaderFunctionsQt, similar to LoaderFunctionsMac, and move
1142         all methods from TemporaryLinkStubs related to loading in there, and implement
1143         some like ServeSynchronousRequest (yay for xslt handling!).
1144
1145         * CMakeLists.txt:
1146         * loader/CachedCSSStyleSheet.cpp:
1147         (WebCore::CachedCSSStyleSheet::checkNotify):
1148         * loader/CachedResource.h:
1149         (WebCore::CachedResource::CachedResource):
1150         * loader/loader.cpp:
1151         (WebCore::Loader::receivedResponse):
1152         * platform/ResourceLoaderClient.h:
1153         * platform/ResourceLoaderInternal.h:
1154         * platform/qt/FrameQt.cpp:
1155         (WebCore::FrameQt::~FrameQt):
1156         (WebCore::FrameQt::createEmptyDocument):
1157         * platform/qt/FrameQt.h:
1158         (WebCore::QtFrame):
1159         * platform/qt/FrameQtClient.cpp:
1160         (WebCore::FrameQtClientDefault::setFrame):
1161         (WebCore::FrameQtClientDefault::openURL):
1162         (WebCore::FrameQtClientDefault::loadFinished):
1163         (WebCore::FrameQtClientDefault::receivedAllData):
1164         * platform/qt/FrameQtClient.h:
1165         * platform/qt/LoaderFunctionsQt.cpp: Added.
1166         (WebCore::ServeSynchronousRequest):
1167         (WebCore::NumberOfPendingOrLoadingRequests):
1168         (WebCore::CheckIfReloading):
1169         (WebCore::CheckCacheObjectStatus):
1170         (WebCore::IsResponseURLEqualToURL):
1171         (WebCore::ResponseURL):
1172         (WebCore::ResponseMIMEType):
1173         (WebCore::ResponseIsMultipart):
1174         (WebCore::CacheObjectExpiresTime):
1175         (WebCore::CachedResource::setResponse):
1176         (WebCore::CachedResource::setAllData):
1177         * platform/qt/ResourceLoaderManager.cpp:
1178         (WebCore::ResourceLoaderManager::remove):
1179         * platform/qt/ResourceLoaderQt.cpp:
1180         (WebCore::ResourceLoader::~ResourceLoader):
1181         (WebCore::ResourceLoader::start):
1182         (WebCore::ResourceLoader::assembleResponseHeaders):
1183         (WebCore::ResourceLoader::receivedResponse):
1184         * platform/qt/TemporaryLinkStubs.cpp:
1185
1186 2006-10-14  Rob Buis  <buis@kde.org>
1187
1188         Reviewed by Mitz.
1189
1190         http://bugs.webkit.org/show_bug.cgi?id=11217
1191         Cleanup svg coding style
1192
1193         Cleanup coding style in svg basic datastructure classes.
1194
1195         * ksvg2/svg/SVGAngle.cpp:
1196         (WebCore::SVGAngle::valueAsString):
1197         (WebCore::SVGAngle::context):
1198         (WebCore::SVGAngle::setContext):
1199         * ksvg2/svg/SVGAngle.h:
1200         * ksvg2/svg/SVGColor.cpp:
1201         * ksvg2/svg/SVGColor.h:
1202         * ksvg2/svg/SVGElement.cpp:
1203         (WebCore::SVGElement::ownerSVGElement):
1204         (WebCore::SVGElement::viewportElement):
1205         (WebCore::SVGElement::parseMappedAttribute):
1206         (WebCore::SVGElement::childShouldCreateRenderer):
1207         * ksvg2/svg/SVGElement.h:
1208         (WebCore::svg_dynamic_cast):
1209         * ksvg2/svg/SVGFitToViewBox.cpp:
1210         (WebCore::SVGFitToViewBox::parseViewBox):
1211         * ksvg2/svg/SVGFitToViewBox.h:
1212         * ksvg2/svg/SVGLangSpace.cpp:
1213         (WebCore::SVGLangSpace::parseMappedAttribute):
1214         * ksvg2/svg/SVGLangSpace.h:
1215         * ksvg2/svg/SVGLength.cpp:
1216         (WebCore::SVGLength::SVGLength):
1217         (WebCore::SVGLength::setValueAsString):
1218         (WebCore::SVGLength::dpi):
1219         (WebCore::SVGLength::updateValue):
1220         (WebCore::SVGLength::updateValueInSpecifiedUnits):
1221         (WebCore::SVGLength::context):
1222         (WebCore::SVGLength::setContext):
1223         * ksvg2/svg/SVGLength.h:
1224         * ksvg2/svg/SVGLengthList.cpp:
1225         * ksvg2/svg/SVGLengthList.h:
1226         * ksvg2/svg/SVGLocatable.cpp:
1227         (WebCore::SVGLocatable::nearestViewportElement):
1228         (WebCore::SVGLocatable::farthestViewportElement):
1229         (WebCore::SVGLocatable::getBBox):
1230         (WebCore::SVGLocatable::getCTM):
1231         (WebCore::SVGLocatable::getScreenCTM):
1232         * ksvg2/svg/SVGNumberList.cpp:
1233         * ksvg2/svg/SVGNumberList.h:
1234         * ksvg2/svg/SVGPreserveAspectRatio.cpp:
1235         (WebCore::SVGPreserveAspectRatio::SVGPreserveAspectRatio):
1236         (WebCore::SVGPreserveAspectRatio::getCTM):
1237         * ksvg2/svg/SVGPreserveAspectRatio.h:
1238         * ksvg2/svg/SVGStringList.cpp:
1239         (WebCore::SVGStringList::reset):
1240         * ksvg2/svg/SVGStringList.h:
1241         * ksvg2/svg/SVGStylable.cpp:
1242         * ksvg2/svg/SVGStylable.h:
1243         * ksvg2/svg/SVGTests.cpp:
1244         (WebCore::SVGTests::requiredFeatures):
1245         (WebCore::SVGTests::requiredExtensions):
1246         (WebCore::SVGTests::systemLanguage):
1247         (WebCore::SVGTests::isValid):
1248         (WebCore::SVGTests::parseMappedAttribute):
1249         * ksvg2/svg/SVGTests.h:
1250         * ksvg2/svg/SVGTransformable.cpp:
1251         (WebCore::SVGTransformable::parseTransformAttribute):
1252         * ksvg2/svg/SVGTransformable.h:
1253         * ksvg2/svg/SVGURIReference.cpp:
1254         (WebCore::SVGURIReference::parseMappedAttribute):
1255         * ksvg2/svg/SVGZoomAndPan.cpp:
1256         (WebCore::SVGZoomAndPan::parseMappedAttribute):
1257         * ksvg2/svg/SVGZoomAndPan.h:
1258
1259 2006-10-15  Nikolas Zimmermann  <zimmermann@kde.org>
1260
1261         Reviewed by Oliver.
1262
1263         Implement some functions in FrameQt / ScrollViewQt.
1264
1265         Added comments what needs to be done in quite some places,
1266         marked some functions as no-ops.
1267
1268         * CMakeLists.txt:
1269         * platform/qt/FrameQt.cpp:
1270         (WebCore::FrameQt::FrameQt):
1271         (WebCore::FrameQt::runJavaScriptConfirm):
1272         (WebCore::FrameQt::locationbarVisible):
1273         (WebCore::FrameQt::createFrame):
1274         (WebCore::FrameQt::passSubframeEventToSubframe):
1275         (WebCore::FrameQt::menubarVisible):
1276         (WebCore::FrameQt::personalbarVisible):
1277         (WebCore::FrameQt::statusbarVisible):
1278         (WebCore::FrameQt::toolbarVisible):
1279         (WebCore::FrameQt::markedTextRange):
1280         (WebCore::FrameQt::lastEventIsMouseUp):
1281         (WebCore::FrameQt::openURLRequest):
1282         (WebCore::FrameQt::scheduleClose):
1283         (WebCore::FrameQt::unfocusWindow):
1284         (WebCore::FrameQt::focusWindow):
1285         (WebCore::FrameQt::overrideMediaType):
1286         (WebCore::FrameQt::runJavaScriptPrompt):
1287         (WebCore::FrameQt::bindingRootObject):
1288         (WebCore::FrameQt::addPluginRootObject):
1289         (WebCore::FrameQt::registerCommandForUndo):
1290         (WebCore::FrameQt::registerCommandForRedo):
1291         (WebCore::FrameQt::clearUndoRedoOperations):
1292         (WebCore::FrameQt::respondToChangedSelection):
1293         (WebCore::FrameQt::respondToChangedContents):
1294         (WebCore::FrameQt::shouldChangeSelection):
1295         (WebCore::FrameQt::canGoBackOrForward):
1296         (WebCore::FrameQt::canPaste):
1297         (WebCore::FrameQt::canRedo):
1298         (WebCore::FrameQt::canUndo):
1299         * platform/qt/FrameQt.h:
1300         * platform/qt/FrameQtClient.cpp:
1301         (WebCore::FrameQtClientDefault::runJavaScriptAlert):
1302         (WebCore::FrameQtClientDefault::runJavaScriptConfirm):
1303         (WebCore::FrameQtClientDefault::runJavaScriptPrompt):
1304         (WebCore::FrameQtClientDefault::menubarVisible):
1305         (WebCore::FrameQtClientDefault::toolbarVisible):
1306         (WebCore::FrameQtClientDefault::statusbarVisible):
1307         (WebCore::FrameQtClientDefault::personalbarVisible):
1308         (WebCore::FrameQtClientDefault::locationbarVisible):
1309         * platform/qt/FrameQtClient.h:
1310         * platform/qt/ImageSourceQt.cpp:
1311         * platform/qt/RenderThemeQt.cpp:
1312         * platform/qt/ScrollViewQt.cpp:
1313         (WebCore::ScrollView::scrollPointRecursively):
1314         * platform/qt/TemporaryLinkStubs.cpp:
1315         (WebCore::CachedResource::setResponse):
1316         (WebCore::CachedResource::setAllData):
1317
1318 2006-10-14  David Harrison  <harrison@apple.com>
1319
1320         Reviewed by Geoff.
1321
1322         <rdar://problem/4775213> REGRESSION: Can't from tab from last link on the page to URL address field
1323         <rdar://problem/4783926> REGRESSION: Typing tab key enters no text
1324
1325         The problem is that EventTargetNode::defaultEventHandler() calls event->setDefaultHandled() regardless
1326         of whether frame->view()->advanceFocus() actually changed the focus.
1327
1328         Trivial fix is to preventDefault() only if advanceFocus() returns true.
1329
1330         * No test is possible because DumpRenderTree sets the WebView preference to
1331         tab to links, and that preference cannot be changed dynamically after
1332         the webview is initialized. Also, the "tab from last link" is not testable
1333         because DumpRenderTree uses the WebView for the whole window, so tabs can't
1334         shift focus out of the WebView regardless.
1335
1336         * dom/EventTargetNode.cpp:
1337         (WebCore::EventTargetNode::defaultEventHandler):
1338
1339 2006-10-14  Nikolas Zimmermann  <zimmermann@kde.org>
1340
1341         Reviewed by Mitz.
1342
1343         Fix Qt/Linux build & some little fixes:
1344
1345         - Adapt to Maciej's FrameLoadRequest changes.
1346         - Fix response handling - don't try to compare with '0' - for us it's a non-ptr QString object.
1347         - Actually call setAllData from loader/loader.cpp (David Carson forgot that in his last commit)
1348         - Fix CacheObjectExpiresTime/ResponseIsMultipart signature.
1349
1350         * loader/CachedCSSStyleSheet.cpp:
1351         (WebCore::CachedCSSStyleSheet::checkNotify):
1352         * loader/CachedResource.h:
1353         (WebCore::CachedResource::CachedResource):
1354         * loader/loader.cpp:
1355         (WebCore::Loader::receivedAllData):
1356         (WebCore::Loader::receivedResponse):
1357         * platform/qt/BrowserExtensionQt.cpp:
1358         (WebCore::BrowserExtensionQt::createNewWindow):
1359         * platform/qt/BrowserExtensionQt.h:
1360         * platform/qt/FrameQt.cpp:
1361         (WebCore::FrameQt::submitForm):
1362         (WebCore::FrameQt::urlSelected):
1363         (WebCore::FrameQt::openURLRequest):
1364         * platform/qt/FrameQt.h:
1365         * platform/qt/GraphicsContextQt.cpp:
1366         (WebCore::GraphicsContext::setURLForRect):
1367         * platform/qt/TemporaryLinkStubs.cpp:
1368         (WebCore::CacheObjectExpiresTime):
1369         (WebCore::ResponseIsMultipart):
1370         (WebCore::CachedResource::setResponse):
1371         (WebCore::CachedResource::setAllData):
1372
1373 2006-10-14  David Carson  <dacarson@gmail.com>
1374
1375         Reviewed by Maciej.
1376
1377         Fix: http://bugs.webkit.org/show_bug.cgi?id=11257
1378         Removed Mac platform dependance, changed WebCore functions to
1379         use PlatformResponse/PlatformData rather than NSURLResponse/
1380         NSData. 
1381
1382         * loader/CachedCSSStyleSheet.cpp:
1383         (WebCore::CachedCSSStyleSheet::checkNotify):
1384         * loader/CachedImage.cpp:
1385         (WebCore::CachedImage::createImage):
1386         * loader/CachedResource.cpp:
1387         (WebCore::CachedResource::~CachedResource):
1388         * loader/CachedResource.h:
1389         (WebCore::CachedResource::CachedResource):
1390         (WebCore::CachedResource::response):
1391         (WebCore::CachedResource::allData):
1392         * loader/LoaderFunctions.h:
1393         * loader/loader.cpp:
1394         (WebCore::Loader::receivedResponse):
1395         * loader/mac/LoaderFunctionsMac.mm:
1396         (WebCore::ResponseMIMEType):
1397         (WebCore::ResponseIsMultipart):
1398         (WebCore::CacheObjectExpiresTime):
1399         (WebCore::CachedResource::setResponse):
1400         (WebCore::CachedResource::setAllData):
1401         * platform/qt/TemporaryLinkStubs.cpp:
1402         (WebCore::CacheObjectExpiresTime):
1403         (WebCore::ResponseIsMultipart):
1404         (WebCore::ResponseMIMEType):
1405         (WebCore::CachedResource::setResponse):
1406         (WebCore::CachedResource::setAllData):
1407         * platform/win/TemporaryLinkStubs.cpp:
1408         (WebCore::CacheObjectExpiresTime):
1409         (WebCore::ResponseIsMultipart):
1410         (WebCore::ResponseMIMEType):
1411         (WebCore::CachedResource::setResponse):
1412         (WebCore::CachedResource::setAllData):
1413
1414 2006-10-14  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
1415
1416         Reviewed by Maciej.
1417
1418         Fix GDK build by defining FrameGdkClient() constructor as non-virtual.
1419         Pure virtual classes require non-pure destructor, who knew.
1420
1421         Make CURL networking dependent on USE(CURL) instead of PLATFORM(GDK),
1422         so that other platforms can also use CURL, if they wish.
1423
1424         Silence compiler warning about unused variable in SharedTimerLinux.cpp
1425
1426         * platform/ResourceLoaderInternal.h:
1427         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
1428         * platform/gdk/FrameGdk.h:
1429         (WebCore::FrameGdkClient::~FrameGdkClient):
1430         * platform/gdk/ResourceLoaderManager.cpp:
1431         (WebCore::ResourceLoaderManager::downloadTimerCallback):
1432         * platform/gdk/SharedTimerLinux.cpp:
1433         (WebCore::stopSharedTimer):
1434
1435 2006-10-13  Beth Dakin  <bdakin@apple.com>
1436
1437         Reviewed by Geoff.
1438
1439         Build fix from my last check-in. Make hasOutlineAnnotation() non-
1440         inline so that we don't have to include Document.h in 
1441         RenderObject.h
1442         Doing so causes a build failure in WebKit, and it probably isn't a 
1443         good idea anyway.
1444
1445         * rendering/RenderObject.cpp:
1446         (WebCore::RenderObject::hasOutlineAnnotation):
1447         * rendering/RenderObject.h:
1448         (WebCore::RenderObject::hasOutline):
1449
1450 2006-10-13  Beth Dakin  <bdakin@apple.com>
1451
1452         Patch written mostly by Ken Kraisler, but also by me.
1453
1454         Reviewed by Hyatt.
1455
1456         Fix for http://bugs.webkit.org/show_bug.cgi?id=10216 and <rdar://
1457         problem/3391162> PDF created by printing should have live 
1458         hyperlinks
1459
1460         * platform/GraphicsContext.cpp:
1461         (WebCore::GraphicsContext::focusRingBoundingRect):
1462         * platform/GraphicsContext.h:
1463         * platform/cairo/GraphicsContextCairo.cpp:
1464         (WebCore::GraphicsContext::setURLForRect):
1465         * platform/cg/GraphicsContextCG.cpp:
1466         (WebCore::GraphicsContext::setURLForRect): Implement method to add 
1467         URL link to PDF document.
1468         * rendering/InlineFlowBox.cpp:
1469         (WebCore::InlineFlowBox::paint): Ask hasOutline() instead of 
1470         querying the outline width
1471         * rendering/RenderBlock.cpp:
1472         (WebCore::RenderBlock::paintObject): Same as above.
1473         * rendering/RenderFlow.cpp:
1474         (WebCore::RenderFlow::paintLines): Call the new paintOutline()
1475         (WebCore::RenderFlow::paintOutline): Take care of focus ring and 
1476         pdf url rects, and outline painting.
1477         * rendering/RenderFlow.h:
1478         * rendering/RenderObject.cpp:
1479         (WebCore::RenderObject::addPDFURLRect): Declaration to apply a PDF 
1480         link to a rectanglular region.
1481         (WebCore::RenderObject::paintOutline): Take care of pdf rects as 
1482         well as focus ring painting.
1483         * rendering/RenderObject.h:
1484         (WebCore::RenderObject::hasOutlineAnnotation): Returns true is the 
1485         element is a link and we are printing.
1486         (WebCore::RenderObject::hasOutline): Returns true is the style has 
1487         an outline and hasOutlineAnnotation() is true.
1488         * rendering/RenderStyle.h:
1489         (WebCore::RenderStyle::hasOutline): Returns true if outlineWidth is 
1490         greater than 0 and outlineStyle is greater than BHIDDEN.
1491
1492 2006-10-13  Justin Garcia  <justin.garcia@apple.com>
1493
1494         Reviewed by ggaren and harrison
1495         
1496         <rdar://problem/4744008>
1497         9A270: Mail crashes when I try to paste large items from Safari
1498
1499         * editing/ReplaceSelectionCommand.cpp:
1500         (WebCore::ReplaceSelectionCommand::removeRedundantStyles):
1501         Even though we put nodes in the hash map in pre-order, they don't necessary
1502         come out of the iterator that way.  If a node is a redundant style span
1503         and one of its pruned ancestors comes off the hash map after it, and that
1504         ancestor is a redundant style span or font tag, we will try to remove it
1505         even though it has already been removed and we'll crash.
1506         The test case added with the fix depends on our hash map implementation
1507         because it requires that a particular redundant style span come out of 
1508         the iterator before its parent. So, it may eventually not provide 
1509         coverage for the fix.
1510
1511 2006-10-13  Maciej Stachowiak  <mjs@apple.com>
1512
1513         Reviewed by Darin.
1514
1515         - split FrameLoadRequest off from ResourceRequest - it's a ResourceRequest plus frame name plus lockHistory bool
1516
1517         * WebCore.xcodeproj/project.pbxproj:
1518         * bindings/js/kjs_window.cpp:
1519         (KJS::createNewWindow):
1520         (KJS::WindowFunc::callAsFunction):
1521         * bridge/BrowserExtension.h:
1522         * bridge/mac/BrowserExtensionMac.h:
1523         * bridge/mac/BrowserExtensionMac.mm:
1524         (WebCore::BrowserExtensionMac::createNewWindow):
1525         * bridge/mac/FrameMac.h:
1526         * bridge/mac/FrameMac.mm:
1527         (WebCore::FrameMac::submitForm):
1528         (WebCore::FrameMac::openURLRequest):
1529         (WebCore::FrameMac::urlSelected):
1530         * bridge/win/BrowserExtensionWin.h:
1531         * page/Frame.cpp:
1532         (WebCore::Frame::changeLocation):
1533         (WebCore::Frame::urlSelected):
1534         (WebCore::Frame::requestFrame):
1535         (WebCore::Frame::submitForm):
1536         * page/Frame.h:
1537         * page/FrameLoadRequest.h: Added.
1538         (WebCore::FrameLoadRequest::FrameLoadRequest):
1539         (WebCore::FrameLoadRequest::lockHistory):
1540         (WebCore::FrameLoadRequest::setLockHistory):
1541         * page/ResourceRequest.h:
1542         (WebCore::ResourceRequest::ResourceRequest):
1543
1544 2006-10-13  John Sullivan  <sullivan@apple.com>
1545
1546         Reviewed by Maciej
1547
1548         * loader/mac/WebFrameLoader.mm:
1549         (-[WebFrameLoader loadDocumentLoader:]):
1550         Replace ASSERT(!policyDocumentLoader) with code that handles this case. This can
1551         happen when loading a page during a decidePolicyForNavigationAction callback.
1552
1553 2006-10-13  Dave Hyatt  <hyatt@apple.com>
1554
1555         Transparency layer work.
1556
1557         Reviewed by aroben
1558
1559         * platform/GraphicsContext.h:
1560         * platform/cg/GraphicsContextCG.cpp:
1561         (WebCore::GraphicsContext::beginTransparencyLayer):
1562         (WebCore::GraphicsContext::endTransparencyLayer):
1563         * platform/cg/GraphicsContextPlatformPrivate.h:
1564         (WebCore::GraphicsContextPlatformPrivate::beginTransparencyLayer):
1565         (WebCore::GraphicsContextPlatformPrivate::endTransparencyLayer):
1566
1567 2006-10-13  Rob Buis  <buis@kde.org>
1568
1569         Reviewed by Mitz.
1570
1571         http://bugs.webkit.org/show_bug.cgi?id=11217
1572         Cleanup svg coding style
1573
1574         Cleanup coding style in svg paint server classes.
1575
1576         * ksvg2/svg/SVGGradientElement.cpp:
1577         (WebCore::SVGGradientElement::SVGGradientElement):
1578         (WebCore::SVGGradientElement::parseMappedAttribute):
1579         (WebCore::SVGGradientElement::notifyAttributeChange):
1580         (WebCore::SVGGradientElement::canvasResource):
1581         (WebCore::SVGGradientElement::rebuildStops):
1582         * ksvg2/svg/SVGGradientElement.h:
1583         * ksvg2/svg/SVGLinearGradientElement.cpp:
1584         (WebCore::SVGLinearGradientElement::SVGLinearGradientElement):
1585         (WebCore::SVGLinearGradientElement::parseMappedAttribute):
1586         (WebCore::SVGLinearGradientElement::buildGradient):
1587         * ksvg2/svg/SVGLinearGradientElement.h:
1588         * ksvg2/svg/SVGPatternElement.cpp:
1589         (WebCore::SVGPatternElement::SVGPatternElement):
1590         (WebCore::SVGPatternElement::parseMappedAttribute):
1591         (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
1592         (WebCore::SVGPatternElement::drawPatternContentIntoTile):
1593         (WebCore::SVGPatternElement::notifyClientsToRepaint):
1594         (WebCore::SVGPatternElement::notifyAttributeChange):
1595         (WebCore::SVGPatternElement::canvasResource):
1596         (WebCore::SVGPatternElement::getCTM):
1597         * ksvg2/svg/SVGPatternElement.h:
1598         (WebCore::SVGPatternElement::rendererIsNeeded):
1599         * ksvg2/svg/SVGRadialGradientElement.cpp:
1600         (WebCore::SVGRadialGradientElement::SVGRadialGradientElement):
1601         (WebCore::SVGRadialGradientElement::parseMappedAttribute):
1602         (WebCore::SVGRadialGradientElement::buildGradient):
1603         * ksvg2/svg/SVGRadialGradientElement.h:
1604         * ksvg2/svg/SVGStopElement.cpp:
1605         (WebCore::SVGStopElement::SVGStopElement):
1606         (WebCore::SVGStopElement::parseMappedAttribute):
1607         * ksvg2/svg/SVGStopElement.h:
1608
1609 2006-10-13  Geoffrey Garen  <ggaren@apple.com>
1610
1611         Reviewed by Darin, John.
1612
1613         - Merged more frame and iframe code
1614         - Fixed a bug where iframes returned incorrect values for renderer-dependent 
1615         properties during javascript: loads because they didn't have renderers at 
1616         load time
1617         
1618         PLT insists this is a small performance win. Don't believe its lies.
1619
1620         * bindings/js/kjs_html.cpp:
1621         (KJS::JSHTMLElement::frameGetter): Renamed frameWidth and frameHeight to
1622         width and height, for consistency with the rest of the DOM.
1623         * dom/ContainerNode.cpp:
1624         (WebCore::ContainerNode::queuePostAttachCallback): Added a post-attach callback
1625         queue that gets drained after the render tree is fully constructed. Currently,
1626         this is only used for frame loading.
1627         (WebCore::ContainerNode::attach):
1628         * dom/ContainerNode.h:
1629         * html/HTMLFrameElement.cpp:
1630         (WebCore::HTMLFrameElement::insertedIntoDocument): Removed frame loading from
1631         attach() because loading iframes during attach() causes a crash. 
1632         Moved frame loading logic into insertedIntoDocument(). That's a more 
1633         logical place for it because  document insertion is what 
1634         triggers frame loading. Made frame loading a post-attach callback, instead
1635         of an immediate action, to fix the incorrect values bug.
1636         (WebCore::HTMLFrameElement::attach): Added setWidget call that used to be
1637         in HTMLIFrameElement::attach. IFRAME requires this call. FRAME will soon 
1638         require this call, once I remove the call from WebKit.
1639         (WebCore::HTMLFrameElement::setLocation):
1640         (WebCore::HTMLFrameElement::width):
1641         (WebCore::HTMLFrameElement::height):
1642         * html/HTMLFrameElement.h: Made openURL non-virtual to avoid the unnecessary
1643         killing of puppies.
1644         * html/HTMLIFrameElement.cpp: Merged code into HTMLFrameElement
1645         (WebCore::HTMLIFrameElement::rendererIsNeeded):
1646         (WebCore::HTMLIFrameElement::createRenderer):
1647         (WebCore::HTMLIFrameElement::insertedIntoDocument):
1648         (WebCore::HTMLIFrameElement::removedFromDocument):
1649         (WebCore::HTMLIFrameElement::attach):
1650         * page/FrameView.h: Removed unused method.
1651
1652 2006-10-13  David Harrison  <harrison@apple.com>
1653
1654         Reviewed by Justin.
1655
1656         <rdar://problem/4746860> Mail crash in WebCore::CSSMutableStyleDeclaration::merge(WebCore::CSSMutableStyleDeclaration*, bool)
1657
1658         Tests added or changed:
1659         * editing/style/style-boundary-005.html: Added. Matches steps from bug.
1660         * editing/execCommand/hilitecolor-expected.txt: Updated (no empty Apple style spans).
1661         * editing/style/remove-underline-across-paragraph-in-bold-expected.txt: Updated (no empty Apple style spans).
1662         * editing/style/remove-underline-in-bold-expected.txt: Updated (no empty Apple style spans).
1663         * editing/style/typing-style-003-expected.txt: Updated (no empty Apple style spans).
1664
1665         * dom/Text.cpp:
1666         (WebCore::Text::splitText):
1667         Comment changes.
1668         
1669         * editing/ApplyStyleCommand.cpp:
1670         (WebCore::isUnstyledStyleSpan):
1671         Renamed from isEmptyStyleSpan.
1672         
1673         (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
1674         Rename emptySpans local to unstyledSpans.
1675         
1676         (WebCore::dummySpanAncestorForNode):
1677         New. To locate Apple style span created when splitting a text node.
1678         
1679         (WebCore::ApplyStyleCommand::cleanupUnstyledAppleStyleSpans):
1680         Renamed from cleanUpEmptyStyleSpans. Algorithm changed to scan children
1681         of dummy span's parents, rather than traversing up from start and
1682         end locations. Old algorithm would miss empty spans in the bug case.
1683         
1684         (WebCore::ApplyStyleCommand::applyInlineStyle):
1685         Use dummySpanAncestorForNode() and cleanupUnstyledAppleStyleSpans().
1686         
1687         (WebCore::ApplyStyleCommand::removeCSSStyle):
1688         Renamed isEmptyStyleSpan() to isUnstyledStyleSpan().
1689         
1690         (WebCore::ApplyStyleCommand::mergeStartWithPreviousIfIdentical):
1691         Comment changes.
1692         
1693         * editing/ApplyStyleCommand.h:
1694         Renamed cleanUpEmptyStyleSpans() to cleanupUnstyledAppleStyleSpans().
1695           
1696         * editing/ReplaceSelectionCommand.cpp:
1697         (WebCore::ReplaceSelectionCommand::removeRedundantStyles):
1698         Allow for Apple style span to be unstyled, because old email may have this in the DOM.
1699         Use !node->hasChildNodes() instead of !node->firstChild().
1700         
1701         * editing/SplitTextNodeCommand.cpp:
1702         (WebCore::SplitTextNodeCommand::doApply):
1703         Comment changes.
1704         
1705         * rendering/RenderTreeAsText.cpp:
1706         (WebCore::isEmptyOrUnstyledAppleStyleSpan):
1707         (WebCore::operator<<):
1708         Flag empty or unstyled AppleStyleSpa nbecause we never want to leave them in the DOM
1709
1710 2006-10-13  Nikolas Zimmermann  <zimmermann@kde.org>
1711
1712         Reviewed by Eric.
1713
1714         Fix Qt/Linux build after Adele's popup menu changes.
1715
1716         * CMakeLists.txt:
1717         * platform/qt/FileChooserQt.cpp:
1718         (WebCore::FileChooser::disconnectUploadControl):
1719         * platform/qt/PopupMenuQt.cpp: Added.
1720         (WebCore::PopupMenu::PopupMenu):
1721         (WebCore::PopupMenu::~PopupMenu):
1722         (WebCore::PopupMenu::clear):
1723         (WebCore::PopupMenu::populate):
1724         (WebCore::PopupMenu::show):
1725         (WebCore::PopupMenu::hide):
1726         (WebCore::PopupMenu::addSeparator):
1727         (WebCore::PopupMenu::addGroupLabel):
1728         (WebCore::PopupMenu::addOption):
1729         * platform/qt/RenderPopupMenuQt.cpp: Removed.
1730         * platform/qt/RenderPopupMenuQt.h: Removed.
1731         * platform/qt/RenderThemeQt.cpp:
1732
1733 2006-10-13  Kevin McCullough  <KMcCullough@apple.com>
1734
1735         Reviewed by Darin.
1736
1737         fixed build failure 
1738
1739         * WebCore.xcodeproj/project.pbxproj:
1740         * loader/mac/WebFrameLoader.mm:
1741
1742 2006-10-13  Darin Adler  <darin@apple.com>
1743
1744         Reviewed by Adele.
1745
1746         - converted WebFormState from Objective-C to C++
1747
1748         * WebCore.exp: Added a new symbol, changed one symbol from C to C++.
1749
1750         * WebCore.xcodeproj/project.pbxproj: Made lots of headers "private" instead of "project".
1751         Added UChar.h and FrameLoaderTypes.h.
1752
1753         * loader/FrameLoaderTypes.h: Added. Has enums from WebFrameLoader.h.
1754
1755         * loader/mac/WebFormState.h: Converted class to C++.
1756         * loader/mac/WebFormState.mm: Ditto.
1757
1758         * loader/mac/WebFrameLoader.h:
1759         * loader/mac/WebFrameLoader.mm:
1760         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
1761         (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
1762         (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
1763         (-[WebFrameLoader invalidatePendingPolicyDecisionCallingDefaultAction:]):
1764         (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
1765         (-[WebFrameLoader continueAfterNewWindowPolicy:]):
1766         (-[WebFrameLoader checkNavigationPolicyForRequest:documentLoader:formState:andCall:withSelector:]):
1767         (-[WebFrameLoader continueAfterNavigationPolicy:]):
1768         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
1769         (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
1770         (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
1771         (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1772         Changed Objective-C WebFormState uses to C++ WebCore::FormState.
1773
1774 2006-10-13  Adele Peterson  <adele@apple.com>
1775
1776         Reviewed by Maciej.
1777
1778         - Fix for <rdar://problem/4768591> REGRESSION: List box selection color should just be a darker version of regular selection color
1779
1780         * rendering/RenderListBox.cpp:
1781         (WebCore::RenderListBox::paintItemForeground):
1782         * rendering/RenderTheme.cpp:
1783         (WebCore::RenderTheme::activeListBoxSelectionBackgroundColor):
1784         (WebCore::RenderTheme::activeListBoxSelectionForegroundColor):
1785         (WebCore::RenderTheme::inactiveListBoxSelectionBackgroundColor):
1786         (WebCore::RenderTheme::inactiveListBoxSelectionForegroundColor):
1787         * rendering/RenderThemeMac.h:
1788         * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::activeListBoxSelectionBackgroundColor):
1789
1790 2006-10-13  Rob Buis  <buis@kde.org>
1791
1792         Reviewed by Mitz.
1793
1794         http://bugs.webkit.org/show_bug.cgi?id=11217
1795         Cleanup svg coding style
1796
1797         Cleanup coding style in svg structure classes.
1798
1799         * ksvg2/svg/SVGDefsElement.cpp:
1800         (WebCore::SVGDefsElement::SVGDefsElement):
1801         * ksvg2/svg/SVGDefsElement.h:
1802         * ksvg2/svg/SVGDescElement.cpp:
1803         (WebCore::SVGDescElement::SVGDescElement):
1804         * ksvg2/svg/SVGDescElement.h:
1805         * ksvg2/svg/SVGDocument.cpp:
1806         * ksvg2/svg/SVGDocument.h:
1807         * ksvg2/svg/SVGElementInstance.cpp:
1808         (WebCore::SVGElementInstance::SVGElementInstance):
1809         (WebCore::SVGElementInstance::correspondingElement):
1810         (WebCore::SVGElementInstance::correspondingUseElement):
1811         (WebCore::SVGElementInstance::parentNode):
1812         (WebCore::SVGElementInstance::childNodes):
1813         (WebCore::SVGElementInstance::previousSibling):
1814         (WebCore::SVGElementInstance::nextSibling):
1815         (WebCore::SVGElementInstance::firstChild):
1816         (WebCore::SVGElementInstance::lastChild):
1817         * ksvg2/svg/SVGElementInstance.h:
1818         * ksvg2/svg/SVGElementInstanceList.cpp:
1819         * ksvg2/svg/SVGElementInstanceList.h:
1820         * ksvg2/svg/SVGGElement.cpp:
1821         (WebCore::SVGGElement::SVGGElement):
1822         (WebCore::SVGGElement::parseMappedAttribute):
1823         (WebCore::SVGDummyElement::SVGDummyElement):
1824         * ksvg2/svg/SVGGElement.h:
1825         (WebCore::SVGGElement::rendererIsNeeded):
1826         * ksvg2/svg/SVGImageElement.cpp:
1827         (WebCore::SVGImageElement::createRenderer):
1828         * ksvg2/svg/SVGImageElement.h:
1829         * ksvg2/svg/SVGSVGElement.cpp:
1830         (WebCore::SVGSVGElement::SVGSVGElement):
1831         (WebCore::SVGSVGElement::pixelUnitToMillimeterX):
1832         (WebCore::SVGSVGElement::pixelUnitToMillimeterY):
1833         (WebCore::SVGSVGElement::currentScale):
1834         (WebCore::SVGSVGElement::setCurrentScale):
1835         (WebCore::SVGSVGElement::currentTranslate):
1836         (WebCore::SVGSVGElement::parseMappedAttribute):
1837         (WebCore::SVGSVGElement::suspendRedraw):
1838         (WebCore::SVGSVGElement::unsuspendRedraw):
1839         (WebCore::SVGSVGElement::unsuspendRedrawAll):
1840         (WebCore::SVGSVGElement::forceRedraw):
1841         (WebCore::SVGSVGElement::getIntersectionList):
1842         (WebCore::SVGSVGElement::getEnclosureList):
1843         (WebCore::SVGSVGElement::checkIntersection):
1844         (WebCore::SVGSVGElement::checkEnclosure):
1845         (WebCore::SVGSVGElement::deselectAll):
1846         (WebCore::SVGSVGElement::createSVGLength):
1847         (WebCore::SVGSVGElement::createSVGAngle):
1848         (WebCore::SVGSVGElement::createSVGMatrix):
1849         (WebCore::SVGSVGElement::createSVGTransform):
1850         (WebCore::SVGSVGElement::createSVGTransformFromMatrix):
1851         (WebCore::SVGSVGElement::getCTM):
1852         (WebCore::SVGSVGElement::getScreenCTM):
1853         (WebCore::SVGSVGElement::setCurrentTime):
1854         * ksvg2/svg/SVGSVGElement.h:
1855         (WebCore::SVGSVGElement::rendererIsNeeded):
1856         * ksvg2/svg/SVGSwitchElement.cpp:
1857         (WebCore::SVGSwitchElement::SVGSwitchElement):
1858         (WebCore::SVGSwitchElement::childShouldCreateRenderer):
1859         * ksvg2/svg/SVGSwitchElement.h:
1860         (WebCore::SVGSwitchElement::rendererIsNeeded):
1861         * ksvg2/svg/SVGSymbolElement.cpp:
1862         (WebCore::SVGSymbolElement::SVGSymbolElement):
1863         (WebCore::SVGSymbolElement::parseMappedAttribute):
1864         * ksvg2/svg/SVGSymbolElement.h:
1865         (WebCore::SVGSymbolElement::shouldAttachChild):
1866         * ksvg2/svg/SVGTitleElement.cpp:
1867         (WebCore::SVGTitleElement::SVGTitleElement):
1868         * ksvg2/svg/SVGTitleElement.h:
1869         * ksvg2/svg/SVGUseElement.cpp:
1870         (WebCore::SVGUseElement::parseMappedAttribute):
1871         (WebCore::SVGUseElement::closeRenderer):
1872         * ksvg2/svg/SVGUseElement.h:
1873         (WebCore::SVGUseElement::rendererIsNeeded):
1874
1875 2006-10-12  Adele Peterson  <adele@apple.com>
1876
1877         Reviewed by Anders.
1878
1879         - Fix for http://bugs.webkit.org/show_bug.cgi?id=11172
1880           REGRESSION (NativeListBox): OPTION text paints over the edge of the select element at http://jobs.apple.com/
1881         
1882          Test: fast/forms/listbox-width-change.html
1883
1884         * rendering/RenderListBox.cpp: (WebCore::RenderListBox::updateFromElement):
1885           When the options change, call setNeedsLayoutAndMinMaxRecalc.
1886
1887 2006-10-12  Maciej Stachowiak  <mjs@apple.com>
1888
1889         Reviewed by Oliver.
1890
1891         - moved a bunch of WebFrameBridge code down to WebCoreFrameBridge, now that it no longer has any WebKit dependencies
1892
1893         * WebCore.xcodeproj/project.pbxproj:
1894         * bridge/mac/WebCoreFrameBridge.h:
1895         * bridge/mac/WebCoreFrameBridge.mm:
1896         (stringByCollapsingNonPrintingCharacters):
1897         (-[WebCoreFrameBridge setTitle:]):
1898         (-[WebCoreFrameBridge didFirstLayout]):
1899         (-[WebCoreFrameBridge notifyIconChanged:]):
1900         (-[WebCoreFrameBridge originalRequestURL]):
1901         (-[WebCoreFrameBridge isLoadTypeReload]):
1902         (-[WebCoreFrameBridge frameDetached]):
1903         (-[WebCoreFrameBridge tokenizerProcessedData]):
1904         (-[WebCoreFrameBridge receivedData:textEncodingName:]):
1905         (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
1906         (-[WebCoreFrameBridge objectLoadedFromCacheWithURL:response:data:]):
1907         (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
1908         (-[WebCoreFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
1909         (-[WebCoreFrameBridge reportClientRedirectCancelled:]):
1910         (-[WebCoreFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
1911         (-[WebCoreFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
1912         (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
1913         (-[WebCoreFrameBridge incomingReferrer]):
1914         (-[WebCoreFrameBridge isReloading]):
1915         (-[WebCoreFrameBridge handledOnloadEvents]):
1916         (-[WebCoreFrameBridge mainResourceURLResponse]):
1917         (-[WebCoreFrameBridge loadEmptyDocumentSynchronously]):
1918         * loader/mac/LoaderNSURLExtras.h:
1919         * loader/mac/LoaderNSURLRequestExtras.h: Added.
1920         * loader/mac/LoaderNSURLRequestExtras.m: Added.
1921         (isConditionalRequest):
1922         (setHTTPReferrer):
1923         * loader/mac/WebFrameLoader.mm:
1924         * loader/mac/WebSubresourceLoader.mm:
1925
1926 2006-10-12  Adele Peterson  <adele@apple.com>
1927
1928         RS by Geoff.
1929
1930         Renamed menuListIsDetaching to disconnectMenuList, 
1931         uploadControlDetaching to disconnectUploadControl, and fileChooserDetachingSoon to disconnectFileChooser.  
1932         These names match similar methods in WebCore a little better.
1933
1934         * platform/FileChooser.h:
1935         * platform/PopupMenu.h: (WebCore::PopupMenu::disconnectMenuList):
1936         * platform/mac/FileChooserMac.mm: (-[OpenPanelController disconnectFileChooser]):
1937         (WebCore::FileChooser::disconnectUploadControl):
1938         * platform/win/TemporaryLinkStubs.cpp: (FileChooser::disconnectUploadControl):
1939         * rendering/RenderFileUploadControl.cpp: (WebCore::RenderFileUploadControl::~RenderFileUploadControl):
1940         * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::~RenderMenuList):
1941
1942 2006-10-12  Adele Peterson  <adele@apple.com>
1943
1944         Reviewed by Maciej.
1945
1946         WebCore part of fix for <rdar://problem/4450613> need a means to attach user data to any menu that is popuped up in HTML
1947
1948         Added private delegate method for clients that want access to a PopupMenu's NSMenu.
1949
1950         * bridge/mac/FrameMac.h:
1951         * bridge/mac/FrameMac.mm: (WebCore::FrameMac::willPopupMenu):
1952         * bridge/mac/WebCoreFrameBridge.h:
1953
1954         * platform/mac/PopupMenuMac.mm: (WebCore::PopupMenu::show): Calls willPopupMenu with the NSMenu about to be popped up.
1955
1956 2006-10-12  Adele Peterson  <adele@apple.com>
1957
1958         Reviewed by Alice.
1959
1960         - Fix for <rdar://problem/4707372> 
1961           After timers fix, crash in -[NSMenu performActionForItemAtIndex:] after moving/detroying active popup menu
1962
1963         * platform/PopupMenu.h: (WebCore::PopupMenu::menuListIsDetaching): Added. Zeros out the pointer to the menu list.
1964         * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::~RenderMenuList): Calls menuListIsDetaching.
1965         * platform/mac/PopupMenuMac.mm: (WebCore::PopupMenu::show): Added a RefPtr to protect the PopupMenu while the NSMenu is up,
1966           in case the RenderMenuList goes away.  Also, checks the pointer to the menu list immediately afterwards.
1967
1968 2006-10-12  Nikolas Zimmermann  <zimmermann@kde.org>
1969
1970         Reviewed by Maciej.
1971
1972         Trying to fix "DRT hangs on certain testcases" like fast/dom/Document/document-reopen.html
1973         document.open(); document.write(..); and NO document.close(). On the Qt platform this
1974         leaves a HTMLDocument which is still in parsing mode (parsing() always returns true).
1975         DRT waits forever, but m_frame->isComplete() is never true due the parsing mode problem.
1976
1977         Hmpf, this took me nine hours to debug today.
1978         Result: Couldn't find the real fix, going for a workaround for now.
1979         
1980         540 minutes, 1 line of code changed after all -> 0,0019 lines per minute.
1981
1982         * platform/qt/FrameQt.cpp:
1983         (WebCore::FrameQt::handledOnloadEvents): Call endIfNotLoading() manually.
1984         * platform/qt/FrameQtClient.cpp:
1985         (WebCore::FrameQtClientDefault::receivedData): Use write() again instead of addData().
1986
1987 2006-10-12  Adam Roben  <aroben@apple.com>
1988
1989         Reviewed by Adele.
1990
1991         Move popup menu code out of rendering/ and into platform/.
1992         RenderPopupMenu becomes PopupMenu, the
1993         RenderPopupMenuMac/RenderPopupMenuWin subclasses and all the associated
1994         virtual methods go away, RenderTheme gets to stop worrying about popup
1995         menus, PopupMenu becomes ref-counted, and everyone becomes happy.
1996
1997         * WebCore.vcproj/WebCore/WebCore.vcproj: Move files within project.
1998         * WebCore.xcodeproj/project.pbxproj: Ditto.
1999         * html/HTMLSelectElement.cpp: Remove unnecessary #include.
2000         * platform/PopupMenu.cpp: Moved from rendering/RenderPopupMenu.cpp.
2001         Also renamed showPopup()/hidePopup() to show()/hide() to disambiguate
2002         from RenderMenuList::showPopup/hidePopup.
2003         (WebCore::PopupMenu::create): New static creation method to hand back a
2004         PassRefPtr<PopupMenu>.
2005         (WebCore::PopupMenu::addItems): This platform-independent method should
2006         be called by PopupMenu::populate when the platform-specific
2007         implementation is ready to receive the menu items. Fixed an ASSERT
2008         while I was at it.
2009         * platform/PopupMenu.h: Moved from rendering/RenderPopupMenu.h. No more
2010         need for virtual methods.
2011         (WebCore::PopupMenu::wasClicked):
2012         (WebCore::PopupMenu::setWasClicked):
2013         (WebCore::PopupMenu::popupHandle):
2014         * platform/mac/PopupMenuMac.mm: Moved from
2015         rendering/RenderPopupMenuMac.mm. Much renaming ensues.
2016         (WebCore::PopupMenu::PopupMenu):
2017         (WebCore::PopupMenu::~PopupMenu):
2018         (WebCore::PopupMenu::clear):
2019         (WebCore::PopupMenu::populate):
2020         (WebCore::PopupMenu::show):
2021         (WebCore::PopupMenu::hide):
2022         (WebCore::PopupMenu::addSeparator):
2023         (WebCore::PopupMenu::addGroupLabel): Since we don't have our own
2024         RenderStyle anymore, just pick up the style from our RenderMenuList.
2025         (WebCore::PopupMenu::addOption): Ditto.
2026         * platform/win/TemporaryLinkStubs.cpp: Rename-fest.
2027         (PopupMenu::PopupMenu):
2028         (PopupMenu::~PopupMenu):
2029         (PopupMenu::clear):
2030         (PopupMenu::populate):
2031         (PopupMenu::show):
2032         (PopupMenu::hide):
2033         (PopupMenu::addSeparator):
2034         (PopupMenu::addGroupLabel):
2035         (PopupMenu::addOption):
2036         * rendering/RenderMenuList.cpp:
2037         (WebCore::RenderMenuList::~RenderMenuList):
2038         (WebCore::RenderMenuList::showPopup): Use nice new simple
2039         PopupMenu::create to make the popup.
2040         (WebCore::RenderMenuList::hidePopup):
2041         * rendering/RenderMenuList.h: Hold a RefPtr<PopupMenu> instead of a
2042         RenderPopupMenu*.
2043         (WebCore::RenderMenuList::popup):
2044         * rendering/RenderPopupMenu.cpp: Removed.
2045         * rendering/RenderPopupMenu.h: Removed.
2046         * rendering/RenderPopupMenuMac.h: Removed.
2047         * rendering/RenderPopupMenuMac.mm: Removed.
2048         * rendering/RenderPopupMenuWin.h: Removed.
2049         * rendering/RenderTheme.cpp: Get rid of createPopupMenu() method.
2050         * rendering/RenderTheme.h: Ditto.
2051         * rendering/RenderThemeMac.h: Ditto.
2052         * rendering/RenderThemeMac.mm: Ditto.
2053         * rendering/RenderThemeWin.cpp: Ditto.
2054         * rendering/RenderThemeWin.h: Ditto.
2055
2056 2006-10-12  Adele Peterson  <adele@apple.com>
2057
2058         Reviewed by Dave Harrison.
2059
2060         - Fixed <rdar://problem/4650813> REGRESSION: typing in a textarea in Safari is extremely slow (sample shows focus ring drawing)
2061
2062         * rendering/RenderObject.cpp: (WebCore::RenderObject::markContainingBlocksForLayout):
2063         Make subtree layouts work for textareas as well as text fields.
2064
2065 2006-10-12  Nikolas Zimmermann  <zimmermann@kde.org>
2066
2067         Reviewed by MacDome.
2068
2069         Finally found a way to remove our begin() trickery in FrameQt.
2070         The (probably misnamed) Frame::setEncoding() function automatically
2071         calls Frame::receivedFirstData() which calls being on the working
2072         url, which has been passed to didOpenUrl(). Took me some hours
2073         to figure out that the missing charset logic, forced us to do hacks.
2074
2075         * platform/ResourceLoader.h:
2076         * platform/ResourceLoaderInternal.h:
2077         * platform/qt/FrameQt.cpp:
2078         (WebCore::FrameQt::tokenizerProcessedData):
2079         * platform/qt/FrameQt.h:
2080         * platform/qt/FrameQtClient.cpp:
2081         (WebCore::FrameQtClientDefault::FrameQtClientDefault):
2082         (WebCore::FrameQtClientDefault::openURL):
2083         (WebCore::FrameQtClientDefault::submitForm):
2084         (WebCore::FrameQtClientDefault::receivedData):
2085         (WebCore::FrameQtClientDefault::receivedAllData):
2086         * platform/qt/FrameQtClient.h:
2087         * platform/qt/ResourceLoaderManager.cpp:
2088         (WebCore::ResourceLoaderManager::slotData):
2089         (WebCore::ResourceLoaderManager::slotMimetype):
2090         (WebCore::ResourceLoaderManager::slotResult):
2091         (WebCore::ResourceLoaderManager::remove):
2092         * platform/qt/ResourceLoaderQt.cpp:
2093         (WebCore::ResourceLoader::retrieveCharset):
2094         (WebCore::ResourceLoader::extractCharsetFromHeaders):
2095
2096 2006-10-12  Adam Roben  <aroben@apple.com>
2097
2098         Reviewed by Hyatt.
2099
2100         Bandaid-ing a null-dereference crash until a real fix is made.
2101
2102         * page/FrameView.cpp:
2103         (WebCore::FrameView::windowClipRect):
2104
2105 2006-10-12  Rob Buis  <buis@kde.org>
2106
2107         Reviewed by Mitz.
2108
2109         http://bugs.webkit.org/show_bug.cgi?id=11217
2110         Cleanup svg coding style
2111
2112         Cleanup coding style in svg text classes.
2113
2114         * ksvg2/svg/SVGTRefElement.cpp:
2115         (WebCore::SVGTRefElement::SVGTRefElement):
2116         (WebCore::SVGTRefElement::updateReferencedText):
2117         (WebCore::SVGTRefElement::parseMappedAttribute):
2118         (WebCore::SVGTRefElement::childShouldCreateRenderer):
2119         (WebCore::SVGTRefElement::createRenderer):
2120         * ksvg2/svg/SVGTRefElement.h:
2121         (WebCore::SVGTRefElement::rendererIsNeeded):
2122         * ksvg2/svg/SVGTSpanElement.cpp:
2123         (WebCore::SVGTSpanElement::SVGTSpanElement):
2124         (WebCore::SVGTSpanElement::childShouldCreateRenderer):
2125         (WebCore::SVGTSpanElement::createRenderer):
2126         * ksvg2/svg/SVGTSpanElement.h:
2127         (WebCore::SVGTSpanElement::rendererIsNeeded):
2128         * ksvg2/svg/SVGTextContentElement.cpp:
2129         (WebCore::SVGTextContentElement::SVGTextContentElement):
2130         (WebCore::SVGTextContentElement::parseMappedAttribute):
2131         * ksvg2/svg/SVGTextContentElement.h:
2132         * ksvg2/svg/SVGTextElement.cpp:
2133         (WebCore::SVGTextElement::SVGTextElement):
2134         (WebCore::SVGTextElement::localMatrix):
2135         (WebCore::SVGTextElement::parseMappedAttribute):
2136         (WebCore::SVGTextElement::updateLocalTransform):
2137         (WebCore::SVGTextElement::nearestViewportElement):
2138         (WebCore::SVGTextElement::farthestViewportElement):
2139         (WebCore::SVGTextElement::getScreenCTM):
2140         (WebCore::SVGTextElement::getCTM):
2141         (WebCore::SVGTextElement::createRenderer):
2142         (WebCore::SVGTextElement::childShouldCreateRenderer):
2143         * ksvg2/svg/SVGTextElement.h:
2144         (WebCore::SVGTextElement::getTransformToElement):
2145         (WebCore::SVGTextElement::rendererIsNeeded):
2146         * ksvg2/svg/SVGTextPositioningElement.cpp:
2147         (WebCore::SVGTextPositioningElement::SVGTextPositioningElement):
2148         (WebCore::SVGTextPositioningElement::parseMappedAttribute):
2149         * ksvg2/svg/SVGTextPositioningElement.h:
2150
2151 2006-10-12  Nikolas Zimmermann  <zimmermann@kde.org>
2152
2153         Reviewed by Maciej.
2154
2155         Specialization of alert() for DumpRenderTree - just log the output, don't show any message box.
2156
2157         * platform/qt/FrameQt.cpp:
2158         (WebCore::FrameQt::runJavaScriptAlert): Move runJavaScriptAlert functionality to FrameQtClientDefault.
2159         * platform/qt/FrameQtClient.cpp:
2160         (WebCore::FrameQtClientDefault::runJavaScriptAlert):
2161         * platform/qt/FrameQtClient.h:
2162
2163 2006-10-12  Maciej Stachowiak  <mjs@apple.com>
2164
2165         Reviewed by Eric.
2166
2167         - move m_responseMIMEType out of ResourceRequest, where it doesn't belong
2168
2169         * page/FramePrivate.h: Add m_responseMIMEType
2170         * page/ResourceRequest.h: Remove m_responseMIMEType
2171         * page/Frame.cpp:
2172         (WebCore::Frame::setResponseMIMEType): added
2173         (WebCore::Frame::responseMIMEType): added
2174         (WebCore::Frame::begin): get MIME type from the right place
2175         (WebCore::Frame::write): ditto
2176         * page/Frame.h:
2177         * bindings/js/kjs_window.cpp:
2178         (KJS::createNewWindow): updated to use new Frame methods
2179         (KJS::WindowFunc::callAsFunction): ditto
2180         * bridge/mac/WebCoreFrameBridge.mm:
2181         (-[WebCoreFrameBridge openURL:reload:contentType:refresh:lastModified:pageCache:]): ditto
2182         (-[WebCoreFrameBridge canProvideDocumentSource]): ditto
2183         * loader/PluginDocument.cpp:
2184         (WebCore::PluginTokenizer::createDocumentStructure): ditto
2185
2186 2006-10-12  Maciej Stachowiak  <mjs@apple.com>
2187
2188         Reviewed by Eric.
2189         
2190         <rdar://problem/4774321> REGRESSION: "Can't find the server" error page contains unstyled text and missing image
2191
2192         We really need some way to test loadHTMLString since it keeps breaking!
2193         
2194         * loader/mac/WebFrameLoader.mm:
2195         (-[WebFrameLoader commitProvisionalLoad:]): Set stuff up on the proper data source.
2196
2197 2006-10-12  Nikolas Zimmermann  <zimmermann@kde.org>
2198
2199         Reviewed by Eric.
2200
2201         Fix Qt/Linux build.
2202
2203         * CMakeLists.txt:
2204         * platform/qt/FileChooserQt.cpp:
2205         (WebCore::FileChooser::create):
2206
2207 2006-10-12  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
2208
2209         Reviewed by Maciej.
2210
2211         Update Gdk\Linux build for recent changes, based on Qt code
2212
2213         * platform/gdk/FrameGdk.cpp:
2214         (WebCore::FrameGdkClientDefault::FrameGdkClientDefault):
2215         (WebCore::FrameGdkClientDefault::~FrameGdkClientDefault):
2216         (WebCore::FrameGdkClientDefault::setFrame):
2217         (WebCore::FrameGdkClientDefault::openURL):
2218         (WebCore::FrameGdkClientDefault::submitForm):
2219         (WebCore::FrameGdkClientDefault::receivedResponse):
2220         (WebCore::FrameGdkClientDefault::receivedData):
2221         (WebCore::FrameGdkClientDefault::receivedAllData):
2222         (WebCore::FrameGdk::FrameGdk):
2223         (WebCore::FrameGdk::openURL):
2224         (WebCore::FrameGdk::submitForm):
2225         (WebCore::FrameGdk::urlSelected):
2226         * platform/gdk/FrameGdk.h:
2227         * platform/gdk/TemporaryLinkStubs.cpp:
2228         (FrameGdk::createJavaAppletWidget):
2229         (FileChooser::create):
2230
2231 2006-10-12  Dave Hyatt  <hyatt@apple.com>
2232
2233         Patch to add more clipping retrieval functionality for widgets.
2234        
2235         Reviewed by mjs
2236
2237         * page/Frame.h:
2238         Remove windowResizerRect.  This is in the wrong place.
2239         
2240         * page/FrameView.cpp:
2241         (WebCore::FrameView::windowClipRect):
2242         (WebCore::FrameView::windowClipRectForLayer):
2243         Break out windowClipRect into helper functions that can be called separately (to make
2244         it easier for scrollbars in overflow sections and list boxes to get to an enclosing
2245         layer and get the right clip.
2246         
2247         * page/FrameView.h:
2248         Add the new windowClipRect helper methods.
2249         
2250         * platform/ScrollBar.h:
2251         Add a new interface to ScrollbarClient so that scrollbars can hand back proper
2252         clip rects for themselves depending on how they are used.
2253         
2254         * platform/ScrollView.h:
2255         Stub out methods for talking to a double buffer backing store on Win32.
2256         
2257         * platform/Widget.h:
2258         Add the ability to query for invalidation suppression.
2259         
2260         * rendering/RenderLayer.cpp:
2261         (WebCore::RenderLayer::windowClipRect):
2262         (WebCore::RenderLayer::paintOverflowControls):
2263         (WebCore::RenderLayer::calculateRects):
2264         (WebCore::RenderLayer::childrenClipRect):
2265         (WebCore::RenderLayer::selfClipRect):
2266         * rendering/RenderLayer.h:
2267         Enhance layers so that they can return either their foreground or background
2268         document clip rects.  Make sure a layer scrollbar can return a proper clip.
2269         
2270         * rendering/RenderListBox.cpp:
2271         (WebCore::RenderListBox::windowClipRect):
2272         * rendering/RenderListBox.h:
2273         Make sure a list box scrollbar can return a proper clip.
2274         
2275         * rendering/RenderObject.cpp:
2276         (WebCore::RenderObject::enclosingLayer):
2277         * rendering/RenderObject.h:
2278         Make enclosingLayer const.
2279         
2280 2006-10-11  Darin Adler  <darin@apple.com>
2281
2282         Reviewed by John.
2283
2284         - some changes to prepare for converting more code to C++
2285
2286         * bridge/mac/WebCoreFrameBridge.h: Added import of <Cocoa/Cocoa.h> so this header is
2287         self-sufficient.
2288
2289         * bridge/mac/WebCoreViewFactory.h: Added forward declaration of the NSMenu class.
2290         Needed since the class is used in this header (for some work I have not landed yet).
2291
2292         * loader/mac/LoaderNSURLExtras.h:
2293         * loader/mac/WebFormDataStream.h:
2294         Added extern "C" so this code can be used from C++.
2295
2296         * loader/mac/LoaderNSURLExtras.m:
2297         * loader/mac/WebDataProtocol.mm:
2298         * loader/mac/WebDocumentLoader.mm:
2299         * loader/mac/WebFormDataStream.m:
2300         * loader/mac/WebLoader.mm:
2301         * loader/mac/WebMainResourceLoader.mm:
2302         * loader/mac/WebNetscapePlugInStreamLoader.mm:
2303         * loader/mac/WebPolicyDecider.mm:
2304         * loader/mac/WebSubresourceLoader.mm:
2305         Added missing includes of config.h.
2306
2307 2006-10-11  John Sullivan  <sullivan@apple.com>
2308         
2309         Darin wrote this code; we tested it; I give it the thumbs up.
2310         
2311         - fixed regression from svn revision 16982 that was generating the wrong Obj-C classes
2312
2313         The hash table to look up an element class given a QualifiedName was
2314         not working at all.
2315
2316         * dom/QualifiedName.h:
2317         (WebCore::QualifiedName::impl):
2318         Added. This new accessor method for impl is needed if we want to use
2319         a QualifiedName as a hash table key without doing the kind of specialization
2320         we do for String. Maybe later we can do the String thing.
2321
2322         * bindings/objc/DOM.mm:
2323         (WebCore::addElementClass):
2324         Use QualifiedName.impl instead of the QualifiedName pointer itself.
2325         The QualifiedName pointer is *not* unique so almost nothing would be found
2326         in this hash table!
2327         (WebCore::elementClass):
2328         ditto
2329         
2330 2006-10-11  Adam Roben  <aroben@apple.com>
2331
2332         Rubberstamped by Anders.
2333
2334         Clean up FileChooser::create and Icon::newIconForFile.
2335
2336         * WebCore.xcodeproj/project.pbxproj:
2337         * platform/mac/FileChooserMac.mm:
2338         (WebCore::FileChooser::create):
2339         * platform/mac/IconMac.mm:
2340         (WebCore::Icon::newIconForFile):
2341
2342 2006-10-11  Oliver Hunt  <oliver@apple.com>
2343
2344         Reviewed by Adam.
2345
2346         Fix for http://bugs.webkit.org/show_bug.cgi?id=11251
2347         Corrects canvas tag to not throw JS exception when drawing
2348         zero sized rects, arcs, etc
2349
2350         * html/CanvasRenderingContext2D.cpp:
2351         (WebCore::CanvasRenderingContext2D::arcTo):
2352         (WebCore::CanvasRenderingContext2D::arc):
2353         (WebCore::CanvasRenderingContext2D::rect):
2354         (WebCore::CanvasRenderingContext2D::clearRect):
2355         (WebCore::CanvasRenderingContext2D::fillRect):
2356         (WebCore::CanvasRenderingContext2D::strokeRect):
2357
2358 2006-10-11  Rob Buis  <buis@kde.org>
2359
2360         Reviewed by Mitz.
2361
2362         http://bugs.webkit.org/show_bug.cgi?id=11221
2363         REGRESSION: iExploder crash due to style="cursor: url()"
2364
2365         Take better care of empty cursor lists.
2366
2367         Test: fast/css/invalid-cursor-property-crash.html
2368
2369         * css/cssparser.cpp:
2370         (WebCore::CSSParser::parseValue):
2371
2372 2006-10-11  Adam Roben  <aroben@apple.com>
2373
2374         Fixing Windows for real this time.
2375
2376         * platform/win/TemporaryLinkStubs.cpp:
2377         (FileChooser::create):
2378
2379 2006-10-11  Adam Roben  <aroben@apple.com>
2380
2381         Fix Windows build.
2382
2383         * platform/win/TemporaryLinkStubs.cpp:
2384         (FileChooser::create):
2385
2386 2006-10-11  Antti Koivisto  <koivisto@iki.fi>
2387
2388         Reviewed by Hyatt.
2389         
2390         http://bugs.webkit.org/show_bug.cgi?id=4377
2391         
2392         Respect css visibility semantics for layers too
2393
2394         * rendering/RenderContainer.cpp:
2395         (WebCore::RenderContainer::removeChildNode):
2396         (WebCore::RenderContainer::appendChildNode):
2397         (WebCore::RenderContainer::insertChildNode):
2398         * rendering/RenderLayer.cpp:
2399         (WebCore::RenderLayer::RenderLayer):
2400         (WebCore::RenderLayer::updateLayerPositions):
2401         (WebCore::RenderLayer::setHasVisibleContent):
2402         (WebCore::RenderLayer::dirtyVisibleContentStatus):
2403         (WebCore::RenderLayer::childVisibilityChanged):
2404         (WebCore::RenderLayer::dirtyVisibleDescendantStatus):
2405         (WebCore::RenderLayer::updateVisibilityStatus):
2406         (WebCore::RenderLayer::addChild):
2407         (WebCore::RenderLayer::removeChild):
2408         (WebCore::RenderLayer::updateZOrderLists):
2409         (WebCore::RenderLayer::collectLayers):
2410         * rendering/RenderLayer.h:
2411         (WebCore::RenderLayer::hasVisibleContent):
2412         * rendering/RenderObject.cpp:
2413         (WebCore::RenderObject::setStyle):
2414
2415 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
2416
2417         Reviewed by Oliver.
2418
2419         - added RetainPtr, smart pointer for refcounted ObjC objects and CFTypes
2420
2421         * WebCore.xcodeproj/project.pbxproj:
2422         * platform/cf/RetainPtr.h: Added.
2423         (WTF::):
2424         (WTF::RetainPtr::RetainPtr):
2425         (WTF::RetainPtr::~RetainPtr):
2426         (WTF::RetainPtr::get):
2427         (WTF::RetainPtr::operator*):
2428         (WTF::RetainPtr::operator->):
2429         (WTF::RetainPtr::operator!):
2430         (WTF::RetainPtr::operator UnspecifiedBoolType):
2431         (WTF::::operator):
2432         (WTF::::swap):
2433         (WTF::swap):
2434         (WTF::operator==):
2435         (WTF::operator!=):
2436         (WTF::static_pointer_cast):
2437         (WTF::const_pointer_cast):
2438         (WTF::getPtr):
2439         
2440         - use it in WidgetMac so it gets tested in at least one place
2441         
2442         * platform/mac/WidgetMac.mm:
2443         (WebCore::Widget::Widget):
2444         (WebCore::Widget::~Widget):
2445         (WebCore::Widget::setEnabled):
2446         (WebCore::Widget::isEnabled):
2447         (WebCore::Widget::setCursor):
2448         (WebCore::Widget::getView):
2449         (WebCore::Widget::setView):
2450         (WebCore::Widget::getOuterView):
2451
2452 2006-10-10  Brady Eidson  <beidson@apple.com>
2453
2454         Reviewed by Maciej.
2455
2456         Moved WebFrameLoader from WebFrameBridge into WebCoreFrameBridge
2457
2458         * bridge/mac/WebCoreFrameBridge.h:
2459         * bridge/mac/WebCoreFrameBridge.mm:
2460         (-[WebCoreFrameBridge initMainFrameWithPage:]):
2461         (-[WebCoreFrameBridge initSubframeWithOwnerElement:]):
2462         (-[WebCoreFrameBridge dealloc]):
2463         (-[WebCoreFrameBridge close]):
2464         (-[WebCoreFrameBridge setFrameLoaderClient:]):
2465         (-[WebCoreFrameBridge frameLoader]):
2466         * loader/mac/WebFrameLoader.h:
2467         * loader/mac/WebFrameLoader.mm:
2468         (-[WebFrameLoader initWithFrameBridge:]):
2469         (-[WebFrameLoader setFrameLoaderClient:]):
2470
2471 2006-10-10  Adam Roben  <aroben@apple.com>
2472
2473         Reviewed by Oliver.
2474
2475         Make FileChooser ref-counted.
2476
2477         * platform/FileChooser.h:
2478         * platform/mac/FileChooserMac.mm:
2479         (WebCore::FileChooser::create):
2480         * rendering/RenderFileUploadControl.cpp:
2481         (WebCore::RenderFileUploadControl::RenderFileUploadControl):
2482         (WebCore::RenderFileUploadControl::~RenderFileUploadControl):
2483         * rendering/RenderFileUploadControl.h:
2484
2485 2006-10-10  Sam Weinig  <sam.weinig@gmail.com>
2486
2487         Reviewed by Tim H.
2488
2489         Patch for http://bugs.webkit.org/show_bug.cgi?id=11248
2490         Even More auto-generated Objective-C DOM bindings changes
2491
2492         - Auto-generate DOMSVGPathElement.
2493
2494         - Auto-generate the internal interfaces even for classes that have
2495           custom internal implementations.  Change IDL property from ObjCNoInternal
2496           to ObjCCustomInternalImpl to indicate the change.
2497
2498         - Add SVG classes to DOMNode and DOMEvent internal interfaces.
2499
2500         - Add isSVGZoomEvent() method to Event class to match other Event subclasses
2501           and make DOM binding possible.
2502
2503         - Assorted cleanups.
2504
2505         * DerivedSources.make:
2506         * WebCore.xcodeproj/project.pbxproj:
2507         * bindings/objc/DOM.mm:
2508         (WebCore::addElementClass):
2509         (WebCore::createElementClassMap):
2510         (WebCore::elementClass):
2511         (-[DOMNode description]):
2512         (+[DOMNode _nodeWith:WebCore::]):
2513         (-[DOMNode addEventListener:listener:useCapture:]):
2514         (-[DOMNode removeEventListener:listener:useCapture:]):
2515         (-[DOMElement _NPObject]):
2516         (WebCore::ObjCEventListener::handleEvent):
2517         * bindings/objc/DOMEvents.mm:
2518         (+[DOMEvent _eventWith:WebCore::]):
2519         * bindings/objc/DOMInternal.h:
2520         * bindings/objc/DOMRGBColor.mm:
2521         (-[DOMRGBColor WebCore::]):
2522         * bindings/objc/DOMSVGPathSegInternal.h: Removed.
2523         * bindings/scripts/CodeGeneratorObjC.pm:
2524         * css/CSSRule.idl:
2525         * css/CSSValue.idl:
2526         * css/StyleSheet.idl:
2527         * dom/Event.cpp:
2528         (WebCore::Event::isSVGZoomEvent):
2529         * dom/Event.h:
2530         * dom/Event.idl:
2531         * dom/Node.idl:
2532         * ksvg2/events/SVGZoomEvent.cpp:
2533         (WebCore::SVGZoomEvent::isSVGZoomEvent):
2534         * ksvg2/events/SVGZoomEvent.h:
2535         * ksvg2/svg/SVGAnimatedAngle.idl:
2536         * ksvg2/svg/SVGCircleElement.idl:
2537         * ksvg2/svg/SVGClipPathElement.idl:
2538         * ksvg2/svg/SVGPathElement.idl:
2539         * ksvg2/svg/SVGPathSeg.idl:
2540
2541 2006-10-10  Oliver Hunt  <oliver@apple.com>
2542
2543         rubber stamped by Anders.
2544
2545         More buildbot bustage
2546
2547         * kcanvas/SVGInlineFlowBox.cpp:
2548         (WebCore::placeBoxesVerticallyWithAbsBaseline):
2549
2550 2006-10-10  Oliver Hunt  <oliver@apple.com>
2551
2552         Reviewed by Anders 
2553
2554         Unbreak build bots
2555
2556         * dom/Text.cpp:
2557         * kcanvas/RenderSVGText.cpp:
2558         (WebCore::RenderSVGText::layout):
2559         * kcanvas/SVGInlineFlowBox.cpp:
2560         (WebCore::placePositionedBoxesHorizontally):
2561         (WebCore::placeBoxesVerticallyWithAbsBaseline):
2562
2563 2006-10-10  Oliver Hunt  <oliver@apple.com>
2564
2565         Reviewed by hyatt.
2566
2567         Fixes bugs #6423, #6559, #10380 and #10839 
2568
2569         * WebCore.xcodeproj/project.pbxproj:
2570         * css/svg.css:
2571         * dom/Text.cpp:
2572         (WebCore::Text::createRenderer):
2573         * kcanvas/RenderSVGInline.cpp: Added.
2574         (WebCore::RenderSVGInline::RenderSVGInline):
2575         (WebCore::RenderSVGInline::createInlineBox):
2576         * kcanvas/RenderSVGInline.h: Added.
2577         (WebCore::RenderSVGInline::renderName):
2578         (WebCore::RenderSVGInline::requiresLayer):
2579         * kcanvas/RenderSVGInlineText.cpp: Added.
2580         (WebCore::RenderSVGInlineText::RenderSVGInlineText):
2581         (WebCore::RenderSVGInlineText::absoluteRects):
2582         (WebCore::RenderSVGInlineText::selectionRect):
2583         * kcanvas/RenderSVGInlineText.h: Added.
2584         (WebCore::RenderSVGInlineText::renderName):
2585         (WebCore::RenderSVGInlineText::requiresLayer):
2586         * kcanvas/RenderSVGTSpan.cpp: Added.
2587         (WebCore::RenderSVGTSpan::RenderSVGTSpan):
2588         (WebCore::RenderSVGTSpan::absoluteRects):
2589         * kcanvas/RenderSVGTSpan.h: Added.
2590         (WebCore::RenderSVGTSpan::renderName):
2591         * kcanvas/RenderSVGText.cpp:
2592         (WebCore::RenderSVGText::RenderSVGText):
2593         (WebCore::RenderSVGText::computeAbsoluteRepaintRect):
2594         (WebCore::RenderSVGText::layout):
2595         (WebCore::RenderSVGText::createInlineBox):
2596         (WebCore::RenderSVGText::nodeAtPoint):
2597         (WebCore::RenderSVGText::absoluteRects):
2598         (WebCore::RenderSVGText::paint):
2599         (WebCore::RenderSVGText::relativeBBox):
2600         * kcanvas/RenderSVGText.h:
2601         (WebCore::RenderSVGText::renderName):
2602         * kcanvas/SVGInlineFlowBox.cpp: Added.
2603         (WebCore::SVGInlineFlowBox::paint):
2604         (WebCore::SVGInlineFlowBox::placeBoxesHorizontally):
2605         (WebCore::SVGInlineFlowBox::verticallyAlignBoxes):
2606         (WebCore::paintSVGInlineFlow):
2607         (WebCore::translateBox):
2608         (WebCore::placePositionedBoxesHorizontally):
2609         (WebCore::placeSVGFlowHorizontally):
2610         (WebCore::placeBoxesVerticallyWithAbsBaseline):
2611         (WebCore::placeSVGFlowVertically):
2612         * kcanvas/SVGInlineFlowBox.h: Added.
2613         (WebCore::SVGInlineFlowBox::SVGInlineFlowBox):
2614         * kcanvas/SVGRootInlineBox.cpp: Added.
2615         (WebCore::SVGRootInlineBox::paint):
2616         (WebCore::SVGRootInlineBox::placeBoxesHorizontally):
2617         (WebCore::SVGRootInlineBox::verticallyAlignBoxes):
2618         * kcanvas/SVGRootInlineBox.h: Added.
2619         (WebCore::SVGRootInlineBox::SVGRootInlineBox):
2620         * ksvg2/svg/SVGTRefElement.cpp:
2621         (SVGTRefElement::createRenderer):
2622         * ksvg2/svg/SVGTSpanElement.cpp:
2623         (SVGTSpanElement::createRenderer):
2624         * rendering/InlineFlowBox.h:
2625
2626 2006-10-10  Adam Roben  <aroben@apple.com>
2627
2628         Reviewed by Adele.
2629
2630         Improve popup menu behavior.
2631
2632         * html/HTMLSelectElement.cpp:
2633         (WebCore::HTMLSelectElement::HTMLSelectElement): Cache
2634         m_lastOnChangeIndex so we know when to fire onChange.
2635         (WebCore::HTMLSelectElement::setSelectedIndex): Added parameter to
2636         specify whether we should fire onChange.
2637         (WebCore::HTMLSelectElement::dispatchBlurEvent): Fire onChange on blur.
2638         (WebCore::HTMLSelectElement::menuListDefaultEventHandler): Fire
2639         onChange when using the Enter key to change the selection.
2640         * html/HTMLSelectElement.h:
2641         * rendering/RenderMenuList.cpp:
2642         (WebCore::RenderMenuList::updateFromElement): Extract setText logic
2643         into its own method.
2644         (WebCore::RenderMenuList::setTextFromOption): New method.
2645         (WebCore::RenderMenuList::valueChanged): Let setSelectedIndex call
2646         onChange instead of calling it directly here.
2647         * rendering/RenderMenuList.h:
2648
2649 2006-10-10  Adele Peterson  <adele@apple.com>
2650
2651         Reviewed by Beth. 
2652
2653
2654         - Fix for <rdar://problem/4707489> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active <input type=text>
2655           and <rdar://problem/4707519> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active textarea
2656
2657         Moved autoscroll code to the Frame class
2658
2659         * bridge/mac/FrameMac.h: Moved _mouseDownMayStartDrag and _mouseDownMayStartAutoscroll flags to the frame.
2660         * bridge/mac/FrameMac.mm: Use new getters and setters for drag and autoscroll flags.  Moved autoscroll code to Frame::handleMouseMoveEvent.
2661         (WebCore::FrameMac::FrameMac):
2662         (WebCore::FrameMac::handleMousePressEvent):
2663         (WebCore::FrameMac::eventMayStartDrag):
2664         (WebCore::FrameMac::handleMouseMoveEvent):
2665         (WebCore::FrameMac::mouseDown):
2666
2667         * bridge/mac/WebCoreFrameBridge.h: Removed handleAutoscrollForMouseDragged, which called over the bridge for AppKit to do autoscroll for us.
2668         Now we scroll our views in WebCore.
2669
2670         * page/Frame.cpp:
2671         (WebCore::Frame::handleMousePressEvent): Initialize the mouseDownMayStartAutoscroll flag.
2672         (WebCore::Frame::handleMouseMoveEvent): Now kicks off autoscroll if appropriate.  Moved from FrameMac.
2673         (WebCore::Frame::updateSelectionForMouseDragOverPosition): Factored code out from handleMouseMoveEvent so we can update the selection from autoscroll too.
2674         (WebCore::Frame::mouseDownMayStartAutoscroll): Added.
2675         (WebCore::Frame::setMouseDownMayStartAutoscroll): Added.
2676         (WebCore::Frame::mouseDownMayStartDrag): Added.
2677         (WebCore::Frame::setMouseDownMayStartDrag): Added.
2678         (WebCore::Frame::autoscrollRenderer): Added
2679         (WebCore::Frame::setAutoscrollRenderer): Added.
2680         (WebCore::Frame::handleAutoscroll): Updated to use autoscrollRenderer getter and setter.
2681         (WebCore::Frame::autoscrollTimerFired): ditto.
2682         (WebCore::Frame::stopAutoscrollTimer): ditto. 
2683         * page/Frame.h: Made autoscrollRenderer and stopAutoscrollTimer public, so the renderer being autoscrolled can kill the timer when it dies.
2684
2685         * page/FramePrivate.h:
2686         (WebCore::FramePrivate::FramePrivate): Added mouseDownMayStartDrag and mouseDownMayStartAutoscroll flags.  Moved from FrameMac.
2687
2688         * page/FrameView.cpp: Store the current mouse position in window coordinates.  The callers can convert to their own coordinate space.
2689         (WebCore::FrameView::handleMousePressEvent):
2690         (WebCore::FrameView::handleMouseDoubleClickEvent):
2691         (WebCore::FrameView::handleMouseMoveEvent):
2692         (WebCore::FrameView::handleMouseReleaseEvent):
2693
2694         * rendering/RenderLayer.cpp:
2695         (WebCore::RenderLayer::autoscroll): Rewrote this to scroll recursively, and to scroll based on the mouse position (not the selection).  
2696          We also need to update the selection here, since autoscroll can occur without a mouseMove event, and the selection needs to get reset as we scroll.
2697
2698         * rendering/RenderListBox.cpp:
2699         (WebCore::RenderListBox::autoscroll): Convert the mouse coordinates to the right space.
2700
2701         * rendering/RenderObject.cpp:
2702         (WebCore::RenderObject::shouldAutoscroll): Also return true if the renderer is a root (so we know to autoscroll views too)
2703         (WebCore::RenderObject::destroy): If this renderer is being autoscrolled, stop the frame's autoscroll timer.
2704
2705 2006-10-10  Darin Adler  <darin@apple.com>
2706
2707         Rubber stamped by Maciej.
2708
2709         - convert many of the loader source files to Objective-C++ to prepare
2710           to convert some of them to C++
2711
2712         * WebCore.xcodeproj/project.pbxproj:
2713         * loader/mac/WebDataProtocol.m: Removed.
2714         * loader/mac/WebDocumentLoader.m: Removed.
2715         * loader/mac/WebFormState.m: Removed.
2716         * loader/mac/WebFrameLoader.m: Removed.
2717         * loader/mac/WebLoader.m: Removed.
2718         * loader/mac/WebMainResourceLoader.m: Removed.
2719         * loader/mac/WebNetscapePlugInStreamLoader.m: Removed.
2720         * loader/mac/WebPolicyDecider.m: Removed.
2721         * loader/mac/WebSubresourceLoader.m: Removed.
2722         * loader/mac/WebDataProtocol.mm: Added.
2723         * loader/mac/WebDocumentLoader.mm: Added.
2724         * loader/mac/WebFormState.mm: Added.
2725         * loader/mac/WebFrameLoader.mm: Added.
2726         * loader/mac/WebLoader.mm: Added.
2727         * loader/mac/WebMainResourceLoader.mm: Added.
2728         * loader/mac/WebNetscapePlugInStreamLoader.mm: Added.
2729         * loader/mac/WebPolicyDecider.mm: Added.
2730         * loader/mac/WebSubresourceLoader.mm: Added.
2731
2732 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
2733
2734         Reviewed by Mitz.
2735
2736         - fixed REGRESSION (r16960): crash on navigating to site
2737         http://www.zoominfo.com/Search/CompanyDetail.aspx?CompanyID=62948057&cs=QGDwILZIE
2738         
2739         * loader/mac/WebFrameLoader.m:
2740         (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
2741         Add back a mistakenly removed retain.
2742
2743 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
2744
2745         Not reviewed, build fix.
2746
2747         - fixed release build
2748
2749         * WebCore.xcodeproj/project.pbxproj:
2750
2751 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
2752
2753         Rubber stamped by Eric.
2754
2755         - moved a big honkin' pile of code over from WebKit; made minimal needed changes to compile
2756
2757         * WebCore.exp:
2758         * WebCore.xcodeproj/project.pbxproj:
2759         * loader/mac/LoaderNSURLExtras.m: Added.
2760         * loader/mac/WebDataProtocol.m: Added.
2761         * loader/mac/WebDocumentLoader.m: Added.
2762         * loader/mac/WebFormDataStream.m: Added.
2763         * loader/mac/WebFrameLoader.m: Added.
2764         * loader/mac/WebLoader.m: Added.
2765         (-[NSURLProtocol didReceiveResponse:]):
2766         (-[NSURLProtocol didReceiveData:lengthReceived:allAtOnce:]):
2767         * loader/mac/WebMainResourceLoader.m: Added.
2768         (-[WebMainResourceLoader didReceiveResponse:]):
2769         * loader/mac/WebPolicyDecider.m: Added.
2770         * loader/mac/WebSubresourceLoader.h: Added.
2771         * loader/mac/WebSubresourceLoader.m: Added.
2772
2773 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
2774
2775         Reviewed by Oliver (sort of?)
2776
2777         - WebCore part of moving down NSURL extras
2778
2779         * WebCore.exp:
2780         * platform/mac/WebCoreSystemInterface.h:
2781         * platform/mac/WebCoreSystemInterface.mm:
2782
2783 2006-10-09  Rob Buis  <buis@kde.org>
2784
2785         Reviewed by Mitz.
2786
2787         http://bugs.webkit.org/show_bug.cgi?id=11217
2788         Cleanup svg coding style
2789
2790         Cleanup coding style in svg animation classes.
2791
2792         * ksvg2/svg/SVGAnimateColorElement.cpp:
2793         (WebCore::SVGAnimateColorElement::handleTimerEvent):
2794         * ksvg2/svg/SVGAnimateElement.cpp:
2795         (WebCore::SVGAnimateElement::SVGAnimateElement):
2796         (WebCore::SVGAnimateElement::handleTimerEvent):
2797         * ksvg2/svg/SVGAnimateTransformElement.cpp:
2798         (WebCore::SVGAnimateTransformElement::SVGAnimateTransformElement):
2799         (WebCore::SVGAnimateTransformElement::parseMappedAttribute):
2800         (WebCore::SVGAnimateTransformElement::handleTimerEvent):
2801         (WebCore::SVGAnimateTransformElement::parseTransformValue):
2802         (WebCore::SVGAnimateTransformElement::calculateRotationFromMatrix):
2803         (WebCore::SVGAnimateTransformElement::initialMatrix):
2804         (WebCore::SVGAnimateTransformElement::transformMatrix):
2805         * ksvg2/svg/SVGAnimateTransformElement.h:
2806         * ksvg2/svg/SVGAnimatedPathData.cpp:
2807         * ksvg2/svg/SVGAnimatedPathData.h:
2808         * ksvg2/svg/SVGAnimatedPoints.cpp:
2809         * ksvg2/svg/SVGAnimatedPoints.h:
2810         * ksvg2/svg/SVGAnimationElement.cpp:
2811         (WebCore::SVGAnimationElement::targetElement):
2812
2813 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
2814
2815         Reviewed by Oliver.
2816
2817         - added isMainFrame and frameLoader to WebCoreFrameBridge for ease of future code motion
2818
2819         * bridge/mac/WebCoreFrameBridge.h:
2820         * bridge/mac/WebCoreFrameBridge.mm:
2821         (-[WebCoreFrameBridge isMainFrame]):
2822
2823 2006-10-09  Adam Roben  <aroben@apple.com>
2824
2825         Backing out accidental commit.
2826
2827         * page/Frame.cpp:
2828         (WebCore::Frame::finishedParsing):
2829
2830 2006-10-09  Adam Roben  <aroben@apple.com>
2831
2832         Reviewed by Darin.
2833
2834         Add ASSERTs to RefPtr to make sure we don't ref within a destructor, as
2835         this could cause recursive calls to the destructor. RefPtr now also
2836         inherits from Noncopyable.
2837
2838         * dom/NodeFilter.h:
2839         * dom/Traversal.h:
2840         * page/DOMWindow.h:
2841         * page/Frame.cpp:
2842         (WebCore::Frame::finishedParsing):
2843         * page/Frame.h:
2844         * page/Plugin.h:
2845         * platform/FontFallbackList.h:
2846         * platform/Icon.h:
2847         * platform/Shared.h:
2848         (WebCore::Shared::Shared):
2849         (WebCore::Shared::ref):
2850         (WebCore::Shared::deref):
2851         (WebCore::Shared::hasOneRef):
2852         (WebCore::Shared::refCount):
2853         * platform/StringImpl.h:
2854
2855 2006-10-09  Oliver Hunt <ohunt@apple.com>
2856
2857         Reviewed by Anders.
2858
2859         Correcting ifdef's
2860
2861         * html/CanvasGradient.cpp:
2862         (WebCore::CanvasGradient::CanvasGradient):
2863         (WebCore::CanvasGradient::~CanvasGradient):
2864         (WebCore::CanvasGradient::addColorStop):
2865         * html/CanvasGradient.h:
2866         * html/CanvasPattern.cpp:
2867         (WebCore::CanvasPattern::CanvasPattern):
2868         (WebCore::CanvasPattern::~CanvasPattern):
2869         * html/CanvasPattern.h:
2870         * html/CanvasRenderingContext2D.cpp:
2871         (WebCore::CanvasRenderingContext2D::fill):
2872         (WebCore::CanvasRenderingContext2D::stroke):
2873         (WebCore::CanvasRenderingContext2D::fillRect):
2874         (WebCore::CanvasRenderingContext2D::setShadow):
2875         (WebCore::CanvasRenderingContext2D::applyShadow):
2876         (WebCore::CanvasRenderingContext2D::drawImage):
2877         (WebCore::CanvasRenderingContext2D::createPattern):
2878         (WebCore::CanvasRenderingContext2D::applyStrokePattern):
2879         (WebCore::CanvasRenderingContext2D::applyFillPattern):
2880         * html/CanvasRenderingContext2D.h:
2881         * html/CanvasStyle.cpp:
2882         (WebCore::CanvasStyle::applyStrokeColor):
2883         (WebCore::CanvasStyle::applyFillColor):
2884         * html/HTMLCanvasElement.cpp:
2885         (WebCore::HTMLCanvasElement::paint):
2886         (WebCore::HTMLCanvasElement::createDrawingContext):
2887         * html/HTMLCanvasElement.h:
2888
2889 2006-10-09  Adam Roben  <aroben@apple.com>
2890
2891         Reviewed by Maciej.
2892
2893         Fix a possible recursive destructor call.
2894
2895         * page/Frame.cpp:
2896         (WebCore::Frame::~Frame): Add a FIXME about cleaning up the destructor.
2897         (WebCore::Frame::finishedParsing): Don't create a protector RefPtr if
2898         we're already being destroyed.
2899
2900 2006-10-09  Sam Weinig  <sam.weinig@gmail.com>
2901
2902         Reviewed by Tim H.
2903
2904         Patch for http://bugs.webkit.org/show_bug.cgi?id=11234
2905         Assorted Objective-C bindings changes
2906
2907         - Auto-generate DOMSVGPathSegArcAbs, DOMSVGPathSegArcRel, DOMSVGPathSegClosePath, 
2908           DOMSVGPathSegCurvetoCubicAbs, DOMSVGPathSegCurvetoCubicRel, 
2909           DOMSVGPathSegCurvetoCubicSmoothAbs, DOMSVGPathSegCurvetoCubicSmoothRel, 
2910           DOMSVGPathSegCurvetoQuadraticAbs, DOMSVGPathSegCurvetoQuadraticRel, 
2911           DOMSVGPathSegCurvetoQuadraticSmoothAbs, DOMSVGPathSegCurvetoQuadraticSmoothRel, 
2912           DOMSVGPathSegLinetoAbs, DOMSVGPathSegLinetoHorizontalAbs, 
2913           DOMSVGPathSegLinetoHorizontalRel, DOMSVGPathSegLinetoRel, 
2914           DOMSVGPathSegLinetoVerticalAbs, DOMSVGPathSegLinetoVerticalRel, 
2915           DOMSVGPathSegMovetoAbs, DOMSVGPathSegMovetoRel and DOMSVGSVGElement.
2916
2917         - Auto-generate absoluteImageURL method for DOMHTMLInputElement and
2918           DOMHTMLObjectElement.
2919
2920         - Auto-generate the internal methods for classes with ivars (notably 
2921           DOMNodeIterator and DOMTreeWalker)
2922
2923         - Put more methods in the WebCore namespace and factor out the  
2924           displayString method into DOMInternal.h as done by Darin in his 
2925           patch for http://bugs.webkit.org/show_bug.cgi?id=11219.
2926
2927         * DerivedSources.make:
2928         * WebCore.xcodeproj/project.pbxproj:
2929         * bindings/objc/DOM.mm:
2930         (-[DOMNode _initWithNode:WebCore::]):
2931         (+[DOMNode _nodeWith:WebCore::]):
2932         (-[DOMNode addEventListener:listener:useCapture:]):
2933         (-[DOMNode removeEventListener:listener:useCapture:]):
2934         (-[DOMNode dispatchEvent:]):
2935         (-[DOMElement _imageTIFFRepresentation]):
2936         (-[DOMNodeFilter _initWithNodeFilter:WebCore::]):
2937         (+[DOMNodeFilter _nodeFilterWith:WebCore::]):
2938         (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]):
2939         (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]):
2940         * bindings/objc/DOMCSS.mm:
2941         (-[DOMStyleSheet _initWithStyleSheet:WebCore::]):
2942         (+[DOMStyleSheet _styleSheetWith:WebCore::]):
2943         (-[DOMCSSRule _initWithCSSRule:WebCore::]):
2944         (+[DOMCSSRule _CSSRuleWith:WebCore::]):
2945         (-[DOMCSSValue _initWithCSSValue:WebCore::]):
2946         (+[DOMCSSValue _CSSValueWith:WebCore::]):
2947         * bindings/objc/DOMEvents.mm:
2948         (-[DOMEvent _initWithEvent:WebCore::]):
2949         (+[DOMEvent _eventWith:WebCore::]):
2950         * bindings/objc/DOMExtensions.h:
2951         * bindings/objc/DOMHTML.mm:
2952         (-[DOMHTMLInputElement _replaceCharactersInRange:withString:selectingFromIndex:]):
2953         * bindings/objc/DOMInternal.h:
2954         (-[DOMNodeFilter WebCore::]):
2955         * bindings/objc/DOMInternal.mm:
2956         (-[WebScriptObject _init]):
2957         (-[WebScriptObject _initializeScriptDOMNodeImp]):
2958         (WebCore::displayString):
2959         * bindings/objc/DOMObject.mm:
2960         (-[DOMObject dealloc]):
2961         (-[DOMObject finalize]):
2962         * bindings/objc/DOMRGBColor.mm:
2963         (-[DOMRGBColor dealloc]):
2964         (-[DOMRGBColor finalize]):
2965         (-[DOMRGBColor color]):
2966         (-[DOMRGBColor _initWithRGB:WebCore::]):
2967         (+[DOMRGBColor _RGBColorWithRGB:WebCore::]):
2968         * bindings/objc/DOMSVG.h:
2969         * bindings/objc/DOMSVGPathSegInternal.h: Added.
2970         * bindings/objc/DOMSVGPathSegInternal.mm: Added.
2971         (-[DOMSVGPathSeg WebCore::]):
2972         (-[DOMSVGPathSeg _initWithSVGPathSeg:WebCore::]):
2973         (+[DOMSVGPathSeg _SVGPathSegWith:WebCore::]):
2974         * bindings/objc/DOMXPath.mm:
2975         (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:WebCore::]):
2976         (+[DOMNativeXPathNSResolver _xpathNSResolverWith:WebCore::]):
2977         * bindings/objc/PublicDOMInterfaces.h:
2978         * bindings/scripts/CodeGeneratorObjC.pm:
2979         * dom/NodeIterator.idl:
2980         * dom/TreeWalker.idl:
2981         * html/HTMLInputElement.idl:
2982         * html/HTMLObjectElement.idl:
2983         * ksvg2/svg/SVGDocument.idl:
2984         * ksvg2/svg/SVGElement.idl:
2985         * ksvg2/svg/SVGPathSeg.idl:
2986         * ksvg2/svg/SVGPathSegArcAbs.idl:
2987         * ksvg2/svg/SVGPathSegArcRel.idl:
2988         * ksvg2/svg/SVGPathSegClosePath.idl:
2989         * ksvg2/svg/SVGPathSegCurvetoCubicAbs.idl:
2990         * ksvg2/svg/SVGPathSegCurvetoCubicRel.idl:
2991         * ksvg2/svg/SVGPathSegCurvetoCubicSmoothAbs.idl:
2992         * ksvg2/svg/SVGPathSegCurvetoCubicSmoothRel.idl:
2993         * ksvg2/svg/SVGPathSegCurvetoQuadraticAbs.idl:
2994         * ksvg2/svg/SVGPathSegCurvetoQuadraticRel.idl:
2995         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl:
2996         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothRel.idl:
2997         * ksvg2/svg/SVGPathSegLinetoAbs.idl:
2998         * ksvg2/svg/SVGPathSegLinetoHorizontalAbs.idl:
2999         * ksvg2/svg/SVGPathSegLinetoHorizontalRel.idl:
3000         * ksvg2/svg/SVGPathSegLinetoRel.idl:
3001         * ksvg2/svg/SVGPathSegLinetoVerticalAbs.idl:
3002         * ksvg2/svg/SVGPathSegLinetoVerticalRel.idl:
3003         * ksvg2/svg/SVGPathSegMovetoAbs.idl:
3004         * ksvg2/svg/SVGPathSegMovetoRel.idl:
3005
3006 2006-10-09  Don Gibson  <dgibson77@gmail.com>
3007
3008         Unreviewed build fix.
3009
3010         Fix windows build bustage.
3011
3012         * platform/win/TemporaryLinkStubs.cpp:
3013
3014 2006-10-09  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
3015
3016         Reviewed by Geoff.
3017
3018         Fix memory leaks discovered via valgrind. Gdk build fixes.
3019
3020         * Projects/gdk/webcore-gdk.bkl:
3021         * make-generated-sources.sh:
3022         * platform/cairo/ImageCairo.cpp:
3023         (WebCore::Image::draw):
3024         * platform/gdk/FrameGdk.cpp:
3025         (WebCore::FrameGdk::handleGdkEvent):
3026         * platform/gdk/FrameGdk.h:
3027         * platform/gdk/PlatformScrollBar.h:
3028         (WebCore::PlatformScrollbar::horizontalScrollbarHeight):
3029         (WebCore::PlatformScrollbar::verticalScrollbarWidth):
3030
3031 2006-10-09  Nikolas Zimmermann  <zimmermann@kde.org>
3032
3033         Reviewed by Beth.
3034
3035         Fix LayoutTests/fast/css/case-transform.html with Qt - the last crashing layout test.
3036
3037         * platform/qt/GlyphMapQt.cpp: Handle UTF-16 characters properly
3038         (WebCore::GlyphMap::fillPage):
3039
3040 2006-10-09  Nikolas Zimmermann  <zimmermann@kde.org>
3041
3042         Unreviewed build fix.
3043
3044         Fix for Qt/Linux build, based on fixes to the Win32 build in r16928 and r16929.
3045
3046         * platform/qt/FrameQt.cpp:
3047         (WebCore::FrameQt::createJavaAppletWidget):
3048         * platform/qt/FrameQt.h:
3049         * platform/qt/TemporaryLinkStubs.cpp:
3050
3051 2006-10-09  Brady Eidson  <beidson@apple.com>
3052
3053         Reviewed by Maciej
3054
3055         Tiny changes to help reorganize WebFrameLoader code in WebKit
3056
3057         * bridge/mac/WebCoreIconDatabaseBridge.h: Added "createInstance"
3058         * bridge/mac/WebCoreIconDatabaseBridge.mm:
3059         (+[WebCoreIconDatabaseBridge sharedInstance]): Added, uses createInstance from WebKit side
3060
3061 2006-10-09  Adam Roben  <aroben@apple.com>
3062
3063         Reviewed by Adele.
3064
3065         Remove redundant call to Frame::cancelAndClear from ~Frame, since it's
3066         already called frome ~FrameMac.
3067
3068         * page/Frame.cpp:
3069         (WebCore::Frame::~Frame):
3070
3071 2006-10-09  Anders Carlsson  <acarlsson@apple.com>
3072
3073         * bridge/win/FrameWin.h:
3074         Add function declaration.
3075         
3076 2006-10-09  Anders Carlsson  <acarlsson@apple.com>
3077
3078         * platform/win/TemporaryLinkStubs.cpp:
3079         (FrameWin::createJavaAppletWidget):
3080         Try fixing the Win32 build.
3081
3082 2006-10-09  Anders Carlsson  <acarlsson@apple.com>
3083
3084         Reviewed by Adam.
3085
3086         Move applet widget creation to Frame and get rid of JavaAppletWidget.
3087         * WebCore.xcodeproj/project.pbxproj:
3088         * bridge/JavaAppletWidget.h: Removed.
3089         * bridge/mac/FrameMac.h:
3090         * bridge/mac/FrameMac.mm:
3091         (WebCore::FrameMac::createJavaAppletWidget):
3092         * bridge/mac/JavaAppletWidget.mm: Removed.
3093         * page/Frame.h:
3094         * rendering/RenderApplet.cpp:
3095         (WebCore::RenderApplet::createWidgetIfNecessary):
3096
3097 2006-10-09  Mitz Pettel  <mitz@webkit.org>
3098
3099         Reviewed by Darin.
3100
3101         - http://bugs.webkit.org/show_bug.cgi?id=11220
3102           Fix manual test for http://bugs.webkit.org/show_bug.cgi?id=8276
3103
3104         Subversion does not support resource forks and HFS metadata, so
3105         the resources for this test need to be on a disk image.
3106
3107         * manual-tests/plain-text-paste.html: Changed instructions to refer to the disk image.
3108         * manual-tests/resources/plain-text-paste.dmg: Added.
3109         * manual-tests/resources/plain-text-paste/._1.textClipping: Removed.
3110         * manual-tests/resources/plain-text-paste/._2.textClipping: Removed.
3111         * manual-tests/resources/plain-text-paste/._4.txt: Removed.
3112         * manual-tests/resources/plain-text-paste/._5.webloc: Removed.
3113         * manual-tests/resources/plain-text-paste/1.textClipping: Removed.
3114         * manual-tests/resources/plain-text-paste/2.textClipping: Removed.
3115         * manual-tests/resources/plain-text-paste/3.gif: Removed.
3116         * manual-tests/resources/plain-text-paste/4.txt: Removed.
3117         * manual-tests/resources/plain-text-paste/5.webloc: Removed.
3118
3119 2006-10-09  Rob Buis  <buis@kde.org>
3120
3121         Reviewed by Darin.
3122
3123         http://bugs.webkit.org/show_bug.cgi?id=11217
3124         Cleanup svg coding style
3125
3126         Cleanup coding style in filter classes.
3127
3128         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
3129         (WebCore::SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement):
3130         (WebCore::SVGComponentTransferFunctionElement::parseMappedAttribute):
3131         * ksvg2/svg/SVGComponentTransferFunctionElement.h:
3132         * ksvg2/svg/SVGFEBlendElement.cpp:
3133         (WebCore::SVGFEBlendElement::SVGFEBlendElement):
3134         (WebCore::SVGFEBlendElement::parseMappedAttribute):
3135         (WebCore::SVGFEBlendElement::filterEffect):
3136         * ksvg2/svg/SVGFEBlendElement.h:
3137         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
3138         (WebCore::SVGFEColorMatrixElement::SVGFEColorMatrixElement):
3139         (WebCore::SVGFEColorMatrixElement::parseMappedAttribute):
3140         (WebCore::SVGFEColorMatrixElement::filterEffect):
3141         * ksvg2/svg/SVGFEColorMatrixElement.h:
3142         * ksvg2/svg/SVGFECompositeElement.cpp:
3143         (WebCore::SVGFECompositeElement::parseMappedAttribute):
3144         * ksvg2/svg/SVGFECompositeElement.h:
3145         * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
3146         (WebCore::SVGFEDisplacementMapElement::stringToChannel):
3147         * ksvg2/svg/SVGFEDisplacementMapElement.h:
3148         * ksvg2/svg/SVGFEFloodElement.cpp:
3149         (WebCore::SVGFEFloodElement::filterEffect):
3150         * ksvg2/svg/SVGFEFuncAElement.cpp:
3151         (WebCore::SVGFEFuncAElement::SVGFEFuncAElement):
3152         * ksvg2/svg/SVGFEFuncBElement.cpp:
3153         (WebCore::SVGFEFuncBElement::SVGFEFuncBElement):
3154         * ksvg2/svg/SVGFEFuncGElement.cpp:
3155         (WebCore::SVGFEFuncGElement::SVGFEFuncGElement):
3156         * ksvg2/svg/SVGFEFuncRElement.cpp:
3157         (WebCore::SVGFEFuncRElement::SVGFEFuncRElement):
3158         * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
3159         (WebCore::SVGFEGaussianBlurElement::SVGFEGaussianBlurElement):
3160         (WebCore::SVGFEGaussianBlurElement::parseMappedAttribute):
3161         (WebCore::SVGFEGaussianBlurElement::filterEffect):
3162         * ksvg2/svg/SVGFEGaussianBlurElement.h:
3163         * ksvg2/svg/SVGFELightElement.cpp:
3164         (WebCore::SVGFELightElement::SVGFELightElement):
3165         (WebCore::SVGFELightElement::parseMappedAttribute):
3166         * ksvg2/svg/SVGFELightElement.h:
3167         * ksvg2/svg/SVGFEMergeElement.cpp:
3168         (WebCore::SVGFEMergeElement::SVGFEMergeElement):
3169
3170 2006-10-09  Rob Buis  <buis@kde.org>
3171
3172         Reviewed by olliej.
3173
3174         http://bugs.webkit.org/show_bug.cgi?id=11217
3175         Cleanup svg coding style
3176
3177         Cleanup coding style in SVGPath* classes.
3178
3179         * ksvg2/svg/SVGPathElement.cpp:
3180         (WebCore::SVGPathElement::SVGPathElement):
3181         (WebCore::SVGPathElement::getPointAtLength):
3182         (WebCore::SVGPathElement::createSVGPathSegClosePath):
3183         (WebCore::SVGPathElement::createSVGPathSegMovetoAbs):
3184         (WebCore::SVGPathElement::createSVGPathSegMovetoRel):
3185         (WebCore::SVGPathElement::createSVGPathSegLinetoAbs):
3186         (WebCore::SVGPathElement::createSVGPathSegLinetoRel):
3187         (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicAbs):
3188         (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicRel):
3189         (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticAbs):
3190         (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticRel):
3191         (WebCore::SVGPathElement::createSVGPathSegArcAbs):
3192         (WebCore::SVGPathElement::createSVGPathSegArcRel):
3193         (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalAbs):
3194         (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalRel):
3195         (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalAbs):
3196         (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalRel):
3197         (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothAbs):
3198         (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothRel):
3199         (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothAbs):
3200         (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothRel):
3201         (WebCore::SVGPathElement::svgMoveTo):
3202         (WebCore::SVGPathElement::svgLineTo):
3203         (WebCore::SVGPathElement::svgLineToHorizontal):
3204         (WebCore::SVGPathElement::svgLineToVertical):
3205         (WebCore::SVGPathElement::svgCurveToCubic):
3206         (WebCore::SVGPathElement::svgCurveToCubicSmooth):
3207         (WebCore::SVGPathElement::svgCurveToQuadratic):
3208         (WebCore::SVGPathElement::svgCurveToQuadraticSmooth):
3209         (WebCore::SVGPathElement::svgArcTo):
3210         (WebCore::SVGPathElement::parseMappedAttribute):
3211         (WebCore::SVGPathElement::pathSegList):
3212         (WebCore::SVGPathElement::normalizedPathSegList):
3213         (WebCore::SVGPathElement::animatedPathSegList):
3214         (WebCore::SVGPathElement::animatedNormalizedPathSegList):
3215         (WebCore::SVGPathElement::toPathData):
3216         * ksvg2/svg/SVGPathElement.h:
3217         (WebCore::SVGPathElement::rendererIsNeeded):
3218         * ksvg2/svg/SVGPathSeg.h:
3219         * ksvg2/svg/SVGPathSegArc.cpp:
3220
3221 2006-10-09  Rob Buis  <buis@kde.org>
3222
3223         Reviewed by aroben.
3224
3225         http://bugs.webkit.org/show_bug.cgi?id=11217
3226         Cleanup svg coding style
3227
3228         Cleanup coding style in svg shape classes.
3229
3230         * ksvg2/svg/SVGCircleElement.cpp:
3231         (WebCore::SVGCircleElement::SVGCircleElement):
3232         (WebCore::SVGCircleElement::parseMappedAttribute):
3233         (WebCore::SVGCircleElement::pushAttributeContext):
3234         * ksvg2/svg/SVGCircleElement.h:
3235         (WebCore::SVGCircleElement::rendererIsNeeded):
3236         * ksvg2/svg/SVGEllipseElement.cpp:
3237         * ksvg2/svg/SVGEllipseElement.h:
3238         (WebCore::SVGEllipseElement::rendererIsNeeded):
3239         * ksvg2/svg/SVGLineElement.cpp:
3240         (WebCore::SVGLineElement::parseMappedAttribute):
3241         (WebCore::SVGLineElement::pushAttributeContext):
3242         * ksvg2/svg/SVGLineElement.h:
3243         (WebCore::SVGLineElement::rendererIsNeeded):
3244         * ksvg2/svg/SVGPolyElement.cpp:
3245         (WebCore::SVGPolyElement::SVGPolyElement):
3246         (WebCore::SVGPolyElement::points):
3247         (WebCore::SVGPolyElement::animatedPoints):
3248         (WebCore::SVGPolyElement::parseMappedAttribute):
3249         (WebCore::SVGPolyElement::notifyAttributeChange):
3250         * ksvg2/svg/SVGPolyElement.h:
3251         (WebCore::SVGPolyElement::rendererIsNeeded):
3252         * ksvg2/svg/SVGPolygonElement.cpp:
3253         (WebCore::SVGPolygonElement::SVGPolygonElement):
3254         (WebCore::SVGPolygonElement::toPathData):
3255         * ksvg2/svg/SVGPolygonElement.h:
3256         * ksvg2/svg/SVGPolylineElement.cpp:
3257         (WebCore::SVGPolylineElement::SVGPolylineElement):
3258         (WebCore::SVGPolylineElement::toPathData):
3259         * ksvg2/svg/SVGPolylineElement.h:
3260         * ksvg2/svg/SVGRectElement.cpp:
3261         (WebCore::SVGRectElement::parseMappedAttribute):
3262         (WebCore::SVGRectElement::pushAttributeContext):
3263         * ksvg2/svg/SVGRectElement.h:
3264         (WebCore::SVGRectElement::rendererIsNeeded):
3265
3266 2006-10-08  Darin Adler  <darin@apple.com>
3267
3268         Reviewed by Maciej.
3269
3270         - added a bit more WebCoreSystemInterface
3271
3272             wkGetNSURLResponseCalculatedExpiration
3273             wkGetNSURLResponseLastModifiedDate
3274             wkGetNSURLResponseMustRevalidate
3275
3276         * WebCore.exp: Added the new symbols.
3277         * platform/mac/WebCoreSystemInterface.h: Ditto.
3278         * platform/mac/WebCoreSystemInterface.mm: Ditto.
3279
3280         - quiet down the code generation script
3281
3282         * bindings/scripts/CodeGenerator.pm:
3283
3284 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
3285
3286         Reviewed by Darin.
3287
3288         - more code laundering - add wkSupportsMultipartXMixedReplace
3289
3290         * WebCore.exp:
3291         * platform/mac/WebCoreSystemInterface.h:
3292         * platform/mac/WebCoreSystemInterface.mm:
3293
3294 2006-10-08  Nikolas Zimmermann  <zimmermann@kde.org>
3295
3296         Reviewed by Darin and Oliver.
3297
3298         Fix artefacts when drawing polygons, most noticeable when painting <hr> elements.
3299
3300         * platform/qt/GraphicsContextQt.cpp: Fix wrong operator<< usage.
3301         (WebCore::GraphicsContext::drawConvexPolygon):
3302
3303 2006-10-08  Anders Carlsson  <acarlsson@apple.com>
3304
3305         Reviewed by Darin.
3306
3307         * page/Frame.cpp:
3308         (WebCore::Frame::submitForm):
3309         No need to use latin1() here.
3310
3311 2006-10-08  Nikolas Zimmermann  <zimmermann@kde.org>
3312
3313         Reviewed by Darin.
3314
3315         Kill warnings when generating IDL files on Qt/Linux, as the
3316         SOURCE_ROOT environment variable is not defined (and not needed) for us.
3317
3318         * bindings/scripts/CodeGenerator.pm:
3319
3320 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
3321
3322         Reviewed by Darin.
3323
3324         - split didNotOpenURL: into general and page-cache-specific parts
3325
3326         * bridge/mac/WebCoreFrameBridge.h:
3327         * bridge/mac/WebCoreFrameBridge.mm:
3328         (-[WebCoreFrameBridge didNotOpenURL:]):
3329         (-[WebCoreFrameBridge invalidatePageCache:]):
3330
3331 2006-10-08  Anders Carlsson  <acarlsson@apple.com>
3332
3333         Reviewed by Darin.
3334
3335         * loader/loader.cpp:
3336         Remove DeprecatedStringList.h include.
3337         
3338         * page/Frame.cpp:
3339         (WebCore::Frame::submitForm):
3340         Don't remove "attach" from mailto URLs, we don't do it anywhere else.
3341
3342 2006-10-08  Sam Weinig  <sam.weinig@gmail.com>
3343
3344         Reviewed by Darin.
3345
3346         Patch for http://bugs.webkit.org/show_bug.cgi?id=11215
3347         Yet another round of Objective-C SVG DOM bindings auto-generation
3348
3349         - Auto-generate DOMSVGPatternElement, DOMSVGPointList, DOMSVGPolygonElement, 
3350           DOMSVGPolylineElement, DOMSVGRadialGradientElement, DOMSVGRenderingIntent,
3351           DOMSVGScriptElement, DOMSVGSetElement, DOMSVGStopElement, DOMSVGSwitchElement, 
3352           DOMSVGSymbolElement, DOMSVGTRefElement, DOMSVGTSpanElement, 
3353           DOMSVGTextContentElement, DOMSVGTextElement, DOMSVGTextPositioningElement, 
3354           DOMSVGTitleElement, DOMSVGUnitTypes, DOMSVGUseElement, DOMSVGViewElement, 
3355           DOMSVGZoomAndPan and DOMSVGZoomEvent.
3356
3357         - Auto-generate the implementations of DOMHTMLAppletElement and DOMHTMLEmbedElement
3358           using the new [ConvertFromString] property.
3359
3360         - Add forward declarations for NS* types to auto-generated classes.
3361
3362         * DerivedSources.make:
3363         * WebCore.xcodeproj/project.pbxproj:
3364         * bindings/objc/DOMHTMLAppletElement.mm: Removed.
3365         * bindings/objc/DOMHTMLEmbedElement.mm: Removed.
3366         * bindings/objc/DOMInternal.h:
3367         * bindings/objc/DOMSVG.h:
3368         * bindings/scripts/CodeGeneratorObjC.pm:
3369         * html/HTMLAppletElement.idl:
3370         * html/HTMLEmbedElement.idl:
3371         * ksvg2/svg/SVGPatternElement.idl:
3372         * ksvg2/svg/SVGPolygonElement.idl:
3373         * ksvg2/svg/SVGPolylineElement.idl:
3374         * ksvg2/svg/SVGRadialGradientElement.idl:
3375         * ksvg2/svg/SVGRenderingIntent.idl:
3376         * ksvg2/svg/SVGScriptElement.idl:
3377         * ksvg2/svg/SVGSetElement.idl:
3378         * ksvg2/svg/SVGStopElement.idl:
3379         * ksvg2/svg/SVGSwitchElement.idl:
3380         * ksvg2/svg/SVGSymbolElement.idl:
3381         * ksvg2/svg/SVGTRefElement.idl:
3382         * ksvg2/svg/SVGTSpanElement.idl:
3383         * ksvg2/svg/SVGTextContentElement.idl:
3384         * ksvg2/svg/SVGTextElement.idl:
3385         * ksvg2/svg/SVGTextPositioningElement.idl:
3386         * ksvg2/svg/SVGTitleElement.idl:
3387         * ksvg2/svg/SVGUseElement.idl:
3388         * ksvg2/svg/SVGViewElement.idl:
3389         * ksvg2/svg/SVGZoomEvent.idl:
3390
3391 2006-10-07  Anders Carlsson  <acarlsson@apple.com>
3392
3393         Reviewed by Maciej.
3394
3395         Remove crossDomain, it was unused and is one of the last functions that use DeprecatedStringList.        
3396         * loader/loader.cpp:
3397         (WebCore::Loader::servePendingRequests):
3398         
3399 2006-10-07  Anders Carlsson  <acarlsson@apple.com>
3400
3401         Reviewed by Darin.
3402
3403         Convert a bunch of RefPtr<StringImpl> to String.
3404         
3405         * bridge/mac/FrameMac.h:
3406         * bridge/mac/FrameMac.mm:
3407         (WebCore::FrameMac::didTellBridgeAboutLoad):
3408         (WebCore::FrameMac::haveToldBridgeAboutLoad):
3409         * dom/BeforeUnloadEvent.cpp:
3410         (WebCore::BeforeUnloadEvent::storeResult):
3411         * dom/BeforeUnloadEvent.h:
3412         (WebCore::BeforeUnloadEvent::result):
3413         * dom/Document.cpp:
3414         (WebCore::Document::createEntityReference):
3415         * dom/Entity.cpp:
3416         (WebCore::Entity::Entity):
3417         (WebCore::Entity::nodeName):
3418         (WebCore::Entity::toString):
3419         * dom/Entity.h:
3420         (WebCore::Entity::publicId):
3421         (WebCore::Entity::systemId):
3422         (WebCore::Entity::notationName):
3423         * dom/EntityReference.cpp:
3424         (WebCore::EntityReference::EntityReference):
3425         (WebCore::EntityReference::nodeName):
3426         (WebCore::EntityReference::cloneNode):
3427         (WebCore::EntityReference::toString):
3428         * dom/EntityReference.h:
3429         * dom/KeyboardEvent.cpp:
3430         (WebCore::KeyboardEvent::KeyboardEvent):
3431         (WebCore::KeyboardEvent::initKeyboardEvent):
3432         * dom/KeyboardEvent.h:
3433         (WebCore::KeyboardEvent::keyIdentifier):
3434         * dom/MutationEvent.cpp:
3435         (WebCore::MutationEvent::MutationEvent):
3436         (WebCore::MutationEvent::initMutationEvent):
3437         * dom/MutationEvent.h:
3438         (WebCore::MutationEvent::prevValue):
3439         (WebCore::MutationEvent::newValue):
3440         (WebCore::MutationEvent::attrName):
3441         * dom/Notation.cpp:
3442         (WebCore::Notation::Notation):
3443         (WebCore::Notation::nodeName):
3444         * dom/Notation.h:
3445         (WebCore::Notation::publicId):
3446         (WebCore::Notation::systemId):
3447         * dom/ProcessingInstruction.cpp:
3448         (WebCore::ProcessingInstruction::ProcessingInstruction):
3449         (WebCore::ProcessingInstruction::setData):
3450         (WebCore::ProcessingInstruction::nodeName):
3451         (WebCore::ProcessingInstruction::nodeValue):
3452         (WebCore::ProcessingInstruction::cloneNode):
3453         (WebCore::ProcessingInstruction::checkStyleSheet):
3454         (WebCore::ProcessingInstruction::toString):
3455         * dom/ProcessingInstruction.h:
3456         (WebCore::ProcessingInstruction::target):
3457         (WebCore::ProcessingInstruction::data):
3458         (WebCore::ProcessingInstruction::localHref):
3459
3460 2006-10-07  Sam Weinig  <sam.weinig@gmail.com>
3461
3462         Reviewed by Tim H.
3463
3464         Patch for http://bugs.webkit.org/show_bug.cgi?id=11206
3465         10 more SVG Objective-C auto-generated bindings
3466
3467         - Auto-generate DOMSVGFilterElement, DOMSVGFitToViewBox, 
3468           DOMSVGForeignObjectElement, DOMSVGGElement, DOMSVGGradientElement,
3469           DOMSVGImageElement, DOMSVGLineElement, DOMSVGLinearGradientElement, 
3470           DOMSVGMarkerElement, DOMSVGMaskElement and DOMSVGPaint.
3471
3472         - Auto-generate the text method for DOMRange.
3473
3474         * DerivedSources.make:
3475         * WebCore.xcodeproj/project.pbxproj:
3476         * bindings/objc/DOM.mm:
3477         * bindings/objc/DOMExtensions.h:
3478         * bindings/objc/DOMInternal.h:
3479         * bindings/objc/DOMPrivate.h:
3480         * bindings/objc/DOMRGBColor.mm:
3481         * bindings/objc/DOMSVG.h:
3482         * bindings/objc/PublicDOMInterfaces.h:
3483         * bindings/scripts/CodeGeneratorObjC.pm:
3484         * dom/Range.idl:
3485         * ksvg2/svg/SVGFilterElement.cpp:
3486         * ksvg2/svg/SVGFilterElement.h:
3487         * ksvg2/svg/SVGFilterElement.idl:
3488         * ksvg2/svg/SVGForeignObjectElement.idl:
3489         * ksvg2/svg/SVGGElement.idl:
3490         * ksvg2/svg/SVGGradientElement.idl:
3491         * ksvg2/svg/SVGImageElement.idl:
3492         * ksvg2/svg/SVGLineElement.idl:
3493         * ksvg2/svg/SVGLinearGradientElement.idl:
3494         * ksvg2/svg/SVGMarkerElement.idl:
3495         * ksvg2/svg/SVGMaskElement.idl:
3496         * ksvg2/svg/SVGPaint.idl:
3497
3498 2006-10-07  Sam Weinig  <sam.weinig@gmail.com>
3499
3500         Reviewed by Tim H.
3501
3502         Patch for http://bugs.webkit.org/show_bug.cgi?id=11198
3503         Auto-generate a few more Objective-C DOM interfaces
3504
3505         - Fully auto-generate DOMAbstractView and DOMRange.
3506
3507         - Auto-generate just the interface for DOMRGBColor.
3508
3509         - Add DOMRanges.h as the new top level file for Ranges
3510           module.
3511
3512         - Add DOMRanges.h and DOMXPath.h to DOM.mm
3513
3514         * DerivedSources.make:
3515         * WebCore.xcodeproj/project.pbxproj:
3516         * bindings/objc/DOM.h:
3517         * bindings/objc/DOM.mm:
3518         * bindings/objc/DOMAbstractView.h: Removed.
3519         * bindings/objc/DOMAbstractView.mm: Removed.
3520         * bindings/objc/DOMInternal.h:
3521         * bindings/objc/DOMPrivate.h:
3522         * bindings/objc/DOMRGBColor.h: Removed.
3523         * bindings/objc/DOMRGBColor.mm:
3524         * bindings/objc/DOMRange.h: Removed.
3525         * bindings/objc/DOMRanges.h: Added.
3526         * bindings/objc/PublicDOMInterfaces.h:
3527         * bindings/scripts/CodeGeneratorObjC.pm:
3528         * css/RGBColor.idl:
3529         * dom/Range.idl:
3530         * page/AbstractView.idl: Added.
3531
3532 2006-10-07  Andrew Wellington  <proton@wiretapped.net>
3533
3534         Reviewed by Eric.
3535
3536         Bug 10837: REGRESSION: Yahoo New Charts Crashes WebKit
3537         http://bugzilla.opendarwin.org/show_bug.cgi?id=10837
3538
3539         Return null when there is no frame. This matches Firefox.
3540
3541         * bindings/js/kjs_html.cpp:
3542         (KJS::JSHTMLDocument::getValueProperty):
3543
3544 2006-10-07  David Hyatt  <hyatt@apple.com>
3545
3546         Implement scroll corner painting (a white rect fill) for overflow areas to cover up
3547         scrollbar joins properly.
3548
3549         Refactor painting of scrollbars and resizers into common functions.  Eliminate the
3550         extra 20 bytes per RenderLayer by cutting out m_resizerImage and m_resizerControlRect.
3551
3552         Reviewed by mitz
3553
3554         * page/FrameView.cpp:
3555         (WebCore::selectCursor):
3556         (WebCore::FrameView::handleMouseMoveEvent):
3557         * platform/mac/PlatformScrollBar.h:
3558         (WebCore::PlatformScrollbar::horizontalScrollbarHeight):
3559         (WebCore::PlatformScrollbar::verticalScrollbarWidth):
3560         * rendering/RenderLayer.cpp:
3561         (WebCore::RenderLayer::RenderLayer):
3562         (WebCore::RenderLayer::~RenderLayer):
3563         (WebCore::RenderLayer::updateLayerPositions):
3564         (WebCore::scrollCornerRect):
3565         (WebCore::RenderLayer::positionOverflowControls):
3566         (WebCore::RenderLayer::paintOverflowControls):
3567         (WebCore::RenderLayer::isPointInResizeControl):
3568         (WebCore::RenderLayer::paintLayer):
3569         * rendering/RenderLayer.h:
3570
3571 2006-10-07  Mark Rowe  <bdash@webkit.org>
3572
3573         Reviewed by Mitz.
3574
3575         Linux/Gdk build fixes, primarily consisting of s/ScrollBar/Scrollbar/ and
3576         matching recent ResourceLoader changes.
3577
3578         * platform/gdk/FrameGdk.cpp:
3579         (WebCore::FrameGdk::openURL):
3580         (WebCore::FrameGdk::urlSelected):
3581         * platform/gdk/PlatformScrollBar.h:
3582         * platform/gdk/ResourceLoaderCurl.cpp:
3583         (WebCore::ResourceLoader::start):
3584         * platform/gdk/ScrollViewGdk.cpp:
3585         (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
3586         (WebCore::ScrollView::resizeContents):
3587         (WebCore::ScrollView::scrollBy):
3588         (WebCore::ScrollView::hScrollbarMode):
3589         (WebCore::ScrollView::vScrollbarMode):
3590         (WebCore::ScrollView::suppressScrollbars):
3591         (WebCore::ScrollView::setHScrollbarMode):
3592         (WebCore::ScrollView::setVScrollbarMode):
3593         (WebCore::ScrollView::setScrollbarsMode):
3594         * platform/gdk/TemporaryLinkStubs.cpp:
3595         (FrameView::passMousePressEventToScrollbar):
3596         (Widget::removeFromParent):
3597         (ScrollView::addChild):
3598         (ScrollView::updateScrollbars):
3599         (ScrollView::scrollbarUnderMouse):
3600         (PlatformScrollbar::PlatformScrollbar):
3601         (PlatformScrollbar::~PlatformScrollbar):
3602         (PlatformScrollbar::width):
3603         (PlatformScrollbar::height):
3604         (PlatformScrollbar::setEnabled):
3605         (PlatformScrollbar::paint):
3606         (PlatformScrollbar::updateThumbPosition):
3607         (PlatformScrollbar::updateThumbProportion):
3608         (PlatformScrollbar::setRect):
3609         (Scrollbar::Scrollbar):
3610         (Scrollbar::setSteps):
3611         (Scrollbar::scroll):
3612         (Scrollbar::setValue):
3613         (Scrollbar::setProportion):
3614
3615 2006-10-06  Dave Hyatt  <hyatt@apple.com>
3616
3617         Implement a new method for obtaining accurate clip rectangles that can be used by plugins to properly clip.
3618
3619         * page/FrameView.cpp:
3620         (WebCore::FrameView::windowClipRect):
3621         * page/FrameView.h:
3622         * platform/ScrollView.h:
3623         * platform/Widget.cpp:
3624         (WebCore::Widget::windowClipRect):
3625         * platform/Widget.h:
3626         (WebCore::Widget::geometryChanged):
3627         (WebCore::Widget::handleMouseMoveEvent):
3628         (WebCore::Widget::handleMouseReleaseEvent):
3629         * platform/mac/ScrollViewMac.mm:
3630         (WebCore::ScrollView::addChild):
3631         * rendering/RenderLayer.cpp:
3632         (WebCore::RenderLayer::documentClipRect):
3633         * rendering/RenderLayer.h:
3634
3635 2006-10-06  Steve Falkenburg  <sfalken@apple.com>
3636
3637         Reviewed by Adam.
3638
3639         Add another method we'll need for scrollbar dodging
3640
3641         * platform/ScrollView.h:
3642         * platform/win/TemporaryLinkStubs.cpp:
3643         (ScrollView::resizerOverlapsContent):
3644
3645 2006-10-06  Sam Weinig  <sam.weinig@gmail.com>
3646
3647         Reviewed by Tim H.
3648
3649         Patch for http://bugs.webkit.org/show_bug.cgi?id=11191
3650         Auto-generate the interfaces even for Objective-C DOM 
3651         bindings that need custom implementations
3652
3653         - Fully auto-generate DOMEventTarget, DOMNodeFilter and 
3654           DOMHTMLOptionElement.
3655
3656         - Auto-generate just the interface for DOMHTMLAppletElement,
3657           DOMHTMLEmbedElement, DOMSVGNumber, DOMSVGPoint and DOMSVGRect
3658           using the new IDL property ObjCCustomImplementation.
3659
3660         * DerivedSources.make:
3661         * WebCore.xcodeproj/project.pbxproj:
3662         * bindings/objc/DOMEventTarget.h: Removed.
3663         * bindings/objc/DOMHTMLAppletElement.h: Removed.
3664         * bindings/objc/DOMHTMLEmbedElement.h: Removed.
3665         * bindings/objc/DOMHTMLOptionElement.h: Removed.
3666         * bindings/objc/DOMHTMLOptionElement.mm: Removed.
3667         * bindings/objc/DOMInternal.h:
3668         * bindings/objc/DOMNodeFilter.h: Removed.
3669         * bindings/objc/DOMSVGNumber.h: Removed.
3670         * bindings/objc/DOMSVGPoint.h: Removed.
3671         * bindings/objc/DOMSVGPoint.mm:
3672         (-[DOMSVGPoint matrixTransform:]):
3673         * bindings/objc/DOMSVGRect.h: Removed.
3674         * bindings/objc/PublicDOMInterfaces.h:
3675         * bindings/scripts/CodeGeneratorObjC.pm:
3676         * dom/EventTarget.idl:
3677         * html/HTMLAppletElement.idl:
3678         * html/HTMLEmbedElement.idl:
3679         * html/HTMLOptionElement.idl:
3680         * ksvg2/svg/SVGNumber.idl:
3681         * ksvg2/svg/SVGPoint.idl:
3682         * ksvg2/svg/SVGRect.idl:
3683
3684 2006-10-06  Nikolas Zimmermann  <zimmermann@kde.org>
3685
3686         Reviewed by Tim H.
3687
3688         Make Qt/Linux compile again completly.
3689
3690         * platform/qt/WidgetQt.cpp:
3691         (WebCore::Widget::removeFromParent):
3692
3693 2006-10-06  Nikolas Zimmermann  <zimmermann@kde.org>
3694
3695         Reviewed by Tim H.
3696
3697         Fix Qt/Linux build by adapting the s/ScrollBar/Scrollbar/ patch.
3698
3699         * platform/qt/PlatformScrollBar.h:
3700         * platform/qt/ScrollViewQt.cpp:
3701         (WebCore::ScrollView::hScrollbarMode):
3702         (WebCore::ScrollView::vScrollbarMode):
3703         (WebCore::ScrollView::suppressScrollbars):
3704         (WebCore::ScrollView::setHScrollbarMode):
3705         (WebCore::ScrollView::setVScrollbarMode):
3706         (WebCore::ScrollView::setScrollbarsMode):
3707         (WebCore::ScrollView::scrollbarUnderMouse):
3708         * platform/qt/TemporaryLinkStubs.cpp:
3709         (WebCore::Scrollbar::Scrollbar):
3710         (WebCore::Scrollbar::setSteps):
3711         (WebCore::Scrollbar::scroll):
3712         (WebCore::Scrollbar::setValue):
3713         (WebCore::Scrollbar::setProportion):
3714         (WebCore::PlatformScrollbar::PlatformScrollbar):
3715         (WebCore::PlatformScrollbar::~PlatformScrollbar):
3716         (WebCore::PlatformScrollbar::width):
3717         (WebCore::PlatformScrollbar::height):
3718         (WebCore::PlatformScrollbar::setEnabled):
3719         (WebCore::PlatformScrollbar::paint):
3720         (WebCore::PlatformScrollbar::updateThumbPosition):
3721         (WebCore::PlatformScrollbar::updateThumbProportion):
3722         (WebCore::PlatformScrollbar::setRect):
3723         (FrameView::passMousePressEventToScrollbar):
3724
3725 2006-10-06  Sam Weinig  <sam.weinig@gmail.com>
3726
3727         Reviewed by Tim H.
3728
3729         Patch for http://bugs.webkit.org/show_bug.cgi?id=11177
3730         Another round of Objective-C SVG DOM bindings auto-generation
3731
3732         - Auto-generate DOMSVGAnimatedNumberList, DOMSVGAnimatedRect, 
3733           DOMSVGComponentTransferFunctionElement, DOMSVGFEBlendElement, 
3734           DOMSVGFEColorMatrixElement, DOMSVGFEComponentTransferElement, 
3735           DOMSVGFECompositeElement, DOMSVGFEDiffuseLightingElement,
3736           DOMSVGFEDisplacementMapElement, DOMSVGFEDistantLightElement, 
3737           DOMSVGFEFloodElement, DOMSVGFEFuncAElement, DOMSVGFEFuncBElement, 
3738           DOMSVGFEFuncGElement, DOMSVGFEFuncRElement, DOMSVGFEGaussianBlurElement, 
3739           DOMSVGFEImageElement, DOMSVGFEMergeElement, DOMSVGFEMergeNodeElement, 
3740           DOMSVGFEOffsetElement, DOMSVGFEPointLightElement, 
3741           DOMSVGFESpecularLightingElement, DOMSVGFESpotLightElement, 
3742           DOMSVGFETileElement, DOMSVGFETurbulenceElement, 
3743           DOMSVGFilterPrimitiveStandardAttributes and DOMSVGNumberList. 
3744
3745         - Adds interfaces and implementation stubs for DOMSVGNumber, DOMSVGPoint
3746           and DOMSVGRect.
3747
3748         - IDL clean up.
3749
3750         - Make numOctaves in SVGFETurbulenceElement use a long instead of an int
3751           in it's macro declaration and definition.
3752
3753         * DerivedSources.make:
3754         * WebCore.xcodeproj/project.pbxproj:
3755         * bindings/objc/DOMCSS.mm:
3756         (+[DOMCSSValue _CSSValueWith:WebCore::]):
3757         * bindings/objc/DOMInternal.h:
3758         * bindings/objc/DOMSVG.h:
3759         * bindings/objc/DOMSVGNumber.h: Added.
3760         * bindings/objc/DOMSVGNumber.mm: Added.
3761         (-[DOMSVGNumber dealloc]):
3762         (-[DOMSVGNumber finalize]):
3763         (-[DOMSVGNumber value]):
3764         (-[DOMSVGNumber setValue:]):
3765         (-[DOMSVGNumber _SVGNumber]):
3766         (-[DOMSVGNumber _initWithFloat:]):
3767         (+[DOMSVGNumber _SVGNumberWith:]):
3768         * bindings/objc/DOMSVGPoint.h: Added.
3769         * bindings/objc/DOMSVGPoint.mm: Added.
3770         (-[DOMSVGPoint dealloc]):
3771         (-[DOMSVGPoint finalize]):
3772         (-[DOMSVGPoint x]):
3773         (-[DOMSVGPoint setX:]):
3774         (-[DOMSVGPoint y]):
3775         (-[DOMSVGPoint setY:]):
3776         (-[DOMSVGPoint WebCore::]):
3777         (-[DOMSVGPoint _initWithFloatPoint:WebCore::]):
3778         (+[DOMSVGPoint _SVGPointWith:WebCore::]):
3779         * bindings/objc/DOMSVGRect.h: Added.
3780         * bindings/objc/DOMSVGRect.mm: Added.
3781         (-[DOMSVGRect dealloc]):
3782         (-[DOMSVGRect finalize]):
3783         (-[DOMSVGRect x]):
3784         (-[DOMSVGRect setX:]):
3785         (-[DOMSVGRect y]):
3786         (-[DOMSVGRect setY:]):
3787         (-[DOMSVGRect width]):
3788         (-[DOMSVGRect setWidth:]):
3789         (-[DOMSVGRect height]):
3790         (-[DOMSVGRect setHeight:]):
3791         (-[DOMSVGRect WebCore::]):
3792         (-[DOMSVGRect _initWithFloatRect:WebCore::]):
3793         (+[DOMSVGRect _SVGRectWith:WebCore::]):
3794         * bindings/scripts/CodeGeneratorObjC.pm:
3795         * ksvg2/svg/SVGAnimatedNumberList.idl:
3796         * ksvg2/svg/SVGAnimatedRect.idl:
3797         * ksvg2/svg/SVGComponentTransferFunctionElement.idl:
3798         * ksvg2/svg/SVGCursorElement.idl:
3799         * ksvg2/svg/SVGFEBlendElement.idl:
3800         * ksvg2/svg/SVGFEColorMatrixElement.idl:
3801         * ksvg2/svg/SVGFEComponentTransferElement.idl:
3802         * ksvg2/svg/SVGFECompositeElement.idl:
3803         * ksvg2/svg/SVGFEDiffuseLightingElement.idl:
3804         * ksvg2/svg/SVGFEDisplacementMapElement.idl:
3805         * ksvg2/svg/SVGFEDistantLightElement.idl:
3806         * ksvg2/svg/SVGFEFloodElement.idl:
3807         * ksvg2/svg/SVGFEFuncAElement.idl:
3808         * ksvg2/svg/SVGFEFuncBElement.idl:
3809         * ksvg2/svg/SVGFEFuncGElement.idl:
3810         * ksvg2/svg/SVGFEFuncRElement.idl:
3811         * ksvg2/svg/SVGFEGaussianBlurElement.idl:
3812         * ksvg2/svg/SVGFEImageElement.idl:
3813         * ksvg2/svg/SVGFEMergeElement.idl:
3814         * ksvg2/svg/SVGFEMergeNodeElement.idl:
3815         * ksvg2/svg/SVGFEOffsetElement.idl:
3816         * ksvg2/svg/SVGFEPointLightElement.idl:
3817         * ksvg2/svg/SVGFESpecularLightingElement.idl:
3818         * ksvg2/svg/SVGFESpotLightElement.idl:
3819         * ksvg2/svg/SVGFETileElement.idl:
3820         * ksvg2/svg/SVGFETurbulenceElement.cpp:
3821         * ksvg2/svg/SVGFETurbulenceElement.h:
3822         * ksvg2/svg/SVGFETurbulenceElement.idl:
3823         * ksvg2/svg/SVGNumberList.idl:
3824
3825 2006-10-06  Adam Roben  <aroben@apple.com>
3826
3827         Backing out my previous change.
3828
3829         * WebCore.xcodeproj/project.pbxproj:
3830         * page/FrameView.cpp:
3831         (WebCore::FrameView::adjustViewSize):
3832
3833 2006-10-06  Adam Roben  <aroben@apple.com>
3834
3835         Build fix.
3836
3837         * WebCore.xcodeproj/project.pbxproj:
3838         * page/FrameView.cpp:
3839         (WebCore::FrameView::windowResizerRect):
3840
3841 2006-10-06  Adam Roben  <aroben@apple.com>
3842
3843         Reviewed by Maciej.
3844
3845         More loader tweaks.
3846
3847         * platform/ResourceLoader.h:
3848         * platform/ResourceLoaderInternal.h:
3849         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
3850         * platform/win/TemporaryLinkStubs.cpp:
3851         (WebCore::ResourceLoader::newHTTPRequest):
3852
3853 2006-10-05  Steve Falkenburg  <sfalken@apple.com>
3854
3855         Reviewed by aroben.
3856
3857         Stub out some methods that we'll be able to use to dodge a window resizer.
3858
3859         * bridge/win/FrameWin.h:
3860         * page/Frame.h:
3861         (WebCore::Frame::windowResizerRect):
3862         * page/FrameView.h:
3863         * platform/ScrollView.h:
3864         (WebCore::ScrollView::windowResizerRect):
3865         * platform/Widget.h:
3866         * platform/win/TemporaryLinkStubs.cpp:
3867         (FrameView::windowResizerRect):
3868         (Widget::setParent):
3869         (Widget::parent):
3870         (FrameWin::windowResizerRect):
3871
3872 2006-10-05  Dave Hyatt  <hyatt@apple.com>
3873
3874         Stub out setFrameGeometry.
3875         
3876         * platform/ScrollView.h:
3877
3878 2006-10-05  Adele Peterson  <adele@apple.com>
3879
3880         Reverting autoscroll fix.  I need to rework this a little.
3881
3882         * page/Frame.cpp:
3883         (WebCore::Frame::handleAutoscroll):
3884         (WebCore::Frame::autoscrollTimerFired):
3885         (WebCore::Frame::stopAutoscrollTimer):
3886         * page/Frame.h:
3887         * rendering/RenderLayer.cpp:
3888         (WebCore::RenderLayer::~RenderLayer):
3889         * rendering/RenderListBox.cpp:
3890         (WebCore::RenderListBox::~RenderListBox):
3891
3892 2006-10-05  Alice  <alice.liu@apple.com>
3893
3894         Reviewed by Adam.
3895
3896         Fixed <rdar://problem/4731778>
3897
3898         * editing/CommandByName.cpp:
3899         (WebCore::Frame::Command::):
3900         was calling the wrong enabledFn for arrow selection and navigation
3901
3902 2006-10-05  Adele Peterson  <adele@apple.com>
3903
3904         Reviewed by Maciej.
3905
3906         - Fix for <rdar://problem/4707489> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active <input type="text">
3907           and <rdar://problem/4707519> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active textarea
3908
3909         * rendering/RenderLayer.cpp: (WebCore::RenderLayer::~RenderLayer): If the renderer is being autoscrolled, then stop the autoscroll timer.
3910         * rendering/RenderListBox.cpp: (WebCore::RenderListBox::~RenderListBox): ditto.
3911
3912         * page/Frame.cpp: Added getter and setter for the renderer being autoscrolled.
3913         (WebCore::Frame::handleAutoscroll):
3914         (WebCore::Frame::autoscrollTimerFired):
3915         (WebCore::Frame::autoscrollRenderer):
3916         (WebCore::Frame::setAutoscrollRenderer):
3917         (WebCore::Frame::stopAutoscrollTimer):
3918         * page/Frame.h:
3919
3920 2006-10-05  Don Gibson  <dgibson77@gmail.com>
3921
3922         Reviewed by Eric.
3923
3924         Fix win32 build bustage after ggaren's Scrollbar renaming changes.
3925         Properly include PlatformScrollBar.h in WbCore.vcproj.
3926         Clean up WidgetWin.cpp a bit.
3927
3928         * WebCore.vcproj/WebCore/WebCore.vcproj:
3929         * platform/Widget.h:
3930         * platform/win/PlatformScrollBar.h:
3931         * platform/win/ScrollViewWin.cpp:
3932         (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
3933         (WebCore::ScrollView::resizeContents):
3934         (WebCore::ScrollView::scrollBy):
3935         (WebCore::ScrollView::hScrollbarMode):
3936         (WebCore::ScrollView::vScrollbarMode):
3937         (WebCore::ScrollView::suppressScrollbars):
3938         (WebCore::ScrollView::setHScrollbarMode):
3939         (WebCore::ScrollView::setVScrollbarMode):
3940         (WebCore::ScrollView::setScrollbarsMode):
3941         (WebCore::ScrollView::updateScrollbars):
3942         * platform/win/TemporaryLinkStubs.cpp:
3943         (FrameView::passMousePressEventToScrollbar):
3944         (Widget::removeFromParent):
3945         (ScrollView::scrollbarUnderMouse):
3946         (PlatformScrollbar::PlatformScrollbar):
3947         (PlatformScrollbar::~PlatformScrollbar):
3948         (PlatformScrollbar::width):
3949         (PlatformScrollbar::height):
3950         (PlatformScrollbar::setEnabled):
3951         (PlatformScrollbar::paint):
3952         (PlatformScrollbar::updateThumbPosition):
3953         (PlatformScrollbar::updateThumbProportion):
3954         (PlatformScrollbar::setRect):
3955         (Scrollbar::Scrollbar):
3956         (Scrollbar::setSteps):
3957         (Scrollbar::scroll):
3958         (Scrollbar::setValue):
3959         (Scrollbar::setProportion):
3960         * platform/win/WidgetWin.cpp:
3961         (WebCore::WidgetPrivate::WidgetPrivate):
3962         (WebCore::Widget::Widget):
3963         (WebCore::Widget::setContainingWindow):
3964         (WebCore::Widget::containingWindow):
3965
3966 2006-10-05  Geoffrey Garen  <ggaren@apple.com>
3967
3968         build fix.
3969         
3970         * WebCore.xcodeproj/project.pbxproj:
3971         * bridge/mac/BrowserExtensionMac.mm:
3972         (WebCore::BrowserExtensionMac::createNewWindow):
3973         * bridge/mac/FrameMac.mm:
3974         (WebCore::FrameMac::createFrame):
3975         * bridge/mac/FrameViewMac.mm:
3976         (WebCore::FrameView::passMousePressEventToScrollbar):
3977         * bridge/mac/WebCoreFrameBridge.mm:
3978         (-[WebCoreFrameBridge installInFrame:]):
3979         * bridge/mac/WebCoreFrameView.h:
3980         * platform/ScrollBar.cpp:
3981         * platform/Widget.h:
3982         * platform/mac/PlatformScrollBar.h:
3983         * platform/mac/PlatformScrollBarMac.mm:
3984         (NSControlSizeForScrollBarControlSize):
3985         (-[WebCoreScrollBar initWithPlatformScrollbar:]):
3986         (-[WebCoreScrollBar detachPlatformScrollbar]):
3987         (-[WebCoreScrollBar scroll:]):
3988         (-[WebCoreScrollBar widget]):
3989         (WebCore::PlatformScrollbar::PlatformScrollbar):
3990         (WebCore::PlatformScrollbar::~PlatformScrollbar):
3991         (WebCore::PlatformScrollbar::updateThumbPosition):
3992         (WebCore::PlatformScrollbar::updateThumbProportion):
3993         (WebCore::PlatformScrollbar::scrollbarHit):
3994         (WebCore::PlatformScrollbar::width):
3995         (WebCore::PlatformScrollbar::height):
3996         (WebCore::PlatformScrollbar::setRect):
3997         (WebCore::PlatformScrollbar::setEnabled):
3998         (WebCore::PlatformScrollbar::paint):
3999         * platform/mac/ScrollViewMac.mm:
4000         (WebCore::ScrollView::setVScrollbarMode):
4001         (WebCore::ScrollView::setHScrollbarMode):
4002         (WebCore::ScrollView::setScrollbarsMode):
4003         (WebCore::ScrollView::vScrollbarMode):
4004         (WebCore::ScrollView::hScrollbarMode):
4005         (WebCore::ScrollView::suppressScrollbars):
4006         (WebCore::ScrollView::scrollbarUnderMouse):
4007         * platform/mac/WidgetMac.mm:
4008         (WebCore::Widget::removeFromParent):
4009         * rendering/RenderLayer.cpp:
4010         (WebCore::RenderLayer::destroyScrollbar):
4011
4012 2006-10-05  Geoffrey Garen  <ggaren@apple.com>
4013
4014         build fix.
4015         
4016         * platform/Widget.h:
4017         * rendering/RenderLayer.cpp:
4018         (WebCore::RenderLayer::destroyScrollbar):
4019
4020 2006-10-06  Mitz Pettel  <mitz@webkit.org>
4021
4022         http://bugs.webkit.org/show_bug.cgi?id=8276
4023         Fix broken manual test added back in r13990.
4024
4025         Add resource forks for test resources.
4026
4027         * manual-tests/resources/plain-text-paste/._1.textClipping: Added.
4028         * manual-tests/resources/plain-text-paste/._2.textClipping: Added.
4029         * manual-tests/resources/plain-text-paste/._4.txt: Added.
4030         * manual-tests/resources/plain-text-paste/._5.webloc: Added.
4031
4032 2006-10-05  David Hyatt  <hyatt@apple.com>
4033
4034         Rename addClip to clip.
4035
4036         Reviewed by darin
4037
4038         * kcanvas/RenderForeignObject.cpp:
4039         (WebCore::RenderForeignObject::paint):
4040         * kcanvas/RenderSVGContainer.cpp:
4041         (WebCore::RenderSVGContainer::paint):
4042         * kcanvas/RenderSVGImage.cpp:
4043         (WebCore::RenderSVGImage::paint):
4044         * platform/GraphicsContext.h:
4045         * platform/cairo/GraphicsContextCairo.cpp:
4046         (WebCore::GraphicsContext::clip):
4047         * platform/cg/GraphicsContextCG.cpp:
4048         (WebCore::GraphicsContext::savePlatformState):
4049         (WebCore::GraphicsContext::restorePlatformState):
4050         (WebCore::GraphicsContext::clip):
4051         (WebCore::GraphicsContext::addRoundedRectClip):
4052         (WebCore::GraphicsContext::addInnerRoundedRectClip):
4053         (WebCore::GraphicsContext::scale):
4054         (WebCore::GraphicsContext::rotate):
4055         (WebCore::GraphicsContext::translate):
4056         (WebCore::GraphicsContext::concatCTM):
4057         * platform/cg/GraphicsContextPlatformPrivate.h:
4058         (WebCore::GraphicsContextPlatformPrivate::save):
4059         (WebCore::GraphicsContextPlatformPrivate::restore):
4060         (WebCore::GraphicsContextPlatformPrivate::clip):
4061         (WebCore::GraphicsContextPlatformPrivate::scale):
4062         (WebCore::GraphicsContextPlatformPrivate::rotate):
4063         (WebCore::GraphicsContextPlatformPrivate::translate):
4064         (WebCore::GraphicsContextPlatformPrivate::concatCTM):
4065         * platform/qt/GraphicsContextQt.cpp:
4066         (WebCore::GraphicsContext::clip):
4067         (WebCore::GraphicsContext::addInnerRoundedRectClip):
4068         (WebCore::GraphicsContext::addRoundedRectClip):
4069         * rendering/InlineFlowBox.cpp:
4070         (WebCore::InlineFlowBox::paintBackground):
4071         (WebCore::InlineFlowBox::paintBackgroundAndBorder):
4072         * rendering/InlineTextBox.cpp:
4073         (WebCore::InlineTextBox::paintSelection):
4074         (WebCore::InlineTextBox::paintTextMatchMarker):
4075         * rendering/RenderBox.cpp:
4076         (WebCore::RenderBox::paintBackgroundExtended):
4077         * rendering/RenderButton.cpp:
4078         (WebCore::RenderButton::paintObject):
4079         * rendering/RenderFileUploadControl.cpp:
4080         (WebCore::RenderFileUploadControl::paintObject):
4081         * rendering/RenderLayer.cpp:
4082         (WebCore::RenderLayer::beginTransparencyLayers):
4083         (WebCore::setClip):
4084         * rendering/RenderListBox.cpp:
4085         (WebCore::RenderListBox::paintObject):
4086         * rendering/RenderMenuList.cpp:
4087         (WebCore::RenderMenuList::paintObject):
4088         * rendering/RenderTableCell.cpp:
4089         (WebCore::RenderTableCell::paintBackgroundsBehindCell):
4090
4091 2006-10-05  Mitz Pettel  <mitz@webkit.org>
4092
4093         Reviewed by Darin.
4094
4095         - http://bugs.webkit.org/show_bug.cgi?id=10386
4096           Delete RenderImageButton.* and remove references from .vcproj and .bkl files
4097
4098         * CMakeLists.txt:
4099         * WebCore.vcproj/WebCore/WebCore.vcproj:
4100         * WebCoreSources.bkl:
4101         * rendering/RenderImageButton.cpp: Removed.
4102         * rendering/RenderImageButton.h: Removed.
4103
4104 2006-10-05  Mitz Pettel  <opendarwin.org@mitzpettel.com>
4105
4106         Reviewed by Darin.
4107
4108         - http://bugs.webkit.org/show_bug.cgi?id=11067
4109           manual-tests/scrollbar-hittest2.html is invalid
4110
4111         * manual-tests/scrollbar-hittest2.html:
4112
4113 2006-10-05  David Carson  <dacarson@gmail.com>
4114
4115         Reviewed by Darin.
4116
4117         http://bugs.webkit.org/show_bug.cgi?id=11152
4118         Adjust the tokenizer chunk size to be smaller for
4119         mobile devices, and also decrease the yield timer
4120         for the tokenizer so that it can resume earlier.
4121
4122         * html/HTMLTokenizer.cpp:
4123         * config.h:
4124
4125 2006-10-05  Adam Roben  <aroben@apple.com>
4126
4127         Removing accidentally-checked-in do-nothing code.
4128
4129         * html/HTMLInputElement.cpp:
4130         (WebCore::HTMLInputElement::defaultEventHandler):
4131
4132 2006-10-05  David Carson  <dacarson@gmail.com>
4133
4134         Reviewed by Mitz.
4135
4136         http://bugs.webkit.org/show_bug.cgi?id=11158
4137         Initialize class variables
4138
4139         * rendering/RenderLayer.cpp:
4140         (WebCore::RenderLayer::RenderLayer):
4141
4142 2006-10-05  Don Gibson  <dgibson77@gmail.com>
4143
4144         Reviewed by Darin, landed by Adam.
4145
4146         http://bugs.webkit.org/show_bug.cgi?id=11176
4147         Fix win32 build, adapt to Maciej's ResourceLoader changes.
4148
4149         * platform/win/ResourceLoaderWin.cpp:
4150         (WebCore::ResourceLoader::start):
4151
4152 2006-10-05  Marvin Decker  <marv.decker@gmail.com>
4153
4154         Reviewed by Darin.
4155
4156         http://bugs.webkit.org/show_bug.cgi?id=10989
4157         Provide a way for embedders to implement BrowserExtensionWin
4158
4159         * WebCore.vcproj/WebCore/WebCore.vcproj:
4160         * bridge/win/BrowserExtensionWin.cpp: Added.
4161         (BrowserExtensionWin::BrowserExtensionWin):
4162         (BrowserExtensionWin::setTypedIconURL):
4163         (BrowserExtensionWin::setIconURL):
4164         (BrowserExtensionWin::getHistoryLength):
4165         (BrowserExtensionWin::canRunModal):
4166         (BrowserExtensionWin::createNewWindow):
4167         (BrowserExtensionWin::canRunModalNow):
4168         (BrowserExtensionWin::runModal):
4169         (BrowserExtensionWin::goBackOrForward):
4170         (BrowserExtensionWin::historyURL):
4171         * bridge/win/BrowserExtensionWin.h:
4172         * bridge/win/FrameWin.cpp:
4173         (WebCore::FrameWin::createNewWindow):
4174         * bridge/win/FrameWin.h:
4175         * platform/win/TemporaryLinkStubs.cpp:
4176
4177 2006-10-05  Geoffrey Garen  <ggaren@apple.com>
4178
4179         Reviewed by Darin.
4180         
4181         Fixed <rdar://problem/4766987>
4182         
4183         - renamed ScrollBar to Scrollbar and scroll bar to scrollbar in every case
4184         except for file names.
4185         
4186         - fixed RenderLayer to properly tear down scrollbars, removing them from
4187         their parents.
4188
4189         * bindings/js/kjs_window.cpp:
4190         (KJS::showModalDialog):
4191         (KJS::setWindowFeature):
4192         (KJS::parseWindowFeatures):
4193         * bridge/BrowserExtension.h:
4194         * dom/Document.cpp:
4195         (WebCore::Document::setInPageCache):
4196         * html/HTMLFrameElement.cpp:
4197         (WebCore::HTMLFrameElement::init):
4198         (WebCore::HTMLFrameElement::parseMappedAttribute):
4199         * html/HTMLFrameElement.h:
4200         (WebCore::HTMLFrameElement::scrollingMode):
4201         * page/Frame.cpp:
4202         (WebCore::Frame::finishedParsing):
4203         (WebCore::Frame::scrollbarsVisible):
4204         * page/FrameView.cpp:
4205         (WebCore::FrameViewPrivate::FrameViewPrivate):
4206         (WebCore::FrameViewPrivate::reset):
4207         (WebCore::FrameView::~FrameView):
4208         (WebCore::FrameView::resetScrollbars):
4209         (WebCore::FrameView::clear):
4210         (WebCore::FrameView::initScrollbars):
4211         (WebCore::FrameView::applyOverflowToViewport):
4212         (WebCore::FrameView::layout):
4213         (WebCore::FrameView::handleMousePressEvent):
4214         (WebCore::selectCursor):
4215         (WebCore::FrameView::handleMouseMoveEvent):
4216         (WebCore::FrameView::setScrollbarsMode):
4217         (WebCore::FrameView::setVScrollbarMode):
4218         (WebCore::FrameView::setHScrollbarMode):
4219         (WebCore::FrameView::restoreScrollbar):
4220         (WebCore::FrameView::dispatchMouseEvent):
4221         (WebCore::FrameView::scrollbarMoved):
4222         * page/FrameView.h:
4223         * page/MouseEventWithHitTestResults.cpp:
4224         (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
4225         * page/MouseEventWithHitTestResults.h:
4226         (WebCore::MouseEventWithHitTestResults::scrollbar):
4227         * platform/ScrollBar.cpp:
4228         (WebCore::Scrollbar::Scrollbar):
4229         (WebCore::Scrollbar::setValue):
4230         (WebCore::Scrollbar::setProportion):
4231         (WebCore::Scrollbar::setSteps):
4232         (WebCore::Scrollbar::scroll):
4233         * platform/ScrollBar.h:
4234         (WebCore::):
4235         (WebCore::ScrollbarClient::~ScrollbarClient):
4236         (WebCore::Scrollbar::~Scrollbar):
4237         (WebCore::Scrollbar::orientation):
4238         (WebCore::Scrollbar::controlSize):
4239         (WebCore::Scrollbar::hasPlatformScrollbars):
4240         (WebCore::Scrollbar::client):
4241         * platform/ScrollBarMode.h:
4242         (WebCore::):
4243         * platform/ScrollView.h:
4244         * rendering/RenderBlock.cpp:
4245         (WebCore::RenderBlock::isPointInScrollbar):
4246         * rendering/RenderLayer.cpp:
4247         (WebCore::RenderLayer::RenderLayer):