Web Inspector: Timeline: record root event for the function calls enforced by console...
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-09-23  Ilya Tikhonovsky  <loislo@chromium.org>
2
3         Web Inspector: Timeline: record root event for the function calls enforced by console eval.
4         https://bugs.webkit.org/show_bug.cgi?id=68695
5
6         In a complex web application developer might want to timeline a specific piece of code.
7
8         In this case he can do the next steps:
9         1) start timeline;
10         2) eval a command in console;
11         3) stop timeline.
12
13         I think it'd be nice to have a root event for the all the events that happened as the result of such eval.
14
15         Reviewed by Yury Semikhatsky.
16
17         Test: inspector/timeline/timeline-injected-script-eval.html
18
19         * bindings/v8/ScriptFunctionCall.cpp:
20         * inspector/InjectedScript.cpp:
21         (WebCore::InjectedScript::makeCall):
22         * inspector/InspectorInstrumentation.cpp:
23         (WebCore::InspectorInstrumentation::willCallFunctionImpl):
24
25 2011-09-26  No'am Rosenthal  <noam.rosenthal@nokia.com>
26
27         [Texmap][Qt] Enable TextureMapperGL in platforms where BGRA is not present
28         https://bugs.webkit.org/show_bug.cgi?id=65473
29
30         Reviewed by Andreas Kling.
31
32         For now, swap RGBA->BGRA in software if we're in OpenGL ES 2.
33         We do that by iterating on the pixels and manually swapping each pixel's red and blue
34         values. This can be done faster with shaders, but for now this is a working solution
35         for platforms without BGRA support.
36
37         No new tests. Existing layout tests cover this.
38
39         * platform/graphics/opengl/TextureMapperGL.cpp:
40         (WebCore::BitmapTextureGL::endPaint):
41         * platform/graphics/opengl/TextureMapperGL.h:
42         * platform/graphics/qt/TextureMapperQt.cpp:
43         (WebCore::RGBA32PremultimpliedBufferQt::swapRGB):
44
45 2011-09-26  Sergio Villar Senin  <svillar@igalia.com>
46
47         [GTK] Fix coding style bits in ResourceHandleSoup.cpp
48         https://bugs.webkit.org/show_bug.cgi?id=68634
49
50         Reviewed by Martin Robinson.
51
52         No new tests needed.
53
54         * platform/network/soup/ResourceHandleSoup.cpp:
55         (WebCore::ResourceHandle::defaultSession):
56
57 2011-09-26  James Robinson  <jamesr@chromium.org>
58
59         [mac] Timestamp parameter to requestAnimationFrame is busted in USE(REQUEST_ANIMATION_FRAME_TIMER) path
60         https://bugs.webkit.org/show_bug.cgi?id=68769
61
62         Reviewed by Simon Fraser.
63
64         Convert the time parameter from double to DOMTimeStamp using convertSecondsToDOMTimeStamp rather than relying on
65         implicit double->long conversion, which ignores the units of the value.
66
67         Test: fast/animation/request-animation-frame-timestamps-advance.html
68
69         * dom/ScriptedAnimationController.cpp:
70         (WebCore::ScriptedAnimationController::animationTimerFired):
71
72 2011-09-25  Mark Hahnenberg  <mhahnenberg@apple.com>
73
74         Add custom vtable struct to ClassInfo struct
75         https://bugs.webkit.org/show_bug.cgi?id=68567
76
77         Reviewed by Oliver Hunt.
78
79         No new tests.
80
81         Added CREATE_METHOD_TABLE macro to generate the custom vtable for the 
82         specified class in its ClassInfo.  Also added to it the first function to use 
83         this macro, visitChildren.  This is part of the process of getting rid of all 
84         C++ virtual methods in JSCell.  Eventually all virtual functions in JSCell 
85         that can't easily be converted to non-virtual functions will be put into 
86         this custom vtable structure.
87
88         * bindings/js/JSAudioConstructor.cpp:
89         * bindings/js/JSDOMGlobalObject.cpp:
90         * bindings/js/JSDOMWindowBase.cpp:
91         * bindings/js/JSDOMWindowShell.cpp:
92         * bindings/js/JSImageConstructor.cpp:
93         * bindings/js/JSImageDataCustom.cpp:
94         (WebCore::toJS):
95         * bindings/js/JSOptionConstructor.cpp:
96         * bindings/js/JSWorkerContextBase.cpp:
97
98         Changed the bindings generator to add the call to the CREATE_METHOD_TABLE macro where
99         necessary.
100         * bindings/scripts/CodeGeneratorJS.pm:
101         (GenerateImplementation):
102         (GenerateConstructorDefinition):
103         * bindings/scripts/test/JS/JSTestInterface.cpp:
104         * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
105         * bindings/scripts/test/JS/JSTestObj.cpp:
106         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
107         * bridge/c/CRuntimeObject.cpp:
108         * bridge/c/c_instance.cpp:
109         * bridge/jni/jsc/JavaInstanceJSC.cpp:
110         * bridge/jni/jsc/JavaRuntimeObject.cpp:
111         * bridge/objc/ObjCRuntimeObject.mm:
112         * bridge/objc/objc_instance.mm:
113         * bridge/objc/objc_runtime.mm:
114         * bridge/qt/qt_instance.cpp:
115         * bridge/qt/qt_pixmapruntime.cpp:
116         * bridge/qt/qt_runtime.cpp:
117         * bridge/runtime_array.cpp:
118         * bridge/runtime_method.cpp:
119         * bridge/runtime_object.cpp:
120
121 2011-09-25  Eunmi Lee  <eunmi15.lee@samsung.com>
122
123         [EFL] Move GtkWidgetBackingStoreCairo to the cairo directory and modify to use in the EFL.
124         https://bugs.webkit.org/show_bug.cgi?id=63502
125
126         Reviewed by Martin Robinson.
127
128         The gtk/GtkWidgetBackingStoreCairo.cpp is moved to the cairo/WidgetBackingStoreCairo.cpp and
129         some codes for EFL are added.
130         WidgetBackingStoreCairo creates cairo_image_surface and has a role to copy reusable area
131         when scrolling. So, it will be used in the WebKit2 EFL port's BackingStore.
132
133         * CMakeListsEfl.txt:
134         * GNUmakefile.list.am:
135         * platform/cairo/WidgetBackingStore.h:
136         * platform/cairo/WidgetBackingStoreCairo.cpp: Renamed from Source/WebCore/platform/gtk/GtkWidgetBackingStoreCairo.cpp.
137         (WebCore::createSurfaceForBackingStore):
138         (WebCore::WidgetBackingStorePrivate::create):
139         (WebCore::WidgetBackingStorePrivate::WidgetBackingStorePrivate):
140         (WebCore::WidgetBackingStore::create):
141         (WebCore::WidgetBackingStore::WidgetBackingStore):
142         (WebCore::WidgetBackingStore::~WidgetBackingStore):
143         (WebCore::WidgetBackingStore::cairoSurface):
144         (WebCore::WidgetBackingStore::scroll):
145         * platform/gtk/GtkWidgetBackingStoreX11.cpp:
146
147 2011-09-25  Adam Barth  <abarth@webkit.org>
148
149         Finish removing PLATFORM(BREWMP) by removing associated code
150         https://bugs.webkit.org/show_bug.cgi?id=68779
151
152         Reviewed by Sam Weinig.
153
154         When Geoffrey Garen removed PLATFORM(BREWMP) in
155         http://trac.webkit.org/changeset/95555, he did not remove all the
156         associated code.  This completes the work started in r95555 by removing
157         all the code assoicated with PLATFORM(BREWMP).
158
159         * WebCore.gyp/WebCore.gyp:
160         * WebCore.gypi:
161         * bindings/js/ScriptControllerBrew.cpp: Removed.
162         * editing/brew: Removed.
163         * editing/brew/EditorBrew.cpp: Removed.
164         * gyp/WebCore.gyp:
165         * page/brew: Removed.
166         * page/brew/ChromeClientBrew.h: Removed.
167         * page/brew/DragControllerBrew.cpp: Removed.
168         * page/brew/EventHandlerBrew.cpp: Removed.
169         * page/brew/FrameBrew.cpp: Removed.
170         * platform/brew: Removed.
171         * platform/brew/ClipboardBrew.cpp: Removed.
172         * platform/brew/ClipboardBrew.h: Removed.
173         * platform/brew/ContextMenuBrew.cpp: Removed.
174         * platform/brew/ContextMenuItemBrew.cpp: Removed.
175         * platform/brew/CursorBrew.cpp: Removed.
176         * platform/brew/DragDataBrew.cpp: Removed.
177         * platform/brew/EventLoopBrew.cpp: Removed.
178         * platform/brew/FileSystemBrew.cpp: Removed.
179         * platform/brew/KURLBrew.cpp: Removed.
180         * platform/brew/LanguageBrew.cpp: Removed.
181         * platform/brew/LocalizedStringsBrew.cpp: Removed.
182         * platform/brew/LoggingBrew.cpp: Removed.
183         * platform/brew/MIMETypeRegistryBrew.cpp: Removed.
184         * platform/brew/PasteboardBrew.cpp: Removed.
185         * platform/brew/PlatformKeyboardEventBrew.cpp: Removed.
186         * platform/brew/PlatformMouseEventBrew.cpp: Removed.
187         * platform/brew/PlatformTouchEventBrew.cpp: Removed.
188         * platform/brew/PlatformTouchPointBrew.cpp: Removed.
189         * platform/brew/PopupMenuBrew.cpp: Removed.
190         * platform/brew/PopupMenuBrew.h: Removed.
191         * platform/brew/SSLKeyGeneratorBrew.cpp: Removed.
192         * platform/brew/ScreenBrew.cpp: Removed.
193         * platform/brew/ScrollbarThemeBrew.cpp: Removed.
194         * platform/brew/ScrollbarThemeBrew.h: Removed.
195         * platform/brew/SearchPopupMenuBrew.cpp: Removed.
196         * platform/brew/SearchPopupMenuBrew.h: Removed.
197         * platform/brew/SharedBufferBrew.cpp: Removed.
198         * platform/brew/SharedTimerBrew.cpp: Removed.
199         * platform/brew/SoundBrew.cpp: Removed.
200         * platform/brew/SystemTimeBrew.cpp: Removed.
201         * platform/brew/TemporaryLinkStubs.cpp: Removed.
202         * platform/brew/WidgetBrew.cpp: Removed.
203         * platform/graphics/brew: Removed.
204         * platform/graphics/brew/IconBrew.cpp: Removed.
205         * platform/graphics/brew/ImageBrew.cpp: Removed.
206         * platform/graphics/brew/IntPointBrew.cpp: Removed.
207         * platform/graphics/brew/IntSizeBrew.cpp: Removed.
208         * platform/network/brew: Removed.
209         * platform/network/brew/DNSBrew.cpp: Removed.
210         * platform/network/brew/SocketStreamError.h: Removed.
211         * platform/network/brew/SocketStreamHandle.h: Removed.
212         * platform/network/brew/SocketStreamHandleBrew.cpp: Removed.
213         * platform/network/brew/SocketStreamHandlePrivate.h: Removed.
214         * platform/text/brew: Removed.
215         * platform/text/brew/TextBoundariesBrew.cpp: Removed.
216         * platform/text/brew/TextBreakIteratorBrew.cpp: Removed.
217         * platform/text/brew/TextCodecBrew.cpp: Removed.
218         * platform/text/brew/TextCodecBrew.h: Removed.
219
220 2011-09-25  Kentaro Hara  <haraken@chromium.org>
221
222         Implement a CloseEvent constructor for JSC
223         https://bugs.webkit.org/show_bug.cgi?id=68340
224
225         Reviewed by Oliver Hunt.
226
227         The spec of the CloseEvent constructor is here:
228         http://dev.w3.org/html5/websockets/#closeevent
229
230         Test: fast/events/constructors/close-event-constructor.html
231
232         * bindings/generic/EventConstructors.h: Added a definition for the CloseEvent constructor.
233         * bindings/js/JSEventConstructors.cpp: Added #includes for CloseEvent.
234         * websockets/CloseEvent.h: Added a definition for CloseEventInit.
235         (WebCore::CloseEventInit::CloseEventInit):
236         (WebCore::CloseEvent::create):
237         (WebCore::CloseEvent::CloseEvent):
238         * websockets/CloseEvent.idl: Makes CloseEvent constructible.
239
240 2011-09-25  Mark Rowe  <mrowe@apple.com>
241
242         <rdar://problem/10177824> IconDatabase’s use of ThreadCondition leads to assertion failures in the face of spurious wakeups
243
244         It's possible for ThreadCondition::wait to return spuriously without the condition having been signaled.
245         When that happens we should immediately return to waiting rather than doing our normal work, as some of that
246         work relies on wakeSyncThread having been called to signal the condition.
247
248         Reviewed by Sam Weinig.
249
250         * loader/icon/IconDatabase.cpp:
251         (WebCore::IconDatabase::IconDatabase):
252         (WebCore::IconDatabase::wakeSyncThread): Note that we have work for the sync thread to do.
253         (WebCore::IconDatabase::syncThreadMainLoop): If we were woken with no work to do, immediately
254         go back to waiting on the condition variable. Otherwise, reset m_syncThreadHasWorkToDo and then
255         do that work. We also switch to moving m_disabledSuddenTerminationForSyncThread immediately in to
256         our local shouldReenableSuddenTermination variable since it can be updated by other threads while
257         we don't hold the lock. This makes it inappropriate to make assumptions about its value after dropping
258         and reacquiring the lock.
259         * loader/icon/IconDatabase.h:
260
261 2011-09-25  Dan Bernstein  <mitz@apple.com>
262
263         <rdar://problem/10156263> ASSERT in WebCore::FrameView::scheduleRelayoutOfSubtree
264
265         Reviewed by Sam Weinig.
266
267         Test: fast/dynamic/subtree-unrooted.html
268
269         * rendering/RenderObject.cpp:
270         (WebCore::RenderObject::scheduleRelayout): Replaced the check that the renderer is parented,
271         which was added in r21162, with a check that it is “rooted”.
272
273 2011-09-24  Abhishek Arya  <inferno@chromium.org>
274
275         Issues with merging block children of a ruby
276         base with another ruby base having inline children. 
277         https://bugs.webkit.org/show_bug.cgi?id=66124
278
279         Reviewed by Dan Bernstein.
280
281         Test: fast/ruby/ruby-base-merge-block-children-crash.html
282
283         * rendering/RenderRubyBase.cpp:
284         (WebCore::RenderRubyBase::moveInlineChildren): add a firstChild()
285         check to prevent empty anonymous block addition, just like
286         moveBlockChildren method.
287         * rendering/RenderRubyBase.cpp:
288         (WebCore::RenderRubyBase::moveBlockChildren): This was incorrectly
289         doing optimizations to see if current ruby base has only inline
290         children before beforeChild and then trying to take out them from 
291         their parent anonymous blocks. The problem is those inlines could
292         be split and have continuations because of encountering a block
293         inside inline flow. In those cases, we cannot take the inline out.
294         So, we should just make children non-inline in the destination
295         block and transfer the children as it-is.
296         * rendering/RenderRubyBase.h: remove unncessary functions.
297
298 2011-09-25  Adam Barth  <abarth@webkit.org>
299
300         Remove PLATFORM(HAIKU) and associated code
301         https://bugs.webkit.org/show_bug.cgi?id=68774
302
303         Reviewed by Sam Weinig.
304
305         As discussed on webkit-dev, the Haiku port has been inactive for over a
306         year.  A year and a half ago, we discussed removing the port, but folks
307         said they planned to work on it more.  That work does not appear to
308         have happened in the intervening time.
309
310         * WebCore.gyp/WebCore.gyp:
311         * WebCore.gypi:
312         * bindings/js/ScriptControllerHaiku.cpp: Removed.
313         * editing/haiku: Removed.
314         * editing/haiku/EditorHaiku.cpp: Removed.
315         * gyp/WebCore.gyp:
316         * loader/cache/CachedFont.cpp:
317         * page/EventHandler.cpp:
318         (WebCore::EventHandler::eventInvertsTabsToLinksClientCallResult):
319         * page/haiku: Removed.
320         * page/haiku/DragControllerHaiku.cpp: Removed.
321         * page/haiku/EventHandlerHaiku.cpp: Removed.
322         * page/haiku/FrameHaiku.cpp: Removed.
323         * platform/ContextMenuItem.h:
324         * platform/Cursor.h:
325         * platform/DragData.h:
326         * platform/DragImage.h:
327         * platform/PlatformKeyboardEvent.h:
328         * platform/PlatformMenuDescription.h:
329         * platform/PlatformMouseEvent.h:
330         * platform/Widget.h:
331         * platform/graphics/BitmapImage.h:
332         * platform/graphics/Color.h:
333         * platform/graphics/FloatPoint.h:
334         * platform/graphics/FloatRect.h:
335         * platform/graphics/Gradient.h:
336         * platform/graphics/GraphicsContext.cpp:
337         * platform/graphics/GraphicsContext.h:
338         * platform/graphics/ImageBufferData.h:
339         * platform/graphics/ImageSource.h:
340         * platform/graphics/IntPoint.h:
341         * platform/graphics/IntRect.h:
342         * platform/graphics/IntSize.h:
343         * platform/graphics/Path.h:
344         * platform/graphics/Pattern.h:
345         * platform/graphics/SimpleFontData.h:
346         * platform/graphics/haiku: Removed.
347         * platform/graphics/haiku/ColorHaiku.cpp: Removed.
348         * platform/graphics/haiku/FloatPointHaiku.cpp: Removed.
349         * platform/graphics/haiku/FloatRectHaiku.cpp: Removed.
350         * platform/graphics/haiku/FontCacheHaiku.cpp: Removed.
351         * platform/graphics/haiku/FontCustomPlatformData.cpp: Removed.
352         * platform/graphics/haiku/FontCustomPlatformData.h: Removed.
353         * platform/graphics/haiku/FontHaiku.cpp: Removed.
354         * platform/graphics/haiku/FontPlatformData.h: Removed.
355         * platform/graphics/haiku/GlyphPageTreeNodeHaiku.cpp: Removed.
356         * platform/graphics/haiku/GradientHaiku.cpp: Removed.
357         * platform/graphics/haiku/GraphicsContextHaiku.cpp: Removed.
358         * platform/graphics/haiku/IconHaiku.cpp: Removed.
359         * platform/graphics/haiku/ImageBufferDataHaiku.h: Removed.
360         * platform/graphics/haiku/ImageBufferHaiku.cpp: Removed.
361         * platform/graphics/haiku/ImageHaiku.cpp: Removed.
362         * platform/graphics/haiku/IntPointHaiku.cpp: Removed.
363         * platform/graphics/haiku/IntRectHaiku.cpp: Removed.
364         * platform/graphics/haiku/IntSizeHaiku.cpp: Removed.
365         * platform/graphics/haiku/PathHaiku.cpp: Removed.
366         * platform/graphics/haiku/SimpleFontDataHaiku.cpp: Removed.
367         * platform/graphics/haiku/StillImageHaiku.cpp: Removed.
368         * platform/graphics/haiku/StillImageHaiku.h: Removed.
369         * platform/haiku: Removed.
370         * platform/haiku/ClipboardHaiku.cpp: Removed.
371         * platform/haiku/ClipboardHaiku.h: Removed.
372         * platform/haiku/ContextMenuHaiku.cpp: Removed.
373         * platform/haiku/ContextMenuItemHaiku.cpp: Removed.
374         * platform/haiku/CookieJarHaiku.cpp: Removed.
375         * platform/haiku/CursorHaiku.cpp: Removed.
376         * platform/haiku/DragDataHaiku.cpp: Removed.
377         * platform/haiku/DragImageHaiku.cpp: Removed.
378         * platform/haiku/EventLoopHaiku.cpp: Removed.
379         * platform/haiku/FileSystemHaiku.cpp: Removed.
380         * platform/haiku/LocalizedStringsHaiku.cpp: Removed.
381         * platform/haiku/LoggingHaiku.cpp: Removed.
382         * platform/haiku/MIMETypeRegistryHaiku.cpp: Removed.
383         * platform/haiku/PasteboardHaiku.cpp: Removed.
384         * platform/haiku/PlatformKeyboardEventHaiku.cpp: Removed.
385         * platform/haiku/PlatformMouseEventHaiku.cpp: Removed.
386         * platform/haiku/PlatformWheelEventHaiku.cpp: Removed.
387         * platform/haiku/PopupMenuHaiku.cpp: Removed.
388         * platform/haiku/PopupMenuHaiku.h: Removed.
389         * platform/haiku/RenderThemeHaiku.cpp: Removed.
390         * platform/haiku/RenderThemeHaiku.h: Removed.
391         * platform/haiku/ScreenHaiku.cpp: Removed.
392         * platform/haiku/ScrollbarThemeHaiku.cpp: Removed.
393         * platform/haiku/ScrollbarThemeHaiku.h: Removed.
394         * platform/haiku/SearchPopupMenuHaiku.cpp: Removed.
395         * platform/haiku/SearchPopupMenuHaiku.h: Removed.
396         * platform/haiku/SharedBufferHaiku.cpp: Removed.
397         * platform/haiku/SharedTimerHaiku.cpp: Removed.
398         * platform/haiku/SoundHaiku.cpp: Removed.
399         * platform/haiku/TemporaryLinkStubs.cpp: Removed.
400         * platform/haiku/WidgetHaiku.cpp: Removed.
401         * platform/image-decoders/haiku: Removed.
402         * platform/image-decoders/haiku/ImageDecoderHaiku.cpp: Removed.
403         * platform/text/UnicodeRange.h:
404         * platform/text/haiku: Removed.
405         * platform/text/haiku/TextBreakIteratorInternalICUHaiku.cpp: Removed.
406
407 2011-09-25  Adam Barth  <abarth@webkit.org>
408
409         Attempted build fixes for GTK and Qt.
410
411         * GNUmakefile.list.am:
412         * WebCore.pro:
413
414 2011-09-24  Adam Barth  <abarth@webkit.org>
415
416         Always enable ENABLE(OFFLINE_WEB_APPLICATIONS)
417         https://bugs.webkit.org/show_bug.cgi?id=68767
418
419         Reviewed by Eric Seidel.
420
421         As discussed on webkit-dev, almost everyone has this enable turned on
422         and this feature is unlikely to be removed from the web platform given
423         its popularity.
424
425         * CMakeLists.txt:
426         * Configurations/FeatureDefines.xcconfig:
427         * GNUmakefile.am:
428         * GNUmakefile.list.am:
429         * WebCore.exp.in:
430         * WebCore.pro:
431         * bindings/cpp/WebDOMEventTarget.cpp:
432         (toWebKit):
433         * bindings/js/JSEventTarget.cpp:
434         (WebCore::toJS):
435         (WebCore::toEventTarget):
436         * bindings/v8/V8DOMWrapper.cpp:
437         (WebCore::V8DOMWrapper::convertEventTargetToV8Object):
438         * dom/EventTarget.cpp:
439         (WebCore::EventTarget::toDOMApplicationCache):
440         * dom/EventTarget.h:
441         * features.pri:
442         * history/PageCache.cpp:
443         (WebCore::logCanCacheFrameDecision):
444         (WebCore::PageCache::canCachePageContainingThisFrame):
445         * html/HTMLHtmlElement.cpp:
446         (WebCore::HTMLHtmlElement::insertedByParser):
447         * html/HTMLHtmlElement.h:
448         * html/HTMLMediaElement.cpp:
449         (WebCore::createFileURLForApplicationCacheResource):
450         (WebCore::HTMLMediaElement::loadResource):
451         * html/ImageDocument.cpp:
452         (WebCore::ImageDocument::createDocumentStructure):
453         * html/MediaDocument.cpp:
454         (WebCore::MediaDocumentParser::createDocumentStructure):
455         * html/PluginDocument.cpp:
456         (WebCore::PluginDocumentParser::createDocumentStructure):
457         * html/parser/HTMLConstructionSite.cpp:
458         (WebCore::HTMLConstructionSite::insertHTMLHtmlStartTagBeforeHTML):
459         * inspector/InspectorApplicationCacheAgent.cpp:
460         * inspector/InspectorApplicationCacheAgent.h:
461         * inspector/InspectorController.cpp:
462         (WebCore::InspectorController::InspectorController):
463         (WebCore::InspectorController::connectFrontend):
464         (WebCore::InspectorController::disconnectFrontend):
465         * inspector/InspectorController.h:
466         * inspector/InspectorInstrumentation.cpp:
467         (WebCore::InspectorInstrumentation::updateApplicationCacheStatusImpl):
468         * inspector/InspectorInstrumentation.h:
469         (WebCore::InspectorInstrumentation::networkStateChanged):
470         (WebCore::InspectorInstrumentation::updateApplicationCacheStatus):
471         * inspector/InstrumentingAgents.h:
472         (WebCore::InstrumentingAgents::InstrumentingAgents):
473         (WebCore::InstrumentingAgents::setInspectorApplicationCacheAgent):
474         * inspector/WorkerInspectorController.cpp:
475         (WebCore::WorkerInspectorController::connectFrontend):
476         * inspector/generate-inspector-idl:
477         * loader/DocumentLoader.cpp:
478         (WebCore::DocumentLoader::DocumentLoader):
479         (WebCore::DocumentLoader::mainReceivedError):
480         (WebCore::DocumentLoader::stopLoading):
481         (WebCore::DocumentLoader::detachFromFrame):
482         (WebCore::DocumentLoader::handledOnloadEvents):
483         * loader/DocumentLoader.h:
484         (WebCore::DocumentLoader::applicationCacheHost):
485         * loader/EmptyClients.h:
486         (WebCore::EmptyChromeClient::reachedApplicationCacheOriginQuota):
487         * loader/FrameLoader.cpp:
488         (WebCore::FrameLoader::loadResourceSynchronously):
489         * loader/MainResourceLoader.cpp:
490         (WebCore::MainResourceLoader::willSendRequest):
491         (WebCore::MainResourceLoader::didReceiveResponse):
492         (WebCore::MainResourceLoader::didReceiveData):
493         (WebCore::MainResourceLoader::didFinishLoading):
494         (WebCore::MainResourceLoader::didFail):
495         (WebCore::MainResourceLoader::load):
496         * loader/ResourceLoader.cpp:
497         (WebCore::ResourceLoader::start):
498         (WebCore::ResourceLoader::willSendRequest):
499         (WebCore::ResourceLoader::didSendData):
500         (WebCore::ResourceLoader::didReceiveResponse):
501         (WebCore::ResourceLoader::didReceiveData):
502         (WebCore::ResourceLoader::didFinishLoading):
503         (WebCore::ResourceLoader::didFail):
504         (WebCore::ResourceLoader::wasBlocked):
505         (WebCore::ResourceLoader::cannotShowURL):
506         (WebCore::ResourceLoader::shouldUseCredentialStorage):
507         (WebCore::ResourceLoader::willCacheResponse):
508         * loader/ResourceLoader.h:
509         * loader/appcache/ApplicationCache.cpp:
510         * loader/appcache/ApplicationCache.h:
511         * loader/appcache/ApplicationCacheGroup.cpp:
512         * loader/appcache/ApplicationCacheGroup.h:
513         * loader/appcache/ApplicationCacheHost.cpp:
514         * loader/appcache/ApplicationCacheHost.h:
515         * loader/appcache/ApplicationCacheResource.cpp:
516         * loader/appcache/ApplicationCacheResource.h:
517         * loader/appcache/ApplicationCacheStorage.cpp:
518         * loader/appcache/ApplicationCacheStorage.h:
519         * loader/appcache/DOMApplicationCache.cpp:
520         * loader/appcache/DOMApplicationCache.h:
521         * loader/appcache/DOMApplicationCache.idl:
522         * loader/appcache/ManifestParser.cpp:
523         (WebCore::parseManifest):
524         * loader/appcache/ManifestParser.h:
525         * loader/chromium/ResourceLoaderChromium.cpp:
526         (WebCore::ResourceLoader::didDownloadData):
527         * page/ChromeClient.h:
528         * page/DOMWindow.cpp:
529         (WebCore::DOMWindow::clear):
530         (WebCore::DOMWindow::applicationCache):
531         * page/DOMWindow.h:
532         (WebCore::DOMWindow::optionalApplicationCache):
533         * page/DOMWindow.idl:
534         * xml/parser/XMLDocumentParserLibxml2.cpp:
535         (WebCore::XMLDocumentParser::startElementNs):
536         * xml/parser/XMLDocumentParserQt.cpp:
537         (WebCore::XMLDocumentParser::parseStartElement):
538
539 2011-09-24  Adam Barth  <abarth@webkit.org>
540
541         Remove ENABLE(WCSS) and associated code
542         https://bugs.webkit.org/show_bug.cgi?id=68759
543
544         Reviewed by Darin Adler.
545
546         As discussed on webkit-dev, we are removing this feature from trunk to
547         reduce the number of different configurations.
548
549         * CodeGenerators.pri:
550         * GNUmakefile.am:
551         * WebCore.pro:
552         * css/CSSParser.cpp:
553         (WebCore::CSSParser::parseValue):
554         * css/CSSParser.h:
555         * css/CSSPrimitiveValueMappings.h:
556         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
557         * css/CSSStyleSelector.cpp:
558         (WebCore::CSSStyleSelector::applyProperty):
559         * css/WCSSPropertyNames.in: Removed.
560         * css/WCSSValueKeywords.in: Removed.
561         * features.pri:
562         * html/HTMLInputElement.cpp:
563         (WebCore::HTMLInputElement::HTMLInputElement):
564         * html/HTMLInputElement.h:
565         * html/TextFieldInputType.cpp:
566         (WebCore::TextFieldInputType::sanitizeValue):
567         (WebCore::TextFieldInputType::handleBeforeTextInsertedEvent):
568         * rendering/RenderMarquee.cpp:
569         (WebCore::RenderMarquee::start):
570         * rendering/RenderObject.cpp:
571         (WebCore::RenderObject::createObject):
572         * rendering/style/RenderStyleConstants.h:
573
574 2011-09-24  Young Han Lee  <joybro@company100.net>
575
576         SVGAnimation does not support 'values' for from-to animations
577         https://bugs.webkit.org/show_bug.cgi?id=64859
578
579         Reviewed by Dirk Schulze.
580
581         If from-to animation have discrete calc-mode and have a 'keyTimes' list, values of
582         the keyTimes indicate the begin and the end of the animation respectively.[1][2]
583
584         When keyTimes is given, calculate the progress percentage of the animation with it
585         even for from-to animation.
586
587         [1] http://www.w3.org/TR/SVG/animate.html#ValueAttributes
588         [2] http://www.w3.org/TR/2001/REC-smil-animation-20010904/#AnimFuncValues
589
590         Test: svg/animations/animate-from-to-keyTimes.html
591
592         * svg/SVGAnimationElement.cpp:
593         (WebCore::SVGAnimationElement::calculatePercentForFromTo):
594         (WebCore::SVGAnimationElement::updateAnimation):
595         * svg/SVGAnimationElement.h:
596
597 2011-09-23  Chris Fleizach  <cfleizach@apple.com>
598
599         WebKit does not expose AXPlaceholder value on password fields
600         https://bugs.webkit.org/show_bug.cgi?id=68745
601
602         Reviewed by Oliver Hunt.
603
604         * accessibility/mac/WebAccessibilityObjectWrapper.mm:
605         (-[WebAccessibilityObjectWrapper accessibilityAttributeNames]):
606
607 2011-09-23  Mark Rowe  <mrowe@apple.com>
608
609         Fix the build.
610
611         * loader/CrossOriginAccessControl.cpp:
612         (WebCore::passesAccessControlCheck): Get rid of the exit-time destructor.
613
614 2011-09-23  Adam Barth  <abarth@webkit.org>
615
616         Canvas security checks show up on HTML5GamingTest benchmark
617         https://bugs.webkit.org/show_bug.cgi?id=68743
618
619         Reviewed by Oliver Hunt.
620
621         Prior to this patch, the canvas security checks took as much as 4% of
622         the time on the HTML5GamingTest benchmark:
623
624         http://craftymind.com/factory/guimark2/HTML5GamingTest.html
625
626         This patch uses a couple of AtomicStrings and shuffles around the order
627         of the security check to take this down to around 0.1% (which is near
628         the noise floor of what I can measure with my profiler).
629
630         * html/canvas/CanvasRenderingContext.cpp:
631         (WebCore::CanvasRenderingContext::wouldTaintOrigin):
632         * loader/CrossOriginAccessControl.cpp:
633         (WebCore::passesAccessControlCheck):
634
635 2011-09-23  Justin Novosad  <junov@chromium.org>
636
637         Unwarranted DOM Exception when canvas2D drawImage is called with src
638         rect out of bounds
639         https://bugs.webkit.org/show_bug.cgi?id=65709
640
641         Reviewed by Oliver Hunt.
642
643         * html/canvas/CanvasRenderingContext2D.cpp:
644         (WebCore::CanvasRenderingContext2D::drawImage):
645         Return early without throwing an exception if source rectangle is out of 
646         bounds to match the spec.
647
648 2011-09-23  Lukasz Slachciak  <l.slachciak@samsung.com>
649
650         Printing of notImplemented() when logging enabled.
651         https://bugs.webkit.org/show_bug.cgi?id=64590
652
653         Printing of notImplemented() method was enabled on Debug builds only.
654         Now it is enabled when logging is enabled.
655
656         Reviewed by Oliver Hunt.
657
658         No new tests because there is no new functionality.
659
660         * platform/NotImplemented.h: Non-debug mode replaced with non-logging mode.
661
662 2011-09-23  Mihai Parparita  <mihaip@chromium.org>
663
664         [Chromium] REGRESSION (r95725): Resizing a window doesn't resize the contents
665         https://bugs.webkit.org/show_bug.cgi?id=68730
666
667         Reviewed by James Robinson.
668
669         Adds a missing contentsResized() call in ScrollView::setFrameRect.
670
671         Test: fast/dom/Window/window-resize-contents.html
672
673         * platform/ScrollView.cpp:
674         (WebCore::ScrollView::setFrameRect):
675
676 2011-09-23  Adam Klein  <adamk@chromium.org>
677
678         Add ENABLE_MUTATION_OBSERVERS feature flag
679         https://bugs.webkit.org/show_bug.cgi?id=68732
680
681         Reviewed by Ojan Vafai.
682
683         This flag will guard an implementation of the "Mutation Observers" proposed in
684         http://lists.w3.org/Archives/Public/public-webapps/2011JulSep/1622.html
685
686         * Configurations/FeatureDefines.xcconfig:
687         * GNUmakefile.am:
688
689 2011-09-23  Varun Jain  <varunjain@google.com>
690
691         Refactor WebViewImpl::scrollFocusedNodeIntoRect to a better place and add tests 
692         https://bugs.webkit.org/show_bug.cgi?id=68198
693
694         Reviewed by Dimitri Glazkov.
695
696         Tests: fast/dom/scroll-element-to-rect-centered.html
697                fast/dom/scroll-element-to-rect.html
698
699         * WebCore.exp.in:
700         * page/FrameView.cpp:
701         (WebCore::FrameView::scrollElementToRect):
702         * page/FrameView.h:
703         * testing/Internals.cpp:
704         (WebCore::Internals::scrollElementToRect):
705         * testing/Internals.h:
706         * testing/Internals.idl:
707
708 2011-09-23  Mihai Parparita  <mihaip@chromium.org>
709
710         Unreviewed, rolling out r95860.
711         http://trac.webkit.org/changeset/95860
712         https://bugs.webkit.org/show_bug.cgi?id=68648
713
714         Breaks overhang rendering on Chromium Mac
715
716         * platform/chromium/ScrollbarThemeChromium.cpp:
717         * platform/chromium/ScrollbarThemeChromium.h:
718         * platform/chromium/ScrollbarThemeChromiumMac.h:
719         * platform/chromium/ScrollbarThemeChromiumMac.mm:
720         (WebCore::ScrollbarThemeChromiumMac::ScrollbarThemeChromiumMac):
721         (WebCore::ScrollbarThemeChromiumMac::paintOverhangAreas):
722
723 2011-09-23  Dean Jackson  <dino@apple.com>
724
725         Add -webkit-filter to CSSPropertyNames
726         https://bugs.webkit.org/show_bug.cgi?id=68675
727
728         Reviewed by Simon Fraser.
729
730         Add property and rudimentary parsing for -webkit-filter. The
731         property value isn't preserved anywhere yet. Add
732         stub definition for computed style.
733
734         Test: css3/filters/filter-property.html
735
736         * css/CSSComputedStyleDeclaration.cpp:
737         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
738         * css/CSSParser.cpp:
739         (WebCore::CSSParser::parseValue):
740         (WebCore::CSSParser::parseFilter):
741         * css/CSSParser.h:
742         * css/CSSPropertyNames.in:
743         * css/CSSStyleSelector.cpp:
744         (WebCore::CSSStyleSelector::applyProperty):
745
746 2011-09-23  Antoine Labour  <piman@chromium.org>
747
748         Remove preserves3D() from CCLayerDelegate, replacing it by setting the
749         value explicitly after creating a layer, or setting its delegate.
750         https://bugs.webkit.org/show_bug.cgi?id=68295
751
752         Reviewed by James Robinson.
753
754         Covered by compositing/ layeout tests.
755
756         * platform/graphics/chromium/GraphicsLayerChromium.cpp:
757         (WebCore::GraphicsLayerChromium::setContentsToCanvas):
758         (WebCore::GraphicsLayerChromium::setContentsToMedia):
759         (WebCore::GraphicsLayerChromium::updateLayerPreserves3D):
760         (WebCore::GraphicsLayerChromium::setupContentsLayer):
761         * platform/graphics/chromium/GraphicsLayerChromium.h:
762         * platform/graphics/chromium/LayerChromium.cpp:
763         (WebCore::LayerChromium::LayerChromium):
764         * platform/graphics/chromium/LayerChromium.h:
765         (WebCore::LayerChromium::setPreserves3D):
766         (WebCore::LayerChromium::preserves3D):
767
768 2011-09-23  Julien Chaffraix  <jchaffraix@webkit.org>
769
770         Implicit conversion double to float in ShadowBlur::adjustBlurRadius
771         https://bugs.webkit.org/show_bug.cgi?id=68722
772
773         Reviewed by Simon Fraser.
774
775         * platform/graphics/ShadowBlur.cpp:
776         (WebCore::ShadowBlur::adjustBlurRadius): Added 2 explicit
777         conversions.
778
779 2011-09-23  Dan Bernstein  <mitz@apple.com>
780
781         <rdar://problem/10178576> REGRESSION (r95391): Crash in -[WebCascadeList objectAtIndex:] when a font-family list contains missing fonts
782         https://bugs.webkit.org/show_bug.cgi?id=68737
783
784         Reviewed by Darin Adler.
785
786         Test: fast/text/combining-character-sequence-fallback-crash.html
787
788         * platform/graphics/mac/ComplexTextControllerCoreText.mm:
789         (-[WebCascadeList initWithFont:WebCore::character:]): Changed to intialize _count to the exact
790         number of FontData instances in the fallback list rather than the number of font families in the
791         font description.
792
793 2011-09-23  David Reveman  <reveman@chromium.org>
794
795         [Chromium] Fix CSS 3D corner anti-aliasing.
796         https://bugs.webkit.org/show_bug.cgi?id=68087
797
798         Reviewed by James Robinson.
799
800         Render sharp corners more correctly by adding bounding box
801         edges to anti-aliasing shaders.
802
803         Test: platform/chromium/compositing/3d-corners.html
804
805         * platform/graphics/chromium/ShaderChromium.cpp:
806         (WebCore::FragmentShaderRGBATexAlphaAA::getShaderString):
807         (WebCore::FragmentShaderRGBATexClampAlphaAA::getShaderString):
808         (WebCore::FragmentShaderRGBATexClampSwizzleAlphaAA::getShaderString):
809         (WebCore::FragmentShaderRGBATexAlphaMaskAA::getShaderString):
810         * platform/graphics/chromium/cc/CCRenderSurface.cpp:
811         (WebCore::CCRenderSurface::drawLayer):
812         (WebCore::CCRenderSurface::drawSurface):
813         * platform/graphics/chromium/cc/CCRenderSurface.h:
814         * platform/graphics/chromium/cc/CCTiledLayerImpl.cpp:
815         (WebCore::CCTiledLayerImpl::draw):
816         (WebCore::CCTiledLayerImpl::drawTiles):
817         * platform/graphics/chromium/cc/CCTiledLayerImpl.h:
818
819 2011-09-23  Oliver Hunt  <oliver@apple.com>
820
821         Make write barriers actually do something when enabled
822         https://bugs.webkit.org/show_bug.cgi?id=68717
823
824         Reviewed by Geoffrey Garen.
825
826         Add a forwarding header, and fix an evaluation ordering
827         issue that shows up if you try to use write barriers.
828
829         * ForwardingHeaders/heap/CardSet.h: Added.
830         * bindings/js/JSEventListener.h:
831         (WebCore::JSEventListener::jsFunction):
832
833 2011-09-23  James Robinson  <jamesr@chromium.org>
834
835         Avoid updating compositing state during paint
836         https://bugs.webkit.org/show_bug.cgi?id=68727
837
838         Reviewed by Simon Fraser.
839
840         We shouldn't update our compositing state in the middle of a paint. The call to
841         updateCompositingAndLayerListsIfNeeded() was added to RenderLayer::paintLayer in r45715, which was intended to
842         fix this exact issue. Based off the ChangeLog entries, I think that this was just a typo.
843
844         * rendering/RenderLayer.cpp:
845         (WebCore::RenderLayer::paintLayer):
846         (WebCore::RenderLayer::updateCompositingAndLayerListsIfNeeded):
847         * rendering/RenderLayerCompositor.cpp:
848         (WebCore::RenderLayerCompositor::updateCompositingLayers):
849         * rendering/RenderLayerCompositor.h:
850
851 2011-09-23  Fady Samuel  <fsamuel@chromium.org>
852
853         Refactor paintOverhangAreas to allow non-Mac Chromium platforms to reuse code
854         https://bugs.webkit.org/show_bug.cgi?id=68648
855
856         Reviewed by Dimitri Glazkov.
857
858         No new tests because there's no change in functionality (yet).
859
860         * platform/chromium/ScrollbarThemeChromium.cpp:
861         (WebCore::ScrollbarThemeChromium::ScrollbarThemeChromium):
862         (WebCore::ScrollbarThemeChromium::~ScrollbarThemeChromium):
863         (WebCore::ScrollbarThemeChromium::paintOverhangAreas):
864         * platform/chromium/ScrollbarThemeChromium.h:
865         * platform/chromium/ScrollbarThemeChromiumMac.h:
866         * platform/chromium/ScrollbarThemeChromiumMac.mm:
867         (WebCore::ScrollbarThemeChromiumMac::ScrollbarThemeChromiumMac):
868
869 2011-09-23  Ojan Vafai  <ojan@chromium.org>
870
871         remove physical flex-flow values to match the updated spec
872         https://bugs.webkit.org/show_bug.cgi?id=68728
873
874         Reviewed by Tony Chang.
875
876         * css/CSSParser.cpp:
877         (WebCore::CSSParser::parseValue):
878         * css/CSSPrimitiveValueMappings.h:
879         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
880         (WebCore::CSSPrimitiveValue::operator EFlexFlow):
881         * css/CSSValueKeywords.in:
882         * rendering/style/RenderStyleConstants.h:
883
884 2011-09-23  Abhishek Arya  <inferno@chromium.org>
885
886         Style not updated for :before, :after content
887         in ruby text.
888         https://bugs.webkit.org/show_bug.cgi?id=68625
889
890         Reviewed by Dave Hyatt.
891
892         Test: fast/ruby/ruby-text-before-after-content.html
893
894         * rendering/RenderRubyText.cpp:
895         (WebCore::RenderRubyText::updateBeforeAfterContent):
896         * rendering/RenderRubyText.h:
897
898 2011-09-22  Ojan Vafai  <ojan@chromium.org>
899
900         refactor RenderFlexibleBox to use flex-flow aware methods
901         https://bugs.webkit.org/show_bug.cgi?id=68665
902
903         Reviewed by Tony Chang.
904
905         This is just a refactor. Just move the all the code that needs to
906         be flow aware into helper functions. Actually making them flow-aware
907         can be done in a followup patch.
908
909         * rendering/RenderBlock.cpp:
910         * rendering/RenderBlock.h:
911         Moved setLogicalLocationForChild into RenderFlexibleBox since that was the only caller.
912         * rendering/RenderFlexibleBox.cpp:
913         (WebCore::RenderFlexibleBox::hasOrthogonalFlow):
914         (WebCore::RenderFlexibleBox::isHorizontalFlow):
915         (WebCore::RenderFlexibleBox::isLeftToRightFlow):
916         (WebCore::RenderFlexibleBox::setFlowAwareLogicalHeight):
917         (WebCore::RenderFlexibleBox::flowAwareLogicalHeightForChild):
918         (WebCore::RenderFlexibleBox::flowAwareLogicalWidthForChild):
919         (WebCore::RenderFlexibleBox::flowAwareLogicalHeight):
920         (WebCore::RenderFlexibleBox::flowAwareContentLogicalWidth):
921         (WebCore::RenderFlexibleBox::flowAwareAvailableLogicalWidth):
922         (WebCore::RenderFlexibleBox::flowAwareBorderStart):
923         (WebCore::RenderFlexibleBox::flowAwareBorderBefore):
924         (WebCore::RenderFlexibleBox::flowAwareBorderAfter):
925         (WebCore::RenderFlexibleBox::flowAwarePaddingStart):
926         (WebCore::RenderFlexibleBox::flowAwarePaddingBefore):
927         (WebCore::RenderFlexibleBox::flowAwarePaddingAfter):
928         (WebCore::RenderFlexibleBox::flowAwareMarginStartForChild):
929         (WebCore::RenderFlexibleBox::flowAwareMarginBeforeForChild):
930         (WebCore::RenderFlexibleBox::flowAwareMarginAfterForChild):
931         (WebCore::RenderFlexibleBox::setFlowAwareMarginStartForChild):
932         (WebCore::RenderFlexibleBox::setFlowAwareMarginEndForChild):
933         (WebCore::RenderFlexibleBox::setFlowAwareLogicalLocationForChild):
934         (WebCore::RenderFlexibleBox::logicalBorderAndPaddingWidthForChild):
935         (WebCore::RenderFlexibleBox::logicalScrollbarHeightForChild):
936         (WebCore::RenderFlexibleBox::marginStartStyleForChild):
937         (WebCore::RenderFlexibleBox::marginEndStyleForChild):
938         (WebCore::RenderFlexibleBox::preferredLogicalContentWidthForFlexItem):
939         (WebCore::RenderFlexibleBox::layoutInlineDirection):
940         (WebCore::RenderFlexibleBox::logicalPositiveFlexForChild):
941         (WebCore::RenderFlexibleBox::logicalNegativeFlexForChild):
942         (WebCore::RenderFlexibleBox::computePreferredLogicalWidth):
943         (WebCore::RenderFlexibleBox::runFreeSpaceAllocationAlgorithmInlineDirection):
944         (WebCore::RenderFlexibleBox::setLogicalOverrideSize):
945         (WebCore::RenderFlexibleBox::layoutAndPlaceChildrenInlineDirection):
946         * rendering/RenderFlexibleBox.h:
947
948 2011-09-23  David Hyatt  <hyatt@apple.com>
949
950         https://bugs.webkit.org/show_bug.cgi?id=68719
951         
952         Push through multiple regions when an object doesn't fit in any of them. Unlike with pages and
953         columns, when regions have a non-uniform height, we may need to push through multiple regions
954         in order to find one that fits.
955         
956         Added an optimization for quickly noticing if regions do have a uniform height so that we can
957         treat them like columns and pages if so.
958
959         Also fixed the end line matchup to properly null out endLine when no next line box exists. The new
960         layout tests I wrote to cover this feature exposed this crasher, so fixing it in order to land
961         the new tests.
962
963         Reviewed by Anders Carlsson.
964
965         Added new tests in fast/regions.
966
967         * rendering/RenderBlock.cpp:
968         (WebCore::RenderBlock::adjustForUnsplittableChild):
969         (WebCore::RenderBlock::pushToNextPageWithMinimumLogicalHeight):
970         (WebCore::RenderBlock::adjustLinePositionForPagination):
971         * rendering/RenderBlock.h:
972         * rendering/RenderBlockLineLayout.cpp:
973         (WebCore::RenderBlock::matchedEndLine):
974         * rendering/RenderFlowThread.cpp:
975         (WebCore::RenderFlowThread::RenderFlowThread):
976         (WebCore::RenderFlowThread::layout):
977         * rendering/RenderFlowThread.h:
978
979 2011-09-23  Konstantin Scheglov  <scheglov@google.com>
980
981         Redrawing dirty parts of a large table is very slow
982         https://bugs.webkit.org/show_bug.cgi?id=64546
983
984         Reviewed by David Hyatt.
985
986         Move CollapsedBorderValues into RenderTable.h.
987         Calculate collapsed borders only once and re-use during paintObject().
988         Invalidate cache when cell, row, row group, col, col group or table border is changed.
989
990         Tests: fast/table/border-collapsing/cached-cell-append.html
991                fast/table/border-collapsing/cached-cell-remove.html
992                fast/table/border-collapsing/cached-change-cell-border-color.html
993                fast/table/border-collapsing/cached-change-cell-border-width.html
994                fast/table/border-collapsing/cached-change-col-border-color.html
995                fast/table/border-collapsing/cached-change-col-border-width.html
996                fast/table/border-collapsing/cached-change-colgroup-border-color.html
997                fast/table/border-collapsing/cached-change-colgroup-border-width.html
998                fast/table/border-collapsing/cached-change-row-border-color.html
999                fast/table/border-collapsing/cached-change-row-border-width.html
1000                fast/table/border-collapsing/cached-change-table-border-color.html
1001                fast/table/border-collapsing/cached-change-table-border-width.html
1002                fast/table/border-collapsing/cached-change-tbody-border-color.html
1003                fast/table/border-collapsing/cached-change-tbody-border-width.html
1004
1005         * rendering/RenderTable.cpp:
1006         (WebCore::RenderTable::RenderTable):
1007         (WebCore::RenderTable::styleDidChange): Invalidate cache on border change.
1008         (WebCore::RenderTable::layout): Invalidate cache if layout changed.
1009         (WebCore::RenderTable::recalcCollapsedBorders): Ensures that cache is valid.
1010         (WebCore::RenderTable::paintObject): Use cached collapsed borders.
1011         * rendering/RenderTable.h:
1012         (WebCore::RenderTable::invalidateCollapsedBorders): Accessor to mark cache invalid.
1013         (WebCore::RenderTable::currentBorderValue): Rename to use word "value".
1014         * rendering/RenderTableCell.cpp:
1015         (WebCore::RenderTableCell::styleDidChange): If border changed, invalidate cache.
1016
1017         Rename to use word "value".
1018         (WebCore::addBorderStyle):
1019         (WebCore::RenderTableCell::collectBorderValues):
1020         (WebCore::compareBorderValuesForQSort):
1021         (WebCore::RenderTableCell::sortBorderValues):
1022         (WebCore::RenderTableCell::paintCollapsedBorder):
1023         * rendering/RenderTableCell.h:
1024         
1025         If border changed, invalidate cache.
1026         * rendering/RenderTableCol.cpp:
1027         (WebCore::RenderTableCol::styleDidChange):
1028         * rendering/RenderTableCol.h:
1029         * rendering/RenderTableRow.cpp:
1030         (WebCore::RenderTableRow::styleDidChange):
1031         * rendering/RenderTableSection.cpp:
1032         (WebCore::RenderTableSection::styleDidChange):
1033
1034 2011-09-23  Mark Hahnenberg  <mhahnenberg@apple.com>
1035
1036         Add static version of JSCell::visitChildren
1037         https://bugs.webkit.org/show_bug.cgi?id=68404
1038
1039         Reviewed by Darin Adler.
1040
1041         No new tests.
1042
1043         In this patch we just extract the bodies of the virtual visitChildren methods
1044         throughout the JSCell inheritance hierarchy out into static methods, which are 
1045         now called from the virtual methods.  This is an intermediate step in trying to 
1046         move the virtual-ness of visitChildren into our own custom vtable stored in 
1047         ClassInfo.  We need to convert the methods to static methods in order to be 
1048         able to more easily store and refer to them in our custom vtable since normal 
1049         member methods store some implicit information in their types, making it 
1050         impossible to store them generically in ClassInfo.
1051
1052         * WebCore.exp.in:
1053         * bindings/js/JSAttrCustom.cpp:
1054         (WebCore::JSAttr::visitChildrenVirtual):
1055         (WebCore::JSAttr::visitChildren):
1056         * bindings/js/JSAudioContextCustom.cpp:
1057         (WebCore::JSAudioContext::visitChildrenVirtual):
1058         (WebCore::JSAudioContext::visitChildren):
1059         * bindings/js/JSCSSRuleCustom.cpp:
1060         (WebCore::JSCSSRule::visitChildrenVirtual):
1061         (WebCore::JSCSSRule::visitChildren):
1062         * bindings/js/JSCSSStyleDeclarationCustom.cpp:
1063         (WebCore::JSCSSStyleDeclaration::visitChildrenVirtual):
1064         (WebCore::JSCSSStyleDeclaration::visitChildren):
1065         * bindings/js/JSCanvasRenderingContextCustom.cpp:
1066         (WebCore::JSCanvasRenderingContext::visitChildrenVirtual):
1067         (WebCore::JSCanvasRenderingContext::visitChildren):
1068         * bindings/js/JSDOMGlobalObject.cpp:
1069         (WebCore::JSDOMGlobalObject::visitChildrenVirtual):
1070         (WebCore::JSDOMGlobalObject::visitChildren):
1071         * bindings/js/JSDOMGlobalObject.h:
1072         * bindings/js/JSDOMWindowCustom.cpp:
1073         (WebCore::JSDOMWindow::visitChildrenVirtual):
1074         (WebCore::JSDOMWindow::visitChildren):
1075         * bindings/js/JSDOMWindowShell.cpp:
1076         (WebCore::JSDOMWindowShell::visitChildrenVirtual):
1077         (WebCore::JSDOMWindowShell::visitChildren):
1078         * bindings/js/JSDOMWindowShell.h:
1079         * bindings/js/JSJavaScriptAudioNodeCustom.cpp:
1080         (WebCore::JSJavaScriptAudioNode::visitChildrenVirtual):
1081         (WebCore::JSJavaScriptAudioNode::visitChildren):
1082         * bindings/js/JSMessageChannelCustom.cpp:
1083         (WebCore::JSMessageChannel::visitChildrenVirtual):
1084         (WebCore::JSMessageChannel::visitChildren):
1085         * bindings/js/JSMessagePortCustom.cpp:
1086         (WebCore::JSMessagePort::visitChildrenVirtual):
1087         (WebCore::JSMessagePort::visitChildren):
1088         * bindings/js/JSNamedNodeMapCustom.cpp:
1089         (WebCore::JSNamedNodeMap::visitChildrenVirtual):
1090         (WebCore::JSNamedNodeMap::visitChildren):
1091         * bindings/js/JSNodeCustom.cpp:
1092         (WebCore::JSNode::visitChildrenVirtual):
1093         (WebCore::JSNode::visitChildren):
1094         * bindings/js/JSNodeFilterCustom.cpp:
1095         (WebCore::JSNodeFilter::visitChildrenVirtual):
1096         (WebCore::JSNodeFilter::visitChildren):
1097         * bindings/js/JSNodeIteratorCustom.cpp:
1098         (WebCore::JSNodeIterator::visitChildrenVirtual):
1099         (WebCore::JSNodeIterator::visitChildren):
1100         * bindings/js/JSSVGElementInstanceCustom.cpp:
1101         (WebCore::JSSVGElementInstance::visitChildrenVirtual):
1102         (WebCore::JSSVGElementInstance::visitChildren):
1103         * bindings/js/JSSharedWorkerCustom.cpp:
1104         (WebCore::JSSharedWorker::visitChildrenVirtual):
1105         (WebCore::JSSharedWorker::visitChildren):
1106         * bindings/js/JSStyleSheetCustom.cpp:
1107         (WebCore::JSStyleSheet::visitChildrenVirtual):
1108         (WebCore::JSStyleSheet::visitChildren):
1109         * bindings/js/JSTreeWalkerCustom.cpp:
1110         (WebCore::JSTreeWalker::visitChildrenVirtual):
1111         (WebCore::JSTreeWalker::visitChildren):
1112         * bindings/js/JSWebGLRenderingContextCustom.cpp:
1113         (WebCore::JSWebGLRenderingContext::visitChildrenVirtual):
1114         (WebCore::JSWebGLRenderingContext::visitChildren):
1115         * bindings/js/JSWorkerContextCustom.cpp:
1116         (WebCore::JSWorkerContext::visitChildrenVirtual):
1117         (WebCore::JSWorkerContext::visitChildren):
1118         * bindings/js/JSXMLHttpRequestCustom.cpp:
1119         (WebCore::JSXMLHttpRequest::visitChildrenVirtual):
1120         (WebCore::JSXMLHttpRequest::visitChildren):
1121         * bindings/js/JSXPathResultCustom.cpp:
1122         (WebCore::JSXPathResult::visitChildrenVirtual):
1123         (WebCore::JSXPathResult::visitChildren):
1124         * bindings/scripts/CodeGeneratorJS.pm:
1125         (GenerateHeader):
1126         (GenerateImplementation):
1127         * bindings/scripts/test/JS/JSTestObj.cpp:
1128         (WebCore::JSTestObj::visitChildrenVirtual):
1129         (WebCore::JSTestObj::visitChildren):
1130         * bindings/scripts/test/JS/JSTestObj.h:
1131         * bridge/qt/qt_instance.cpp:
1132         (JSC::Bindings::QtRuntimeObject::visitChildrenVirtual):
1133         (JSC::Bindings::QtRuntimeObject::visitChildren):
1134         * bridge/qt/qt_runtime.cpp:
1135         (JSC::Bindings::QtRuntimeMetaMethod::visitChildrenVirtual):
1136         (JSC::Bindings::QtRuntimeMetaMethod::visitChildren):
1137         * bridge/qt/qt_runtime.h:
1138         * workers/WorkerContext.h:
1139
1140 2011-09-23  Mario Sanchez Prada  <msanchez@igalia.com>
1141
1142         [GTK] Remove extra space at the beginning of the last line.
1143         https://bugs.webkit.org/show_bug.cgi?id=68710
1144
1145         Reviewed by Gustavo Noronha Silva.
1146
1147         * platform/network/soup/SocketStreamHandleSoup.cpp:
1148
1149 2011-09-23  Mario Sanchez Prada  <msanchez@igalia.com>
1150
1151         [GTK] Fix coding style issues in ResourceRequestSoup.cpp
1152         https://bugs.webkit.org/show_bug.cgi?id=68707
1153
1154         Reviewed by Xan Lopez.
1155
1156         This patch fixes some issues as reported by check-webkit-style.
1157
1158         * platform/network/soup/ResourceRequestSoup.cpp:
1159         (WebCore::ResourceRequest::updateFromSoupMessage):
1160
1161 2011-09-22  Ademar de Souza Reis Jr.  <ademar.reis@openbossa.org>
1162
1163         Unreviewed: [Qt] Workaround MSVC2010 problems when linking QtWebKit
1164
1165         Include MSVC2010 in the list of compilers where incremental
1166         build is disabled (INCREMENTAL:NO).
1167
1168         Change suggested by Simo Falt <simo.falt@nokia.com>, already present
1169         in the Qt-4.8 repository where the problem was identified.
1170
1171         * WebCore.pri:
1172
1173 2011-09-23  Darin Adler  <darin@apple.com>
1174
1175         Try to fix warning seen in some 32-bit builds.
1176
1177         * rendering/RenderBoxModelObject.cpp:
1178         (WebCore::backgroundRectAdjustedForBleedAvoidance):
1179         Use an explicit cast for the conversion from a double to a LayoutUnit.
1180
1181 2011-09-23  Vsevolod Vlasov  <vsevik@chromium.org>
1182
1183         Web Inspector: Clicking on error doesn't point on the correct line if user searched something
1184         https://bugs.webkit.org/show_bug.cgi?id=68627
1185
1186         Reviewed by Yury Semikhatsky.
1187
1188         * inspector/front-end/SearchController.js:
1189         (WebInspector.SearchController.prototype.disableSearchUntilExplicitAction):
1190         * inspector/front-end/inspector.js:
1191         (WebInspector._showAnchorLocationInPanel):
1192
1193 2011-09-23  Vsevolod Vlasov  <vsevik@chromium.org>
1194
1195         Web Inspector: InspectorStyleSheet should use stylesheet's original url, not final one.
1196         https://bugs.webkit.org/show_bug.cgi?id=68631
1197
1198         Reviewed by Yury Semikhatsky.
1199
1200         Test: http/tests/inspector/styles/styles-redirected-css.html
1201
1202         * inspector/InspectorStyleSheet.cpp:
1203         (WebCore::InspectorStyleSheet::resourceStyleSheetText):
1204
1205 2011-09-23  Vsevolod Vlasov  <vsevik@chromium.org>
1206
1207         Web Inspector: XHRs requests with the same url as main resource should have correct category.
1208         https://bugs.webkit.org/show_bug.cgi?id=68646
1209
1210         Reviewed by Yury Semikhatsky.
1211
1212         Test: http/tests/inspector/network/network-xhr-same-url-as-main-resource.html
1213
1214         * inspector/InspectorResourceAgent.cpp:
1215         (WebCore::InspectorResourceAgent::didReceiveResponse):
1216
1217 2011-09-23  Vsevolod Vlasov  <vsevik@chromium.org>
1218
1219         Web Inspector: Add context menu action to navigate from resources panel resource to network panel.
1220         https://bugs.webkit.org/show_bug.cgi?id=68657
1221
1222         Reviewed by Yury Semikhatsky.
1223
1224         * English.lproj/localizedStrings.js:
1225         * inspector/front-end/NetworkPanel.js:
1226         (WebInspector.NetworkPanel.prototype.showAnchorLocation):
1227         (WebInspector.NetworkPanel.prototype.revealAndHighlightResource):
1228         * inspector/front-end/ResourcesPanel.js:
1229         (WebInspector.FrameResourceTreeElement.prototype._handleContextMenuEvent):
1230         (WebInspector.FrameResourceTreeElement.prototype._appendOpenInNetworkPanelAction):
1231         * inspector/front-end/inspector.js:
1232         (WebInspector.openInNetworkPanelLabel):
1233         (WebInspector.openRequestInNetworkPanel):
1234
1235 2011-09-23  Deepak Sherveghar  <bpwv64@motorola.com>
1236
1237         [Gtk] Title attribute is not respected on option elements.
1238         https://bugs.webkit.org/show_bug.cgi?id=68615
1239
1240         Reviewed by Martin Robinson.
1241
1242         Set tooltip on PopupMenuGtk items created from GtkActions.
1243
1244         * platform/gtk/GtkPopupMenu.cpp:
1245         (WebCore::GtkPopupMenu::appendItem): Added a call to gtk_widget_set_tooltip_text()
1246             to set the tooltip on menuitem. Tooltip text is retrieved from GtkAction.
1247         * platform/gtk/PopupMenuGtk.cpp:
1248         (WebCore::PopupMenuGtk::createGtkActionForMenuItem): Pass the tooltip text
1249             from client when creating a GtkAction.
1250
1251 2011-09-23  Yael Aharon  <yael.aharon@nokia.com>
1252
1253         [Qt][Gtk] Wrong state when pausing a video in the "playing" event handler
1254         https://bugs.webkit.org/show_bug.cgi?id=68589
1255
1256         Reviewed by Philippe Normand.
1257
1258         Test: media/video-playing-and-pause.html
1259
1260         As suggested by Alexis Menard on IRC, query gstreamer's state instead of using a cached value
1261         in MediaPlayerGstreamerPrivate::paused(). 
1262
1263         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
1264         (WebCore::MediaPlayerPrivateGStreamer::paused):
1265
1266 2011-09-15  Pavel Podivilov  <podivilov@chromium.org>
1267
1268         Web Inspector: skip overlapping scripts when displaying concatenated content.
1269         https://bugs.webkit.org/show_bug.cgi?id=68144
1270
1271         Dynamically appended script tags have wrong offsets and cause troubles building concatenated content.
1272
1273         Reviewed by Pavel Feldman.
1274
1275         * inspector/front-end/SourceFile.js:
1276         (WebInspector.ConcatenatedScriptsContentProvider.prototype._concatenateScriptsContent.appendChunk):
1277         (WebInspector.ConcatenatedScriptsContentProvider.prototype._concatenateScriptsContent):
1278
1279 2011-09-23  Ilya Tikhonovsky  <loislo@chromium.org>
1280
1281         Web Inspector: file open dialog appears when user clicks on the timeline bar in timeline panel.
1282         https://bugs.webkit.org/show_bug.cgi?id=68312
1283
1284         Reviewed by Yury Semikhatsky.
1285
1286         * inspector/front-end/TimelinePanel.js:
1287         (WebInspector.TimelinePanel.prototype._createFileSelector):
1288
1289 2011-09-23  Sheriff Bot  <webkit.review.bot@gmail.com>
1290
1291         Unreviewed, rolling out r95383.
1292         http://trac.webkit.org/changeset/95383
1293         https://bugs.webkit.org/show_bug.cgi?id=68690
1294
1295         It broke WebInspector.Timeline.LoadFromFile feature.
1296         (Requested by loislo on #webkit).
1297
1298         * inspector/front-end/TimelinePanel.js:
1299         (WebInspector.TimelinePanel.prototype._createFileSelector):
1300
1301 2011-09-23  Rob Buis  <rbuis@rim.com>
1302
1303         use after free in WebCore::SVGTRefElement::updateReferencedText
1304         https://bugs.webkit.org/show_bug.cgi?id=67555
1305
1306         Reviewed by Nikolas Zimmermann.
1307
1308         Event listeners can outlive the tref element that created them when
1309         the tref is cloned and then garbage collected, causing a dangling pointer to the
1310         tref. To fix this do not install event listener until the tref is inserted into the document.
1311
1312         Test: svg/custom/tref-clone-crash.html
1313
1314         * svg/SVGTRefElement.cpp:
1315         (WebCore::SVGTRefElement::svgAttributeChanged):
1316         (WebCore::SVGTRefElement::insertedIntoDocument):
1317         * svg/SVGTRefElement.h:
1318
1319 2011-09-23  Vsevolod Vlasov  <vsevik@chromium.org>
1320
1321         ASSERTION FAILED: documentLoader in WebKit/Source/WebCore/inspector/InspectorInstrumentation.cpp(597)
1322         https://bugs.webkit.org/show_bug.cgi?id=68291
1323
1324         Reviewed by Tony Chang.
1325
1326         * dom/Document.cpp:
1327         (WebCore::Document::finishedParsing):
1328         * inspector/InspectorInstrumentation.cpp:
1329         (WebCore::InspectorInstrumentation::domContentLoadedEventFiredImpl):
1330         (WebCore::InspectorInstrumentation::loadEventFiredImpl):
1331         * inspector/InspectorInstrumentation.h:
1332         (WebCore::InspectorInstrumentation::domContentLoadedEventFired):
1333         (WebCore::InspectorInstrumentation::loadEventFired):
1334         * page/DOMWindow.cpp:
1335         (WebCore::DOMWindow::dispatchLoadEvent):
1336
1337 2011-09-22  Tony Chang  <tony@chromium.org>
1338
1339         implement -webkit-flex-order
1340         https://bugs.webkit.org/show_bug.cgi?id=67432
1341
1342         Reviewed by Ojan Vafai.
1343
1344         flex-order can be an int (including negative), but we disallow the two
1345         smallest values so we can put the numbers into a hash set.
1346
1347         Also, create two iterators: one that goes in render tree order (we use
1348         this for the first pass and to collect the possible flex order values)
1349         and one that goes in flex order.
1350
1351         Test: css3/flexbox/flex-order.html
1352
1353         * css/CSSParser.cpp:
1354         (WebCore::CSSParser::parseValue):
1355         * rendering/RenderFlexibleBox.cpp:
1356         (WebCore::FlexOrderHashTraits::emptyValue):
1357         (WebCore::FlexOrderHashTraits::constructDeletedValue):
1358         (WebCore::FlexOrderHashTraits::isDeletedValue):
1359         (WebCore::RenderFlexibleBox::TreeOrderIterator::TreeOrderIterator): A simple iterator
1360             that goes in render tree order.
1361         (WebCore::RenderFlexibleBox::TreeOrderIterator::next):
1362         (WebCore::RenderFlexibleBox::TreeOrderIterator::reset):
1363         (WebCore::RenderFlexibleBox::TreeOrderIterator::flexOrderValues):
1364         (WebCore::RenderFlexibleBox::FlexOrderIterator::FlexOrderIterator): An iterator that
1365             goes in flex-order order.  Creating this involves sorting, so only create it once
1366             and pass it around.
1367         (WebCore::RenderFlexibleBox::FlexOrderIterator::first):
1368         (WebCore::RenderFlexibleBox::FlexOrderIterator::next):
1369         (WebCore::RenderFlexibleBox::FlexOrderIterator::reset):
1370         (WebCore::RenderFlexibleBox::layoutHorizontalBlock):
1371         (WebCore::RenderFlexibleBox::computePreferredLogicalWidth):
1372         (WebCore::RenderFlexibleBox::runFreeSpaceAllocationAlgorithmInlineDirection):
1373         (WebCore::RenderFlexibleBox::layoutAndPlaceChildrenInlineDirection):
1374         * rendering/RenderFlexibleBox.h:
1375
1376 2011-09-22  Darin Adler  <darin@apple.com>
1377
1378         Use AffineTransform scale functions in ShadowBlur::adjustBlurRadius
1379         https://bugs.webkit.org/show_bug.cgi?id=68667
1380
1381         Reviewed by Simon Fraser.
1382
1383         * platform/graphics/ShadowBlur.cpp:
1384         (WebCore::ShadowBlur::adjustBlurRadius): Use AffineTransform::xScale and
1385         AffineTransform::yScale instead of the custom code here that seems to do
1386         the same thing.
1387
1388 2011-09-22  Darin Adler  <darin@apple.com>
1389
1390         Remove unneeded type conversion from background bleed code
1391         https://bugs.webkit.org/show_bug.cgi?id=68669
1392
1393         Reviewed by Geoffrey Garen.
1394
1395         * rendering/RenderBoxModelObject.cpp:
1396         (WebCore::backgroundRectAdjustedForBleedAvoidance): Use ceil instead of ceilf
1397         and eliminate superflous conversion to float and use of FloatSize. Also added
1398         a "why" comment.
1399
1400 2011-09-22  Darin Adler  <darin@apple.com>
1401
1402         Refactor checks for antialiasing lines to share a single function
1403         https://bugs.webkit.org/show_bug.cgi?id=68666
1404
1405         Reviewed by Dan Bernstein.
1406
1407         * rendering/RenderBlock.cpp:
1408         (WebCore::RenderBlock::paintColumnRules): Call shouldAntialiasLines.
1409         * rendering/RenderBoxModelObject.cpp:
1410         (WebCore::RenderBoxModelObject::paintBorder): Ditto.
1411         (WebCore::RenderBoxModelObject::shouldAntialiasLines): Added.
1412         * rendering/RenderBoxModelObject.h: Added shouldAntialiasLines function.
1413         * rendering/RenderInline.cpp:
1414         (WebCore::RenderInline::paintOutlineForLine): Call shouldAntialiasLines.
1415         * rendering/RenderTableCell.cpp:
1416         (WebCore::RenderTableCell::paintCollapsedBorder): Ditto.
1417
1418 2011-09-22  Antoine Labour  <piman@chromium.org>
1419
1420         Remove unused members from LayerChromium.
1421         These members are never set, and never used.
1422         Other members that are set but not used have been left (we may use them
1423         later, e.g. m_opaque).
1424         https://bugs.webkit.org/show_bug.cgi?id=68297
1425
1426         Reviewed by James Robinson.
1427
1428         No functional change, no new test needed.
1429
1430         * platform/graphics/chromium/LayerChromium.cpp:
1431         (WebCore::LayerChromium::LayerChromium):
1432         * platform/graphics/chromium/LayerChromium.h:
1433
1434 2011-09-22  Tom Sepez  <tsepez@chromium.org>
1435
1436         Make XSSAuditor extract meaningful snippet from script blocks for comparison
1437         against the URL when checking for reflection.  Avoids getting caugh up in
1438         trailing comments.
1439         https://bugs.webkit.org/show_bug.cgi?id=68094
1440
1441         Reviewed by Adam Barth.
1442
1443         Tests: http/tests/security/xssAuditor/script-tag-with-trailing-comment.html
1444                http/tests/security/xssAuditor/script-tag-with-trailing-comment2.html
1445                http/tests/security/xssAuditor/script-tag-with-trailing-comment3.html
1446
1447         * html/parser/XSSAuditor.cpp:
1448         (WebCore::XSSAuditor::filterTokenAfterScriptStartTag):
1449         (WebCore::XSSAuditor::extractCodeFragment):
1450         * html/parser/XSSAuditor.h:
1451
1452 2011-09-22  Nate Chapin  <japhet@chromium.org>
1453
1454         Remove didReceiveAuthenticationChallenge() from SubresourceLoaderClient.
1455         Instead, add a load-specific policy for showing the user authentication
1456         challenge down to ResourceLoaderOptions and enforce it in ResourceLoader.
1457         https://bugs.webkit.org/show_bug.cgi?id=65330
1458
1459         Reviewed by Alexey Proskuryakov.
1460
1461         No new tests, refactor only.
1462
1463         * loader/DocumentThreadableLoader.cpp:
1464         * loader/DocumentThreadableLoader.h:
1465         * loader/MainResourceLoader.cpp:
1466         * loader/NetscapePlugInStreamLoader.cpp:
1467         * loader/ResourceLoadScheduler.h:
1468         * loader/ResourceLoader.cpp:
1469         (WebCore::ResourceLoader::didReceiveAuthenticationChallenge):
1470            For resource types that always send a challenge to the embedder,
1471            this patch doesn't change anything. For those that don't, we will
1472            always try to continue without credentials when they are forbidden
1473            and the platform supports it.
1474            When continuing without credentials was initially implemented in
1475            DocumentThreadableLoader, we sent the ThreadableLoaderClient a didFail(),
1476            then canceled the SubresourceLoader. This was necessary because of the
1477            quirks of ThreadableLoader cancellation (we sever the client/loader connections
1478            before the load actually cancels), but a simple didFail() should suffice at
1479            the ResourceLoader layer.
1480         * loader/ResourceLoaderOptions.h:
1481         * loader/SubresourceLoader.cpp:
1482         * loader/SubresourceLoader.h:
1483         * loader/SubresourceLoaderClient.h:
1484         * loader/cache/CachedResource.cpp:
1485         * loader/cache/CachedResourceLoader.cpp:
1486         * loader/cache/CachedResourceLoader.h:
1487         * loader/icon/IconLoader.cpp: The ResourceLoader implementation of
1488             didReceiveAuthenticationChallege means that IconLoader will now
1489             try to continue with credentials on platforms that support it,
1490             rather than just canceling outright. We still will never prompt
1491             for authentication for icons.
1492         * loader/icon/IconLoader.h:
1493
1494 2011-09-22  Dean Jackson  <dino@apple.com>
1495
1496         Add ENABLE_CSS_FILTERS
1497         https://bugs.webkit.org/show_bug.cgi?id=68652
1498
1499         Reviewed by Simon Fraser.
1500
1501         * Configurations/FeatureDefines.xcconfig:
1502
1503 2011-09-22  Anders Carlsson  <andersca@apple.com>
1504
1505         Make sure to update scrollbars in ScrollView::setFrameRect
1506         https://bugs.webkit.org/show_bug.cgi?id=68663
1507
1508         Reviewed by Sam Weinig.
1509
1510         Call updateScrollbars after setting the frame rect. This was previously done by the
1511         call to setBoundsSize from RenderWidget::setWidgetGeometry but setBoundsSize was removed
1512         completely in http://trac.webkit.org/changeset/95725.
1513
1514         * platform/ScrollView.cpp:
1515         (WebCore::ScrollView::setFrameRect):
1516
1517 2011-09-22  Jon Lee  <jonlee@apple.com>
1518
1519         Progress control gets cropped on the bottom
1520         https://bugs.webkit.org/show_bug.cgi?id=68302
1521         <rdar://problem/10069915>
1522
1523         Reviewed by Kent Tamura.
1524
1525         As it turns out the smaller control type does not get rendered either, so this patch
1526         fixes both.
1527
1528         * manual-tests/dom/progressbar.html: Altered to show both sizes of controls
1529         * rendering/RenderThemeMac.h:
1530         * rendering/RenderThemeMac.mm: Added methods to inflate the drawing rect
1531         (WebCore::RenderThemeMac::progressBarSizes):
1532         (WebCore::RenderThemeMac::progressBarMargins):
1533         (WebCore::RenderThemeMac::minimumProgressBarHeight):
1534         (WebCore::RenderThemeMac::paintProgressBar): Inflate the rect based on minimum desired
1535         control height and glow margin.
1536
1537 2011-09-22  David Hyatt  <hyatt@apple.com>
1538
1539         https://bugs.webkit.org/show_bug.cgi?id=68658
1540
1541         Make matchedEndLine smart enough to not match lines that have moved to new
1542         regions with different available content logical widths. When this happens, we go ahead and treat
1543         the line as failing to match.
1544
1545         Reviewed by Anders Carlsson.
1546
1547         Added new tests in fast/regions.
1548
1549         * rendering/RenderBlock.cpp:
1550         (WebCore::RenderBlock::lineWidthForPaginatedLineChanged):
1551         * rendering/RenderBlock.h:
1552         Enhanced to take an optional delta, so that you can check a new position without having to move
1553         the line box.
1554
1555         * rendering/RenderBlockLineLayout.cpp:
1556         (WebCore::RenderBlock::checkPaginationAndFloatsAtEndLine):
1557         New function that refactors checking for line width changes from region movement as well as the
1558         float checks. Since the float checks were duplicated twice, this is a nice refactoring.
1559
1560         (WebCore::RenderBlock::matchedEndLine):
1561         Changed to call the new helper function that will check both floats and pagination.
1562
1563 2011-09-22  Gavin Barraclough  <barraclough@apple.com>
1564
1565         Implement Function.prototype.bind
1566         https://bugs.webkit.org/show_bug.cgi?id=26382
1567
1568         Reviewed by Sam Weinig.
1569
1570         Test: fast/js/function-bind.html
1571
1572         * bindings/js/JSDOMBinding.cpp:
1573         (WebCore::objectToStringFunctionGetter):
1574         * bindings/js/JSDOMWindowCustom.cpp:
1575         (WebCore::nonCachingStaticFunctionGetter):
1576         * bindings/js/JSHistoryCustom.cpp:
1577         (WebCore::nonCachingStaticBackFunctionGetter):
1578         (WebCore::nonCachingStaticForwardFunctionGetter):
1579         (WebCore::nonCachingStaticGoFunctionGetter):
1580         * bindings/js/JSLocationCustom.cpp:
1581         (WebCore::nonCachingStaticReplaceFunctionGetter):
1582         (WebCore::nonCachingStaticReloadFunctionGetter):
1583         (WebCore::nonCachingStaticAssignFunctionGetter):
1584             - Function::create no longer requires functionStructure() to be passed.
1585 2011-09-22  David Hyatt  <hyatt@apple.com>
1586
1587         https://bugs.webkit.org/show_bug.cgi?id=68650
1588         
1589         Make determineStartPosition smart enough to not skip over clean lines that have moved to a new
1590         region with a different available content logical width. When this happens, we go ahead and treat
1591         the line as dirty.
1592
1593         Reviewed by Sam Weinig.
1594
1595         Covered by existing fast/regions tests.
1596
1597         * rendering/RenderBlock.cpp:
1598         (WebCore::RenderBlock::layoutBlock):
1599         Disable region fitting if we detect that the regions all have uniform widths. In this case we know
1600         the content width can't vary, so there's no reason to waste time worrying about it.
1601
1602         (WebCore::RenderBlock::computeLogicalLocationForFloat):
1603         Pull the content width checking code into computeLogicalLocationForFloat, since we've incorporated
1604         region fitting into the fixed offsets now rather than the line functions.
1605
1606         (WebCore::RenderBlock::positionNewFloats):
1607         Changed because more code moved from here into computeLogicalLocationForFloat.
1608         
1609         (WebCore::RenderBlock::adjustForRegionFittingIfNeeded):
1610         No changes. Just moved the function above the left offset function.
1611
1612         (WebCore::RenderBlock::logicalLeftOffsetForContent):
1613         (WebCore::RenderBlock::logicalRightOffsetForContent):
1614         Added. These new functions give the fixed left and right offsets for lines in a particular region.
1615         When no regions are present or when all the regions have a uniform width, they are identical
1616         to the versions of the functions that take no arguments.
1617
1618         (WebCore::RenderBlock::logicalRightOffsetForLine):
1619         Changed to no longer do region fitting, since that's built into logicalRightOffsetForContent now.
1620
1621         (WebCore::RenderBlock::lineWidthForPaginatedLineChanged):
1622         New function that takes a root line box and compares its cached old content width with the width
1623         available at the line's new location.
1624     
1625         * rendering/RenderBlock.h:
1626         (WebCore::RenderBlock::logicalRightOffsetForLine):
1627         (WebCore::RenderBlock::logicalLeftOffsetForLine):
1628         Modified to call the logicalXXXOffsetForContent functions that take a block direction position.
1629
1630         (WebCore::RenderBlock::logicalRightOffsetForContent):
1631         (WebCore::RenderBlock::logicalLeftOffsetForContent):
1632         Added the new functions that take a position so that they can fit to the correct region.
1633
1634         (WebCore::RenderBlock::availableLogicalWidthForContent):
1635         New helper function that calls right - left (similar to the corresponding line function that includes
1636         floats).
1637
1638         * rendering/RenderBlockLineLayout.cpp:
1639         (WebCore::RenderBlock::determineStartPosition):
1640         Patched to check if a line has moved to a place with a different available content width. If so, the line
1641         is dirtied so that line layout can re-run.
1642
1643         * rendering/RootInlineBox.cpp:
1644         (WebCore::RootInlineBox::RootInlineBox):
1645         (WebCore::RootInlineBox::alignBoxesInBlockDirection):
1646         Sets the paginated line width from the current block logical height.
1647
1648         * rendering/RootInlineBox.h:
1649         (WebCore::RootInlineBox::paginationStrut):
1650         (WebCore::RootInlineBox::setPaginationStrut):
1651         Fixed paginationStrut to be LayoutUnit instead of int.
1652
1653         (WebCore::RootInlineBox::paginatedLineWidth):
1654         (WebCore::RootInlineBox::setPaginatedLineWidth):
1655         Added paginatedLineWidth getter/setter for caching the content width for a given root line.
1656
1657 2011-09-21  Anders Carlsson  <andersca@apple.com>
1658
1659         Remove Widget::beforeMouseDown and Widget::afterMouseDown
1660         https://bugs.webkit.org/show_bug.cgi?id=68570
1661
1662         Reviewed by Darin Adler.
1663
1664         These two member functions were originally added to avoid crashes due to removing NSViews while they were
1665         being tracked by AppKit. Since they were added, we've moved away from NSViews for form controls, and the bugs in
1666         AppKit that lead to crashes have been fixed.
1667
1668         This patch was rolled out in r95743 because it broke a bunch of tests. The patch accidentally removed setting back
1669         m_sendingEventToSubview to false.
1670
1671         * page/mac/EventHandlerMac.mm:
1672         (WebCore::EventHandler::passMouseDownEventToWidget):
1673         * platform/Widget.h:
1674         * platform/mac/WidgetMac.mm:
1675         (WebCore::Widget::Widget):
1676         (WebCore::Widget::removeFromSuperview):
1677
1678         * rendering/RenderWidget.cpp:
1679         Change widgetHierarchyUpdateSuspendCount to be an unsigned integer instead of a size_t.
1680
1681 2011-09-22  Sheriff Bot  <webkit.review.bot@gmail.com>
1682
1683         Unreviewed, rolling out r95335 and r95645.
1684         http://trac.webkit.org/changeset/95335
1685         http://trac.webkit.org/changeset/95645
1686         https://bugs.webkit.org/show_bug.cgi?id=68649
1687
1688         Wrong fix (Requested by rniwa on #webkit).
1689
1690         * editing/DeleteSelectionCommand.cpp:
1691         (WebCore::DeleteSelectionCommand::saveTypingStyleState):
1692         * editing/EditingStyle.cpp:
1693         (WebCore::EditingStyle::removeStyleAddedByNode):
1694         * editing/EditingStyle.h:
1695         * editing/ReplaceSelectionCommand.cpp:
1696         (WebCore::ReplaceSelectionCommand::removeRedundantStylesAndKeepStyleSpanInline):
1697         * editing/markup.cpp:
1698         (WebCore::StyledMarkupAccumulator::serializeNodes):
1699         (WebCore::ancestorToRetainStructureAndAppearance):
1700         * editing/markup.h:
1701
1702 2011-09-22  Ryosuke Niwa  <rniwa@webkit.org>
1703
1704         Revert r95673 since it caused hundreds of tests to fail on Leopard / Snow Leopard.
1705
1706         * page/mac/EventHandlerMac.mm:
1707         (WebCore::EventHandler::passMouseDownEventToWidget):
1708         * platform/Widget.h:
1709         * platform/mac/WidgetMac.mm:
1710         (WebCore::Widget::Widget):
1711         (WebCore::Widget::removeFromSuperview):
1712         (WebCore::Widget::beforeMouseDown):
1713         (WebCore::Widget::afterMouseDown):
1714         * rendering/RenderWidget.cpp:
1715
1716 2011-09-22  David Hyatt  <hyatt@apple.com>
1717
1718         https://bugs.webkit.org/show_bug.cgi?id=68638
1719         
1720         Make RenderFlowThread cache whether or not it has regions of varying widths. This will
1721         be relevant for performance as we begin adding code to do custom block painting and
1722         layout based off regions not having the same width.
1723
1724         Reviewed by Dan Bernstein and Adam Roben.
1725
1726         * rendering/RenderFlowThread.cpp:
1727         (WebCore::RenderFlowThread::RenderFlowThread):
1728         (WebCore::RenderFlowThread::layout):
1729         * rendering/RenderFlowThread.h:
1730
1731 2011-09-22  Anders Carlsson  <andersca@apple.com>
1732
1733         FrameView::invalidateRect and FrameView::setFrameRect shouldn't take LayoutRects
1734         https://bugs.webkit.org/show_bug.cgi?id=68639
1735
1736         Reviewed by David Hyatt.
1737
1738         FrameView::invalidateRect and FrameView::setFrameRect override Widget and ScrollView
1739         member functions that take IntRects, and Widget coordinates are currently defined in terms of
1740         IntRects (and probably always should since we want them to be pixel-aligned).
1741
1742         * page/FrameView.cpp:
1743         (WebCore::FrameView::invalidateRect):
1744         (WebCore::FrameView::setFrameRect):
1745         * page/FrameView.h:
1746
1747 2011-09-22  Tim Horton  <timothy_horton@apple.com>
1748
1749         Unreviewed build fix (fixes warning about too many parens).
1750
1751         * rendering/RenderBox.cpp:
1752         (WebCore::RenderBox::computePositionedLogicalWidthReplaced):
1753
1754 2011-09-22  Anders Carlsson  <andersca@apple.com>
1755
1756         Widget::frameRect shouldn't be virtual
1757         https://bugs.webkit.org/show_bug.cgi?id=68637
1758
1759         Reviewed by Sam Weinig.
1760
1761         Nobody overrides Widget::frameRect and nobody should.
1762
1763         * platform/Widget.h:
1764
1765 2011-09-22  Sergey Glazunov  <serg.glazunov@gmail.com>
1766
1767         Ref protect shaders in V8WebGLRenderingContext::getAttachedShadersCallback
1768         https://bugs.webkit.org/show_bug.cgi?id=68630
1769
1770         Reviewed by Adam Barth.
1771
1772         Test: fast/canvas/webgl/shader-deleted-by-accessor.html
1773
1774         * bindings/js/JSWebGLRenderingContextCustom.cpp:
1775         (WebCore::JSWebGLRenderingContext::getAttachedShaders):
1776         * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
1777         (WebCore::V8WebGLRenderingContext::getAttachedShadersCallback):
1778         * html/canvas/WebGLRenderingContext.cpp:
1779         (WebCore::WebGLRenderingContext::getAttachedShaders):
1780         * html/canvas/WebGLRenderingContext.h:
1781
1782 2011-09-05  Robert Hogan  <robert@webkit.org>
1783
1784         CSS 2.1 failure: abspos-non-replaced-width-margin-000, abspos-replaced-width-margin-000
1785         https://bugs.webkit.org/show_bug.cgi?id=47148
1786
1787         Reviewed by David Hyatt.
1788
1789         * rendering/RenderBlock.h:
1790         * rendering/RenderBlockLineLayout.cpp:
1791         (WebCore::RenderBlock::startOffsetForLine): Return offset from right, rather than offset from left + logicalwidth
1792         * rendering/RenderBlockLineLayout.cpp:
1793         (WebCore::RenderBlock::startAlignedOffsetForLine): 
1794               Return the correct alignment for RTL blocks too. Looks like neither FF or Opera do this correctly.
1795               Covered by new test left-right-center-inline-alignment-in-ltr-and-rtl-blocks.html
1796         * rendering/RenderBox.cpp:
1797         (WebCore::computeInlineStaticDistance):
1798             - The CSS 2.1 tests now require UAs to use the parent block's direction (rather than the
1799               containing block's direction) when computing static distance. The container block's direction
1800               is still used in the other width and offset related calculations.
1801             - In the context of this function, the logicalRight value is just an element that will be used later to calculate 
1802               the correct logicalLeft position for the RTL block. So whereas an LTR block can substract containerBlock->borderLogicalLeft() 
1803               in this function directly, an RTL block has to add it here so that will be later subtracted from availableSpace to get 
1804               logicalLeft in computePositionedLogicalWidthUsing().
1805
1806         (WebCore::RenderBox::computePositionedLogicalWidth):
1807            - Update comments and use the container block's direction except when calculating the static distance.
1808            - Remove the notion of a quirks mode in this function and for calculating the position of replaced and non-replaced
1809              blocks generally. This is in line with both FF4 and Opera - neither of which have a quirks mode for them.
1810         (WebCore::RenderBox::computePositionedLogicalWidthUsing):
1811            - Update comments and use the container block's direction except when calculating the static distance.
1812         (WebCore::RenderBox::computePositionedLogicalHeight):
1813            - Update comments.
1814         (WebCore::RenderBox::computePositionedLogicalWidthReplaced):
1815            - Update comments and use the container block's direction except when calculating the static distance.
1816            - If the containing block is RTL, always assume that values are over-constrained.
1817         (WebCore::RenderBox::computePositionedLogicalHeightReplaced):
1818            - Update comments.
1819
1820 2011-09-22  Anders Carlsson  <andersca@apple.com>
1821
1822         Get rid of Widget::setBoundsSize
1823         https://bugs.webkit.org/show_bug.cgi?id=68491
1824
1825         Reviewed by Sam Weinig.
1826
1827         This basically reverts http://trac.webkit.org/changeset/79167 and http://trac.webkit.org/changeset/75897
1828         which were added to make zoom gestures work with WebKit1, but since we don't support zoom gestures in WebKit1
1829         anymore, it's better for code cleanliness to get rid of Widget::setBoundsSize and the associated code. While this
1830         will unfortunately break transformed iframes in WebKit1, but Simon says that it's an acceptable tradeoff.
1831
1832         * WebCore.exp.in:
1833         * loader/FrameLoader.cpp:
1834         (WebCore::FrameLoader::open):
1835         * page/FrameView.cpp:
1836         (WebCore::FrameView::create):
1837         * platform/ScrollView.cpp:
1838         (WebCore::ScrollView::visibleContentRect):
1839         (WebCore::ScrollView::updateScrollbars):
1840         (WebCore::ScrollView::wheelEvent):
1841         * platform/ScrollView.h:
1842         * platform/Widget.cpp:
1843         * platform/Widget.h:
1844         (WebCore::Widget::resize):
1845         * platform/chromium/PopupContainer.cpp:
1846         (WebCore::PopupContainer::refresh):
1847         * platform/gtk/ScrollViewGtk.cpp:
1848         (WebCore::ScrollView::visibleContentRect):
1849         * platform/mac/WidgetMac.mm:
1850         (WebCore::Widget::paint):
1851         * rendering/RenderWidget.cpp:
1852         (WebCore::RenderWidget::setWidgetGeometry):
1853         (WebCore::RenderWidget::setWidget):
1854         (WebCore::RenderWidget::updateWidgetPosition):
1855         * rendering/RenderWidget.h:
1856
1857 2011-09-21  David Hyatt  <hyatt@apple.com>
1858
1859         https://bugs.webkit.org/show_bug.cgi?id=68590
1860         
1861         Floats pushed to next page, column or region don't reposition properly if the amount of
1862         available logical width at the new position changes. Refactor the code so that we can
1863         run the float placement algorithm again when this happens.
1864
1865         Covered by an existing regions test that exposes the issue.
1866
1867         Reviewed by Adam Roben.
1868
1869         * rendering/RenderBlock.cpp:
1870         (WebCore::RenderBlock::computeLogicalLocationForFloat):
1871         (WebCore::RenderBlock::positionNewFloats):
1872         * rendering/RenderBlock.h:
1873
1874 2011-09-22  Leandro Gracia Gil  <leandrogracia@chromium.org>
1875
1876         Fire TextInput events on speech input, but not set/add any inputMethod attribute.
1877         https://bugs.webkit.org/show_bug.cgi?id=60451
1878
1879         Reviewed by Ryosuke Niwa.
1880
1881         Introduce code to dispatch TextInput events when text is introduced via
1882         the speech input feature. Handle also the cases where speech input is
1883         started programmatically from the LayoutTestController.
1884
1885         Test: fast/speech/input-ontextinput-event.html
1886
1887         * dom/TextEventInputType.h:
1888         * html/shadow/TextControlInnerElements.cpp:
1889         (WebCore::InputFieldSpeechButtonElement::setRecognitionResult):
1890
1891 2011-09-20  Jason Liu  <jason.liu@torchmobile.com.cn>
1892
1893         Reviewed by Simon Fraser.
1894
1895         CSS outline property on a narrow element has rabbit ear artifacts
1896         https://bugs.webkit.org/show_bug.cgi?id=36793
1897
1898         Patch by Jason Liu  <jason.liu@torchmobile.com.cn>
1899         Patch updated by Robert Hogan <robert@webkit.org>
1900
1901         Test: fast/css/outline-narrowLine.html
1902
1903         * rendering/RenderInline.cpp:
1904         (WebCore::RenderInline::paintOutlineForLine):
1905
1906 2011-09-22  Wajahat Siddiqui  <mdwajahatali.siddiqui@motorola.com>
1907
1908         [GTK]Popup drop-down menu contains extra empty spaces at beginning and 
1909         occupies whole screen when items in popup reaches the height of display device.
1910         https://bugs.webkit.org/show_bug.cgi?id=68533
1911
1912         When implementing the GTK+ menu position function, set pushIn to false, which tell
1913         GTK+ not create a menu that is as big as the entire screen.
1914
1915         Reviewed by Martin Robinson.
1916
1917         * platform/gtk/GtkPopupMenu.cpp:
1918         (WebCore::GtkPopupMenu::menuPositionFunction): Set pushIn to false in the menu position function.
1919
1920 2011-09-22  Alpha Lam  <hclam@chromium.org>
1921
1922         Define export symbol correctly due to rename of pageScaleFactor to
1923         frameScaleFactor.
1924
1925         Not reviewed. Build fix.
1926
1927         * WebCore.exp.in:
1928
1929 2011-09-22  Vsevolod Vlasov  <vsevik@chromium.org>
1930
1931         Web Inspector: Console is always scrolled to the top
1932         https://bugs.webkit.org/show_bug.cgi?id=67483
1933
1934         Reviewed by Pavel Feldman.
1935
1936         * inspector/front-end/ConsoleView.js:
1937         (WebInspector.ConsoleView.prototype.wasShown):
1938         (WebInspector.ConsoleView.prototype.storeScrollPositions):
1939         (WebInspector.ConsoleView.prototype.restoreScrollPositions):
1940         (WebInspector.ConsoleView.prototype.onResize):
1941         (WebInspector.ConsoleView.prototype._immediatelyScrollIntoView):
1942         (WebInspector.ConsoleView.prototype._cancelScheduledScrollIntoView):
1943         (WebInspector.ConsoleView.prototype._consoleCleared):
1944         * inspector/front-end/Drawer.js:
1945         (WebInspector.Drawer.prototype.hide):
1946         (WebInspector.Drawer.prototype.resize):
1947         (WebInspector.Drawer.prototype._startStatusBarDragging):
1948         (WebInspector.Drawer.prototype._statusBarDragging):
1949         * inspector/front-end/inspector.js:
1950         (WebInspector.animateStyle):
1951         (WebInspector.animateStyle.forceComplete):
1952
1953 2011-09-22  Alpha Lam  <hclam@chromium.org>
1954
1955         https://bugs.webkit.org/show_bug.cgi?id=68081
1956         Fix scroll in page scaling mode.
1957
1958         Reviewed by Simon Fraser.
1959
1960         The following things are done in this patch:
1961         1. Rename Frame::pageScaleFactor() to Frame::frameScaleFactor() to better
1962            reflect its purpose.
1963         2. Frame::frameScaleFactor() returns the scale factor of this frame with
1964            respect to the container. So for the main frame it'll return the scale
1965            factor of the page, inner frames will return 1.0
1966         3. scrollBy(), scrollX() and scrollY() to take into account of the frame
1967            scale factor, causing incorrect coordinates reported to Javascript.
1968
1969         Tests: fast/events/scale-and-scroll-body.html
1970                fast/events/scale-and-scroll-iframe-body.html
1971                fast/events/scale-and-scroll-iframe-window.html
1972                fast/events/scale-and-scroll-window.html
1973
1974         * html/HTMLBodyElement.cpp:
1975         (WebCore::adjustForZoom):
1976         (WebCore::HTMLBodyElement::setScrollLeft):
1977         (WebCore::HTMLBodyElement::setScrollTop):
1978         * loader/HistoryController.cpp:
1979         (WebCore::HistoryController::saveScrollPositionAndViewStateToItem):
1980         * page/DOMWindow.cpp:
1981         (WebCore::DOMWindow::scrollX):
1982         (WebCore::DOMWindow::scrollY):
1983         (WebCore::DOMWindow::scrollTo):
1984         * page/Frame.cpp:
1985         (WebCore::Frame::frameScaleFactor): Return page's scale factor if this is
1986                                             main frame, otherwise 1.0
1987         * page/Frame.h:
1988         * page/FrameView.cpp:
1989         (WebCore::FrameView::applyOverflowToViewport):
1990         (WebCore::FrameView::scrollXForFixedPosition):
1991         (WebCore::FrameView::scrollYForFixedPosition):
1992
1993 2011-09-22  Andreas Kling  <kling@webkit.org>
1994
1995         CSS: Implement 'font' property in CSSComputedStyle.
1996         https://bugs.webkit.org/show_bug.cgi?id=66666
1997
1998         Reviewed by Antti Koivisto.
1999
2000         Test: fast/css/getComputedStyle/computed-style-font.html
2001
2002         * css/CSSComputedStyleDeclaration.cpp:
2003         (WebCore::fontFamilyFromStyle): Factored out of getPropertyCSSValue().
2004         This function will always return a CSSValueList, as opposed to the previous
2005         implementation which would return a CSSPrimitiveValue if there was only one family.
2006         getCSSPropertyValue() will return the first element of the list for 1-element lists
2007         to preserve the current behavior of getPropertyCSSValue('font-family').
2008
2009         (WebCore::lineHeightFromStyle): Factored out of getPropertyCSSValue().
2010         (WebCore::fontSizeFromStyle): Ditto.
2011         (WebCore::fontStyleFromStyle): Ditto.
2012         (WebCore::fontVariantFromStyle): Ditto.
2013         (WebCore::fontWeightFromStyle): Ditto.
2014
2015         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Added
2016         implementation of the computed 'font' property (CSSPropertyFont.)
2017
2018 2011-09-22  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
2019
2020         [Qt] Redirection overflow errors have wrong error domain
2021         https://bugs.webkit.org/show_bug.cgi?id=68612
2022
2023         Reviewed by Andreas Kling.
2024
2025         Redirection overflow currently puts the URL hostname in the errorDomain field.
2026         Now redirection overflow errors will be classified as "HTTP" errors.
2027
2028         * platform/network/qt/QNetworkReplyHandler.cpp:
2029         (WebCore::QNetworkReplyHandler::redirect):
2030
2031 2011-09-22  James Robinson  <jamesr@chromium.org>
2032
2033         Unreviewed, rolling out r95699.
2034         http://trac.webkit.org/changeset/95699
2035         https://bugs.webkit.org/show_bug.cgi?id=67417
2036
2037         Makes many chromium compositor tests crash
2038
2039         * platform/CrossThreadCopier.h:
2040         * platform/graphics/chromium/LayerRendererChromium.cpp:
2041         (WebCore::LayerRendererChromium::~LayerRendererChromium):
2042         * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
2043         (WebCore::CCHeadsUpDisplay::enabled):
2044         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
2045         (WebCore::CCLayerImpl::CCLayerImpl):
2046         (WebCore::CCLayerImpl::~CCLayerImpl):
2047         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
2048         (WebCore::CCLayerTreeHost::CCLayerTreeHost):
2049         (WebCore::CCLayerTreeHost::commitTo):
2050         (WebCore::CCLayerTreeHost::setNeedsRedraw):
2051         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
2052         (WebCore::CCSettings::CCSettings):
2053         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
2054         (WebCore::CCLayerTreeHostImpl::CCLayerTreeHostImpl):
2055         (WebCore::CCLayerTreeHostImpl::~CCLayerTreeHostImpl):
2056         * platform/graphics/chromium/cc/CCProxy.h:
2057         * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
2058         (WebCore::CCSingleThreadProxy::finishAllRendering):
2059         (WebCore::CCSingleThreadProxy::setNeedsCommit):
2060         (WebCore::CCSingleThreadProxy::commitIfNeeded):
2061         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
2062         (WebCore::CCThreadProxy::CCThreadProxy):
2063         (WebCore::CCThreadProxy::~CCThreadProxy):
2064         (WebCore::CCThreadProxy::compositeAndReadback):
2065         (WebCore::CCThreadProxy::finishAllRendering):
2066         (WebCore::CCThreadProxy::isStarted):
2067         (WebCore::CCThreadProxy::initializeLayerRenderer):
2068         (WebCore::CCThreadProxy::setNeedsCommit):
2069         (WebCore::CCThreadProxy::setNeedsCommitAndRedraw):
2070         (WebCore::CCThreadProxy::setNeedsRedraw):
2071         (WebCore::CCThreadProxy::start):
2072         (WebCore::CCThreadProxy::stop):
2073         (WebCore::CCThreadProxy::beginFrameAndCommitOnCCThread):
2074         (WebCore::CCThreadProxy::beginFrameAndCommit):
2075         (WebCore::CCThreadProxy::commitOnCCThread):
2076         (WebCore::CCThreadProxy::drawLayersOnCCThread):
2077         (WebCore::CCThreadProxy::setNeedsCommitOnCCThread):
2078         (WebCore::CCThreadProxy::setNeedsCommitAndRedrawOnCCThread):
2079         (WebCore::CCThreadProxy::setNeedsRedrawOnCCThread):
2080         * platform/graphics/chromium/cc/CCThreadProxy.h:
2081
2082 2011-09-22  Nat Duca  <nduca@chromium.org>
2083
2084         [chromium] Make CCThreadProxy draw
2085         https://bugs.webkit.org/show_bug.cgi?id=67417
2086
2087         Update the CCThreadProxy to correctly implement the CCProxy
2088         interface, do all the right committing and updating steps, and
2089         draw a picture on the screen.
2090
2091         Reviewed by James Robinson.
2092
2093         * platform/graphics/IntRect.h:
2094         * platform/graphics/chromium/LayerRendererChromium.cpp:
2095         (WebCore::LayerRendererChromium::~LayerRendererChromium):
2096         * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
2097         (WebCore::CCHeadsUpDisplay::enabled):
2098         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
2099         (WebCore::CCLayerImpl::CCLayerImpl):
2100         (WebCore::CCLayerImpl::~CCLayerImpl):
2101         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
2102         (WebCore::CCLayerTreeHost::CCLayerTreeHost):
2103         (WebCore::CCLayerTreeHost::commitTo):
2104         (WebCore::CCLayerTreeHost::commitComplete):
2105         (WebCore::CCLayerTreeHost::setNeedsRedraw):
2106         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
2107         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
2108         (WebCore::CCLayerTreeHostImpl::CCLayerTreeHostImpl):
2109         (WebCore::CCLayerTreeHostImpl::~CCLayerTreeHostImpl):
2110         * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
2111         (WebCore::CCSingleThreadProxy::finishAllRendering):
2112         (WebCore::CCSingleThreadProxy::setNeedsCommit):
2113         (WebCore::CCSingleThreadProxy::commitIfNeeded):
2114         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
2115         (WebCore::CCThreadProxy::CCThreadProxy):
2116         (WebCore::CCThreadProxy::~CCThreadProxy):
2117         (WebCore::CCThreadProxy::compositeAndReadback):
2118         (WebCore::CCThreadProxy::drawLayersAndReadbackOnCCThread):
2119         (WebCore::CCThreadProxy::finishAllRendering):
2120         (WebCore::CCThreadProxy::isStarted):
2121         (WebCore::CCThreadProxy::setNeedsCommit):
2122         (WebCore::CCThreadProxy::setNeedsCommitAndRedraw):
2123         (WebCore::CCThreadProxy::setNeedsRedraw):
2124         (WebCore::CCThreadProxy::start):
2125         (WebCore::CCThreadProxy::stop):
2126         (WebCore::CCThreadProxy::finishAllRenderingOnCCThread):
2127         (WebCore::CCThreadProxy::createBeginFrameAndCommitTaskOnCCThread):
2128         (WebCore::CCThreadProxy::beginFrameAndCommit):
2129         (WebCore::CCThreadProxy::commitOnCCThread):
2130         (WebCore::CCThreadProxy::scheduleDrawTaskOnCCThread):
2131         (WebCore::CCThreadProxy::drawLayersAndPresentOnCCThread):
2132         (WebCore::CCThreadProxy::drawLayersOnCCThread):
2133         (WebCore::CCThreadProxy::updateSchedulerStateOnCCThread):
2134         * platform/graphics/chromium/cc/CCThreadProxy.h:
2135
2136 2011-09-21  Beth Dakin  <bdakin@apple.com>
2137
2138         https://bugs.webkit.org/show_bug.cgi?id=67415
2139         Text drawn via -webkit-background-clip:text is blurry at device scale factors >1.0
2140         -and corresponding-
2141         <rdar://problem/10060379>
2142
2143         Reviewed by Darin Adler.
2144
2145         New helper function RenderBoxModelObject scales the mask image by the 
2146         deviceScaleFactor to get an image of the appropriate resolution. It also scales 
2147         the image's GraphicsContext so that the clip is set up on the same scale. Back in 
2148         paintFillLayerExtended() we still clip the image to the original maskRect to get 
2149         everything scaled back to the appropriate size.
2150         * rendering/RenderBoxModelObject.cpp:
2151         (WebCore::createDeviceScaledImageBuffer):
2152         (WebCore::RenderBoxModelObject::paintFillLayerExtended):
2153
2154         Make the deviceScaleFactor convenience function just a namespace-level function in 
2155         Page rather than a static member or Page.
2156         * page/Page.cpp:
2157         (WebCore::deviceScaleFactor):
2158         * page/Page.h:
2159         
2160         Pre-existing callers of Page::deviceScaleFactor(Frame*) must now use 
2161         WebCore::deviceScaleFactor(Frame*)
2162         * editing/DeleteButtonController.cpp:
2163         (WebCore::DeleteButtonController::createDeletionUI):
2164         * rendering/RenderImage.cpp:
2165         (WebCore::RenderImage::imageSizeForError):
2166         (WebCore::RenderImage::paintReplaced):
2167         * rendering/RenderLayer.cpp:
2168         (WebCore::RenderLayer::drawPlatformResizerImage):
2169
2170 2011-09-21  Tim Horton  <timothy_horton@apple.com>
2171
2172         [CG] ImageBufferData::getData has an invariant comparison in the inner part of a loop which doesn't get optimized out
2173         https://bugs.webkit.org/show_bug.cgi?id=68588
2174         <rdar://problem/10164955>
2175
2176         Reviewed by Simon Fraser.
2177
2178         Factor the unmultiplied check out of the inner loop, resulting in a
2179         speed bump in ImageBufferData::getData.
2180
2181         No new tests, performance improvement.
2182
2183         * platform/graphics/cg/ImageBufferDataCG.cpp:
2184         (WebCore::ImageBufferData::getData):
2185
2186 2011-09-21  Sameer Patil  <mkrp87@motorola.com>
2187
2188         :hover selector fails when hovering over a child select element with size attribute
2189         https://bugs.webkit.org/show_bug.cgi?id=67594
2190
2191         Reviewed by Darin Adler.
2192
2193         Test: fast/css/hover-affects-ancestor.html
2194
2195         This patch addresses the problem of deactivation of the ancestor element :hover rules
2196         when hovered its contained elements.
2197
2198         * rendering/RenderLayer.cpp:
2199         (WebCore::RenderLayer::updateHoverActiveState):
2200
2201 2011-09-21  Sergey Glazunov  <serg.glazunov@gmail.com>
2202
2203         [Chromium] Protect message ports from being deleted in V8MessageEvent::portsAccessorGetter
2204         https://bugs.webkit.org/show_bug.cgi?id=68584
2205
2206         Reviewed by Adam Barth.
2207
2208         Test: fast/dom/message-port-deleted-by-accessor.html
2209
2210         * bindings/v8/custom/V8MessageEventCustom.cpp:
2211         (WebCore::V8MessageEvent::portsAccessorGetter):
2212
2213 2011-09-21  Anders Carlsson  <andersca@apple.com>
2214
2215         Add back protection against the NSView going away while handling mouseDown
2216         https://bugs.webkit.org/show_bug.cgi?id=68585
2217
2218         Reviewed by Darin Adler.
2219
2220         Add calls to RenderWidget::suspendWidgetHierarchyUpdates() and RenderWidget::resumeWidgetHierarchyUpdates(),
2221         as a followup fix to https://bugs.webkit.org/show_bug.cgi?id=68570.
2222
2223         * page/mac/EventHandlerMac.mm:
2224         (WebCore::EventHandler::passMouseDownEventToWidget):
2225
2226 2011-09-21  Julien Chaffraix  <jchaffraix@webkit.org>
2227
2228         Crash in RenderBox::paintMaskImages when GraphicsContext's painting is disabled
2229         https://bugs.webkit.org/show_bug.cgi?id=68133
2230
2231         Reviewed by Darin Adler.
2232
2233         Tests: fast/css/webkit-mask-crash-fieldset-legend.html
2234                fast/css/webkit-mask-crash-figure.html
2235                fast/css/webkit-mask-crash-table.html
2236                fast/css/webkit-mask-crash-td-2.html
2237                fast/css/webkit-mask-crash-td.html
2238
2239         GraphicsContext::getCTM crashes if called with a GraphicsContext that has painting
2240         disabled. RenderBox::paintMaskImages would thus crash if called in this condition.
2241
2242         This change just modifies the different GraphicsContext::getCTM method to bail early
2243         if painting is disabled on the GraphicsContext. The rest of the change is exposing
2244         paintControlTints that exposes this.
2245
2246         * WebCore.exp.in: Added symbols of the newly export window.internals function.
2247
2248         * page/FrameView.cpp:
2249         (WebCore::FrameView::updateControlTints): Split this function in 2 so that
2250         I can expose the internal paintControlTints.
2251
2252         (WebCore::FrameView::paintControlTints):
2253         This is the one exposed to Internals as we want to be testable regardless of
2254         whether the platform supports control tints.
2255
2256         * page/FrameView.h: Added paintControlTints.
2257
2258         * testing/Internals.cpp:
2259         (WebCore::Internals::paintControlTints):
2260         * testing/Internals.h:
2261         * testing/Internals.idl:
2262         Added a way to force a fake painting so that we can easily reproduce the bugs.
2263
2264         * platform/graphics/cairo/GraphicsContextCairo.cpp:
2265         (WebCore::GraphicsContext::getCTM):
2266         * platform/graphics/cg/GraphicsContextCG.cpp:
2267         (WebCore::GraphicsContext::getCTM):
2268         * platform/graphics/qt/GraphicsContextQt.cpp:
2269         (WebCore::GraphicsContext::getCTM):
2270         * platform/graphics/skia/GraphicsContextSkia.cpp:
2271         (WebCore::GraphicsContext::getCTM):
2272         * platform/graphics/wince/GraphicsContextWinCE.cpp:
2273         (WebCore::GraphicsContext::getCTM):
2274         * platform/graphics/wx/GraphicsContextWx.cpp:
2275         (WebCore::GraphicsContext::getCTM):
2276         Fixed all our back-end to exit early if painting is disabled.
2277
2278 2011-09-19  Jer Noble  <jer.noble@apple.com>
2279
2280         Add settings to control the availability of the Web Audio API to WebKit and WebKit2.
2281         https://bugs.webkit.org/show_bug.cgi?id=68382
2282
2283         Reviewed by Darin Adler.
2284
2285         Only create a AudioContext object if the Web Audio feature is runtime-enabled in Settings.
2286
2287         No new tests, as this feature is not yet enabled by default.
2288
2289         * bindings/js/JSDOMWindowCustom.cpp:
2290         (WebCore::JSDOMWindow::webkitAudioContext):
2291
2292 2011-09-21  Anders Carlsson  <andersca@apple.com>
2293
2294         Remove checks for Leopard-only Objective-C APIs
2295         https://bugs.webkit.org/show_bug.cgi?id=68579
2296
2297         Reviewed by Sam Weinig.
2298
2299         We can always assume that OBJC_API_VERSION is at least 2, it's been 2 since Leopard.
2300
2301         * bridge/objc/objc_class.mm:
2302         (JSC::Bindings::ObjcClass::methodsNamed):
2303         (JSC::Bindings::ObjcClass::fieldNamed):
2304         * bridge/objc/objc_instance.mm:
2305         (allocateAutoReleasePool):
2306         * bridge/objc/objc_runtime.mm:
2307         (JSC::Bindings::ObjcField::ObjcField):
2308         * page/mac/EventHandlerMac.mm:
2309
2310 2011-09-21  Anders Carlsson  <andersca@apple.com>
2311
2312         Remove Widget::beforeMouseDown and Widget::afterMouseDown
2313         https://bugs.webkit.org/show_bug.cgi?id=68570
2314
2315         Reviewed by Sam Weinig.
2316
2317         These two member functions were originally added to avoid crashes due to removing NSViews while they were
2318         being tracked by AppKit. Since they were added, we've moved away from NSViews for form controls, and the bugs in
2319         AppKit that lead to crashes have been fixed.
2320
2321         * page/mac/EventHandlerMac.mm:
2322         (WebCore::EventHandler::passMouseDownEventToWidget):
2323         * platform/Widget.h:
2324         * platform/mac/WidgetMac.mm:
2325         (WebCore::Widget::Widget):
2326         (WebCore::Widget::removeFromSuperview):
2327
2328         * rendering/RenderWidget.cpp:
2329         Change widgetHierarchyUpdateSuspendCount to be an unsigned integer instead of a size_t.
2330
2331 2011-09-21  Abhishek Arya  <inferno@chromium.org>
2332
2333         Not use anonymousContainer on beforeChild calculation
2334         and let later code handle it. Fix style update on block-level
2335         anonymous objects.
2336         https://bugs.webkit.org/show_bug.cgi?id=67656
2337
2338         Reviewed by David Hyatt.
2339
2340         Test: fast/table/quote-text-around-iframe.html
2341
2342         * rendering/RenderTable.cpp:
2343         (WebCore::RenderTable::addChild):
2344         * rendering/RenderTableCell.cpp:
2345         (WebCore::RenderTableCell::styleDidChange):
2346         * rendering/RenderTableRow.cpp:
2347         (WebCore::RenderTableRow::addChild):
2348         * rendering/RenderObject.cpp:
2349         (WebCore::RenderObject::propagateStyleToAnonymousChildren):
2350
2351 2011-09-21  David Hyatt  <hyatt@apple.com>
2352
2353         https://bugs.webkit.org/show_bug.cgi?id=68562
2354         
2355         Pagination struts don't update properly when collapsing margin estimates are wrong.
2356         
2357         Refactor the pagination adjustments that happen during block layout to allow for
2358         a 3-pass layout system instead of just a 2-pass layout system. The basic idea is
2359         to come up with an estimate that includes collapsing, clearance and pagination.
2360         
2361         If the estimate only with collapsing and clearance was wrong, then we lay out again
2362         using the correct collapsing margin values and clearance before applying pagination breaks.
2363         
2364         After this second layout, the normal code that runs when unpaginated compares estimates
2365         and lays out a third time to account for adjustments as a result of pagination movement.
2366
2367         Reviewed by Sam Weinig.
2368
2369         Added fast/regions/text-regions-split-small-pagination.html
2370
2371         * rendering/RenderBlock.cpp:
2372         (WebCore::RenderBlock::estimateLogicalTopPosition):
2373         (WebCore::RenderBlock::layoutBlockChild):
2374         (WebCore::RenderBlock::adjustBlockChildForPagination):
2375         * rendering/RenderBlock.h:
2376
2377 2011-09-21  James Robinson  <jamesr@chromium.org>
2378
2379         [chromium] SharedGraphicsContext3D's context should not be destroyed during atexit
2380         https://bugs.webkit.org/show_bug.cgi?id=68558
2381
2382         Reviewed by Stephen White.
2383
2384         The SharedGraphicsContext3D's internal context is lazily created and then leaked intentionally, but since the
2385         last ref is in a function-static RefPtr<> it ends up being destroyed at process exit time.  This is bad, since
2386         by the time we get this far in process shutdown we can't actually cleanly run the destruction logic and we
2387         crash.  Since we are explicitly leaking this for the lifetime of the process there's no point in keeping it in a
2388         RefPtr<>
2389
2390         * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
2391         (WebCore::SharedGraphicsContext3D::get):
2392
2393 2011-09-21  Sergey Glazunov  <serg.glazunov@gmail.com>
2394
2395         [Chromium] Protect the Frame in V8HTMLDocument::openCallback
2396         https://bugs.webkit.org/show_bug.cgi?id=68555
2397
2398         Reviewed by Nate Chapin.
2399
2400         Test: fast/dom/frame-deleted-in-document-open.html
2401
2402         * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
2403         (WebCore::V8HTMLDocument::openCallback):
2404
2405 2011-09-21  Adam Klein  <adamk@chromium.org>
2406
2407         Clean up CSS Counter code
2408         https://bugs.webkit.org/show_bug.cgi?id=68492
2409
2410         Reviewed by Tony Chang.
2411
2412         Several cleanups/fixes:
2413         - Make Counter::listStyle() return the actual list style string,
2414           rather than empty string.
2415         - Handle a specified list style of "none" correctly when generating
2416           cssText and in Counter::listStyle().
2417         - Use StringBuilder when generating cssText.
2418
2419         Test: fast/css/counters/getCounterValue.html
2420
2421         * css/CSSParser.cpp:
2422         (WebCore::CSSParser::parseCounterContent):
2423         Simplify processing (moving conversion to CSSStyleSelector),
2424         pass a CSS_IDENT as the listStyle to Counter::create.
2425         * css/CSSPrimitiveValue.cpp:
2426         (WebCore::CSSPrimitiveValue::cssText):
2427         Use StringBuilder.
2428         * css/CSSStyleSelector.cpp:
2429         (WebCore::CSSStyleSelector::applyProperty):
2430         Convert from a CSS_IDENT to an EListStyleType.
2431         * css/Counter.h:
2432         (WebCore::Counter::listStyleIdent):
2433         Renamed from listStyleNumber to match its new functionality.
2434
2435 2011-09-21  Chris Marrin  <cmarrin@apple.com>
2436
2437         Check in WebCore.vcproj file unchanged but written like MSDev likes it
2438
2439         Unreviewed.
2440
2441         * WebCode.vcproj/WebCore.vcproj:
2442
2443 2011-09-21  Stephen White  <senorblanco@chromium.org>
2444
2445         [chromium] Optimize ImageBuffer constructor when accelerated
2446         https://bugs.webkit.org/show_bug.cgi?id=68501
2447
2448         If the accelerated rendering mode is passed in to ImageBuffer, instead
2449         of creating a bitmap PlatformCanvas and subsequently replacing its
2450         device with an SkGpuDevice, create an SkCanvas and SkGpuDevice first,
2451         and fall back to raster creation only failure.  This saves on system
2452         RAM for the backing store (and possibly GDI resources).
2453
2454         Reviewed by James Robinson.
2455
2456         Covered by existing tests.
2457
2458         * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
2459         (WebCore::SharedGraphicsContext3D::get):
2460         * platform/graphics/gpu/SharedGraphicsContext3D.h:
2461         Rename "SharedGraphicsContext3D::create()" to "get()" to more
2462         accurately reflect its function.
2463         * platform/graphics/skia/ImageBufferSkia.cpp:
2464         (WebCore::createAcceleratedCanvas):
2465         Refactor creation of accelerated ImageBuffer.
2466         (WebCore::ImageBuffer::ImageBuffer):
2467         Attempt creation of accelerated ImageBuffer first, and only fall back
2468         to bitmap-backed canvas creation if it fails.
2469
2470 2011-09-21  Dan Bernstein  <mitz@apple.com>
2471
2472         WebCore part of: Prevent the WebKit frameworks from defining inappropriately-named Objective-C classes
2473         https://bugs.webkit.org/show_bug.cgi?id=68451
2474
2475         Reviewed by Darin Adler.
2476
2477         * WebCore.xcodeproj/project.pbxproj: Added a script build phase that invokes
2478         check-for-inappropriate-objc-class-names, allowing only class names prefixed with "DOM" or "Web".
2479
2480 2011-09-21  Dan Bernstein  <mitz@apple.com>
2481
2482         <rdar://problem/9768483> REGRESSION: Crash in RenderBlock::removeFloatingObjectsBelow()
2483         https://bugs.webkit.org/show_bug.cgi?id=68550
2484
2485         Reviewed by Darin Adler.
2486
2487         Test: fast/multicol/null-lastFloat-in-removeFloatingObjectsBelow.html
2488
2489         * rendering/RenderBlock.cpp:
2490         (WebCore::RenderBlock::removeFloatingObjectsBelow): Break out of the while() loop when the
2491         floating object set is empty, which can happen if there were no floats on previous lines
2492         (in which case, lastFloat is 0).
2493
2494 2011-09-21  ChangSeok Oh  <shivamidow@gmail.com>
2495
2496         [GTK] Fix build break when enabling webgl on r95593
2497         https://bugs.webkit.org/show_bug.cgi?id=68502
2498
2499         Reviewed by Martin Robinson.
2500
2501         Add PassOwnPtr.h to GC3DPrivate.h and remove useless one from GC3DGtk.cpp & GC3DPrivate.cpp
2502
2503         No tests required.
2504
2505         * platform/graphics/gtk/GraphicsContext3DGtk.cpp:
2506         * platform/graphics/gtk/GraphicsContext3DPrivate.cpp:
2507         * platform/graphics/gtk/GraphicsContext3DPrivate.h:
2508
2509 2011-09-21  Vsevolod Vlasov  <vsevik@chromium.org>
2510
2511         Web Inspector: clear resource agent resource cache upon resource agent's disable.
2512         https://bugs.webkit.org/show_bug.cgi?id=67995
2513
2514         Reviewed by Pavel Feldman.
2515
2516         Test: http/tests/inspector/network/network-disabling-check-no-memory-leak.html
2517
2518         * inspector/InspectorResourceAgent.cpp:
2519         (WebCore::InspectorResourceAgent::disable):
2520
2521 2011-09-21  David Hyatt  <hyatt@apple.com>
2522
2523         https://bugs.webkit.org/show_bug.cgi?id=68543
2524         
2525         Make sure that when regions change dimensions we recompute pagination slices.
2526
2527         Reviewed by Simon Fraser.
2528
2529         Added new tests in fast/regions.
2530
2531         * rendering/LayoutState.cpp:
2532         (WebCore::LayoutState::LayoutState):
2533         * rendering/LayoutState.h:
2534         * rendering/RenderFlowThread.cpp:
2535         (WebCore::RenderFlowThread::layout):
2536         (WebCore::RenderFlowThread::renderRegionForLine):
2537         (WebCore::RenderFlowThread::regionLogicalWidthForLine):
2538         * rendering/RenderRegion.cpp:
2539         (WebCore::RenderRegion::layout):
2540         * rendering/RenderView.cpp:
2541         (WebCore::RenderView::pushLayoutState):
2542         * rendering/RenderView.h:
2543         (WebCore::LayoutStateMaintainer::LayoutStateMaintainer):
2544         (WebCore::LayoutStateMaintainer::push):
2545
2546 2011-09-21  Xianzhu Wang  <wangxianzhu@chromium.org>
2547
2548         Ensure TestWebKitAPI works on mac, win, chromium-mac and chromium-linux
2549         https://bugs.webkit.org/show_bug.cgi?id=68206
2550
2551         Reviewed by Tony Chang.
2552
2553         Added two new wtf headers into ForwardingHeaders/wtf to make
2554         #include <wtf/...h> cross-platform.
2555         No new tests needed.
2556
2557         * ForwardingHeaders/wtf/MetaAllocator.h: Added.
2558         * ForwardingHeaders/wtf/RedBlackTree.h: Added.
2559
2560 2011-09-21  David Delaune  <david.delaune@googlemail.com>
2561
2562         [WinCairo] IconDatabase::defaultIcon always fails for non-CAN_THEME_URL_ICON builds.
2563         https://bugs.webkit.org/show_bug.cgi?id=67469
2564
2565         Reviewed by Brent Fulgham.
2566
2567         No new functionality added in this change.
2568
2569         * loader/icon/IconDatabase.cpp: defining CAN_THEME_URL_ICON for the WIN_CAIRO
2570
2571 2011-09-20  Ryosuke Niwa  <rniwa@webkit.org>
2572
2573         Span element gets produced using backspace/delete to merge header with paragraph
2574         https://bugs.webkit.org/show_bug.cgi?id=68413
2575
2576         Reviewed by Darin Adler.
2577
2578         Add p element to the list of elements to retain appearance. Also modified removeStyleFromNode
2579         (and renamed to removeStyleFromRules) not to remove inline style declarations because
2580         inline styles need to stay on copy.
2581
2582         Test: editing/deleting/merge-paragraph-from-p-with-style.html
2583
2584         * editing/DeleteSelectionCommand.cpp:
2585         (WebCore::DeleteSelectionCommand::saveTypingStyleState):
2586         * editing/EditingStyle.cpp:
2587         (WebCore::EditingStyle::removeStyleFromRules): Renamed from removeStyleFromNode.
2588         * editing/EditingStyle.h:
2589         * editing/markup.cpp:
2590         (WebCore::isBlockNodeToRetainAppearance):
2591         (WebCore::StyledMarkupAccumulator::serializeNodes):
2592
2593 2011-09-21  Alice Boxhall  <aboxhall@chromium.org>
2594
2595         Report AXValueChanged when value changes in element with role=textbox.
2596         https://bugs.webkit.org/show_bug.cgi?id=68201
2597
2598         Reviewed by Chris Fleizach.
2599
2600         Test: platform/mac/accessibility/textbox-role-reports-notifications.html
2601
2602         * accessibility/AccessibilityObject.cpp:
2603         (WebCore::AccessibilityObject::isARIATextControl):
2604         * accessibility/AccessibilityObject.h:
2605         * accessibility/AccessibilityRenderObject.cpp:
2606         (WebCore::AccessibilityRenderObject::contentChanged):
2607         (WebCore::AccessibilityRenderObject::childrenChanged):
2608
2609 2011-09-21  Pavel Feldman  <pfeldman@google.com>
2610
2611         Web Inspector: introduce Page.enable and Page.disable
2612         https://bugs.webkit.org/show_bug.cgi?id=68530
2613
2614         Otherwise protocol is violating the contract of not sending
2615         notifications by default.
2616
2617         Reviewed by Yury Semikhatsky.
2618
2619         * inspector/Inspector.json:
2620
2621 2011-09-21  Pavel Feldman  <pfeldman@google.com>
2622
2623         Web Inspector: add minimal error handling to the DOM breakpoints.
2624         https://bugs.webkit.org/show_bug.cgi?id=68537
2625
2626         Reviewed by Yury Semikhatsky.
2627
2628         * inspector/InspectorDOMAgent.h:
2629         * inspector/InspectorDOMDebuggerAgent.cpp:
2630         (WebCore::domTypeForName):
2631         (WebCore::InspectorDOMDebuggerAgent::setDOMBreakpoint):
2632         (WebCore::InspectorDOMDebuggerAgent::removeDOMBreakpoint):
2633
2634 2011-09-21  Ilya Tikhonovsky  <loislo@chromium.org>
2635
2636         Web Inspector: make WebInspector a bit more timeline friendly.
2637         https://bugs.webkit.org/show_bug.cgi?id=68534
2638
2639         I found that the maximum captured stack frame depth tracked by timeline is not
2640         very convenient because the average depth of call stack considerably more than five.
2641         Another useful trick is console.timeStamp for all backend calls.
2642
2643         Reviewed by Yury Semikhatsky.
2644
2645         * inspector/CodeGeneratorInspector.pm:
2646         * inspector/front-end/TimelinePanel.js:
2647         (WebInspector.TimelinePanel.prototype._toggleTimelineButtonClicked):
2648
2649 2011-09-21  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
2650
2651         [Qt][WK2] Implement Download support in WebProcess
2652         https://bugs.webkit.org/show_bug.cgi?id=68153
2653
2654         Reviewed by Andreas Kling.
2655
2656         Refactored QNetworkReplyHandler::finish() in order to add
2657         and use the static function QNetworkReplyHandler::errorForReply().
2658         This will be used by our Download implementation in WebKit2 (WebProcess)
2659         when handling ResourceError.
2660
2661         * platform/network/qt/QNetworkReplyHandler.cpp:
2662         (WebCore::QNetworkReplyHandler::finish):
2663         (WebCore::QNetworkReplyHandler::errorForReply):
2664         * platform/network/qt/QNetworkReplyHandler.h:
2665         * platform/network/qt/ResourceRequest.h:
2666
2667 2011-09-21  Pavel Feldman  <pfeldman@google.com>
2668
2669         Web Inspector: paint box model colors in Metrics sidebar at all times, do not draw box outlines.
2670         https://bugs.webkit.org/show_bug.cgi?id=68240
2671
2672         Today we paint backgrounds in Metrics box model on hover only - should be painted at all
2673         times for the reference. Outlining boxes is highlight is wrong since outlines are outside
2674         the corresponding box regions. We've seen few reports on that + Firebug does not do borders
2675         for that reason.
2676
2677         Reviewed by Yury Semikhatsky.
2678
2679         * inspector/DOMNodeHighlighter.cpp:
2680         * inspector/DOMNodeHighlighter.h:
2681         * inspector/Inspector.json:
2682         * inspector/InspectorDOMAgent.cpp:
2683         (WebCore::InspectorDOMAgent::setHighlightDataFromConfig):
2684         * inspector/front-end/Color.js:
2685         * inspector/front-end/MetricsSidebarPane.js:
2686         (WebInspector.MetricsSidebarPane.prototype._highlightDOMNode):
2687         (WebInspector.MetricsSidebarPane.prototype._updateMetrics):
2688         * inspector/front-end/inspector.css:
2689         (.metrics .label):
2690         * inspector/front-end/inspector.js:
2691         (WebInspector.buildHighlightConfig):
2692
2693 2011-09-21  Andreas Kling  <kling@webkit.org>
2694
2695         Protect against misuse of EventListenerIterator.
2696         https://bugs.webkit.org/show_bug.cgi?id=68364
2697
2698         Reviewed by Darin Adler.
2699
2700         In debug mode, keep track of the number of active EventListenerIterators
2701         on an EventListenerMap, and assert that there are no iterators when the
2702         map is being modified.
2703
2704         * dom/EventListenerMap.cpp:
2705         (WebCore::EventListenerMap::EventListenerMap):
2706         (WebCore::EventListenerMap::clear):
2707         (WebCore::EventListenerMap::add):
2708         (WebCore::EventListenerMap::remove):
2709         (WebCore::EventListenerMap::find):
2710         (WebCore::EventListenerMap::removeFirstEventListenerCreatedFromMarkup):
2711         (WebCore::EventListenerMap::copyEventListenersNotCreatedFromMarkupToTarget):
2712         (WebCore::EventListenerIterator::EventListenerIterator):
2713         (WebCore::EventListenerIterator::~EventListenerIterator):
2714         * dom/EventListenerMap.h:
2715
2716 2011-09-21  Pavel Feldman  <pfeldman@google.com>
2717
2718         Web Inspector: minor fixes in the DOM domain of the protocol.
2719         https://bugs.webkit.org/show_bug.cgi?id=68517
2720
2721         Reviewed by Yury Semikhatsky.
2722
2723         * inspector/Inspector.json:
2724         * inspector/InspectorDOMAgent.cpp:
2725         (WebCore::InspectorDOMAgent::setAttributesAsText):
2726         * inspector/InspectorDOMAgent.h:
2727         * inspector/front-end/DOMAgent.js:
2728         (WebInspector.DOMNode.prototype.setAttribute):
2729
2730 2011-09-16  Pavel Feldman  <pfeldman@google.com>
2731
2732         Web Inspector: limit the use of "Resource" term in the protocol.
2733         https://bugs.webkit.org/show_bug.cgi?id=68250
2734
2735         Reviewed by Yury Semikhatsky.
2736
2737         * inspector/Inspector.json:
2738         * inspector/InspectorResourceAgent.cpp:
2739         (WebCore::InspectorResourceAgent::markResourceAsCached):
2740         (WebCore::InspectorResourceAgent::didLoadResourceFromMemoryCache):
2741         (WebCore::InspectorResourceAgent::setExtraHTTPHeaders):
2742         (WebCore::InspectorResourceAgent::getResponseBody):
2743         * inspector/InspectorResourceAgent.h:
2744         * inspector/front-end/ExtensionServer.js:
2745         (WebInspector.ExtensionServer.prototype._onAddRequestHeaders):
2746         * inspector/front-end/NetworkManager.js:
2747         (WebInspector.NetworkManager.prototype.requestContent):
2748         (WebInspector.NetworkDispatcher.prototype.requestServedFromCache):
2749         (WebInspector.NetworkDispatcher.prototype.requestServedFromMemoryCache):
2750
2751 2011-09-21  Sheriff Bot  <webkit.review.bot@gmail.com>
2752
2753         Unreviewed, rolling out r95608.
2754         http://trac.webkit.org/changeset/95608
2755         https://bugs.webkit.org/show_bug.cgi?id=68521
2756
2757         breaks GTK and Windows builds. Please check EWS next time.
2758         (Requested by philn-tp on #webkit).
2759
2760         * html/HTMLBodyElement.cpp:
2761         (WebCore::adjustForZoom):
2762         (WebCore::HTMLBodyElement::setScrollLeft):
2763         (WebCore::HTMLBodyElement::setScrollTop):
2764         * loader/HistoryController.cpp:
2765         (WebCore::HistoryController::saveScrollPositionAndViewStateToItem):
2766         * page/DOMWindow.cpp:
2767         (WebCore::DOMWindow::scrollX):
2768         (WebCore::DOMWindow::scrollY):
2769         (WebCore::DOMWindow::scrollTo):
2770         * page/Frame.cpp:
2771         (WebCore::Frame::pageScaleFactor):
2772         * page/Frame.h:
2773         * page/FrameView.cpp:
2774         (WebCore::FrameView::applyOverflowToViewport):
2775         (WebCore::FrameView::scrollXForFixedPosition):
2776         (WebCore::FrameView::scrollYForFixedPosition):
2777
2778 2011-09-21  Pavel Feldman  <pfeldman@google.com>
2779
2780         Web Inspector: console panel's scroller is not properly aligned.
2781         https://bugs.webkit.org/show_bug.cgi?id=68448
2782
2783         Reviewed by Yury Semikhatsky.
2784
2785         * inspector/front-end/inspector.css:
2786         (#console-view):
2787         (#console-messages):
2788         (#drawer #console-messages):
2789
2790 2011-09-20  Alpha Lam  <hclam@chromium.org>
2791
2792         https://bugs.webkit.org/show_bug.cgi?id=68081
2793         Fix scroll in page scaling mode.
2794
2795         Reviewed by Simon Fraser.
2796
2797         The following things are done in this patch:
2798         1. Rename Frame::pageScaleFactor() to Frame::frameScaleFactor() to better
2799            reflect its purpose.
2800         2. Frame::frameScaleFactor() returns the scale factor of this frame with
2801            respect to the container. So for the main frame it'll return the scale
2802            factor of the page, inner frames will return 1.0
2803         3. scrollBy(), scrollX() and scrollY() to take into account of the frame
2804            scale factor, causing incorrect coordinates reported to Javascript.
2805
2806         Tests: fast/events/scale-and-scroll-body.html
2807                fast/events/scale-and-scroll-iframe-body.html
2808                fast/events/scale-and-scroll-iframe-window.html
2809                fast/events/scale-and-scroll-window.html
2810
2811         * html/HTMLBodyElement.cpp:
2812         (WebCore::adjustForZoom):
2813         (WebCore::HTMLBodyElement::setScrollLeft):
2814         (WebCore::HTMLBodyElement::setScrollTop):
2815         * loader/HistoryController.cpp:
2816         (WebCore::HistoryController::saveScrollPositionAndViewStateToItem):
2817         * page/DOMWindow.cpp:
2818         (WebCore::DOMWindow::scrollX):
2819         (WebCore::DOMWindow::scrollY):
2820         (WebCore::DOMWindow::scrollTo):
2821         * page/Frame.cpp:
2822         (WebCore::Frame::frameScaleFactor): Return page's scale factor if this is
2823                                             main frame, otherwise 1.0
2824         * page/Frame.h:
2825         * page/FrameView.cpp:
2826         (WebCore::FrameView::applyOverflowToViewport):
2827         (WebCore::FrameView::scrollXForFixedPosition):
2828         (WebCore::FrameView::scrollYForFixedPosition):
2829
2830 2011-09-21  Andras Becsi  <andras.becsi@nokia.com>
2831
2832         [Qt] Remove Qt specific code from css/SelectorChecker.cpp
2833         https://bugs.webkit.org/show_bug.cgi?id=67702
2834
2835         Reviewed by Csaba Osztrogonác.
2836
2837         No new tests needed.
2838
2839         * css/SelectorChecker.cpp: Move Qt-specific code to the Qt-specific WebPlatformStrategies.
2840         (WebCore::SelectorChecker::determineLinkStateSlowCase):
2841         * platform/VisitedLinkStrategy.h:
2842
2843 2011-09-16  MORITA Hajime  <morrita@google.com>
2844
2845         Style changes on forwarded shadow children should trigger shadow renderer reconstruction.
2846         https://bugs.webkit.org/show_bug.cgi?id=68228
2847
2848         Reviewed by Dimitri Glazkov.
2849
2850         Currently style changes on forwarded shadow child triggers
2851         Node::reattach() only for the forwarded node. But it should
2852         invalidate whole renderers on the shadow tree because
2853         ShadowContentElement expects its inclusions to be attached and to
2854         create renderers in the inclusion order. But single node
2855         reattach() violates the expectation and possibly creates
2856         inconsistent render tree.
2857
2858         This change makes NodeRenderingContext to go
2859         AttachContentForwarded, where the ShadowContentElement::attach()
2860         happens, only during ShadowRoot::attach(), not for style-change
2861         triggered Node::attach() on the forwarded nodes.
2862
2863         Note that the altering phase AttachContentLight doesn't create
2864         renderers for the forwarded nodes. Instead of that, it possibly
2865         triggers shadow subtree reconstruction on
2866         NodeRenderingContext::hostChildrenChanged().
2867
2868         No new tests. This is a defensive change. There is no visible
2869         difference at this time.
2870
2871         * dom/NodeRenderingContext.cpp:
2872         (WebCore::NodeRenderingContext::NodeRenderingContext):
2873         * dom/ShadowRoot.cpp:
2874         (WebCore::ShadowRoot::isInclusionSelectorActive):
2875         * dom/ShadowRoot.h:
2876
2877 2011-09-20  MORITA Hajime  <morrita@google.com>
2878
2879         <meter> doesn't update rendering when its value is changed.
2880         https://bugs.webkit.org/show_bug.cgi?id=67614
2881
2882         Reviewed by Dimitri Glazkov.
2883
2884         It lacks repaint() when the value is changed. 
2885         
2886         For non-native appearance it works because the indicator is
2887         implemented in shadow DOM, for native appearance, repainting should be
2888         handled explicitly.
2889         
2890         Test: fast/dom/HTMLMeterElement/meter-element-repaint-on-update-value.html
2891
2892         * html/HTMLMeterElement.cpp:
2893         (WebCore::HTMLMeterElement::didElementStateChange):
2894         * rendering/RenderMeter.cpp:
2895         (WebCore::RenderMeter::updateFromElement):
2896         * rendering/RenderMeter.h:
2897         * rendering/RenderProgress.cpp:
2898         (WebCore::RenderProgress::updateAnimationState):
2899
2900 2011-09-20  Kent Tamura  <tkent@chromium.org>
2901
2902         Move RenderObject::markContainingBlocksForLayout() to RenderObject.cpp.
2903         https://bugs.webkit.org/show_bug.cgi?id=67989
2904
2905         Reviewed by Ryosuke Niwa.
2906
2907         No new tests because of no behavior change.
2908
2909         * rendering/RenderObject.cpp:
2910         (WebCore::objectIsRelayoutBoundary): Moved from RenderObject.h.
2911         (WebCore::RenderObject::markContainingBlocksForLayout): Moved from RenderObject.h
2912         * rendering/RenderObject.h:
2913
2914 2011-09-20  Rachel Blum  <groby@chromium.org>
2915
2916         Support for multiple <link rel="icon"> favicon elements.
2917         https://bugs.webkit.org/show_bug.cgi?id=65564
2918
2919         Reviewed by Darin Fisher.
2920
2921         No tests - purely an API change. (And API is not exposed to LayoutTests)
2922
2923         * dom/Document.cpp:
2924         (WebCore::Document::iconURLs):
2925         (WebCore::Document::addIconURL):
2926         * dom/Document.h:
2927         * dom/IconURL.cpp:
2928         (WebCore::toIconIndex):
2929         * dom/IconURL.h:
2930         (WebCore::IconURL::IconURL):
2931         * html/HTMLLinkElement.cpp:
2932         (WebCore::HTMLLinkElement::process):
2933         * loader/LinkLoader.cpp:
2934         (WebCore::LinkLoader::loadLink):
2935         * loader/LinkLoader.h:
2936         * loader/icon/IconController.cpp:
2937         (WebCore::IconController::urlsForTypes):
2938         (WebCore::IconController::appendToIconURLs):
2939         (WebCore::IconController::defaultURL):
2940
2941 2011-09-20  Ojan Vafai  <ojan@chromium.org>
2942
2943         [css3-flexbox] cleanup padding width calculations
2944         https://bugs.webkit.org/show_bug.cgi?id=68490
2945
2946         Reviewed by Tony Chang.
2947
2948         No new tests. Existing tests cover the refactor.
2949
2950         * rendering/RenderFlexibleBox.cpp:
2951         (WebCore::RenderFlexibleBox::logicalBorderAndPaddingWidthForChild):
2952         (WebCore::RenderFlexibleBox::logicalScrollbarHeightForChild):
2953         (WebCore::RenderFlexibleBox::preferredLogicalContentWidthForFlexItem):
2954         (WebCore::RenderFlexibleBox::computePreferredLogicalWidth):
2955         (WebCore::RenderFlexibleBox::layoutAndPlaceChildrenInlineDirection):
2956         * rendering/RenderFlexibleBox.h:
2957
2958 2011-09-19  Jer Noble  <jer.noble@apple.com>
2959
2960         Fix clang compile errors in Web Audio
2961         https://bugs.webkit.org/show_bug.cgi?id=68384
2962
2963         Reviewed by David Levin.
2964
2965         No new tests; no net change in functionality.
2966
2967         * platform/graphics/MediaPlayer.h: Forward declare (instead of including directly)
2968             AudioSourceProvider.
2969         * webaudio/AudioChannelMerger.cpp:
2970         (WebCore::AudioChannelMerger::checkNumberOfChannelsForInput): Remove unused parameter name.
2971
2972 2011-09-20  John Gregg  <johnnyg@google.com>
2973
2974         Directory Upload: parent path can truncate first char of the correct path
2975         https://bugs.webkit.org/show_bug.cgi?id=66695
2976
2977         In some cases, if the parent path we compute ends with a separator
2978         character like '/' or 'C:\', by adding one in an attempt to grab the
2979         subsequent separator we actually grab a character of the real path,
2980         which is incorrect.
2981
2982         Reviewed by Darin Fisher.
2983
2984         * html/FileInputType.cpp:
2985         (WebCore::FileInputType::setFileList):
2986
2987 2011-09-20  Jochen Eisinger  <jochen@chromium.org>
2988
2989         Invoke CachedResourceLoader::canRequest for all URLs in a redirect chain
2990         https://bugs.webkit.org/show_bug.cgi?id=68279
2991
2992         Reviewed by Adam Barth.
2993
2994         * loader/cache/CachedResourceLoader.h:
2995         * loader/cache/CachedResourceRequest.cpp:
2996         (WebCore::CachedResourceRequest::willSendRequest):
2997
2998 2011-09-18  Ojan Vafai  <ojan@chromium.org>
2999
3000         change RenderFlexibleBox to act on logical coordinates
3001         https://bugs.webkit.org/show_bug.cgi?id=68129
3002
3003         Reviewed by David Hyatt.
3004
3005         This makes RenderFlexibleBox respect direction and writing-mode.
3006         We now properly support the default flex-flow value of "row".
3007
3008         Test: css3/flexbox/writing-modes.html
3009
3010         * rendering/RenderBlock.cpp:
3011         (WebCore::RenderBlock::setLogicalLocationForChild):
3012         * rendering/RenderBlock.h:
3013         * rendering/RenderFlexibleBox.cpp:
3014         (WebCore::RenderFlexibleBox::layoutBlock):
3015         (WebCore::RenderFlexibleBox::logicalBorderWidthForChild):
3016         (WebCore::RenderFlexibleBox::logicalPaddingWidthForChild):
3017         (WebCore::RenderFlexibleBox::logicalScrollbarHeightForChild):
3018         (WebCore::RenderFlexibleBox::marginStartStyleForChild):
3019         (WebCore::RenderFlexibleBox::marginEndStyleForChild):
3020         (WebCore::RenderFlexibleBox::preferredLogicalContentWidthForFlexItem):
3021         (WebCore::RenderFlexibleBox::layoutInlineDirection):
3022         (WebCore::RenderFlexibleBox::logicalPositiveFlexForChild):
3023         (WebCore::RenderFlexibleBox::logicalNegativeFlexForChild):
3024         (WebCore::RenderFlexibleBox::computePreferredLogicalWidth):
3025         (WebCore::RenderFlexibleBox::runFreeSpaceAllocationAlgorithmInlineDirection):
3026         (WebCore::RenderFlexibleBox::setLogicalOverrideSize):
3027         (WebCore::RenderFlexibleBox::layoutAndPlaceChildrenInlineDirection):
3028         * rendering/RenderFlexibleBox.h:
3029
3030 2011-09-20  Marshall Greenblatt  <marshall@chromium.org>
3031
3032         Use DEFINE_STATIC_LOCAL to intentionally leak the static RefCountedHFONT object returned from
3033         FontPlatformData::hashTableDeletedFontValue() to avoid global destructor ordering problems.
3034         https://bugs.webkit.org/show_bug.cgi?id=67906
3035
3036         Reviewed by Adam Barth.
3037
3038         * platform/graphics/chromium/FontPlatformDataChromiumWin.cpp:
3039
3040 2011-09-20  Ryosuke Niwa  <rniwa@webkit.org>
3041
3042         Hit testing on margins of body and head elements doesn't recur
3043         https://bugs.webkit.org/show_bug.cgi?id=40753
3044
3045         Reviewed by Darin Adler.
3046
3047         The bug was caused by positionForPointRespectingEditingBoundaries's comparing the editability
3048         of head/body and html elements when hit testing was done inside margins of head and body elements.
3049
3050         Fixed the bug by special-casing html element since margins of head and body elements are special.
3051
3052         Tests: editing/selection/click-on-body-margin.html
3053                editing/selection/click-on-head-margin.html
3054
3055         * rendering/RenderBlock.cpp:
3056         (WebCore::positionForPointRespectingEditingBoundaries):
3057
3058 2011-09-20  David Hyatt  <hyatt@apple.com>
3059
3060         https://bugs.webkit.org/show_bug.cgi?id=68480
3061         
3062         De-virtualize containingBlock() and make RenderView return 0 instead
3063         of itself to make the construction of normal loops that terminate via
3064         a null-check possible.
3065
3066         Fix the only two places in the tree that needed null checks.
3067
3068         Eliminating RenderTableCell::containingBlock() is fine since the base class
3069         does the same thing anyway.
3070
3071         Reviewed by Simon Fraser.
3072
3073         * editing/VisiblePosition.cpp:
3074         (WebCore::VisiblePosition::lineDirectionPointForBlockDirectionNavigation):
3075         * rendering/RenderObject.cpp:
3076         (WebCore::RenderObject::containingBlock):
3077         * rendering/RenderObject.h:
3078         * rendering/RenderTableCell.cpp:
3079         * rendering/RenderTableCell.h:
3080         * rendering/RenderTreeAsText.cpp:
3081         (WebCore::RenderTreeAsText::writeRenderObject):
3082         * rendering/RenderView.cpp:
3083         * rendering/RenderView.h:
3084
3085 2011-09-20  Anders Carlsson  <andersca@apple.com>
3086
3087         Remove ScrollView::platformContentsSize
3088         https://bugs.webkit.org/show_bug.cgi?id=68188
3089
3090         Reviewed by Darin Adler.
3091
3092         Since ScrollView keeps track of the contents size in ScrollView::m_contentsSize, we never
3093         have to ask the underlying platform scroll view for contents size since it should always just
3094         be equal to m_contentsSize.
3095
3096         * platform/ScrollView.cpp:
3097         (WebCore::ScrollView::contentsSize):
3098         (WebCore::ScrollView::wheelEvent):
3099         * platform/ScrollView.h:
3100         * platform/mac/ScrollViewMac.mm:
3101         * platform/wx/ScrollViewWx.cpp:
3102
3103 2011-09-20  Alexis Menard  <alexis.menard@openbossa.org>
3104
3105         [Qt] [WK2] Implement a persistent cookie storage.
3106         https://bugs.webkit.org/show_bug.cgi?id=65309
3107
3108         Reviewed by Chang Shu.
3109
3110         Implement a cookie storage for the Qt port on WebKit2.
3111         The implementation is using a SQLite database to store the cookies
3112         and restore them. It uses a static object as CookieJar is not an
3113         object but a set of global functions. The actual saving/restoring is on
3114         the WebProcess side where our network stack lives.
3115
3116         Existing tests cover the new implementation. Unfortunately there is one
3117         case that we can't easily simulate : login in a website, make sure that the webprocess
3118         is not running and then going back to this website and see that we are logged.
3119
3120         * WebCore.pri:
3121         * WebCore.pro:
3122         * platform/qt/CookieJarQt.cpp:
3123         (WebCore::getHostnamesWithCookies):
3124         (WebCore::deleteCookiesForHostname):
3125         (WebCore::deleteAllCookies):
3126         (WebCore::SharedCookieJarQt::shared):
3127         (WebCore::SharedCookieJarQt::create):
3128         (WebCore::SharedCookieJarQt::destroy):
3129         (WebCore::SharedCookieJarQt::getHostnamesWithCookies):
3130         (WebCore::SharedCookieJarQt::deleteCookiesForHostname):
3131         (WebCore::SharedCookieJarQt::deleteAllCookies):
3132         (WebCore::SharedCookieJarQt::SharedCookieJarQt):
3133         (WebCore::SharedCookieJarQt::~SharedCookieJarQt):
3134         (WebCore::SharedCookieJarQt::setCookiesFromUrl):
3135         (WebCore::SharedCookieJarQt::ensureDatabaseTable):
3136         (WebCore::SharedCookieJarQt::loadCookies):
3137         * platform/qt/CookieJarQt.h: Added.
3138
3139 2011-09-20  David Hyatt  <hyatt@apple.com>
3140
3141         https://bugs.webkit.org/show_bug.cgi?id=68314
3142
3143         Make sure that the containing block loop when clipping to border-radius
3144         terminates by checking if you hit the RenderView. Null checking isn't sufficient
3145         for stupid historical reasons that should be fixed (i.e., the RenderView returns itself
3146         as its own containing block, even though this should just be changed).
3147
3148         Reviewed by Simon Fraser and Darin Adler.
3149
3150         Added new test in fast/clip.
3151
3152         * rendering/RenderLayer.cpp:
3153         (WebCore::inContainingBlockChain):
3154
3155 2011-09-20  Dan Bernstein  <mitz@apple.com>
3156
3157         MathML renderers do not override RenderObject::renderName()
3158         https://bugs.webkit.org/show_bug.cgi?id=68461
3159
3160         Reviewed by Darin Adler.
3161
3162         Added implementations of renderName() in MathML RenderObject subclasses.
3163
3164         * rendering/mathml/RenderMathMLBlock.h:
3165         (WebCore::RenderMathMLBlock::renderName):
3166         * rendering/mathml/RenderMathMLFenced.h:
3167         (WebCore::RenderMathMLFenced::renderName):
3168         * rendering/mathml/RenderMathMLFraction.h:
3169         (WebCore::RenderMathMLFraction::renderName):
3170         * rendering/mathml/RenderMathMLMath.h:
3171         (WebCore::RenderMathMLMath::renderName):
3172         * rendering/mathml/RenderMathMLOperator.h:
3173         (WebCore::RenderMathMLOperator::renderName):
3174         * rendering/mathml/RenderMathMLRoot.h:
3175         (WebCore::RenderMathMLRoot::renderName):
3176         * rendering/mathml/RenderMathMLRow.h:
3177         (WebCore::RenderMathMLRow::renderName):
3178         * rendering/mathml/RenderMathMLSquareRoot.h:
3179         (WebCore::RenderMathMLSquareRoot::renderName):
3180         * rendering/mathml/RenderMathMLSubSup.h:
3181         (WebCore::RenderMathMLSubSup::renderName):
3182         * rendering/mathml/RenderMathMLUnderOver.h:
3183         (WebCore::RenderMathMLUnderOver::renderName):
3184
3185 2011-09-20  ChangSeok Oh  <shivamidow@gmail.com>
3186
3187         [GTK] requestAnimationFrame support for gtk port
3188         https://bugs.webkit.org/show_bug.cgi?id=66280
3189
3190         Reviewed by Martin Robinson.
3191
3192         Add some files to build-target & activate ENABLE_REQUEST_ANIMATION_FRAME flag
3193         when enabling requestAnimationFrame option.
3194
3195         fast/animation/request-animation-frame-cancel.html
3196         fast/animation/request-animation-frame-cancel2.html
3197         fast/animation/request-animation-frame-display.html
3198         fast/animation/request-animation-frame-during-modal.html
3199         fast/animation/request-animation-frame-timestamps.html
3200         fast/animation/request-animation-frame-within-callback.html
3201         fast/animation/request-animation-frame.html
3202
3203         * GNUmakefile.am:
3204         * GNUmakefile.list.am:
3205
3206 2011-09-20  Aaron Boodman  <aa@chromium.org>
3207
3208         Rework script context creation/release notifications
3209         https://bugs.webkit.org/show_bug.cgi?id=67828
3210
3211         Reviewed by Adam Barth.
3212
3213         * bindings/v8/V8DOMWindowShell.cpp:
3214         (WebCore::V8DOMWindowShell::disposeContextHandles):
3215         (WebCore::V8DOMWindowShell::initContextIfNeeded):
3216         * bindings/v8/V8IsolatedContext.cpp:
3217         (WebCore::V8IsolatedContext::V8IsolatedContext):
3218         (WebCore::V8IsolatedContext::destroy):
3219         * bindings/v8/V8IsolatedContext.h:
3220         * loader/EmptyClients.h:
3221         (WebCore::EmptyFrameLoaderClient::didCreateScriptContext):
3222         (WebCore::EmptyFrameLoaderClient::willReleaseScriptContext):
3223         * loader/FrameLoaderClient.h:
3224
3225 2011-09-19  Oliver Hunt  <oliver@apple.com>
3226
3227         Refactor Heap allocation logic into separate AllocationSpace class
3228         https://bugs.webkit.org/show_bug.cgi?id=68409
3229
3230         Reviewed by Gavin Barraclough.
3231
3232         Adding a forwarding header.
3233
3234         * ForwardingHeaders/heap/AllocationSpace.h: Added.
3235
3236 2011-09-20  Geoffrey Garen  <ggaren@apple.com>
3237
3238         Build fix.
3239
3240         * WebCorePrefix.h: Removed stray text from accidental paste.
3241
3242 2011-09-19  Geoffrey Garen  <ggaren@apple.com>
3243
3244         Removed BREWMP* platform #ifdefs
3245         https://bugs.webkit.org/show_bug.cgi?id=68425
3246         
3247         BREWMP* has no maintainer, and this is dead code.
3248
3249         Reviewed by Darin Adler.
3250
3251         * WebCorePrefix.h:
3252         * loader/cache/CachedFont.cpp:
3253         * platform/DragData.h:
3254         * platform/DragImage.h:
3255         * platform/FileSystem.h:
3256         * platform/PlatformKeyboardEvent.h:
3257         * platform/PlatformMouseEvent.h:
3258         * platform/PlatformTouchEvent.h:
3259         * platform/PlatformTouchPoint.h:
3260         (WebCore::PlatformTouchPoint::PlatformTouchPoint):
3261         * platform/Widget.h:
3262         * platform/graphics/IntPoint.h:
3263         * platform/graphics/IntSize.h:
3264         * platform/graphics/WOFFFileFormat.cpp:
3265         * platform/graphics/skia/FontCustomPlatformData.cpp:
3266         (WebCore::FontCustomPlatformData::~FontCustomPlatformData):
3267         (WebCore::FontCustomPlatformData::fontPlatformData):
3268         (WebCore::createFontCustomPlatformData):
3269         * platform/graphics/skia/FontCustomPlatformData.h:
3270         * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
3271         * platform/text/TextBoundaries.cpp:
3272         * platform/text/TextEncoding.cpp:
3273         (WebCore::TextEncoding::encode):
3274         * platform/text/TextEncodingRegistry.cpp:
3275         * plugins/PluginViewNone.cpp:
3276
3277 2011-09-20  Pavel Feldman  <pfeldman@google.com>
3278
3279         Web Inspector: Copy Stack Trace lacks newlines on Windows
3280         https://bugs.webkit.org/show_bug.cgi?id=68447
3281
3282         Reviewed by Joseph Pecoraro.
3283
3284         * inspector/front-end/CallStackSidebarPane.js:
3285         (WebInspector.CallStackSidebarPane.prototype._copyStackTrace):
3286
3287 2011-09-20  Pavel Feldman  <pfeldman@google.com>
3288
3289         Not reviewed: inspector sanity test fix.
3290
3291         * inspector/front-end/inspector.js:
3292         (WebInspector.showConsole):
3293
3294 2011-09-20  Alexis Menard  <alexis.menard@openbossa.org>
3295
3296         [Qt][WK2] Add stubs for FULLSCREEN_API on Qt.
3297         https://bugs.webkit.org/show_bug.cgi?id=68444
3298
3299         Reviewed by Andreas Kling.
3300
3301         Create all the stubs necessary for enabling FULLSCREEN_API on the Qt port.
3302
3303         No new tests : just stubs.
3304
3305         * CodeGenerators.pri:
3306         * WebCore.pro:
3307         * features.pri:
3308
3309 2011-09-20  Sheriff Bot  <webkit.review.bot@gmail.com>
3310
3311         Unreviewed, rolling out r95509.
3312         http://trac.webkit.org/changeset/95509
3313         https://bugs.webkit.org/show_bug.cgi?id=68446
3314
3315         crashes chromium fast/repaint/japanese-rl-selection-repaint-
3316         in-regions.html on Win and Linux (Requested by dslomov on
3317         #webkit).
3318
3319         * rendering/RenderBlock.cpp:
3320         (WebCore::positionForPointRespectingEditingBoundaries):
3321
3322 2011-09-20  Jarred Nicholls  <jarred@sencha.com>
3323
3324         [Qt] Permit qrc resources to load in QWebSettings::setUserStyleSheetUrl()
3325         https://bugs.webkit.org/show_bug.cgi?id=51159
3326         
3327         Permit any URL with a local scheme to set a user style sheet. Allow qrc
3328         resource URLs as arguments to QWebSettings::setUserStyleSheetUrl().
3329
3330         Reviewed by Kenneth Rohde Christiansen.
3331
3332         * page/Page.cpp:
3333         (WebCore::Page::userStyleSheetLocationChanged):
3334         * platform/qt/KURLQt.cpp:
3335         (WebCore::KURL::fileSystemPath):
3336
3337 2011-09-20  Csaba Osztrogonác  <ossy@webkit.org>
3338
3339         [Qt][Mac] Buildfix after r95513.
3340         Forwarding headers for WebCore should be generated based on WebCore sources instead of WebKit2.
3341
3342         Rubber-stamped by Andras Becsi.
3343
3344         * DerivedSources.pro:
3345         * WebCore.pro: Add platform/mac/DisplaySleepDisabler.cpp to SOURCES.
3346
3347 2011-09-19  Pavel Feldman  <pfeldman@google.com>
3348
3349         Web Inspector: document Debugger.paused, introduce types for ids in Debugger domain.
3350         https://bugs.webkit.org/show_bug.cgi?id=68363
3351
3352         Migrates from poorly documented "details" object to explicit parameters
3353         containing break type and data.
3354
3355         Reviewed by Tony Gentilcore.
3356
3357         * inspector/InjectedScriptSource.js:
3358         ():
3359         * inspector/Inspector.json:
3360         * inspector/InspectorDOMDebuggerAgent.cpp:
3361         (WebCore::InspectorDOMDebuggerAgent::didInvalidateStyleAttr):
3362         (WebCore::InspectorDOMDebuggerAgent::willInsertDOMNode):
3363         (WebCore::InspectorDOMDebuggerAgent::willRemoveDOMNode):
3364         (WebCore::InspectorDOMDebuggerAgent::willModifyDOMAttr):
3365         (WebCore::InspectorDOMDebuggerAgent::pauseOnNativeEventIfNeeded):
3366         (WebCore::InspectorDOMDebuggerAgent::willSendXMLHttpRequest):
3367         * inspector/InspectorDebuggerAgent.cpp:
3368         (WebCore::InspectorDebuggerAgent::InspectorDebuggerAgent):
3369         (WebCore::InspectorDebuggerAgent::schedulePauseOnNextStatement):
3370         (WebCore::InspectorDebuggerAgent::cancelPauseOnNextStatement):
3371         (WebCore::InspectorDebuggerAgent::pause):
3372         (WebCore::InspectorDebuggerAgent::didPause):
3373         (WebCore::InspectorDebuggerAgent::didContinue):
3374         (WebCore::InspectorDebuggerAgent::breakProgram):
3375         (WebCore::InspectorDebuggerAgent::clear):
3376         (WebCore::InspectorDebuggerAgent::clearBreakDetails):
3377         * inspector/InspectorDebuggerAgent.h:
3378         * inspector/front-end/DOMBreakpointsSidebarPane.js:
3379         (WebInspector.DOMBreakpointsSidebarPane.prototype.createBreakpointHitStatusMessage.didPushNodeToFrontend):
3380         (WebInspector.DOMBreakpointsSidebarPane.prototype.createBreakpointHitStatusMessage):
3381         (WebInspector.DOMBreakpointsSidebarPane.prototype.highlightBreakpoint):
3382         * inspector/front-end/DebuggerModel.js:
3383         (WebInspector.DebuggerModel.prototype._pausedScript):
3384         (WebInspector.DebuggerDispatcher.prototype.paused):
3385         * inspector/front-end/DebuggerPresentationModel.js:
3386         (WebInspector.PresentationCallFrame.prototype.evaluate):
3387         * inspector/front-end/ScopeChainSidebarPane.js:
3388         (WebInspector.ScopeChainSidebarPane.prototype.update):
3389         * inspector/front-end/ScriptsPanel.js:
3390         (WebInspector.ScriptsPanel.prototype._debuggerPaused.didCreateBreakpointHitStatusMessage):
3391         (WebInspector.ScriptsPanel.prototype._debuggerPaused.else.didGetSourceLocation):
3392         (WebInspector.ScriptsPanel.prototype._debuggerPaused):
3393
3394 2011-09-19  Pavel Feldman  <pfeldman@google.com>
3395
3396         Web Inspector: use strict types for Breakpoint and CallFrame ids in the protocol definition.
3397         https://bugs.webkit.org/show_bug.cgi?id=68172
3398
3399         Reviewed by Tony Gentilcore.
3400
3401         * inspector/Inspector.json:
3402
3403 2011-09-15  Pavel Feldman  <pfeldman@google.com>
3404
3405         Web Inspector: refactor ConsoleView, Drawer, ConsolePanel trio. Remove animation
3406         from drawer -> panel transition.
3407         https://bugs.webkit.org/show_bug.cgi?id=68155
3408
3409         ConsoleView, ConsolePanel and Drawer are all Views with custom show/hide implementations
3410         and weird DOM element containment. As a result, we have a number of cases when switching
3411         console from full panel to drawer mode and back result in UI glitches.
3412         For the sake of code clarity and no glitches, I'd like to sacrifice the "grow into full
3413         screen" console animation.
3414
3415         Reviewed by Tony Gentilcore.
3416
3417         * inspector/front-end/ConsoleModel.js:
3418         (WebInspector.ConsoleModel):
3419         * inspector/front-end/ConsolePanel.js:
3420         (WebInspector.ConsolePanel):
3421         (WebInspector.ConsolePanel.prototype.get statusBarItems):
3422         (WebInspector.ConsolePanel.prototype.show):
3423         (WebInspector.ConsolePanel.prototype.hide):
3424         * inspector/front-end/ConsoleView.js:
3425         (WebInspector.ConsoleView):
3426         (WebInspector.ConsoleView.createFilterElement):
3427         (WebInspector.ConsoleView.get this):
3428         (WebInspector.ConsoleView.prototype.get statusBarItems):
3429         (WebInspector.ConsoleView.prototype.wasShown):
3430         * inspector/front-end/Drawer.js:
3431         (WebInspector.Drawer):
3432         (WebInspector.Drawer.prototype.get visible):
3433         (WebInspector.Drawer.prototype._constrainHeight):
3434         (WebInspector.Drawer.prototype.show.animationFinished):
3435         (WebInspector.Drawer.prototype.show):
3436         (WebInspector.Drawer.prototype.hide):
3437         (WebInspector.Drawer.prototype.resize):
3438         (WebInspector.Drawer.prototype._animationDuration):
3439         * inspector/front-end/inspector.html:
3440         * inspector/front-end/inspector.js:
3441         (WebInspector._createGlobalStatusBarItems):
3442         (WebInspector._toggleConsoleButtonClicked):
3443         (WebInspector.set attached):
3444         (WebInspector.windowResize):
3445         (WebInspector.documentKeyDown):
3446
3447 2011-09-19  Pavel Feldman  <pfeldman@google.com>
3448
3449         Web Inspector: streamline Console's MessageType and MessageSource semantics.
3450         https://bugs.webkit.org/show_bug.cgi?id=68342
3451
3452         This change fixes semantics of the MessageSource and MessageType:
3453         MessageSource is now the source of the message (be it Network, HTML
3454         parser or Console API). MessageType is only defined for the Console API
3455         messages and contains the name of the API call (log, dir, dirxml, etc.).
3456         Subsequent https://bugs.webkit.org/show_bug.cgi?id=66371 will make MessageType
3457         private to the inspector.
3458
3459         Reviewed by Tony Gentilcore.
3460
3461         * dom/Document.cpp:
3462         (WebCore::Document::logExceptionToConsole):
3463         * inspector/ConsoleMessage.cpp:
3464         (WebCore::messageSourceValue):
3465         (WebCore::messageTypeValue):
3466         (WebCore::ConsoleMessage::addToFrontend):
3467         * inspector/Inspector.json:
3468         * inspector/InspectorConsoleAgent.cpp:
3469         (WebCore::InspectorConsoleAgent::didReceiveResponse):
3470         (WebCore::InspectorConsoleAgent::didFailLoading):
3471         * inspector/front-end/ConsoleMessage.js:
3472         (WebInspector.ConsoleMessage.createTextMessage):
3473         (WebInspector.ConsoleMessage.prototype._formatMessage):
3474         (WebInspector.ConsoleMessage.prototype.toString):
3475         * page/Console.cpp:
3476         (WebCore::printMessageSourceAndLevelPrefix):
3477         (WebCore::Console::addMessage):
3478         (WebCore::Console::dir):
3479         (WebCore::Console::dirxml):
3480         (WebCore::Console::group):
3481         (WebCore::Console::groupCollapsed):
3482         (WebCore::Console::groupEnd):
3483         * page/ConsoleTypes.h:
3484         * websockets/WebSocketChannel.cpp:
3485         (WebCore::WebSocketChannel::didFailSocketStream):
3486
3487 2011-09-20  Adenilson Cavalcanti  <adenilson.silva@openbossa.org>
3488
3489         [Qt] resizeToContent seems to trigger infinite resize&