bb2dbcd41b5eb92f91d6e4ce6fca48e3d053b1d3
[WebKit-https.git] / WebCore / ChangeLog
1 2010-09-22  Alejandro G. Castro  <alex@igalia.com>
2
3         Reviewed by Martin Robinson.
4
5         [gtk] Use the smart pointers to handle cairo_path_t
6         https://bugs.webkit.org/show_bug.cgi?id=46212
7
8         Modified the code to use smart pointers with cairo_path_t
9         variables.
10
11         * platform/graphics/cairo/GraphicsContextCairo.cpp:
12         (WebCore::appendPathToCairoContext):
13         (WebCore::GraphicsContext::clip):
14         (WebCore::GraphicsContext::drawTiledShadow):
15         * platform/graphics/cairo/PathCairo.cpp:
16         (WebCore::Path::Path):
17         (WebCore::Path::operator=):
18         (WebCore::Path::apply):
19         (WebCore::Path::debugString):
20
21 2010-09-22  Kwang Yul Seo  <skyul@company100.net>
22
23         Reviewed by Kent Tamura.
24
25         [BREWMP] Implement Image::loadPlatformResource
26         https://bugs.webkit.org/show_bug.cgi?id=45873
27
28         Load images from the resource directory.
29
30         * platform/graphics/brew/ImageBrew.cpp: Added.
31         (WebCore::Image::loadPlatformResource):
32
33 2010-09-22  Chris Rogers  <crogers@google.com>
34
35         Reviewed by James Robinson.
36
37         Add HRTFKernel files
38         https://bugs.webkit.org/show_bug.cgi?id=45863
39
40         No new tests since audio API is not yet implemented.
41
42         * platform/audio/HRTFKernel.cpp: Added.
43         (WebCore::extractAverageGroupDelay):
44         (WebCore::HRTFKernel::HRTFKernel):
45         (WebCore::HRTFKernel::createImpulseResponse):
46         (WebCore::HRTFKernel::createInterpolatedKernel):
47         * platform/audio/HRTFKernel.h: Added.
48         (WebCore::HRTFKernel::create):
49         (WebCore::HRTFKernel::fftFrame):
50         (WebCore::HRTFKernel::fftSize):
51         (WebCore::HRTFKernel::frameDelay):
52         (WebCore::HRTFKernel::sampleRate):
53         (WebCore::HRTFKernel::nyquist):
54         (WebCore::HRTFKernel::HRTFKernel):
55
56 2010-09-22  Kent Tamura  <tkent@chromium.org>
57
58         Reviewed by Chris Fleizach.
59
60         Support keyboard operations for <input type=range>.
61         https://bugs.webkit.org/show_bug.cgi?id=45803
62
63         Increasing the value with Up/Right arrow keys by its step value,
64         and decreasing with Down/Left arrow keys. If an input element has
65         step=any attribute, increasing/decreasing by 1/100 of max-min.
66
67         Note: This change is not useful on Mac because users can't set
68         focus on range controls.
69
70         Test: fast/forms/range-keyoperation.html
71
72         * html/HTMLInputElement.cpp:
73         (WebCore::HTMLInputElement::defaultEventHandler):
74           Calls handleKeyEventForRange() for RANGE and key events.
75         (WebCore::HTMLInputElement::handleKeyEventForRange):
76         * html/HTMLInputElement.h: Add handleKeyEventForRange() declaration.
77
78 2010-09-22  Mario Sanchez Prada  <msanchez@igalia.com>
79
80         Reviewed by Chris Fleizach.
81
82         [Gtk] Incorrect exposure of list items whose children are elements
83         https://bugs.webkit.org/show_bug.cgi?id=45383
84
85         Set ATK_ROLE_LIST_ITEM looking for the role of the parent object
86
87         Test: platform/gtk/accessibility/list-items-always-exposed.html
88
89         * accessibility/gtk/AccessibilityObjectAtk.cpp:
90         (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject):
91         Always include objects with ListItemRole in accessibility for GTK.
92         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
93         (getInterfaceMaskFromObject): Add some specific code to handle the
94         special case of list markers by implementing AtkText when needed.
95
96 2010-09-22  Dirk Schulze  <krit@webkit.org>
97
98         Reviewed by Nikolas Zimmermann.
99
100         Make FilterEffects independent of SVG
101         https://bugs.webkit.org/show_bug.cgi?id=46177
102
103         Moving all FilterEffects from svg/graphics/filters to platform/graphics/filters, now that they
104         are independent of SVG. Removed the SVG prefix of the files and updated the headers.
105
106         * Android.mk:
107         * CMakeLists.txt:
108         * GNUmakefile.am:
109         * WebCore.gypi:
110         * WebCore.pro:
111         * WebCore.vcproj/WebCore.vcproj:
112         * WebCore.xcodeproj/project.pbxproj:
113         * platform/graphics/filters/DistantLightSource.h: Copied from WebCore/svg/graphics/filters/SVGDistantLightSource.h.
114         * platform/graphics/filters/FEConvolveMatrix.cpp: Copied from WebCore/svg/graphics/filters/SVGFEConvolveMatrix.cpp.
115         * platform/graphics/filters/FEConvolveMatrix.h: Copied from WebCore/svg/graphics/filters/SVGFEConvolveMatrix.h.
116         * platform/graphics/filters/FEDiffuseLighting.cpp: Copied from WebCore/svg/graphics/filters/SVGFEDiffuseLighting.cpp.
117         * platform/graphics/filters/FEDiffuseLighting.h: Copied from WebCore/svg/graphics/filters/SVGFEDiffuseLighting.h.
118         * platform/graphics/filters/FEDisplacementMap.cpp: Copied from WebCore/svg/graphics/filters/SVGFEDisplacementMap.cpp.
119         * platform/graphics/filters/FEDisplacementMap.h: Copied from WebCore/svg/graphics/filters/SVGFEDisplacementMap.h.
120         * platform/graphics/filters/FEFlood.cpp: Copied from WebCore/svg/graphics/filters/SVGFEFlood.cpp.
121         * platform/graphics/filters/FEFlood.h: Copied from WebCore/svg/graphics/filters/SVGFEFlood.h.
122         * platform/graphics/filters/FELighting.cpp: Copied from WebCore/svg/graphics/filters/SVGFELighting.cpp.
123         * platform/graphics/filters/FELighting.h: Copied from WebCore/svg/graphics/filters/SVGFELighting.h.
124         * platform/graphics/filters/FEMerge.cpp: Copied from WebCore/svg/graphics/filters/SVGFEMerge.cpp.
125         * platform/graphics/filters/FEMerge.h: Copied from WebCore/svg/graphics/filters/SVGFEMerge.h.
126         * platform/graphics/filters/FEMorphology.cpp: Copied from WebCore/svg/graphics/filters/SVGFEMorphology.cpp.
127         * platform/graphics/filters/FEMorphology.h: Copied from WebCore/svg/graphics/filters/SVGFEMorphology.h.
128         * platform/graphics/filters/FEOffset.cpp: Copied from WebCore/svg/graphics/filters/SVGFEOffset.cpp.
129         * platform/graphics/filters/FEOffset.h: Copied from WebCore/svg/graphics/filters/SVGFEOffset.h.
130         * platform/graphics/filters/FESpecularLighting.cpp: Copied from WebCore/svg/graphics/filters/SVGFESpecularLighting.cpp.
131         * platform/graphics/filters/FESpecularLighting.h: Copied from WebCore/svg/graphics/filters/SVGFESpecularLighting.h.
132         * platform/graphics/filters/FETile.cpp: Copied from WebCore/svg/graphics/filters/SVGFETile.cpp.
133         * platform/graphics/filters/FETile.h: Copied from WebCore/svg/graphics/filters/SVGFETile.h.
134         * platform/graphics/filters/FETurbulence.cpp: Copied from WebCore/svg/graphics/filters/SVGFETurbulence.cpp.
135         * platform/graphics/filters/FETurbulence.h: Copied from WebCore/svg/graphics/filters/SVGFETurbulence.h.
136         * platform/graphics/filters/LightSource.cpp: Copied from WebCore/svg/graphics/filters/SVGLightSource.cpp.
137         * platform/graphics/filters/LightSource.h: Copied from WebCore/svg/graphics/filters/SVGLightSource.h.
138         * platform/graphics/filters/PointLightSource.h: Copied from WebCore/svg/graphics/filters/SVGPointLightSource.h.
139         * platform/graphics/filters/SpotLightSource.h: Copied from WebCore/svg/graphics/filters/SVGSpotLightSource.h.
140         * svg/SVGFEConvolveMatrixElement.h:
141         * svg/SVGFEDiffuseLightingElement.cpp:
142         * svg/SVGFEDisplacementMapElement.h:
143         * svg/SVGFEDistantLightElement.cpp:
144         * svg/SVGFEFloodElement.h:
145         * svg/SVGFELightElement.h:
146         * svg/SVGFEMergeElement.h:
147         * svg/SVGFEMorphologyElement.h:
148         * svg/SVGFEOffsetElement.h:
149         * svg/SVGFEPointLightElement.cpp:
150         * svg/SVGFESpecularLightingElement.h:
151         * svg/SVGFESpotLightElement.cpp:
152         * svg/SVGFETileElement.h:
153         * svg/SVGFETurbulenceElement.h:
154         * svg/graphics/filters/SVGDistantLightSource.h: Removed.
155         * svg/graphics/filters/SVGFEConvolveMatrix.cpp: Removed.
156         * svg/graphics/filters/SVGFEConvolveMatrix.h: Removed.
157         * svg/graphics/filters/SVGFEDiffuseLighting.cpp: Removed.
158         * svg/graphics/filters/SVGFEDiffuseLighting.h: Removed.
159         * svg/graphics/filters/SVGFEDisplacementMap.cpp: Removed.
160         * svg/graphics/filters/SVGFEDisplacementMap.h: Removed.
161         * svg/graphics/filters/SVGFEFlood.cpp: Removed.
162         * svg/graphics/filters/SVGFEFlood.h: Removed.
163         * svg/graphics/filters/SVGFELighting.cpp: Removed.
164         * svg/graphics/filters/SVGFELighting.h: Removed.
165         * svg/graphics/filters/SVGFEMerge.cpp: Removed.
166         * svg/graphics/filters/SVGFEMerge.h: Removed.
167         * svg/graphics/filters/SVGFEMorphology.cpp: Removed.
168         * svg/graphics/filters/SVGFEMorphology.h: Removed.
169         * svg/graphics/filters/SVGFEOffset.cpp: Removed.
170         * svg/graphics/filters/SVGFEOffset.h: Removed.
171         * svg/graphics/filters/SVGFESpecularLighting.cpp: Removed.
172         * svg/graphics/filters/SVGFESpecularLighting.h: Removed.
173         * svg/graphics/filters/SVGFETile.cpp: Removed.
174         * svg/graphics/filters/SVGFETile.h: Removed.
175         * svg/graphics/filters/SVGFETurbulence.cpp: Removed.
176         * svg/graphics/filters/SVGFETurbulence.h: Removed.
177         * svg/graphics/filters/SVGLightSource.cpp: Removed.
178         * svg/graphics/filters/SVGLightSource.h: Removed.
179         * svg/graphics/filters/SVGPointLightSource.h: Removed.
180         * svg/graphics/filters/SVGSpotLightSource.h: Removed.
181
182 2010-09-22  Patrick Gansterer  <paroga@webkit.org>
183
184         Reviewed by Adam Roben.
185
186         [WIN] Add internetHandle to WebCoreSynchronousLoader.
187         https://bugs.webkit.org/show_bug.cgi?id=46185
188
189         For loading content via network the WebCoreSynchronousLoader needs its own (synchronous) internetHandle.
190         This also adds asynchronousInternetHandle() to create a static asynchronous internetHandle.
191
192         * platform/network/win/ResourceHandleWin.cpp:
193         (WebCore::createInternetHandle):
194         (WebCore::asynchronousInternetHandle):
195         (WebCore::WebCoreSynchronousLoader::internetHandle):
196         (WebCore::WebCoreSynchronousLoader::WebCoreSynchronousLoader): Create synchronous internetHandle.
197         (WebCore::WebCoreSynchronousLoader::~WebCoreSynchronousLoader): Delete synchronous internetHandle.
198
199 2010-09-22  Kwang Yul Seo  <skyul@company100.net>
200
201         Reviewed by Chris Fleizach.
202
203         [chromium] Remove unused sys/types.h in VDMXParser.cpp
204         https://bugs.webkit.org/show_bug.cgi?id=46136
205
206         sys/types.h is not needed here.
207
208         * platform/graphics/chromium/VDMXParser.cpp:
209
210 2010-09-22  Kwang Yul Seo  <skyul@company100.net>
211
212         Reviewed by Kent Tamura.
213
214         [BREWMP] Change the home directory path to the WebKit module directory
215         https://bugs.webkit.org/show_bug.cgi?id=45895
216
217         AEEFS_HOME_DIR denotes the currently running application's directory. 
218         Change it to fs:/~<clsid> to use the WebKit module directory as home.
219
220         * platform/brew/FileSystemBrew.cpp:
221         (WebCore::homeDirectoryPath):
222
223 2010-09-22  Kwang Yul Seo  <skyul@company100.net>
224
225         Reviewed by Kent Tamura.
226
227         [BREWMP] Add dummy Pasteboard
228         https://bugs.webkit.org/show_bug.cgi?id=46107
229
230         Pasteboard is not supported yet. Add dummy implementation to avoid link errors.
231
232         * platform/brew/PasteboardBrew.cpp: Added.
233         (WebCore::Pasteboard::generalPasteboard):
234         (WebCore::Pasteboard::Pasteboard):
235         (WebCore::Pasteboard::clear):
236         (WebCore::Pasteboard::writeSelection):
237         (WebCore::Pasteboard::writePlainText):
238         (WebCore::Pasteboard::writeURL):
239         (WebCore::Pasteboard::writeImage):
240         (WebCore::Pasteboard::canSmartReplace):
241         (WebCore::Pasteboard::plainText):
242         (WebCore::Pasteboard::documentFragment):
243
244 2010-09-21  Ryosuke Niwa  <rniwa@webkit.org>
245
246         Reviewed by Kent Tamura.
247
248         Each EntityMaskIn* needs explanation
249         https://bugs.webkit.org/show_bug.cgi?id=44833
250
251         Added a description as to why we escape nbsp when serializing HTML documents but not when serializing XML documents.
252
253         * editing/markup.cpp:
254
255 2010-09-21  Ryosuke Niwa  <rniwa@webkit.org>
256
257         Reviewed by Kent Tamura.
258
259         cleanup: removeInlineStyleFromElement and extractInlineStyleToPushDown should be merged
260         https://bugs.webkit.org/show_bug.cgi?id=46205
261
262         Cleanup required to fix the bug 27818. Added the style extraction mechanism to removeInlineStyleFromElement
263         and removeCSSStyle and replaced the call to extractInlineStyleToPushDown by a call to removeInlineStyleFromElement.
264
265         * editing/ApplyStyleCommand.cpp:
266         (WebCore::ApplyStyleCommand::removeInlineStyleFromElement): Added extractedStyle argument.
267         (WebCore::ApplyStyleCommand::removeCSSStyle): Added extractedStyle argument.
268         (WebCore::ApplyStyleCommand::pushDownInlineStyleAroundNode): Calls removeInlineStyleFromElement instead of
269         extractInlineStyleToPushDown which has been deleted.
270         * editing/ApplyStyleCommand.h:
271
272 2010-09-21  Andrew Wilson  <atwilson@chromium.org>
273
274         Unreviewed, rolling out r67982.
275         http://trac.webkit.org/changeset/67982
276         https://bugs.webkit.org/show_bug.cgi?id=45156
277
278         Causes crashes on chromium testshell
279
280         * WebCore.gypi:
281         * accessibility/chromium/AXObjectCacheChromium.cpp:
282         (WebCore::AXObjectCache::postPlatformNotification):
283         (WebCore::AXObjectCache::handleFocusedUIElementChanged):
284         (WebCore::AXObjectCache::handleScrolledToAnchor):
285         * dom/Document.cpp:
286         (WebCore::Document::implicitClose):
287         (WebCore::Document::setFocusedNode):
288         * editing/SelectionController.h:
289         * editing/chromium/SelectionControllerChromium.cpp: Removed.
290         * page/FrameView.cpp:
291         (WebCore::FrameView::layout):
292         * page/chromium/ChromeClientChromium.h:
293
294 2010-09-21  Cosmin Truta  <ctruta@chromium.org>
295
296         Reviewed by James Robinson.
297
298         RenderImage::intrinsicSizeChanged crashes when m_imageResource is missing
299         https://bugs.webkit.org/show_bug.cgi?id=46120
300
301         Avoid applying operator -> to m_imageResource when its underlying pointer is NULL.
302
303         * rendering/RenderImage.h:
304         (WebCore::RenderImage::intrinsicSizeChanged): Checked m_imageResource.
305         * html/HTMLImageElement.cpp:
306         (HTMLImageElement::createRenderer): Fixed indentation.
307
308 2010-09-21  Kenneth Russell  <kbr@google.com>
309
310         Reviewed by James Robinson.
311
312         [chromium] Remove GLES2Context and WebGLES2Context
313         https://bugs.webkit.org/show_bug.cgi?id=46131
314
315         Removed now-obsolete GLES2Context and WebGLES2Context classes, and
316         dependency on command buffer client code from WebCore. Built and
317         tested 3D CSS and WebGL content on Mac OS X to test.
318
319         * WebCore.gypi:
320         * platform/chromium/GLES2Context.h: Removed.
321         * platform/graphics/skia/ImageSkia.cpp:
322
323 2010-09-21  Geoffrey Garen  <ggaren@apple.com>
324
325         Try to fix the Windows build.
326
327         * loader/Cache.cpp:
328         (WebCore::Cache::makeResourcePurgeable):
329         (WebCore::Cache::evict): Cast to int before using unary '-', to avoid an
330         MSVC warning.
331
332 2010-09-21  Pratik Solanki  <psolanki@apple.com>
333
334         Reviewed by Geoffrey Garen and Darin Adler.
335
336         Use purgeable memory to keep more dead resources in cache
337         https://bugs.webkit.org/show_bug.cgi?id=44806
338         <rdar://problem/8350901>
339
340         This changes the behavior of dead resources in the WebCore cache to be the following if
341         shouldMakeResourcePurgeableOnEviction() returns true.
342
343         1. Dead resources in the cache are kept in non-purgeable memory.
344         2. When we prune dead resources, instead of freeing them, we mark their memory as purgeable
345         and keep the resources until the kernel reclaims the purgeable memory.
346
347         By leaving the in-cache dead resources in dirty resident memory, we decrease the likelihood
348         of the kernel claiming that memory and forcing us to refetch the resource (for example when
349         a user presses back).
350
351         And by having an unbounded number of resource objects using purgeable memory, we can use
352         as much memory as is available on the machine. The trade-off is that the CachedResource
353         object (and its member variables) are allocated in non-purgeable TC-malloc'd memory so
354         we would see slightly more memory use due to this.
355
356         * loader/Cache.cpp:
357         (WebCore::Cache::resourceForURL): Adjust sizes appropriately if we made resource memory
358         non-purgeable.
359         (WebCore::Cache::pruneDeadResources): When removing dead resources, try first to mark their
360         memory as purgeable. If not, evict the resource.
361         (WebCore::Cache::makeResourcePurgeable): Added. Try to mark resource
362         memory as purgeable. If successful, adjust the sizes so that we don't
363         factor this resources size in the Cache size calculation.
364         (WebCore::Cache::evict): Don't decrement size if we already did it in makeResourcePurgeable.
365         (WebCore::Cache::dumpLRULists): Extra debug logging.
366         * loader/Cache.h:
367         (WebCore::Cache::shouldMakeResourcePurgeableOnEviction): Added. Indicates if the new
368         behaviour is enabled.
369         * loader/CachedCSSStyleSheet.cpp:
370         (WebCore::CachedCSSStyleSheet::allClientsRemoved): Do not mark memory as purgeable. The
371         Cache class takes care of this.
372         * loader/CachedImage.cpp:
373         (WebCore::CachedImage::destroyDecodedData): Ditto.
374         * loader/CachedScript.cpp:
375         (WebCore::CachedScript::destroyDecodedData): Ditto.
376
377 2010-09-21  Dan Bernstein  <mitz@apple.com>
378
379         Reviewed by Darin Adler.
380
381         <rdar://problem/7729077> Extending the selection to sentence boundary after a line break may select extra character
382         https://bugs.webkit.org/show_bug.cgi?id=46232
383
384         Test: editing/selection/extend-by-sentence-002.html
385
386         * editing/visible_units.cpp:
387         (WebCore::nextBoundary): The text iterator’s range end can be the position after
388         the line break, in which case the next visible is actually after the first character
389         of the next sentence. Instead, advance the text iterator past the newline character
390         and return the beginning of its range, which is guaranteed to still be before the
391         next sentence.
392
393 2010-09-21  Robert Hogan  <robert@webkit.org>
394
395         Rubber-stamped by Ariya Hidayat.
396
397         [Qt] Build fix against qt trunk
398
399         * platform/graphics/qt/ContextShadow.cpp:
400         (WebCore::ContextShadow::beginShadowLayer):
401
402 2010-09-21  Tony Chang  <tony@chromium.org>
403
404         Unreviewed, QT build fix.
405
406         * platform/qt/ClipboardQt.cpp:
407         (WebCore::ClipboardQt::ClipboardQt):
408
409 2010-09-21  Andy Estes  <aestes@apple.com>
410
411         Reviewed by Darin Adler.
412
413         REGRESSION (r61285): AIM 2.1.296: Code rendered as text in Welcome screen
414         https://bugs.webkit.org/show_bug.cgi?id=46134
415
416         * WebCore.exp.in: Export __ZN7WebCore32applicationIsAOLInstantMessengerEv.
417         * platform/mac/RuntimeApplicationChecks.h:
418         * platform/mac/RuntimeApplicationChecks.mm:
419         (WebCore::applicationIsAOLInstantMessenger): Determine if the embedding
420         application is AOL Instant Messenger by checking the bundle identifier.
421
422 2010-09-21  Chris Guillory   <chris.guillory@google.com>
423
424         Reviewed by Chris Fleizach.
425
426         Send webkit accessibility notifications to Chromium.
427         https://bugs.webkit.org/show_bug.cgi?id=45156
428
429         * WebCore.gypi:
430         * accessibility/chromium/AXObjectCacheChromium.cpp:
431         (WebCore::AXObjectCache::postPlatformNotification):
432         (WebCore::AXObjectCache::handleFocusedUIElementChanged):
433         (WebCore::AXObjectCache::handleScrolledToAnchor):
434         * dom/Document.cpp:
435         (WebCore::Document::implicitClose):
436         (WebCore::Document::setFocusedNode):
437         * editing/SelectionController.h:
438         * editing/chromium/SelectionControllerChromium.cpp: Added.
439         (WebCore::SelectionController::notifyAccessibilityForSelectionChange):
440         * page/FrameView.cpp:
441         (WebCore::FrameView::layout):
442         * page/chromium/ChromeClientChromium.h:
443
444 2010-09-21  Alejandro G. Castro  <alex@igalia.com>
445
446         Reviewed by Martin Robinson.
447
448         [gtk] Move copyContextProperties outside the GraphicsContextCairo
449         https://bugs.webkit.org/show_bug.cgi?id=46179.
450
451         Moved the copyContextProperties function to the CairoUtilities so
452         we can use it outside GraphicsContextCairo. We moved also the old
453         gtk CairoUtilities file to GdkCairoUtilities and added the new
454         file in the cairo directory.
455
456         * GNUmakefile.am:
457         * platform/graphics/cairo/CairoUtilities.cpp: Added.
458         (WebCore::copyContextProperties):
459         * platform/graphics/cairo/CairoUtilities.h: Added.
460         * platform/graphics/cairo/GraphicsContextCairo.cpp:
461         * platform/graphics/gtk/CairoUtilities.cpp: Removed.
462         * platform/graphics/gtk/CairoUtilities.h: Removed.
463         * platform/graphics/gtk/GdkCairoUtilities.cpp: Added.
464         (getCairoSurfacePixel):
465         (getGdkPixbufPixel):
466         (cairoImageSurfaceToGdkPixbuf):
467         * platform/graphics/gtk/GdkCairoUtilities.h: Added.
468         * platform/graphics/gtk/ImageBufferGtk.cpp:
469         * platform/graphics/gtk/ImageGtk.cpp:
470
471 2010-09-21  Vangelis Kokkevis  <vangelis@chromium.org>
472
473         Reviewed by James Robinson.
474
475         [chromium] Cleaned up LayerRendererChromium::prepareToDrawLayers
476         logic to avoid unnecessary copy operations if the existing root layer
477         contents aren't useful for scrolling. Also removed call to updateLayersRecursive()
478         as the composited layer update is actually happening in the drawLayers() method.
479         https://bugs.webkit.org/show_bug.cgi?id=46199
480
481
482         * platform/graphics/chromium/LayerRendererChromium.cpp:
483         (WebCore::LayerRendererChromium::prepareToDrawLayers):
484
485 2010-09-21  Daniel Cheng  <dcheng@chromium.org>
486
487         Reviewed by Tony Chang.
488
489         Change Clipboard to use an enum instead of isForDragging = true/false
490         https://bugs.webkit.org/show_bug.cgi?id=46004
491
492         No new tests, since it's just a refactoring change.
493
494         * bindings/js/JSClipboardCustom.cpp:
495         (WebCore::JSClipboard::setDragImage):
496         * bindings/v8/custom/V8ClipboardCustom.cpp:
497         (WebCore::V8Clipboard::setDragImageCallback):
498         * dom/Clipboard.cpp:
499         (WebCore::Clipboard::Clipboard):
500         (WebCore::Clipboard::setDropEffect):
501         (WebCore::Clipboard::setEffectAllowed):
502         * dom/Clipboard.h:
503         (WebCore::Clipboard::isForCopyAndPaste):
504         (WebCore::Clipboard::isForDragAndDrop):
505         * editing/android/EditorAndroid.cpp:
506         (WebCore::Editor::newGeneralClipboard):
507         * editing/brew/EditorBrew.cpp:
508         (WebCore::Editor::newGeneralClipboard):
509         * editing/chromium/EditorChromium.cpp:
510         (WebCore::Editor::newGeneralClipboard):
511         * editing/haiku/EditorHaiku.cpp:
512         (WebCore::Editor::newGeneralClipboard):
513         * editing/mac/EditorMac.mm:
514         (WebCore::Editor::newGeneralClipboard):
515         * editing/wx/EditorWx.cpp:
516         (WebCore::Editor::newGeneralClipboard):
517         * page/chromium/EventHandlerChromium.cpp:
518         (WebCore::EventHandler::createDraggingClipboard):
519         * page/efl/EventHandlerEfl.cpp:
520         (WebCore::EventHandler::createDraggingClipboard):
521         * page/gtk/EventHandlerGtk.cpp:
522         (WebCore::EventHandler::createDraggingClipboard):
523         * page/haiku/EventHandlerHaiku.cpp:
524         (WebCore::EventHandler::createDraggingClipboard):
525         * page/mac/EventHandlerMac.mm:
526         (WebCore::EventHandler::createDraggingClipboard):
527         * page/qt/EventHandlerQt.cpp:
528         (WebCore::EventHandler::createDraggingClipboard):
529         * page/win/EventHandlerWin.cpp:
530         (WebCore::EventHandler::createDraggingClipboard):
531         * page/wx/EventHandlerWx.cpp:
532         (WebCore::EventHandler::createDraggingClipboard):
533         * platform/android/ClipboardAndroid.cpp:
534         (WebCore::ClipboardAndroid::ClipboardAndroid):
535         (WebCore::ClipboardAndroid::clearData):
536         (WebCore::ClipboardAndroid::clearAllData):
537         (WebCore::ClipboardAndroid::setData):
538         * platform/android/ClipboardAndroid.h:
539         * platform/brew/ClipboardBrew.cpp:
540         (WebCore::ClipboardBrew::ClipboardBrew):
541         (WebCore::ClipboardBrew::clearData):
542         (WebCore::ClipboardBrew::clearAllData):
543         (WebCore::ClipboardBrew::setData):
544         * platform/brew/ClipboardBrew.h:
545         * platform/chromium/ClipboardChromium.cpp:
546         (WebCore::Clipboard::create):
547         (WebCore::ClipboardChromium::ClipboardChromium):
548         (WebCore::ClipboardChromium::create):
549         (WebCore::ClipboardChromium::getData):
550         * platform/chromium/ClipboardChromium.h:
551         * platform/efl/ClipboardEfl.cpp:
552         (WebCore::Editor::newGeneralClipboard):
553         (WebCore::ClipboardEfl::ClipboardEfl):
554         * platform/efl/ClipboardEfl.h:
555         (WebCore::ClipboardEfl::create):
556         * platform/gtk/ClipboardGtk.cpp:
557         (WebCore::Editor::newGeneralClipboard):
558         (WebCore::Clipboard::create):
559         (WebCore::ClipboardGtk::ClipboardGtk):
560         (WebCore::dataObjectTypeFromHTMLClipboardType):
561         (WebCore::ClipboardGtk::clearData):
562         (WebCore::ClipboardGtk::getData):
563         (WebCore::ClipboardGtk::setData):
564         * platform/gtk/ClipboardGtk.h:
565         (WebCore::ClipboardGtk::create):
566         * platform/haiku/ClipboardHaiku.cpp:
567         (WebCore::Clipboard::create):
568         (WebCore::ClipboardHaiku::ClipboardHaiku):
569         * platform/haiku/ClipboardHaiku.h:
570         (WebCore::ClipboardHaiku::create):
571         * platform/mac/ClipboardMac.h:
572         (WebCore::ClipboardMac::create):
573         * platform/mac/ClipboardMac.mm:
574         (WebCore::Clipboard::create):
575         (WebCore::ClipboardMac::ClipboardMac):
576         * platform/qt/ClipboardQt.cpp:
577         (WebCore::ClipboardQt::ClipboardQt):
578         (WebCore::ClipboardQt::~ClipboardQt):
579         (WebCore::ClipboardQt::clearData):
580         (WebCore::ClipboardQt::clearAllData):
581         (WebCore::ClipboardQt::setData):
582         (WebCore::ClipboardQt::declareAndWriteDragImage):
583         (WebCore::ClipboardQt::writeURL):
584         (WebCore::ClipboardQt::writeRange):
585         (WebCore::ClipboardQt::writePlainText):
586         * platform/qt/ClipboardQt.h:
587         (WebCore::ClipboardQt::create):
588         * platform/win/ClipboardWin.cpp:
589         (WebCore::Clipboard::create):
590         (WebCore::ClipboardWin::ClipboardWin):
591         (WebCore::ClipboardWin::clearData):
592         (WebCore::ClipboardWin::clearAllData):
593         (WebCore::ClipboardWin::setData):
594         (WebCore::ClipboardWin::setExternalDataObject):
595         * platform/win/ClipboardWin.h:
596         (WebCore::ClipboardWin::create):
597         * platform/win/EditorWin.cpp:
598         (WebCore::Editor::newGeneralClipboard):
599         * platform/wx/ClipboardWx.cpp:
600         (WebCore::ClipboardWx::ClipboardWx):
601         * platform/wx/ClipboardWx.h:
602         (WebCore::ClipboardWx::create):
603
604 2010-09-21  Abhishek Arya  <inferno@chromium.org>
605
606         Reviewed by Dave Hyatt.
607
608         Take isValueList() checks out of the asserts for memory safety.
609         https://bugs.webkit.org/show_bug.cgi?id=46194
610
611         Test: editing/execCommand/apply-style-text-decoration-crash.html
612
613         * editing/ApplyStyleCommand.cpp:
614         (WebCore::StyleChange::extractTextStyles):
615         (WebCore::ApplyStyleCommand::applyInlineStyleToPushDown):
616
617 2010-09-21  Vangelis Kokkevis  <vangelis@chromium.org>
618
619         Reviewed by Kenneth Russell.
620
621         [chromium] Fixing double translation of composited layers when scrolling.
622         The scrolling transform is now applied by a separate layer maintained in
623         the RenderLayerCompositor.
624         https://bugs.webkit.org/show_bug.cgi?id=46193
625
626         * platform/graphics/chromium/LayerRendererChromium.cpp:
627         (WebCore::LayerRendererChromium::drawLayers):
628
629 2010-09-21  David Hyatt  <hyatt@apple.com>
630
631         Reviewed by Dan Bernstein.
632
633         https://bugs.webkit.org/show_bug.cgi?id=46196, add marginStart/Before/End/After accessors to RenderBoxModelObject.
634
635         * rendering/RenderBox.cpp:
636         (WebCore::RenderBox::marginBefore):
637         (WebCore::RenderBox::marginAfter):
638         (WebCore::RenderBox::marginStart):
639         (WebCore::RenderBox::marginEnd):
640         * rendering/RenderBox.h:
641         * rendering/RenderBoxModelObject.h:
642         * rendering/RenderInline.cpp:
643         (WebCore::computeMargin):
644         (WebCore::RenderInline::marginLeft):
645         (WebCore::RenderInline::marginRight):
646         (WebCore::RenderInline::marginTop):
647         (WebCore::RenderInline::marginBottom):
648         (WebCore::RenderInline::marginStart):
649         (WebCore::RenderInline::marginEnd):
650         * rendering/RenderInline.h:
651         (WebCore::RenderInline::marginBefore):
652         (WebCore::RenderInline::marginAfter):
653
654 2010-09-21  David Hyatt  <hyatt@apple.com>
655
656         Reviewed by Dan Bernstein.
657
658         https://bugs.webkit.org/show_bug.cgi?id=46190, add borderStart/Before/End/After accessors to RenderBoxModelObject.
659
660         * rendering/RenderBoxModelObject.h:
661         (WebCore::RenderBoxModelObject::borderBefore):
662         (WebCore::RenderBoxModelObject::borderAfter):
663         (WebCore::RenderBoxModelObject::borderStart):
664         (WebCore::RenderBoxModelObject::borderEnd):
665         (WebCore::RenderBoxModelObject::borderAndPaddingLogicalHeight):
666         (WebCore::RenderBoxModelObject::borderAndPaddingLogicalWidth):
667         * rendering/RenderTableCell.cpp:
668         (WebCore::RenderTableCell::borderStart):
669         (WebCore::RenderTableCell::borderEnd):
670         (WebCore::RenderTableCell::borderBefore):
671         (WebCore::RenderTableCell::borderAfter):
672         * rendering/RenderTableCell.h:
673
674 2010-09-21  Martin Robinson  <mrobinson@igalia.com>
675
676         Reviewed by Xan Lopez.
677
678         [GTK] 'make dist' should be fixed in preparation for the next release
679         https://bugs.webkit.org/show_bug.cgi?id=46129
680
681         * GNUmakefile.am: Update the sources list to include missing headers.
682
683 2010-09-21  David Hyatt  <hyatt@apple.com>
684
685         Reviewed by John Sullivan.
686
687         https://bugs.webkit.org/show_bug.cgi?id=46188, make the cross-platform setPrinting method match the Mac version of the method.
688         Specifically don't pass the page size down to subframes of the one you're printing.
689
690         * page/Frame.cpp:
691         (WebCore::Frame::setPrinting):
692
693 2010-09-21  Patrick Gansterer  <paroga@webkit.org>
694
695         Reviewed by Adam Roben.
696
697         Use WTF::Vector for storing formData in ResourceHandleWin.
698         https://bugs.webkit.org/show_bug.cgi?id=46180
699
700         * platform/network/ResourceHandleInternal.h:
701         (WebCore::ResourceHandleInternal::ResourceHandleInternal):
702         * platform/network/win/ResourceHandleWin.cpp:
703         (WebCore::ResourceHandle::onHandleCreated):
704         (WebCore::ResourceHandle::onRequestComplete):
705
706 2010-09-21  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
707
708         Reviewed by Andreas Kling.
709
710         [Qt] Check if the reply has been deleted before finishing a network request
711         https://bugs.webkit.org/show_bug.cgi?id=46174
712
713         A crash can happen with the following sequence:
714         1. QNetworkReplyHandler::abort() emits reply->deleteLater()
715         2. QNAM emits QNetworkReply::finished() -> calls QNetworkReplyHandler::finish()
716         3. event loop would call reply->deleteLater()
717         However a crash occurs since m_reply == 0 on step 2.
718
719         * platform/network/qt/QNetworkReplyHandler.cpp:
720         (WebCore::QNetworkReplyHandler::finish):
721
722 2010-09-21  Jochen Eisinger  <jochen@chromium.org>
723
724         Reviewed by Jeremy Orlow.
725
726         Use @ to concatenate the database name and the database identifier when building
727         the filename to use for indexed databases. That character is valid for filenames
728         but cannot occur in a database identifier derived from a security origin.
729         https://bugs.webkit.org/show_bug.cgi?id=46178
730
731         * storage/IDBFactoryBackendImpl.cpp:
732         (WebCore::IDBFactoryBackendImpl::databaseFileName):
733
734 2010-09-21  Steve Block  <steveblock@google.com>
735
736         Reviewed by Jeremy Orlow.
737
738         DeviceOrientationClient and DeviceMotionClient should have controllerDestroyed() methods
739         https://bugs.webkit.org/show_bug.cgi?id=45891
740
741         Tested by existing DeviceOrientation tests.
742
743         * dom/DeviceMotionClient.h:
744         * dom/DeviceMotionController.cpp:
745         (WebCore::DeviceMotionController::~DeviceMotionController):
746         * dom/DeviceMotionController.h:
747         * dom/DeviceOrientationClient.h:
748         * dom/DeviceOrientationController.cpp:
749         (WebCore::DeviceOrientationController::~DeviceOrientationController):
750         * dom/DeviceOrientationController.h:
751         * loader/EmptyClients.h:
752         (WebCore::EmptyDeviceMotionClient::deviceOrientationControllerDestroyed):
753         (WebCore::EmptyDeviceOrientationClient::deviceOrientationControllerDestroyed):
754         * platform/mock/DeviceOrientationClientMock.h:
755         (WebCore::DeviceOrientationClientMock::deviceOrientationControllerDestroyed):
756
757 2010-09-21  Jochen Eisinger  <jochen@chromium.org>
758
759         Reviewed by Jeremy Orlow.
760
761         Factor out the file name used for a given indexed database to a static method.
762         https://bugs.webkit.org/show_bug.cgi?id=46090
763
764         * storage/IDBFactoryBackendImpl.cpp:
765         (WebCore::openSQLiteDatabase):
766         (WebCore::IDBFactoryBackendImpl::databaseFileName):
767         * storage/IDBFactoryBackendImpl.h:
768
769 2010-09-21  Dirk Schulze  <krit@webkit.org>
770
771         SVG Filter cleanup
772         https://bugs.webkit.org/show_bug.cgi?id=45612
773
774         Unreviewed change of epsilon back to a more tolerant value in RenderTreeAsText and made it a static const.
775         This should turn the bots green again.
776
777         * rendering/RenderTreeAsText.cpp:
778         (WebCore::hasFractions):
779
780 2010-09-21  David Hyatt  <hyatt@apple.com>
781
782         Reviewed by Dan Bernstein.
783
784         https://bugs.webkit.org/show_bug.cgi?id=46125, convert table cell intrinsic padding from top/bottom-based
785         to before/after-based.  A vertical text table can have intrinsic padding built into the left/right
786         direction (and this allows the base class logical padding methods on RenderBoxModelObject to be safe to use).
787
788         * rendering/RenderTableCell.cpp:
789         (WebCore::RenderTableCell::RenderTableCell):
790         (WebCore::RenderTableCell::paddingTop):
791         (WebCore::RenderTableCell::paddingBottom):
792         (WebCore::RenderTableCell::paddingLeft):
793         (WebCore::RenderTableCell::paddingRight):
794         (WebCore::RenderTableCell::paddingBefore):
795         (WebCore::RenderTableCell::paddingAfter):
796         * rendering/RenderTableCell.h:
797         (WebCore::RenderTableCell::setIntrinsicPaddingBefore):
798         (WebCore::RenderTableCell::setIntrinsicPaddingAfter):
799         (WebCore::RenderTableCell::setIntrinsicPadding):
800         (WebCore::RenderTableCell::intrinsicPaddingBefore):
801         (WebCore::RenderTableCell::intrinsicPaddingAfter):
802         * rendering/RenderTableSection.cpp:
803         (WebCore::RenderTableSection::calcRowHeight):
804         (WebCore::RenderTableSection::layoutRows):
805         * rendering/RenderTreeAsText.cpp:
806         (WebCore::RenderTreeAsText::writeRenderObject):
807         (WebCore::writeTextRun):
808
809 2010-09-21  Dirk Schulze  <krit@webkit.org>
810
811         Reviewed by Nikolas Zimmermann.
812
813         SVG Filter cleanup
814         https://bugs.webkit.org/show_bug.cgi?id=45612
815
816         Second cleanup patch. Modified files to follow webkit style. Removed dependencies
817         to SVG of most of the filter effects and prepared them to move from WebCore/svg/graphics/filters
818         to WebCore/platform/graphics/filters/.
819         Renamed calculateDrawingIntRect and calculateDrawingRect to requestedRegionOfInputImageData and
820         drawingRegionOfInputImage to clarify the functionality and make both functions distinguishable.
821
822         * platform/graphics/filters/FEBlend.cpp:
823         (WebCore::FEBlend::apply):
824         * platform/graphics/filters/FEBlend.h:
825         * platform/graphics/filters/FEColorMatrix.cpp:
826         (WebCore::FEColorMatrix::apply):
827         * platform/graphics/filters/FEColorMatrix.h:
828         * platform/graphics/filters/FEComponentTransfer.cpp:
829         (WebCore::FEComponentTransfer::apply):
830         * platform/graphics/filters/FEComponentTransfer.h:
831         (WebCore::ComponentTransferFunction::ComponentTransferFunction):
832         * platform/graphics/filters/FEComposite.cpp:
833         (WebCore::FEComposite::apply):
834         * platform/graphics/filters/FEComposite.h:
835         * platform/graphics/filters/FEGaussianBlur.cpp:
836         (WebCore::FEGaussianBlur::apply):
837         * platform/graphics/filters/FEGaussianBlur.h:
838         * platform/graphics/filters/Filter.h:
839         * platform/graphics/filters/FilterEffect.cpp:
840         (WebCore::FilterEffect::requestedRegionOfInputImageData):
841         (WebCore::FilterEffect::drawingRegionOfInputImage):
842         (WebCore::FilterEffect::effectContext):
843         * platform/graphics/filters/FilterEffect.h:
844         * platform/graphics/filters/ImageBufferFilter.cpp:
845         * platform/graphics/filters/ImageBufferFilter.h:
846         * platform/graphics/filters/SourceAlpha.cpp:
847         (WebCore::SourceAlpha::apply):
848         * platform/graphics/filters/SourceAlpha.h:
849         (WebCore::SourceAlpha::isSourceInput):
850         (WebCore::SourceAlpha::SourceAlpha):
851         * platform/graphics/filters/SourceGraphic.cpp:
852         (WebCore::SourceGraphic::apply):
853         * platform/graphics/filters/SourceGraphic.h:
854         (WebCore::SourceGraphic::isSourceInput):
855         (WebCore::SourceGraphic::SourceGraphic):
856         * rendering/RenderTreeAsText.cpp:
857         (WebCore::hasFractions):
858         (WebCore::operator<<):
859         * rendering/RenderTreeAsText.h:
860         (WebCore::operator<<):
861         * rendering/SVGRenderTreeAsText.cpp:
862         * rendering/SVGRenderTreeAsText.h:
863         * svg/graphics/filters/SVGFEConvolveMatrix.cpp:
864         (WebCore::FEConvolveMatrix::apply):
865         * svg/graphics/filters/SVGFEConvolveMatrix.h:
866         * svg/graphics/filters/SVGFEDiffuseLighting.cpp:
867         * svg/graphics/filters/SVGFEDiffuseLighting.h:
868         * svg/graphics/filters/SVGFEDisplacementMap.cpp:
869         (WebCore::FEDisplacementMap::apply):
870         * svg/graphics/filters/SVGFEDisplacementMap.h:
871         * svg/graphics/filters/SVGFEFlood.cpp:
872         (WebCore::FEFlood::apply):
873         (WebCore::FEFlood::externalRepresentation):
874         * svg/graphics/filters/SVGFEFlood.h:
875         * svg/graphics/filters/SVGFEImage.cpp:
876         (WebCore::FEImage::apply):
877         * svg/graphics/filters/SVGFEImage.h:
878         * svg/graphics/filters/SVGFELighting.cpp:
879         (WebCore::FELighting::apply):
880         * svg/graphics/filters/SVGFELighting.h:
881         * svg/graphics/filters/SVGFEMerge.cpp:
882         (WebCore::FEMerge::apply):
883         * svg/graphics/filters/SVGFEMerge.h:
884         * svg/graphics/filters/SVGFEMorphology.cpp:
885         (WebCore::FEMorphology::apply):
886         * svg/graphics/filters/SVGFEMorphology.h:
887         * svg/graphics/filters/SVGFEOffset.cpp:
888         (WebCore::FEOffset::apply):
889         * svg/graphics/filters/SVGFEOffset.h:
890         * svg/graphics/filters/SVGFESpecularLighting.cpp:
891         * svg/graphics/filters/SVGFESpecularLighting.h:
892         * svg/graphics/filters/SVGFETile.cpp:
893         (WebCore::FETile::apply):
894         * svg/graphics/filters/SVGFETile.h:
895         * svg/graphics/filters/SVGFETurbulence.cpp:
896         (WebCore::FETurbulence::apply):
897         * svg/graphics/filters/SVGFETurbulence.h:
898
899 2010-09-20  Philippe Normand  <pnormand@igalia.com>
900
901         Reviewed by Eric Carlson.
902
903         [GTK] enhanced context menu for media elements
904         https://bugs.webkit.org/show_bug.cgi?id=45021
905
906         New items in the media Element context menu:
907         - play/pause
908         - mute/unmute
909         - controls display control
910         - switch to fullscreen (for video only)
911         - loop playback control
912         - copy media url to clipboard
913         - open in new window
914
915         Test: media/context-menu-actions.html
916
917         * page/ContextMenuController.cpp:
918         (WebCore::ContextMenuController::contextMenuItemSelected):
919         * platform/ContextMenu.cpp:
920         (WebCore::ContextMenu::populate):
921         (WebCore::ContextMenu::checkOrEnableIfNeeded):
922         * platform/ContextMenuItem.h:
923         * platform/LocalizationStrategy.h:
924         * platform/LocalizedStrings.cpp:
925         (WebCore::contextMenuItemTagOpenVideoInNewWindow):
926         (WebCore::contextMenuItemTagOpenAudioInNewWindow):
927         (WebCore::contextMenuItemTagCopyVideoLinkToClipboard):
928         (WebCore::contextMenuItemTagCopyAudioLinkToClipboard):
929         (WebCore::contextMenuItemTagToggleMediaControls):
930         (WebCore::contextMenuItemTagToggleMediaLoop):
931         (WebCore::contextMenuItemTagEnterVideoFullscreen):
932         (WebCore::contextMenuItemTagMediaPlay):
933         (WebCore::contextMenuItemTagMediaPause):
934         (WebCore::contextMenuItemTagMediaMute):
935         * platform/LocalizedStrings.h:
936         * platform/android/LocalizedStringsAndroid.cpp:
937         (WebCore::contextMenuItemTagOpenVideoInNewWindow):
938         (WebCore::contextMenuItemTagOpenAudioInNewWindow):
939         (WebCore::contextMenuItemTagCopyVideoLinkToClipboard):
940         (WebCore::contextMenuItemTagCopyAudioLinkToClipboard):
941         (WebCore::contextMenuItemTagToggleMediaControls):
942         (WebCore::contextMenuItemTagToggleMediaLoop):
943         (WebCore::contextMenuItemTagEnterVideoFullscreen):
944         (WebCore::contextMenuItemTagMediaPlay):
945         (WebCore::contextMenuItemTagMediaPause):
946         (WebCore::contextMenuItemTagMediaMute):
947         * platform/brew/LocalizedStringsBrew.cpp:
948         (WebCore::contextMenuItemTagOpenVideoInNewWindow):
949         (WebCore::contextMenuItemTagOpenAudioInNewWindow):
950         (WebCore::contextMenuItemTagCopyVideoLinkToClipboard):
951         (WebCore::contextMenuItemTagCopyAudioLinkToClipboard):
952         (WebCore::contextMenuItemTagToggleMediaControls):
953         (WebCore::contextMenuItemTagToggleMediaLoop):
954         (WebCore::contextMenuItemTagEnterVideoFullscreen):
955         (WebCore::contextMenuItemTagMediaPlay):
956         (WebCore::contextMenuItemTagMediaPause):
957         (WebCore::contextMenuItemTagMediaMute):
958         * platform/efl/LocalizedStringsEfl.cpp:
959         (WebCore::contextMenuItemTagOpenVideoInNewWindow):
960         (WebCore::contextMenuItemTagOpenAudioInNewWindow):
961         (WebCore::contextMenuItemTagCopyVideoLinkToClipboard):
962         (WebCore::contextMenuItemTagCopyAudioLinkToClipboard):
963         (WebCore::contextMenuItemTagToggleMediaControls):
964         (WebCore::contextMenuItemTagToggleMediaLoop):
965         (WebCore::contextMenuItemTagEnterVideoFullscreen):
966         (WebCore::contextMenuItemTagMediaPlay):
967         (WebCore::contextMenuItemTagMediaPause):
968         (WebCore::contextMenuItemTagMediaMute):
969         * platform/gtk/ContextMenuItemGtk.cpp:
970         (WebCore::gtkStockIDFromContextMenuAction):
971         * platform/gtk/LocalizedStringsGtk.cpp:
972         (WebCore::contextMenuItemTagOpenVideoInNewWindow):
973         (WebCore::contextMenuItemTagOpenAudioInNewWindow):
974         (WebCore::contextMenuItemTagCopyVideoLinkToClipboard):
975         (WebCore::contextMenuItemTagCopyAudioLinkToClipboard):
976         (WebCore::contextMenuItemTagToggleMediaControls):
977         (WebCore::contextMenuItemTagToggleMediaLoop):
978         (WebCore::contextMenuItemTagEnterVideoFullscreen):
979         (WebCore::contextMenuItemTagMediaPlay):
980         (WebCore::contextMenuItemTagMediaPause):
981         (WebCore::contextMenuItemTagMediaMute):
982         * platform/haiku/LocalizedStringsHaiku.cpp:
983         (WebCore::contextMenuItemTagOpenVideoInNewWindow):
984         (WebCore::contextMenuItemTagOpenAudioInNewWindow):
985         (WebCore::contextMenuItemTagCopyVideoLinkToClipboard):
986         (WebCore::contextMenuItemTagCopyAudioLinkToClipboard):
987         (WebCore::contextMenuItemTagToggleMediaControls):
988         (WebCore::contextMenuItemTagToggleMediaLoop):
989         (WebCore::contextMenuItemTagEnterVideoFullscreen):
990         (WebCore::contextMenuItemTagMediaPlay):
991         (WebCore::contextMenuItemTagMediaPause):
992         (WebCore::contextMenuItemTagMediaMute):
993         * platform/wx/LocalizedStringsWx.cpp:
994         (WebCore::contextMenuItemTagOpenVideoInNewWindow):
995         (WebCore::contextMenuItemTagOpenAudioInNewWindow):
996         (WebCore::contextMenuItemTagCopyVideoLinkToClipboard):
997         (WebCore::contextMenuItemTagCopyAudioLinkToClipboard):
998         (WebCore::contextMenuItemTagToggleMediaControls):
999         (WebCore::contextMenuItemTagToggleMediaLoop):
1000         (WebCore::contextMenuItemTagEnterVideoFullscreen):
1001         (WebCore::contextMenuItemTagMediaPlay):
1002         (WebCore::contextMenuItemTagMediaPause):
1003         (WebCore::contextMenuItemTagMediaMute):
1004         * rendering/HitTestResult.cpp:
1005         (WebCore::HitTestResult::absoluteMediaURL):
1006         (WebCore::HitTestResult::mediaSupportsFullscreen):
1007         (WebCore::HitTestResult::mediaElement):
1008         (WebCore::HitTestResult::toggleMediaControlsDisplay):
1009         (WebCore::HitTestResult::toggleMediaLoopPlayback):
1010         (WebCore::HitTestResult::enterFullscreenForVideo):
1011         (WebCore::HitTestResult::mediaControlsEnabled):
1012         (WebCore::HitTestResult::mediaLoopEnabled):
1013         (WebCore::HitTestResult::mediaPlaying):
1014         (WebCore::HitTestResult::toggleMediaPlayState):
1015         (WebCore::HitTestResult::mediaHasAudio):
1016         (WebCore::HitTestResult::mediaMuted):
1017         (WebCore::HitTestResult::toggleMediaMuteState):
1018         * rendering/HitTestResult.h:
1019
1020 2010-09-20  Kwang Yul Seo  <skyul@company100.net>
1021
1022         Reviewed by Daniel Bates.
1023
1024         [BREWMP] Handle tab key
1025         https://bugs.webkit.org/show_bug.cgi?id=46104
1026
1027         In Brew MP, AVK_FUNCTION is the key code for tab.
1028         Process AVK_FUNCTION as tab in PlatformKeyboardEvent.
1029
1030         * platform/brew/PlatformKeyboardEventBrew.cpp:
1031         (WebCore::keyIdentifierForBrewKeyCode):
1032         (WebCore::windowsKeyCodeForKeyEvent):
1033
1034 2010-09-20  Sheriff Bot  <webkit.review.bot@gmail.com>
1035
1036         Unreviewed, rolling out r67918.
1037         http://trac.webkit.org/changeset/67918
1038         https://bugs.webkit.org/show_bug.cgi?id=46162
1039
1040         Broke chromium win compile (Requested by jamesr on #webkit).
1041
1042         * WebCore.gyp/WebCore.gyp:
1043         * WebCore.gypi:
1044         * platform/graphics/chromium/GlyphPageTreeNodeLinux.cpp: Renamed from WebCore/platform/graphics/skia/GlyphPageTreeNodeSkia.cpp.
1045         (WebCore::GlyphPage::fill):
1046
1047 2010-09-20  Daniel Bates  <dbates@rim.com>
1048
1049         Reviewed by Dan Bernstein.
1050
1051         Cleanup: Extract common border radii expansion code in
1052         RenderBoxModelObject::paintBoxShadow() into function
1053         https://bugs.webkit.org/show_bug.cgi?id=45934
1054
1055         Extracted code for expanding and clamping the border radii
1056         into common function to remove duplicate code.
1057
1058         No functionality was changed. So, no new tests.
1059
1060         * rendering/RenderBoxModelObject.cpp:
1061         (WebCore::uniformlyExpandBorderRadii): Added.
1062         (WebCore::RenderBoxModelObject::paintBoxShadow): Moved common code to uniformlyExpandBorderRadii().
1063
1064 2010-09-20  Kwang Yul Seo  <skyul@company100.net>
1065
1066         Reviewed by James Robinson.
1067
1068         Make sure skia is not Chromium specific
1069         https://bugs.webkit.org/show_bug.cgi?id=39672
1070
1071         GGlyphPageTreeNodeLinux does not depend on Linux or Chromium.
1072         Move GGlyphPageTreeNodeLinux to platform/graphics/skia and rename it to
1073         GlyphPageTreeNodeSkia.cpp so that other ports can use it.
1074
1075         * WebCore.gyp/WebCore.gyp:
1076         * WebCore.gypi:
1077         * platform/graphics/chromium/GlyphPageTreeNodeLinux.cpp: Removed.
1078         * platform/graphics/skia/GlyphPageTreeNodeSkia.cpp: Added.
1079
1080 2010-09-20  Kinuko Yasuda  <kinuko@chromium.org>
1081
1082         Reviewed by David Levin.
1083
1084         Add NoStaticTables attributes to IDLs of FileSystem API for Worker support
1085         https://bugs.webkit.org/show_bug.cgi?id=46021
1086
1087         Added NoStaticTables attributes to IDLs except for ones for Callbacks.
1088         (As NoStaticTables only affects non-callback interfaces.)
1089
1090         * fileapi/DOMFileSystem.idl:
1091         * fileapi/DirectoryEntry.idl:
1092         * fileapi/DirectoryReader.idl:
1093         * fileapi/Entry.idl:
1094         * fileapi/EntryArray.idl:
1095         * fileapi/FileEntry.idl:
1096         * fileapi/Flags.idl:
1097         * fileapi/Metadata.idl:
1098
1099 2010-09-20  Nico Weber  <thakis@chromium.org>
1100
1101         Reviewed by Adam Barth.
1102
1103         Fix "operands of ? are integers of different signs" clang warnings
1104         https://bugs.webkit.org/show_bug.cgi?id=46157
1105
1106         * platform/graphics/mac/ComplexTextController.cpp:
1107         (WebCore::ComplexTextController::advance):
1108         * rendering/RenderBox.cpp:
1109         (WebCore::RenderBox::calcHeight):
1110
1111 2010-09-20  Vangelis Kokkevis  <vangelis@chromium.org>
1112
1113         Unreviewed, rolling out r67906.
1114         http://trac.webkit.org/changeset/67906
1115         https://bugs.webkit.org/show_bug.cgi?id=46139
1116
1117         Change causes chromium to crash when switching pages
1118
1119         * platform/graphics/chromium/ContentLayerChromium.h:
1120         * platform/graphics/chromium/LayerChromium.h:
1121
1122 2010-09-19  Antonio Gomes  <agomes@rim.com>
1123
1124         Reviewed by Ojan Vafai.
1125
1126         SelectionController::modify should ask EditingBehavior for platform specific behavior
1127         https://bugs.webkit.org/show_bug.cgi?id=41975
1128
1129         As a follow up of the refactoring work in bug 39854, patch makes SelectionController::modify()
1130         stop accessing EditingBehaviorType values directly, and replaces its use by the EditingBehavior
1131         class.
1132
1133         Since the "Settings*" parameter of the private SelectionController::modify() method becomes unneeded
1134         with this change (it was used to query the editingBehaviorType), patch merges two modify() methods.
1135
1136         No behavior change, so no new tests.
1137
1138         * editing/EditingBehavior.h:
1139         (WebCore::EditingBehavior::shouldAlwaysGrowSelectionWhenExtendingToBoundary):
1140         * editing/SelectionController.cpp:
1141         (WebCore::SelectionController::modify):
1142         * editing/SelectionController.h:
1143
1144 2010-09-20  Vangelis Kokkevis  <vangelis@chromium.org>
1145
1146         Reviewed by James Robinson.
1147
1148         [chromium] Making destructors of LayerChromium and ContentLayerChromium virtual
1149         so that the derived class' destructor code gets called.
1150         https://bugs.webkit.org/show_bug.cgi?id=46139
1151
1152         * platform/graphics/chromium/ContentLayerChromium.h:
1153         * platform/graphics/chromium/LayerChromium.h:
1154
1155 2010-09-20  Darin Adler  <darin@apple.com>
1156
1157         Reviewed by James Robinson.
1158
1159         Deprecate the inputType function on HTMLInputElement
1160         https://bugs.webkit.org/show_bug.cgi?id=46023
1161
1162         * html/HTMLInputElement.cpp:
1163         (WebCore::HTMLInputElement::HTMLInputElement): Use m_deprecatedTypeNumber.
1164         (WebCore::HTMLInputElement::isValidValue): Use deprecatedInputType.
1165         (WebCore::HTMLInputElement::typeMismatch): Ditto.
1166         (WebCore::HTMLInputElement::valueMissing): Ditto.
1167         (WebCore::HTMLInputElement::rangeUnderflow): Ditto.
1168         (WebCore::HTMLInputElement::rangeOverflow): Ditto.
1169         (WebCore::HTMLInputElement::minimum): Ditto.
1170         (WebCore::HTMLInputElement::maximum): Ditto.
1171         (WebCore::HTMLInputElement::stepBase): Ditto.
1172         (WebCore::HTMLInputElement::stepMismatch): Ditto.
1173         (WebCore::HTMLInputElement::getStepParameters): Ditto.
1174         (WebCore::HTMLInputElement::getAllowedValueStep): Ditto.
1175         (WebCore::HTMLInputElement::isKeyboardFocusable): Ditto.
1176         (WebCore::HTMLInputElement::shouldUseInputMethod): Ditto.
1177         (WebCore::HTMLInputElement::handleBlurEvent): Ditto.
1178         (WebCore::HTMLInputElement::setType): Added a comment.
1179         (WebCore::HTMLInputElement::updateType): Replaced the setInputType function
1180         with this. The type is always the type attribute value, so there is no value
1181         in passing the type string in, and this is an internal implementation detail,
1182         not a public function.
1183         (WebCore::createFormControlTypes): Use deprecatedNumberOfTypes.
1184         (WebCore::HTMLInputElement::formControlType): Use deprecatedInputType.
1185         (WebCore::HTMLInputElement::saveFormControlState): Ditto.
1186         (WebCore::HTMLInputElement::restoreFormControlState): Ditto.
1187         (WebCore::HTMLInputElement::accessKeyAction): Ditto.
1188         (WebCore::HTMLInputElement::mapToEntry): Ditto.
1189         (WebCore::HTMLInputElement::parseMappedAttribute): Ditto.
1190         (WebCore::HTMLInputElement::rendererIsNeeded): Ditto.
1191         (WebCore::HTMLInputElement::createRenderer): Ditto.
1192         (WebCore::HTMLInputElement::attach): Ditto.
1193         (WebCore::HTMLInputElement::isSuccessfulSubmitButton): Ditto.
1194         (WebCore::HTMLInputElement::appendFormData): Ditto.
1195         (WebCore::HTMLInputElement::isTextField): Ditto.
1196         (WebCore::HTMLInputElement::isTextType): Ditto.
1197         (WebCore::HTMLInputElement::setChecked): Ditto.
1198         (WebCore::HTMLInputElement::value): Ditto.
1199         (WebCore::HTMLInputElement::valueWithDefault): Ditto.
1200         (WebCore::HTMLInputElement::setSuggestedValue): Ditto.
1201         (WebCore::HTMLInputElement::setValue): Ditto.
1202         (WebCore::HTMLInputElement::parseToDouble): Ditto.
1203         (WebCore::HTMLInputElement::valueAsDate): Ditto.
1204         (WebCore::HTMLInputElement::setValueAsDate): Ditto.
1205         (WebCore::HTMLInputElement::valueAsNumber): Ditto.
1206         (WebCore::HTMLInputElement::setValueAsNumber): Ditto.
1207         (WebCore::HTMLInputElement::serializeForDateTimeTypes): Ditto.
1208         (WebCore::HTMLInputElement::serialize): Ditto.
1209         (WebCore::HTMLInputElement::setValueFromRenderer): Ditto.
1210         (WebCore::HTMLInputElement::storesValueSeparateFromAttribute): Ditto.
1211         (WebCore::HTMLInputElement::preDispatchEventHandler): Ditto.
1212         (WebCore::HTMLInputElement::postDispatchEventHandler): Ditto.
1213         (WebCore::HTMLInputElement::defaultEventHandler): Ditto.
1214         (WebCore::HTMLInputElement::handleBeforeTextInsertedEvent): Ditto.
1215         (WebCore::HTMLInputElement::files): Ditto.
1216         (WebCore::HTMLInputElement::isAcceptableValue): Ditto.
1217         (WebCore::HTMLInputElement::sanitizeValue): Ditto.
1218         (WebCore::HTMLInputElement::hasUnacceptableValue): Ditto.
1219         (WebCore::HTMLInputElement::needsActivationCallback): Ditto.
1220         (WebCore::HTMLInputElement::isRequiredFormControl): Ditto.
1221         (WebCore::HTMLInputElement::recalcWillValidate): Ditto.
1222         (WebCore::HTMLInputElement::parseToDateComponents): Ditto.
1223         (WebCore::HTMLInputElement::dataList): Ditto.
1224         (WebCore::HTMLInputElement::isSpeechEnabled): Ditto.
1225
1226         * html/HTMLInputElement.h: Renamed InputType to DeprecatedInputType since it
1227         should not be used outside this class. Renamed numberOfTypes to
1228         dprecatedNumberOfTypes for the same reason. Changed all code to use
1229         deprecatedInputType function instead of m_type. Renamed inputType function
1230         to deprecatedInputType. Replaced public setInputType function with private
1231         updateType function. Renamed m_type data member to m_deprecatedTypeNumber.
1232
1233         * rendering/MediaControlElements.cpp:
1234         (WebCore::MediaControlInputElement::MediaControlInputElement):
1235         * rendering/RenderFileUploadControl.cpp:
1236         (WebCore::RenderFileUploadControl::updateFromElement):
1237         Use setType instead of setInputType.
1238
1239 2010-09-20  Mihai Parparita  <mihaip@chromium.org>
1240
1241         Unreviewed; an attempt to fix Windows build.
1242
1243         * WebCore.vcproj/WebCore.vcproj:
1244
1245 2010-09-20  Simon Fraser  <simon.fraser@apple.com>
1246
1247         Reviewed by Dan Bernstein.
1248
1249         When PDF image is directly composited, it does not display
1250         https://bugs.webkit.org/show_bug.cgi?id=46144
1251         
1252         In the "direct image compositing" code path, we set the image directly
1253         as the contents of the GraphicsLayer. However, this only works with
1254         bitmap images, so we have to check that the image is a bitmap image.
1255
1256         Test: compositing/images/direct-pdf-image.html
1257
1258         * rendering/RenderLayerBacking.cpp:
1259         (WebCore::RenderLayerBacking::isDirectlyCompositedImage):
1260
1261 2010-09-20  Simon Fraser  <simon.fraser@apple.com>
1262
1263         Reviewed by Darin Adler.
1264
1265         Crash when div with content set to image gets composited (Vimeo).
1266         https://bugs.webkit.org/show_bug.cgi?id=46140
1267         
1268         When CSS specifies that the content of an element is an image, we make
1269         a RenderImage, and setStyle() before setting the image resource. In this
1270         case the compositing code can attempt to access the cached image, which
1271         would crash with a null deref.
1272         
1273         Fix by null-checking m_imageResource.
1274
1275         Test: compositing/images/content-image.html
1276
1277         * rendering/RenderImage.h:
1278         (WebCore::RenderImage::cachedImage):
1279
1280 2010-09-20  Mihai Parparita  <mihaip@chromium.org>
1281
1282         Reviewed by Dimitri Glazkov.
1283
1284         Hashchange event is no longer a simple event, needs to be its own interface
1285         https://bugs.webkit.org/show_bug.cgi?id=36335
1286         
1287         Add HashChangeEvent.idl and supporting files/changes.
1288
1289         Test: fast/loader/hashchange-event-properties.html
1290
1291         The original version of this patch was written by
1292         Steven Lai <s3lance@hotmail.com>.
1293
1294         * CMakeLists.txt:
1295         * DerivedSources.cpp:
1296         * DerivedSources.make:
1297         * GNUmakefile.am:
1298         * WebCore.gypi:
1299         * WebCore.pri:
1300         * WebCore.vcproj/WebCore.vcproj:
1301         * WebCore.xcodeproj/project.pbxproj:
1302         * bindings/js/JSEventCustom.cpp:
1303         (WebCore::toJS):
1304         * bindings/v8/custom/V8EventCustom.cpp:
1305         (WebCore::toV8):
1306         * dom/Document.cpp:
1307         (WebCore::Document::enqueueHashchangeEvent):
1308         * dom/Event.cpp:
1309         (WebCore::Event::isHashChangeEvent):
1310         * dom/Event.h:
1311         * dom/HashChangeEvent.h: Added.
1312         (WebCore::HashChangeEvent::isHashChangeEvent):
1313         (WebCore::HashChangeEvent::create):
1314         (WebCore::HashChangeEvent::initHashChangeEvent):
1315         (WebCore::HashChangeEvent::oldURL):
1316         (WebCore::HashChangeEvent::newURL):
1317         (WebCore::HashChangeEvent::HashChangeEvent):
1318         * dom/HashChangeEvent.idl: Added.
1319         * page/DOMWindow.idl:
1320
1321 2010-09-20  Andy Estes  <aestes@apple.com>
1322
1323         Reviewed by Adam Barth.
1324
1325         REGRESSION (HTML5 Parser): Pages broken due to <tag<tag> parsing changes
1326         https://bugs.webkit.org/show_bug.cgi?id=40961
1327
1328         Add an optional quirk to the HTML5 tokenizer that reverts it to WebKit's
1329         legacy behavior when the start of a new token is encountered before the
1330         current token is finished parsing. The legacy behavior is to emit the
1331         current token as if it were properly closed and being parsing the new
1332         token.
1333
1334         Test: fast/parser/pre-html5-parser-quirks.html
1335
1336         * html/parser/HTMLDocumentParser.cpp:
1337         (WebCore::HTMLDocumentParser::HTMLDocumentParser): Instantiate
1338         m_tokenizer with the value of Settings::usePreHTML5ParserQuirks().
1339         (WebCore::usePreHTMLParserQuirks): Add a helper function to return the
1340         value of Settings::usePreHTML5ParserQuirks() if Settings is non-NULL.
1341         * html/parser/HTMLPreloadScanner.cpp:
1342         (WebCore::HTMLPreloadScanner::HTMLPreloadScanner): Instantiate
1343         m_tokenizer with the value of Settings::usePreHTML5ParserQuirks().
1344         * html/parser/HTMLTokenizer.cpp:
1345         (WebCore::HTMLTokenizer::HTMLTokenizer):
1346         (WebCore::HTMLTokenizer::nextToken): If the quirk is enabled and an
1347         unexpected '<' is encountered in certain states, emit the current token
1348         and reprocess the '<' as the start of a new token.
1349         * html/parser/HTMLTokenizer.h:
1350         (WebCore::HTMLTokenizer::create):
1351         * html/parser/HTMLViewSourceParser.cpp:
1352         (WebCore::HTMLViewSourceParser::HTMLViewSourceParser): Instantiate
1353         m_tokenizer with the value of Settings::usePreHTML5ParserQuirks().
1354         * page/Settings.cpp:
1355         (WebCore::Settings::Settings):
1356         * page/Settings.h:
1357         (WebCore::Settings::setUsePreHTML5ParserQuirks):
1358         (WebCore::Settings::usePreHTML5ParserQuirks):
1359
1360 2010-09-20  David Hyatt  <hyatt@apple.com>
1361
1362         Reviewed by Dan Bernstein.
1363
1364         https://bugs.webkit.org/show_bug.cgi?id=46132, add an isVerticalBlockFlow() method to RenderStyle and
1365         patch callers so that they don't have to check both top-to-bottom and bottom-to-top block flow.
1366
1367         * rendering/RenderBox.cpp:
1368         (WebCore::RenderBox::availableLogicalWidth):
1369         * rendering/style/RenderStyle.cpp:
1370         (WebCore::RenderStyle::logicalWidth):
1371         (WebCore::RenderStyle::logicalHeight):
1372         (WebCore::RenderStyle::logicalMinWidth):
1373         (WebCore::RenderStyle::logicalMaxWidth):
1374         (WebCore::RenderStyle::logicalMinHeight):
1375         (WebCore::RenderStyle::logicalMaxHeight):
1376         (WebCore::RenderStyle::borderStartWidth):
1377         (WebCore::RenderStyle::borderEndWidth):
1378         (WebCore::RenderStyle::marginStart):
1379         (WebCore::RenderStyle::marginEnd):
1380         (WebCore::RenderStyle::paddingStart):
1381         (WebCore::RenderStyle::paddingEnd):
1382         * rendering/style/RenderStyle.h:
1383         (WebCore::InheritedFlags::isVerticalBlockFlow):
1384
1385 2010-09-20  David Hyatt  <hyatt@apple.com>
1386
1387         Reviewed by Dan Bernstein.
1388
1389         https://bugs.webkit.org/show_bug.cgi?id=46124, add support for logical padding accessors to
1390         RenderBoxModelObject.
1391
1392         Added fast/blockflow/percentage-padding.html even though it fails, so that when more of layout is patched
1393         we can see it start passing.
1394
1395         * rendering/RenderBoxModelObject.cpp:
1396         (WebCore::RenderBoxModelObject::paddingTop):
1397         (WebCore::RenderBoxModelObject::paddingBottom):
1398         (WebCore::RenderBoxModelObject::paddingLeft):
1399         (WebCore::RenderBoxModelObject::paddingRight):
1400         (WebCore::RenderBoxModelObject::paddingBefore):
1401         (WebCore::RenderBoxModelObject::paddingAfter):
1402         (WebCore::RenderBoxModelObject::paddingStart):
1403         (WebCore::RenderBoxModelObject::paddingEnd):
1404         * rendering/RenderBoxModelObject.h:
1405
1406 2010-09-20  David Hyatt  <hyatt@apple.com>
1407
1408         Reviewed by Dan Bernstein.
1409
1410         https://bugs.webkit.org/show_bug.cgi?id=46126, add availableLogicalWidth() to RenderBox.
1411         
1412         * rendering/RenderBlock.cpp:
1413         (WebCore::RenderBlock::availableWidth):
1414         (WebCore::RenderBlock::availableLogicalWidth):
1415         * rendering/RenderBlock.h:
1416         * rendering/RenderBox.cpp:
1417         (WebCore::RenderBox::availableLogicalWidth):
1418         * rendering/RenderBox.h:
1419         (WebCore::RenderBox::availableWidth):
1420
1421 2010-09-20  Kenneth Russell  <kbr@google.com>
1422
1423         Reviewed by James Robinson.
1424
1425         [chromium] Change compositor to use GraphicsContext3D rather than GLES2Context
1426         https://bugs.webkit.org/show_bug.cgi?id=45912
1427
1428         Switched Chromium's compositor to use GraphicsContext3D to issue
1429         its OpenGL rendering calls rather than the Chromium-specific
1430         GLES2Context and command buffer OpenGL implementation.
1431
1432         The in-process software rendering path for GraphicsContext3D does
1433         not yet work with the compositor, at least not on Mac OS X. This
1434         will be worked on in subsequent bugs.
1435
1436         Tested manually with 3D CSS, WebGL and video content on Mac OS X
1437         and Linux. No new tests.
1438
1439         * platform/graphics/chromium/Canvas2DLayerChromium.cpp:
1440         (WebCore::Canvas2DLayerChromium::~Canvas2DLayerChromium):
1441         (WebCore::Canvas2DLayerChromium::updateContents):
1442         * platform/graphics/chromium/CanvasLayerChromium.cpp:
1443         (WebCore::CanvasLayerChromium::SharedValues::SharedValues):
1444         (WebCore::CanvasLayerChromium::SharedValues::~SharedValues):
1445         (WebCore::CanvasLayerChromium::draw):
1446         * platform/graphics/chromium/CanvasLayerChromium.h:
1447         * platform/graphics/chromium/ContentLayerChromium.cpp:
1448         (WebCore::ContentLayerChromium::SharedValues::SharedValues):
1449         (WebCore::ContentLayerChromium::SharedValues::~SharedValues):
1450         (WebCore::ContentLayerChromium::~ContentLayerChromium):
1451         (WebCore::ContentLayerChromium::updateTextureRect):
1452         (WebCore::ContentLayerChromium::draw):
1453         * platform/graphics/chromium/ContentLayerChromium.h:
1454         * platform/graphics/chromium/DrawingBufferChromium.cpp:
1455         (WebCore::DrawingBuffer::publishToPlatformLayer):
1456         * platform/graphics/chromium/LayerChromium.cpp:
1457         (WebCore::loadShader):
1458         (WebCore::LayerChromium::SharedValues::SharedValues):
1459         (WebCore::LayerChromium::SharedValues::~SharedValues):
1460         (WebCore::LayerChromium::createShaderProgram):
1461         (WebCore::LayerChromium::layerRendererContext):
1462         (WebCore::LayerChromium::drawTexturedQuad):
1463         (WebCore::LayerChromium::drawDebugBorder):
1464         (WebCore::LayerChromium::drawAsMask):
1465         (WebCore::LayerChromium::prepareForDraw):
1466         * platform/graphics/chromium/LayerChromium.h:
1467         (WebCore::LayerChromium::SharedValues::context):
1468         * platform/graphics/chromium/LayerRendererChromium.cpp:
1469         (WebCore::LayerRendererChromium::create):
1470         (WebCore::LayerRendererChromium::LayerRendererChromium):
1471         (WebCore::LayerRendererChromium::context):
1472         (WebCore::LayerRendererChromium::debugGLCall):
1473         (WebCore::LayerRendererChromium::useShader):
1474         (WebCore::LayerRendererChromium::prepareToDrawLayers):
1475         (WebCore::LayerRendererChromium::updateRootLayerTextureRect):
1476         (WebCore::LayerRendererChromium::drawLayers):
1477         (WebCore::LayerRendererChromium::finish):
1478         (WebCore::LayerRendererChromium::present):
1479         (WebCore::LayerRendererChromium::getFramebufferPixels):
1480         (WebCore::LayerRendererChromium::createLayerTexture):
1481         (WebCore::LayerRendererChromium::drawLayerIntoStencilBuffer):
1482         (WebCore::LayerRendererChromium::drawLayersRecursive):
1483         (WebCore::LayerRendererChromium::drawLayer):
1484         (WebCore::LayerRendererChromium::scissorToRect):
1485         (WebCore::LayerRendererChromium::makeContextCurrent):
1486         (WebCore::LayerRendererChromium::resizeOnscreenContent):
1487         (WebCore::LayerRendererChromium::initializeSharedObjects):
1488         (WebCore::LayerRendererChromium::cleanupSharedObjects):
1489         * platform/graphics/chromium/LayerRendererChromium.h:
1490         * platform/graphics/chromium/VideoLayerChromium.cpp:
1491         (WebCore::VideoLayerChromium::createTextureRect):
1492         (WebCore::VideoLayerChromium::updateTextureRect):
1493         * platform/graphics/chromium/WebGLLayerChromium.cpp:
1494         (WebCore::WebGLLayerChromium::updateContents):
1495         * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
1496         (WebCore::SharedGraphicsContext3D::flush):
1497         (WebCore::SharedGraphicsContext3D::supportsCopyTextureToParentTextureCHROMIUM):
1498         (WebCore::SharedGraphicsContext3D::copyTextureToParentTextureCHROMIUM):
1499         * platform/graphics/gpu/SharedGraphicsContext3D.h:
1500
1501 2010-09-20  David Hyatt  <hyatt@apple.com>
1502
1503         Reviewed by Dan Bernstein.
1504
1505         https://bugs.webkit.org/show_bug.cgi?id=46119, add logical accessors to RenderStyle.  Not used by any RenderObjects yet, so no tests
1506         until then.
1507
1508         * rendering/style/RenderStyle.cpp:
1509         (WebCore::RenderStyle::logicalWidth):
1510         (WebCore::RenderStyle::logicalHeight):
1511         (WebCore::RenderStyle::logicalMinWidth):
1512         (WebCore::RenderStyle::logicalMaxWidth):
1513         (WebCore::RenderStyle::logicalMinHeight):
1514         (WebCore::RenderStyle::logicalMaxHeight):
1515         (WebCore::RenderStyle::borderBeforeWidth):
1516         (WebCore::RenderStyle::borderAfterWidth):
1517         (WebCore::RenderStyle::borderStartWidth):
1518         (WebCore::RenderStyle::borderEndWidth):
1519         (WebCore::RenderStyle::marginBefore):
1520         (WebCore::RenderStyle::marginAfter):
1521         (WebCore::RenderStyle::marginStart):
1522         (WebCore::RenderStyle::marginEnd):
1523         (WebCore::RenderStyle::paddingBefore):
1524         (WebCore::RenderStyle::paddingAfter):
1525         (WebCore::RenderStyle::paddingStart):
1526         (WebCore::RenderStyle::paddingEnd):
1527         * rendering/style/RenderStyle.h:
1528
1529 2010-09-20  David Hyatt  <hyatt@apple.com>
1530
1531         Reviewed by Dan Bernstein.
1532
1533         https://bugs.webkit.org/show_bug.cgi?id=46116, implement block-flow-aware logical properties.
1534         
1535         This patch adds all the logical properties from the CSS3 Writing Mode draft for margins, padding, border,
1536         width and height.
1537
1538         Added fast/css/logical-property-resolution.html
1539
1540         * css/CSSComputedStyleDeclaration.cpp:
1541         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
1542         * css/CSSParser.cpp:
1543         (WebCore::CSSParser::parseValue):
1544         * css/CSSProperty.cpp:
1545         (WebCore::resolveToPhysicalProperty):
1546         (WebCore::CSSProperty::resolveDirectionAwareProperty):
1547         * css/CSSProperty.h:
1548         * css/CSSPropertyNames.in:
1549         * css/CSSStyleSelector.cpp:
1550         (WebCore::CSSStyleSelector::applyDeclarations):
1551         (WebCore::CSSStyleSelector::applyProperty):
1552
1553 2010-09-20  David Hyatt  <hyatt@apple.com>
1554
1555         Reviewed by Beth Dakin.
1556
1557         https://bugs.webkit.org/show_bug.cgi?id=46114, two tables repaint tests failing on bots.
1558
1559         Patch layoutRows to apply the layout delta when setting a new cell location prior to laying out the cell.
1560         
1561         The layout delta is then removed after layout has happened when the repaint check is done.  This change
1562         makes cell layout match block child layout, and now the cells have the correct new location up front
1563         when laying out (a necessity for pagination).
1564
1565         * rendering/RenderTableSection.cpp:
1566         (WebCore::RenderTableSection::layoutRows):
1567
1568 2010-09-20  Jacob Dinu  <dinu.jacob@nokia.com>
1569
1570         Reviewed by Adam Barth.
1571
1572         When loading a cached page, dispatchDidCommitLoad is called after FrameLoader::open so
1573         that all initialzations are done before calling client dispatchDidCommitLoad to avoid
1574         client from accessing incorrect data.
1575         https://bugs.webkit.org/show_bug.cgi?id=41155
1576
1577         * loader/FrameLoader.cpp:
1578         (WebCore::FrameLoader::commitProvisionalLoad):
1579         (WebCore::FrameLoader::transitionToCommitted):
1580
1581 2010-09-20  Simon Fraser  <simon.fraser@apple.com>
1582
1583         Reviewed by Adam Roben.
1584
1585         REGRESSION: alternating animation direction doesn't work on Windows
1586         https://bugs.webkit.org/show_bug.cgi?id=46017
1587         
1588         Animation-direction on Windows was broken because bitfields on
1589         Windows are signed.
1590         
1591         Fixed by making m_direction an unsigned in the bitfield, and
1592         casting in the accessor.
1593
1594         Test: animations/animation-direction.html
1595
1596         * platform/animation/Animation.h:
1597         (WebCore::Animation::direction):
1598
1599 2010-09-20  Enrica Casucci  <enrica@apple.com>
1600
1601         Reviewed by Sam Weinig.
1602
1603         Pasteboard doesn't work in WebKit2.
1604         https://bugs.webkit.org/show_bug.cgi?id=42317
1605         <rdar://problem/7660537>
1606
1607         * loader/EmptyClients.h:
1608         (WebCore::EmptyEditorClient::documentFragmentFromAttributedString): Changed parameter to
1609         be a Vector of RefPtr.
1610         * page/EditorClient.h:
1611         * platform/mac/PasteboardMac.mm:
1612         (WebCore::Pasteboard::documentFragmentWithRtf): Stylistic changes.
1613
1614 2010-09-20  Yong Li  <yoli@rim.com>
1615
1616         Reviewed by Alexey Proskuryakov.
1617
1618         https://bugs.webkit.org/show_bug.cgi?id=39966
1619         Make compareBorders() a consistent compare function which can beused by qsort().
1620
1621         New test case added: LayoutTests/tables/sort-collapsed-border-styles.html
1622
1623         * rendering/RenderTableCell.cpp:
1624         (WebCore::compareBorders):
1625         (WebCore::chooseBorder):
1626         (WebCore::RenderTableCell::collapsedLeftBorder):
1627         (WebCore::RenderTableCell::collapsedRightBorder):
1628         (WebCore::RenderTableCell::collapsedTopBorder):
1629         (WebCore::RenderTableCell::collapsedBottomBorder):
1630         (WebCore::compareBorderStylesForQSort):
1631
1632 2010-09-20  Patrick Gansterer  <paroga@paroga.com>
1633
1634         Reviewed by Adam Roben.
1635
1636         [WINCE] Buildfix for PluginViewWin.cpp
1637         https://bugs.webkit.org/show_bug.cgi?id=46033
1638
1639         * plugins/win/PluginViewWin.cpp:
1640         (WebCore::PluginView::paintIntoTransformedContext):
1641         (WebCore::PluginView::snapshot):
1642
1643 2010-09-18  David Hyatt  <hyatt@apple.com>
1644
1645         Reviewed by Sam Weinig.
1646
1647         https://bugs.webkit.org/show_bug.cgi?id=46030, aintitcool.com doesn't paginate correctly when printed.
1648         
1649         This happens because the site always has a document width that will exceed the page width.
1650         We incorrectly apply a double scale instead of clipping after the first scale still doesn't fit.
1651         The fix for the issue is to cap the right layout overflow to the page width and to just clip out
1652         any additional excess.  This is the code in FrameView.cpp.
1653         
1654         This patch also cleans up table cell invalidation to reduce the # of relayouts.  This change is not
1655         a correctness fix.  It's just performance.
1656         
1657         I'm not sure how to write a test for this, since the double scale is an artifact of how WebKit mac calls
1658         back in when really printing.
1659
1660         * page/FrameView.cpp:
1661         (WebCore::FrameView::forceLayoutForPagination):
1662         * rendering/RenderBlock.cpp:
1663         (WebCore::RenderBlock::layoutBlockChild):
1664         (WebCore::RenderBlock::layoutPositionedObjects):
1665         (WebCore::RenderBlock::positionNewFloats):
1666         * rendering/RenderBlock.h:
1667         (WebCore::RenderBlock::markForPaginationRelayout):
1668         * rendering/RenderFlexibleBox.cpp:
1669         (WebCore::RenderFlexibleBox::layoutHorizontalBox):
1670         (WebCore::RenderFlexibleBox::layoutVerticalBox):
1671         * rendering/RenderTableSection.cpp:
1672         (WebCore::RenderTableSection::layoutRows):
1673
1674 2010-09-20  Ilya Tikhonovsky  <loislo@chromium.org>
1675
1676         Reviewed by Pavel Feldman.
1677
1678         Web Inspector: merge Inspector client runtime events into the serialized inspector state object.
1679
1680         Drive-by rename getBackendSettings -> getInspectorState to better reflect the nature of the data.
1681
1682         https://bugs.webkit.org/show_bug.cgi?id=45974
1683
1684         * inspector/Inspector.idl:
1685         * inspector/InspectorClient.h:
1686         (WebCore::InspectorClient::updateInspectorStateCookie):
1687         * inspector/InspectorController.cpp:
1688         (WebCore::InspectorController::saveApplicationSettings):
1689         (WebCore::InspectorController::getInspectorState):
1690         (WebCore::InspectorController::updateInspectorStateCookie):
1691         (WebCore::InspectorController::restoreInspectorStateFromCookie):
1692         (WebCore::InspectorController::getSettings):
1693         (WebCore::InspectorController::setMonitoringXHREnabled):
1694         (WebCore::InspectorController::restoreDebugger):
1695         (WebCore::InspectorController::restoreProfiler):
1696         (WebCore::InspectorController::setResourceTrackingEnabled):
1697         (WebCore::InspectorController::ensureSettingsLoaded):
1698         (WebCore::InspectorController::startTimelineProfiler):
1699         (WebCore::InspectorController::stopTimelineProfiler):
1700         (WebCore::InspectorController::enableProfiler):
1701         (WebCore::InspectorController::disableProfiler):
1702         (WebCore::InspectorController::enableDebuggerFromFrontend):
1703         (WebCore::InspectorController::disableDebugger):
1704         * inspector/InspectorController.h:
1705         * inspector/front-end/ConsoleView.js:
1706         (WebInspector.ConsoleView.prototype._handleContextMenuEvent):
1707         * inspector/front-end/ResourcesPanel.js:
1708         (WebInspector.ResourcesPanel.prototype._toggleResourceTracking):
1709         * inspector/front-end/Settings.js:
1710         (WebInspector.Settings.initialize):
1711         * inspector/front-end/inspector.js:
1712         (WebInspector.doLoadedDone.populateInspectorState):
1713         (WebInspector.doLoadedDone):
1714
1715 2010-09-20  Dirk Schulze  <krit@webkit.org>
1716
1717         Reviewed by Nikolas Zimmermann.
1718
1719         SVG Filter cleanup
1720         https://bugs.webkit.org/show_bug.cgi?id=45612
1721         
1722         All effect inputs are stored in a Vector in FilterEffect instead of passing them via constructors to every effect type.
1723         This simplifies the primitive subregion logic and centralizes it in determineFilterPrimitiveSubregion.
1724         Just SourceGraphic, SourceAlpha and FETile still calculate filter primitive subregions on
1725         their own. Working on it in a followup patch.
1726         The subregions code is SVG specific and moving this calculation to FilterEffect is an
1727         intermediate step before moving it to RenderSVGResourceFilterPrimitive in a following patch.
1728         The new FilterEffectVector will also make it possible to add code to determine the
1729         smallest used region of an effect and will help save memory and resources in the future.
1730         subRegion got renamed to filterPrimitiveSubregion to match the name scheme. scaledSubRegion got
1731         renamed to repaintRectInLocalCoordinates since this is its proper meaning.
1732         Removed unnecessary member variables and functions from FilterEffect.
1733
1734         No new tests added since the functionality didn't change.
1735
1736         * platform/graphics/cairo/GraphicsContextCairo.cpp: scaledSubRegion was renamed to repaintRectInLocalCoordinates.
1737         (WebCore::GraphicsContext::createShadowMask):
1738         * platform/graphics/filters/FEBlend.cpp: Removed Filter effect inputs from constructor.
1739         (WebCore::FEBlend::FEBlend):
1740         (WebCore::FEBlend::create):
1741         (WebCore::FEBlend::apply): Call inputFilterEffects to get input filter primitives.
1742         (WebCore::FEBlend::externalRepresentation): Call inputFilterEffects to get input filter primitives.
1743         * platform/graphics/filters/FEBlend.h:
1744         * platform/graphics/filters/FEColorMatrix.cpp: Ditto.
1745         (WebCore::FEColorMatrix::FEColorMatrix):
1746         (WebCore::FEColorMatrix::create):
1747         (WebCore::FEColorMatrix::apply):
1748         (WebCore::FEColorMatrix::externalRepresentation):
1749         * platform/graphics/filters/FEColorMatrix.h:
1750         * platform/graphics/filters/FEComponentTransfer.cpp: Ditto.
1751         (WebCore::FEComponentTransfer::FEComponentTransfer):
1752         (WebCore::FEComponentTransfer::create):
1753         (WebCore::FEComponentTransfer::apply):
1754         (WebCore::FEComponentTransfer::externalRepresentation):
1755         * platform/graphics/filters/FEComponentTransfer.h:
1756         * platform/graphics/filters/FEComposite.cpp: Ditto.
1757         (WebCore::FEComposite::FEComposite):
1758         (WebCore::FEComposite::create):
1759         (WebCore::FEComposite::apply):
1760         (WebCore::FEComposite::externalRepresentation):
1761         * platform/graphics/filters/FEComposite.h:
1762         * platform/graphics/filters/FEGaussianBlur.cpp: Ditto.
1763         (WebCore::FEGaussianBlur::FEGaussianBlur):
1764         (WebCore::FEGaussianBlur::create):
1765         (WebCore::FEGaussianBlur::apply):
1766         (WebCore::FEGaussianBlur::externalRepresentation):
1767         * platform/graphics/filters/FEGaussianBlur.h:
1768         * platform/graphics/filters/Filter.h:
1769         (WebCore::Filter::determineFilterPrimitiveSubregion): Renamed from calculateEffectSubRegion to match name scheme.
1770         * platform/graphics/filters/FilterEffect.cpp:
1771         (WebCore::FilterEffect::FilterEffect):
1772         (WebCore::FilterEffect::determineFilterPrimitiveSubregion): The main place for subregion calculation.
1773         (WebCore::FilterEffect::calculateDrawingIntRect): Takes repaintRectInLocalCoordinates now.
1774         (WebCore::FilterEffect::calculateDrawingRect): ditto.
1775         (WebCore::FilterEffect::getEffectContext): Check if ImageBuffer was created.
1776         * platform/graphics/filters/FilterEffect.h: Changed names to match name scheme. Removed unnecessary member variables and functions.
1777             Seperate SVG specific member variables and functions. Will get removed in followup patches.
1778         (WebCore::FilterEffect::resultImage):
1779         (WebCore::FilterEffect::setEffectBuffer):
1780         (WebCore::FilterEffect::inputEffect):
1781         (WebCore::FilterEffect::inputEffects):
1782         (WebCore::FilterEffect::numberOfinputEffects):
1783         (WebCore::FilterEffect::isAlphaImage):
1784         (WebCore::FilterEffect::setIsAlphaImage):
1785         (WebCore::FilterEffect::repaintRectInLocalCoordinates):
1786         (WebCore::FilterEffect::setRepaintRectInLocalCoordinates):
1787         (WebCore::FilterEffect::isSourceInput):
1788         (WebCore::FilterEffect::hasX):
1789         (WebCore::FilterEffect::setHasX):
1790         (WebCore::FilterEffect::hasY):
1791         (WebCore::FilterEffect::setHasY):
1792         (WebCore::FilterEffect::hasWidth):
1793         (WebCore::FilterEffect::setHasWidth):
1794         (WebCore::FilterEffect::hasHeight):
1795         (WebCore::FilterEffect::setHasHeight):
1796         (WebCore::FilterEffect::filterPrimitiveSubregion):
1797         (WebCore::FilterEffect::setFilterPrimitiveSubregion):
1798         (WebCore::FilterEffect::effectBoundaries):
1799         (WebCore::FilterEffect::setEffectBoundaries):
1800         * platform/graphics/filters/SourceAlpha.cpp:
1801         (WebCore::SourceAlpha::determineFilterPrimitiveSubregion): Renamed to match name scheme.
1802         * platform/graphics/filters/SourceAlpha.h:
1803         (WebCore::SourceAlpha::isSourceInput):
1804         * platform/graphics/filters/SourceGraphic.cpp:
1805         (WebCore::SourceGraphic::determineFilterPrimitiveSubregion): Ditto.
1806         * platform/graphics/filters/SourceGraphic.h:
1807         (WebCore::SourceGraphic::isSourceInput):
1808         * rendering/RenderSVGResourceFilter.cpp: Adapt to renames in FilterEffect.
1809         (WebCore::RenderSVGResourceFilter::applyResource):
1810         (WebCore::RenderSVGResourceFilter::postApplyResource):
1811         * svg/SVGFEBlendElement.cpp: Constructor of FEBlend doesn't take input effects. Adding them afterwards.
1812         (WebCore::SVGFEBlendElement::build):
1813         * svg/SVGFEColorMatrixElement.cpp: Ditto.
1814         (WebCore::SVGFEColorMatrixElement::build):
1815         * svg/SVGFEComponentTransferElement.cpp: Ditto.
1816         (WebCore::SVGFEComponentTransferElement::build):
1817         * svg/SVGFECompositeElement.cpp: Ditto.
1818         (WebCore::SVGFECompositeElement::build):
1819         * svg/SVGFEConvolveMatrixElement.cpp: Ditto.
1820         (WebCore::SVGFEConvolveMatrixElement::build):
1821         * svg/SVGFEDiffuseLightingElement.cpp: Ditto.
1822         (WebCore::SVGFEDiffuseLightingElement::build):
1823         * svg/SVGFEDisplacementMapElement.cpp: Ditto.
1824         (WebCore::SVGFEDisplacementMapElement::build):
1825         * svg/SVGFEGaussianBlurElement.cpp: Ditto.
1826         (WebCore::SVGFEGaussianBlurElement::build):
1827         * svg/SVGFEMergeElement.cpp: Ditto.
1828         (WebCore::SVGFEMergeElement::build):
1829         * svg/SVGFEMorphologyElement.cpp: Ditto.
1830         (WebCore::SVGFEMorphologyElement::build):
1831         * svg/SVGFEOffsetElement.cpp: Ditto.
1832         (WebCore::SVGFEOffsetElement::build):
1833         * svg/SVGFESpecularLightingElement.cpp: Ditto.
1834         (WebCore::SVGFESpecularLightingElement::build):
1835         * svg/SVGFETileElement.cpp: Ditto.
1836         (WebCore::SVGFETileElement::build):
1837         * svg/graphics/filters/SVGFEConvolveMatrix.cpp: Ditto.
1838         (WebCore::FEConvolveMatrix::FEConvolveMatrix):
1839         (WebCore::FEConvolveMatrix::create):
1840         (WebCore::FEConvolveMatrix::apply):
1841         (WebCore::FEConvolveMatrix::externalRepresentation):
1842         * svg/graphics/filters/SVGFEConvolveMatrix.h:
1843         * svg/graphics/filters/SVGFEDiffuseLighting.cpp: Ditto.
1844         (WebCore::FEDiffuseLighting::FEDiffuseLighting):
1845         (WebCore::FEDiffuseLighting::create):
1846         (WebCore::FEDiffuseLighting::externalRepresentation):
1847         * svg/graphics/filters/SVGFEDiffuseLighting.h:
1848         * svg/graphics/filters/SVGFEDisplacementMap.cpp: Ditto.
1849         (WebCore::FEDisplacementMap::FEDisplacementMap):
1850         (WebCore::FEDisplacementMap::create):
1851         (WebCore::FEDisplacementMap::apply):
1852         (WebCore::FEDisplacementMap::externalRepresentation):
1853         * svg/graphics/filters/SVGFEDisplacementMap.h:
1854         * svg/graphics/filters/SVGFEFlood.cpp: Ditto.
1855         (WebCore::FEFlood::apply):
1856         * svg/graphics/filters/SVGFEImage.cpp: Ditto.
1857         (WebCore::FEImage::apply):
1858         * svg/graphics/filters/SVGFELighting.cpp: Ditto.
1859         (WebCore::FELighting::FELighting):
1860         (WebCore::FELighting::apply):
1861         * svg/graphics/filters/SVGFELighting.h:
1862         * svg/graphics/filters/SVGFEMerge.cpp: Ditto.
1863         (WebCore::FEMerge::FEMerge):
1864         (WebCore::FEMerge::create):
1865         (WebCore::FEMerge::apply):
1866         (WebCore::FEMerge::externalRepresentation):
1867         * svg/graphics/filters/SVGFEMerge.h:
1868         * svg/graphics/filters/SVGFEMorphology.cpp: Ditto.
1869         (WebCore::FEMorphology::FEMorphology):
1870         (WebCore::FEMorphology::create):
1871         (WebCore::FEMorphology::apply):
1872         (WebCore::FEMorphology::externalRepresentation):
1873         * svg/graphics/filters/SVGFEMorphology.h:
1874         * svg/graphics/filters/SVGFEOffset.cpp: Ditto.
1875         (WebCore::FEOffset::FEOffset):
1876         (WebCore::FEOffset::create):
1877         (WebCore::FEOffset::apply):
1878         (WebCore::FEOffset::externalRepresentation):
1879         * svg/graphics/filters/SVGFEOffset.h:
1880         * svg/graphics/filters/SVGFESpecularLighting.cpp: Ditto.
1881         (WebCore::FESpecularLighting::FESpecularLighting):
1882         (WebCore::FESpecularLighting::create):
1883         (WebCore::FESpecularLighting::externalRepresentation):
1884         * svg/graphics/filters/SVGFESpecularLighting.h:
1885         * svg/graphics/filters/SVGFETile.cpp: Ditto.
1886         (WebCore::FETile::FETile):
1887         (WebCore::FETile::create):
1888         (WebCore::FETile::determineFilterPrimitiveSubregion): Renamed to match name scheme.
1889         (WebCore::FETile::apply):
1890         (WebCore::FETile::externalRepresentation):
1891         * svg/graphics/filters/SVGFETile.h:
1892         * svg/graphics/filters/SVGFilter.cpp: Renamed itemBox to targetBoundingBox to match name scheme.
1893         (WebCore::SVGFilter::SVGFilter):
1894         (WebCore::SVGFilter::determineFilterPrimitiveSubregion): Renamed to match name scheme.
1895         (WebCore::SVGFilter::create):
1896         * svg/graphics/filters/SVGFilter.h:
1897         (WebCore::SVGFilter::sourceImageRect):
1898
1899 2010-09-20  Pavel Podivilov  <podivilov@chromium.org>
1900
1901         Reviewed by Pavel Feldman.
1902
1903         Web Inspector: highlight DOM node when hover on link element or DOM breakpoint
1904         https://bugs.webkit.org/show_bug.cgi?id=45897
1905
1906         * inspector/front-end/BreakpointsSidebarPane.js:
1907         (WebInspector.BreakpointItem):
1908         (WebInspector.JSBreakpointItem):
1909         (WebInspector.DOMBreakpointItem):
1910         (WebInspector.DOMBreakpointItem.prototype.compareTo):
1911         (WebInspector.DOMBreakpointItem.prototype._breakpointClicked):
1912         * inspector/front-end/ElementsPanel.js:
1913         (WebInspector.ElementsPanel.prototype.hide):
1914         (WebInspector.ElementsPanel.prototype.reset):
1915         (WebInspector.ElementsPanel.prototype.setDocument.selectNode):
1916         (WebInspector.ElementsPanel.prototype._mouseMovedInCrumbs):
1917         (WebInspector.ElementsPanel.prototype._mouseMovedOutOfCrumbs):
1918         (WebInspector.ElementsPanel.prototype.linkifyNodeReference):
1919         * inspector/front-end/ElementsTreeOutline.js:
1920         (WebInspector.ElementsTreeOutline.prototype.set focusedDOMNode):
1921         (WebInspector.ElementsTreeOutline.prototype._onmousemove):
1922         (WebInspector.ElementsTreeOutline.prototype._onmouseout):
1923         * inspector/front-end/inspector.js:
1924         (WebInspector.highlightDOMNode):
1925         (WebInspector.highlightDOMNodeForTwoSeconds):
1926         (WebInspector.wireElementWithDOMNode):
1927         (WebInspector._updateFocusedNode):
1928         (WebInspector.reset):
1929         (WebInspector.updateFocusedNode):
1930
1931 2010-09-19  Sheriff Bot  <webkit.review.bot@gmail.com>
1932
1933         Unreviewed, rolling out r67749.
1934         http://trac.webkit.org/changeset/67749
1935         https://bugs.webkit.org/show_bug.cgi?id=46068
1936
1937         breaking ToT chromium canary build (Requested by shans on
1938         #webkit).
1939
1940         * bindings/v8/V8DOMWindowShell.cpp:
1941         (WebCore::V8DOMWindowShell::createNewContext):
1942         * bindings/v8/V8Proxy.cpp:
1943         (WebCore::V8Proxy::registeredExtensionWithV8):
1944         (WebCore::V8Proxy::registerExtension):
1945         * bindings/v8/V8Proxy.h:
1946         * loader/EmptyClients.h:
1947         * loader/FrameLoaderClient.h:
1948
1949 2010-09-19  Gavin Barraclough  <barraclough@apple.com>
1950
1951         Reviewed by Oliver Hunt.
1952
1953         Bug 46065 - Unify implementation of ToInt32 and ToUInt32, don't use fmod.
1954
1955         These methods implement the same conversion (see discussion in the notes
1956         of sections of 9.5 and 9.6 of the spec), only differing in how the result
1957         is interpretted.
1958
1959         Removing JSValue::toInt32 (since this has weird, non-spec function).
1960         A couple of places in the binding are using this method, so adding
1961         finiteInt32Value to the bindings to maintain current behaviour.
1962
1963         Test: fast/js/toInt32UInt32.html
1964
1965         * bindings/js/JSDOMBinding.h:
1966         (WebCore::finiteInt32Value):
1967         * bindings/js/JSHTMLOptionsCollectionCustom.cpp:
1968         (WebCore::JSHTMLOptionsCollection::add):
1969         * bindings/js/JSSQLResultSetRowListCustom.cpp:
1970         (WebCore::JSSQLResultSetRowList::item):
1971         * bindings/js/JSSVGPODListCustom.h:
1972         (WebCore::JSSVGPODListCustom::getItem):
1973         (WebCore::JSSVGPODListCustom::insertItemBefore):
1974         (WebCore::JSSVGPODListCustom::replaceItem):
1975         (WebCore::JSSVGPODListCustom::removeItem):
1976         * bindings/js/JSSVGPathSegListCustom.cpp:
1977         (WebCore::JSSVGPathSegList::getItem):
1978         (WebCore::JSSVGPathSegList::insertItemBefore):
1979         (WebCore::JSSVGPathSegList::replaceItem):
1980         (WebCore::JSSVGPathSegList::removeItem):
1981
1982 2010-09-19  Andreas Kling  <andreas.kling@nokia.com>
1983
1984         Reviewed by Kenneth Rohde Christiansen.
1985
1986         [Qt] clipBoundingRect() should return rect relevant to current layer
1987         https://bugs.webkit.org/show_bug.cgi?id=46059
1988
1989         r65791 inadvertently changed clipBoundingRect() to always use the GC painter
1990         without checking the TransparencyLayer stack first.
1991
1992         * platform/graphics/qt/GraphicsContextQt.cpp:
1993         (WebCore::GraphicsContextPlatformPrivate::p):
1994         (WebCore::GraphicsContextPlatformPrivate::clipBoundingRect):
1995
1996 2010-09-19  Sam Weinig  <sam@webkit.org>
1997
1998         Reviewed by Anders Carlsson.
1999
2000         Replace WKBundleRangeRef with WKBundleRangeHandleRef.
2001         https://bugs.webkit.org/show_bug.cgi?id=46054
2002
2003         * WebCore.exp.in:
2004         * WebCore.xcodeproj/project.pbxproj:
2005
2006 2010-09-19  Patrick Gansterer  <paroga@paroga.com>
2007
2008         Unreviewed.
2009
2010         [WINCE] Buildfix for Gradient after r67801.
2011
2012         * platform/graphics/Gradient.h:
2013         * platform/graphics/wince/GradientWinCE.cpp:
2014         (WebCore::Gradient::getStops):
2015
2016 2010-09-19  Kent Tamura  <tkent@chromium.org>
2017
2018         Reviewed by Dimitri Glazkov.
2019
2020         [Chromium] Add is<input type>() functions to WebInputElement
2021         https://bugs.webkit.org/show_bug.cgi?id=46035
2022
2023         * html/HTMLInputElement.h:
2024         (WebCore::HTMLInputElement::isText): Added. It is used by WebKit/chromium.
2025
2026 2010-09-18  Andreas Kling  <andreas.kling@nokia.com>
2027
2028         Reviewed by Antonio Gomes.
2029
2030         [Qt] Path: Remove unused member variable
2031         https://bugs.webkit.org/show_bug.cgi?id=46048
2032
2033         Path::m_lastMoveToIndex is not used for anything, so remove it.
2034
2035         * platform/graphics/Path.h:
2036         * platform/graphics/qt/PathQt.cpp:
2037         (WebCore::Path::Path):
2038         (WebCore::Path::operator=):
2039         (WebCore::Path::moveTo):
2040
2041 2010-09-18  Patrick Gansterer  <paroga@paroga.com>
2042
2043         Reviewed by Darin Adler.
2044
2045         Use AtomicString insted of String in XMLDocumentParser
2046         https://bugs.webkit.org/show_bug.cgi?id=45990
2047
2048         Create AtomicString as early as possible.
2049         This can avoid unnecessary memcpy of String content.
2050
2051         * dom/XMLDocumentParser.h:
2052         * dom/XMLDocumentParserLibxml2.cpp:
2053         (WebCore::toAtomicString):
2054         (WebCore::handleElementNamespaces):
2055         (WebCore::handleElementAttributes):
2056         (WebCore::XMLDocumentParser::startElementNs):
2057
2058 2010-09-18  Erik Arvidsson  <arv@chromium.org>
2059
2060         Reviewed by Nate Chapin.
2061
2062         [Chromium] fast/dom/dataset-gc.html is failing
2063         https://bugs.webkit.org/show_bug.cgi?id=45426
2064
2065         * bindings/scripts/CodeGeneratorV8.pm:
2066         * bindings/v8/custom/V8DOMStringMapCustom.cpp:
2067         (WebCore::toV8):
2068         * dom/DOMStringMap.h:
2069         * dom/DatasetDOMStringMap.h:
2070         (WebCore::DatasetDOMStringMap::element):
2071
2072 2010-09-18  Andreas Kling  <andreas.kling@nokia.com>
2073
2074         Reviewed by Oliver Hunt.
2075
2076         Gradient: Fast-path for the ideal case in sortStopsIfNecessary()
2077         https://bugs.webkit.org/show_bug.cgi?id=46045
2078
2079         Avoid calling std::stable_sort for 2-stop gradients that are already in order.
2080
2081         * platform/graphics/Gradient.cpp:
2082         (WebCore::Gradient::sortStopsIfNecessary):
2083
2084 2010-09-18  Kwang Yul Seo  <skyul@company100.net>
2085
2086         Reviewed by Andreas Kling.
2087
2088         [BREWMP] Fix a typo in key code name
2089         https://bugs.webkit.org/show_bug.cgi?id=46003
2090
2091         AVK_CLR is the right Brew MP key code name for VK_BACK.
2092
2093         * platform/brew/PlatformKeyboardEventBrew.cpp:
2094         (WebCore::windowsKeyCodeForKeyEvent):
2095
2096 2010-09-18  Andreas Kling  <andreas.kling@nokia.com>
2097
2098         Reviewed by Oliver Hunt.
2099
2100         Gradient: Pre-reserve space for 2 color stops
2101         https://bugs.webkit.org/show_bug.cgi?id=46044
2102
2103         Most gradients have only 2 color stops, pre-reserve space for these in m_stops
2104         to avoid growing the vector dynamically in the common case.
2105
2106         * platform/graphics/Gradient.h:
2107
2108 2010-09-18  Dimitri Glazkov  <dglazkov@chromium.org>
2109
2110         Unreviewed, rolling out r67792.
2111         http://trac.webkit.org/changeset/67792
2112         https://bugs.webkit.org/show_bug.cgi?id=45976
2113
2114         Broke over a hundred SVG tests.
2115
2116         * platform/graphics/GraphicsContext.cpp:
2117         (WebCore::GraphicsContext::drawImage):
2118         (WebCore::GraphicsContext::drawImageBuffer):
2119         * platform/graphics/GraphicsContext.h:
2120
2121 2010-09-18  Mihai Parparita  <mihaip@chromium.org>
2122
2123         Reviewed by Simon Fraser.
2124
2125         webkitAnimationEnd event doesn't fire when skipping over final iteration
2126         https://bugs.webkit.org/show_bug.cgi?id=46010
2127         
2128         It's possible for AnimationBase::fireAnimationEventsIfNeeded to decide
2129         that the animation is ended while we're in the looping state, if the
2130         animation timer never fires during an iteration. That then fails the
2131         assert in AnimationBase::updateStateMachine (we don't expect
2132         AnimationStateInputEndTimerFired while in the looping state). Jump the
2133         state to AnimationStateEnding, which is more accurate.
2134
2135         Test: animations/animation-end-event-short-iterations.html
2136
2137         * page/animation/AnimationBase.cpp:
2138         (WebCore::AnimationBase::fireAnimationEventsIfNeeded):
2139
2140 2010-09-18  Kwang Yul Seo  <skyul@company100.net>
2141
2142         Reviewed by Andreas Kling.
2143
2144         [BREWMP] Wrong key code type in keyIdentifierForBrewKeyCode
2145         https://bugs.webkit.org/show_bug.cgi?id=46005
2146
2147         The type of key code in Brew MP is uint16. Take uint16 instead of int16 in keyIdentifierForBrewKeyCode.
2148
2149         * platform/brew/PlatformKeyboardEventBrew.cpp:
2150         (WebCore::keyIdentifierForBrewKeyCode):
2151
2152 2010-09-18  Matthew Delaney  <mdelaney@apple.com>
2153
2154         Reviewed by Oliver Hunt.
2155
2156         Canvas drawImage with source or destination widths/heights of -1 renders incorrectly.
2157         https://bugs.webkit.org/show_bug.cgi?id=45976
2158
2159         Specifying a -1 width or height for either the source or destination rectangle in drawImage
2160         get improperly drawn with -1 replaced as the corresponding image width or height. This was because
2161         the value -1 was being passed around to signal non-specified widths and heights and thus was
2162         interpreted lower down in the drawImage implementation which disallowed any calls that actually
2163         wanted to use -1 as the widths or heights. Fixed this by moving the default logic up and not using
2164         -1 in-band signaling to denote default behavior.
2165
2166         Tests: canvas/philip/tests/2d.drawImage.negativeOneDest.html
2167                canvas/philip/tests/2d.drawImage.negativeOneSource.html
2168
2169         * platform/graphics/GraphicsContext.cpp: Removed -1 in-band signals and replaced cascased calls to have
2170         the desired replaces for unspecified widths and heights earlier on.
2171         * platform/graphics/GraphicsContext.h: Removed faulty default value.
2172
2173 2010-09-18  Ademar de Souza Reis Jr  <ademar.reis@openbossa.org>
2174
2175         Reviewed by Kenneth Rohde Christiansen.
2176
2177         Enable Platform Strategies on Qt
2178
2179         [Qt] Turn on PLATFORM_STRATEGIES
2180         https://bugs.webkit.org/show_bug.cgi?id=45831
2181
2182         * WebCore.pro: Adding/removing implementation files
2183         * platform/qt/Language.cpp: Added, WebCore::defaultLanguage() was
2184         moved from platform/qt/Localizations.cpp
2185         (WebCore::defaultLanguage): Moved from Localizations.cpp
2186         * platform/qt/Localizations.cpp: Removed (code is now inside
2187         WebCoreSupport/WebPlatformStrategies.cpp)
2188         * plugins/qt/PluginDataQt.cpp: Removed (idem)
2189
2190 2010-09-18  Patrick Gansterer  <paroga@paroga.com>
2191
2192         Reviewed by Darin Adler.
2193
2194         Rename Wince files to WinCE
2195         https://bugs.webkit.org/show_bug.cgi?id=37287
2196
2197         * loader/icon/wince/IconDatabaseWinCE.cpp: Copied from WebCore/loader/icon/wince/IconDatabaseWince.cpp.
2198         * loader/icon/wince/IconDatabaseWince.cpp: Removed.
2199         * page/wince/FrameWinCE.cpp: Copied from WebCore/page/wince/FrameWince.cpp.
2200         * page/wince/FrameWince.cpp: Removed.
2201         * platform/graphics/MediaPlayer.cpp:
2202         * platform/graphics/wince/ColorWinCE.cpp: Copied from WebCore/platform/graphics/wince/ColorWince.cpp.
2203         * platform/graphics/wince/ColorWince.cpp: Removed.
2204         * platform/graphics/wince/FontCacheWinCE.cpp: Copied from WebCore/platform/graphics/wince/FontCacheWince.cpp.
2205         * platform/graphics/wince/FontCacheWince.cpp: Removed.
2206         * platform/graphics/wince/FontWinCE.cpp: Copied from WebCore/platform/graphics/wince/FontWince.cpp.
2207         * platform/graphics/wince/FontWince.cpp: Removed.
2208         * platform/graphics/wince/GlyphPageTreeNodeWinCE.cpp: Copied from WebCore/platform/graphics/wince/GlyphPageTreeNodeWince.cpp.
2209         * platform/graphics/wince/GlyphPageTreeNodeWince.cpp: Removed.
2210         * platform/graphics/wince/GradientWinCE.cpp: Copied from WebCore/platform/graphics/wince/GradientWince.cpp.
2211         * platform/graphics/wince/GradientWince.cpp: Removed.
2212         * platform/graphics/wince/GraphicsContextWinCE.cpp: Copied from WebCore/platform/graphics/wince/GraphicsContextWince.cpp.
2213         * platform/graphics/wince/GraphicsContextWince.cpp: Removed.
2214         * platform/graphics/wince/ImageBufferWinCE.cpp: Copied from WebCore/platform/graphics/wince/ImageBufferWince.cpp.
2215         * platform/graphics/wince/ImageBufferWince.cpp: Removed.
2216         * platform/graphics/wince/MediaPlayerPrivateWinCE.h: Copied from WebCore/platform/graphics/wince/MediaPlayerPrivateWince.h.
2217         * platform/graphics/wince/MediaPlayerPrivateWince.h: Removed.
2218         * platform/graphics/wince/PathWinCE.cpp: Copied from WebCore/platform/graphics/wince/PathWince.cpp.
2219         * platform/graphics/wince/PathWince.cpp: Removed.
2220         * platform/graphics/wince/PlatformPathWinCE.cpp: Copied from WebCore/platform/graphics/wince/PlatformPathWince.cpp.
2221         * platform/graphics/wince/PlatformPathWinCE.h: Copied from WebCore/platform/graphics/wince/PlatformPathWince.h.
2222         * platform/graphics/wince/PlatformPathWince.cpp: Removed.
2223         * platform/graphics/wince/PlatformPathWince.h: Removed.
2224         * platform/graphics/wince/SimpleFontDataWinCE.cpp: Copied from WebCore/platform/graphics/wince/SimpleFontDataWince.cpp.
2225         * platform/graphics/wince/SimpleFontDataWince.cpp: Removed.
2226         * platform/graphics/wince/WinCEGraphicsExtras.h: Copied from WebCore/platform/graphics/wince/WinceGraphicsExtras.h.
2227         * platform/graphics/wince/WinceGraphicsExtras.h: Removed.
2228         * platform/text/wince/TextBoundariesWinCE.cpp: Copied from WebCore/platform/text/wince/TextBoundariesWince.cpp.
2229         * platform/text/wince/TextBoundariesWince.cpp: Removed.
2230         * platform/text/wince/TextBreakIteratorWinCE.cpp: Copied from WebCore/platform/text/wince/TextBreakIteratorWince.cpp.
2231         * platform/text/wince/TextBreakIteratorWince.cpp: Removed.
2232         * platform/wince/CursorWinCE.cpp: Copied from WebCore/platform/wince/CursorWince.cpp.
2233         * platform/wince/CursorWince.cpp: Removed.
2234         * platform/wince/DragDataWinCE.cpp: Copied from WebCore/platform/wince/DragDataWince.cpp.
2235         * platform/wince/DragDataWince.cpp: Removed.
2236         * platform/wince/DragImageWinCE.cpp: Copied from WebCore/platform/wince/DragImageWince.cpp.
2237         * platform/wince/DragImageWince.cpp: Removed.
2238         * platform/wince/EditorWinCE.cpp: Copied from WebCore/platform/wince/EditorWince.cpp.
2239         (WebCore::Editor::newGeneralClipboard):
2240         * platform/wince/EditorWince.cpp: Removed.
2241         * platform/wince/FileChooserWinCE.cpp: Copied from WebCore/platform/wince/FileChooserWince.cpp.
2242         * platform/wince/FileChooserWince.cpp: Removed.
2243         * platform/wince/FileSystemWinCE.cpp: Copied from WebCore/platform/wince/FileSystemWince.cpp.
2244         * platform/wince/FileSystemWince.cpp: Removed.
2245         * platform/wince/KURLWinCE.cpp: Copied from WebCore/platform/wince/KURLWince.cpp.
2246         * platform/wince/KURLWince.cpp: Removed.
2247         * platform/wince/KeygenWinCE.cpp: Copied from WebCore/platform/wince/KeygenWince.cpp.
2248         * platform/wince/KeygenWince.cpp: Removed.
2249         * platform/wince/MIMETypeRegistryWinCE.cpp: Copied from WebCore/platform/wince/MIMETypeRegistryWince.cpp.
2250         * platform/wince/MIMETypeRegistryWince.cpp: Removed.
2251         * platform/wince/PasteboardWinCE.cpp: Copied from WebCore/platform/wince/PasteboardWince.cpp.
2252         * platform/wince/PasteboardWince.cpp: Removed.
2253         * platform/wince/SearchPopupMenuWinCE.cpp: Copied from WebCore/platform/wince/SearchPopupMenuWince.cpp.
2254         * platform/wince/SearchPopupMenuWince.cpp: Removed.
2255         * platform/wince/SharedTimerWinCE.cpp: Copied from WebCore/platform/wince/SharedTimerWince.cpp.
2256         * platform/wince/SharedTimerWince.cpp: Removed.
2257         * rendering/RenderThemeWinCE.cpp: Copied from WebCore/rendering/RenderThemeWince.cpp.
2258         (WebCore::RenderThemeWinCE::create):
2259         (WebCore::RenderTheme::themeForPage):
2260         (WebCore::RenderThemeWinCE::RenderThemeWinCE):
2261         (WebCore::RenderThemeWinCE::~RenderThemeWinCE):
2262         (WebCore::RenderThemeWinCE::platformActiveSelectionBackgroundColor):
2263         (WebCore::RenderThemeWinCE::platformInactiveSelectionBackgroundColor):
2264         (WebCore::RenderThemeWinCE::platformActiveSelectionForegroundColor):
2265         (WebCore::RenderThemeWinCE::platformInactiveSelectionForegroundColor):
2266         (WebCore::RenderThemeWinCE::supportsFocus):
2267         (WebCore::RenderThemeWinCE::supportsFocusRing):
2268         (WebCore::RenderThemeWinCE::determineClassicState):
2269         (WebCore::RenderThemeWinCE::getThemeData):
2270         (WebCore::RenderThemeWinCE::paintButton):
2271         (WebCore::RenderThemeWinCE::setCheckboxSize):
2272         (WebCore::RenderThemeWinCE::paintTextField):
2273         (WebCore::RenderThemeWinCE::adjustMenuListStyle):
2274         (WebCore::RenderThemeWinCE::paintMenuList):
2275         (WebCore::RenderThemeWinCE::paintMenuListButton):
2276         (WebCore::RenderThemeWinCE::systemFont):
2277         (WebCore::RenderThemeWinCE::themeChanged):
2278         (WebCore::RenderThemeWinCE::extraDefaultStyleSheet):
2279         (WebCore::RenderThemeWinCE::extraQuirksStyleSheet):
2280         (WebCore::RenderThemeWinCE::supportsHover):
2281         (WebCore::RenderThemeWinCE::systemColor):
2282         (WebCore::RenderThemeWinCE::adjustSliderThumbSize):
2283         (WebCore::RenderThemeWinCE::adjustButtonInnerStyle):
2284         (WebCore::RenderThemeWinCE::adjustSearchFieldStyle):
2285         (WebCore::RenderThemeWinCE::paintSearchField):
2286         (WebCore::RenderThemeWinCE::paintSearchFieldCancelButton):
2287         (WebCore::RenderThemeWinCE::adjustSearchFieldCancelButtonStyle):
2288         (WebCore::RenderThemeWinCE::adjustSearchFieldDecorationStyle):
2289         (WebCore::RenderThemeWinCE::adjustSearchFieldResultsDecorationStyle):
2290         (WebCore::RenderThemeWinCE::paintSearchFieldResultsDecoration):
2291         (WebCore::RenderThemeWinCE::adjustSearchFieldResultsButtonStyle):
2292         (WebCore::RenderThemeWinCE::paintSearchFieldResultsButton):
2293         (WebCore::RenderThemeWinCE::adjustMenuListButtonStyle):
2294         (WebCore::RenderThemeWinCE::paintSliderTrack):
2295         (WebCore::RenderThemeWinCE::paintSliderThumb):
2296         (WebCore::RenderThemeWinCE::paintMediaFullscreenButton):
2297         (WebCore::RenderThemeWinCE::paintMediaMuteButton):
2298         (WebCore::RenderThemeWinCE::paintMediaPlayButton):
2299         (WebCore::RenderThemeWinCE::paintMediaSeekBackButton):
2300         (WebCore::RenderThemeWinCE::paintMediaSeekForwardButton):
2301         (WebCore::RenderThemeWinCE::paintMediaSliderTrack):
2302         (WebCore::RenderThemeWinCE::paintMediaSliderThumb):
2303         * rendering/RenderThemeWinCE.h: Copied from WebCore/rendering/RenderThemeWince.h.
2304         * rendering/RenderThemeWince.cpp: Removed.
2305         * rendering/RenderThemeWince.h: Removed.
2306         * storage/wince/DatabaseThreadWinCE.cpp: Copied from WebCore/storage/wince/DatabaseThreadWince.cpp.
2307         * storage/wince/DatabaseThreadWinCE.h: Copied from WebCore/storage/wince/DatabaseThreadWince.h.
2308         * storage/wince/DatabaseThreadWince.cpp: Removed.
2309         * storage/wince/DatabaseThreadWince.h: Removed.
2310         * storage/wince/LocalStorageThreadWinCE.cpp: Copied from WebCore/storage/wince/LocalStorageThreadWince.cpp.
2311         * storage/wince/LocalStorageThreadWinCE.h: Copied from WebCore/storage/wince/LocalStorageThreadWince.h.
2312         * storage/wince/LocalStorageThreadWince.cpp: Removed.
2313         * storage/wince/LocalStorageThreadWince.h: Removed.
2314
2315 2010-09-18  Patrick Gansterer  <paroga@paroga.com>
2316
2317         Reviewed by Eric Seidel.
2318
2319         Move Plugin*None.cpp from CMakeLists.txt into CMakeListsEfl.txt
2320         https://bugs.webkit.org/show_bug.cgi?id=45900
2321
2322         PluginDataNone.cpp and PluginViewNone.cpp are not used by all port.
2323         Move them into plaform sepcific build system.
2324
2325         * CMakeLists.txt:
2326         * CMakeListsEfl.txt:
2327
2328 2010-09-18  Andreas Kling  <andreas.kling@nokia.com>
2329
2330         Reviewed by Simon Hausmann.
2331
2332         [Qt] Don't copy clip path to TransparencyLayer
2333         https://bugs.webkit.org/show_bug.cgi?id=45965
2334
2335         We don't need to copy the GC's clip path to the TransparencyLayer since it will
2336         clip anyway when ending the layer.
2337
2338         * platform/graphics/qt/TransparencyLayer.h:
2339         (WebCore::TransparencyLayer::TransparencyLayer):
2340
2341 2010-09-18  Patrick Gansterer  <paroga@paroga.com>
2342
2343         Unreviewed.
2344
2345         [WINCE] Buildfix for FrameWince.cpp after r51353, r67762 and r67771.
2346
2347         * page/wince/FrameWince.cpp:
2348         (WebCore::computePageRectsForFrame):
2349         (WebCore::imageFromSelection):
2350
2351 2010-09-18  Kent Tamura  <tkent@chromium.org>
2352
2353         Unreviewed, a trivial change.
2354
2355         Run sort-Xcode-project-file.
2356
2357         * WebCore.xcodeproj/project.pbxproj:
2358
2359 2010-09-18  Dan Bernstein  <mitz@apple.com>
2360
2361         Reviewed by Eric Seidel.
2362
2363         REGRESSION (r67762): Over 160 layout tests failing due to incorrect zoom factors in subframes
2364         https://bugs.webkit.org/show_bug.cgi?id=46031
2365
2366         * page/Frame.cpp:
2367         (WebCore::parentPageZoomFactor): Return the zoom factor of the parent frame.
2368         (WebCore::parentTextZoomFactor): Ditto.
2369
2370 2010-09-17  Sam Weinig  <sam@webkit.org>
2371
2372         Reviewed by Jon Honeycutt.
2373
2374         Need a way to load data (as plain text) in a WKPage
2375         <rdar://problem/8424239>
2376
2377         * WebCore.exp.in:
2378
2379 2010-09-17  David Hyatt  <hyatt@apple.com>
2380
2381         Reviewed by Sam Weinig.
2382
2383         https://bugs.webkit.org/show_bug.cgi?id=46027, image on gamespot.com paginates without bringing its enclosing border along.
2384         
2385         Make sure that unsplittable objects like replaced elements propagate their pagination strut outward to the parent block
2386         when appropriate.  An image on a line did this, but a block-level image did not.
2387
2388         Added fast/multicol/image-inside-nested-blocks-with-border.html
2389
2390         * rendering/RenderBlock.cpp:
2391         (WebCore::RenderBlock::layoutBlockChild):
2392
2393 2010-09-17  Dimitri Glazkov  <dglazkov@chromium.org>
2394
2395         Unreviewed, build fix.
2396
2397         Move calls from frameView->pageZoomFactor() to frame->pageZoomFactor().
2398
2399         * page/EventHandler.cpp:
2400         (WebCore::EventHandler::handleTouchEvent): Removed a helper function,
2401             added direct calls to frame->pageZoomFactor().
2402
2403 2010-09-17  David Hyatt  <hyatt@apple.com>
2404
2405         Reviewed by Simon Fraser.
2406
2407         https://bugs.webkit.org/show_bug.cgi?id=45993, convert printing to the new pagination model.
2408
2409         Make printing store the page height in the RenderView and push that into the layout state to
2410         use the new pagination model.  The old pagination model is retained because it is still used
2411         for embedded WebViews.
2412
2413         * page/FrameView.cpp:
2414         (WebCore::FrameView::reset):
2415         (WebCore::FrameView::layout):
2416         (WebCore::FrameView::forceLayout):
2417         (WebCore::FrameView::forceLayoutForPagination):
2418         (WebCore::FrameView::adjustPageHeight):
2419         * page/FrameView.h:
2420         * page/PrintContext.cpp:
2421         (WebCore::PrintContext::computePageRectsWithPageSizeInternal):
2422         * rendering/RenderBlock.cpp:
2423         (WebCore::RenderBlock::paintChildren):
2424         * rendering/RenderBox.cpp:
2425         (WebCore::RenderBox::calcHeight):
2426         * rendering/RenderImage.cpp:
2427         (WebCore::RenderImage::paintReplaced):
2428         * rendering/RenderLineBoxList.cpp:
2429         (WebCore::RenderLineBoxList::paint):
2430         * rendering/RenderVideo.cpp:
2431         (WebCore::RenderVideo::paintReplaced):
2432         * rendering/RenderView.cpp:
2433         (WebCore::RenderView::RenderView):
2434         (WebCore::RenderView::layout):
2435         (WebCore::RenderView::paint):
2436         (WebCore::RenderView::setBestTruncatedAt):
2437         * rendering/RenderView.h:
2438         (WebCore::RenderView::popLayoutState):
2439         (WebCore::RenderView::pageHeight):
2440         (WebCore::RenderView::setPageHeight):
2441         (WebCore::RenderView::bestTruncatedAt):
2442         (WebCore::RenderView::truncatedAt):
2443         (WebCore::RenderView::setTruncatedAt):
2444         (WebCore::RenderView::printRect):
2445         (WebCore::RenderView::setPrintRect):
2446         (WebCore::RenderView::pushLayoutState):
2447         (WebCore::LayoutStateMaintainer::LayoutStateMaintainer):
2448         (WebCore::LayoutStateMaintainer::push):
2449         (WebCore::LayoutStateMaintainer::pop):
2450
2451 2010-09-17  Dan Bernstein  <mitz@apple.com>
2452
2453         Reviewed by Simon Fraser.
2454
2455         Canvas sizing ignores intrinsic size
2456         https://bugs.webkit.org/show_bug.cgi?id=46024
2457
2458         Updated fast/replaced/table-percent-height.html
2459
2460         * rendering/RenderEmbeddedObject.cpp:
2461         (WebCore::RenderEmbeddedObject::RenderEmbeddedObject): If this is used as a proxy
2462         for <video>, behave like it has an intrinsic size (e.g. preserve aspect ratio when
2463         width is auto and height is specified).
2464         * rendering/RenderImage.cpp:
2465         (WebCore::RenderImage::calcAspectRatioWidth): Changed to explicitly invoke
2466         RenderBox::calcReplacedHeight(), now that RenderReplaced has its own implementation
2467         which we don’t want.
2468         (WebCore::RenderImage::calcAspectRatioHeight): Similarly with calcReplacedWidth().
2469         * rendering/RenderImage.h:
2470         * rendering/RenderReplaced.cpp:
2471         (WebCore::RenderReplaced::RenderReplaced): Initialize m_hasIntrinsicSize.
2472         (WebCore::lengthIsSpecified): Added this helper function, based on RenderImage’s
2473         is{Width,Height}Specified().
2474         (WebCore::RenderReplaced::calcReplacedWidth): Moved from RenderVideo all the way
2475         up here so other replaced objects could use this logic.
2476         (WebCore::RenderReplaced::calcReplacedHeight): Ditto.
2477         (WebCore::RenderReplaced::calcAspectRatioWidth): Ditto.
2478         (WebCore::RenderReplaced::calcAspectRatioHeight): Ditto.
2479         (WebCore::RenderReplaced::calcPrefWidths): Replaced with the RenderImage version
2480         of the logic.
2481         (WebCore::RenderReplaced::setIntrinsicSize): Added an assertion.
2482         * rendering/RenderReplaced.h:
2483         (WebCore::RenderReplaced::minimumReplacedHeight): Promoted from private to protected
2484         to allow RenderVideo to call through.
2485         (WebCore::RenderReplaced::setHasIntrinsicSize): Added this setter.
2486         * rendering/RenderVideo.cpp:
2487         (WebCore::RenderVideo::updateIntrinsicSize): Factor zoom into the intrinsic size,
2488         the way other RenderReplaced objects do.
2489         (WebCore::RenderVideo::calcReplacedWidth): Invoke the RenderReplaced implementation,
2490         which matches what used to be here, skipping over the RenderImage implementation.
2491         (WebCore::RenderVideo::calcReplacedHeight): Ditto.
2492         (WebCore::RenderVideo::minimumReplacedHeight): Ditto.
2493         * rendering/RenderVideo.h:
2494
2495 2010-09-17  Darin Adler  <darin@apple.com>
2496
2497         Build fix for platforms that compile Touch.
2498
2499         * dom/Touch.cpp:
2500         (WebCore::contentsX):
2501         (WebCore::contentsY):
2502         Get zoom factor from Frame rather than FrameView.
2503
2504 2010-09-17  Darin Adler  <darin@apple.com>
2505
2506         Reviewed by Sam Weinig.
2507
2508         REGRESSION (r60104): Zoom level is unexpectedly reset on page reload
2509         https://bugs.webkit.org/show_bug.cgi?id=42863
2510
2511         Moved zoom level back from FrameView to Frame.
2512         I had forgotten that FrameView's lifetime is much shorter than
2513         Frame's, and until that is fixed it's best to leave this on Frame.
2514
2515         * WebCore.exp.in: Updated.
2516
2517         * css/CSSStyleSelector.cpp:
2518         (WebCore::CSSStyleSelector::styleForDocument):
2519         (WebCore::CSSStyleSelector::applyProperty):
2520         (WebCore::CSSStyleSelector::getComputedSizeFromSpecifiedSize):
2521         * dom/Document.cpp:
2522         (WebCore::Document::nodesFromRect):
2523         (WebCore::Document::elementFromPoint):
2524         (WebCore::Document::caretRangeFromPoint):
2525         * dom/MouseRelatedEvent.cpp:
2526         (WebCore::contentsX):
2527         (WebCore::contentsY):
2528         (WebCore::pageZoomFactor):
2529         * dom/Node.cpp:
2530         (WebCore::Node::dispatchMouseEvent):
2531         (WebCore::Node::dispatchWheelEvent):
2532         * html/HTMLBodyElement.cpp:
2533         (WebCore::adjustForZoom):
2534         (WebCore::HTMLBodyElement::scrollLeft):
2535         (WebCore::HTMLBodyElement::setScrollLeft):
2536         (WebCore::HTMLBodyElement::scrollTop):
2537         (WebCore::HTMLBodyElement::setScrollTop):
2538         (WebCore::HTMLBodyElement::scrollHeight):
2539         (WebCore::HTMLBodyElement::scrollWidth):
2540         * html/ImageDocument.cpp:
2541         (WebCore::pageZoomFactor):
2542         (WebCore::ImageDocument::scale):
2543         (WebCore::ImageDocument::imageFitsInWindow):
2544         * page/DOMWindow.cpp:
2545         (WebCore::DOMWindow::innerHeight):
2546         (WebCore::DOMWindow::innerWidth):
2547         (WebCore::DOMWindow::scrollX):
2548         (WebCore::DOMWindow::scrollY):
2549         (WebCore::DOMWindow::scrollTo):
2550         * page/DragController.cpp:
2551         (WebCore::elementUnderMouse):
2552         * rendering/RenderView.cpp:
2553         (WebCore::RenderView::zoomFactor):
2554         * svg/SVGSVGElement.cpp:
2555         (WebCore::SVGSVGElement::currentScale):
2556         (WebCore::SVGSVGElement::setCurrentScale):
2557         Get zoom factor from Frame rather than FrameView.
2558
2559         * page/Frame.cpp:
2560         (WebCore::parentPageZoomFactor): Moved back here from FrameView.
2561         (WebCore::parentTextZoomFactor): Ditto.
2562         (WebCore::Frame::Frame): Ditto.
2563         (WebCore::Frame::setPageZoomFactor): Ditto.
2564         (WebCore::Frame::setTextZoomFactor): Ditto.
2565         (WebCore::Frame::setPageAndTextZoomFactors): Ditto.
2566
2567         * page/Frame.h: Moved functions and data for zooming back here
2568         from FrameView.
2569
2570         * page/FrameView.cpp:
2571         (WebCore::FrameView::FrameView):
2572         * page/FrameView.h:
2573         Removed code from here.
2574
2575 2010-09-17  Matthew Delaney  <mdelaney@apple.com>
2576
2577         Reviewed by Simon Fraser.
2578
2579         Reduce minimum DOMTimer interval
2580         https://bugs.webkit.org/show_bug.cgi?id=45362
2581
2582         Reduced the minimum allowed DOMTimer interval to 4ms. This has us matching Chrome,
2583         which hasn't had any problem with 4ms in the past 2 years, as well as increasing our
2584         performance on perf tests that have tight frequent loops such as canvas "animation"
2585         performance tests.
2586
2587         No new tests added. Can't reliably instrument a test in javascript to verify that
2588         the minimum clamped interval time is in fact 4ms. 
2589
2590         * WebCore.exp.in:
2591         * page/DOMTimer.cpp: Removed old comments.
2592         * page/DOMTimer.h: Removed old comments.
2593         * page/Settings.cpp: Exposted new method to set minimum DOMTimer interval.
2594         * page/Settings.h:
2595
2596 2010-09-17  Marc-Antoine Ruel  <maruel@chromium.org>
2597
2598         Reviewed by Dimitri Glazkov.
2599
2600         [Chromium] Split webcore_platform off webcore_remaining
2601
2602         Further reduce webcore_remaining size by moving platform/ code in its
2603         own static libary.
2604         https://bugs.webkit.org/show_bug.cgi?id=45915
2605
2606         * WebCore.gyp/WebCore.gyp:
2607
2608 2010-09-13  Matt Perry  <mpcomplete@chromium.org>
2609
2610         Reviewed by Darin Fisher.
2611
2612         Have V8DOMWindowShell ask the embedder whether to run a V8 extension
2613         in a particular script context.
2614         https://bugs.webkit.org/show_bug.cgi?id=45721
2615
2616         * bindings/v8/V8DOMWindowShell.cpp:
2617         (WebCore::V8DOMWindowShell::createNewContext):
2618         * bindings/v8/V8Proxy.cpp:
2619         (WebCore::V8Proxy::registeredExtensionWithV8):
2620         (WebCore::V8Proxy::registerExtension):
2621         * bindings/v8/V8Proxy.h:
2622         * loader/EmptyClients.h:
2623         (WebCore::EmptyFrameLoaderClient::allowScriptExtension):
2624         * loader/FrameLoaderClient.h:
2625
2626 2010-09-17  Anders Carlsson  <andersca@apple.com>
2627
2628         Reviewed by Sam Weinig.
2629
2630         REGRESSION (r66711): Plug-in replacement text is never shown
2631         https://bugs.webkit.org/show_bug.cgi?id=45997
2632         <rdar://problem/8446766>
2633
2634         Don't return when the plug-in has replacement text.
2635
2636         * rendering/RenderEmbeddedObject.cpp:
2637         (WebCore::RenderEmbeddedObject::paintReplaced):
2638
2639 2010-09-17  Lucas De Marchi  <lucas.demarchi@profusion.mobi>
2640
2641         Unreviewed, build fix. Add files missed in r67704.
2642
2643         * CMakeLists.txt:
2644
2645 2010-09-17  Simon Fraser  <simon.fraser@apple.com>
2646
2647         Reviewed by Chris Marrin.
2648
2649         Remove scroll and clip layers for WKCACFLayerRenderer
2650         https://bugs.webkit.org/show_bug.cgi?id=45922
2651
2652         WKCACFLayerRenderer no longer needs its own layers for managing scrolling
2653         and clipping, because RenderLayerCompositor provides this functionality.
2654
2655         * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp:
2656         (WebCore::MediaPlayerPrivateFullscreenWindow::setRootChildLayer): Remove call to setScrollFrame().
2657         (WebCore::MediaPlayerPrivateFullscreenWindow::wndProc): Ditto.
2658
2659         * platform/graphics/win/WKCACFLayerRenderer.cpp: Remove references to scroll and clip layers
2660         (WebCore::WKCACFLayerRenderer::WKCACFLayerRenderer):
2661         (WebCore::WKCACFLayerRenderer::setRootChildLayer):
2662         (WebCore::WKCACFLayerRenderer::destroyRenderer):
2663         (WebCore::WKCACFLayerRenderer::resize):
2664         * platform/graphics/win/WKCACFLayerRenderer.h:
2665
2666         * rendering/RenderLayerCompositor.cpp:
2667         (WebCore::RenderLayerCompositor::layerTreeAsText): Dump the layers from the root platform layer.
2668         (WebCore::RenderLayerCompositor::requiresScrollLayer): On Windows,
2669         always say yes.
2670
2671 2010-09-17  Jian Li  <jianli@chromium.org>
2672
2673         Reviewed by Dmitry Titov.
2674
2675         createBlobURL with no argument causes crash.
2676         https://bugs.webkit.org/show_bug.cgi?id=45880
2677
2678         The fix is to check if the passing blob argument is NULL or not.
2679
2680         Test: fast/files/create-blob-url-crash.html
2681
2682         * dom/ScriptExecutionContext.cpp:
2683         (WebCore::ScriptExecutionContext::createPublicBlobURL):
2684         * page/DOMWindow.idl: Add attribute to convert null string to undefined.
2685
2686 2010-09-17  Chris Marrin  <cmarrin@apple.com>
2687
2688         Reviewed by Simon Fraser.
2689
2690         Add WebKitAccelerated2dCanvasEnabled flag to WebKit for Mac
2691         https://bugs.webkit.org/show_bug.cgi?id=45911
2692
2693         * WebCore.exp.in:
2694
2695 2010-09-17  Tony Gentilcore  <tonyg@chromium.org>
2696
2697         Reviewed by Adam Barth.
2698
2699         ASSERTION FAILED: m_loadEventDelayCount
2700         https://bugs.webkit.org/show_bug.cgi?id=45790
2701
2702         * dom/AsyncScriptRunner.cpp: 
2703         (WebCore::AsyncScriptRunner::timerFired): Protect document before we go running scripts.
2704
2705 2010-09-17  Stephen White  <senorblanco@chromium.org>
2706
2707         Reviewed by Kenneth Russell.
2708
2709         [CHROMIUM] GPU-accelerated canvas should work in test_shell.
2710         https://bugs.webkit.org/show_bug.cgi?id=45968
2711
2712         In order for the shaders in GPU-accelerated canvas to work in both the
2713         GraphicsContext3D / GLES2 path as well as chromium's test_shell (which
2714         passes them to the Mesa backend unmodified), the precision specifiers
2715         in the fragment shader have to be wrapped in #if GL_ES.
2716
2717         Soon to be covered by many layout tests.
2718
2719         * platform/graphics/gpu/SolidFillShader.cpp:
2720         (WebCore::SolidFillShader::create):
2721         * platform/graphics/gpu/TexShader.cpp:
2722         (WebCore::TexShader::create):
2723
2724 2010-09-17  Martin Robinson  <mrobinson@igalia.com>
2725
2726         Reviewed by Xan Lopez.
2727
2728         [GTK] [REGRESSION] Listbox rendering is incorrect
2729         https://bugs.webkit.org/show_bug.cgi?id=45941
2730
2731         Only apply the shadow tiling optimization to a layer if the GraphicsContext
2732         has a shadow.
2733
2734         This is covered by manual-tests/select-element-type-select.html.
2735
2736         * platform/graphics/cairo/GraphicsContextCairo.cpp:
2737         (WebCore::drawBorderlessRectShadow): Before applying the tiled shadow optimization
2738         first check to see if the context has a shadow at all.
2739
2740 2010-09-17  Martin Robinson  <mrobinson@igalia.com>
2741
2742         Reviewed by Oliver Hunt.
2743
2744         [GTK] FontPlatformDataFreeType should use smart pointers to hold its members
2745         https://bugs.webkit.org/show_bug.cgi?id=45917
2746
2747         Have FontPlatformDataFreeType use smart pointers to hold its reference-counted
2748         members. Also move the FcPattern specialization from OwnPtrCairo to PlatformRefPtrCairo
2749         as this type is reference-counted.
2750
2751         No new tests as this should not introduce any functionality changes.
2752
2753         * platform/graphics/cairo/FontCacheFreeType.cpp:
2754         (WebCore::FontCache::getFontDataForCharacters): Updated to reflect smart pointer changes.
2755         (WebCore::FontCache::createFontPlatformData): Ditto.
2756         * platform/graphics/cairo/FontPlatformDataFreeType.cpp:
2757         (WebCore::FontPlatformData::FontPlatformData): Ditto.
2758         (WebCore::FontPlatformData::operator=): Ditto.
2759         (WebCore::FontPlatformData::~FontPlatformData): Ditto.
2760         (WebCore::FontPlatformData::isFixedPitch): Ditto.
2761         (WebCore::FontPlatformData::operator==): Ditto.
2762         * platform/graphics/cairo/FontPlatformDataFreeType.h:
2763         (WebCore::FontPlatformData::FontPlatformData): Ditto.
2764         (WebCore::FontPlatformData::scaledFont): Ditto.
2765         (WebCore::FontPlatformData::hash): Ditto.
2766         (WebCore::FontPlatformData::isHashTableDeletedValue): Ditto.
2767         * platform/graphics/cairo/GlyphPageTreeNodeCairo.cpp:
2768         (WebCore::GlyphPage::fill): Ditto.
2769         * platform/graphics/cairo/OwnPtrCairo.cpp: Removed FcPattern specialization.
2770         * platform/graphics/cairo/OwnPtrCairo.h: Ditto.
2771         * platform/graphics/cairo/PlatformRefPtrCairo.cpp: Added FcPattern and cairo_scaled_font_t specializations.
2772         (WTF::refPlatformPtr): Ditto.
2773         (WTF::derefPlatformPtr): Ditto.
2774         * platform/graphics/cairo/PlatformRefPtrCairo.h: Ditto.
2775         * platform/graphics/cairo/SimpleFontDataCairo.cpp:
2776         (WebCore::SimpleFontData::platformInit): Updated to reflect smart pointer changes.
2777         (WebCore::SimpleFontData::containsCharacters): Ditto.
2778         (WebCore::SimpleFontData::platformWidthForGlyph): Ditto.
2779         * platform/graphics/gtk/FontGtk.cpp:
2780         (WebCore::setPangoAttributes): Ditto.
2781
2782 2010-09-14  Pavel Podivilov  <podivilov@chromium.org>
2783
2784         Reviewed by Pavel Feldman.
2785
2786         Web Inspector: show status message below call stack when debugger is paused on DOM breakpoint
2787         https://bugs.webkit.org/show_bug.cgi?id=45114
2788
2789         * English.lproj/localizedStrings.js:
2790         * inspector/InspectorDOMAgent.cpp:
2791         (WebCore::InspectorDOMAgent::performSearch):
2792         (WebCore::InspectorDOMAgent::shouldBreakOnNodeInsertion):
2793         (WebCore::InspectorDOMAgent::shouldBreakOnNodeRemoval):
2794         (WebCore::InspectorDOMAgent::shouldBreakOnAttributeModification):
2795         (WebCore::InspectorDOMAgent::descriptionForDOMEvent):
2796         * inspector/InspectorDOMAgent.h:
2797         * inspector/InspectorDebuggerAgent.cpp:
2798         (WebCore::InspectorDebuggerAgent::didPause):
2799         * inspector/front-end/CallStackSidebarPane.js:
2800         (WebInspector.CallStackSidebarPane):
2801         (WebInspector.CallStackSidebarPane.prototype.updateStatus.formatters.s):
2802         (WebInspector.CallStackSidebarPane.prototype.updateStatus.append):
2803         (WebInspector.CallStackSidebarPane.prototype.updateStatus):
2804         * inspector/front-end/ElementsPanel.js:
2805         (WebInspector.ElementsPanel.prototype.linkifyNodeById):
2806         * inspector/front-end/ScriptsPanel.js:
2807         (WebInspector.ScriptsPanel.prototype.debuggerPaused):
2808         * inspector/front-end/inspector.css:
2809         (.pane > .body .placard + .info):
2810         * inspector/front-end/inspector.js:
2811         (WebInspector.pausedScript):
2812         (WebInspector.formatLocalized):
2813
2814 2010-09-17  Johnny Ding  <jnd@chromium.org>
2815
2816         Reviewed by Adam Barth.
2817
2818         Stop history reload navigation to bypass WebKit's popup blocker.
2819         Now history reload can only navigate the page in self frame, no matter
2820         what target frame is defined in <base> and no new window can be created.
2821         https://bugs.webkit.org/show_bug.cgi?id=45369
2822
2823         Test: fast/events/popup-blocked-from-history-reload.html
2824
2825         * loader/RedirectScheduler.cpp:
2826         (WebCore::ScheduledNavigation::ScheduledNavigation):
2827         (WebCore::ScheduledNavigation::wasUserGesture):
2828         Move the m_wasUserGesture to base class ScheduledNavigation. Then all
2829         asynchronous navigation situations can restore the correct gesture state
2830         during the real navigation process.
2831         (WebCore::ScheduledURLNavigation::ScheduledURLNavigation):
2832         (WebCore::ScheduledURLNavigation::fire):
2833         (WebCore::ScheduledURLNavigation::referrer):
2834         (WebCore::ScheduledHistoryNavigation::ScheduledHistoryNavigation):
2835         (WebCore::ScheduledHistoryNavigation::fire):
2836         (WebCore::ScheduledFormSubmission::ScheduledFormSubmission):
2837         (WebCore::ScheduledFormSubmission::fire):
2838         (WebCore::RedirectScheduler::scheduleHistoryNavigation):
2839
2840 2010-09-16  Vangelis Kokkevis  <vangelis@chromium.org>
2841
2842         Reviewed by James Robinson.
2843
2844         [chromium] Clip the update region of an ImageLayerChromium to actual size
2845         of the image bitmap to prevent uninitialized memory access when uploading
2846         the dirty region to the texture.
2847         https://bugs.webkit.org/show_bug.cgi?id=45937
2848
2849
2850         * platform/graphics/chromium/ImageLayerChromium.cpp:
2851         (WebCore::ImageLayerChromium::updateContents):
2852
2853 2010-09-17  Dimitri Glazkov  <dglazkov@chromium.org>
2854
2855         Reviewed by David Hyatt.
2856
2857         Remove extraneous RenderObject traversal.
2858         https://bugs.webkit.org/show_bug.cgi?id=45821
2859
2860         This code always exits in the first iteration of the loop,
2861         because in the context of this call, node->renderer()->node() != 0
2862         is always true.
2863
2864         No behavior change, covered by existing tests.
2865
2866         * page/EventHandler.cpp:
2867         (WebCore::EventHandler::canMouseDownStartSelect): Removed the loop.
2868         (WebCore::EventHandler::canMouseDragExtendSelect): Ditto.
2869
2870 2010-09-17  Pavel Feldman  <pfeldman@chromium.org>
2871
2872         Reviewed by Yury Semikhatsky.
2873
2874         Web Inspector: FrameLoader::loadedResourceFromMemoryCache reports
2875         resource as not cached to InspectorController.
2876         https://bugs.webkit.org/show_bug.cgi?id=45961
2877
2878         Web Inspector: FrameLoader::loadedResourceFromMemoryCache reports
2879         resource as not cached to InspectorController.
2880         There is one path in control flow that leads to resources being
2881         reported as not cached. Patch to follow.
2882
2883         * inspector/InspectorController.cpp:
2884         (WebCore::InspectorController::markResourceAsCached):
2885         * inspector/InspectorController.h:
2886         * inspector/InspectorResource.cpp:
2887         (WebCore::InspectorResource::markAsCached):
2888         (WebCore::InspectorResource::updateResponse):
2889         * inspector/InspectorResource.h:
2890         * loader/FrameLoader.cpp:
2891         (WebCore::FrameLoader::loadedResourceFromMemoryCache):
2892
2893 2010-09-17  Alexander Pavlov  <apavlov@chromium.org>
2894
2895         Unreviewed, build fix. Add files missed in the previous commit.
2896
2897         * GNUmakefile.am:
2898         * css/CSSPropertySourceData.cpp: Added.
2899         (WebCore::SourceRange::SourceRange):
2900         (WebCore::SourceRange::operator=):
2901         (WebCore::CSSPropertySourceData::CSSPropertySourceData):
2902         (WebCore::CSSPropertySourceData::operator=):
2903         (WebCore::CSSPropertySourceData::toString):
2904         (WebCore::CSSPropertySourceData::hash):
2905         (WebCore::CSSPropertySourceData::init):
2906         * css/CSSPropertySourceData.h: Added.
2907         (WebCore::CSSPropertySourceData::~CSSPropertySourceData):
2908         (WebCore::CSSStyleSourceData::create):
2909
2910 2010-09-15  Alexander Pavlov  <apavlov@chromium.org>
2911
2912         Reviewed by Pavel Feldman.
2913
2914         Provide source-based properties for style declarations to CSSParser clients
2915
2916         This change:
2917         - Enables InspectorCSSStore to extract CSS stylesheet text for all source-based stylesheets,
2918           even with the resource tracking turned off.
2919         - Adds to CSSParser a capability of source-related style declaration data extraction:
2920           * Start/end source offsets for a declaration, relative to the parent stylesheet start or the "style" attribute value.
2921           * Start/end source offsets for CSS properties, relative to the declaration start.
2922           * CSS property data: name, value, priority, WebCore parsability (i.e. if the property is understood by WebCore).
2923         - Provides the extracted data to the WebInspector frontend via InspectorDOMAgent::getStyleSourceData().
2924         https://bugs.webkit.org/show_bug.cgi?id=44949
2925
2926         * WebCore.gypi:
2927         * WebCore.pro:
2928         * WebCore.vcproj/WebCore.vcproj:
2929         * WebCore.xcodeproj/project.pbxproj:
2930         * css/CSSGrammar.y:
2931         * css/CSSMutableStyleDeclaration.h:
2932         (WebCore::CSSMutableStyleDeclaration::node):
2933         * css/CSSParser.cpp:
2934         (WebCore::CSSParser::CSSParser):
2935         (WebCore::CSSParser::parseSheet):
2936         (WebCore::CSSParser::parseDeclaration):
2937         (WebCore::CSSParser::createStyleRule):
2938         (WebCore::CSSParser::markRuleBodyStart):
2939         (WebCore::CSSParser::markPropertyStart):
2940         (WebCore::CSSParser::markPropertyEnd):
2941         * css/CSSParser.h:
2942         (WebCore::CSSParser::resetPropertyMarks):
2943         * css/CSSPropertySourceData.cpp: Added.
2944         (WebCore::SourceRange::SourceRange):
2945         (WebCore::SourceRange::operator=):
2946         (WebCore::CSSPropertySourceData::CSSPropertySourceData):
2947         (WebCore::CSSPropertySourceData::operator=):
2948         (WebCore::CSSPropertySourceData::toString):
2949         (WebCore::CSSPropertySourceData::hash):
2950         (WebCore::CSSPropertySourceData::init):
2951         * css/CSSPropertySourceData.h: Added.
2952         (WebCore::CSSPropertySourceData::~CSSPropertySourceData):
2953         (WebCore::CSSStyleSourceData::create):
2954         * inspector/Inspector.idl:
2955         * inspector/InspectorCSSStore.cpp:
2956         (WebCore::InspectorCSSStore::reset):
2957         (WebCore::InspectorCSSStore::styleSheetText):
2958         (WebCore::InspectorCSSStore::resourceStyleSheetText):
2959         (WebCore::InspectorCSSStore::inlineStyleSheetText):
2960         (WebCore::InspectorCSSStore::getStyleSourceData):
2961         (WebCore::InspectorCSSStore::extractRanges):
2962         (WebCore::InspectorCSSStore::getStyleAttributeRanges):
2963         (WebCore::InspectorCSSStore::getParentStyleSheet):
2964         (WebCore::InspectorCSSStore::inlineStyleElement):
2965         * inspector/InspectorCSSStore.h:
2966         * inspector/InspectorController.cpp:
2967         (WebCore::InspectorController::resourceContentForURL):
2968         * inspector/InspectorController.h:
2969         * inspector/InspectorDOMAgent.cpp:
2970         (WebCore::InspectorDOMAgent::getStyleSourceData):
2971         (WebCore::InspectorDOMAgent::buildObjectForStyle):
2972         * inspector/InspectorDOMAgent.h:
2973
2974 2010-09-17  Alexander Pavlov  <apavlov@chromium.org>
2975
2976         Reviewed by Pavel Feldman.
2977
2978         Web Inspector: Show node description in inspector highlight
2979         https://bugs.webkit.org/show_bug.cgi?id=20930
2980
2981         * inspector/InspectorController.cpp:
2982         (WebCore::InspectorController::drawNodeHighlight):
2983         (WebCore::InspectorController::drawElementTitle):
2984         * inspector/InspectorController.h:
2985
2986 2010-09-16  takano takumi  <takano1@asia.apple.com>
2987
2988         Reviewed by Kent Tamura.
2989
2990         https://bugs.webkit.org/show_bug.cgi?id=45020
2991         Support "block-flow" and "writing-mode": interpret properties into RenderStyle
2992
2993         Fixed a regression in SVG test introduced by my previous change.
2994
2995         * css/CSSPrimitiveValueMappings.h:
2996         (WebCore::CSSPrimitiveValue::operator EWritingMode):
2997         * css/SVGCSSParser.cpp:
2998         (WebCore::CSSParser::parseSVGValue):
2999
3000 2010-09-16  Kenneth Russell  <kbr@google.com>
3001
3002         Reviewed by James Robinson.
3003
3004         Add entry points to GraphicsContext3D needed for Chromium compositor port
3005         https://bugs.webkit.org/show_bug.cgi?id=45939
3006
3007         Added entry points for two Chromium-specific extensions, and added
3008         a flag to the GraphicsContext3D constructor, currently unsupported
3009         by all ports (including Chromium), indicating whether the context
3010         should render directly to the passed HostWindow or off-screen per
3011         the current semantics. The switch to use GraphicsContext3D in
3012         Chromium's compositor will follow in a subsequent patch.
3013
3014         No new tests; functionality is unchanged. Built and tested
3015         Chromium and WebKit on Mac OS X.
3016
3017         * platform/graphics/GraphicsContext3D.cpp:
3018         (WebCore::GraphicsContext3D::supportsMapSubCHROMIUM):
3019         (WebCore::GraphicsContext3D::mapBufferSubDataCHROMIUM):
3020         (WebCore::GraphicsContext3D::unmapBufferSubDataCHROMIUM):
3021         (WebCore::GraphicsContext3D::mapTexSubImage2DCHROMIUM):
3022         (WebCore::GraphicsContext3D::unmapTexSubImage2DCHROMIUM):
3023         (WebCore::GraphicsContext3D::supportsCopyTextureToParentTextureCHROMIUM):
3024         (WebCore::GraphicsContext3D::copyTextureToParentTextureCHROMIUM):
3025         * platform/graphics/GraphicsContext3D.h:
3026         * platform/graphics/mac/GraphicsContext3DMac.mm:
3027         (WebCore::GraphicsContext3D::create):
3028         (WebCore::GraphicsContext3D::GraphicsContext3D):
3029         * platform/graphics/qt/GraphicsContext3DQt.cpp:
3030         (WebCore::GraphicsContext3D::create):
3031         (WebCore::GraphicsContext3D::GraphicsContext3D):
3032
3033 2010-09-16  Simon Fraser  <simon.fraser@apple.com>
3034
3035         Reviewed by James Robinson.
3036
3037         In layerTreeAsText output, avoid printing properties which have their default values
3038         https://bugs.webkit.org/show_bug.cgi?id=45931
3039
3040         Don't dump properties that have their default values to simplify output.
3041
3042         * platform/graphics/GraphicsLayer.cpp:
3043         (WebCore::GraphicsLayer::dumpProperties):
3044
3045 2010-09-16  Andreas Kling  <andreas.kling@nokia.com>
3046
3047         Reviewed by Ariya Hidayat.
3048
3049         [Qt] GraphicsContext: Remove unused variable
3050
3051         GraphicsContextPlatformPrivate::redirect wasn't used for anything.
3052
3053         * platform/graphics/qt/GraphicsContextQt.cpp:
3054         (WebCore::GraphicsContextPlatformPrivate::p):
3055         (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
3056
3057 2010-09-16  Andreas Kling  <andreas.kling@nokia.com>
3058
3059         Reviewed by Ariya Hidayat.
3060
3061         [Qt] Remove unnecessary QPainter::clipPath() call in TransparencyLayer()
3062         https://bugs.webkit.org/show_bug.cgi?id=45923
3063
3064         QPainter::clipPath() can be very expensive, so use QPainter::hasClipping()
3065         instead of QPainter::clipPath().isEmpty().
3066
3067         * platform/graphics/qt/TransparencyLayer.h:
3068         (WebCore::TransparencyLayer::TransparencyLayer):
3069
3070 2010-09-16  David Hyatt  <hyatt@apple.com>
3071
3072         Reviewed by Eric Seidel.
3073
3074         Fix for regression from my previous check-in.  Make sure not to move the LayoutRepainter line
3075         below the setHeight(0) call.  This meant it snagged the wrong rectangle and we ended up repainting
3076         the world.
3077
3078         * rendering/RenderBlock.cpp:
3079         (WebCore::RenderBlock::layoutBlock):
3080
3081 2010-09-16  takano takumi  <takano1@asia.apple.com>
3082
3083         Reviewed by Dave Hyatt.
3084
3085         https://bugs.webkit.org/show_bug.cgi?id=45020
3086         Support "block-flow" and "writing-mode": interpret properties into RenderStyle
3087  
3088         Added code that interprets "block-flow" property and "writing-mode" property settings
3089         into a RenderStyle object.
3090
3091         Test: fast/text/international/block-flow-parser-test.html
3092
3093         * css/CSSComputedStyleDeclaration.cpp:
3094         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
3095         * css/CSSParser.cpp:
3096         (WebCore::CSSParser::parseValue):
3097         * css/CSSPrimitiveValueMappings.h:
3098         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
3099         (WebCore::CSSPrimitiveValue::operator EBlockFlowDirection):
3100         * css/CSSPropertyNames.in:
3101         * css/CSSStyleSelector.cpp:
3102         (WebCore::CSSStyleSelector::applyProperty):
3103         * css/CSSValueKeywords.in:
3104         * css/SVGCSSValueKeywords.in:
3105         * rendering/style/RenderStyle.cpp:
3106         (WebCore::RenderStyle::diff):
3107         * rendering/style/RenderStyle.h:
3108         (WebCore::InheritedFlags::setBitDefaults):
3109         (WebCore::InheritedFlags::blockFlow):
3110         (WebCore::InheritedFlags::setBlockFlow):
3111         (WebCore::InheritedFlags::initialBlockFlow):
3112         * rendering/style/RenderStyleConstants.h:
3113
3114 2010-09-16  Martin Robinson  <mrobinson@igalia.com>
3115
3116         Reviewed by Xan Lopez.
3117
3118         [GTK] Implement dissolveDragImageToFraction
3119         https://bugs.webkit.org/show_bug.cgi?id=45826
3120
3121         Convert the drag image from a GdkPixbuf to a Cairo surface. Not only
3122         might this allow code to be shared between Cairo ports it prevents a
3123         full data copy when the image is not resized and makes the implementation
3124         of dissolveDragImageToFraction more straight-forward.
3125
3126         This feature is covered by manual-tests/drag-image.html.
3127
3128         * page/gtk/DragControllerGtk.cpp:
3129         (WebCore::DragController::maxDragImageSize): Make the maximum size of the drag
3130         image a little smaller.
3131         * platform/DragImage.h: Changed the drag image type to be a cairo_surface_t*.
3132         * platform/gtk/DragImageGtk.cpp:
3133         (WebCore::dragImageSize): Reimplemented to reflect new drag image type.
3134         (WebCore::deleteDragImage): Ditto.
3135         (WebCore::scaleDragImage): Ditto.
3136         (WebCore::dissolveDragImageToFraction): Filled the stub of this function.
3137         (WebCore::createDragImageFromImage): Reimplemented to reflect new drag image type.
3138         * platform/gtk/GtkVersioning.h: Added definition for gtk_widget_get_realized for older GTK+s.
3139
3140 2010-09-15  David Hyatt  <hyatt@apple.com>
3141
3142         Reviewed by Darin Adler.
3143
3144         https://bugs.webkit.org/show_bug.cgi?id=38402, paginate columns at layout time rather than at paint time.
3145
3146         This patch adds support for column breaking at layout time rather than at paint time.  New variables have been
3147         added to LayoutState and to ColumnInfo to track column information while laying out.
3148         
3149         The basic idea behind this patch is to retain the columns' paint-time hackery of transforming one long vertical strip
3150         into multiple columns.  Now, however, layout is aware of the columns and will move objects up and down vertically in order
3151         to ensure they don't intersect a break.
3152         
3153         Many new tests added in fast/multicol and new results added for existing fast/multicol tests.
3154
3155         * rendering/ColumnInfo.h:
3156         (WebCore::ColumnInfo::ColumnInfo):
3157         (WebCore::ColumnInfo::columnCount):
3158         (WebCore::ColumnInfo::columnHeight):
3159         (WebCore::ColumnInfo::setColumnCountAndHeight):
3160         (WebCore::ColumnInfo::setColumnHeight):
3161         (WebCore::ColumnInfo::updateMinimumColumnHeight):
3162         (WebCore::ColumnInfo::minimumColumnHeight):
3163         (WebCore::ColumnInfo::forcedBreaks):
3164         (WebCore::ColumnInfo::forcedBreakOffset):
3165         (WebCore::ColumnInfo::maximumDistanceBetweenForcedBreaks):
3166         (WebCore::ColumnInfo::clearForcedBreaks):
3167         (WebCore::ColumnInfo::addForcedBreak):
3168         * rendering/LayoutState.cpp:
3169         (WebCore::LayoutState::LayoutState):
3170         (WebCore::LayoutState::clearPaginationInformation):
3171         (WebCore::LayoutState::pageY):
3172         (WebCore::LayoutState::addForcedColumnBreak):
3173         * rendering/LayoutState.h:
3174         (WebCore::LayoutState::LayoutState):
3175         (WebCore::LayoutState::paginatingColumns):
3176         (WebCore::LayoutState::paginated):
3177         * rendering/RenderBlock.cpp:
3178         (WebCore::RenderBlock::RenderBlock):
3179         (WebCore::RenderBlock::~RenderBlock):
3180         (WebCore::RenderBlock::layoutBlock):
3181         (WebCore::RenderBlock::collapseMargins):
3182         (WebCore::RenderBlock::estimateVerticalPosition):
3183         (WebCore::RenderBlock::layoutBlockChild):
3184         (WebCore::RenderBlock::layoutPositionedObjects):
3185         (WebCore::RenderBlock::paintColumnRules):
3186         (WebCore::RenderBlock::paintColumnContents):
3187         (WebCore::RenderBlock::paintChildren):
3188         (WebCore::RenderBlock::insertFloatingObject):
3189         (WebCore::RenderBlock::removeFloatingObjects):
3190         (WebCore::RenderBlock::positionNewFloats):
3191         (WebCore::RenderBlock::positionNewFloatOnLine):
3192         (WebCore::RenderBlock::lowestPosition):
3193         (WebCore::RenderBlock::rightmostPosition):
3194         (WebCore::RenderBlock::leftmostPosition):
3195         (WebCore::RenderBlock::markAllDescendantsWithFloatsForLayout):
3196         (WebCore::RenderBlock::markDescendantBlocksAndLinesForLayout):
3197         (WebCore::RenderBlock::hitTestColumns):
3198         (WebCore::RenderBlock::setDesiredColumnCountAndWidth):
3199         (WebCore::RenderBlock::columnCount):
3200         (WebCore::RenderBlock::columnRectAt):
3201         (WebCore::RenderBlock::layoutColumns):
3202         (WebCore::RenderBlock::adjustPointToColumnContents):
3203         (WebCore::RenderBlock::adjustRectForColumns):
3204         (WebCore::RenderBlock::adjustForColumns):
3205         (WebCore::RenderBlock::setMaxTopMargins):
3206         (WebCore::RenderBlock::setMaxBottomMargins):
3207         (WebCore::RenderBlock::setPaginationStrut):
3208         (WebCore::RenderBlock::setPageY):
3209         (WebCore::RenderBlock::nextPageTop):
3210         (WebCore::inNormalFlow):
3211         (WebCore::RenderBlock::applyBeforeBreak):
3212         (WebCore::RenderBlock::applyAfterBreak):
3213         (WebCore::RenderBlock::adjustForUnsplittableChild):
3214         (WebCore::RenderBlock::adjustLinePositionForPagination):
3215         * rendering/RenderBlock.h:
3216         (WebCore::RenderBlock::paginationStrut):
3217         (WebCore::RenderBlock::pageY):
3218         (WebCore::RenderBlock::maxTopPosMargin):
3219         (WebCore::RenderBlock::maxTopNegMargin):
3220         (WebCore::RenderBlock::maxBottomPosMargin):
3221         (WebCore::RenderBlock::maxBottomNegMargin):
3222         (WebCore::RenderBlock::initMaxMarginValues):
3223         (WebCore::RenderBlock::FloatingObject::FloatingObject):
3224         (WebCore::RenderBlock::FloatingObject::type):
3225         (WebCore::RenderBlock::RenderBlockRareData::RenderBlockRareData):
3226         * rendering/RenderBlockLineLayout.cpp:
3227         (WebCore::RenderBlock::layoutInlineChildren):
3228         (WebCore::RenderBlock::determineStartPosition):
3229         (WebCore::RenderBlock::skipLeadingWhitespace):
3230         (WebCore::RenderBlock::findNextLineBreak):
3231         * rendering/RenderBox.cpp:
3232         (WebCore::RenderBox::mapLocalToContainer):
3233         (WebCore::RenderBox::computeRectForRepaint):
3234         (WebCore::RenderBox::markDescendantBlocksAndLinesForLayout):
3235         * rendering/RenderBox.h:
3236         * rendering/RenderFlexibleBox.cpp:
3237         (WebCore::RenderFlexibleBox::layoutBlock):
3238         (WebCore::RenderFlexibleBox::layoutHorizontalBox):
3239         (WebCore::RenderFlexibleBox::layoutVerticalBox):
3240         * rendering/RenderFlexibleBox.h:
3241         * rendering/RenderInline.cpp:
3242         (WebCore::RenderInline::computeRectForRepaint):
3243         (WebCore::RenderInline::mapLocalToContainer):
3244         * rendering/RenderLayer.cpp:
3245         (WebCore::RenderLayer::updatePagination):
3246         (WebCore::RenderLayer::paintChildLayerIntoColumns):
3247         (WebCore::RenderLayer::hitTestChildLayerColumns):
3248         * rendering/RenderLineBoxList.cpp:
3249         (WebCore::RenderLineBoxList::paint):
3250         * rendering/RenderTable.cpp:
3251         (WebCore::RenderTable::RenderTable):
3252         (WebCore::RenderTable::layout):
3253         * rendering/RenderTable.h:
3254         * rendering/RenderTableRow.cpp:
3255         (WebCore::RenderTableRow::layout):
3256         * rendering/RenderTableSection.cpp:
3257         (WebCore::RenderTableSection::layoutRows):
3258         * rendering/RenderView.cpp:
3259         (WebCore::RenderView::RenderView):
3260         (WebCore::RenderView::pushLayoutState):
3261         * rendering/RenderView.h:
3262         (WebCore::RenderView::setTruncatedAt):
3263         (WebCore::RenderView::pushLayoutState):
3264         (WebCore::RenderView::popLayoutState):
3265         (WebCore::LayoutStateMaintainer::LayoutStateMaintainer):
3266         (WebCore::LayoutStateMaintainer::push):
3267         * rendering/RootInlineBox.h:
3268         (WebCore::RootInlineBox::RootInlineBox):
3269         (WebCore::RootInlineBox::paginationStrut):
3270         (WebCore::RootInlineBox::setPaginationStrut):
3271
3272 2010-09-16  Pavel Podivilov  <podivilov@chromium.org>
3273
3274         Reviewed by Dimitri Glazkov.
3275
3276         Fix debug crash in HTMLFrameOwnerElement caused by content frame being used after destruction.
3277         https://bugs.webkit.org/show_bug.cgi?id=45737
3278
3279         Test: fast/frames/frame-limit.html
3280
3281         * html/HTMLFrameOwnerElement.cpp:
3282         (WebCore::HTMLFrameOwnerElement::willRemove):
3283
3284 2010-09-16  Thomas Zander <t.zander@nokia.com>
3285
3286         Reviewed by Andreas Kling.
3287
3288         https://bugs.webkit.org/show_bug.cgi?id=45878
3289
3290         [Qt] Fixed incorrect Symbian scoping.
3291
3292         The missing install functionality is only true for mmp based systems.
3293
3294         * WebCore.pro: limit functionality to mmp systems.
3295
3296 2010-09-16  Anders Carlsson  <andersca@apple.com>
3297
3298         Fix clang build.
3299
3300         * page/animation/AnimationBase.h:
3301         Fix struct/class mismatch.
3302
3303 2010-09-16  Darin Adler  <darin@apple.com>
3304
3305         Reviewed by Andreas Kling.
3306
3307         Reduce use of HTMLInputElement::inputType so we can remove it later
3308         https://bugs.webkit.org/show_bug.cgi?id=45903
3309
3310         * accessibility/AccessibilityRenderObject.cpp:
3311         (WebCore::AccessibilityRenderObject::isFileUploadButton): Use isFileUpload.
3312         (WebCore::AccessibilityRenderObject::isInputImage): Use isImageButton.
3313         (WebCore::AccessibilityRenderObject::determineAccessibilityRole): Use
3314         isCheckbox and isRadioButton.
3315
3316         * css/CSSStyleSelector.cpp:
3317         (WebCore::CSSStyleSelector::adjustRenderStyle): Use isImageButton.
3318
3319         * editing/Editor.cpp:
3320         (WebCore::Editor::setBaseWritingDirection): Use isTextField.
3321
3322         * editing/ReplaceSelectionCommand.cpp:
3323         (WebCore::ReplaceSelectionCommand::doApply): Use isPasswordField.
3324
3325         * editing/SelectionController.cpp:
3326         (WebCore::SelectionController::isInPasswordField): Use isPasswordField.
3327
3328         * html/HTMLInputElement.h: Added isFileUpload, isImageButton, and isSubmitButton.
3329
3330         * page/Chrome.cpp:
3331         (WebCore::Chrome::setToolTip): Use isSubmitButton and isFileUpload.
3332
3333         * page/DragController.cpp:
3334         (WebCore::asFileInput): Use isFileUpload.
3335
3336         * page/EventHandler.cpp:
3337         (WebCore::isSubmitImage): Use isImageButton.
3338
3339         * rendering/RenderFileUploadControl.cpp:
3340         (WebCore::RenderFileUploadControl::updateFromElement): Use isFileUpload.
3341
3342 2010-09-16  Pavel Podivilov  <podivilov@chromium.org>
3343
3344         Reviewed by Pavel Feldman.
3345
3346         Web Inspector: quick fix for crash in InspectorController::loadBreakpoints caused by empty main resource
3347         https://bugs.webkit.org/show_bug.cgi?id=45901
3348
3349         * inspector/InspectorController.cpp:
3350         (WebCore::InspectorController::breakpointsSettingKey):
3351
3352 2010-09-16  Pavel Feldman  <pfeldman@chromium.org>
3353
3354         Reviewed by Yury Semikhatsky.
3355
3356         Web Inspector: Prevent responseReceivedTime from being > endTime in case mixture of WebCore and Network stack info is used.
3357         https://bugs.webkit.org/show_bug.cgi?id=45892
3358
3359         * inspector/InspectorResource.cpp:
3360         (WebCore::InspectorResource::endTiming):
3361
3362 2010-09-16  Ilya Tikhonovsky  <loislo@chromium.org>
3363
3364         Reviewed by Yury Semikhatsky.
3365
3366         Web Inspector: move resourceTracking flag under control of BackendSettings.
3367
3368         Four Inspector API methods about resourceTracking flag were removed.
3369         Actual state of the flag is transfered as the response of setResourceTracking request.
3370         Initial state of the flag on the frontend side is obtained from settings.backend.
3371
3372         https://bugs.webkit.org/show_bug.cgi?id=45887
3373
3374         * inspector/Inspector.idl:
3375         * inspector/InspectorController.cpp:
3376         (WebCore::InspectorController::getBackendSettings):
3377         (WebCore::InspectorController::populateScriptObjects):
3378         (WebCore::InspectorController::setResourceTracking):
3379         * inspector/InspectorController.h:
3380         * inspector/front-end/ResourcesPanel.js:
3381         (WebInspector.ResourcesPanel.prototype._toggleResourceTracking):
3382         * inspector/front-end/Settings.js:
3383         (WebInspector.Settings.initialize.populateBackendSettings):
3384         (WebInspector.Settings.initialize):
3385         * inspector/front-end/inspector.js:
3386
3387 2010-09-16  Jian Li  <jianli@chromium.org>
3388
3389         Reviewed by David Levin.
3390
3391         BlobData should be copied for it to be used cross-thread in ThreadableBlobRegistry.
3392         https://bugs.webkit.org/show_bug.cgi?id=45909
3393
3394         * fileapi/ThreadableBlobRegistry.cpp:
3395         (WebCore::BlobRegistryContext::BlobRegistryContext):
3396
3397 2010-09-16  Daniel Cheng  <dcheng@chromium.org>
3398
3399         Reviewed by Simon Fraser.
3400
3401         [chromium] Fix incorrect drag node/selection painting.
3402         https://bugs.webkit.org/show_bug.cgi?id=45573
3403
3404         Drag selections were being incorrectly clipped when dragging a selection
3405         near the bottom of a page that was taller than the viewport. To fix
3406         this, we use paintContents() instead of paint().
3407
3408         * page/chromium/FrameChromium.cpp:
3409         (WebCore::Frame::nodeImage):
3410         (WebCore::Frame::dragImageForSelection):
3411
3412 2010-09-16  Daniel Cheng  <dcheng@chromium.org>
3413
3414         Reviewed by Tony Chang.
3415
3416         Fix incorrect usage of dissolveDragImageToFraction().
3417         https://bugs.webkit.org/show_bug.cgi?id=45835
3418
3419         createDragImageForSelection() was ignoring the return value of
3420         dissolveDragImageToFraction(). This didn't happen to crash on most
3421         platforms, since most implementations simply modified the image that was
3422         passed in. However, Chromium Mac's implementation actually creates a new
3423         image and returns that instead. This caused us to crash when copying the
3424         image from the renderer to the browser process, since the memory had
3425         already been freed.
3426
3427         * manual-tests/selection-drag-crash.html: Added.
3428         * platform/DragImage.cpp:
3429         (WebCore::createDragImageForSelection):
3430
3431 2010-09-16  Sheriff Bot  <webkit.review.bot@gmail.com>
3432
3433         Unreviewed, rolling out r67628.
3434         http://trac.webkit.org/changeset/67628
3435         https://bugs.webkit.org/show_bug.cgi?id=45904
3436
3437         broke the build (Requested by eric_carlson on #webkit).
3438
3439         * page/ContextMenuController.cpp:
3440         (WebCore::ContextMenuController::contextMenuItemSelected):
3441         * platform/ContextMenu.cpp:
3442         (WebCore::ContextMenu::populate):
3443         (WebCore::ContextMenu::checkOrEnableIfNeeded):
3444         * platform/ContextMenuItem.h:
3445         * platform/LocalizationStrategy.h:
3446         * platform/LocalizedStrings.cpp:
3447         * platform/LocalizedStrings.h:
3448         * platform/android/LocalizedStringsAndroid.cpp:
3449         * platform/brew/LocalizedStringsBrew.cpp:
3450         * platform/efl/LocalizedStringsEfl.cpp:
3451         * platform/gtk/ContextMenuItemGtk.cpp:
3452         (WebCore::gtkStockIDFromContextMenuAction):
3453         * platform/gtk/LocalizedStringsGtk.cpp:
3454         * platform/haiku/LocalizedStringsHaiku.cpp:
3455         * platform/wx/LocalizedStringsWx.cpp:
3456         * rendering/HitTestResult.cpp:
3457         (WebCore::HitTestResult::absoluteMediaURL):
3458         * rendering/HitTestResult.h:
3459
3460 2010-09-16  Andreas Kling  <andreas.kling@nokia.com>
3461
3462         Reviewed by Simon Fraser.
3463
3464         CSS: Fix crash in getTimingFunctionValue()
3465         https://bugs.webkit.org/show_bug.cgi?id=45896
3466
3467         Use a RefPtr to avoid deleting the TimingFunction prematurely.
3468
3469         This is covered by existing tests, e.g transitions/inherit-other-props.html
3470         but will only actually crash on picky platforms (or in valgrind.)
3471
3472         * css/CSSComputedStyleDeclaration.cpp:
3473         (WebCore::getTimingFunctionValue):
3474
3475 2010-09-16  Pavel Feldman  <pfeldman@chromium.org>
3476
3477         Reviewed by Yury Semikhatsky.
3478
3479         Web Inspector: prevent resource timing popover from having scrollers.
3480         https://bugs.webkit.org/show_bug.cgi?id=45883
3481
3482         * inspector/front-end/ResourcesPanel.js:
3483         (WebInspector.ResourcesPanel.prototype._showPopover):
3484
3485 2010-09-15  Philippe Normand  <pnormand@igalia.com>
3486
3487         Reviewed by Eric Carlson.
3488
3489         [GTK] enhanced context menu for media elements
3490         https://bugs.webkit.org/show_bug.cgi?id=45021
3491
3492         New items in the media Element context menu:
3493         - play/pause
3494         - mute/unmute
3495         - controls display control
3496         - switch to fullscreen (for video only)
3497         - loop playback control
3498         - copy media url to clipboard
3499         - open in new window
3500
3501         Test: media/context-menu-actions.html
3502
3503         * page/ContextMenuController.cpp:
3504         (WebCore::ContextMenuController::contextMenuItemSelected):
3505         * platform/ContextMenu.cpp:
3506         (WebCore::ContextMenu::populate):
3507         (WebCore::ContextMenu::checkOrEnableIfNeeded):
3508         * platform/ContextMenuItem.h:
3509         * platform/LocalizationStrategy.h:
3510         * platform/LocalizedStrings.cpp:
3511         (WebCore::contextMenuItemTagOpenMediaInNewWindow):
3512         (WebCore::contextMenuItemTagCopyMediaLinkToClipboard):
3513         (WebCore::contextMenuItemTagToggleMediaControls):
3514         (WebCore::contextMenuItemTagToggleMediaLoop):
3515         (WebCore::contextMenuItemTagEnterVideoFullscreen):
3516         (WebCore::contextMenuItemTagMediaPlay):
3517         (WebCore::contextMenuItemTagMediaPause):
3518         (WebCore::contextMenuItemTagMediaMute):
3519         (WebCore::contextMenuItemTagMediaUnMute):
3520         * platform/LocalizedStrings.h:
3521         * platform/android/LocalizedStringsAndroid.cpp:
3522         (WebCore::contextMenuItemTagOpenMediaInNewWindow):
3523         (WebCore::contextMenuItemTagCopyMediaLinkToClipboard):
3524         (WebCore::contextMenuItemTagToggleMediaControls):
3525         (WebCore::contextMenuItemTagToggleMediaLoop):
3526         (WebCore::contextMenuItemTagEnterVideoFullscreen):
3527         (WebCore::contextMenuItemTagMediaPlay):
3528         (WebCore::contextMenuItemTagMediaPause):
3529         (WebCore::contextMenuItemTagMediaMute):
3530         (WebCore::contextMenuItemTagMediaUnMute):
3531         * platform/brew/LocalizedStringsBrew.cpp:
3532         (WebCore::contextMenuItemTagOpenMediaInNewWindow):
3533         (WebCore::contextMenuItemTagCopyMediaLinkToClipboard):
3534         (WebCore::contextMenuItemTagToggleMediaControls):
3535         (WebCore::contextMenuItemTagToggleMediaLoop):
3536         (WebCore::contextMenuItemTagEnterVideoFullscreen):
3537         (WebCore::contextMenuItemTagMediaPlay):
3538         (WebCore::contextMenuItemTagMediaPause):
3539         (WebCore::contextMenuItemTagMediaMute):
3540         (WebCore::contextMenuItemTagMediaUnMute):
3541         * platform/efl/LocalizedStringsEfl.cpp:
3542         (WebCore::contextMenuItemTagOpenMediaInNewWindow):
3543         (WebCore::contextMenuItemTagCopyMediaLinkToClipboard):
3544         (WebCore::contextMenuItemTagToggleMediaControls):
3545         (WebCore::contextMenuItemTagToggleMediaLoop):
3546         (WebCore::contextMenuItemTagEnterVideoFullscreen):
3547         (WebCore::contextMenuItemTagMediaPlay):
3548         (WebCore::contextMenuItemTagMediaPause):
3549         (WebCore::contextMenuItemTagMediaMute):
3550         (WebCore::contextMenuItemTagMediaUnMute):
3551         * platform/gtk/ContextMenuItemGtk.cpp:
3552         (WebCore::gtkStockIDFromContextMenuAction):
3553         * platform/gtk/LocalizedStringsGtk.cpp:
3554         (WebCore::contextMenuItemTagOpenMediaInNewWindow):
3555         (WebCore::contextMenuItemTagCopyMediaLinkToClipboard):
3556         (WebCore::contextMenuItemTagToggleMediaControls):
3557         (WebCore::contextMenuItemTagToggleMediaLoop):
3558         (WebCore::contextMenuItemTagEnterVideoFullscreen):
3559         (WebCore::contextMenuItemTagMediaPlay):
3560         (WebCore::contextMenuItemTagMediaPause):
3561         (WebCore::contextMenuItemTagMediaMute):
3562         (WebCore::contextMenuItemTagMediaUnMute):
3563         * platform/haiku/LocalizedStringsHaiku.cpp:
3564         (WebCore::contextMenuItemTagOpenMediaInNewWindow):
3565         (WebCore::contextMenuItemTagCopyMediaLinkToClipboard):
3566         (WebCore::contextMenuItemTagToggleMediaControls):
3567         (WebCore::contextMenuItemTagToggleMediaLoop):
3568         (WebCore::contextMenuItemTagEnterVideoFullscreen):
3569         (WebCore::contextMenuItemTagMediaPlay):
3570         (WebCore::contextMenuItemTagMediaPause):
3571         (WebCore::contextMenuItemTagMediaMute):
3572         (WebCore::contextMenuItemTagMediaUnMute):
3573         * platform/wx/LocalizedStringsWx.cpp:
3574         (WebCore::contextMenuItemTagOpenMediaInNewWindow):
3575         (WebCore::contextMenuItemTagCopyMediaLinkToClipboard):
3576         (WebCore::contextMenuItemTagToggleMediaControls):
3577         (WebCore::contextMenuItemTagToggleMediaLoop):
3578         (WebCore::contextMenuItemTagEnterVideoFullscreen):
3579         (WebCore::contextMenuItemTagMediaPlay):
3580         (WebCore::contextMenuItemTagMediaPause):
3581         (WebCore::contextMenuItemTagMediaMute):
3582         (WebCore::contextMenuItemTagMediaUnMute):
3583         * rendering/HitTestResult.cpp:
3584         (WebCore::HitTestResult::absoluteMediaURL):
3585         (WebCore::HitTestResult::mediaSupportsFullscreen):
3586         (WebCore::HitTestResult::mediaElement):
3587         (WebCore::HitTestResult::toggleMediaControlsDisplay):
3588         (WebCore::HitTestResult::toggleMediaLoopPlayback):
3589         (WebCore::HitTestResult::enterFullscreenForVideo):
3590         (WebCore::HitTestResult::mediaControlsEnabled):
3591         (WebCore::HitTestResult::mediaLoopEnabled):
3592         (WebCore::HitTestResult::mediaPlaying):
3593         (WebCore::HitTestResult::toggleMediaPlayState):
3594         (WebCore::HitTestResult::mediaHasAudio):
3595         (WebCore::HitTestResult::mediaMuted):
3596         (WebCore::HitTestResult::toggleMediaMuteState):
3597         * rendering/HitTestResult.h:
3598
3599 2010-09-16  Tony Gentilcore  <tonyg@chromium.org>
3600
3601         Reviewed by Adam Barth.
3602
3603         Crash in WebCore::FrameLoader::shouldInterruptLoadForXFrameOptions
3604         https://bugs.webkit.org/show_bug.cgi?id=45833
3605
3606         Test: fast/parser/x-frame-options-detached-document-crash.html
3607
3608         * dom/Document.cpp:
3609         (WebCore::Document::processHttpEquiv): Other branches in this method already test for a null frame. So it seems to make sense to test that here as well.
3610
3611 2010-09-16  Vangelis Kokkevis  <vangelis@chromium.org>
3612
3613         Reviewed by Darin Fisher.
3614
3615         [chromium] ImageLayerChromium needs to keep a ref to the Image it uses
3616         so that it never tries to access an already destroyed Image.
3617         https://bugs.webkit.org/show_bug.cgi?id=45869
3618
3619         * platform/graphics/chromium/GraphicsLayerChromium.cpp:
3620         (WebCore::GraphicsLayerChromium::setContentsToImage):
3621         * platform/graphics/chromium/ImageLayerChromium.cpp:
3622         (WebCore::ImageLayerChromium::setContents):
3623         (WebCore::ImageLayerChromium::updateContents):
3624         * platform/graphics/chromium/ImageLayerChromium.h:
3625
3626 2010-09-16  Patrick Gansterer  <paroga@paroga.com>
3627
3628         Reviewed by Adam Roben.
3629
3630         [WINCE] Add platform-specific Image methods
3631         https://bugs.webkit.org/show_bug.cgi?id=28272
3632
3633         * platform/graphics/wince/ImageWinCE.cpp: Added.
3634         (WebCore::RGBA32Buffer::asNewNativeImage):
3635         (WebCore::FrameData::clear):
3636         (WebCore::BitmapImage::getHBITMAPOfSize):
3637         (WebCore::BitmapImage::drawFrameMatchingSourceSize):
3638         (WebCore::BitmapImage::draw):
3639         (WebCore::Image::drawPattern):
3640         (WebCore::BitmapImage::drawPattern):
3641         (WebCore::BitmapImage::checkForSolidColor):
3642
3643 2010-09-16  Yury Semikhatsky  <yurys@chromium.org>
3644
3645         Reviewed by Pavel Feldman.
3646
3647         Web Inspector: [REGRESSION] Scripts disappear from scripts panel after navigation
3648         https://bugs.webkit.org/show_bug.cgi?id=45890
3649
3650         * inspector/InspectorController.cpp:
3651         (WebCore::InspectorController::populateScriptObjects):
3652         (WebCore::InspectorController::restoreDebugger):
3653         (WebCore::InspectorController::restoreProfiler):
3654         * inspector/InspectorController.h:
3655
3656 2010-09-16  Satish Sampath  <satish@chromium.org>
3657
3658         Unreviewed, fixing a build break with VS 2008.
3659
3660         Fix build break, add the namespace in a friend declaration to get MSVC recognize it properly.
3661         https://bugs.webkit.org/show_bug.cgi?id=45893
3662
3663         * fileapi/FileWriter.h:
3664
3665 2010-09-15  Philippe Normand  <pnormand@igalia.com>
3666
3667         Reviewed by Martin Robinson.
3668
3669         [GStreamer] XOverlay API changes break the build
3670         https://bugs.webkit.org/show_bug.cgi?id=45810
3671
3672         Cope with the GStreamer XOverlay API change for the upcoming
3673         0.10.31 version.
3674         No new tests, build fix only.
3675
3676         * platform/graphics/gstreamer/GStreamerGWorld.cpp:
3677         (WebCore::GStreamerGWorld::setWindowOverlay):
3678
3679 2010-09-16  Andreas Kling  <andreas.kling@nokia.com>
3680
3681         Reviewed by Tor Arne Vestbø.
3682
3683         [Qt] V8 port: Fix debug build
3684
3685         Add missing inclusion of <wtf/text/CString.h> where necessary for debug builds.
3686
3687         * history/PageCache.cpp:
3688         * html/HTMLElement.cpp:
3689         * html/HTMLMediaElement.cpp:
3690         * loader/DocumentLoader.cpp:
3691         * loader/icon/IconDatabase.cpp:
3692         * loader/icon/IconLoader.cpp:
3693         * storage/AbstractDatabase.cpp:
3694         * storage/Database.cpp:
3695         * storage/DatabaseSync.cpp:
3696         * storage/DatabaseTracker.cpp:
3697
3698 2010-09-16  Alexey Proskuryakov  <ap@apple.com>
3699
3700         Reviewed by Adam Barth.
3701
3702         https://bugs.webkit.org/show_bug.cgi?id=45852
3703         Range::selectNode and selectNodeContents misbehave when argument is in another document
3704
3705         Test: fast/dom/Range/select-node-different-document.html
3706
3707         There is nothing in DOM Traversal spec that says this shouldn't work, and it does work in
3708         Firefox.
3709
3710         * dom/Range.cpp:
3711         (WebCore::Range::setDocument):
3712         (WebCore::Range::selectNode):
3713         (WebCore::Range::selectNodeContents):
3714         * dom/Range.h:
3715
3716 2010-09-16  Andrey Kosyakov  <caseq@chromium.org>
3717
3718         Reviewed by Pavel Feldman.
3719
3720         Web Inspector: [Resources panel] [HAR] Need a way to save timing data.
3721         Added support to export HAR to file from Resources panel (conditional on Preferences)
3722         Added support for HARLog (a higher-level aggregate than HAREntry)
3723         https://bugs.webkit.org/show_bug.cgi?id=45663
3724
3725         * English.lproj/localizedStrings.js:
3726         * inspector/front-end/HAREntry.js:
3727         (WebInspector.HAREntry.prototype.build):
3728         (WebInspector.HAREntry.prototype._buildTimings):
3729         (WebInspector.HAREntry._toMilliseconds):
3730         (WebInspector.HARLog):
3731         (WebInspector.HARLog.prototype.build):
3732         (WebInspector.HARLog.prototype._buildPages):
3733         (WebInspector.HARLog.prototype._buildMainResourceTimings):
3734         (WebInspector.HARLog.prototype._convertResource):
3735         * inspector/front-end/ResourcesPanel.js:
3736         (WebInspector.ResourcesPanel):
3737         (WebInspector.ResourcesPanel.prototype.hide):
3738         (WebInspector.ResourcesPanel.prototype._contextMenu):
3739         (WebInspector.ResourcesPanel.prototype._exportAll):
3740         (WebInspector.ResourcesPanel.prototype._exportResource):
3741         * inspector/front-end/Settings.js:
3742         * inspector/front-end/utilities.js:
3743         ():
3744
3745 2010-09-16  Eric Uhrhane  <ericu@chromium.org>
3746
3747         Reviewed by Jian Li.
3748
3749         Unify FILE_SYSTEM and FILE_WRITER enables under the name FILE_SYSTEM.
3750         https://bugs.webkit.org/show_bug.cgi?id=45798
3751
3752         * CMakeLists.txt:
3753         * Configurations/FeatureDefines.xcconfig:
3754         * GNUmakefile.am:
3755         * WebCore.pro:
3756         * dom/EventTarget.cpp:
3757         * dom/EventTarget.h:
3758         * dom/ExceptionCode.h:
3759         * dom/ScriptExecutionContext.cpp:
3760         (WebCore::ScriptExecutionContext::~ScriptExecutionContext):
3761         * dom/ScriptExecutionContext.h:
3762         * fileapi/AsyncFileWriter.h:
3763         * fileapi/FileEntry.cpp:
3764         * fileapi/FileEntry.h:
3765         * fileapi/FileEntry.idl:
3766         * fileapi/FileError.h:
3767         * fileapi/FileError.idl:
3768         * fileapi/FileException.h:
3769         * fileapi/FileException.idl:
3770         * fileapi/FileStreamProxy.cpp:
3771         * fileapi/FileStreamProxy.h:
3772         * fileapi/FileThread.cpp:
3773         * fileapi/FileThread.h:
3774         * fileapi/FileWriter.cpp:
3775         * fileapi/FileWriter.h:
3776         * fileapi/FileWriter.idl:
3777         * fileapi/FileWriterCallback.h:
3778         * fileapi/FileWriterCallback.idl:
3779         * fileapi/FileWriterClient.h:
3780         * page/DOMWindow.idl:
3781         * platform/AsyncFileStream.h:
3782         * platform/FileStream.cpp:
3783         * platform/FileStream.h:
3784         * platform/FileStreamClient.h:
3785
3786 2010-09-16  Marc-Antoine Ruel  <maruel@chromium.org>
3787
3788         Reviewed by Dimitri Glazkov.
3789
3790         Convert WebCore.gyp to use regexp to excludes files instead of listing them in sources!.
3791
3792         This is necessary because sources! is processed before sources/. This makes
3793         applying broader pattern in sources/ more difficult since it overrides the files
3794         listed in sources!. Having all them in sources/ permits controlling the ordering
3795         of the regexp, thus the final list of included files.
3796
3797         Fix Harfbuzz and VDMX source files includes in WebCore.gypi and WebCore.gyp
3798
3799         https://bugs.webkit.org/show_bug.cgi?id=45823
3800
3801         * WebCore.gyp/WebCore.gyp:
3802         * WebCore.gypi:
3803
3804 2010-09-16  Nat Duca  <nduca@chromium.org>
3805
3806         Reviewed by Darin Fisher.
3807
3808         [chromium] Make compositor obey finish flag
3809         https://bugs.webkit.org/show_bug.cgi?id=45552
3810
3811         The compositor should obey the finish flag on doComposite. This
3812         flag causes the compositor to finish rendering before returning,
3813         which is needed when resizing the window to avoid flashes of green.
3814
3815         * platform/graphics/chromium/LayerRendererChromium.cpp:
3816         (WebCore::LayerRendererChromium::finish):
3817         * platform/graphics/chromium/LayerRendererChromium.h:
3818
3819 2010-09-16  Alejandro G. Castro  <alex@igalia.com>
3820
3821         Reviewed by Xan Lopez.
3822
3823         GTK+ 3.x. updates, gtk_widget_size_request is deprecated and
3824         "activate-slider" style property for scrollbars is gone.
3825
3826         * platform/gtk/PopupMenuGtk.cpp:
3827         (WebCore::PopupMenuGtk::show):
3828         * platform/gtk/gtk2drawing.c:
3829         (moz_gtk_scrollbar_thumb_paint):
3830         (moz_gtk_combo_box_paint):
3831
3832 2010-09-16  Diego Gonzalez  <diegohcg@webkit.org>
3833
3834         Reviewed by Kenneth Rohde Christiansen.
3835
3836         [Qt] Remove FrameLoaderClientQt::webFrame() to use NetworkingContext to get the WebFrame to avoid layering violations
3837         https://bugs.webkit.org/show_bug.cgi?id=42293
3838
3839         * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
3840         (WebCore::MediaPlayerPrivate::commitLoad):
3841
3842 2010-09-16  Ryuan Choi  <ryuan.choi@samsung.com>
3843
3844         Unreviewed build fix for EFL
3845
3846         [EFL] REGRESSION(67567) FontCacheCairo was removed
3847         https://bugs.webkit.org/show_bug.cgi?id=45858
3848
3849         * CMakeListsEfl.txt:
3850
3851 2010-09-16  Yong Li  <yoli@rim.com>
3852
3853         Reviewed by George Staikos.
3854
3855         https://bugs.webkit.org/show_bug.cgi?id=37117
3856
3857         Add platform-independent JPEG/PNG image encoders that
3858         work with big endian RGBA source data.
3859
3860         There's no layout test because this patch does't make
3861         any port start using the encoders.
3862
3863         * platform/image-encoders/JPEGImageEncoder.cpp: Added.
3864         * platform/image-encoders/JPEGImageEncoder.h: Added.
3865         * platform/image-encoders/PNGImageEncoder.cpp: Added.
3866         * platform/image-encoders/PNGImageEncoder.h: Added.
3867
3868 2010-09-15  Jeremy Orlow  <jorlow@chromium.org>
3869
3870         Reviewed by Steve Block.
3871
3872         Allow the embedder to specify the base path for IndexedDB.
3873         https://bugs.webkit.org/show_bug.cgi?id=45815
3874
3875         Existing tests provide coverage. Use the indexedDBPath parameter that's
3876         already on the group settings object. Pass this parameter into the backend
3877         which will use it rather than a hard coded tmp directory location. If
3878         nothing is specified, assume it should be an in-memory temporary database.
3879         (This is useful for bringup and Chromium's incognito mode.)
3880
3881         * storage/IDBFactory.cpp:
3882         (WebCore::IDBFactory::open):
3883         * storage/IDBFactoryBackendImpl.cpp:
3884         (WebCore::openSQLiteDatabase):
3885         (WebCore::createTables):
3886         (WebCore::IDBFactoryBackendImpl::open):
3887         * storage/IDBFactoryBackendImpl.h:
3888         * storage/IDBFactoryBackendInterface.h:
3889
3890 2010-09-16  Yong Li  <yoli@rim.com>
3891
3892         Reviewed by George Staikos.
3893
3894         Fix the bug that GIF image down sampling can miss some lines.
3895         https://bugs.webkit.org/show_bug.cgi?id=45322
3896
3897         Test: fast/images/gif-large-checkerboard.html
3898
3899         * platform/image-decoders/gif/GIFImageDecoder.cpp:
3900         (WebCore::GIFImageDecoder::haveDecodedRow):
3901
3902 2010-09-16  Philippe Normand  <pnormand@igalia.com>
3903
3904         Reviewed by Andreas Kling.
3905
3906         [GStreamer] un-needed header includes in MediaPlayerPrivate
3907         https://bugs.webkit.org/show_bug.cgi?id=45877
3908
3909         Include only the headers we need.
3910         No new tests, #includes cleanup only.
3911
3912         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
3913
3914 2010-09-16  Pavel Feldman  <pfeldman@chromium.org>
3915
3916         Reviewed by Yury Semikhatsky.
3917
3918         Web Inspector: console.group(object) does not allow object to be expanded.
3919         https://bugs.webkit.org/show_bug.cgi?id=45806
3920
3921         * inspector/front-end/ConsoleView.js:
3922         (WebInspector.ConsoleGroup.prototype.addMessage):
3923         * inspector/front-end/treeoutline.js:
3924         (TreeElement.treeElementToggled):
3925
3926 2010-09-08  Jeremy Orlow  <jorlow@chromium.org>
3927
3928         Reviewed by Steve Block.
3929
3930         Complete index support for IndexedDB
3931         https://bugs.webkit.org/show_bug.cgi?id=45386
3932
3933         Add the rest of the index related API for IndexedDB.  This
3934         includes cursor suport.  A bunch of code was also refactored
3935         since it is shared between indexes and objectStores.
3936
3937         Tests: storage/indexeddb/index-basics.html
3938                storage/indexeddb/index-cursor.html
3939                + additions to others.
3940
3941         * storage/IDBAny.cpp:
3942         (WebCore::IDBAny::set):
3943         * storage/IDBCursor.cpp:
3944         (WebCore::IDBCursor::value):
3945         * storage/IDBCursorBackendImpl.cpp:
3946         (WebCore::IDBCursorBackendImpl::IDBCursorBackendImpl):
3947         (WebCore::IDBCursorBackendImpl::value):
3948         (WebCore::IDBCursorBackendImpl::update):
3949         (WebCore::IDBCursorBackendImpl::continueFunction):
3950         (WebCore::IDBCursorBackendImpl::remove):
3951         (WebCore::IDBCursorBackendImpl::loadCurrentRow):
3952         (WebCore::IDBCursorBackendImpl::database):
3953         * storage/IDBCursorBackendImpl.h:
3954         (WebCore::IDBCursorBackendImpl::create):
3955         * storage/IDBCursorBackendInterface.h:
3956         * storage/IDBFactoryBackendImpl.cpp:
3957         (WebCore::createTables):
3958         * storage/IDBIndex.cpp:
3959         (WebCore::IDBIndex::openObjectCursor):
3960         (WebCore::IDBIndex::openCursor):
3961         (WebCore::IDBIndex::getObject):
3962         (WebCore::IDBIndex::get):
3963         * storage/IDBIndex.h:
3964         (WebCore::IDBIndex::storeName):
3965         * storage/IDBIndex.idl:
3966         * storage/IDBIndexBackendImpl.cpp:
3967         (WebCore::IDBIndexBackendImpl::storeName):
3968         (WebCore::openCursorInternal):
3969         (WebCore::IDBIndexBackendImpl::openObjectCursor):
3970         (WebCore::IDBIndexBackendImpl::openCursor):
3971         (WebCore::getInternal):
3972         (WebCore::IDBIndexBackendImpl::getObject):
3973         (WebCore::IDBIndexBackendImpl::get):
3974         * storage/IDBIndexBackendImpl.h:
3975         (WebCore::IDBIndexBackendImpl::objectStore):
3976         * storage/IDBIndexBackendInterface.h:
3977         * storage/IDBKey.cpp:
3978         (WebCore::IDBKey::fromQuery):
3979         (WebCore::IDBKey::whereSyntax):
3980         (WebCore::IDBKey::leftCursorWhereFragment):
3981         (WebCore::IDBKey::rightCursorWhereFragment):
3982         * storage/IDBKey.h:
3983         * storage/IDBKeyRange.cpp:
3984         (WebCore::IDBKeyRange::leftWhereClauseComparisonOperator):
3985         (WebCore::IDBKeyRange::rightWhereClauseComparisonOperator):
3986         * storage/IDBKeyRange.h:
3987         * storage/IDBObjectStoreBackendImpl.cpp:
3988         (WebCore::IDBObjectStoreBackendImpl::openCursor):
3989         * storage/IDBRequest.cpp:
3990         (WebCore::IDBRequest::timerFired):
3991
3992 2010-09-15  Simon Fraser  <simon.fraser@apple.com>
3993
3994         Fix chromium build.
3995         
3996         * platform/graphics/chromium/GraphicsLayerChromium.cpp:
3997
3998 2010-09-15  Simon Fraser  <simon.fraser@apple.com>
3999
4000         Reviewed by Adam Roben.
4001
4002         https://bugs.webkit.org/show_bug.cgi?id=44715
4003         maps.google.com flips upside down when zooming map using trackpad in WebKit2 on Mac
4004
4005         Remove the concept of geometry flipping from GraphicsLayer; geometry flipping will
4006         be taken care of in platform code without the need to complicate the GraphicsLayer API.
4007         
4008         RenderLayerCompositor no longer sets the geometry orientation for the root
4009         platform layer; platform-specific code does this instead.
4010         
4011         This fixes flipped layers in WebKit2, since WebKit2 was already flipping
4012         geometry, and then RenderLayerCompositor was doing an additional flip.
4013
4014         * platform/graphics/GraphicsLayer.cpp:
4015         (WebCore::GraphicsLayer::GraphicsLayer):
4016         * platform/graphics/GraphicsLayer.h:
4017         * platform/graphics/chromium/GraphicsLayerChromium.cpp:
4018         * platform/graphics/chromium/GraphicsLayerChromium.h:
4019         * platform/graphics/mac/GraphicsLayerCA.h:
4020         * platform/graphics/mac/GraphicsLayerCA.mm:
4021         (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers):
4022         (WebCore::GraphicsLayerCA::swapFromOrToTiledLayer):
4023         (WebCore::GraphicsLayerCA::defaultContentsOrientation):
4024         * platform/graphics/qt/GraphicsLayerQt.cpp:
4025         (WebCore::GraphicsLayerQtImpl::flushChanges):
4026         * platform/graphics/qt/GraphicsLayerQt.h:
4027         * platform/graphics/win/GraphicsLayerCACF.cpp:
4028         (WebCore::GraphicsLayerCACF::swapFromOrToTiledLayer):
4029         * platform/graphics/win/GraphicsLayerCACF.h:
4030         * platform/graphics/win/WKCACFLayerRenderer.cpp:
4031         (WebCore::WKCACFLayerRenderer::setRootChildLayer):
4032         * rendering/RenderLayerCompositor.cpp:
4033         (WebCore::RenderLayerCompositor::ensureRootPlatformLayer):
4034
4035 2010-09-15  Julien Chaffraix  <jchaffraix@codeaurora.org>
4036
4037         Unreviewed.
4038
4039         Reverting my changes as it is breaking several tests on Gtk and Qt.
4040
4041         * css/CSSParser.cpp:
4042         (WebCore::CSSParser::parseColor):
4043         * css/CSSParser.h:
4044         * html/canvas/CanvasRenderingContext2D.cpp:
4045         (WebCore::CanvasRenderingContext2D::setStrokeColor):
4046         (WebCore::CanvasRenderingContext2D::setFillColor):
4047         * html/canvas/CanvasStyle.cpp:
4048         (WebCore::CanvasStyle::createFromString):
4049         * html/canvas/CanvasStyle.h:
4050
4051 2010-09-15  Julien Chaffraix  <jchaffraix@codeaurora.org>
4052
4053         Reviewed by Andreas Kling.
4054
4055         Parse system colors in the HTML5 canvas context.
4056         https://bugs.webkit.org/show_bug.cgi?id=39168
4057
4058         Test: fast/css/test-setting-canvas-color.html
4059
4060         Based on previous work by Jan Erik Hanssen  <jhanssen@codeaurora.org>
4061
4062         * css/CSSParser.cpp:
4063         (WebCore::CSSParser::parseColor): Changed the function to better match our
4064         early return policy. Also we now return false when we don't parse the color.
4065         This is needed for createFromString to fallback to using parseSystemColor.
4066
4067         (WebCore::CSSParser::parseSystemColor): Made use of the RenderTheme to get
4068         the system colors.
4069
4070         * css/CSSParser.h: Added the new parseSystemColor method.
4071
4072         * html/canvas/CanvasRenderingContext2D.cpp:
4073         (WebCore::CanvasRenderingContext2D::setStrokeColor): Pass the document to createFromString.
4074         (WebCore::CanvasRenderingContext2D::setFillColor): Ditto.
4075         * html/canvas/CanvasStyle.cpp:
4076         (WebCore::CanvasStyle::createFromString): Try to parse the color using CSSParser::parseColor
4077         and fall back to parseSystemColor if it did not work.
4078
4079         * html/canvas/CanvasStyle.h: Added the new Document* parameter to createFromString.
4080
4081 2010-09-14  Erik Arvidsson  <arv@chromium.org>
4082
4083         Reviewed by Darin Adler.
4084
4085         getComputedStyle() returns different values for different zoom levels
4086         https://bugs.webkit.org/show_bug.cgi?id=32230
4087
4088         Test: fast/css/getComputedStyle/computed-style-with-zoom.html
4089
4090         * css/CSSComputedStyleDeclaration.cpp:
4091         (WebCore::zoomAdjustedPixelValue):
4092         (WebCore::zoomAdjustedNumberValue):
4093         (WebCore::valueForReflection):
4094         (WebCore::getPositionOffsetValue):
4095         (WebCore::getBorderRadiusCornerValue):
4096         (WebCore::computedTransform):
4097         (WebCore::CSSComputedStyleDeclaration::getFontSizeCSSValuePreferringKeyword):
4098         (WebCore::CSSComputedStyleDeclaration::valueForShadow):
4099         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
4100         * css/CSSComputedStyleDeclaration.h:
4101         * css/SVGCSSComputedStyleDeclaration.cpp:
4102         (WebCore::CSSComputedStyleDeclaration::getSVGPropertyCSSValue):
4103         * rendering/RenderObject.h:
4104         (WebCore::adjustForAbsoluteZoom):
4105         * rendering/style/RenderStyle.h:
4106         (WebCore::adjustForAbsoluteZoom):
4107
4108 2010-09-14  Martin Robinson  <mrobinson@igalia.com>
4109
4110         Reviewed by Xan Lopez.
4111
4112         [GTK] Fully separate Pango and FreeType font backends
4113         https://bugs.webkit.org/show_bug.cgi?id=27442
4114
4115         Split FontPlatformData.h into separate versions for Pango, FreeType and WinCairo.
4116         Include the correct file via #ifdef'd includes, like the Chromium port. Also split
4117         FontCacheCairo.cpp into Pango and FreeType versions, as they had almost no code in
4118         common. Finally, rename FontPlatformDataCairo to FontPlatformDataFreeType, as this
4119         compilation unit is used only by the FreeType backend. This change is important to
4120         prevent upcoming fixes to the FreeType backend from affecting other backends.
4121
4122         No new tests as functionality has not changed.
4123
4124         * CMakeListsEfl.txt: Update source lists.
4125         * GNUmakefile.am: Update source lists.
4126         * platform/graphics/cairo/FontCacheCairo.cpp: Removed.
4127         * platform/graphics/cairo/FontCacheFreeType.cpp: Added.
4128         (WebCore::FontCache::platformInit):
4129         (WebCore::FontCache::getFontDataForCharacters):
4130         (WebCore::FontCache::getSimilarFontPlatformData):
4131         (WebCore::FontCache::getLastResortFallbackFont):
4132         (WebCore::FontCache::getTraitsInFamily):
4133         (WebCore::isWellKnownFontName):
4134         (WebCore::FontCache::createFontPlatformData):
4135         * platform/graphics/cairo/FontPlatformData.h:
4136         * platform/graphics/cairo/FontPlatformDataFreeType.cpp: Renamed from WebCore/platform/graphics/cairo/FontPlatformDataCairo.cpp.
4137         (WebCore::FontPlatformData::FontPlatformData):
4138         (WebCore::FontPlatformData::operator=):
4139         (WebCore::FontPlatformData::init):
4140         (WebCore::FontPlatformData::~FontPlatformData):
4141         (WebCore::FontPlatformData::isFixedPitch):
4142         (WebCore::FontPlatformData::operator==):
4143         (WebCore::FontPlatformData::description):
4144         * platform/graphics/cairo/FontPlatformDataFreeType.h: Added.
4145         (WebCore::FontPlatformData::FontPlatformData):
4146         (WebCore::FontPlatformData::size):
4147         (WebCore::FontPlatformData::setSize):
4148         (WebCore::FontPlatformData::syntheticBold):
4149         (WebCore::FontPlatformData::syntheticOblique):
4150         (WebCore::FontPlatformData::scaledFont):
4151         (WebCore::FontPlatformData::hash):
4152         (WebCore::FontPlatformData::isHashTableDeletedValue):
4153         (WebCore::FontPlatformData::hashTableDeletedFontValue):
4154         * platform/graphics/gtk/FontCachePango.cpp: Added.
4155         (WebCore::FontCache::platformInit):
4156         (WebCore::FontCache::getFontDataForCharacters):
4157         (WebCore::FontCache::getSimilarFontPlatformData):
4158         (WebCore::FontCache::getLastResortFallbackFont):
4159         (WebCore::FontCache::getTraitsInFamily):
4160         (WebCore::FontCache::createFontPlatformData):
4161         * platform/graphics/gtk/FontPlatformDataPango.h: Added.
4162         (WebCore::FontPlatformData::FontPlatformData):
4163         (WebCore::FontPlatformData::size):
4164         (WebCore::FontPlatformData::setSize):
4165         (WebCore::FontPlatformData::syntheticBold):
4166         (WebCore::FontPlatformData::syntheticOblique):
4167         (WebCore::FontPlatformData::scaledFont):
4168         (WebCore::FontPlatformData::hash):
4169         (WebCore::FontPlatformData::isHashTableDeletedValue):
4170         (WebCore::FontPlatformData::hashTableDeletedFontValue):
4171         * platform/graphics/win/FontPlatformDataCairoWin.h: Added.
4172         (WebCore::FontPlatformData::FontPlatformData):
4173         (WebCore::FontPlatformData::hfont):
4174         (WebCore::FontPlatformData::useGDI):
4175         (WebCore::FontPlatformData::fontFace):
4176         (WebCore::FontPlatformData::size):
4177         (WebCore::FontPlatformData::setSize):
4178         (WebCore::FontPlatformData::syntheticBold):
4179         (WebCore::FontPlatformData::syntheticOblique):
4180         (WebCore::FontPlatformData::scaledFont):
4181         (WebCore::FontPlatformData::hash):
4182         (WebCore::FontPlatformData::isHashTableDeletedValue):
4183
4184 2010-09-15  Chris Fleizach  <cfleizach@apple.com>
4185
4186         Reviewed by Simon Fraser.
4187
4188         AX: when text is auto-truncated, accessibility bounds are wrong
4189         https://bugs.webkit.org/show_bug.cgi?id=45793
4190
4191         Allow accessibility to retrieve the absoluteQuads of a text node that
4192         clips to the ellipsis.
4193         
4194         Test: accessibility/ellipsis-text.html
4195
4196         * accessibility/AccessibilityRenderObject.cpp:
4197         (WebCore::AccessibilityRenderObject::boundingBoxRect):
4198         * rendering/RenderText.cpp:
4199         (WebCore::ellipsisRectForBox):
4200             Make a common method to retrieve the ellipsis rect.
4201         (WebCore::RenderText::absoluteQuads):
4202             Default into the absoluteQuads method that allows for ellipsis clipping.