Reviewed by Darin.
[WebKit-https.git] / WebCore / ChangeLog
1 2006-10-13  Maciej Stachowiak  <mjs@apple.com>
2
3         Reviewed by Darin.
4
5         - split FrameLoadRequest off from ResourceRequest - it's a ResourceRequest plus frame name plus lockHistory bool
6
7         * WebCore.xcodeproj/project.pbxproj:
8         * bindings/js/kjs_window.cpp:
9         (KJS::createNewWindow):
10         (KJS::WindowFunc::callAsFunction):
11         * bridge/BrowserExtension.h:
12         * bridge/mac/BrowserExtensionMac.h:
13         * bridge/mac/BrowserExtensionMac.mm:
14         (WebCore::BrowserExtensionMac::createNewWindow):
15         * bridge/mac/FrameMac.h:
16         * bridge/mac/FrameMac.mm:
17         (WebCore::FrameMac::submitForm):
18         (WebCore::FrameMac::openURLRequest):
19         (WebCore::FrameMac::urlSelected):
20         * bridge/win/BrowserExtensionWin.h:
21         * page/Frame.cpp:
22         (WebCore::Frame::changeLocation):
23         (WebCore::Frame::urlSelected):
24         (WebCore::Frame::requestFrame):
25         (WebCore::Frame::submitForm):
26         * page/Frame.h:
27         * page/FrameLoadRequest.h: Added.
28         (WebCore::FrameLoadRequest::FrameLoadRequest):
29         (WebCore::FrameLoadRequest::lockHistory):
30         (WebCore::FrameLoadRequest::setLockHistory):
31         * page/ResourceRequest.h:
32         (WebCore::ResourceRequest::ResourceRequest):
33
34 2006-10-13  John Sullivan  <sullivan@apple.com>
35
36         Reviewed by Maciej
37
38         * loader/mac/WebFrameLoader.mm:
39         (-[WebFrameLoader loadDocumentLoader:]):
40         Replace ASSERT(!policyDocumentLoader) with code that handles this case. This can
41         happen when loading a page during a decidePolicyForNavigationAction callback.
42
43 2006-10-13  Dave Hyatt  <hyatt@apple.com>
44
45         Transparency layer work.
46
47         Reviewed by aroben
48
49         * platform/GraphicsContext.h:
50         * platform/cg/GraphicsContextCG.cpp:
51         (WebCore::GraphicsContext::beginTransparencyLayer):
52         (WebCore::GraphicsContext::endTransparencyLayer):
53         * platform/cg/GraphicsContextPlatformPrivate.h:
54         (WebCore::GraphicsContextPlatformPrivate::beginTransparencyLayer):
55         (WebCore::GraphicsContextPlatformPrivate::endTransparencyLayer):
56
57 2006-10-13  Rob Buis  <buis@kde.org>
58
59         Reviewed by Mitz.
60
61         http://bugs.webkit.org/show_bug.cgi?id=11217
62         Cleanup svg coding style
63
64         Cleanup coding style in svg paint server classes.
65
66         * ksvg2/svg/SVGGradientElement.cpp:
67         (WebCore::SVGGradientElement::SVGGradientElement):
68         (WebCore::SVGGradientElement::parseMappedAttribute):
69         (WebCore::SVGGradientElement::notifyAttributeChange):
70         (WebCore::SVGGradientElement::canvasResource):
71         (WebCore::SVGGradientElement::rebuildStops):
72         * ksvg2/svg/SVGGradientElement.h:
73         * ksvg2/svg/SVGLinearGradientElement.cpp:
74         (WebCore::SVGLinearGradientElement::SVGLinearGradientElement):
75         (WebCore::SVGLinearGradientElement::parseMappedAttribute):
76         (WebCore::SVGLinearGradientElement::buildGradient):
77         * ksvg2/svg/SVGLinearGradientElement.h:
78         * ksvg2/svg/SVGPatternElement.cpp:
79         (WebCore::SVGPatternElement::SVGPatternElement):
80         (WebCore::SVGPatternElement::parseMappedAttribute):
81         (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
82         (WebCore::SVGPatternElement::drawPatternContentIntoTile):
83         (WebCore::SVGPatternElement::notifyClientsToRepaint):
84         (WebCore::SVGPatternElement::notifyAttributeChange):
85         (WebCore::SVGPatternElement::canvasResource):
86         (WebCore::SVGPatternElement::getCTM):
87         * ksvg2/svg/SVGPatternElement.h:
88         (WebCore::SVGPatternElement::rendererIsNeeded):
89         * ksvg2/svg/SVGRadialGradientElement.cpp:
90         (WebCore::SVGRadialGradientElement::SVGRadialGradientElement):
91         (WebCore::SVGRadialGradientElement::parseMappedAttribute):
92         (WebCore::SVGRadialGradientElement::buildGradient):
93         * ksvg2/svg/SVGRadialGradientElement.h:
94         * ksvg2/svg/SVGStopElement.cpp:
95         (WebCore::SVGStopElement::SVGStopElement):
96         (WebCore::SVGStopElement::parseMappedAttribute):
97         * ksvg2/svg/SVGStopElement.h:
98
99 2006-10-13  Geoffrey Garen  <ggaren@apple.com>
100
101         Reviewed by Darin, John.
102
103         - Merged more frame and iframe code
104         - Fixed a bug where iframes returned incorrect values for renderer-dependent 
105         properties during javascript: loads because they didn't have renderers at 
106         load time
107         
108         PLT insists this is a small performance win. Don't believe its lies.
109
110         * bindings/js/kjs_html.cpp:
111         (KJS::JSHTMLElement::frameGetter): Renamed frameWidth and frameHeight to
112         width and height, for consistency with the rest of the DOM.
113         * dom/ContainerNode.cpp:
114         (WebCore::ContainerNode::queuePostAttachCallback): Added a post-attach callback
115         queue that gets drained after the render tree is fully constructed. Currently,
116         this is only used for frame loading.
117         (WebCore::ContainerNode::attach):
118         * dom/ContainerNode.h:
119         * html/HTMLFrameElement.cpp:
120         (WebCore::HTMLFrameElement::insertedIntoDocument): Removed frame loading from
121         attach() because loading iframes during attach() causes a crash. 
122         Moved frame loading logic into insertedIntoDocument(). That's a more 
123         logical place for it because  document insertion is what 
124         triggers frame loading. Made frame loading a post-attach callback, instead
125         of an immediate action, to fix the incorrect values bug.
126         (WebCore::HTMLFrameElement::attach): Added setWidget call that used to be
127         in HTMLIFrameElement::attach. IFRAME requires this call. FRAME will soon 
128         require this call, once I remove the call from WebKit.
129         (WebCore::HTMLFrameElement::setLocation):
130         (WebCore::HTMLFrameElement::width):
131         (WebCore::HTMLFrameElement::height):
132         * html/HTMLFrameElement.h: Made openURL non-virtual to avoid the unnecessary
133         killing of puppies.
134         * html/HTMLIFrameElement.cpp: Merged code into HTMLFrameElement
135         (WebCore::HTMLIFrameElement::rendererIsNeeded):
136         (WebCore::HTMLIFrameElement::createRenderer):
137         (WebCore::HTMLIFrameElement::insertedIntoDocument):
138         (WebCore::HTMLIFrameElement::removedFromDocument):
139         (WebCore::HTMLIFrameElement::attach):
140         * page/FrameView.h: Removed unused method.
141
142 2006-10-13  David Harrison  <harrison@apple.com>
143
144         Reviewed by Justin.
145
146         <rdar://problem/4746860> Mail crash in WebCore::CSSMutableStyleDeclaration::merge(WebCore::CSSMutableStyleDeclaration*, bool)
147
148         Tests added or changed:
149         * editing/style/style-boundary-005.html: Added. Matches steps from bug.
150         * editing/execCommand/hilitecolor-expected.txt: Updated (no empty Apple style spans).
151         * editing/style/remove-underline-across-paragraph-in-bold-expected.txt: Updated (no empty Apple style spans).
152         * editing/style/remove-underline-in-bold-expected.txt: Updated (no empty Apple style spans).
153         * editing/style/typing-style-003-expected.txt: Updated (no empty Apple style spans).
154
155         * dom/Text.cpp:
156         (WebCore::Text::splitText):
157         Comment changes.
158         
159         * editing/ApplyStyleCommand.cpp:
160         (WebCore::isUnstyledStyleSpan):
161         Renamed from isEmptyStyleSpan.
162         
163         (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
164         Rename emptySpans local to unstyledSpans.
165         
166         (WebCore::dummySpanAncestorForNode):
167         New. To locate Apple style span created when splitting a text node.
168         
169         (WebCore::ApplyStyleCommand::cleanupUnstyledAppleStyleSpans):
170         Renamed from cleanUpEmptyStyleSpans. Algorithm changed to scan children
171         of dummy span's parents, rather than traversing up from start and
172         end locations. Old algorithm would miss empty spans in the bug case.
173         
174         (WebCore::ApplyStyleCommand::applyInlineStyle):
175         Use dummySpanAncestorForNode() and cleanupUnstyledAppleStyleSpans().
176         
177         (WebCore::ApplyStyleCommand::removeCSSStyle):
178         Renamed isEmptyStyleSpan() to isUnstyledStyleSpan().
179         
180         (WebCore::ApplyStyleCommand::mergeStartWithPreviousIfIdentical):
181         Comment changes.
182         
183         * editing/ApplyStyleCommand.h:
184         Renamed cleanUpEmptyStyleSpans() to cleanupUnstyledAppleStyleSpans().
185           
186         * editing/ReplaceSelectionCommand.cpp:
187         (WebCore::ReplaceSelectionCommand::removeRedundantStyles):
188         Allow for Apple style span to be unstyled, because old email may have this in the DOM.
189         Use !node->hasChildNodes() instead of !node->firstChild().
190         
191         * editing/SplitTextNodeCommand.cpp:
192         (WebCore::SplitTextNodeCommand::doApply):
193         Comment changes.
194         
195         * rendering/RenderTreeAsText.cpp:
196         (WebCore::isEmptyOrUnstyledAppleStyleSpan):
197         (WebCore::operator<<):
198         Flag empty or unstyled AppleStyleSpa nbecause we never want to leave them in the DOM
199
200 2006-10-13  Nikolas Zimmermann  <zimmermann@kde.org>
201
202         Reviewed by Eric.
203
204         Fix Qt/Linux build after Adele's popup menu changes.
205
206         * CMakeLists.txt:
207         * platform/qt/FileChooserQt.cpp:
208         (WebCore::FileChooser::disconnectUploadControl):
209         * platform/qt/PopupMenuQt.cpp: Added.
210         (WebCore::PopupMenu::PopupMenu):
211         (WebCore::PopupMenu::~PopupMenu):
212         (WebCore::PopupMenu::clear):
213         (WebCore::PopupMenu::populate):
214         (WebCore::PopupMenu::show):
215         (WebCore::PopupMenu::hide):
216         (WebCore::PopupMenu::addSeparator):
217         (WebCore::PopupMenu::addGroupLabel):
218         (WebCore::PopupMenu::addOption):
219         * platform/qt/RenderPopupMenuQt.cpp: Removed.
220         * platform/qt/RenderPopupMenuQt.h: Removed.
221         * platform/qt/RenderThemeQt.cpp:
222
223 2006-10-13  Kevin McCullough  <KMcCullough@apple.com>
224
225         Reviewed by Darin.
226
227         fixed build failure 
228
229         * WebCore.xcodeproj/project.pbxproj:
230         * loader/mac/WebFrameLoader.mm:
231
232 2006-10-13  Darin Adler  <darin@apple.com>
233
234         Reviewed by Adele.
235
236         - converted WebFormState from Objective-C to C++
237
238         * WebCore.exp: Added a new symbol, changed one symbol from C to C++.
239
240         * WebCore.xcodeproj/project.pbxproj: Made lots of headers "private" instead of "project".
241         Added UChar.h and FrameLoaderTypes.h.
242
243         * loader/FrameLoaderTypes.h: Added. Has enums from WebFrameLoader.h.
244
245         * loader/mac/WebFormState.h: Converted class to C++.
246         * loader/mac/WebFormState.mm: Ditto.
247
248         * loader/mac/WebFrameLoader.h:
249         * loader/mac/WebFrameLoader.mm:
250         (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
251         (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
252         (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
253         (-[WebFrameLoader invalidatePendingPolicyDecisionCallingDefaultAction:]):
254         (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
255         (-[WebFrameLoader continueAfterNewWindowPolicy:]):
256         (-[WebFrameLoader checkNavigationPolicyForRequest:documentLoader:formState:andCall:withSelector:]):
257         (-[WebFrameLoader continueAfterNavigationPolicy:]):
258         (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
259         (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
260         (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
261         (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
262         Changed Objective-C WebFormState uses to C++ WebCore::FormState.
263
264 2006-10-13  Adele Peterson  <adele@apple.com>
265
266         Reviewed by Maciej.
267
268         - Fix for <rdar://problem/4768591> REGRESSION: List box selection color should just be a darker version of regular selection color
269
270         * rendering/RenderListBox.cpp:
271         (WebCore::RenderListBox::paintItemForeground):
272         * rendering/RenderTheme.cpp:
273         (WebCore::RenderTheme::activeListBoxSelectionBackgroundColor):
274         (WebCore::RenderTheme::activeListBoxSelectionForegroundColor):
275         (WebCore::RenderTheme::inactiveListBoxSelectionBackgroundColor):
276         (WebCore::RenderTheme::inactiveListBoxSelectionForegroundColor):
277         * rendering/RenderThemeMac.h:
278         * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::activeListBoxSelectionBackgroundColor):
279
280 2006-10-13  Rob Buis  <buis@kde.org>
281
282         Reviewed by Mitz.
283
284         http://bugs.webkit.org/show_bug.cgi?id=11217
285         Cleanup svg coding style
286
287         Cleanup coding style in svg structure classes.
288
289         * ksvg2/svg/SVGDefsElement.cpp:
290         (WebCore::SVGDefsElement::SVGDefsElement):
291         * ksvg2/svg/SVGDefsElement.h:
292         * ksvg2/svg/SVGDescElement.cpp:
293         (WebCore::SVGDescElement::SVGDescElement):
294         * ksvg2/svg/SVGDescElement.h:
295         * ksvg2/svg/SVGDocument.cpp:
296         * ksvg2/svg/SVGDocument.h:
297         * ksvg2/svg/SVGElementInstance.cpp:
298         (WebCore::SVGElementInstance::SVGElementInstance):
299         (WebCore::SVGElementInstance::correspondingElement):
300         (WebCore::SVGElementInstance::correspondingUseElement):
301         (WebCore::SVGElementInstance::parentNode):
302         (WebCore::SVGElementInstance::childNodes):
303         (WebCore::SVGElementInstance::previousSibling):
304         (WebCore::SVGElementInstance::nextSibling):
305         (WebCore::SVGElementInstance::firstChild):
306         (WebCore::SVGElementInstance::lastChild):
307         * ksvg2/svg/SVGElementInstance.h:
308         * ksvg2/svg/SVGElementInstanceList.cpp:
309         * ksvg2/svg/SVGElementInstanceList.h:
310         * ksvg2/svg/SVGGElement.cpp:
311         (WebCore::SVGGElement::SVGGElement):
312         (WebCore::SVGGElement::parseMappedAttribute):
313         (WebCore::SVGDummyElement::SVGDummyElement):
314         * ksvg2/svg/SVGGElement.h:
315         (WebCore::SVGGElement::rendererIsNeeded):
316         * ksvg2/svg/SVGImageElement.cpp:
317         (WebCore::SVGImageElement::createRenderer):
318         * ksvg2/svg/SVGImageElement.h:
319         * ksvg2/svg/SVGSVGElement.cpp:
320         (WebCore::SVGSVGElement::SVGSVGElement):
321         (WebCore::SVGSVGElement::pixelUnitToMillimeterX):
322         (WebCore::SVGSVGElement::pixelUnitToMillimeterY):
323         (WebCore::SVGSVGElement::currentScale):
324         (WebCore::SVGSVGElement::setCurrentScale):
325         (WebCore::SVGSVGElement::currentTranslate):
326         (WebCore::SVGSVGElement::parseMappedAttribute):
327         (WebCore::SVGSVGElement::suspendRedraw):
328         (WebCore::SVGSVGElement::unsuspendRedraw):
329         (WebCore::SVGSVGElement::unsuspendRedrawAll):
330         (WebCore::SVGSVGElement::forceRedraw):
331         (WebCore::SVGSVGElement::getIntersectionList):
332         (WebCore::SVGSVGElement::getEnclosureList):
333         (WebCore::SVGSVGElement::checkIntersection):
334         (WebCore::SVGSVGElement::checkEnclosure):
335         (WebCore::SVGSVGElement::deselectAll):
336         (WebCore::SVGSVGElement::createSVGLength):
337         (WebCore::SVGSVGElement::createSVGAngle):
338         (WebCore::SVGSVGElement::createSVGMatrix):
339         (WebCore::SVGSVGElement::createSVGTransform):
340         (WebCore::SVGSVGElement::createSVGTransformFromMatrix):
341         (WebCore::SVGSVGElement::getCTM):
342         (WebCore::SVGSVGElement::getScreenCTM):
343         (WebCore::SVGSVGElement::setCurrentTime):
344         * ksvg2/svg/SVGSVGElement.h:
345         (WebCore::SVGSVGElement::rendererIsNeeded):
346         * ksvg2/svg/SVGSwitchElement.cpp:
347         (WebCore::SVGSwitchElement::SVGSwitchElement):
348         (WebCore::SVGSwitchElement::childShouldCreateRenderer):
349         * ksvg2/svg/SVGSwitchElement.h:
350         (WebCore::SVGSwitchElement::rendererIsNeeded):
351         * ksvg2/svg/SVGSymbolElement.cpp:
352         (WebCore::SVGSymbolElement::SVGSymbolElement):
353         (WebCore::SVGSymbolElement::parseMappedAttribute):
354         * ksvg2/svg/SVGSymbolElement.h:
355         (WebCore::SVGSymbolElement::shouldAttachChild):
356         * ksvg2/svg/SVGTitleElement.cpp:
357         (WebCore::SVGTitleElement::SVGTitleElement):
358         * ksvg2/svg/SVGTitleElement.h:
359         * ksvg2/svg/SVGUseElement.cpp:
360         (WebCore::SVGUseElement::parseMappedAttribute):
361         (WebCore::SVGUseElement::closeRenderer):
362         * ksvg2/svg/SVGUseElement.h:
363         (WebCore::SVGUseElement::rendererIsNeeded):
364
365 2006-10-12  Adele Peterson  <adele@apple.com>
366
367         Reviewed by Anders.
368
369         - Fix for http://bugs.webkit.org/show_bug.cgi?id=11172
370           REGRESSION (NativeListBox): OPTION text paints over the edge of the select element at http://jobs.apple.com/
371         
372          Test: fast/forms/listbox-width-change.html
373
374         * rendering/RenderListBox.cpp: (WebCore::RenderListBox::updateFromElement):
375           When the options change, call setNeedsLayoutAndMinMaxRecalc.
376
377 2006-10-12  Maciej Stachowiak  <mjs@apple.com>
378
379         Reviewed by Oliver.
380
381         - moved a bunch of WebFrameBridge code down to WebCoreFrameBridge, now that it no longer has any WebKit dependencies
382
383         * WebCore.xcodeproj/project.pbxproj:
384         * bridge/mac/WebCoreFrameBridge.h:
385         * bridge/mac/WebCoreFrameBridge.mm:
386         (stringByCollapsingNonPrintingCharacters):
387         (-[WebCoreFrameBridge setTitle:]):
388         (-[WebCoreFrameBridge didFirstLayout]):
389         (-[WebCoreFrameBridge notifyIconChanged:]):
390         (-[WebCoreFrameBridge originalRequestURL]):
391         (-[WebCoreFrameBridge isLoadTypeReload]):
392         (-[WebCoreFrameBridge frameDetached]):
393         (-[WebCoreFrameBridge tokenizerProcessedData]):
394         (-[WebCoreFrameBridge receivedData:textEncodingName:]):
395         (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
396         (-[WebCoreFrameBridge objectLoadedFromCacheWithURL:response:data:]):
397         (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
398         (-[WebCoreFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
399         (-[WebCoreFrameBridge reportClientRedirectCancelled:]):
400         (-[WebCoreFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
401         (-[WebCoreFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
402         (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
403         (-[WebCoreFrameBridge incomingReferrer]):
404         (-[WebCoreFrameBridge isReloading]):
405         (-[WebCoreFrameBridge handledOnloadEvents]):
406         (-[WebCoreFrameBridge mainResourceURLResponse]):
407         (-[WebCoreFrameBridge loadEmptyDocumentSynchronously]):
408         * loader/mac/LoaderNSURLExtras.h:
409         * loader/mac/LoaderNSURLRequestExtras.h: Added.
410         * loader/mac/LoaderNSURLRequestExtras.m: Added.
411         (isConditionalRequest):
412         (setHTTPReferrer):
413         * loader/mac/WebFrameLoader.mm:
414         * loader/mac/WebSubresourceLoader.mm:
415
416 2006-10-12  Adele Peterson  <adele@apple.com>
417
418         RS by Geoff.
419
420         Renamed menuListIsDetaching to disconnectMenuList, 
421         uploadControlDetaching to disconnectUploadControl, and fileChooserDetachingSoon to disconnectFileChooser.  
422         These names match similar methods in WebCore a little better.
423
424         * platform/FileChooser.h:
425         * platform/PopupMenu.h: (WebCore::PopupMenu::disconnectMenuList):
426         * platform/mac/FileChooserMac.mm: (-[OpenPanelController disconnectFileChooser]):
427         (WebCore::FileChooser::disconnectUploadControl):
428         * platform/win/TemporaryLinkStubs.cpp: (FileChooser::disconnectUploadControl):
429         * rendering/RenderFileUploadControl.cpp: (WebCore::RenderFileUploadControl::~RenderFileUploadControl):
430         * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::~RenderMenuList):
431
432 2006-10-12  Adele Peterson  <adele@apple.com>
433
434         Reviewed by Maciej.
435
436         WebCore part of fix for <rdar://problem/4450613> need a means to attach user data to any menu that is popuped up in HTML
437
438         Added private delegate method for clients that want access to a PopupMenu's NSMenu.
439
440         * bridge/mac/FrameMac.h:
441         * bridge/mac/FrameMac.mm: (WebCore::FrameMac::willPopupMenu):
442         * bridge/mac/WebCoreFrameBridge.h:
443
444         * platform/mac/PopupMenuMac.mm: (WebCore::PopupMenu::show): Calls willPopupMenu with the NSMenu about to be popped up.
445
446 2006-10-12  Adele Peterson  <adele@apple.com>
447
448         Reviewed by Alice.
449
450         - Fix for <rdar://problem/4707372> 
451           After timers fix, crash in -[NSMenu performActionForItemAtIndex:] after moving/detroying active popup menu
452
453         * platform/PopupMenu.h: (WebCore::PopupMenu::menuListIsDetaching): Added. Zeros out the pointer to the menu list.
454         * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::~RenderMenuList): Calls menuListIsDetaching.
455         * platform/mac/PopupMenuMac.mm: (WebCore::PopupMenu::show): Added a RefPtr to protect the PopupMenu while the NSMenu is up,
456           in case the RenderMenuList goes away.  Also, checks the pointer to the menu list immediately afterwards.
457
458 2006-10-12  Nikolas Zimmermann  <zimmermann@kde.org>
459
460         Reviewed by Maciej.
461
462         Trying to fix "DRT hangs on certain testcases" like fast/dom/Document/document-reopen.html
463         document.open(); document.write(..); and NO document.close(). On the Qt platform this
464         leaves a HTMLDocument which is still in parsing mode (parsing() always returns true).
465         DRT waits forever, but m_frame->isComplete() is never true due the parsing mode problem.
466
467         Hmpf, this took me nine hours to debug today.
468         Result: Couldn't find the real fix, going for a workaround for now.
469         
470         540 minutes, 1 line of code changed after all -> 0,0019 lines per minute.
471
472         * platform/qt/FrameQt.cpp:
473         (WebCore::FrameQt::handledOnloadEvents): Call endIfNotLoading() manually.
474         * platform/qt/FrameQtClient.cpp:
475         (WebCore::FrameQtClientDefault::receivedData): Use write() again instead of addData().
476
477 2006-10-12  Adam Roben  <aroben@apple.com>
478
479         Reviewed by Adele.
480
481         Move popup menu code out of rendering/ and into platform/.
482         RenderPopupMenu becomes PopupMenu, the
483         RenderPopupMenuMac/RenderPopupMenuWin subclasses and all the associated
484         virtual methods go away, RenderTheme gets to stop worrying about popup
485         menus, PopupMenu becomes ref-counted, and everyone becomes happy.
486
487         * WebCore.vcproj/WebCore/WebCore.vcproj: Move files within project.
488         * WebCore.xcodeproj/project.pbxproj: Ditto.
489         * html/HTMLSelectElement.cpp: Remove unnecessary #include.
490         * platform/PopupMenu.cpp: Moved from rendering/RenderPopupMenu.cpp.
491         Also renamed showPopup()/hidePopup() to show()/hide() to disambiguate
492         from RenderMenuList::showPopup/hidePopup.
493         (WebCore::PopupMenu::create): New static creation method to hand back a
494         PassRefPtr<PopupMenu>.
495         (WebCore::PopupMenu::addItems): This platform-independent method should
496         be called by PopupMenu::populate when the platform-specific
497         implementation is ready to receive the menu items. Fixed an ASSERT
498         while I was at it.
499         * platform/PopupMenu.h: Moved from rendering/RenderPopupMenu.h. No more
500         need for virtual methods.
501         (WebCore::PopupMenu::wasClicked):
502         (WebCore::PopupMenu::setWasClicked):
503         (WebCore::PopupMenu::popupHandle):
504         * platform/mac/PopupMenuMac.mm: Moved from
505         rendering/RenderPopupMenuMac.mm. Much renaming ensues.
506         (WebCore::PopupMenu::PopupMenu):
507         (WebCore::PopupMenu::~PopupMenu):
508         (WebCore::PopupMenu::clear):
509         (WebCore::PopupMenu::populate):
510         (WebCore::PopupMenu::show):
511         (WebCore::PopupMenu::hide):
512         (WebCore::PopupMenu::addSeparator):
513         (WebCore::PopupMenu::addGroupLabel): Since we don't have our own
514         RenderStyle anymore, just pick up the style from our RenderMenuList.
515         (WebCore::PopupMenu::addOption): Ditto.
516         * platform/win/TemporaryLinkStubs.cpp: Rename-fest.
517         (PopupMenu::PopupMenu):
518         (PopupMenu::~PopupMenu):
519         (PopupMenu::clear):
520         (PopupMenu::populate):
521         (PopupMenu::show):
522         (PopupMenu::hide):
523         (PopupMenu::addSeparator):
524         (PopupMenu::addGroupLabel):
525         (PopupMenu::addOption):
526         * rendering/RenderMenuList.cpp:
527         (WebCore::RenderMenuList::~RenderMenuList):
528         (WebCore::RenderMenuList::showPopup): Use nice new simple
529         PopupMenu::create to make the popup.
530         (WebCore::RenderMenuList::hidePopup):
531         * rendering/RenderMenuList.h: Hold a RefPtr<PopupMenu> instead of a
532         RenderPopupMenu*.
533         (WebCore::RenderMenuList::popup):
534         * rendering/RenderPopupMenu.cpp: Removed.
535         * rendering/RenderPopupMenu.h: Removed.
536         * rendering/RenderPopupMenuMac.h: Removed.
537         * rendering/RenderPopupMenuMac.mm: Removed.
538         * rendering/RenderPopupMenuWin.h: Removed.
539         * rendering/RenderTheme.cpp: Get rid of createPopupMenu() method.
540         * rendering/RenderTheme.h: Ditto.
541         * rendering/RenderThemeMac.h: Ditto.
542         * rendering/RenderThemeMac.mm: Ditto.
543         * rendering/RenderThemeWin.cpp: Ditto.
544         * rendering/RenderThemeWin.h: Ditto.
545
546 2006-10-12  Adele Peterson  <adele@apple.com>
547
548         Reviewed by Dave Harrison.
549
550         - Fixed <rdar://problem/4650813> REGRESSION: typing in a textarea in Safari is extremely slow (sample shows focus ring drawing)
551
552         * rendering/RenderObject.cpp: (WebCore::RenderObject::markContainingBlocksForLayout):
553         Make subtree layouts work for textareas as well as text fields.
554
555 2006-10-12  Nikolas Zimmermann  <zimmermann@kde.org>
556
557         Reviewed by MacDome.
558
559         Finally found a way to remove our begin() trickery in FrameQt.
560         The (probably misnamed) Frame::setEncoding() function automatically
561         calls Frame::receivedFirstData() which calls being on the working
562         url, which has been passed to didOpenUrl(). Took me some hours
563         to figure out that the missing charset logic, forced us to do hacks.
564
565         * platform/ResourceLoader.h:
566         * platform/ResourceLoaderInternal.h:
567         * platform/qt/FrameQt.cpp:
568         (WebCore::FrameQt::tokenizerProcessedData):
569         * platform/qt/FrameQt.h:
570         * platform/qt/FrameQtClient.cpp:
571         (WebCore::FrameQtClientDefault::FrameQtClientDefault):
572         (WebCore::FrameQtClientDefault::openURL):
573         (WebCore::FrameQtClientDefault::submitForm):
574         (WebCore::FrameQtClientDefault::receivedData):
575         (WebCore::FrameQtClientDefault::receivedAllData):
576         * platform/qt/FrameQtClient.h:
577         * platform/qt/ResourceLoaderManager.cpp:
578         (WebCore::ResourceLoaderManager::slotData):
579         (WebCore::ResourceLoaderManager::slotMimetype):
580         (WebCore::ResourceLoaderManager::slotResult):
581         (WebCore::ResourceLoaderManager::remove):
582         * platform/qt/ResourceLoaderQt.cpp:
583         (WebCore::ResourceLoader::retrieveCharset):
584         (WebCore::ResourceLoader::extractCharsetFromHeaders):
585
586 2006-10-12  Adam Roben  <aroben@apple.com>
587
588         Reviewed by Hyatt.
589
590         Bandaid-ing a null-dereference crash until a real fix is made.
591
592         * page/FrameView.cpp:
593         (WebCore::FrameView::windowClipRect):
594
595 2006-10-12  Rob Buis  <buis@kde.org>
596
597         Reviewed by Mitz.
598
599         http://bugs.webkit.org/show_bug.cgi?id=11217
600         Cleanup svg coding style
601
602         Cleanup coding style in svg text classes.
603
604         * ksvg2/svg/SVGTRefElement.cpp:
605         (WebCore::SVGTRefElement::SVGTRefElement):
606         (WebCore::SVGTRefElement::updateReferencedText):
607         (WebCore::SVGTRefElement::parseMappedAttribute):
608         (WebCore::SVGTRefElement::childShouldCreateRenderer):
609         (WebCore::SVGTRefElement::createRenderer):
610         * ksvg2/svg/SVGTRefElement.h:
611         (WebCore::SVGTRefElement::rendererIsNeeded):
612         * ksvg2/svg/SVGTSpanElement.cpp:
613         (WebCore::SVGTSpanElement::SVGTSpanElement):
614         (WebCore::SVGTSpanElement::childShouldCreateRenderer):
615         (WebCore::SVGTSpanElement::createRenderer):
616         * ksvg2/svg/SVGTSpanElement.h:
617         (WebCore::SVGTSpanElement::rendererIsNeeded):
618         * ksvg2/svg/SVGTextContentElement.cpp:
619         (WebCore::SVGTextContentElement::SVGTextContentElement):
620         (WebCore::SVGTextContentElement::parseMappedAttribute):
621         * ksvg2/svg/SVGTextContentElement.h:
622         * ksvg2/svg/SVGTextElement.cpp:
623         (WebCore::SVGTextElement::SVGTextElement):
624         (WebCore::SVGTextElement::localMatrix):
625         (WebCore::SVGTextElement::parseMappedAttribute):
626         (WebCore::SVGTextElement::updateLocalTransform):
627         (WebCore::SVGTextElement::nearestViewportElement):
628         (WebCore::SVGTextElement::farthestViewportElement):
629         (WebCore::SVGTextElement::getScreenCTM):
630         (WebCore::SVGTextElement::getCTM):
631         (WebCore::SVGTextElement::createRenderer):
632         (WebCore::SVGTextElement::childShouldCreateRenderer):
633         * ksvg2/svg/SVGTextElement.h:
634         (WebCore::SVGTextElement::getTransformToElement):
635         (WebCore::SVGTextElement::rendererIsNeeded):
636         * ksvg2/svg/SVGTextPositioningElement.cpp:
637         (WebCore::SVGTextPositioningElement::SVGTextPositioningElement):
638         (WebCore::SVGTextPositioningElement::parseMappedAttribute):
639         * ksvg2/svg/SVGTextPositioningElement.h:
640
641 2006-10-12  Nikolas Zimmermann  <zimmermann@kde.org>
642
643         Reviewed by Maciej.
644
645         Specialization of alert() for DumpRenderTree - just log the output, don't show any message box.
646
647         * platform/qt/FrameQt.cpp:
648         (WebCore::FrameQt::runJavaScriptAlert): Move runJavaScriptAlert functionality to FrameQtClientDefault.
649         * platform/qt/FrameQtClient.cpp:
650         (WebCore::FrameQtClientDefault::runJavaScriptAlert):
651         * platform/qt/FrameQtClient.h:
652
653 2006-10-12  Maciej Stachowiak  <mjs@apple.com>
654
655         Reviewed by Eric.
656
657         - move m_responseMIMEType out of ResourceRequest, where it doesn't belong
658
659         * page/FramePrivate.h: Add m_responseMIMEType
660         * page/ResourceRequest.h: Remove m_responseMIMEType
661         * page/Frame.cpp:
662         (WebCore::Frame::setResponseMIMEType): added
663         (WebCore::Frame::responseMIMEType): added
664         (WebCore::Frame::begin): get MIME type from the right place
665         (WebCore::Frame::write): ditto
666         * page/Frame.h:
667         * bindings/js/kjs_window.cpp:
668         (KJS::createNewWindow): updated to use new Frame methods
669         (KJS::WindowFunc::callAsFunction): ditto
670         * bridge/mac/WebCoreFrameBridge.mm:
671         (-[WebCoreFrameBridge openURL:reload:contentType:refresh:lastModified:pageCache:]): ditto
672         (-[WebCoreFrameBridge canProvideDocumentSource]): ditto
673         * loader/PluginDocument.cpp:
674         (WebCore::PluginTokenizer::createDocumentStructure): ditto
675
676 2006-10-12  Maciej Stachowiak  <mjs@apple.com>
677
678         Reviewed by Eric.
679         
680         <rdar://problem/4774321> REGRESSION: "Can't find the server" error page contains unstyled text and missing image
681
682         We really need some way to test loadHTMLString since it keeps breaking!
683         
684         * loader/mac/WebFrameLoader.mm:
685         (-[WebFrameLoader commitProvisionalLoad:]): Set stuff up on the proper data source.
686
687 2006-10-12  Nikolas Zimmermann  <zimmermann@kde.org>
688
689         Reviewed by Eric.
690
691         Fix Qt/Linux build.
692
693         * CMakeLists.txt:
694         * platform/qt/FileChooserQt.cpp:
695         (WebCore::FileChooser::create):
696
697 2006-10-12  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
698
699         Reviewed by Maciej.
700
701         Update Gdk\Linux build for recent changes, based on Qt code
702
703         * platform/gdk/FrameGdk.cpp:
704         (WebCore::FrameGdkClientDefault::FrameGdkClientDefault):
705         (WebCore::FrameGdkClientDefault::~FrameGdkClientDefault):
706         (WebCore::FrameGdkClientDefault::setFrame):
707         (WebCore::FrameGdkClientDefault::openURL):
708         (WebCore::FrameGdkClientDefault::submitForm):
709         (WebCore::FrameGdkClientDefault::receivedResponse):
710         (WebCore::FrameGdkClientDefault::receivedData):
711         (WebCore::FrameGdkClientDefault::receivedAllData):
712         (WebCore::FrameGdk::FrameGdk):
713         (WebCore::FrameGdk::openURL):
714         (WebCore::FrameGdk::submitForm):
715         (WebCore::FrameGdk::urlSelected):
716         * platform/gdk/FrameGdk.h:
717         * platform/gdk/TemporaryLinkStubs.cpp:
718         (FrameGdk::createJavaAppletWidget):
719         (FileChooser::create):
720
721 2006-10-12  Dave Hyatt  <hyatt@apple.com>
722
723         Patch to add more clipping retrieval functionality for widgets.
724        
725         Reviewed by mjs
726
727         * page/Frame.h:
728         Remove windowResizerRect.  This is in the wrong place.
729         
730         * page/FrameView.cpp:
731         (WebCore::FrameView::windowClipRect):
732         (WebCore::FrameView::windowClipRectForLayer):
733         Break out windowClipRect into helper functions that can be called separately (to make
734         it easier for scrollbars in overflow sections and list boxes to get to an enclosing
735         layer and get the right clip.
736         
737         * page/FrameView.h:
738         Add the new windowClipRect helper methods.
739         
740         * platform/ScrollBar.h:
741         Add a new interface to ScrollbarClient so that scrollbars can hand back proper
742         clip rects for themselves depending on how they are used.
743         
744         * platform/ScrollView.h:
745         Stub out methods for talking to a double buffer backing store on Win32.
746         
747         * platform/Widget.h:
748         Add the ability to query for invalidation suppression.
749         
750         * rendering/RenderLayer.cpp:
751         (WebCore::RenderLayer::windowClipRect):
752         (WebCore::RenderLayer::paintOverflowControls):
753         (WebCore::RenderLayer::calculateRects):
754         (WebCore::RenderLayer::childrenClipRect):
755         (WebCore::RenderLayer::selfClipRect):
756         * rendering/RenderLayer.h:
757         Enhance layers so that they can return either their foreground or background
758         document clip rects.  Make sure a layer scrollbar can return a proper clip.
759         
760         * rendering/RenderListBox.cpp:
761         (WebCore::RenderListBox::windowClipRect):
762         * rendering/RenderListBox.h:
763         Make sure a list box scrollbar can return a proper clip.
764         
765         * rendering/RenderObject.cpp:
766         (WebCore::RenderObject::enclosingLayer):
767         * rendering/RenderObject.h:
768         Make enclosingLayer const.
769         
770 2006-10-11  Darin Adler  <darin@apple.com>
771
772         Reviewed by John.
773
774         - some changes to prepare for converting more code to C++
775
776         * bridge/mac/WebCoreFrameBridge.h: Added import of <Cocoa/Cocoa.h> so this header is
777         self-sufficient.
778
779         * bridge/mac/WebCoreViewFactory.h: Added forward declaration of the NSMenu class.
780         Needed since the class is used in this header (for some work I have not landed yet).
781
782         * loader/mac/LoaderNSURLExtras.h:
783         * loader/mac/WebFormDataStream.h:
784         Added extern "C" so this code can be used from C++.
785
786         * loader/mac/LoaderNSURLExtras.m:
787         * loader/mac/WebDataProtocol.mm:
788         * loader/mac/WebDocumentLoader.mm:
789         * loader/mac/WebFormDataStream.m:
790         * loader/mac/WebLoader.mm:
791         * loader/mac/WebMainResourceLoader.mm:
792         * loader/mac/WebNetscapePlugInStreamLoader.mm:
793         * loader/mac/WebPolicyDecider.mm:
794         * loader/mac/WebSubresourceLoader.mm:
795         Added missing includes of config.h.
796
797 2006-10-11  John Sullivan  <sullivan@apple.com>
798         
799         Darin wrote this code; we tested it; I give it the thumbs up.
800         
801         - fixed regression from svn revision 16982 that was generating the wrong Obj-C classes
802
803         The hash table to look up an element class given a QualifiedName was
804         not working at all.
805
806         * dom/QualifiedName.h:
807         (WebCore::QualifiedName::impl):
808         Added. This new accessor method for impl is needed if we want to use
809         a QualifiedName as a hash table key without doing the kind of specialization
810         we do for String. Maybe later we can do the String thing.
811
812         * bindings/objc/DOM.mm:
813         (WebCore::addElementClass):
814         Use QualifiedName.impl instead of the QualifiedName pointer itself.
815         The QualifiedName pointer is *not* unique so almost nothing would be found
816         in this hash table!
817         (WebCore::elementClass):
818         ditto
819         
820 2006-10-11  Adam Roben  <aroben@apple.com>
821
822         Rubberstamped by Anders.
823
824         Clean up FileChooser::create and Icon::newIconForFile.
825
826         * WebCore.xcodeproj/project.pbxproj:
827         * platform/mac/FileChooserMac.mm:
828         (WebCore::FileChooser::create):
829         * platform/mac/IconMac.mm:
830         (WebCore::Icon::newIconForFile):
831
832 2006-10-11  Oliver Hunt  <oliver@apple.com>
833
834         Reviewed by Adam.
835
836         Fix for http://bugs.webkit.org/show_bug.cgi?id=11251
837         Corrects canvas tag to not throw JS exception when drawing
838         zero sized rects, arcs, etc
839
840         * html/CanvasRenderingContext2D.cpp:
841         (WebCore::CanvasRenderingContext2D::arcTo):
842         (WebCore::CanvasRenderingContext2D::arc):
843         (WebCore::CanvasRenderingContext2D::rect):
844         (WebCore::CanvasRenderingContext2D::clearRect):
845         (WebCore::CanvasRenderingContext2D::fillRect):
846         (WebCore::CanvasRenderingContext2D::strokeRect):
847
848 2006-10-11  Rob Buis  <buis@kde.org>
849
850         Reviewed by Mitz.
851
852         http://bugs.webkit.org/show_bug.cgi?id=11221
853         REGRESSION: iExploder crash due to style="cursor: url()"
854
855         Take better care of empty cursor lists.
856
857         Test: fast/css/invalid-cursor-property-crash.html
858
859         * css/cssparser.cpp:
860         (WebCore::CSSParser::parseValue):
861
862 2006-10-11  Adam Roben  <aroben@apple.com>
863
864         Fixing Windows for real this time.
865
866         * platform/win/TemporaryLinkStubs.cpp:
867         (FileChooser::create):
868
869 2006-10-11  Adam Roben  <aroben@apple.com>
870
871         Fix Windows build.
872
873         * platform/win/TemporaryLinkStubs.cpp:
874         (FileChooser::create):
875
876 2006-10-11  Antti Koivisto  <koivisto@iki.fi>
877
878         Reviewed by Hyatt.
879         
880         http://bugs.webkit.org/show_bug.cgi?id=4377
881         
882         Respect css visibility semantics for layers too
883
884         * rendering/RenderContainer.cpp:
885         (WebCore::RenderContainer::removeChildNode):
886         (WebCore::RenderContainer::appendChildNode):
887         (WebCore::RenderContainer::insertChildNode):
888         * rendering/RenderLayer.cpp:
889         (WebCore::RenderLayer::RenderLayer):
890         (WebCore::RenderLayer::updateLayerPositions):
891         (WebCore::RenderLayer::setHasVisibleContent):
892         (WebCore::RenderLayer::dirtyVisibleContentStatus):
893         (WebCore::RenderLayer::childVisibilityChanged):
894         (WebCore::RenderLayer::dirtyVisibleDescendantStatus):
895         (WebCore::RenderLayer::updateVisibilityStatus):
896         (WebCore::RenderLayer::addChild):
897         (WebCore::RenderLayer::removeChild):
898         (WebCore::RenderLayer::updateZOrderLists):
899         (WebCore::RenderLayer::collectLayers):
900         * rendering/RenderLayer.h:
901         (WebCore::RenderLayer::hasVisibleContent):
902         * rendering/RenderObject.cpp:
903         (WebCore::RenderObject::setStyle):
904
905 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
906
907         Reviewed by Oliver.
908
909         - added RetainPtr, smart pointer for refcounted ObjC objects and CFTypes
910
911         * WebCore.xcodeproj/project.pbxproj:
912         * platform/cf/RetainPtr.h: Added.
913         (WTF::):
914         (WTF::RetainPtr::RetainPtr):
915         (WTF::RetainPtr::~RetainPtr):
916         (WTF::RetainPtr::get):
917         (WTF::RetainPtr::operator*):
918         (WTF::RetainPtr::operator->):
919         (WTF::RetainPtr::operator!):
920         (WTF::RetainPtr::operator UnspecifiedBoolType):
921         (WTF::::operator):
922         (WTF::::swap):
923         (WTF::swap):
924         (WTF::operator==):
925         (WTF::operator!=):
926         (WTF::static_pointer_cast):
927         (WTF::const_pointer_cast):
928         (WTF::getPtr):
929         
930         - use it in WidgetMac so it gets tested in at least one place
931         
932         * platform/mac/WidgetMac.mm:
933         (WebCore::Widget::Widget):
934         (WebCore::Widget::~Widget):
935         (WebCore::Widget::setEnabled):
936         (WebCore::Widget::isEnabled):
937         (WebCore::Widget::setCursor):
938         (WebCore::Widget::getView):
939         (WebCore::Widget::setView):
940         (WebCore::Widget::getOuterView):
941
942 2006-10-10  Brady Eidson  <beidson@apple.com>
943
944         Reviewed by Maciej.
945
946         Moved WebFrameLoader from WebFrameBridge into WebCoreFrameBridge
947
948         * bridge/mac/WebCoreFrameBridge.h:
949         * bridge/mac/WebCoreFrameBridge.mm:
950         (-[WebCoreFrameBridge initMainFrameWithPage:]):
951         (-[WebCoreFrameBridge initSubframeWithOwnerElement:]):
952         (-[WebCoreFrameBridge dealloc]):
953         (-[WebCoreFrameBridge close]):
954         (-[WebCoreFrameBridge setFrameLoaderClient:]):
955         (-[WebCoreFrameBridge frameLoader]):
956         * loader/mac/WebFrameLoader.h:
957         * loader/mac/WebFrameLoader.mm:
958         (-[WebFrameLoader initWithFrameBridge:]):
959         (-[WebFrameLoader setFrameLoaderClient:]):
960
961 2006-10-10  Adam Roben  <aroben@apple.com>
962
963         Reviewed by Oliver.
964
965         Make FileChooser ref-counted.
966
967         * platform/FileChooser.h:
968         * platform/mac/FileChooserMac.mm:
969         (WebCore::FileChooser::create):
970         * rendering/RenderFileUploadControl.cpp:
971         (WebCore::RenderFileUploadControl::RenderFileUploadControl):
972         (WebCore::RenderFileUploadControl::~RenderFileUploadControl):
973         * rendering/RenderFileUploadControl.h:
974
975 2006-10-10  Sam Weinig  <sam.weinig@gmail.com>
976
977         Reviewed by Tim H.
978
979         Patch for http://bugs.webkit.org/show_bug.cgi?id=11248
980         Even More auto-generated Objective-C DOM bindings changes
981
982         - Auto-generate DOMSVGPathElement.
983
984         - Auto-generate the internal interfaces even for classes that have
985           custom internal implementations.  Change IDL property from ObjCNoInternal
986           to ObjCCustomInternalImpl to indicate the change.
987
988         - Add SVG classes to DOMNode and DOMEvent internal interfaces.
989
990         - Add isSVGZoomEvent() method to Event class to match other Event subclasses
991           and make DOM binding possible.
992
993         - Assorted cleanups.
994
995         * DerivedSources.make:
996         * WebCore.xcodeproj/project.pbxproj:
997         * bindings/objc/DOM.mm:
998         (WebCore::addElementClass):
999         (WebCore::createElementClassMap):
1000         (WebCore::elementClass):
1001         (-[DOMNode description]):
1002         (+[DOMNode _nodeWith:WebCore::]):
1003         (-[DOMNode addEventListener:listener:useCapture:]):
1004         (-[DOMNode removeEventListener:listener:useCapture:]):
1005         (-[DOMElement _NPObject]):
1006         (WebCore::ObjCEventListener::handleEvent):
1007         * bindings/objc/DOMEvents.mm:
1008         (+[DOMEvent _eventWith:WebCore::]):
1009         * bindings/objc/DOMInternal.h:
1010         * bindings/objc/DOMRGBColor.mm:
1011         (-[DOMRGBColor WebCore::]):
1012         * bindings/objc/DOMSVGPathSegInternal.h: Removed.
1013         * bindings/scripts/CodeGeneratorObjC.pm:
1014         * css/CSSRule.idl:
1015         * css/CSSValue.idl:
1016         * css/StyleSheet.idl:
1017         * dom/Event.cpp:
1018         (WebCore::Event::isSVGZoomEvent):
1019         * dom/Event.h:
1020         * dom/Event.idl:
1021         * dom/Node.idl:
1022         * ksvg2/events/SVGZoomEvent.cpp:
1023         (WebCore::SVGZoomEvent::isSVGZoomEvent):
1024         * ksvg2/events/SVGZoomEvent.h:
1025         * ksvg2/svg/SVGAnimatedAngle.idl:
1026         * ksvg2/svg/SVGCircleElement.idl:
1027         * ksvg2/svg/SVGClipPathElement.idl:
1028         * ksvg2/svg/SVGPathElement.idl:
1029         * ksvg2/svg/SVGPathSeg.idl:
1030
1031 2006-10-10  Oliver Hunt  <oliver@apple.com>
1032
1033         rubber stamped by Anders.
1034
1035         More buildbot bustage
1036
1037         * kcanvas/SVGInlineFlowBox.cpp:
1038         (WebCore::placeBoxesVerticallyWithAbsBaseline):
1039
1040 2006-10-10  Oliver Hunt  <oliver@apple.com>
1041
1042         Reviewed by Anders 
1043
1044         Unbreak build bots
1045
1046         * dom/Text.cpp:
1047         * kcanvas/RenderSVGText.cpp:
1048         (WebCore::RenderSVGText::layout):
1049         * kcanvas/SVGInlineFlowBox.cpp:
1050         (WebCore::placePositionedBoxesHorizontally):
1051         (WebCore::placeBoxesVerticallyWithAbsBaseline):
1052
1053 2006-10-10  Oliver Hunt  <oliver@apple.com>
1054
1055         Reviewed by hyatt.
1056
1057         Fixes bugs #6423, #6559, #10380 and #10839 
1058
1059         * WebCore.xcodeproj/project.pbxproj:
1060         * css/svg.css:
1061         * dom/Text.cpp:
1062         (WebCore::Text::createRenderer):
1063         * kcanvas/RenderSVGInline.cpp: Added.
1064         (WebCore::RenderSVGInline::RenderSVGInline):
1065         (WebCore::RenderSVGInline::createInlineBox):
1066         * kcanvas/RenderSVGInline.h: Added.
1067         (WebCore::RenderSVGInline::renderName):
1068         (WebCore::RenderSVGInline::requiresLayer):
1069         * kcanvas/RenderSVGInlineText.cpp: Added.
1070         (WebCore::RenderSVGInlineText::RenderSVGInlineText):
1071         (WebCore::RenderSVGInlineText::absoluteRects):
1072         (WebCore::RenderSVGInlineText::selectionRect):
1073         * kcanvas/RenderSVGInlineText.h: Added.
1074         (WebCore::RenderSVGInlineText::renderName):
1075         (WebCore::RenderSVGInlineText::requiresLayer):
1076         * kcanvas/RenderSVGTSpan.cpp: Added.
1077         (WebCore::RenderSVGTSpan::RenderSVGTSpan):
1078         (WebCore::RenderSVGTSpan::absoluteRects):
1079         * kcanvas/RenderSVGTSpan.h: Added.
1080         (WebCore::RenderSVGTSpan::renderName):
1081         * kcanvas/RenderSVGText.cpp:
1082         (WebCore::RenderSVGText::RenderSVGText):
1083         (WebCore::RenderSVGText::computeAbsoluteRepaintRect):
1084         (WebCore::RenderSVGText::layout):
1085         (WebCore::RenderSVGText::createInlineBox):
1086         (WebCore::RenderSVGText::nodeAtPoint):
1087         (WebCore::RenderSVGText::absoluteRects):
1088         (WebCore::RenderSVGText::paint):
1089         (WebCore::RenderSVGText::relativeBBox):
1090         * kcanvas/RenderSVGText.h:
1091         (WebCore::RenderSVGText::renderName):
1092         * kcanvas/SVGInlineFlowBox.cpp: Added.
1093         (WebCore::SVGInlineFlowBox::paint):
1094         (WebCore::SVGInlineFlowBox::placeBoxesHorizontally):
1095         (WebCore::SVGInlineFlowBox::verticallyAlignBoxes):
1096         (WebCore::paintSVGInlineFlow):
1097         (WebCore::translateBox):
1098         (WebCore::placePositionedBoxesHorizontally):
1099         (WebCore::placeSVGFlowHorizontally):
1100         (WebCore::placeBoxesVerticallyWithAbsBaseline):
1101         (WebCore::placeSVGFlowVertically):
1102         * kcanvas/SVGInlineFlowBox.h: Added.
1103         (WebCore::SVGInlineFlowBox::SVGInlineFlowBox):
1104         * kcanvas/SVGRootInlineBox.cpp: Added.
1105         (WebCore::SVGRootInlineBox::paint):
1106         (WebCore::SVGRootInlineBox::placeBoxesHorizontally):
1107         (WebCore::SVGRootInlineBox::verticallyAlignBoxes):
1108         * kcanvas/SVGRootInlineBox.h: Added.
1109         (WebCore::SVGRootInlineBox::SVGRootInlineBox):
1110         * ksvg2/svg/SVGTRefElement.cpp:
1111         (SVGTRefElement::createRenderer):
1112         * ksvg2/svg/SVGTSpanElement.cpp:
1113         (SVGTSpanElement::createRenderer):
1114         * rendering/InlineFlowBox.h:
1115
1116 2006-10-10  Adam Roben  <aroben@apple.com>
1117
1118         Reviewed by Adele.
1119
1120         Improve popup menu behavior.
1121
1122         * html/HTMLSelectElement.cpp:
1123         (WebCore::HTMLSelectElement::HTMLSelectElement): Cache
1124         m_lastOnChangeIndex so we know when to fire onChange.
1125         (WebCore::HTMLSelectElement::setSelectedIndex): Added parameter to
1126         specify whether we should fire onChange.
1127         (WebCore::HTMLSelectElement::dispatchBlurEvent): Fire onChange on blur.
1128         (WebCore::HTMLSelectElement::menuListDefaultEventHandler): Fire
1129         onChange when using the Enter key to change the selection.
1130         * html/HTMLSelectElement.h:
1131         * rendering/RenderMenuList.cpp:
1132         (WebCore::RenderMenuList::updateFromElement): Extract setText logic
1133         into its own method.
1134         (WebCore::RenderMenuList::setTextFromOption): New method.
1135         (WebCore::RenderMenuList::valueChanged): Let setSelectedIndex call
1136         onChange instead of calling it directly here.
1137         * rendering/RenderMenuList.h:
1138
1139 2006-10-10  Adele Peterson  <adele@apple.com>
1140
1141         Reviewed by Beth. 
1142
1143
1144         - Fix for <rdar://problem/4707489> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active <input type=text>
1145           and <rdar://problem/4707519> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active textarea
1146
1147         Moved autoscroll code to the Frame class
1148
1149         * bridge/mac/FrameMac.h: Moved _mouseDownMayStartDrag and _mouseDownMayStartAutoscroll flags to the frame.
1150         * bridge/mac/FrameMac.mm: Use new getters and setters for drag and autoscroll flags.  Moved autoscroll code to Frame::handleMouseMoveEvent.
1151         (WebCore::FrameMac::FrameMac):
1152         (WebCore::FrameMac::handleMousePressEvent):
1153         (WebCore::FrameMac::eventMayStartDrag):
1154         (WebCore::FrameMac::handleMouseMoveEvent):
1155         (WebCore::FrameMac::mouseDown):
1156
1157         * bridge/mac/WebCoreFrameBridge.h: Removed handleAutoscrollForMouseDragged, which called over the bridge for AppKit to do autoscroll for us.
1158         Now we scroll our views in WebCore.
1159
1160         * page/Frame.cpp:
1161         (WebCore::Frame::handleMousePressEvent): Initialize the mouseDownMayStartAutoscroll flag.
1162         (WebCore::Frame::handleMouseMoveEvent): Now kicks off autoscroll if appropriate.  Moved from FrameMac.
1163         (WebCore::Frame::updateSelectionForMouseDragOverPosition): Factored code out from handleMouseMoveEvent so we can update the selection from autoscroll too.
1164         (WebCore::Frame::mouseDownMayStartAutoscroll): Added.
1165         (WebCore::Frame::setMouseDownMayStartAutoscroll): Added.
1166         (WebCore::Frame::mouseDownMayStartDrag): Added.
1167         (WebCore::Frame::setMouseDownMayStartDrag): Added.
1168         (WebCore::Frame::autoscrollRenderer): Added
1169         (WebCore::Frame::setAutoscrollRenderer): Added.
1170         (WebCore::Frame::handleAutoscroll): Updated to use autoscrollRenderer getter and setter.
1171         (WebCore::Frame::autoscrollTimerFired): ditto.
1172         (WebCore::Frame::stopAutoscrollTimer): ditto. 
1173         * page/Frame.h: Made autoscrollRenderer and stopAutoscrollTimer public, so the renderer being autoscrolled can kill the timer when it dies.
1174
1175         * page/FramePrivate.h:
1176         (WebCore::FramePrivate::FramePrivate): Added mouseDownMayStartDrag and mouseDownMayStartAutoscroll flags.  Moved from FrameMac.
1177
1178         * page/FrameView.cpp: Store the current mouse position in window coordinates.  The callers can convert to their own coordinate space.
1179         (WebCore::FrameView::handleMousePressEvent):
1180         (WebCore::FrameView::handleMouseDoubleClickEvent):
1181         (WebCore::FrameView::handleMouseMoveEvent):
1182         (WebCore::FrameView::handleMouseReleaseEvent):
1183
1184         * rendering/RenderLayer.cpp:
1185         (WebCore::RenderLayer::autoscroll): Rewrote this to scroll recursively, and to scroll based on the mouse position (not the selection).  
1186          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.
1187
1188         * rendering/RenderListBox.cpp:
1189         (WebCore::RenderListBox::autoscroll): Convert the mouse coordinates to the right space.
1190
1191         * rendering/RenderObject.cpp:
1192         (WebCore::RenderObject::shouldAutoscroll): Also return true if the renderer is a root (so we know to autoscroll views too)
1193         (WebCore::RenderObject::destroy): If this renderer is being autoscrolled, stop the frame's autoscroll timer.
1194
1195 2006-10-10  Darin Adler  <darin@apple.com>
1196
1197         Rubber stamped by Maciej.
1198
1199         - convert many of the loader source files to Objective-C++ to prepare
1200           to convert some of them to C++
1201
1202         * WebCore.xcodeproj/project.pbxproj:
1203         * loader/mac/WebDataProtocol.m: Removed.
1204         * loader/mac/WebDocumentLoader.m: Removed.
1205         * loader/mac/WebFormState.m: Removed.
1206         * loader/mac/WebFrameLoader.m: Removed.
1207         * loader/mac/WebLoader.m: Removed.
1208         * loader/mac/WebMainResourceLoader.m: Removed.
1209         * loader/mac/WebNetscapePlugInStreamLoader.m: Removed.
1210         * loader/mac/WebPolicyDecider.m: Removed.
1211         * loader/mac/WebSubresourceLoader.m: Removed.
1212         * loader/mac/WebDataProtocol.mm: Added.
1213         * loader/mac/WebDocumentLoader.mm: Added.
1214         * loader/mac/WebFormState.mm: Added.
1215         * loader/mac/WebFrameLoader.mm: Added.
1216         * loader/mac/WebLoader.mm: Added.
1217         * loader/mac/WebMainResourceLoader.mm: Added.
1218         * loader/mac/WebNetscapePlugInStreamLoader.mm: Added.
1219         * loader/mac/WebPolicyDecider.mm: Added.
1220         * loader/mac/WebSubresourceLoader.mm: Added.
1221
1222 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
1223
1224         Reviewed by Mitz.
1225
1226         - fixed REGRESSION (r16960): crash on navigating to site
1227         http://www.zoominfo.com/Search/CompanyDetail.aspx?CompanyID=62948057&cs=QGDwILZIE
1228         
1229         * loader/mac/WebFrameLoader.m:
1230         (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
1231         Add back a mistakenly removed retain.
1232
1233 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
1234
1235         Not reviewed, build fix.
1236
1237         - fixed release build
1238
1239         * WebCore.xcodeproj/project.pbxproj:
1240
1241 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
1242
1243         Rubber stamped by Eric.
1244
1245         - moved a big honkin' pile of code over from WebKit; made minimal needed changes to compile
1246
1247         * WebCore.exp:
1248         * WebCore.xcodeproj/project.pbxproj:
1249         * loader/mac/LoaderNSURLExtras.m: Added.
1250         * loader/mac/WebDataProtocol.m: Added.
1251         * loader/mac/WebDocumentLoader.m: Added.
1252         * loader/mac/WebFormDataStream.m: Added.
1253         * loader/mac/WebFrameLoader.m: Added.
1254         * loader/mac/WebLoader.m: Added.
1255         (-[NSURLProtocol didReceiveResponse:]):
1256         (-[NSURLProtocol didReceiveData:lengthReceived:allAtOnce:]):
1257         * loader/mac/WebMainResourceLoader.m: Added.
1258         (-[WebMainResourceLoader didReceiveResponse:]):
1259         * loader/mac/WebPolicyDecider.m: Added.
1260         * loader/mac/WebSubresourceLoader.h: Added.
1261         * loader/mac/WebSubresourceLoader.m: Added.
1262
1263 2006-10-10  Maciej Stachowiak  <mjs@apple.com>
1264
1265         Reviewed by Oliver (sort of?)
1266
1267         - WebCore part of moving down NSURL extras
1268
1269         * WebCore.exp:
1270         * platform/mac/WebCoreSystemInterface.h:
1271         * platform/mac/WebCoreSystemInterface.mm:
1272
1273 2006-10-09  Rob Buis  <buis@kde.org>
1274
1275         Reviewed by Mitz.
1276
1277         http://bugs.webkit.org/show_bug.cgi?id=11217
1278         Cleanup svg coding style
1279
1280         Cleanup coding style in svg animation classes.
1281
1282         * ksvg2/svg/SVGAnimateColorElement.cpp:
1283         (WebCore::SVGAnimateColorElement::handleTimerEvent):
1284         * ksvg2/svg/SVGAnimateElement.cpp:
1285         (WebCore::SVGAnimateElement::SVGAnimateElement):
1286         (WebCore::SVGAnimateElement::handleTimerEvent):
1287         * ksvg2/svg/SVGAnimateTransformElement.cpp:
1288         (WebCore::SVGAnimateTransformElement::SVGAnimateTransformElement):
1289         (WebCore::SVGAnimateTransformElement::parseMappedAttribute):
1290         (WebCore::SVGAnimateTransformElement::handleTimerEvent):
1291         (WebCore::SVGAnimateTransformElement::parseTransformValue):
1292         (WebCore::SVGAnimateTransformElement::calculateRotationFromMatrix):
1293         (WebCore::SVGAnimateTransformElement::initialMatrix):
1294         (WebCore::SVGAnimateTransformElement::transformMatrix):
1295         * ksvg2/svg/SVGAnimateTransformElement.h:
1296         * ksvg2/svg/SVGAnimatedPathData.cpp:
1297         * ksvg2/svg/SVGAnimatedPathData.h:
1298         * ksvg2/svg/SVGAnimatedPoints.cpp:
1299         * ksvg2/svg/SVGAnimatedPoints.h:
1300         * ksvg2/svg/SVGAnimationElement.cpp:
1301         (WebCore::SVGAnimationElement::targetElement):
1302
1303 2006-10-09  Maciej Stachowiak  <mjs@apple.com>
1304
1305         Reviewed by Oliver.
1306
1307         - added isMainFrame and frameLoader to WebCoreFrameBridge for ease of future code motion
1308
1309         * bridge/mac/WebCoreFrameBridge.h:
1310         * bridge/mac/WebCoreFrameBridge.mm:
1311         (-[WebCoreFrameBridge isMainFrame]):
1312
1313 2006-10-09  Adam Roben  <aroben@apple.com>
1314
1315         Backing out accidental commit.
1316
1317         * page/Frame.cpp:
1318         (WebCore::Frame::finishedParsing):
1319
1320 2006-10-09  Adam Roben  <aroben@apple.com>
1321
1322         Reviewed by Darin.
1323
1324         Add ASSERTs to RefPtr to make sure we don't ref within a destructor, as
1325         this could cause recursive calls to the destructor. RefPtr now also
1326         inherits from Noncopyable.
1327
1328         * dom/NodeFilter.h:
1329         * dom/Traversal.h:
1330         * page/DOMWindow.h:
1331         * page/Frame.cpp:
1332         (WebCore::Frame::finishedParsing):
1333         * page/Frame.h:
1334         * page/Plugin.h:
1335         * platform/FontFallbackList.h:
1336         * platform/Icon.h:
1337         * platform/Shared.h:
1338         (WebCore::Shared::Shared):
1339         (WebCore::Shared::ref):
1340         (WebCore::Shared::deref):
1341         (WebCore::Shared::hasOneRef):
1342         (WebCore::Shared::refCount):
1343         * platform/StringImpl.h:
1344
1345 2006-10-09  Oliver Hunt <ohunt@apple.com>
1346
1347         Reviewed by Anders.
1348
1349         Correcting ifdef's
1350
1351         * html/CanvasGradient.cpp:
1352         (WebCore::CanvasGradient::CanvasGradient):
1353         (WebCore::CanvasGradient::~CanvasGradient):
1354         (WebCore::CanvasGradient::addColorStop):
1355         * html/CanvasGradient.h:
1356         * html/CanvasPattern.cpp:
1357         (WebCore::CanvasPattern::CanvasPattern):
1358         (WebCore::CanvasPattern::~CanvasPattern):
1359         * html/CanvasPattern.h:
1360         * html/CanvasRenderingContext2D.cpp:
1361         (WebCore::CanvasRenderingContext2D::fill):
1362         (WebCore::CanvasRenderingContext2D::stroke):
1363         (WebCore::CanvasRenderingContext2D::fillRect):
1364         (WebCore::CanvasRenderingContext2D::setShadow):
1365         (WebCore::CanvasRenderingContext2D::applyShadow):
1366         (WebCore::CanvasRenderingContext2D::drawImage):
1367         (WebCore::CanvasRenderingContext2D::createPattern):
1368         (WebCore::CanvasRenderingContext2D::applyStrokePattern):
1369         (WebCore::CanvasRenderingContext2D::applyFillPattern):
1370         * html/CanvasRenderingContext2D.h:
1371         * html/CanvasStyle.cpp:
1372         (WebCore::CanvasStyle::applyStrokeColor):
1373         (WebCore::CanvasStyle::applyFillColor):
1374         * html/HTMLCanvasElement.cpp:
1375         (WebCore::HTMLCanvasElement::paint):
1376         (WebCore::HTMLCanvasElement::createDrawingContext):
1377         * html/HTMLCanvasElement.h:
1378
1379 2006-10-09  Adam Roben  <aroben@apple.com>
1380
1381         Reviewed by Maciej.
1382
1383         Fix a possible recursive destructor call.
1384
1385         * page/Frame.cpp:
1386         (WebCore::Frame::~Frame): Add a FIXME about cleaning up the destructor.
1387         (WebCore::Frame::finishedParsing): Don't create a protector RefPtr if
1388         we're already being destroyed.
1389
1390 2006-10-09  Sam Weinig  <sam.weinig@gmail.com>
1391
1392         Reviewed by Tim H.
1393
1394         Patch for http://bugs.webkit.org/show_bug.cgi?id=11234
1395         Assorted Objective-C bindings changes
1396
1397         - Auto-generate DOMSVGPathSegArcAbs, DOMSVGPathSegArcRel, DOMSVGPathSegClosePath, 
1398           DOMSVGPathSegCurvetoCubicAbs, DOMSVGPathSegCurvetoCubicRel, 
1399           DOMSVGPathSegCurvetoCubicSmoothAbs, DOMSVGPathSegCurvetoCubicSmoothRel, 
1400           DOMSVGPathSegCurvetoQuadraticAbs, DOMSVGPathSegCurvetoQuadraticRel, 
1401           DOMSVGPathSegCurvetoQuadraticSmoothAbs, DOMSVGPathSegCurvetoQuadraticSmoothRel, 
1402           DOMSVGPathSegLinetoAbs, DOMSVGPathSegLinetoHorizontalAbs, 
1403           DOMSVGPathSegLinetoHorizontalRel, DOMSVGPathSegLinetoRel, 
1404           DOMSVGPathSegLinetoVerticalAbs, DOMSVGPathSegLinetoVerticalRel, 
1405           DOMSVGPathSegMovetoAbs, DOMSVGPathSegMovetoRel and DOMSVGSVGElement.
1406
1407         - Auto-generate absoluteImageURL method for DOMHTMLInputElement and
1408           DOMHTMLObjectElement.
1409
1410         - Auto-generate the internal methods for classes with ivars (notably 
1411           DOMNodeIterator and DOMTreeWalker)
1412
1413         - Put more methods in the WebCore namespace and factor out the  
1414           displayString method into DOMInternal.h as done by Darin in his 
1415           patch for http://bugs.webkit.org/show_bug.cgi?id=11219.
1416
1417         * DerivedSources.make:
1418         * WebCore.xcodeproj/project.pbxproj:
1419         * bindings/objc/DOM.mm:
1420         (-[DOMNode _initWithNode:WebCore::]):
1421         (+[DOMNode _nodeWith:WebCore::]):
1422         (-[DOMNode addEventListener:listener:useCapture:]):
1423         (-[DOMNode removeEventListener:listener:useCapture:]):
1424         (-[DOMNode dispatchEvent:]):
1425         (-[DOMElement _imageTIFFRepresentation]):
1426         (-[DOMNodeFilter _initWithNodeFilter:WebCore::]):
1427         (+[DOMNodeFilter _nodeFilterWith:WebCore::]):
1428         (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]):
1429         (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]):
1430         * bindings/objc/DOMCSS.mm:
1431         (-[DOMStyleSheet _initWithStyleSheet:WebCore::]):
1432         (+[DOMStyleSheet _styleSheetWith:WebCore::]):
1433         (-[DOMCSSRule _initWithCSSRule:WebCore::]):
1434         (+[DOMCSSRule _CSSRuleWith:WebCore::]):
1435         (-[DOMCSSValue _initWithCSSValue:WebCore::]):
1436         (+[DOMCSSValue _CSSValueWith:WebCore::]):
1437         * bindings/objc/DOMEvents.mm:
1438         (-[DOMEvent _initWithEvent:WebCore::]):
1439         (+[DOMEvent _eventWith:WebCore::]):
1440         * bindings/objc/DOMExtensions.h:
1441         * bindings/objc/DOMHTML.mm:
1442         (-[DOMHTMLInputElement _replaceCharactersInRange:withString:selectingFromIndex:]):
1443         * bindings/objc/DOMInternal.h:
1444         (-[DOMNodeFilter WebCore::]):
1445         * bindings/objc/DOMInternal.mm:
1446         (-[WebScriptObject _init]):
1447         (-[WebScriptObject _initializeScriptDOMNodeImp]):
1448         (WebCore::displayString):
1449         * bindings/objc/DOMObject.mm:
1450         (-[DOMObject dealloc]):
1451         (-[DOMObject finalize]):
1452         * bindings/objc/DOMRGBColor.mm:
1453         (-[DOMRGBColor dealloc]):
1454         (-[DOMRGBColor finalize]):
1455         (-[DOMRGBColor color]):
1456         (-[DOMRGBColor _initWithRGB:WebCore::]):
1457         (+[DOMRGBColor _RGBColorWithRGB:WebCore::]):
1458         * bindings/objc/DOMSVG.h:
1459         * bindings/objc/DOMSVGPathSegInternal.h: Added.
1460         * bindings/objc/DOMSVGPathSegInternal.mm: Added.
1461         (-[DOMSVGPathSeg WebCore::]):
1462         (-[DOMSVGPathSeg _initWithSVGPathSeg:WebCore::]):
1463         (+[DOMSVGPathSeg _SVGPathSegWith:WebCore::]):
1464         * bindings/objc/DOMXPath.mm:
1465         (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:WebCore::]):
1466         (+[DOMNativeXPathNSResolver _xpathNSResolverWith:WebCore::]):
1467         * bindings/objc/PublicDOMInterfaces.h:
1468         * bindings/scripts/CodeGeneratorObjC.pm:
1469         * dom/NodeIterator.idl:
1470         * dom/TreeWalker.idl:
1471         * html/HTMLInputElement.idl:
1472         * html/HTMLObjectElement.idl:
1473         * ksvg2/svg/SVGDocument.idl:
1474         * ksvg2/svg/SVGElement.idl:
1475         * ksvg2/svg/SVGPathSeg.idl:
1476         * ksvg2/svg/SVGPathSegArcAbs.idl:
1477         * ksvg2/svg/SVGPathSegArcRel.idl:
1478         * ksvg2/svg/SVGPathSegClosePath.idl:
1479         * ksvg2/svg/SVGPathSegCurvetoCubicAbs.idl:
1480         * ksvg2/svg/SVGPathSegCurvetoCubicRel.idl:
1481         * ksvg2/svg/SVGPathSegCurvetoCubicSmoothAbs.idl:
1482         * ksvg2/svg/SVGPathSegCurvetoCubicSmoothRel.idl:
1483         * ksvg2/svg/SVGPathSegCurvetoQuadraticAbs.idl:
1484         * ksvg2/svg/SVGPathSegCurvetoQuadraticRel.idl:
1485         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl:
1486         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothRel.idl:
1487         * ksvg2/svg/SVGPathSegLinetoAbs.idl:
1488         * ksvg2/svg/SVGPathSegLinetoHorizontalAbs.idl:
1489         * ksvg2/svg/SVGPathSegLinetoHorizontalRel.idl:
1490         * ksvg2/svg/SVGPathSegLinetoRel.idl:
1491         * ksvg2/svg/SVGPathSegLinetoVerticalAbs.idl:
1492         * ksvg2/svg/SVGPathSegLinetoVerticalRel.idl:
1493         * ksvg2/svg/SVGPathSegMovetoAbs.idl:
1494         * ksvg2/svg/SVGPathSegMovetoRel.idl:
1495
1496 2006-10-09  Don Gibson  <dgibson77@gmail.com>
1497
1498         Unreviewed build fix.
1499
1500         Fix windows build bustage.
1501
1502         * platform/win/TemporaryLinkStubs.cpp:
1503
1504 2006-10-09  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
1505
1506         Reviewed by Geoff.
1507
1508         Fix memory leaks discovered via valgrind. Gdk build fixes.
1509
1510         * Projects/gdk/webcore-gdk.bkl:
1511         * make-generated-sources.sh:
1512         * platform/cairo/ImageCairo.cpp:
1513         (WebCore::Image::draw):
1514         * platform/gdk/FrameGdk.cpp:
1515         (WebCore::FrameGdk::handleGdkEvent):
1516         * platform/gdk/FrameGdk.h:
1517         * platform/gdk/PlatformScrollBar.h:
1518         (WebCore::PlatformScrollbar::horizontalScrollbarHeight):
1519         (WebCore::PlatformScrollbar::verticalScrollbarWidth):
1520
1521 2006-10-09  Nikolas Zimmermann  <zimmermann@kde.org>
1522
1523         Reviewed by Beth.
1524
1525         Fix LayoutTests/fast/css/case-transform.html with Qt - the last crashing layout test.
1526
1527         * platform/qt/GlyphMapQt.cpp: Handle UTF-16 characters properly
1528         (WebCore::GlyphMap::fillPage):
1529
1530 2006-10-09  Nikolas Zimmermann  <zimmermann@kde.org>
1531
1532         Unreviewed build fix.
1533
1534         Fix for Qt/Linux build, based on fixes to the Win32 build in r16928 and r16929.
1535
1536         * platform/qt/FrameQt.cpp:
1537         (WebCore::FrameQt::createJavaAppletWidget):
1538         * platform/qt/FrameQt.h:
1539         * platform/qt/TemporaryLinkStubs.cpp:
1540
1541 2006-10-09  Brady Eidson  <beidson@apple.com>
1542
1543         Reviewed by Maciej
1544
1545         Tiny changes to help reorganize WebFrameLoader code in WebKit
1546
1547         * bridge/mac/WebCoreIconDatabaseBridge.h: Added "createInstance"
1548         * bridge/mac/WebCoreIconDatabaseBridge.mm:
1549         (+[WebCoreIconDatabaseBridge sharedInstance]): Added, uses createInstance from WebKit side
1550
1551 2006-10-09  Adam Roben  <aroben@apple.com>
1552
1553         Reviewed by Adele.
1554
1555         Remove redundant call to Frame::cancelAndClear from ~Frame, since it's
1556         already called frome ~FrameMac.
1557
1558         * page/Frame.cpp:
1559         (WebCore::Frame::~Frame):
1560
1561 2006-10-09  Anders Carlsson  <acarlsson@apple.com>
1562
1563         * bridge/win/FrameWin.h:
1564         Add function declaration.
1565         
1566 2006-10-09  Anders Carlsson  <acarlsson@apple.com>
1567
1568         * platform/win/TemporaryLinkStubs.cpp:
1569         (FrameWin::createJavaAppletWidget):
1570         Try fixing the Win32 build.
1571
1572 2006-10-09  Anders Carlsson  <acarlsson@apple.com>
1573
1574         Reviewed by Adam.
1575
1576         Move applet widget creation to Frame and get rid of JavaAppletWidget.
1577         * WebCore.xcodeproj/project.pbxproj:
1578         * bridge/JavaAppletWidget.h: Removed.
1579         * bridge/mac/FrameMac.h:
1580         * bridge/mac/FrameMac.mm:
1581         (WebCore::FrameMac::createJavaAppletWidget):
1582         * bridge/mac/JavaAppletWidget.mm: Removed.
1583         * page/Frame.h:
1584         * rendering/RenderApplet.cpp:
1585         (WebCore::RenderApplet::createWidgetIfNecessary):
1586
1587 2006-10-09  Mitz Pettel  <mitz@webkit.org>
1588
1589         Reviewed by Darin.
1590
1591         - http://bugs.webkit.org/show_bug.cgi?id=11220
1592           Fix manual test for http://bugs.webkit.org/show_bug.cgi?id=8276
1593
1594         Subversion does not support resource forks and HFS metadata, so
1595         the resources for this test need to be on a disk image.
1596
1597         * manual-tests/plain-text-paste.html: Changed instructions to refer to the disk image.
1598         * manual-tests/resources/plain-text-paste.dmg: Added.
1599         * manual-tests/resources/plain-text-paste/._1.textClipping: Removed.
1600         * manual-tests/resources/plain-text-paste/._2.textClipping: Removed.
1601         * manual-tests/resources/plain-text-paste/._4.txt: Removed.
1602         * manual-tests/resources/plain-text-paste/._5.webloc: Removed.
1603         * manual-tests/resources/plain-text-paste/1.textClipping: Removed.
1604         * manual-tests/resources/plain-text-paste/2.textClipping: Removed.
1605         * manual-tests/resources/plain-text-paste/3.gif: Removed.
1606         * manual-tests/resources/plain-text-paste/4.txt: Removed.
1607         * manual-tests/resources/plain-text-paste/5.webloc: Removed.
1608
1609 2006-10-09  Rob Buis  <buis@kde.org>
1610
1611         Reviewed by Darin.
1612
1613         http://bugs.webkit.org/show_bug.cgi?id=11217
1614         Cleanup svg coding style
1615
1616         Cleanup coding style in filter classes.
1617
1618         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
1619         (WebCore::SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement):
1620         (WebCore::SVGComponentTransferFunctionElement::parseMappedAttribute):
1621         * ksvg2/svg/SVGComponentTransferFunctionElement.h:
1622         * ksvg2/svg/SVGFEBlendElement.cpp:
1623         (WebCore::SVGFEBlendElement::SVGFEBlendElement):
1624         (WebCore::SVGFEBlendElement::parseMappedAttribute):
1625         (WebCore::SVGFEBlendElement::filterEffect):
1626         * ksvg2/svg/SVGFEBlendElement.h:
1627         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
1628         (WebCore::SVGFEColorMatrixElement::SVGFEColorMatrixElement):
1629         (WebCore::SVGFEColorMatrixElement::parseMappedAttribute):
1630         (WebCore::SVGFEColorMatrixElement::filterEffect):
1631         * ksvg2/svg/SVGFEColorMatrixElement.h:
1632         * ksvg2/svg/SVGFECompositeElement.cpp:
1633         (WebCore::SVGFECompositeElement::parseMappedAttribute):
1634         * ksvg2/svg/SVGFECompositeElement.h:
1635         * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
1636         (WebCore::SVGFEDisplacementMapElement::stringToChannel):
1637         * ksvg2/svg/SVGFEDisplacementMapElement.h:
1638         * ksvg2/svg/SVGFEFloodElement.cpp:
1639         (WebCore::SVGFEFloodElement::filterEffect):
1640         * ksvg2/svg/SVGFEFuncAElement.cpp:
1641         (WebCore::SVGFEFuncAElement::SVGFEFuncAElement):
1642         * ksvg2/svg/SVGFEFuncBElement.cpp:
1643         (WebCore::SVGFEFuncBElement::SVGFEFuncBElement):
1644         * ksvg2/svg/SVGFEFuncGElement.cpp:
1645         (WebCore::SVGFEFuncGElement::SVGFEFuncGElement):
1646         * ksvg2/svg/SVGFEFuncRElement.cpp:
1647         (WebCore::SVGFEFuncRElement::SVGFEFuncRElement):
1648         * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
1649         (WebCore::SVGFEGaussianBlurElement::SVGFEGaussianBlurElement):
1650         (WebCore::SVGFEGaussianBlurElement::parseMappedAttribute):
1651         (WebCore::SVGFEGaussianBlurElement::filterEffect):
1652         * ksvg2/svg/SVGFEGaussianBlurElement.h:
1653         * ksvg2/svg/SVGFELightElement.cpp:
1654         (WebCore::SVGFELightElement::SVGFELightElement):
1655         (WebCore::SVGFELightElement::parseMappedAttribute):
1656         * ksvg2/svg/SVGFELightElement.h:
1657         * ksvg2/svg/SVGFEMergeElement.cpp:
1658         (WebCore::SVGFEMergeElement::SVGFEMergeElement):
1659
1660 2006-10-09  Rob Buis  <buis@kde.org>
1661
1662         Reviewed by olliej.
1663
1664         http://bugs.webkit.org/show_bug.cgi?id=11217
1665         Cleanup svg coding style
1666
1667         Cleanup coding style in SVGPath* classes.
1668
1669         * ksvg2/svg/SVGPathElement.cpp:
1670         (WebCore::SVGPathElement::SVGPathElement):
1671         (WebCore::SVGPathElement::getPointAtLength):
1672         (WebCore::SVGPathElement::createSVGPathSegClosePath):
1673         (WebCore::SVGPathElement::createSVGPathSegMovetoAbs):
1674         (WebCore::SVGPathElement::createSVGPathSegMovetoRel):
1675         (WebCore::SVGPathElement::createSVGPathSegLinetoAbs):
1676         (WebCore::SVGPathElement::createSVGPathSegLinetoRel):
1677         (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicAbs):
1678         (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicRel):
1679         (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticAbs):
1680         (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticRel):
1681         (WebCore::SVGPathElement::createSVGPathSegArcAbs):
1682         (WebCore::SVGPathElement::createSVGPathSegArcRel):
1683         (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalAbs):
1684         (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalRel):
1685         (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalAbs):
1686         (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalRel):
1687         (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothAbs):
1688         (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothRel):
1689         (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothAbs):
1690         (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothRel):
1691         (WebCore::SVGPathElement::svgMoveTo):
1692         (WebCore::SVGPathElement::svgLineTo):
1693         (WebCore::SVGPathElement::svgLineToHorizontal):
1694         (WebCore::SVGPathElement::svgLineToVertical):
1695         (WebCore::SVGPathElement::svgCurveToCubic):
1696         (WebCore::SVGPathElement::svgCurveToCubicSmooth):
1697         (WebCore::SVGPathElement::svgCurveToQuadratic):
1698         (WebCore::SVGPathElement::svgCurveToQuadraticSmooth):
1699         (WebCore::SVGPathElement::svgArcTo):
1700         (WebCore::SVGPathElement::parseMappedAttribute):
1701         (WebCore::SVGPathElement::pathSegList):
1702         (WebCore::SVGPathElement::normalizedPathSegList):
1703         (WebCore::SVGPathElement::animatedPathSegList):
1704         (WebCore::SVGPathElement::animatedNormalizedPathSegList):
1705         (WebCore::SVGPathElement::toPathData):
1706         * ksvg2/svg/SVGPathElement.h:
1707         (WebCore::SVGPathElement::rendererIsNeeded):
1708         * ksvg2/svg/SVGPathSeg.h:
1709         * ksvg2/svg/SVGPathSegArc.cpp:
1710
1711 2006-10-09  Rob Buis  <buis@kde.org>
1712
1713         Reviewed by aroben.
1714
1715         http://bugs.webkit.org/show_bug.cgi?id=11217
1716         Cleanup svg coding style
1717
1718         Cleanup coding style in svg shape classes.
1719
1720         * ksvg2/svg/SVGCircleElement.cpp:
1721         (WebCore::SVGCircleElement::SVGCircleElement):
1722         (WebCore::SVGCircleElement::parseMappedAttribute):
1723         (WebCore::SVGCircleElement::pushAttributeContext):
1724         * ksvg2/svg/SVGCircleElement.h:
1725         (WebCore::SVGCircleElement::rendererIsNeeded):
1726         * ksvg2/svg/SVGEllipseElement.cpp:
1727         * ksvg2/svg/SVGEllipseElement.h:
1728         (WebCore::SVGEllipseElement::rendererIsNeeded):
1729         * ksvg2/svg/SVGLineElement.cpp:
1730         (WebCore::SVGLineElement::parseMappedAttribute):
1731         (WebCore::SVGLineElement::pushAttributeContext):
1732         * ksvg2/svg/SVGLineElement.h:
1733         (WebCore::SVGLineElement::rendererIsNeeded):
1734         * ksvg2/svg/SVGPolyElement.cpp:
1735         (WebCore::SVGPolyElement::SVGPolyElement):
1736         (WebCore::SVGPolyElement::points):
1737         (WebCore::SVGPolyElement::animatedPoints):
1738         (WebCore::SVGPolyElement::parseMappedAttribute):
1739         (WebCore::SVGPolyElement::notifyAttributeChange):
1740         * ksvg2/svg/SVGPolyElement.h:
1741         (WebCore::SVGPolyElement::rendererIsNeeded):
1742         * ksvg2/svg/SVGPolygonElement.cpp:
1743         (WebCore::SVGPolygonElement::SVGPolygonElement):
1744         (WebCore::SVGPolygonElement::toPathData):
1745         * ksvg2/svg/SVGPolygonElement.h:
1746         * ksvg2/svg/SVGPolylineElement.cpp:
1747         (WebCore::SVGPolylineElement::SVGPolylineElement):
1748         (WebCore::SVGPolylineElement::toPathData):
1749         * ksvg2/svg/SVGPolylineElement.h:
1750         * ksvg2/svg/SVGRectElement.cpp:
1751         (WebCore::SVGRectElement::parseMappedAttribute):
1752         (WebCore::SVGRectElement::pushAttributeContext):
1753         * ksvg2/svg/SVGRectElement.h:
1754         (WebCore::SVGRectElement::rendererIsNeeded):
1755
1756 2006-10-08  Darin Adler  <darin@apple.com>
1757
1758         Reviewed by Maciej.
1759
1760         - added a bit more WebCoreSystemInterface
1761
1762             wkGetNSURLResponseCalculatedExpiration
1763             wkGetNSURLResponseLastModifiedDate
1764             wkGetNSURLResponseMustRevalidate
1765
1766         * WebCore.exp: Added the new symbols.
1767         * platform/mac/WebCoreSystemInterface.h: Ditto.
1768         * platform/mac/WebCoreSystemInterface.mm: Ditto.
1769
1770         - quiet down the code generation script
1771
1772         * bindings/scripts/CodeGenerator.pm:
1773
1774 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
1775
1776         Reviewed by Darin.
1777
1778         - more code laundering - add wkSupportsMultipartXMixedReplace
1779
1780         * WebCore.exp:
1781         * platform/mac/WebCoreSystemInterface.h:
1782         * platform/mac/WebCoreSystemInterface.mm:
1783
1784 2006-10-08  Nikolas Zimmermann  <zimmermann@kde.org>
1785
1786         Reviewed by Darin and Oliver.
1787
1788         Fix artefacts when drawing polygons, most noticeable when painting <hr> elements.
1789
1790         * platform/qt/GraphicsContextQt.cpp: Fix wrong operator<< usage.
1791         (WebCore::GraphicsContext::drawConvexPolygon):
1792
1793 2006-10-08  Anders Carlsson  <acarlsson@apple.com>
1794
1795         Reviewed by Darin.
1796
1797         * page/Frame.cpp:
1798         (WebCore::Frame::submitForm):
1799         No need to use latin1() here.
1800
1801 2006-10-08  Nikolas Zimmermann  <zimmermann@kde.org>
1802
1803         Reviewed by Darin.
1804
1805         Kill warnings when generating IDL files on Qt/Linux, as the
1806         SOURCE_ROOT environment variable is not defined (and not needed) for us.
1807
1808         * bindings/scripts/CodeGenerator.pm:
1809
1810 2006-10-08  Maciej Stachowiak  <mjs@apple.com>
1811
1812         Reviewed by Darin.
1813
1814         - split didNotOpenURL: into general and page-cache-specific parts
1815
1816         * bridge/mac/WebCoreFrameBridge.h:
1817         * bridge/mac/WebCoreFrameBridge.mm:
1818         (-[WebCoreFrameBridge didNotOpenURL:]):
1819         (-[WebCoreFrameBridge invalidatePageCache:]):
1820
1821 2006-10-08  Anders Carlsson  <acarlsson@apple.com>
1822
1823         Reviewed by Darin.
1824
1825         * loader/loader.cpp:
1826         Remove DeprecatedStringList.h include.
1827         
1828         * page/Frame.cpp:
1829         (WebCore::Frame::submitForm):
1830         Don't remove "attach" from mailto URLs, we don't do it anywhere else.
1831
1832 2006-10-08  Sam Weinig  <sam.weinig@gmail.com>
1833
1834         Reviewed by Darin.
1835
1836         Patch for http://bugs.webkit.org/show_bug.cgi?id=11215
1837         Yet another round of Objective-C SVG DOM bindings auto-generation
1838
1839         - Auto-generate DOMSVGPatternElement, DOMSVGPointList, DOMSVGPolygonElement, 
1840           DOMSVGPolylineElement, DOMSVGRadialGradientElement, DOMSVGRenderingIntent,
1841           DOMSVGScriptElement, DOMSVGSetElement, DOMSVGStopElement, DOMSVGSwitchElement, 
1842           DOMSVGSymbolElement, DOMSVGTRefElement, DOMSVGTSpanElement, 
1843           DOMSVGTextContentElement, DOMSVGTextElement, DOMSVGTextPositioningElement, 
1844           DOMSVGTitleElement, DOMSVGUnitTypes, DOMSVGUseElement, DOMSVGViewElement, 
1845           DOMSVGZoomAndPan and DOMSVGZoomEvent.
1846
1847         - Auto-generate the implementations of DOMHTMLAppletElement and DOMHTMLEmbedElement
1848           using the new [ConvertFromString] property.
1849
1850         - Add forward declarations for NS* types to auto-generated classes.
1851
1852         * DerivedSources.make:
1853         * WebCore.xcodeproj/project.pbxproj:
1854         * bindings/objc/DOMHTMLAppletElement.mm: Removed.
1855         * bindings/objc/DOMHTMLEmbedElement.mm: Removed.
1856         * bindings/objc/DOMInternal.h:
1857         * bindings/objc/DOMSVG.h:
1858         * bindings/scripts/CodeGeneratorObjC.pm:
1859         * html/HTMLAppletElement.idl:
1860         * html/HTMLEmbedElement.idl:
1861         * ksvg2/svg/SVGPatternElement.idl:
1862         * ksvg2/svg/SVGPolygonElement.idl:
1863         * ksvg2/svg/SVGPolylineElement.idl:
1864         * ksvg2/svg/SVGRadialGradientElement.idl:
1865         * ksvg2/svg/SVGRenderingIntent.idl:
1866         * ksvg2/svg/SVGScriptElement.idl:
1867         * ksvg2/svg/SVGSetElement.idl:
1868         * ksvg2/svg/SVGStopElement.idl:
1869         * ksvg2/svg/SVGSwitchElement.idl:
1870         * ksvg2/svg/SVGSymbolElement.idl:
1871         * ksvg2/svg/SVGTRefElement.idl:
1872         * ksvg2/svg/SVGTSpanElement.idl:
1873         * ksvg2/svg/SVGTextContentElement.idl:
1874         * ksvg2/svg/SVGTextElement.idl:
1875         * ksvg2/svg/SVGTextPositioningElement.idl:
1876         * ksvg2/svg/SVGTitleElement.idl:
1877         * ksvg2/svg/SVGUseElement.idl:
1878         * ksvg2/svg/SVGViewElement.idl:
1879         * ksvg2/svg/SVGZoomEvent.idl:
1880
1881 2006-10-07  Anders Carlsson  <acarlsson@apple.com>
1882
1883         Reviewed by Maciej.
1884
1885         Remove crossDomain, it was unused and is one of the last functions that use DeprecatedStringList.        
1886         * loader/loader.cpp:
1887         (WebCore::Loader::servePendingRequests):
1888         
1889 2006-10-07  Anders Carlsson  <acarlsson@apple.com>
1890
1891         Reviewed by Darin.
1892
1893         Convert a bunch of RefPtr<StringImpl> to String.
1894         
1895         * bridge/mac/FrameMac.h:
1896         * bridge/mac/FrameMac.mm:
1897         (WebCore::FrameMac::didTellBridgeAboutLoad):
1898         (WebCore::FrameMac::haveToldBridgeAboutLoad):
1899         * dom/BeforeUnloadEvent.cpp:
1900         (WebCore::BeforeUnloadEvent::storeResult):
1901         * dom/BeforeUnloadEvent.h:
1902         (WebCore::BeforeUnloadEvent::result):
1903         * dom/Document.cpp:
1904         (WebCore::Document::createEntityReference):
1905         * dom/Entity.cpp:
1906         (WebCore::Entity::Entity):
1907         (WebCore::Entity::nodeName):
1908         (WebCore::Entity::toString):
1909         * dom/Entity.h:
1910         (WebCore::Entity::publicId):
1911         (WebCore::Entity::systemId):
1912         (WebCore::Entity::notationName):
1913         * dom/EntityReference.cpp:
1914         (WebCore::EntityReference::EntityReference):
1915         (WebCore::EntityReference::nodeName):
1916         (WebCore::EntityReference::cloneNode):
1917         (WebCore::EntityReference::toString):
1918         * dom/EntityReference.h:
1919         * dom/KeyboardEvent.cpp:
1920         (WebCore::KeyboardEvent::KeyboardEvent):
1921         (WebCore::KeyboardEvent::initKeyboardEvent):
1922         * dom/KeyboardEvent.h:
1923         (WebCore::KeyboardEvent::keyIdentifier):
1924         * dom/MutationEvent.cpp:
1925         (WebCore::MutationEvent::MutationEvent):
1926         (WebCore::MutationEvent::initMutationEvent):
1927         * dom/MutationEvent.h:
1928         (WebCore::MutationEvent::prevValue):
1929         (WebCore::MutationEvent::newValue):
1930         (WebCore::MutationEvent::attrName):
1931         * dom/Notation.cpp:
1932         (WebCore::Notation::Notation):
1933         (WebCore::Notation::nodeName):
1934         * dom/Notation.h:
1935         (WebCore::Notation::publicId):
1936         (WebCore::Notation::systemId):
1937         * dom/ProcessingInstruction.cpp:
1938         (WebCore::ProcessingInstruction::ProcessingInstruction):
1939         (WebCore::ProcessingInstruction::setData):
1940         (WebCore::ProcessingInstruction::nodeName):
1941         (WebCore::ProcessingInstruction::nodeValue):
1942         (WebCore::ProcessingInstruction::cloneNode):
1943         (WebCore::ProcessingInstruction::checkStyleSheet):
1944         (WebCore::ProcessingInstruction::toString):
1945         * dom/ProcessingInstruction.h:
1946         (WebCore::ProcessingInstruction::target):
1947         (WebCore::ProcessingInstruction::data):
1948         (WebCore::ProcessingInstruction::localHref):
1949
1950 2006-10-07  Sam Weinig  <sam.weinig@gmail.com>
1951
1952         Reviewed by Tim H.
1953
1954         Patch for http://bugs.webkit.org/show_bug.cgi?id=11206
1955         10 more SVG Objective-C auto-generated bindings
1956
1957         - Auto-generate DOMSVGFilterElement, DOMSVGFitToViewBox, 
1958           DOMSVGForeignObjectElement, DOMSVGGElement, DOMSVGGradientElement,
1959           DOMSVGImageElement, DOMSVGLineElement, DOMSVGLinearGradientElement, 
1960           DOMSVGMarkerElement, DOMSVGMaskElement and DOMSVGPaint.
1961
1962         - Auto-generate the text method for DOMRange.
1963
1964         * DerivedSources.make:
1965         * WebCore.xcodeproj/project.pbxproj:
1966         * bindings/objc/DOM.mm:
1967         * bindings/objc/DOMExtensions.h:
1968         * bindings/objc/DOMInternal.h:
1969         * bindings/objc/DOMPrivate.h:
1970         * bindings/objc/DOMRGBColor.mm:
1971         * bindings/objc/DOMSVG.h:
1972         * bindings/objc/PublicDOMInterfaces.h:
1973         * bindings/scripts/CodeGeneratorObjC.pm:
1974         * dom/Range.idl:
1975         * ksvg2/svg/SVGFilterElement.cpp:
1976         * ksvg2/svg/SVGFilterElement.h:
1977         * ksvg2/svg/SVGFilterElement.idl:
1978         * ksvg2/svg/SVGForeignObjectElement.idl:
1979         * ksvg2/svg/SVGGElement.idl:
1980         * ksvg2/svg/SVGGradientElement.idl:
1981         * ksvg2/svg/SVGImageElement.idl:
1982         * ksvg2/svg/SVGLineElement.idl:
1983         * ksvg2/svg/SVGLinearGradientElement.idl:
1984         * ksvg2/svg/SVGMarkerElement.idl:
1985         * ksvg2/svg/SVGMaskElement.idl:
1986         * ksvg2/svg/SVGPaint.idl:
1987
1988 2006-10-07  Sam Weinig  <sam.weinig@gmail.com>
1989
1990         Reviewed by Tim H.
1991
1992         Patch for http://bugs.webkit.org/show_bug.cgi?id=11198
1993         Auto-generate a few more Objective-C DOM interfaces
1994
1995         - Fully auto-generate DOMAbstractView and DOMRange.
1996
1997         - Auto-generate just the interface for DOMRGBColor.
1998
1999         - Add DOMRanges.h as the new top level file for Ranges
2000           module.
2001
2002         - Add DOMRanges.h and DOMXPath.h to DOM.mm
2003
2004         * DerivedSources.make:
2005         * WebCore.xcodeproj/project.pbxproj:
2006         * bindings/objc/DOM.h:
2007         * bindings/objc/DOM.mm:
2008         * bindings/objc/DOMAbstractView.h: Removed.
2009         * bindings/objc/DOMAbstractView.mm: Removed.
2010         * bindings/objc/DOMInternal.h:
2011         * bindings/objc/DOMPrivate.h:
2012         * bindings/objc/DOMRGBColor.h: Removed.
2013         * bindings/objc/DOMRGBColor.mm:
2014         * bindings/objc/DOMRange.h: Removed.
2015         * bindings/objc/DOMRanges.h: Added.
2016         * bindings/objc/PublicDOMInterfaces.h:
2017         * bindings/scripts/CodeGeneratorObjC.pm:
2018         * css/RGBColor.idl:
2019         * dom/Range.idl:
2020         * page/AbstractView.idl: Added.
2021
2022 2006-10-07  Andrew Wellington  <proton@wiretapped.net>
2023
2024         Reviewed by Eric.
2025
2026         Bug 10837: REGRESSION: Yahoo New Charts Crashes WebKit
2027         http://bugzilla.opendarwin.org/show_bug.cgi?id=10837
2028
2029         Return null when there is no frame. This matches Firefox.
2030
2031         * bindings/js/kjs_html.cpp:
2032         (KJS::JSHTMLDocument::getValueProperty):
2033
2034 2006-10-07  David Hyatt  <hyatt@apple.com>
2035
2036         Implement scroll corner painting (a white rect fill) for overflow areas to cover up
2037         scrollbar joins properly.
2038
2039         Refactor painting of scrollbars and resizers into common functions.  Eliminate the
2040         extra 20 bytes per RenderLayer by cutting out m_resizerImage and m_resizerControlRect.
2041
2042         Reviewed by mitz
2043
2044         * page/FrameView.cpp:
2045         (WebCore::selectCursor):
2046         (WebCore::FrameView::handleMouseMoveEvent):
2047         * platform/mac/PlatformScrollBar.h:
2048         (WebCore::PlatformScrollbar::horizontalScrollbarHeight):
2049         (WebCore::PlatformScrollbar::verticalScrollbarWidth):
2050         * rendering/RenderLayer.cpp:
2051         (WebCore::RenderLayer::RenderLayer):
2052         (WebCore::RenderLayer::~RenderLayer):
2053         (WebCore::RenderLayer::updateLayerPositions):
2054         (WebCore::scrollCornerRect):
2055         (WebCore::RenderLayer::positionOverflowControls):
2056         (WebCore::RenderLayer::paintOverflowControls):
2057         (WebCore::RenderLayer::isPointInResizeControl):
2058         (WebCore::RenderLayer::paintLayer):
2059         * rendering/RenderLayer.h:
2060
2061 2006-10-07  Mark Rowe  <bdash@webkit.org>
2062
2063         Reviewed by Mitz.
2064
2065         Linux/Gdk build fixes, primarily consisting of s/ScrollBar/Scrollbar/ and
2066         matching recent ResourceLoader changes.
2067
2068         * platform/gdk/FrameGdk.cpp:
2069         (WebCore::FrameGdk::openURL):
2070         (WebCore::FrameGdk::urlSelected):
2071         * platform/gdk/PlatformScrollBar.h:
2072         * platform/gdk/ResourceLoaderCurl.cpp:
2073         (WebCore::ResourceLoader::start):
2074         * platform/gdk/ScrollViewGdk.cpp:
2075         (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
2076         (WebCore::ScrollView::resizeContents):
2077         (WebCore::ScrollView::scrollBy):
2078         (WebCore::ScrollView::hScrollbarMode):
2079         (WebCore::ScrollView::vScrollbarMode):
2080         (WebCore::ScrollView::suppressScrollbars):
2081         (WebCore::ScrollView::setHScrollbarMode):
2082         (WebCore::ScrollView::setVScrollbarMode):
2083         (WebCore::ScrollView::setScrollbarsMode):
2084         * platform/gdk/TemporaryLinkStubs.cpp:
2085         (FrameView::passMousePressEventToScrollbar):
2086         (Widget::removeFromParent):
2087         (ScrollView::addChild):
2088         (ScrollView::updateScrollbars):
2089         (ScrollView::scrollbarUnderMouse):
2090         (PlatformScrollbar::PlatformScrollbar):
2091         (PlatformScrollbar::~PlatformScrollbar):
2092         (PlatformScrollbar::width):
2093         (PlatformScrollbar::height):
2094         (PlatformScrollbar::setEnabled):
2095         (PlatformScrollbar::paint):
2096         (PlatformScrollbar::updateThumbPosition):
2097         (PlatformScrollbar::updateThumbProportion):
2098         (PlatformScrollbar::setRect):
2099         (Scrollbar::Scrollbar):
2100         (Scrollbar::setSteps):
2101         (Scrollbar::scroll):
2102         (Scrollbar::setValue):
2103         (Scrollbar::setProportion):
2104
2105 2006-10-06  Dave Hyatt  <hyatt@apple.com>
2106
2107         Implement a new method for obtaining accurate clip rectangles that can be used by plugins to properly clip.
2108
2109         * page/FrameView.cpp:
2110         (WebCore::FrameView::windowClipRect):
2111         * page/FrameView.h:
2112         * platform/ScrollView.h:
2113         * platform/Widget.cpp:
2114         (WebCore::Widget::windowClipRect):
2115         * platform/Widget.h:
2116         (WebCore::Widget::geometryChanged):
2117         (WebCore::Widget::handleMouseMoveEvent):
2118         (WebCore::Widget::handleMouseReleaseEvent):
2119         * platform/mac/ScrollViewMac.mm:
2120         (WebCore::ScrollView::addChild):
2121         * rendering/RenderLayer.cpp:
2122         (WebCore::RenderLayer::documentClipRect):
2123         * rendering/RenderLayer.h:
2124
2125 2006-10-06  Steve Falkenburg  <sfalken@apple.com>
2126
2127         Reviewed by Adam.
2128
2129         Add another method we'll need for scrollbar dodging
2130
2131         * platform/ScrollView.h:
2132         * platform/win/TemporaryLinkStubs.cpp:
2133         (ScrollView::resizerOverlapsContent):
2134
2135 2006-10-06  Sam Weinig  <sam.weinig@gmail.com>
2136
2137         Reviewed by Tim H.
2138
2139         Patch for http://bugs.webkit.org/show_bug.cgi?id=11191
2140         Auto-generate the interfaces even for Objective-C DOM 
2141         bindings that need custom implementations
2142
2143         - Fully auto-generate DOMEventTarget, DOMNodeFilter and 
2144           DOMHTMLOptionElement.
2145
2146         - Auto-generate just the interface for DOMHTMLAppletElement,
2147           DOMHTMLEmbedElement, DOMSVGNumber, DOMSVGPoint and DOMSVGRect
2148           using the new IDL property ObjCCustomImplementation.
2149
2150         * DerivedSources.make:
2151         * WebCore.xcodeproj/project.pbxproj:
2152         * bindings/objc/DOMEventTarget.h: Removed.
2153         * bindings/objc/DOMHTMLAppletElement.h: Removed.
2154         * bindings/objc/DOMHTMLEmbedElement.h: Removed.
2155         * bindings/objc/DOMHTMLOptionElement.h: Removed.
2156         * bindings/objc/DOMHTMLOptionElement.mm: Removed.
2157         * bindings/objc/DOMInternal.h:
2158         * bindings/objc/DOMNodeFilter.h: Removed.
2159         * bindings/objc/DOMSVGNumber.h: Removed.
2160         * bindings/objc/DOMSVGPoint.h: Removed.
2161         * bindings/objc/DOMSVGPoint.mm:
2162         (-[DOMSVGPoint matrixTransform:]):
2163         * bindings/objc/DOMSVGRect.h: Removed.
2164         * bindings/objc/PublicDOMInterfaces.h:
2165         * bindings/scripts/CodeGeneratorObjC.pm:
2166         * dom/EventTarget.idl:
2167         * html/HTMLAppletElement.idl:
2168         * html/HTMLEmbedElement.idl:
2169         * html/HTMLOptionElement.idl:
2170         * ksvg2/svg/SVGNumber.idl:
2171         * ksvg2/svg/SVGPoint.idl:
2172         * ksvg2/svg/SVGRect.idl:
2173
2174 2006-10-06  Nikolas Zimmermann  <zimmermann@kde.org>
2175
2176         Reviewed by Tim H.
2177
2178         Make Qt/Linux compile again completly.
2179
2180         * platform/qt/WidgetQt.cpp:
2181         (WebCore::Widget::removeFromParent):
2182
2183 2006-10-06  Nikolas Zimmermann  <zimmermann@kde.org>
2184
2185         Reviewed by Tim H.
2186
2187         Fix Qt/Linux build by adapting the s/ScrollBar/Scrollbar/ patch.
2188
2189         * platform/qt/PlatformScrollBar.h:
2190         * platform/qt/ScrollViewQt.cpp:
2191         (WebCore::ScrollView::hScrollbarMode):
2192         (WebCore::ScrollView::vScrollbarMode):
2193         (WebCore::ScrollView::suppressScrollbars):
2194         (WebCore::ScrollView::setHScrollbarMode):
2195         (WebCore::ScrollView::setVScrollbarMode):
2196         (WebCore::ScrollView::setScrollbarsMode):
2197         (WebCore::ScrollView::scrollbarUnderMouse):
2198         * platform/qt/TemporaryLinkStubs.cpp:
2199         (WebCore::Scrollbar::Scrollbar):
2200         (WebCore::Scrollbar::setSteps):
2201         (WebCore::Scrollbar::scroll):
2202         (WebCore::Scrollbar::setValue):
2203         (WebCore::Scrollbar::setProportion):
2204         (WebCore::PlatformScrollbar::PlatformScrollbar):
2205         (WebCore::PlatformScrollbar::~PlatformScrollbar):
2206         (WebCore::PlatformScrollbar::width):
2207         (WebCore::PlatformScrollbar::height):
2208         (WebCore::PlatformScrollbar::setEnabled):
2209         (WebCore::PlatformScrollbar::paint):
2210         (WebCore::PlatformScrollbar::updateThumbPosition):
2211         (WebCore::PlatformScrollbar::updateThumbProportion):
2212         (WebCore::PlatformScrollbar::setRect):
2213         (FrameView::passMousePressEventToScrollbar):
2214
2215 2006-10-06  Sam Weinig  <sam.weinig@gmail.com>
2216
2217         Reviewed by Tim H.
2218
2219         Patch for http://bugs.webkit.org/show_bug.cgi?id=11177
2220         Another round of Objective-C SVG DOM bindings auto-generation
2221
2222         - Auto-generate DOMSVGAnimatedNumberList, DOMSVGAnimatedRect, 
2223           DOMSVGComponentTransferFunctionElement, DOMSVGFEBlendElement, 
2224           DOMSVGFEColorMatrixElement, DOMSVGFEComponentTransferElement, 
2225           DOMSVGFECompositeElement, DOMSVGFEDiffuseLightingElement,
2226           DOMSVGFEDisplacementMapElement, DOMSVGFEDistantLightElement, 
2227           DOMSVGFEFloodElement, DOMSVGFEFuncAElement, DOMSVGFEFuncBElement, 
2228           DOMSVGFEFuncGElement, DOMSVGFEFuncRElement, DOMSVGFEGaussianBlurElement, 
2229           DOMSVGFEImageElement, DOMSVGFEMergeElement, DOMSVGFEMergeNodeElement, 
2230           DOMSVGFEOffsetElement, DOMSVGFEPointLightElement, 
2231           DOMSVGFESpecularLightingElement, DOMSVGFESpotLightElement, 
2232           DOMSVGFETileElement, DOMSVGFETurbulenceElement, 
2233           DOMSVGFilterPrimitiveStandardAttributes and DOMSVGNumberList. 
2234
2235         - Adds interfaces and implementation stubs for DOMSVGNumber, DOMSVGPoint
2236           and DOMSVGRect.
2237
2238         - IDL clean up.
2239
2240         - Make numOctaves in SVGFETurbulenceElement use a long instead of an int
2241           in it's macro declaration and definition.
2242
2243         * DerivedSources.make:
2244         * WebCore.xcodeproj/project.pbxproj:
2245         * bindings/objc/DOMCSS.mm:
2246         (+[DOMCSSValue _CSSValueWith:WebCore::]):
2247         * bindings/objc/DOMInternal.h:
2248         * bindings/objc/DOMSVG.h:
2249         * bindings/objc/DOMSVGNumber.h: Added.
2250         * bindings/objc/DOMSVGNumber.mm: Added.
2251         (-[DOMSVGNumber dealloc]):
2252         (-[DOMSVGNumber finalize]):
2253         (-[DOMSVGNumber value]):
2254         (-[DOMSVGNumber setValue:]):
2255         (-[DOMSVGNumber _SVGNumber]):
2256         (-[DOMSVGNumber _initWithFloat:]):
2257         (+[DOMSVGNumber _SVGNumberWith:]):
2258         * bindings/objc/DOMSVGPoint.h: Added.
2259         * bindings/objc/DOMSVGPoint.mm: Added.
2260         (-[DOMSVGPoint dealloc]):
2261         (-[DOMSVGPoint finalize]):
2262         (-[DOMSVGPoint x]):
2263         (-[DOMSVGPoint setX:]):
2264         (-[DOMSVGPoint y]):
2265         (-[DOMSVGPoint setY:]):
2266         (-[DOMSVGPoint WebCore::]):
2267         (-[DOMSVGPoint _initWithFloatPoint:WebCore::]):
2268         (+[DOMSVGPoint _SVGPointWith:WebCore::]):
2269         * bindings/objc/DOMSVGRect.h: Added.
2270         * bindings/objc/DOMSVGRect.mm: Added.
2271         (-[DOMSVGRect dealloc]):
2272         (-[DOMSVGRect finalize]):
2273         (-[DOMSVGRect x]):
2274         (-[DOMSVGRect setX:]):
2275         (-[DOMSVGRect y]):
2276         (-[DOMSVGRect setY:]):
2277         (-[DOMSVGRect width]):
2278         (-[DOMSVGRect setWidth:]):
2279         (-[DOMSVGRect height]):
2280         (-[DOMSVGRect setHeight:]):
2281         (-[DOMSVGRect WebCore::]):
2282         (-[DOMSVGRect _initWithFloatRect:WebCore::]):
2283         (+[DOMSVGRect _SVGRectWith:WebCore::]):
2284         * bindings/scripts/CodeGeneratorObjC.pm:
2285         * ksvg2/svg/SVGAnimatedNumberList.idl:
2286         * ksvg2/svg/SVGAnimatedRect.idl:
2287         * ksvg2/svg/SVGComponentTransferFunctionElement.idl:
2288         * ksvg2/svg/SVGCursorElement.idl:
2289         * ksvg2/svg/SVGFEBlendElement.idl:
2290         * ksvg2/svg/SVGFEColorMatrixElement.idl:
2291         * ksvg2/svg/SVGFEComponentTransferElement.idl:
2292         * ksvg2/svg/SVGFECompositeElement.idl:
2293         * ksvg2/svg/SVGFEDiffuseLightingElement.idl:
2294         * ksvg2/svg/SVGFEDisplacementMapElement.idl:
2295         * ksvg2/svg/SVGFEDistantLightElement.idl:
2296         * ksvg2/svg/SVGFEFloodElement.idl:
2297         * ksvg2/svg/SVGFEFuncAElement.idl:
2298         * ksvg2/svg/SVGFEFuncBElement.idl:
2299         * ksvg2/svg/SVGFEFuncGElement.idl:
2300         * ksvg2/svg/SVGFEFuncRElement.idl:
2301         * ksvg2/svg/SVGFEGaussianBlurElement.idl:
2302         * ksvg2/svg/SVGFEImageElement.idl:
2303         * ksvg2/svg/SVGFEMergeElement.idl:
2304         * ksvg2/svg/SVGFEMergeNodeElement.idl:
2305         * ksvg2/svg/SVGFEOffsetElement.idl:
2306         * ksvg2/svg/SVGFEPointLightElement.idl:
2307         * ksvg2/svg/SVGFESpecularLightingElement.idl:
2308         * ksvg2/svg/SVGFESpotLightElement.idl:
2309         * ksvg2/svg/SVGFETileElement.idl:
2310         * ksvg2/svg/SVGFETurbulenceElement.cpp:
2311         * ksvg2/svg/SVGFETurbulenceElement.h:
2312         * ksvg2/svg/SVGFETurbulenceElement.idl:
2313         * ksvg2/svg/SVGNumberList.idl:
2314
2315 2006-10-06  Adam Roben  <aroben@apple.com>
2316
2317         Backing out my previous change.
2318
2319         * WebCore.xcodeproj/project.pbxproj:
2320         * page/FrameView.cpp:
2321         (WebCore::FrameView::adjustViewSize):
2322
2323 2006-10-06  Adam Roben  <aroben@apple.com>
2324
2325         Build fix.
2326
2327         * WebCore.xcodeproj/project.pbxproj:
2328         * page/FrameView.cpp:
2329         (WebCore::FrameView::windowResizerRect):
2330
2331 2006-10-06  Adam Roben  <aroben@apple.com>
2332
2333         Reviewed by Maciej.
2334
2335         More loader tweaks.
2336
2337         * platform/ResourceLoader.h:
2338         * platform/ResourceLoaderInternal.h:
2339         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
2340         * platform/win/TemporaryLinkStubs.cpp:
2341         (WebCore::ResourceLoader::newHTTPRequest):
2342
2343 2006-10-05  Steve Falkenburg  <sfalken@apple.com>
2344
2345         Reviewed by aroben.
2346
2347         Stub out some methods that we'll be able to use to dodge a window resizer.
2348
2349         * bridge/win/FrameWin.h:
2350         * page/Frame.h:
2351         (WebCore::Frame::windowResizerRect):
2352         * page/FrameView.h:
2353         * platform/ScrollView.h:
2354         (WebCore::ScrollView::windowResizerRect):
2355         * platform/Widget.h:
2356         * platform/win/TemporaryLinkStubs.cpp:
2357         (FrameView::windowResizerRect):
2358         (Widget::setParent):
2359         (Widget::parent):
2360         (FrameWin::windowResizerRect):
2361
2362 2006-10-05  Dave Hyatt  <hyatt@apple.com>
2363
2364         Stub out setFrameGeometry.
2365         
2366         * platform/ScrollView.h:
2367
2368 2006-10-05  Adele Peterson  <adele@apple.com>
2369
2370         Reverting autoscroll fix.  I need to rework this a little.
2371
2372         * page/Frame.cpp:
2373         (WebCore::Frame::handleAutoscroll):
2374         (WebCore::Frame::autoscrollTimerFired):
2375         (WebCore::Frame::stopAutoscrollTimer):
2376         * page/Frame.h:
2377         * rendering/RenderLayer.cpp:
2378         (WebCore::RenderLayer::~RenderLayer):
2379         * rendering/RenderListBox.cpp:
2380         (WebCore::RenderListBox::~RenderListBox):
2381
2382 2006-10-05  Alice  <alice.liu@apple.com>
2383
2384         Reviewed by Adam.
2385
2386         Fixed <rdar://problem/4731778>
2387
2388         * editing/CommandByName.cpp:
2389         (WebCore::Frame::Command::):
2390         was calling the wrong enabledFn for arrow selection and navigation
2391
2392 2006-10-05  Adele Peterson  <adele@apple.com>
2393
2394         Reviewed by Maciej.
2395
2396         - Fix for <rdar://problem/4707489> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active <input type="text">
2397           and <rdar://problem/4707519> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active textarea
2398
2399         * rendering/RenderLayer.cpp: (WebCore::RenderLayer::~RenderLayer): If the renderer is being autoscrolled, then stop the autoscroll timer.
2400         * rendering/RenderListBox.cpp: (WebCore::RenderListBox::~RenderListBox): ditto.
2401
2402         * page/Frame.cpp: Added getter and setter for the renderer being autoscrolled.
2403         (WebCore::Frame::handleAutoscroll):
2404         (WebCore::Frame::autoscrollTimerFired):
2405         (WebCore::Frame::autoscrollRenderer):
2406         (WebCore::Frame::setAutoscrollRenderer):
2407         (WebCore::Frame::stopAutoscrollTimer):
2408         * page/Frame.h:
2409
2410 2006-10-05  Don Gibson  <dgibson77@gmail.com>
2411
2412         Reviewed by Eric.
2413
2414         Fix win32 build bustage after ggaren's Scrollbar renaming changes.
2415         Properly include PlatformScrollBar.h in WbCore.vcproj.
2416         Clean up WidgetWin.cpp a bit.
2417
2418         * WebCore.vcproj/WebCore/WebCore.vcproj:
2419         * platform/Widget.h:
2420         * platform/win/PlatformScrollBar.h:
2421         * platform/win/ScrollViewWin.cpp:
2422         (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
2423         (WebCore::ScrollView::resizeContents):
2424         (WebCore::ScrollView::scrollBy):
2425         (WebCore::ScrollView::hScrollbarMode):
2426         (WebCore::ScrollView::vScrollbarMode):
2427         (WebCore::ScrollView::suppressScrollbars):
2428         (WebCore::ScrollView::setHScrollbarMode):
2429         (WebCore::ScrollView::setVScrollbarMode):
2430         (WebCore::ScrollView::setScrollbarsMode):
2431         (WebCore::ScrollView::updateScrollbars):
2432         * platform/win/TemporaryLinkStubs.cpp:
2433         (FrameView::passMousePressEventToScrollbar):
2434         (Widget::removeFromParent):
2435         (ScrollView::scrollbarUnderMouse):
2436         (PlatformScrollbar::PlatformScrollbar):
2437         (PlatformScrollbar::~PlatformScrollbar):
2438         (PlatformScrollbar::width):
2439         (PlatformScrollbar::height):
2440         (PlatformScrollbar::setEnabled):
2441         (PlatformScrollbar::paint):
2442         (PlatformScrollbar::updateThumbPosition):
2443         (PlatformScrollbar::updateThumbProportion):
2444         (PlatformScrollbar::setRect):
2445         (Scrollbar::Scrollbar):
2446         (Scrollbar::setSteps):
2447         (Scrollbar::scroll):
2448         (Scrollbar::setValue):
2449         (Scrollbar::setProportion):
2450         * platform/win/WidgetWin.cpp:
2451         (WebCore::WidgetPrivate::WidgetPrivate):
2452         (WebCore::Widget::Widget):
2453         (WebCore::Widget::setContainingWindow):
2454         (WebCore::Widget::containingWindow):
2455
2456 2006-10-05  Geoffrey Garen  <ggaren@apple.com>
2457
2458         build fix.
2459         
2460         * WebCore.xcodeproj/project.pbxproj:
2461         * bridge/mac/BrowserExtensionMac.mm:
2462         (WebCore::BrowserExtensionMac::createNewWindow):
2463         * bridge/mac/FrameMac.mm:
2464         (WebCore::FrameMac::createFrame):
2465         * bridge/mac/FrameViewMac.mm:
2466         (WebCore::FrameView::passMousePressEventToScrollbar):
2467         * bridge/mac/WebCoreFrameBridge.mm:
2468         (-[WebCoreFrameBridge installInFrame:]):
2469         * bridge/mac/WebCoreFrameView.h:
2470         * platform/ScrollBar.cpp:
2471         * platform/Widget.h:
2472         * platform/mac/PlatformScrollBar.h:
2473         * platform/mac/PlatformScrollBarMac.mm:
2474         (NSControlSizeForScrollBarControlSize):
2475         (-[WebCoreScrollBar initWithPlatformScrollbar:]):
2476         (-[WebCoreScrollBar detachPlatformScrollbar]):
2477         (-[WebCoreScrollBar scroll:]):
2478         (-[WebCoreScrollBar widget]):
2479         (WebCore::PlatformScrollbar::PlatformScrollbar):
2480         (WebCore::PlatformScrollbar::~PlatformScrollbar):
2481         (WebCore::PlatformScrollbar::updateThumbPosition):
2482         (WebCore::PlatformScrollbar::updateThumbProportion):
2483         (WebCore::PlatformScrollbar::scrollbarHit):
2484         (WebCore::PlatformScrollbar::width):
2485         (WebCore::PlatformScrollbar::height):
2486         (WebCore::PlatformScrollbar::setRect):
2487         (WebCore::PlatformScrollbar::setEnabled):
2488         (WebCore::PlatformScrollbar::paint):
2489         * platform/mac/ScrollViewMac.mm:
2490         (WebCore::ScrollView::setVScrollbarMode):
2491         (WebCore::ScrollView::setHScrollbarMode):
2492         (WebCore::ScrollView::setScrollbarsMode):
2493         (WebCore::ScrollView::vScrollbarMode):
2494         (WebCore::ScrollView::hScrollbarMode):
2495         (WebCore::ScrollView::suppressScrollbars):
2496         (WebCore::ScrollView::scrollbarUnderMouse):
2497         * platform/mac/WidgetMac.mm:
2498         (WebCore::Widget::removeFromParent):
2499         * rendering/RenderLayer.cpp:
2500         (WebCore::RenderLayer::destroyScrollbar):
2501
2502 2006-10-05  Geoffrey Garen  <ggaren@apple.com>
2503
2504         build fix.
2505         
2506         * platform/Widget.h:
2507         * rendering/RenderLayer.cpp:
2508         (WebCore::RenderLayer::destroyScrollbar):
2509
2510 2006-10-06  Mitz Pettel  <mitz@webkit.org>
2511
2512         http://bugs.webkit.org/show_bug.cgi?id=8276
2513         Fix broken manual test added back in r13990.
2514
2515         Add resource forks for test resources.
2516
2517         * manual-tests/resources/plain-text-paste/._1.textClipping: Added.
2518         * manual-tests/resources/plain-text-paste/._2.textClipping: Added.
2519         * manual-tests/resources/plain-text-paste/._4.txt: Added.
2520         * manual-tests/resources/plain-text-paste/._5.webloc: Added.
2521
2522 2006-10-05  David Hyatt  <hyatt@apple.com>
2523
2524         Rename addClip to clip.
2525
2526         Reviewed by darin
2527
2528         * kcanvas/RenderForeignObject.cpp:
2529         (WebCore::RenderForeignObject::paint):
2530         * kcanvas/RenderSVGContainer.cpp:
2531         (WebCore::RenderSVGContainer::paint):
2532         * kcanvas/RenderSVGImage.cpp:
2533         (WebCore::RenderSVGImage::paint):
2534         * platform/GraphicsContext.h:
2535         * platform/cairo/GraphicsContextCairo.cpp:
2536         (WebCore::GraphicsContext::clip):
2537         * platform/cg/GraphicsContextCG.cpp:
2538         (WebCore::GraphicsContext::savePlatformState):
2539         (WebCore::GraphicsContext::restorePlatformState):
2540         (WebCore::GraphicsContext::clip):
2541         (WebCore::GraphicsContext::addRoundedRectClip):
2542         (WebCore::GraphicsContext::addInnerRoundedRectClip):
2543         (WebCore::GraphicsContext::scale):
2544         (WebCore::GraphicsContext::rotate):
2545         (WebCore::GraphicsContext::translate):
2546         (WebCore::GraphicsContext::concatCTM):
2547         * platform/cg/GraphicsContextPlatformPrivate.h:
2548         (WebCore::GraphicsContextPlatformPrivate::save):
2549         (WebCore::GraphicsContextPlatformPrivate::restore):
2550         (WebCore::GraphicsContextPlatformPrivate::clip):
2551         (WebCore::GraphicsContextPlatformPrivate::scale):
2552         (WebCore::GraphicsContextPlatformPrivate::rotate):
2553         (WebCore::GraphicsContextPlatformPrivate::translate):
2554         (WebCore::GraphicsContextPlatformPrivate::concatCTM):
2555         * platform/qt/GraphicsContextQt.cpp:
2556         (WebCore::GraphicsContext::clip):
2557         (WebCore::GraphicsContext::addInnerRoundedRectClip):
2558         (WebCore::GraphicsContext::addRoundedRectClip):
2559         * rendering/InlineFlowBox.cpp:
2560         (WebCore::InlineFlowBox::paintBackground):
2561         (WebCore::InlineFlowBox::paintBackgroundAndBorder):
2562         * rendering/InlineTextBox.cpp:
2563         (WebCore::InlineTextBox::paintSelection):
2564         (WebCore::InlineTextBox::paintTextMatchMarker):
2565         * rendering/RenderBox.cpp:
2566         (WebCore::RenderBox::paintBackgroundExtended):
2567         * rendering/RenderButton.cpp:
2568         (WebCore::RenderButton::paintObject):
2569         * rendering/RenderFileUploadControl.cpp:
2570         (WebCore::RenderFileUploadControl::paintObject):
2571         * rendering/RenderLayer.cpp:
2572         (WebCore::RenderLayer::beginTransparencyLayers):
2573         (WebCore::setClip):
2574         * rendering/RenderListBox.cpp:
2575         (WebCore::RenderListBox::paintObject):
2576         * rendering/RenderMenuList.cpp:
2577         (WebCore::RenderMenuList::paintObject):
2578         * rendering/RenderTableCell.cpp:
2579         (WebCore::RenderTableCell::paintBackgroundsBehindCell):
2580
2581 2006-10-05  Mitz Pettel  <mitz@webkit.org>
2582
2583         Reviewed by Darin.
2584
2585         - http://bugs.webkit.org/show_bug.cgi?id=10386
2586           Delete RenderImageButton.* and remove references from .vcproj and .bkl files
2587
2588         * CMakeLists.txt:
2589         * WebCore.vcproj/WebCore/WebCore.vcproj:
2590         * WebCoreSources.bkl:
2591         * rendering/RenderImageButton.cpp: Removed.
2592         * rendering/RenderImageButton.h: Removed.
2593
2594 2006-10-05  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2595
2596         Reviewed by Darin.
2597
2598         - http://bugs.webkit.org/show_bug.cgi?id=11067
2599           manual-tests/scrollbar-hittest2.html is invalid
2600
2601         * manual-tests/scrollbar-hittest2.html:
2602
2603 2006-10-05  David Carson  <dacarson@gmail.com>
2604
2605         Reviewed by Darin.
2606
2607         http://bugs.webkit.org/show_bug.cgi?id=11152
2608         Adjust the tokenizer chunk size to be smaller for
2609         mobile devices, and also decrease the yield timer
2610         for the tokenizer so that it can resume earlier.
2611
2612         * html/HTMLTokenizer.cpp:
2613         * config.h:
2614
2615 2006-10-05  Adam Roben  <aroben@apple.com>
2616
2617         Removing accidentally-checked-in do-nothing code.
2618
2619         * html/HTMLInputElement.cpp:
2620         (WebCore::HTMLInputElement::defaultEventHandler):
2621
2622 2006-10-05  David Carson  <dacarson@gmail.com>
2623
2624         Reviewed by Mitz.
2625
2626         http://bugs.webkit.org/show_bug.cgi?id=11158
2627         Initialize class variables
2628
2629         * rendering/RenderLayer.cpp:
2630         (WebCore::RenderLayer::RenderLayer):
2631
2632 2006-10-05  Don Gibson  <dgibson77@gmail.com>
2633
2634         Reviewed by Darin, landed by Adam.
2635
2636         http://bugs.webkit.org/show_bug.cgi?id=11176
2637         Fix win32 build, adapt to Maciej's ResourceLoader changes.
2638
2639         * platform/win/ResourceLoaderWin.cpp:
2640         (WebCore::ResourceLoader::start):
2641
2642 2006-10-05  Marvin Decker  <marv.decker@gmail.com>
2643
2644         Reviewed by Darin.
2645
2646         http://bugs.webkit.org/show_bug.cgi?id=10989
2647         Provide a way for embedders to implement BrowserExtensionWin
2648
2649         * WebCore.vcproj/WebCore/WebCore.vcproj:
2650         * bridge/win/BrowserExtensionWin.cpp: Added.
2651         (BrowserExtensionWin::BrowserExtensionWin):
2652         (BrowserExtensionWin::setTypedIconURL):
2653         (BrowserExtensionWin::setIconURL):
2654         (BrowserExtensionWin::getHistoryLength):
2655         (BrowserExtensionWin::canRunModal):
2656         (BrowserExtensionWin::createNewWindow):
2657         (BrowserExtensionWin::canRunModalNow):
2658         (BrowserExtensionWin::runModal):
2659         (BrowserExtensionWin::goBackOrForward):
2660         (BrowserExtensionWin::historyURL):
2661         * bridge/win/BrowserExtensionWin.h:
2662         * bridge/win/FrameWin.cpp:
2663         (WebCore::FrameWin::createNewWindow):
2664         * bridge/win/FrameWin.h:
2665         * platform/win/TemporaryLinkStubs.cpp:
2666
2667 2006-10-05  Geoffrey Garen  <ggaren@apple.com>
2668
2669         Reviewed by Darin.
2670         
2671         Fixed <rdar://problem/4766987>
2672         
2673         - renamed ScrollBar to Scrollbar and scroll bar to scrollbar in every case
2674         except for file names.
2675         
2676         - fixed RenderLayer to properly tear down scrollbars, removing them from
2677         their parents.
2678
2679         * bindings/js/kjs_window.cpp:
2680         (KJS::showModalDialog):
2681         (KJS::setWindowFeature):
2682         (KJS::parseWindowFeatures):
2683         * bridge/BrowserExtension.h:
2684         * dom/Document.cpp:
2685         (WebCore::Document::setInPageCache):
2686         * html/HTMLFrameElement.cpp:
2687         (WebCore::HTMLFrameElement::init):
2688         (WebCore::HTMLFrameElement::parseMappedAttribute):
2689         * html/HTMLFrameElement.h:
2690         (WebCore::HTMLFrameElement::scrollingMode):
2691         * page/Frame.cpp:
2692         (WebCore::Frame::finishedParsing):
2693         (WebCore::Frame::scrollbarsVisible):
2694         * page/FrameView.cpp:
2695         (WebCore::FrameViewPrivate::FrameViewPrivate):
2696         (WebCore::FrameViewPrivate::reset):
2697         (WebCore::FrameView::~FrameView):
2698         (WebCore::FrameView::resetScrollbars):
2699         (WebCore::FrameView::clear):
2700         (WebCore::FrameView::initScrollbars):
2701         (WebCore::FrameView::applyOverflowToViewport):
2702         (WebCore::FrameView::layout):
2703         (WebCore::FrameView::handleMousePressEvent):
2704         (WebCore::selectCursor):
2705         (WebCore::FrameView::handleMouseMoveEvent):
2706         (WebCore::FrameView::setScrollbarsMode):
2707         (WebCore::FrameView::setVScrollbarMode):
2708         (WebCore::FrameView::setHScrollbarMode):
2709         (WebCore::FrameView::restoreScrollbar):
2710         (WebCore::FrameView::dispatchMouseEvent):
2711         (WebCore::FrameView::scrollbarMoved):
2712         * page/FrameView.h:
2713         * page/MouseEventWithHitTestResults.cpp:
2714         (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
2715         * page/MouseEventWithHitTestResults.h:
2716         (WebCore::MouseEventWithHitTestResults::scrollbar):
2717         * platform/ScrollBar.cpp:
2718         (WebCore::Scrollbar::Scrollbar):
2719         (WebCore::Scrollbar::setValue):
2720         (WebCore::Scrollbar::setProportion):
2721         (WebCore::Scrollbar::setSteps):
2722         (WebCore::Scrollbar::scroll):
2723         * platform/ScrollBar.h:
2724         (WebCore::):
2725         (WebCore::ScrollbarClient::~ScrollbarClient):
2726         (WebCore::Scrollbar::~Scrollbar):
2727         (WebCore::Scrollbar::orientation):
2728         (WebCore::Scrollbar::controlSize):
2729         (WebCore::Scrollbar::hasPlatformScrollbars):
2730         (WebCore::Scrollbar::client):
2731         * platform/ScrollBarMode.h:
2732         (WebCore::):
2733         * platform/ScrollView.h:
2734         * rendering/RenderBlock.cpp:
2735         (WebCore::RenderBlock::isPointInScrollbar):
2736         * rendering/RenderLayer.cpp:
2737         (WebCore::RenderLayer::RenderLayer):
2738         (WebCore::RenderLayer::~RenderLayer):
2739         (WebCore::RenderLayer::scrollToOffset):
2740         (WebCore::RenderLayer::horizontaScrollbarWidget):
2741         (WebCore::RenderLayer::verticalScrollbarWidget):
2742         (WebCore::RenderLayer::valueChanged):
2743         (WebCore::RenderLayer::createScrollbar):
2744         (WebCore::RenderLayer::destroyScrollbar):
2745         (WebCore::RenderLayer::setHasHorizontalScrollbar):
2746         (WebCore::RenderLayer::setHasVerticalScrollbar):
2747         (WebCore::RenderLayer::verticalScrollbarWidth):
2748         (WebCore::RenderLayer::horizontalScrollbarHeight):
2749         (WebCore::RenderLayer::updateScrollInfoAfterLayout):
2750         * rendering/RenderLayer.h:
2751         (WebCore::RenderLayer::horizontalScrollbar):
2752         (WebCore::RenderLayer::verticalScrollbar):
2753         * rendering/RenderListBox.cpp:
2754         (WebCore::RenderListBox::~RenderListBox):
2755         (WebCore::RenderListBox::calcMinMaxWidth):
2756         (WebCore::RenderListBox::isPointInScrollbar):
2757         (WebCore::RenderListBox::optionAtPoint):
2758         (WebCore::RenderListBox::valueChanged):
2759         * rendering/RenderListBox.h:
2760         * rendering/RenderObject.h:
2761         (WebCore::RenderObject::NodeInfo::scrollbar):
2762         (WebCore::RenderObject::NodeInfo::setScrollbar):
2763
2764 2006-10-05  Don Gibson  <dgibson77@gmail.com>
2765
2766         Reviewed by Adam.
2767
2768         http://bugs.webkit.org/show_bug.cgi?id=11138
2769         Incorrect mouse event generation on Windows
2770
2771         * platform/win/MouseEventWin.cpp:
2772         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
2773         (1) Set mouse button even for non-click-related messages.
2774         (2) Track clicks correctly for all buttons, not just the left button.
2775
2776 2006-10-05  Nikolas Zimmermann  <zimmermann@kde.org>
2777
2778         Reviewed and landed by ap.
2779
2780         Fix Qt/Linux build, adapt to Eric's quartz changes and to Maciej's ResourceLoader changes.
2781
2782         * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
2783         (WebCore::KRenderingPaintServerLinearGradientQt::renderPath):
2784         (WebCore::KRenderingPaintServerLinearGradientQt::setup):
2785         (WebCore::KRenderingPaintServerRadialGradientQt::setup):
2786         (WebCore::KRenderingPaintServerRadialGradientQt::renderPath):
2787         * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp:
2788         (WebCore::KRenderingPaintServerPatternQt::renderPath):
2789         * kcanvas/device/qt/KRenderingPaintServerQt.cpp:
2790         (WebCore::KRenderingPaintServerQt::setPenProperties):
2791         * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp:
2792         (WebCore::KRenderingPaintServerSolidQt::setup):
2793         (WebCore::KRenderingPaintServerSolidQt::renderPath):
2794         * kcanvas/device/qt/RenderPathQt.cpp:
2795         (WebCore::getPathStroke):
2796
2797 2006-10-05  Alexey Proskuryakov  <ap@nypop.com>
2798
2799         Reviewed by Darin.
2800
2801         http://bugs.webkit.org/show_bug.cgi?id=11054
2802         REGRESSION: Traditional Chinese encoding in login authentication
2803
2804         1. Treat GB2312 encoding as GBK (its more modern superset), to match other browsers.
2805         2. On the Web, GB2312 is encoded as EUC-CN or HZ, while ICU provides a native encoding
2806         for encoding GB_2312-80 and several others. So, we need to override this behavior, too.
2807
2808         * platform/StreamingTextDecoderICU.cpp:
2809         (WebCore::TextCodecICU::registerEncodingNames):
2810
2811 2006-10-05  Eric Seidel  <eric@eseidel.com>
2812
2813         Reviewed by mjs.
2814
2815         Removed dead code.
2816         Filed http://bugs.webkit.org/show_bug.cgi?id=11167 to for followup on removed FIXMEs
2817
2818         * WebCore.xcodeproj/project.pbxproj:
2819         * ksvg2/ecma/GlobalObject.cpp: Removed.
2820         * ksvg2/ecma/GlobalObject.h: Removed.
2821
2822 2006-10-05  Adam Roben  <aroben@apple.com>
2823
2824         Reviewed by Maciej.
2825
2826         Small ResourceLoaderInternal tweak.
2827
2828         * platform/ResourceLoaderInternal.h:
2829         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
2830
2831 2006-10-05  Eric Seidel  <eric@eseidel.com>
2832
2833         Reviewed by mjs.
2834
2835         More incremental KCanvas cleanup and optimization.
2836         Added SVGRenderStyle::hasFill() and hasStroke() removed more KSVGPainterFactory methods.
2837         Optimized dash array usage to not malloc.
2838         Also removed un-needed KSVGRenderingStyle includes.
2839
2840         * kcanvas/KCanvasTreeDebug.cpp:
2841         (WebCore::operator<<):
2842         * kcanvas/RenderPath.cpp:
2843         (WebCore::RenderPath::nodeAtPoint):
2844         * kcanvas/device/quartz/KCanvasItemQuartz.mm:
2845         (WebCore::RenderPath::strokeBBox):
2846         * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
2847         (WebCore::KRenderingPaintServerGradientQuartz::setup):
2848         (WebCore::KRenderingPaintServerGradientQuartz::renderPath):
2849         (WebCore::KRenderingPaintServerGradientQuartz::teardown):
2850         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
2851         (WebCore::KRenderingPaintServerSolidQuartz::setup):
2852         (WebCore::KRenderingPaintServerSolidQuartz::renderPath):
2853         (WebCore::KRenderingPaintServerPatternQuartz::setup):
2854         (WebCore::KRenderingPaintServerPatternQuartz::renderPath):
2855         * kcanvas/device/quartz/QuartzSupport.mm:
2856         (WebCore::applyStrokeStyleToContext):
2857         * ksvg2/css/SVGRenderStyle.h:
2858         (WebCore::SVGRenderStyle::hasStroke):
2859         (WebCore::SVGRenderStyle::hasFill):
2860         * ksvg2/misc/KCanvasRenderingStyle.cpp:
2861         (WebCore::KSVGPainterFactory::fillPaintServer):
2862         (WebCore::KSVGPainterFactory::strokePaintServer):
2863         * ksvg2/misc/KCanvasRenderingStyle.h:
2864
2865 2006-10-05  Maciej Stachowiak  <mjs@apple.com>
2866
2867         Reviewed by Adam.
2868
2869         - changed ResourceLoader to be refcounted
2870
2871         It keeps a ref on itself while loading as well. This makes
2872         for a much saner memory management model than the previous.
2873
2874         * bridge/mac/WebCoreResourceLoaderImp.mm:
2875         (-[WebCoreResourceLoaderImp finishJobAndHandle:]):
2876         * dom/XMLTokenizer.cpp:
2877         (WebCore::openFunc):
2878         * loader/icon/IconLoader.cpp:
2879         (IconLoader::IconLoader):
2880         (IconLoader::~IconLoader):
2881         (IconLoader::startLoading):
2882         (IconLoader::stopLoading):
2883         (IconLoader::receivedData):
2884         * loader/icon/IconLoader.h:
2885         * loader/loader.cpp:
2886         (WebCore::Loader::servePendingRequests):
2887         * platform/ResourceLoader.cpp:
2888         (WebCore::ResourceLoader::create):
2889         (WebCore::ResourceLoader::kill):
2890         * platform/ResourceLoader.h:
2891         * platform/ResourceLoaderInternal.h:
2892         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
2893         * platform/mac/ResourceLoaderMac.mm:
2894         (WebCore::ResourceLoader::start):
2895         * xml/XSLTProcessor.cpp:
2896         (WebCore::docLoaderFunc):
2897         * xml/xmlhttprequest.cpp:
2898         (WebCore::XMLHttpRequest::send):
2899         * xml/xmlhttprequest.h:
2900
2901 2006-10-05  Eric Seidel  <eric@eseidel.com>
2902
2903         Reviewed by mjs.
2904
2905         Improve SVG opacity performance by clipping to the object bbox before starting a new opacity layer.
2906         http://bugs.webkit.org/show_bug.cgi?id=11163
2907         
2908         No SVG performance tests yet.
2909
2910         * kcanvas/RenderForeignObject.cpp:
2911         (WebCore::RenderForeignObject::paint):
2912         * kcanvas/RenderSVGContainer.cpp:
2913         (WebCore::RenderSVGContainer::paint):
2914         * kcanvas/RenderSVGImage.cpp:
2915         (WebCore::RenderSVGImage::paint):
2916         * kcanvas/RenderSVGText.cpp:
2917         (WebCore::RenderSVGText::paint):
2918
2919 2006-10-05  Dave Hyatt  <hyatt@apple.com>
2920
2921         Stub out some stuff for widget focusability.
2922
2923         Reviewed by maciej
2924  
2925         * page/FrameView.cpp:
2926         (WebCore::FrameView::dispatchMouseEvent):
2927         * platform/ScrollView.h:
2928         * platform/Widget.h:
2929
2930 2006-10-05  Adam Roben  <aroben@apple.com>
2931
2932         Reviewed by Maciej and Tim H.
2933
2934         Copy some WebKit frame lifetime logic into WebCore -- just a step
2935         along the path to frame lifetime being handled completely in WebCore.
2936
2937         * bridge/mac/FrameMac.mm:
2938         (WebCore::FrameMac::setView): Move platform-independent parts of this
2939         method into Frame.
2940         * page/Frame.cpp:
2941         (WebCore::Frame::setView): Adding platform-independent parts of
2942         FrameMac::setView
2943         (WebCore::Frame::detachChildren): New method to accomplish what
2944         -[WebFrameBridge _detachChildren] currently does.
2945         (WebCore::Frame::clear): Call detachChildren
2946         * page/Frame.h: Add declaration for detachChildren
2947
2948 2006-10-04  Alice Liu  <alice.liu@apple.com>
2949
2950         Reviewed by Darin.
2951
2952         Fixed <rdar://problem/4758577> REGRESSION: Business and People widgets fails to complete search query
2953
2954         * xml/xmlhttprequest.cpp:
2955         (WebCore::XMLHttpRequest::setRequestHeader):
2956         removed exception set when the request is not open yet
2957
2958 2006-10-04  Anders Carlsson  <acarlsson@apple.com>
2959
2960         Reviewed by John Sullivan.
2961
2962         <rdar://problem/4654328>
2963         Safari Crashes in WebCore::PluginTokenizer::writeRawData If I Try to Open a SWF File With Plug-ins Turned Off
2964         
2965         * loader/PluginDocument.cpp:
2966         (WebCore::PluginTokenizer::writeRawData):
2967         Only send the data to the plug-in if plug-ins are enabled, otherwise just silently eat it.
2968
2969 2006-10-03  Alexey Proskuryakov  <ap@nypop.com>
2970
2971         Reviewed by Tim H.
2972
2973         http://bugs.webkit.org/show_bug.cgi?id=11130
2974         Convert "undefined" to AE missing value
2975
2976         * bridge/mac/WebCoreFrameBridge.mm:
2977         (aeDescFromJSValue): return missing value for UndefinedType.
2978
2979 2006-10-03  Dave Hyatt  <hyatt@apple.com>
2980
2981         Scrolling work.  Eliminate convertTo/FromContainingWindow as cross-platform functions.  Add back in
2982         the windowToContents/contentsToWindow functions.
2983         
2984         Reviewed by anders
2985
2986         * bridge/mac/FrameMac.mm:
2987         (WebCore::FrameMac::eventMayStartDrag):
2988         (WebCore::FrameMac::dragHysteresisExceeded):
2989         (WebCore::FrameMac::mouseDown):
2990         (WebCore::FrameMac::shouldDragAutoNode):
2991         (WebCore::FrameMac::sendContextMenuEvent):
2992         * bridge/mac/FrameViewMac.mm:
2993         (WebCore::FrameView::passMousePressEventToScrollbar):
2994         * bridge/mac/WebCoreFrameBridge.mm:
2995         (-[WebCoreFrameBridge _visiblePositionForPoint:]):
2996         * dom/EventTargetNode.cpp:
2997         (WebCore::EventTargetNode::dispatchMouseEvent):
2998         (WebCore::EventTargetNode::dispatchWheelEvent):
2999         * page/Frame.cpp:
3000         (WebCore::Frame::selectClosestWordFromMouseEvent):
3001         (WebCore::Frame::handleMousePressEventTripleClick):
3002         (WebCore::Frame::handleMousePressEventSingleClick):
3003         (WebCore::Frame::handleMouseMoveEvent):
3004         (WebCore::Frame::handleMouseReleaseEvent):
3005         * page/FrameView.cpp:
3006         (WebCore::FrameView::handleMousePressEvent):
3007         (WebCore::FrameView::handleMouseDoubleClickEvent):
3008         (WebCore::selectCursor):
3009         (WebCore::FrameView::handleMouseMoveEvent):
3010         (WebCore::FrameView::handleMouseReleaseEvent):
3011         (WebCore::FrameView::dispatchDragEvent):
3012         (WebCore::FrameView::prepareMouseEvent):
3013         (WebCore::FrameView::handleWheelEvent):
3014         * page/FrameView.h:
3015         * platform/ScrollBar.cpp:
3016         (WebCore::ScrollBar::setValue):
3017         * platform/ScrollView.h:
3018         * platform/Widget.h:
3019         (WebCore::Widget::scrolled):
3020         * platform/mac/ScrollViewMac.mm:
3021         (WebCore::ScrollView::contentsToWindow):
3022         (WebCore::ScrollView::windowToContents):
3023         (WebCore::ScrollView::scrollbarUnderMouse):
3024         * platform/mac/WidgetMac.mm:
3025         * rendering/RenderLayer.cpp:
3026         (WebCore::RenderLayer::resize):
3027         (WebCore::RenderLayer::positionScrollbars):
3028         * rendering/RenderReplaced.cpp:
3029         (WebCore::RenderReplaced::shouldPaint):
3030         * rendering/RenderView.cpp:
3031         * rendering/RenderView.h:
3032         * rendering/RenderWidget.cpp:
3033         (WebCore::RenderWidget::setWidget):
3034
3035 2006-09-26  David Smith  <catfish.man@gmail.com>
3036
3037         Reviewed by Timothy.
3038
3039         http://bugs.webkit.org/show_bug.cgi?id=3723
3040         Add -scrollDOMRangeToVisible:
3041
3042         No automated tests are possible as this code path isn't reachable from JavaScript.
3043
3044         * bridge/mac/WebCoreFrameBridge.h:
3045         * bridge/mac/WebCoreFrameBridge.mm:
3046         (-[WebCoreFrameBridge scrollDOMRangeToVisible:]):
3047
3048 2006-10-03  Graham Dennis  <graham.dennis@gmail.com>
3049
3050         Reviewed by Timothy.
3051
3052         <http://bugs.webkit.org/show_bug.cgi?id=10338>
3053         When contentEditable, cursor doesn't change to hand
3054         
3055         Allow the behaviour of editable links to be specified by a WebPreference
3056         The preference WebKitEditableLinkBehavior has four options:
3057          - AlwaysLive: Safari 2.0 behaviour
3058          - OnlyLiveWithShiftKey: Firefox/WinIE behaviour (and prior WebKit-ToT behaviour)
3059          - LiveWhenNotFocused: Editable links are live only when their editable block is not
3060              focused, or when the shift key is pressed
3061          - DefaultBehavior: This is the same as OnlyLiveWithShiftKey.
3062          
3063         No layout tests, just a modification of a manual-test as it isn't possible to test
3064         this automatically.
3065
3066         * bridge/mac/WebCoreSettings.h:
3067         * bridge/mac/WebCoreSettings.mm:
3068         (-[WebCoreSettings setEditableLinkBehavior:]):
3069         (-[WebCoreSettings editableLinkBehavior]):
3070         * html/HTMLAnchorElement.cpp:
3071         (WebCore::HTMLAnchorElement::HTMLAnchorElement):
3072         (WebCore::HTMLAnchorElement::defaultEventHandler):
3073         (WebCore::HTMLAnchorElement::setActive):
3074         * html/HTMLAnchorElement.h:
3075         * manual-tests/contenteditable-link.html:
3076         * page/FrameView.cpp:
3077         (WebCore::nodeIsNotBeingEdited):
3078         (WebCore::selectCursor):
3079         * page/Settings.h:
3080         (WebCore::Settings::):
3081         (WebCore::Settings::Settings):
3082         (WebCore::Settings::editableLinkBehavior):
3083         (WebCore::Settings::setEditableLinkBehavior):
3084
3085 2006-10-03  Beth Dakin  <bdakin@apple.com>
3086
3087         Reviewed Darin.
3088
3089         No test cases needed.
3090
3091         Implemented a version of StringImpl::append that takes a UChar* and 
3092         a length.
3093
3094         * platform/StringImpl.cpp:
3095         (WebCore::StringImpl::append):
3096         (WebCore::StringImpl::insert): Call new append instead of making a 
3097         new StringImpl.
3098         * platform/StringImpl.h:
3099
3100 2006-10-03  MorganL  <morganl.webkit@yahoo.com>
3101
3102         Reviewed by Darin.
3103
3104         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11099
3105         HttpSendRequestEx results in ERROR_HTTP_HEADER_NOT_FOUND
3106
3107         * platform/win/ResourceLoaderWin.cpp:
3108         (WebCore::ResourceLoader::onHandleCreated):
3109
3110 2006-10-02  Geoffrey Garen  <ggaren@apple.com>
3111
3112         Feared, loathed, reviewed by Darin.
3113
3114         More frame/iframe merging. Merged IFRAME::willRemove and IFRAME::detach 
3115         into FRAME, plus other cleanup.
3116         
3117         No new behavior, so no new test. Layout tests pass. Basic browsing and
3118         Mail editing seem to work.
3119         
3120         * dom/Node.cpp:
3121         (WebCore::Node::detach): Removed random commented-out code.
3122         * html/HTMLFrameElement.cpp:
3123         (WebCore::HTMLFrameElement::isURLAllowed): 
3124         (1) Removed reference to FrameView, to dissociate frame loading from rendering.
3125         (2) Renamed newURL to completeURL because the difference between newURL
3126         and URLString is that newURL is a KURL that is the complete version of URLString,
3127         not that it is new.
3128         (WebCore::HTMLFrameElement::willRemove): 
3129         (1) Removed close() call and moved close() code into willRemove(), also removing 
3130         close() call from detach(), since willRemove is the well-defined place 
3131         from DOM tear-down, not detach().
3132         (2) Removed manual renderer detach code because the DOM is not responsible
3133         for managing the render tree. I confirmed that this change not
3134         regress <rdar://problem/4132581>.
3135         (3) Removed questionable ASSERT. The ASSERT assumed that iframe elements
3136         lost their content frames after being removed from the DOM. That's our 
3137         current behavior, but it's going to change in future rounds of refactoring.
3138         This also fixes <rdar://problem/4750835>.
3139         (WebCore::HTMLFrameElement::setLocation): Removed wacky manual calls to
3140         attach/detach, because the render tree should not be in charge of deciding
3141         when to load.
3142         * html/HTMLFrameElement.h:
3143         * html/HTMLIFrameElement.cpp:
3144         (WebCore::HTMLIFrameElement::attach): Renamed renderPart to renderPartObject,
3145         because the renderer is a renderPartObject, not a renderPart.
3146         * html/HTMLIFrameElement.h:
3147
3148 2006-10-03  Mark Rowe  <bdash@webkit.org>
3149
3150         Reviewed by Mitz.
3151
3152         http://bugs.webkit.org/show_bug.cgi?id=11137
3153         Bug 11137: GdkLauncher dies with "pure virtual method called" if
3154         window is closed while page still loading
3155
3156         * platform/gdk/FrameGdk.cpp:
3157         (WebCore::FrameGdk::~FrameGdk): Call cancelAndClear to allow virtual
3158         methods to be called before the FrameGdk portion of "this" is torn down.
3159
3160 2006-10-03  Adam Roben  <aroben@apple.com>
3161
3162         Reviewed by Darin.
3163
3164         Handle tab key presses in the DOM.
3165
3166         * dom/EventTargetNode.cpp:
3167         (WebCore::EventTargetNode::defaultEventHandler): Add tab key handling.
3168         * page/FrameView.cpp:
3169         (WebCore::FrameView::advanceFocus): Rename and reimplement
3170         focusNextPrevNode. Now we just call Element::focus().
3171         * page/FrameView.h: Rename focusNextPrevNode to advanceFocus and make
3172         it public.
3173
3174 2006-10-03  Justin Garcia  <justin.garcia@apple.com>
3175
3176         Reviewed by mjs
3177         
3178         <rdar://problem/4760612>
3179         TOT REGRESSION: Repro assertion failure when forwarding draft in Range::compareBoundaryPoints
3180         
3181         No layout test possible, attributedStringFrom:(DOMNode*)...etc isn't available to DRT.
3182         
3183         * dom/Range.cpp:
3184         (WebCore::Range::boundaryPointsValid): compareBoundaryPoints asserts that the incoming 
3185         positions are non-null since most of it's callers would be in a bad state if the positions 
3186         were null.  boundaryPointsValid, which calls compareBoundaryPoints, is an exception.  
3187         Instead of removing the assert I've added nil checks in boundaryPointsValid, to keep it 
3188         from entering compareBoundaryPoints and hitting the assert.
3189
3190 2006-10-03  Adele Peterson  <adele@apple.com>
3191
3192         Reviewed by Geoff.
3193
3194         Make code for turning off new listbox implementation mac-only, since there's no implementation on other platforms.
3195
3196         * html/HTMLSelectElement.cpp:
3197         (WebCore::HTMLSelectElement::recalcStyle):
3198         (WebCore::HTMLSelectElement::isKeyboardFocusable):
3199         (WebCore::HTMLSelectElement::isMouseFocusable):
3200         (WebCore::HTMLSelectElement::createRenderer):
3201         (WebCore::HTMLSelectElement::setRecalcListItems):
3202         (WebCore::HTMLSelectElement::notifyOptionSelected):
3203         (WebCore::HTMLSelectElement::defaultEventHandler):
3204
3205 2006-10-04  Darin Adler  <darin@apple.com>
3206
3207         Reviewed by Geoff.
3208
3209         - fix http://bugs.webkit.org/show_bug.cgi?id=11132
3210           Caret disappears when you're typing
3211
3212         * editing/SelectionController.cpp:
3213         (WebCore::SelectionController::setSelection): Remove unnecessary call to
3214         clearCaretRectIfNeeded. The recomputeCaretRect now takes care of this.
3215         (WebCore::SelectionController::recomputeCaretRect): Explicitly set m_needsLayout
3216         to false so we can get the old caret repaint rect. Later we need to change the
3217         design so getting the rect doesn't have a side effect of causing a layout without
3218         invalidation.
3219
3220 2006-10-03  David Harrison  <harrison@apple.com>
3221
3222         Reviewed by Maciej.
3223
3224         <rdar://problem/4671286> Candidate Window isn't displayed and only first candidate is displayed at typing location.
3225
3226         Updated test:
3227         * fast/text/justified-text-rect.html
3228
3229         * bridge/mac/WebCoreFrameBridge.mm:
3230         (-[WebCoreFrameBridge convertToNSRange:]):
3231         (-[WebCoreFrameBridge convertToDOMRange:]):
3232         Make the selection's root editable element (or the document itself) be
3233         the basis for NSRange conversions. This supports "shadow DOM" like
3234         that for text fields and text areas.
3235         
3236         * editing/CompositeEditCommand.cpp:
3237         (WebCore::CompositeEditCommand::moveParagraphs):
3238         Pass the document element as the scope.
3239         
3240         * editing/TextIterator.cpp:
3241         (WebCore::TextIterator::rangeFromLocationAndLength):
3242         Make the first parameter the scope.
3243         
3244         * editing/TextIterator.h:
3245         Make the first parameter of rangeFromLocationAndLength() the scope.
3246
3247 2006-10-03  Nikolas Zimmermann  <zimmermann@kde.org>
3248
3249         Reviewed by Eric.
3250
3251         Fix Qt/Linux build.
3252
3253         * CMakeLists.txt: Add counter related files.
3254
3255 2006-10-03  Mark Rowe  <bdash@webkit.org>
3256
3257         Reviewed by Eric.
3258
3259         http://bugs.webkit.org/show_bug.cgi?id=10981
3260         Linux/GDK build fixes
3261
3262         Based on a patch by Krzysztof Kowalczyk.
3263
3264         * WebCoreSources.bkl:
3265         * platform/gdk/FrameGdk.cpp:
3266         (WebCore::doScroll):
3267         (WebCore::FrameGdk::handleGdkEvent):
3268         * platform/gdk/PlatformScrollBar.h: Added.
3269         (WebCore::PlatformScrollBar::isWidget):
3270         * platform/gdk/ScrollViewGdk.cpp:
3271         * platform/gdk/TemporaryLinkStubs.cpp:
3272         (FrameView::passMousePressEventToScrollbar):
3273         (FrameView::passMousePressEventToSubframe):
3274         (FrameView::passMouseReleaseEventToSubframe):
3275         (FrameView::passMouseMoveEventToSubframe):
3276         (FrameView::passWheelEventToSubframe):
3277         (Cursor::Cursor):
3278         (Widget::invalidate):
3279         (Widget::invalidateRect):
3280         (ScrollView::wheelEvent):
3281         (ScrollView::convertToContainingWindow):
3282         (ScrollView::convertFromContainingWindow):
3283         (GraphicsContext::clip):
3284         (PlatformScrollBar::PlatformScrollBar):
3285         (PlatformScrollBar::updateThumbPosition):
3286         (PlatformScrollBar::updateThumbProportion):
3287         (ScrollBar::ScrollBar):
3288         (ScrollBar::setProportion):
3289         (WebCore::supportedKeySizes):
3290         (WebCore::signedPublicKeyAndChallengeString):
3291         * platform/gdk/WheelEventGdk.cpp:
3292         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
3293         * platform/gdk/WidgetGdk.cpp:
3294         (WebCore::Widget::convertToContainingWindow):
3295         (WebCore::Widget::convertFromContainingWindow):
3296
3297 2006-10-02  Adam Roben  <aroben@apple.com>
3298
3299         Reviewed by Maciej.
3300
3301         Let Windows determine which mouse button is pressed.
3302
3303         * platform/PlatformMouseEvent.h: Add message parameter to constructor.
3304         * platform/win/MouseEventWin.cpp:
3305         (WebCore::PlatformMouseEvent::PlatformMouseEvent): Use message
3306         parameter to determine which mouse button is pressed.
3307
3308 2006-10-02  Justin Garcia  <justin.garcia@apple.com>
3309
3310         Reviewed by anders
3311         
3312         Build fix
3313         
3314         * editing/SelectionController.cpp:
3315         (WebCore::SelectionController::empty):
3316         * editing/SelectionController.h:
3317
3318 2006-10-02  Justin Garcia  <justin.garcia@apple.com>
3319
3320         Reviewed by john
3321         
3322         <rdar://problem/4755287>
3323         Writely Editor: Crash occurs at WebCore::maxDeepOffset(WebCore::Node const*) when attempting to create a OL/UL following a HR element
3324
3325         * editing/markup.cpp:
3326         (WebCore::createMarkup): Migrate to isBlock (isBlockFlow is true for inline replaced 
3327         elements).  Don't skip blocks that aren't containers (like horizontal rules).
3328
3329 2006-10-03  Darin Adler  <darin@apple.com>
3330
3331         Reviewed by Justin Garcia.
3332
3333         - correct mistaken code that would restart blinking every
3334           time "invalidateSelection" is called even if the caret
3335           has not moved
3336
3337         * editing/SelectionController.h:
3338         * editing/SelectionController.cpp:
3339         (WebCore::SelectionController::setSelection): Update for name change.
3340         (WebCore::SelectionController::recomputeCaretRect): New function.
3341         Computes caret rect and does any necessary invalidation if the rect
3342         changes.
3343         (WebCore::SelectionController::invalidateCaretRect): Renamed from
3344         needsCaretRepaint. Invalidates the caret rect unconditionally. Also
3345         calls recomputeCaretRect as a side effect.
3346
3347         * page/Frame.cpp:
3348         (WebCore::Frame::invalidateSelection): Remove unneeded call to
3349         clearCaretRectIfNeeded.
3350         (WebCore::Frame::clearCaretRectIfNeeded): Updated for name change.
3351         (WebCore::Frame::selectionLayoutChanged): Restructured to use the new
3352         recomputeCaretRect function and not restart blinking if caret has
3353         not changed position.
3354         (WebCore::Frame::caretBlinkTimerFired): Removed some checks that
3355         are not needed since selectionLayoutChanged already checks these.
3356
3357         * page/FramePrivate.h: Removed unused m_blinkCaret.
3358
3359 2006-10-02  Beth Dakin  <bdakin@apple.com>
3360
3361         Reviewed by Adam.
3362
3363         Build fix. Add counters to vcproj.
3364
3365         * WebCore.vcproj/WebCore/WebCore.vcproj:
3366
3367 2006-10-02  Brady Eidson  <beidson@apple.com>
3368
3369         Reviewed by Adele
3370
3371         If the Icon DB schema changes underneath you, the latest ToT can crash and burn when writing
3372         icon data out because we don't correctly check SQL error conditions.
3373
3374         * loader/icon/IconDataCache.cpp:
3375         (WebCore::IconDataCache::writeToDatabase):
3376
3377 2006-10-02  Steve Falkenburg  <sfalken@apple.com>
3378
3379         Reviewed by Hyatt.
3380
3381         Added method to find out whether a layout has occurred.
3382
3383         * page/FrameView.cpp:
3384         (WebCore::FrameView::didFirstLayout):
3385         * page/FrameView.h:
3386
3387 2006-10-02  Beth Dakin  <bdakin@apple.com>
3388
3389         Reviewed by Darin.
3390
3391         Initial implementation of CSS2 counters. See http://
3392         bugs.webkit.org/show_bug.cgi?id=4980 for more details.
3393
3394         * WebCore.xcodeproj/project.pbxproj:
3395         * css/CSSComputedStyleDeclaration.cpp: 
3396         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Return 
3397         the increment/reset list now that this is implemented.
3398         * css/CSSPrimitiveValue.cpp:
3399         (WebCore::CSSPrimitiveValue::cssText): 
3400         * css/Counter.h:
3401         (WebCore::Counter::Counter):
3402         (WebCore::Counter::~Counter):
3403         (WebCore::Counter::identifier):
3404         (WebCore::Counter::listStyle):
3405         (WebCore::Counter::separator):
3406         (WebCore::Counter::listStyleNumber):
3407         (WebCore::Counter::setIdentifier):
3408         (WebCore::Counter::setListStyle):
3409         (WebCore::Counter::setSeparator):
3410         * css/cssparser.cpp:
3411         (WebCore::CSSParser::addProperty): Take care of reset/increment
3412         (WebCore::CSSParser::parseValue):
3413         (WebCore::CSSParser::parseContent): content can now take counters
3414         (WebCore::CSSParser::parseCounterContent): Parse counter() and 
3415         counters()
3416         (WebCore::CSSParser::parseCounter): Parse counter-reset and 
3417         counter-increment
3418         * css/cssparser.h:
3419         * css/cssstyleselector.cpp:
3420         (WebCore::CSSStyleSelector::matchUARules):
3421         (WebCore::CSSStyleSelector::applyProperty):
3422         * platform/PlatformString.h:
3423         * platform/String.cpp:
3424         (WebCore::String::insert): Implemented a version of insert that 
3425         accepts a UChar* and a length.
3426         * platform/StringImpl.cpp:
3427         (WebCore::StringImpl::insert): Same as above.
3428         * platform/StringImpl.h:
3429         * rendering/CounterListItem.h: Added.
3430         * rendering/CounterNode.cpp: Added.
3431         (WebCore::CounterNode::CounterNode):
3432         (WebCore::CounterNode::insertAfter):
3433         (WebCore::CounterNode::removeChild):
3434         (WebCore::CounterNode::remove):
3435         (WebCore::CounterNode::setUsesSeparator):
3436         (WebCore::CounterNode::recountAndGetNext):
3437         (WebCore::CounterNode::recountTree):
3438         (WebCore::CounterNode::setSelfDirty):
3439         (WebCore::CounterNode::setParentDirty):
3440         * rendering/CounterNode.h: Added.
3441         (WebCore::CounterNode::~CounterNode):
3442         (WebCore::CounterNode::parent):
3443         (WebCore::CounterNode::previousSibling):
3444         (WebCore::CounterNode::nextSibling):
3445         (WebCore::CounterNode::firstChild):
3446         (WebCore::CounterNode::lastChild):
3447         (WebCore::CounterNode::value):
3448         (WebCore::CounterNode::setValue):
3449         (WebCore::CounterNode::count):
3450         (WebCore::CounterNode::setCount):
3451         (WebCore::CounterNode::setHasSeparator):
3452         (WebCore::CounterNode::isReset):
3453         (WebCore::CounterNode::hasSeparator):
3454         (WebCore::CounterNode::willNeedLayout):
3455         (WebCore::CounterNode::setWillNeedLayout):
3456         (WebCore::CounterNode::isRoot):
3457         (WebCore::CounterNode::setRenderer):
3458         (WebCore::CounterNode::renderer):
3459         * rendering/CounterResetNode.cpp: Added.
3460         (WebCore::CounterResetNode::CounterResetNode):
3461         (WebCore::CounterResetNode::insertAfter):
3462         (WebCore::CounterResetNode::removeChild):
3463         (WebCore::CounterResetNode::recountAndGetNext):
3464         (WebCore::CounterResetNode::setParentDirty):
3465         (WebCore::CounterResetNode::updateTotal):
3466         * rendering/CounterResetNode.h: Added.
3467         (WebCore::CounterResetNode::firstChild):
3468         (WebCore::CounterResetNode::lastChild):
3469         (WebCore::CounterResetNode::isReset):
3470         (WebCore::CounterResetNode::total):
3471         * rendering/RenderContainer.cpp:
3472         (WebCore::RenderContainer::updatePseudoChildForObject): Account for 
3473         counter content.
3474         * rendering/RenderCounter.cpp: Added.
3475         (WebCore::RenderCounter::RenderCounter):
3476         (WebCore::RenderCounter::layout):
3477         (WebCore::toRoman):
3478         (WebCore::toLetterString):
3479         (WebCore::toHebrew):
3480         (WebCore::RenderCounter::convertValueToType):
3481         (WebCore::RenderCounter::calcMinMaxWidth):
3482         * rendering/RenderCounter.h: Added.
3483         (WebCore::RenderCounter::renderName):
3484         (WebCore::RenderCounter::isCounter):
3485         * rendering/RenderObject.cpp:
3486         (WebCore::getRenderObjectsToCounterNodeMaps): Maps RenderObjects to 
3487         maps of CounterNodes
3488         (WebCore::RenderObject::RenderObject):
3489         (WebCore::RenderObject::destroy): Destroy the maps.
3490         (WebCore::RenderObject::findCounter): Finds/creates counters.
3491         * rendering/RenderObject.h:
3492         (WebCore::RenderObject::isCounter):
3493         * rendering/RenderStyle.cpp:
3494         (WebCore::StyleVisualData::StyleVisualData):
3495         (WebCore::RenderStyle::arenaDelete):
3496         (WebCore::RenderStyle::RenderStyle):
3497         (WebCore::RenderStyle::diff):
3498         (WebCore::RenderStyle::setContent):
3499         (WebCore::ContentData::clearContent):
3500         (WebCore::RenderStyle::counterDataEquivalent):
3501         (WebCore::hasCounter):
3502         (WebCore::RenderStyle::hasCounterReset):
3503         (WebCore::RenderStyle::hasCounterIncrement):
3504         (WebCore::readCounter):
3505         (WebCore::RenderStyle::counterReset):
3506         (WebCore::RenderStyle::counterIncrement):
3507         * rendering/RenderStyle.h:
3508         (WebCore::StyleVisualData::operator==):
3509         (WebCore::CounterData::CounterData):
3510         (WebCore::CounterData::identifier):
3511         (WebCore::CounterData::listStyle):
3512         (WebCore::CounterData::separator):
3513         (WebCore::ContentData::contentCounter):
3514         (WebCore::ContentData::):
3515         (WebCore::RenderStyle::counterIncrement):
3516         (WebCore::RenderStyle::counterReset):
3517         (WebCore::RenderStyle::setCounterIncrement):
3518         (WebCore::RenderStyle::setCounterReset):
3519         (WebCore::RenderStyle::setCounterResetList):
3520         (WebCore::RenderStyle::setCounterIncrementList):
3521         (WebCore::RenderStyle::counterResetValueList):
3522         (WebCore::RenderStyle::counterIncrementValueList):
3523
3524 2006-10-02  Adele Peterson  <adele@apple.com>
3525
3526         Reviewed by Adam.
3527
3528         - Fix for <rdar://problem/4463841> Switch to use new list box implementation for <select multiple>
3529
3530         There are a few outstanding issues, so I've left the old code in for now.  So you can use the old-style listboxes
3531         by using "-webkit-appearance:none".
3532
3533         * css/html4.css:
3534
3535 2006-10-02  David Harrison  <harrison@apple.com>
3536
3537         Reverted the code part of r16696, my patch for <rdar://problem/4641262>, because the problem was
3538         addressed at a deeper level by r16696, the patch for <http://bugs.webkit.org/show_bug.cgi?id=10842>.
3539         Left the layout test.
3540         
3541         * rendering/bidi.cpp:
3542         (WebCore::checkMidpoints):
3543
3544 2006-10-02  Nikolas Zimmermann  <zimmermann@kde.org>
3545
3546         Reviewed by eseidel.  Landed by eseidel.
3547
3548         Fix Qt/Linux build.
3549
3550         * platform/qt/TemporaryLinkStubs.cpp: s/DeprecatedStringList/Vector<String>/
3551         (WebCore::supportedKeySizes):
3552
3553 2006-10-02  Nikolas Zimmermann <zimmermann@kde.org>
3554
3555         Reviewed by eseidel & mjs.  Landed by eseidel.
3556
3557         Fix Qt/Linux build with older gcc 3.3.4.
3558         http://bugs.webkit.org/show_bug.cgi?id=11116
3559
3560         As discussed with Maciej, the GCC_ROOT_NS_HACK
3561         can be completely removed, as well as the friendship
3562         between cacheGlobalObject & the JS* objects.
3563
3564         * bindings/scripts/CodeGeneratorJS.pm: Remove friendship.
3565         * platform/image-decoders/png/pnggccrd.c: Fix comments for gcc3.
3566         (png_read_filter_row_mmx_avg):
3567         * platform/image-decoders/png/pngvcrd.c: Ditto.
3568         (png_mmx_support):
3569         (png_read_filter_row_mmx_avg):
3570
3571 2006-10-01  Maciej Stachowiak  <mjs@apple.com>
3572
3573         Rubber stamped by Alexey.
3574
3575         - reverted fix for http://bugs.webkit.org/show_bug.cgi?id=10893 since it led to layout test crashes
3576
3577         * css/CSSGrammar.y:
3578
3579 2006-10-01  Eric Seidel  <eric@webkit.org>
3580
3581         Reviewed by mjs.
3582
3583         Eliminate a few more hotspots in SVG drawing code.
3584         
3585         No test cases were harmed in the making of this patch.  (And SVG has no perf tests.)
3586
3587         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
3588         (WebCore::KRenderingPaintServerSolidQuartz::setup): use a single shared colorspace, avoid a few mallocs
3589         * platform/mac/ColorMac.mm:
3590         (+[WebCoreControlTintObserver WebCore]): store a single shared colorspace instance
3591
3592 2006-10-01  Geoffrey Garen  <ggaren@apple.com>
3593
3594         Reviewed by Maciej.
3595         
3596         More frame/iframe merging.
3597         
3598         - Removed needWidgetUpdate and related code. needWidgetUpdate is always
3599         false, so this was dead code.
3600         - Removed FIXME about setInViewSourceMode inside openURL(). openURL(), rather
3601         than attach(), is the correct place for setInViewSourceMode, because
3602         openURL() is the function that creates our frame.
3603         - Moved IFRAME insertedIntoDocument() code into FRAME, and removed FRAME
3604         code that did the same thing in other places.
3605         - Made FRAME's attach() method suffuciently generic so that IFRAME could
3606         call up to it, rather than skipping its superclass and calling up directly