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