Web Inspector: sometimes ReceiveResponse event is attached to wrong parent.
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-07-22  Ilya Tikhonovsky  <loislo@chromium.org>
2
3         Web Inspector: sometimes ReceiveResponse event is attached to wrong parent.
4         https://bugs.webkit.org/show_bug.cgi?id=65016
5
6         Reviewed by Yury Semikhatsky.
7
8         Test: inspector/timeline/timeline-receive-response-event.html
9
10         * inspector/InspectorTimelineAgent.cpp:
11         (WebCore::InspectorTimelineAgent::didInstallTimer):
12         (WebCore::InspectorTimelineAgent::didRemoveTimer):
13         (WebCore::InspectorTimelineAgent::didScheduleResourceRequest):
14         (WebCore::InspectorTimelineAgent::didFinishLoadingResource):
15         (WebCore::InspectorTimelineAgent::didTimeStamp):
16         (WebCore::InspectorTimelineAgent::didMarkDOMContentEvent):
17         (WebCore::InspectorTimelineAgent::didMarkLoadEvent):
18         (WebCore::InspectorTimelineAgent::appendRecord):
19         * inspector/InspectorTimelineAgent.h:
20         * inspector/front-end/TimelinePanel.js:
21         (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
22
23 2011-07-22  Kentaro Hara  <haraken@google.com>
24
25         REGRESSION(r89535): Form reset does not repaint a file upload control.
26         https://bugs.webkit.org/show_bug.cgi?id=65008
27
28         Reviewed by Kent Tamura.
29
30         This patch fixes the code so that the file upload control is repainted
31         in updateFromElement() if no files are selected.
32
33         Tests: fast/forms/file-input-reset.html
34
35         * rendering/RenderFileUploadControl.cpp:
36         (WebCore::RenderFileUploadControl::updateFromElement): Calls repaint() if no files are selected.
37
38 2011-07-22  Ilya Tikhonovsky  <loislo@chromium.org>
39
40         Web Inspector: the max depth of the Timeline events' stack trace should be customizable.
41         https://bugs.webkit.org/show_bug.cgi?id=65023
42
43         Reviewed by Yury Semikhatsky.
44
45         * inspector/Inspector.json:
46         * inspector/InspectorController.cpp:
47         (WebCore::InspectorController::startTimelineProfiler):
48         * inspector/InspectorTimelineAgent.cpp:
49         (WebCore::InspectorTimelineAgent::pushGCEventRecords):
50         (WebCore::InspectorTimelineAgent::restore):
51         (WebCore::InspectorTimelineAgent::start):
52         (WebCore::InspectorTimelineAgent::didInstallTimer):
53         (WebCore::InspectorTimelineAgent::didRemoveTimer):
54         (WebCore::InspectorTimelineAgent::didScheduleResourceRequest):
55         (WebCore::InspectorTimelineAgent::willSendResourceRequest):
56         (WebCore::InspectorTimelineAgent::didFinishLoadingResource):
57         (WebCore::InspectorTimelineAgent::didTimeStamp):
58         (WebCore::InspectorTimelineAgent::didMarkDOMContentEvent):
59         (WebCore::InspectorTimelineAgent::didMarkLoadEvent):
60         (WebCore::InspectorTimelineAgent::InspectorTimelineAgent):
61         (WebCore::InspectorTimelineAgent::pushCurrentRecord):
62         * inspector/InspectorTimelineAgent.h:
63         * inspector/TimelineRecordFactory.cpp:
64         (WebCore::TimelineRecordFactory::createGenericRecord):
65         * inspector/TimelineRecordFactory.h:
66         * inspector/front-end/TimelineManager.js:
67         (WebInspector.TimelineManager.prototype.start):
68
69 2011-07-22  Sheriff Bot  <webkit.review.bot@gmail.com>
70
71         Unreviewed, rolling out r91024.
72         http://trac.webkit.org/changeset/91024
73         https://bugs.webkit.org/show_bug.cgi?id=65017
74
75         number of problems happened with invisible elements which grab
76         pointer events. (Requested by loislo on #webkit).
77
78         * inspector/front-end/inspector.css:
79         (.panel):
80         (.panel.visible):
81
82 2011-07-22  Jia Pu  <jpu@apple.com>
83
84         Reviewed by Darin Adler.
85
86         [Mac] Need to make sure autocorrection panel is dismissed in Document::setFocusNode().
87         https://bugs.webkit.org/show_bug.cgi?id=64824
88         <rdar://problem/9624232>
89
90         * editing/Editor.cpp:
91         (WebCore::Editor::textFieldDidEndEditing): Dismiss autocorrection panel when current node losing focus.
92
93 2011-07-21  Kent Tamura  <tkent@chromium.org>
94
95         A trivial fix for r91550.
96         https://bugs.webkit.org/show_bug.cgi?id=65001
97
98         Need to update placeholder visibility when the owner elemnent style is changed.
99
100         * html/HTMLTextFormControlElement.h: Make updatePlaceholderVisibility() public.
101         * rendering/RenderTextControl.cpp:
102         (WebCore::RenderTextControl::styleDidChange):
103         Call updatePlaceholderVisibility().
104
105 2011-07-21  Pratik Solanki  <psolanki@apple.com>
106
107         https://bugs.webkit.org/show_bug.cgi?id=65002
108         Get authentication to work with USE(CFNETWORK) on Mac
109
110         Reviewed by David Kilzer.
111
112         Instead of creating a new CFURLAuthChallengeRef, we save and reuse the same object as the
113         one given to us by CFNetwork.
114
115         * platform/network/mac/AuthenticationMac.mm:
116         (-[WebCoreAuthenticationClientAsChallengeSender setCFChallenge:]): Accessor methods for the
117         new CFURLAuthChallengeRef ivar.
118         (-[WebCoreAuthenticationClientAsChallengeSender cfChallenge]):
119         (WebCore::core): Create AuthenticationChallenge using the saved CFURLAuthChallengeRef.
120         (WebCore::mac): Use the CFURLAuthChallengeRef object in AuthenticationChallenge instead of
121         creating a new one.
122
123 2011-07-21  Kent Tamura  <tkent@chromium.org>
124
125         REGRESSION(r90971): Placeholder and search cancel button are visible even in elements with visibility:hidden.
126         https://bugs.webkit.org/show_bug.cgi?id=65001
127
128         Reviewed by Dimitri Glazkov.
129
130         Tests: fast/forms/placeholder-in-invisible-elements.html
131                fast/forms/search-cancel-in-invisible-elements.html
132
133         * html/HTMLTextFormControlElement.cpp:
134         (WebCore::HTMLTextFormControlElement::placeholderShouldBeVisible):
135         Don't show the placeholder if the 'visibility' property of the owner element is 'hidden.'
136         * rendering/RenderTextControlSingleLine.cpp:
137         (WebCore::RenderTextControlSingleLine::visibilityForCancelButton): ditto.
138
139 2011-07-21  Shinya Kawanaka  <shinyak@google.com>
140
141         The input[type="number"] with step="any" should not suffer from step mismatch.
142         https://bugs.webkit.org/show_bug.cgi?id=64858
143
144         Reviewed by Kent Tamura.
145
146         Added check step="any" not to suffer from step mismatch.
147
148         * html/HTMLInputElement.cpp:
149         (WebCore::HTMLInputElement::applyStep): Added check step="any".
150         (WebCore::HTMLInputElement::alignValueForStep): Added.
151
152 2011-07-21  MORITA Hajime  <morrita@google.com>
153
154         [Refactoring] ShadowContentSelector should be ShadowInclusionSelector
155         https://bugs.webkit.org/show_bug.cgi?id=64850
156
157         Reviewed by Dimitri Glazkov.
158
159         Renamed:
160         - ShadowContentSelector -> ShadowInclusionSelector
161         - ShadowContentSelector::findInclusionFor -> ShadowInclusionSelector::findFor
162         - ShadowContentSelector::selectInclusion -> ShadowInclusionSelector::select
163         - ShadowContentSelector::unselectInclusion -> ShadowInclusionSelector::unselect
164         - ShadowContentSelector::didSelectInclusion -> ShadowInclusionSelector::didSelect
165         - ShadowContentSelector::willSelectInclusionOver -> ShadowInclusionSelector::willSelectOver
166         - ShadowContentSelector::hasChildren -> ShadowInclusionSelector::hasCandidates
167         
168         No new tests. Just a textual change.
169
170         * CMakeLists.txt:
171         * GNUmakefile.list.am:
172         * WebCore.gypi:
173         * WebCore.pro:
174         * WebCore.vcproj/WebCore.vcproj:
175         * WebCore.xcodeproj/project.pbxproj:
176         * dom/DOMAllInOne.cpp:
177         * dom/NodeRenderingContext.cpp:
178         * dom/ShadowContentElement.cpp:
179         (WebCore::ShadowContentElement::attach):
180         (WebCore::ShadowContentElement::detach):
181         * dom/ShadowInclusionSelector.cpp: Renamed from Source/WebCore/dom/ShadowContentSelector.cpp.
182         (WebCore::ShadowInclusion::append):
183         (WebCore::ShadowInclusion::unlink):
184         (WebCore::ShadowInclusionList::ShadowInclusionList):
185         (WebCore::ShadowInclusionList::~ShadowInclusionList):
186         (WebCore::ShadowInclusionList::find):
187         (WebCore::ShadowInclusionList::clear):
188         (WebCore::ShadowInclusionList::append):
189         (WebCore::ShadowInclusionSelector::ShadowInclusionSelector):
190         (WebCore::ShadowInclusionSelector::~ShadowInclusionSelector):
191         (WebCore::ShadowInclusionSelector::select):
192         (WebCore::ShadowInclusionSelector::unselect):
193         (WebCore::ShadowInclusionSelector::findFor):
194         (WebCore::ShadowInclusionSelector::didSelect):
195         (WebCore::ShadowInclusionSelector::willSelectOver):
196         * dom/ShadowInclusionSelector.h: Renamed from Source/WebCore/dom/ShadowContentSelector.h.
197         (WebCore::ShadowInclusion::includer):
198         (WebCore::ShadowInclusion::content):
199         (WebCore::ShadowInclusion::next):
200         (WebCore::ShadowInclusion::previous):
201         (WebCore::ShadowInclusion::ShadowInclusion):
202         (WebCore::ShadowInclusion::create):
203         (WebCore::ShadowInclusionList::first):
204         (WebCore::ShadowInclusionList::last):
205         (WebCore::ShadowInclusionList::isEmpty):
206         (WebCore::ShadowInclusionSet::add):
207         (WebCore::ShadowInclusionSet::remove):
208         (WebCore::ShadowInclusionSet::isEmpty):
209         (WebCore::ShadowInclusionSet::Translator::hash):
210         (WebCore::ShadowInclusionSet::Translator::equal):
211         (WebCore::ShadowInclusionSet::Hash::hash):
212         (WebCore::ShadowInclusionSet::Hash::equal):
213         (WebCore::ShadowInclusionSet::find):
214         (WebCore::ShadowInclusionSelector::hasCandidates):
215         * dom/ShadowRoot.cpp:
216         (WebCore::ShadowRoot::includerFor):
217         (WebCore::ShadowRoot::attach):
218         (WebCore::ShadowRoot::inclusions):
219         (WebCore::ShadowRoot::ensureInclusions):
220         * dom/ShadowRoot.h:
221
222 2011-07-21  Robin Qiu  <robin.qiu.dev@gmail.com>
223
224         https://bugs.webkit.org/show_bug.cgi?id=60737
225
226         ThumbPosition() in ScrollbarTheme should be ceiled before returned.
227         Otherwise, some topest/leftest content can not be shown by dragging
228         scrollbar thumb.
229
230
231         Reviewed by Antonio Gomes.
232
233         Test: scrollbars/scrollbar-drag-thumb-with-large-content.html
234
235         * platform/ScrollbarThemeComposite.cpp:
236         (WebCore::ScrollbarThemeComposite::thumbPosition):
237         * platform/qt/ScrollbarThemeQt.cpp:
238         (WebCore::ScrollbarThemeQt::thumbPosition):
239
240 2011-07-21  Simon Fraser  <simon.fraser@apple.com>
241
242         GraphicsLayers in subframes can get sync'd multiple times
243         https://bugs.webkit.org/show_bug.cgi?id=52489
244
245         Reviewed by James Robinson.
246         
247         Avoid doing a 'syncCompositingState' pass on the GraphicsLayers
248         for subframes, when those GraphicsLayers are rooted in the
249         parent document.
250
251         * page/FrameView.cpp:
252         (WebCore::FrameView::syncCompositingStateForThisFrame): Add a parameter
253         that contains the rootmost frame on which sync was called. This is used
254         to indicate to the compositor whether it's the root of the sync.
255         (WebCore::FrameView::syncCompositingStateIncludingSubframes): Pass the current
256         Frame in.
257         (WebCore::FrameView::paintContents): The sync is for this frame, so pass m_frame.
258         * page/FrameView.h:
259         * rendering/RenderLayerCompositor.cpp:
260         (WebCore::RenderLayerCompositor::flushPendingLayerChanges): New parameter
261         to specify whether this compositor is in the rootmost Frame being flushed.
262         We can avoid doing work if we know that flushing some ancestor frame would
263         have also traversed our GraphicsLayers.
264         * rendering/RenderLayerCompositor.h:
265         (WebCore::RenderLayerCompositor::isFlushingLayers): Make this private, since
266         callers are probably most intersted in enclosingCompositorFlushingLayers().
267
268 2011-07-21  Rafael Brandao  <rafael.lobo@openbossa.org>
269
270         Local files cannot load icons.
271         https://bugs.webkit.org/show_bug.cgi?id=62459
272         
273         Previous policy only allowed favicons for pages whose protocol was part of HTTP family.
274         Changed that to allow to any url that's not empty and whose protocol is not "about".
275         Also added this check where it attempts to start loading the favicon, so it can avoid
276         wasting time downloading a resource that won't be stored and won't be used.
277
278         Reviewed by Adam Barth.
279
280         Test: manual-tests/resources/favicon-loads-for-local-files.html
281
282         * loader/icon/IconController.cpp:
283         (WebCore::IconController::startLoader): Added check to avoid to request a favicon
284         when there's no way to store it.
285         
286         * loader/icon/IconDatabase.cpp:
287         (WebCore::IconDatabase::documentCanHaveIcon): Renamed function "pageCanHaveIcon"
288         to reflect better which url we're handling.
289         
290         (WebCore::IconDatabase::synchronousIconForPageURL): Ditto.
291         (WebCore::IconDatabase::synchronousIconURLForPageURL): Ditto.
292         (WebCore::IconDatabase::retainIconForPageURL): Ditto.
293         (WebCore::IconDatabase::releaseIconForPageURL): Ditto.
294         (WebCore::IconDatabase::setIconURLForPageURL): Ditto.
295         (WebCore::IconDatabase::getOrCreatePageURLRecord): Ditto.
296         (WebCore::IconDatabase::importIconURLForPageURL): Ditto.
297         (WebCore::IconDatabase::performURLImport): Ditto.
298         * loader/icon/IconDatabase.h:
299         * loader/icon/IconDatabaseBase.h:
300         (WebCore::IconDatabaseBase::documentCanHaveIcon): Added it as virtual to replace its
301         default behavior of not allowing favicons when we have IconDatabase enabled.
302         
303         * manual-tests/resources/favicon-loads-for-local-files.html: Added.
304         * manual-tests/resources/favicon.png: Added.
305
306 2011-07-21  Kulanthaivel Palanichamy  <kulanthaivel@codeaurora.org>
307
308         Fix for bug 64046 - Wrong image height in absolutely positioned div in
309         relatively positioned parent with bottom padding.
310         https://bugs.webkit.org/show_bug.cgi?id=64046
311
312         Reviewed by David Hyatt.
313
314         Test: fast/css/absolute-child-with-percent-height-inside-relative-parent.html
315
316         * rendering/RenderBox.cpp:
317         (WebCore::RenderBox::availableLogicalHeightUsing):
318
319 2011-07-21  Gavin Peters  <gavinp@chromium.org>
320
321         Extend the protector of a CSS style sheet.  Because checkLoaded() can recursively delete
322         parent style elements, the protector should be extended to include the parent call.
323
324         https://bugs.webkit.org/show_bug.cgi?id=64736
325
326         Reviewed by Simon Fraser.
327
328         Test: fast/css/css-imports-2.html
329
330         * css/CSSStyleSheet.cpp:
331         (WebCore::CSSStyleSheet::checkLoaded):
332
333 2011-07-21  Kenneth Russell  <kbr@google.com>
334
335         Update webglcontextlost / webglcontextrestored delivery to match spec changes
336         https://bugs.webkit.org/show_bug.cgi?id=58621
337
338         Reviewed by James Robinson.
339
340         Updated conditions under which webglcontextrestored event is
341         delivered to be spec compliant.
342
343         * html/canvas/WebGLRenderingContext.cpp:
344         (WebCore::WebGLRenderingContext::WebGLRenderingContext):
345         (WebCore::WebGLRenderingContext::loseContext):
346         (WebCore::WebGLRenderingContext::maybeRestoreContext):
347         * html/canvas/WebGLRenderingContext.h:
348
349 2011-07-21  Dave Hyatt  <hyatt@apple.com>
350
351         https://bugs.webkit.org/show_bug.cgi?id=64975
352         Elements that have columns (e.g., column-width or column-count non-auto) and elements that have
353         column-spans establish block formatting contexts, and therefore they should not be allowing
354         child margins to collapse with their own margins.
355
356         Reviewed by Beth Dakin.
357
358         Covered by existing tests.
359
360         * rendering/RenderBlock.cpp:
361         (WebCore::RenderBlock::MarginInfo::MarginInfo):
362
363 2011-07-21  Matthew Delaney  <mdelaney@apple.com>
364
365         Add fast path for ImageBuffer::draw, Take 2.
366         https://bugs.webkit.org/show_bug.cgi?id=64535
367
368         Reviewed by Simon Fraser.
369
370         No new tests. This patch doesn't change behavior; current tests are sufficient.
371
372         * platform/graphics/GraphicsContext.cpp:
373         (WebCore::GraphicsContext::drawImage): Moved the main method version next to wrapper versions.
374
375         * platform/graphics/ImageBuffer.h:
376         1) Added BackingStoreCopy enum for choosing to copy backing store or not in copyImage().
377         2) Added copyNativeImage() behind USE(CG) - same as copyImage() but gives NativeImagePtr.
378         * platform/graphics/cg/ImageBufferCG.cpp: Added new methods described above.
379
380         * platform/graphics/GraphicsContext.h: Adding drawNativeImage() for fast draw path.
381         * platform/graphics/cg/GraphicsContextCG.cpp:
382         (WebCore::GraphicsContext::drawNativeImage): Added. Draws a nativeImagePtr into context.
383
384         * platform/graphics/Image.h: Added imageWithColorSpace behind CG platform ifdef
385         * platform/graphics/cg/ImageCG.cpp:
386         (WebCore::BitmapImage::draw): Refactored out actual image drawing code into GraphicsContext,
387         so that it can be used by more than just BitmapImage without having to copy code.
388         (WebCore::Image::imageWithColorSpace): Made into an Image class function.
389
390         Updated copyImage() to use BackingStoreCopy:
391         * platform/graphics/qt/ImageBufferQt.cpp
392         * platform/graphics/filters/FETile.cpp
393         * platform/graphics/cairo/ImageBufferCairo.cpp
394         * platform/graphics/skia/ImageBufferSkia.cpp
395         * platform/graphics/wx/ImageBufferWx.cpp
396         * platform/graphics/wince/ImageBufferWinCE.cpp
397         * svg/SVGFEImageElement.cpp
398         * svg/graphics/SVGImage.cpp
399         * html/HTMLCanvasElement.cpp
400         * html/canvas/WebGLRenderingContext.cpp
401         * rendering/svg/RenderSVGResourcePattern.cpp
402
403 2011-07-21  David Kilzer  <ddkilzer@apple.com>
404
405         <http://webkit.org/b/64972> Clean up generated HTMLEntityTable.cpp output
406
407         Reviewed by Eric Seidel.
408
409         * html/parser/create-html-entity-table:
410         - Fix duplicate "EntityName" suffix on local variables (changes
411           fooSemicolonEntityNameEntityName to fooSemicolonEntityName)
412           for all 2138 symbols.
413         - Add newlines to make source file human-readable (as originally
414           intended).
415         - Add static (const) keywords to local variables that are never
416           referenced externally.
417
418 2011-07-21  Mark Pilgrim  <pilgrim@chromium.org>
419
420         Remove LegacyDefaultOptionalArguments flag from FileAPI
421         https://bugs.webkit.org/show_bug.cgi?id=64539
422
423         Reviewed by Adam Barth.
424
425         No new tests, all existing tests pass.
426
427         * fileapi/Blob.idl:
428         * fileapi/DirectoryEntry.idl:
429         * fileapi/DirectoryEntrySync.idl:
430         * fileapi/DirectoryReader.idl:
431         * fileapi/EntriesCallback.idl:
432         * fileapi/Entry.idl:
433         * fileapi/EntryArray.idl:
434         * fileapi/EntryArraySync.idl:
435         * fileapi/EntryCallback.idl:
436         * fileapi/EntrySync.idl:
437         * fileapi/ErrorCallback.idl:
438         * fileapi/FileCallback.idl:
439         * fileapi/FileEntry.idl:
440         * fileapi/FileList.idl:
441         * fileapi/FileReader.idl:
442         * fileapi/FileReaderSync.idl:
443         * fileapi/FileSystemCallback.idl:
444         * fileapi/FileWriter.idl:
445         * fileapi/FileWriterCallback.idl:
446         * fileapi/FileWriterSync.idl:
447         * fileapi/MetadataCallback.idl:
448         * fileapi/WebKitBlobBuilder.idl:
449
450 2011-07-21  Tony Chang  <tony@chromium.org>
451
452         sort WebCore.xcodeproj
453         https://bugs.webkit.org/show_bug.cgi?id=64901
454
455         Unreviewed, just using sort-Xcode-project-file.
456
457         * WebCore.xcodeproj/project.pbxproj:
458
459 2011-07-21  Enrica Casucci  <enrica@apple.com>
460
461         Cannot click to position the caret to the right of an image with display:block style.
462         https://bugs.webkit.org/show_bug.cgi?id=64962
463         <rdar://problem/9446343>
464
465         Reviewed by David Hyatt.
466
467         Test: editing/selection/click-on-block-image.html
468
469         The current implementation of positionForPoint always returns the visible
470         position to the left of the image, if the image has a block style.
471         This patch changes the behavior for block styled images to match the behavior
472         for inline images.
473
474         * rendering/RenderReplaced.cpp:
475         (WebCore::RenderReplaced::positionForPoint): Modified to avoid relying entirely
476         on InlineBox to calculate the position.
477
478 >>>>>>> .r91495
479 2011-07-21  Pavel Feldman  <pfeldman@google.com>
480
481         Not reviewed: one liner typo fix in Inspector.json.
482
483         * inspector/Inspector.json:
484
485 2011-07-21  Sam Weinig  <sam@webkit.org>
486
487         CSS top margin collapses when paginating
488         https://bugs.webkit.org/show_bug.cgi?id=64906
489
490         Reviewed by David Hyatt.
491
492         * rendering/RenderBlock.cpp:
493         (WebCore::RenderBlock::collapseMargins):
494         (WebCore::RenderBlock::estimateLogicalTopPosition):
495         Update to only go down paginated path when we actually have a page height (so
496         not in the case that we are just gathering breaks) and to call the version of
497         of nextPageLogicalTop that actually returns the next page, even if we are at
498         the boundary point.
499
500         (WebCore::RenderBlock::nextPageLogicalTopExcludingBoundaryPoint):
501         (WebCore::RenderBlock::nextPageLogicalTopIncludingBoundaryPoint):
502         Split into two functions which differ in how they deal with the boundary condition.
503
504         (WebCore::RenderBlock::applyBeforeBreak):
505         (WebCore::RenderBlock::applyAfterBreak):
506         Switch to call nextPageLogicalTopIncludingBoundaryPoint.
507
508         * rendering/RenderBlock.h:
509         Add new functions declarations and comment them.
510
511 2011-07-21  Pavel Feldman  <pfeldman@google.com>
512
513         Web Inspector: RuntimeAgent.evaluateOn should not require "return X;" syntax.
514         https://bugs.webkit.org/show_bug.cgi?id=64691
515
516         Reviewed by Yury Semikhatsky.
517
518         I'm introducing callFunctionOn that receives function declaration in order
519         to make call site syntax clear.
520
521         Test: inspector/runtime/runtime-callFunctionOn.html
522
523         * inspector/InjectedScript.cpp:
524         (WebCore::InjectedScript::callFunctionOn):
525         * inspector/InjectedScript.h:
526         * inspector/InjectedScriptSource.js:
527         (.):
528         * inspector/Inspector.json:
529         * inspector/InspectorRuntimeAgent.cpp:
530         (WebCore::InspectorRuntimeAgent::callFunctionOn):
531         * inspector/InspectorRuntimeAgent.h:
532         * inspector/front-end/ElementsTreeOutline.js:
533         (WebInspector.ElementsTreeElement.prototype._createTooltipForNode.resolvedNode.dimensions):
534         (WebInspector.ElementsTreeElement.prototype._createTooltipForNode.resolvedNode):
535         (WebInspector.ElementsTreeElement.prototype._createTooltipForNode):
536         * inspector/front-end/PropertiesSidebarPane.js:
537         (WebInspector.PropertiesSidebarPane.prototype.update.nodeResolved.protoList):
538         (WebInspector.PropertiesSidebarPane.prototype.update.nodeResolved):
539         * inspector/front-end/RemoteObject.js:
540         (WebInspector.RemoteObject.prototype.callFunction):
541
542 2011-07-21  Andrew Wason  <rectalogic@rectalogic.com>
543
544         [Qt] Adopt existing GraphicsContext3D members (part 1)
545         https://bugs.webkit.org/show_bug.cgi?id=64877
546
547         Reviewed by Noam Rosenthal.
548
549         Existing WebGL layout tests should test this.
550
551         Remove GraphicsContext3DInternal members and use the existing
552         corresponding members from GraphicsContext3D instead.
553         Move most of the GraphicsContext3DInternal constructor, destructor
554         and the reshape() method into GraphicsContext3D.
555         The GraphicsContext3D members will be needed when we adopt
556         GraphicsContext3DOpenGL.cpp.
557
558         * platform/graphics/GraphicsContext3D.h:
559         * platform/graphics/qt/GraphicsContext3DQt.cpp:
560         (WebCore::GraphicsContext3DInternal::GraphicsContext3DInternal):
561         (WebCore::GraphicsContext3DInternal::~GraphicsContext3DInternal):
562         (WebCore::GraphicsContext3DInternal::paintToTextureMapper):
563         (WebCore::GraphicsContext3DInternal::boundingRect):
564         (WebCore::GraphicsContext3DInternal::paint):
565         (WebCore::GraphicsContext3D::GraphicsContext3D):
566         (WebCore::GraphicsContext3D::~GraphicsContext3D):
567         (WebCore::GraphicsContext3D::platformTexture):
568         (WebCore::GraphicsContext3D::reshape):
569         (WebCore::GraphicsContext3D::bindFramebuffer):
570         (WebCore::GraphicsContext3D::getContextAttributes):
571         (WebCore::GraphicsContext3D::getError):
572         (WebCore::GraphicsContext3D::synthesizeGLError):
573         (WebCore::GraphicsContext3D::markLayerComposited):
574         (WebCore::GraphicsContext3D::markContextChanged):
575         (WebCore::GraphicsContext3D::layerComposited):
576         (WebCore::GraphicsContext3D::getExtensions):
577
578 2011-07-21  Pavel Feldman  <pfeldman@google.com>
579
580         Web Inspector: [protocol] extend setBreakpointByUrl request to accept incomplete URL (predicates)
581         https://bugs.webkit.org/show_bug.cgi?id=60762
582
583         Reviewed by Yury Semikhatsky.
584
585         Test: inspector/debugger/debugger-set-breakpoint-regex.html
586
587         * inspector/Inspector.json:
588         * inspector/InspectorDebuggerAgent.cpp:
589         (WebCore::buildObjectForBreakpointCookie):
590         (WebCore::matches):
591         (WebCore::InspectorDebuggerAgent::setBreakpointByUrl):
592         (WebCore::InspectorDebuggerAgent::didParseSource):
593         * inspector/InspectorDebuggerAgent.h:
594
595 2011-07-21  Kent Tamura  <tkent@chromium.org>
596
597         REGRESSION(r88757): input[type=range] renders incorrectly in RTL context.
598         https://bugs.webkit.org/show_bug.cgi?id=64904
599
600         Reviewed by Ryosuke Niwa.
601
602         Tests: fast/forms/input-appearance-range-rtl.html
603
604         * html/shadow/SliderThumbElement.cpp:
605         (WebCore::RenderSliderThumb::layout):
606         The thumb should be positioned based on 'right' CSS property instead of 'left.'
607         (WebCore::SliderThumbElement::setPositionFromPoint):
608         The fraction should be flipped in RTL.
609
610 2011-07-18  Vsevolod Vlasov  <vsevik@chromium.org>
611
612         Web Inspector: Remove networkDataRemoved field from resource.
613         https://bugs.webkit.org/show_bug.cgi?id=64749
614
615         Reviewed by Pavel Feldman.
616
617         * inspector/front-end/NetworkManager.js:
618         (WebInspector.NetworkManager.prototype.requestContent):
619         (WebInspector.NetworkDispatcher.prototype._appendRedirect):
620         * inspector/front-end/NetworkPanel.js:
621         (WebInspector.NetworkLogView.prototype._frameNavigated):
622
623 2011-07-21  Tommy Widenflycht  <tommyw@google.com>
624
625         MediaStream API: Merging MediaStreamContainer and MediaStreamList
626         https://bugs.webkit.org/show_bug.cgi?id=64794
627
628         Reviewed by Tony Gentilcore.
629
630         * GNUmakefile.list.am:
631         * dom/MediaStreamContainer.h: Removed.
632         * dom/MediaStreamList.cpp:
633         (WebCore::MediaStreamList::create):
634         (WebCore::MediaStreamList::MediaStreamList):
635         (WebCore::MediaStreamList::length):
636         (WebCore::MediaStreamList::item):
637         (WebCore::MediaStreamList::add):
638         (WebCore::MediaStreamList::remove):
639         (WebCore::MediaStreamList::contains):
640         (WebCore::MediaStreamList::get):
641         * dom/MediaStreamList.h:
642
643 2011-07-20  Yury Semikhatsky  <yurys@chromium.org>
644
645         Web Inspector: always open dedicated worker inspector in a new window not a new tab
646         https://bugs.webkit.org/show_bug.cgi?id=64872
647
648         Reviewed by Pavel Feldman.
649
650         * inspector/front-end/WorkerManager.js:
651         (WebInspector.WorkerManager.prototype.openWorkerInspector):
652
653 2011-07-21  MORITA Hajime  <morrita@google.com>
654
655         [Refactoring] Shadow inclusion cache should be managed by ShadowContentSelector
656         https://bugs.webkit.org/show_bug.cgi?id=64849
657
658         Reviewed by Dimitri Glazkov.
659
660         This change is a reorg around Shadow inclusion mechanism.
661         - Moved definition of ShadowInclusion, ShadowInclusionSet and ShadowInclusionList
662           from ShadowContentElement.h to ShadowContentSelector.h, which is included
663           from smaller number of places.
664         - Moved ShadowInclusionSet from ShadowRoot to ShadowContentSelector
665         - Made ShadowContentSelector's lifetime managed by ShadowRoot
666           because ShadowInclusionSet is held by the selector.
667         - Thus, there is no longer "active" selector (ShadowContentSelector::s_currentInstance)
668           Because the selector is associated for each ShadowRoot object.
669         
670         No new tests. No behavior change.
671
672         * dom/NodeRenderingContext.cpp:
673         * dom/ShadowContentElement.cpp:
674         (WebCore::ShadowContentElement::ShadowContentElement):
675         (WebCore::ShadowContentElement::attach):
676         (WebCore::ShadowContentElement::detach):
677         * dom/ShadowContentElement.h:
678         (WebCore::ShadowContentElement::inclusions):
679         * dom/ShadowContentSelector.cpp:
680         (WebCore::ShadowInclusion::append):
681         (WebCore::ShadowInclusion::unlink):
682         (WebCore::ShadowInclusionList::ShadowInclusionList):
683         (WebCore::ShadowInclusionList::~ShadowInclusionList):
684         (WebCore::ShadowInclusionList::find):
685         (WebCore::ShadowInclusionList::clear):
686         (WebCore::ShadowInclusionList::append):
687         (WebCore::ShadowContentSelector::ShadowContentSelector):
688         (WebCore::ShadowContentSelector::~ShadowContentSelector):
689         (WebCore::ShadowContentSelector::selectInclusion):
690         (WebCore::ShadowContentSelector::unselectInclusion):
691         (WebCore::ShadowContentSelector::findInclusionFor):
692         (WebCore::ShadowContentSelector::didSelectInclusion):
693         (WebCore::ShadowContentSelector::willSelectInclusionOver):
694         * dom/ShadowContentSelector.h:
695         (WebCore::ShadowInclusion::includer):
696         (WebCore::ShadowInclusion::content):
697         (WebCore::ShadowInclusion::next):
698         (WebCore::ShadowInclusion::previous):
699         (WebCore::ShadowInclusion::ShadowInclusion):
700         (WebCore::ShadowInclusion::create):
701         (WebCore::ShadowInclusionList::first):
702         (WebCore::ShadowInclusionList::last):
703         (WebCore::ShadowInclusionList::isEmpty):
704         (WebCore::ShadowInclusionSet::add):
705         (WebCore::ShadowInclusionSet::remove):
706         (WebCore::ShadowInclusionSet::isEmpty):
707         (WebCore::ShadowInclusionSet::Translator::hash):
708         (WebCore::ShadowInclusionSet::Translator::equal):
709         (WebCore::ShadowInclusionSet::Hash::hash):
710         (WebCore::ShadowInclusionSet::Hash::equal):
711         (WebCore::ShadowInclusionSet::find):
712         (WebCore::ShadowContentSelector::hasChildren):
713         * dom/ShadowRoot.cpp:
714         (WebCore::ShadowRoot::~ShadowRoot):
715         (WebCore::ShadowRoot::includerFor):
716         (WebCore::ShadowRoot::attach):
717         (WebCore::ShadowRoot::inclusions):
718         (WebCore::ShadowRoot::ensureInclusions):
719         * dom/ShadowRoot.h:
720
721 2011-07-21  Rohan McGovern  <rohan@mcgovern.id.au>
722
723         Reviewed by Noam Rosenthal.
724
725         [Qt] Qt5 Build Fix: remove useless use of qRound(int)
726         https://bugs.webkit.org/show_bug.cgi?id=64907
727
728         Rounding an integer doesn't make sense.
729         Since 2dcd3939a8bd5ff743e4c87f87b2d81b1a101467 in qtbase, this is not
730         permitted to compile.
731
732         No new tests needed.
733
734         * platform/graphics/qt/FontPlatformDataQt.cpp:
735         (WebCore::FontPlatformData::FontPlatformData): Eliminate qRound(int).
736         * platform/qt/PlatformScreenQt.cpp:
737         (WebCore::screenDepthPerComponent): Ditto.
738
739 2011-07-20  Ryosuke Niwa  <rniwa@webkit.org>
740
741         Fix a Valgrind failure caused by r91435.
742
743         * platform/ScrollableArea.cpp:
744         (WebCore::ScrollableArea::ScrollableArea):
745
746 2011-07-20  Sheriff Bot  <webkit.review.bot@gmail.com>
747
748         Unreviewed, rolling out r91332.
749         http://trac.webkit.org/changeset/91332
750         https://bugs.webkit.org/show_bug.cgi?id=64925
751
752         Crashes css3/images/optimize-contrast-canvas.html on safari-
753         mac,chromium-mac (Requested by mikelawther on #webkit).
754
755         * html/HTMLCanvasElement.cpp:
756         (WebCore::HTMLCanvasElement::makePresentationCopy):
757         (WebCore::HTMLCanvasElement::copiedImage):
758         * html/canvas/WebGLRenderingContext.cpp:
759         (WebCore::WebGLRenderingContext::videoFrameToImage):
760         * platform/graphics/GraphicsContext.cpp:
761         (WebCore::GraphicsContext::drawImage):
762         * platform/graphics/GraphicsContext.h:
763         * platform/graphics/Image.h:
764         * platform/graphics/ImageBuffer.h:
765         * platform/graphics/cairo/ImageBufferCairo.cpp:
766         (WebCore::ImageBuffer::copyImage):
767         * platform/graphics/cg/GraphicsContextCG.cpp:
768         * platform/graphics/cg/ImageBufferCG.cpp:
769         (WebCore::ImageBuffer::copyImage):
770         (WebCore::cgImage):
771         (WebCore::ImageBuffer::draw):
772         (WebCore::ImageBuffer::drawPattern):
773         (WebCore::ImageBuffer::clip):
774         (WebCore::ImageBuffer::toDataURL):
775         * platform/graphics/cg/ImageCG.cpp:
776         (WebCore::imageWithColorSpace):
777         (WebCore::BitmapImage::draw):
778         (WebCore::Image::drawPattern):
779         * platform/graphics/filters/FETile.cpp:
780         (WebCore::FETile::apply):
781         * platform/graphics/qt/ImageBufferQt.cpp:
782         (WebCore::ImageBuffer::copyImage):
783         (WebCore::ImageBuffer::draw):
784         (WebCore::ImageBuffer::drawPattern):
785         * platform/graphics/skia/ImageBufferSkia.cpp:
786         (WebCore::ImageBuffer::copyImage):
787         * platform/graphics/wince/ImageBufferWinCE.cpp:
788         (WebCore::ImageBuffer::copyImage):
789         (WebCore::ImageBuffer::draw):
790         (WebCore::ImageBuffer::drawPattern):
791         * platform/graphics/wx/ImageBufferWx.cpp:
792         (WebCore::ImageBuffer::copyImage):
793         (WebCore::ImageBuffer::draw):
794         (WebCore::ImageBuffer::drawPattern):
795         * rendering/svg/RenderSVGResourcePattern.cpp:
796         (WebCore::RenderSVGResourcePattern::applyResource):
797         * svg/SVGFEImageElement.cpp:
798         (WebCore::SVGFEImageElement::build):
799         * svg/graphics/SVGImage.cpp:
800         (WebCore::SVGImage::nativeImageForCurrentFrame):
801
802 2011-07-20  Ryosuke Niwa  <rniwa@webkit.org>
803
804         Chromium build fix after r91440.
805
806         * platform/chromium/ScrollbarThemeChromiumMac.mm:
807         (WebCore::ScrollbarThemeChromiumMac::paint):
808
809 2011-07-20  Ryosuke Niwa  <rniwa@webkit.org>
810
811         Build fix after r91435.
812
813         * platform/mac/ScrollViewMac.mm:
814         (WebCore::ScrollView::platformSetScrollbarOverlayStyle):
815
816 2011-07-20  Tim Horton  <timothy_horton@apple.com>
817
818         Reviewed by Darin Adler.
819
820         Errors encountered within SVG documents should be reported to the console
821         https://bugs.webkit.org/show_bug.cgi?id=62599
822         <rdar://problem/9727074>
823
824         Add SVGLength::construct, which can be used to construct an SVGLength
825         as normal, but returns an SVGParsingError via a reference argument.
826         The function also takes another argument, which is whether or not
827         the SVGLength value is allowed to be negative. If not, an error is
828         thrown. It defaults to allowing negatives if not specified.
829
830         * GNUmakefile.list.am:
831         * svg/SVGLength.cpp:
832         (WebCore::SVGLength::construct):
833         (WebCore::SVGLength::rawValue):
834         * svg/SVGLength.h:
835         * svg/SVGElement.h:
836         * svg/SVGParsingError.h: Added.
837         * WebCore.gypi:
838         * WebCore.pro:
839         * WebCore.vcproj/WebCore.vcproj:
840         * WebCore.xcodeproj/project.pbxproj:
841
842 2011-07-20  Levi Weintraub  <leviw@chromium.org>
843
844         Switch getTransformFromContainer and its uses to new layout types
845         https://bugs.webkit.org/show_bug.cgi?id=64908
846
847         Reviewed by Simon Fraser.
848
849         Switching getTransformFromContainer and its uses to use the new Layout
850         Types from strictly integer ones.
851
852         No new tests, no new functionality.
853
854         * rendering/RenderBox.cpp:
855         (WebCore::RenderBox::mapLocalToContainer):
856         * rendering/RenderInline.cpp:
857         (WebCore::RenderInline::mapLocalToContainer):
858         * rendering/RenderLayer.cpp:
859         (WebCore::RenderLayer::createLocalTransformState):
860         * rendering/RenderObject.cpp:
861         (WebCore::RenderObject::getTransformFromContainer):
862         * rendering/RenderObject.h:
863         * rendering/RenderView.cpp:
864         (WebCore::RenderView::mapLocalToContainer):
865         (WebCore::RenderView::mapAbsoluteToLocalPoint):
866
867 2011-07-20  Tim Horton  <timothy_horton@apple.com>
868
869         Scrollbar color heuristic needs to be hooked up in WebKit1
870         https://bugs.webkit.org/show_bug.cgi?id=64220
871         <rdar://problem/9589140>
872
873         Reviewed by Darin Adler.
874
875         Store the scroller style on ScrollableArea, and recompute it whenever
876         the document or body element background color changes or the base background
877         color of the scrollview changes. Also, make sure to repaint the scrollbars
878         whenever the style changes.
879
880         No new tests, since this code is only enabled on future versions of Mac OS X.
881
882         * WebCore.exp.in:
883         * page/Frame.cpp:
884         (WebCore::Frame::getDocumentBackgroundColor):
885         * page/Frame.h:
886         * page/FrameView.cpp:
887         (WebCore::FrameView::recalculateScrollbarOverlayStyle):
888         (WebCore::FrameView::setBaseBackgroundColor):
889         (WebCore::FrameView::documentBackgroundColor): Renamed.
890         * page/FrameView.h:
891         * platform/ScrollView.cpp:
892         (WebCore::ScrollView::setScrollbarOverlayStyle):
893         * platform/ScrollView.h:
894         * platform/ScrollableArea.cpp:
895         (WebCore::ScrollableArea::setScrollbarOverlayStyle):
896         * platform/ScrollableArea.h:
897         (WebCore::ScrollableArea::scrollbarOverlayStyle):
898         * platform/ScrollbarTheme.h:
899         (WebCore::ScrollbarTheme::updateScrollbarOverlayStyle):
900         * platform/mac/ScrollViewMac.mm:
901         (WebCore::toNSScrollerKnobStyle):
902         (WebCore::ScrollView::platformSetScrollbarOverlayStyle):
903         * platform/mac/ScrollbarThemeMac.h:
904         * platform/mac/ScrollbarThemeMac.mm:
905         (WebCore::toScrollbarPainterKnobStyle):
906         (WebCore::ScrollbarThemeMac::updateScrollbarOverlayStyle):
907         (WebCore::ScrollbarThemeMac::paint):
908         * rendering/RenderBox.cpp:
909         (WebCore::RenderBox::styleDidChange):
910
911 2011-07-20  Luke Macpherson   <macpherson@chromium.org>
912
913         Implement CSSPropertyWebkitTransformOriginZ and Origin in CSSStyleApplyProperty.
914         https://bugs.webkit.org/show_bug.cgi?id=64785
915         Note that this changes a cast from
916           computed length double -> 28 bit int -> float
917         to
918           computed length double -> float
919         I couldn't see any reason in the code that this was strictly necessary,
920         however it may have been so that X,Y,Z all have the same behavior, even though Z itself is not stored in a Length.
921
922         Reviewed by Simon Fraser.
923
924         No new tests / refactoring.
925
926         * css/CSSStyleApplyProperty.cpp:
927         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
928         * css/CSSStyleSelector.cpp:
929         (WebCore::CSSStyleSelector::applyProperty):
930
931 2011-07-20  Tony Chang  <tony@chromium.org>
932
933         Remove stray reference to StyleFlexibleBoxData.h that was accidentally
934         added in r91402.
935
936         * WebCore.xcodeproj/project.pbxproj:
937
938 2011-07-20  Levi Weintraub  <leviw@chromium.org>
939
940         Bring Int/Float graphics classes closer to parity
941         https://bugs.webkit.org/show_bug.cgi?id=64833
942
943         Reviewed by James Robinson.
944
945         In preparation of switching to Floating point data structures, bringing the
946         functionality and method names of the Int/Float graphics classes close together.
947
948         Also fixing some compiler errors when using Floats for layout units along the way.
949
950         No new tests, no functionality change.
951
952         * page/FrameView.cpp:
953         (WebCore::FrameView::convertFromRenderer):
954         * platform/ScrollView.cpp:
955         (WebCore::ScrollView::wheelEvent):
956         * platform/ScrollView.h:
957         (WebCore::ScrollView::convertChildToSelf):
958         (WebCore::ScrollView::convertSelfToChild):
959         * platform/graphics/FloatPoint.h:
960         (WebCore::operator-): Adding a single-parameter version.
961         * platform/graphics/FloatSize.cpp:
962         (WebCore::FloatSize::isZero): Adding isZero that uses epsilon for floats.
963         * platform/graphics/FloatSize.h:
964         * platform/graphics/IntPoint.h:
965         (WebCore::IntPoint::moveBy): Renaming IntPoint version to moveBy to mirror FloatPoint.
966         * platform/graphics/RoundedRect.cpp:
967         (WebCore::RoundedRect::Radii::expand): Switching to specific templatized max.
968         * platform/graphics/filters/FilterEffect.cpp:
969         (WebCore::FilterEffect::requestedRegionOfInputImageData):
970         * rendering/RenderBlock.cpp: Moving outstanding Int* functions to Layout units.
971         (WebCore::RenderBlock::paintContinuationOutlines):
972         (WebCore::RenderBlock::logicalRectToPhysicalRect):
973         * rendering/RenderBlock.h:
974         * rendering/RenderBox.cpp:
975         (WebCore::RenderBox::positionForPoint):
976         * rendering/RenderTable.cpp:
977         (WebCore::RenderTable::subtractCaptionRect):
978         * rendering/RenderTable.h:
979         * rendering/RenderTableCell.cpp:
980         (WebCore::RenderTableCell::styleOrColLogicalWidth):
981         (WebCore::RenderTableCell::setOverrideSizeFromRowHeight):
982         (WebCore::RenderTableCell::paintCollapsedBorder):
983         (WebCore::RenderTableCell::paintBackgroundsBehindCell):
984         * rendering/RenderTableCell.h:
985         * rendering/RenderView.h:
986         (WebCore::RenderView::pushLayoutState):
987         (WebCore::LayoutStateMaintainer::LayoutStateMaintainer):
988         (WebCore::LayoutStateMaintainer::push):
989         * rendering/RootInlineBox.cpp:
990         (WebCore::RootInlineBox::paddedLayoutOverflowRect):
991         (WebCore::setAscentAndDescent):
992         * rendering/RootInlineBox.h:
993
994 2011-07-20  Scott Graham  <scottmg@chromium.org>
995
996         mouseover reporting incorrect mouse button, when the button isn't
997         down. https://bugs.webkit.org/show_bug.cgi?id=64882
998
999         Reviewed by Eric Seidel.
1000
1001         Don't increment the button returned in 'which' unless the button is
1002         actually down.
1003
1004         Test: fast/events/mouseover-button.html
1005
1006         * dom/MouseEvent.cpp:
1007         (WebCore::MouseEvent::which):
1008
1009 2011-07-20  Kenneth Russell  <kbr@google.com>
1010
1011         Add restoreContext() to WEBKIT_lose_context
1012         https://bugs.webkit.org/show_bug.cgi?id=58626
1013
1014         Reviewed by James Robinson.
1015
1016         Added the restoreContext() entry point to the WEBKIT_lose_context
1017         extension. Refactored and simplified the logic associated with context
1018         loss and restoration.
1019
1020         A subsequent patch will make the delivery of the webglcontextrestored
1021         event spec compliant.
1022
1023         * html/canvas/WebGLRenderingContext.cpp:
1024         (WebCore::WebGLRenderingContext::WebGLRenderingContextRestoreTimer::fired):
1025         (WebCore::WebGLRenderingContextLostCallback::WebGLRenderingContextLostCallback):
1026         (WebCore::WebGLRenderingContextLostCallback::onContextLost):
1027         (WebCore::WebGLRenderingContext::isContextLost):
1028         (WebCore::WebGLRenderingContext::forceLostContext):
1029         (WebCore::WebGLRenderingContext::forceRestoreContext):
1030         (WebCore::WebGLRenderingContext::loseContext):
1031         (WebCore::WebGLRenderingContext::maybeRestoreContext):
1032         * html/canvas/WebGLRenderingContext.h:
1033         (WebCore::WebGLRenderingContext::WebGLRenderingContextRestoreTimer::WebGLRenderingContextRestoreTimer):
1034         * html/canvas/WebKitLoseContext.cpp:
1035         (WebCore::WebKitLoseContext::loseContext):
1036         (WebCore::WebKitLoseContext::restoreContext):
1037         * html/canvas/WebKitLoseContext.h:
1038         * html/canvas/WebKitLoseContext.idl:
1039
1040 2011-07-20  Tony Chang  <tony@chromium.org>
1041
1042         Pass -webkit-flex() values on to RenderStyle
1043         https://bugs.webkit.org/show_bug.cgi?id=64038
1044
1045         Reviewed by Eric Seidel.
1046
1047         No new tests, this just copies data to RenderStyle, which we can
1048         then access when doing layout.  Tests will come with the layout
1049         changes.
1050
1051         * css/CSSStyleApplyProperty.cpp:
1052         (WebCore::ApplyPropertyLength::applyValue):
1053         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
1054
1055 2011-07-20  Daniel Bates  <dbates@rim.com>
1056
1057         Attempt to fix the GTK build after changeset 91396 <http://trac.webkit.org/changeset/91396>
1058         (https://bugs.webkit.org/show_bug.cgi?id=64764).
1059
1060         * xml/parser/MarkupTokenBase.h: #include <stdio.h> in debug build for printf(3), which is used in
1061         MarkupTokenBase::printString() and MarkupTokenBase::printAttrs().
1062
1063 2011-07-19  Vsevolod Vlasov  <vsevik@chromium.org>
1064
1065         Web Inspector: Add support for disabling cache in web inspector.
1066         https://bugs.webkit.org/show_bug.cgi?id=64097
1067
1068         Reviewed by Pavel Feldman.
1069
1070         Tests: http/tests/inspector/network/network-disable-cache-memory.html
1071                http/tests/inspector/network/network-disable-cache-xhrs.html
1072
1073         * English.lproj/localizedStrings.js:
1074         * inspector/Inspector.json:
1075         * inspector/InspectorClient.h:
1076         (WebCore::InspectorClient::setCacheDisabled):
1077         * inspector/InspectorResourceAgent.cpp:
1078         (WebCore::InspectorResourceAgent::willSendRequest):
1079         (WebCore::InspectorResourceAgent::enable):
1080         (WebCore::InspectorResourceAgent::disable):
1081         (WebCore::InspectorResourceAgent::setCacheDisabled):
1082         * inspector/InspectorResourceAgent.h:
1083         * inspector/front-end/NetworkManager.js:
1084         (WebInspector.NetworkManager.prototype.inflightResourceForURL):
1085         (WebInspector.NetworkManager.prototype._cacheDisabledSettingChanged):
1086         * inspector/front-end/Settings.js:
1087         (WebInspector.Settings):
1088         * inspector/front-end/SettingsScreen.js:
1089         (WebInspector.SettingsScreen):
1090
1091 2011-07-20  Peter Kasting  <pkasting@google.com>
1092
1093         Remove "const" from obviously-non-const accessors
1094         https://bugs.webkit.org/show_bug.cgi?id=62302
1095
1096         Reviewed by Darin Adler.
1097
1098         No functional change, so no new tests.
1099
1100         * WebCore.exp.in: Adjust function names to reflect non-constness.
1101         * dom/Element.cpp:
1102         (WebCore::Element::cloneElementWithoutAttributesAndChildren): Not const, calls non-const function Document::createElement().
1103         (WebCore::Element::scrollLeft): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1104         (WebCore::Element::scrollTop): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1105         (WebCore::Element::scrollWidth): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1106         (WebCore::Element::scrollHeight): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1107         (WebCore::Element::boundsInWindowSpace): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1108         (WebCore::Element::getClientRects): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1109         (WebCore::Element::getBoundingClientRect): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1110         (WebCore::Element::innerText): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1111         (WebCore::Element::outerText): Not const, calls newly non-const function Element::innerText().
1112         * dom/Element.h:
1113         * dom/Node.cpp:
1114         (WebCore::Node::isContentEditable): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1115         (WebCore::Node::shouldUseInputMethod): Not const, calls newly non-const function Node::isContentEditable().
1116         * dom/Node.h:
1117         * dom/OptionElement.h: Virtual function OptionElement::selected() not const because HTMLOptionElement implementation is non-const.
1118         * html/HTMLAnchorElement.cpp:
1119         (WebCore::HTMLAnchorElement::text): Not const, calls newly non-const function Element::innerText().
1120         * html/HTMLAnchorElement.h:
1121         * html/HTMLAppletElement.cpp:
1122         (WebCore::HTMLAppletElement::renderWidgetForJSBindings): Not const, calls non-const function RenderApplet::createWidgetIfNecessary().
1123         * html/HTMLAppletElement.h:
1124         * html/HTMLAreaElement.cpp:
1125         (WebCore::HTMLAreaElement::imageElement): Not const, calls newly non-const function HTMLMapElement::imageElement().
1126         * html/HTMLAreaElement.h:
1127         * html/HTMLBodyElement.cpp:
1128         (WebCore::HTMLBodyElement::scrollLeft): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1129         (WebCore::HTMLBodyElement::scrollTop): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1130         (WebCore::HTMLBodyElement::scrollHeight): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1131         (WebCore::HTMLBodyElement::scrollWidth): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1132         * html/HTMLBodyElement.h:
1133         * html/HTMLEmbedElement.cpp:
1134         (WebCore::HTMLEmbedElement::renderWidgetForJSBindings): Not const, calls non-const function Document::createElement().
1135         * html/HTMLEmbedElement.h:
1136         * html/HTMLFrameElementBase.cpp:
1137         (WebCore::HTMLFrameElementBase::width): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1138         (WebCore::HTMLFrameElementBase::height): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1139         * html/HTMLFrameElementBase.h:
1140         * html/HTMLImageElement.cpp:
1141         (WebCore::HTMLImageElement::width): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1142         (WebCore::HTMLImageElement::height): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1143         * html/HTMLImageElement.h:
1144         * html/HTMLInputElement.cpp:
1145         (WebCore::HTMLInputElement::shouldUseInputMethod): Virtual function not const because Node implementation is non-const.
1146         * html/HTMLInputElement.h:
1147         * html/HTMLKeygenElement.cpp:
1148         (WebCore::KeygenSelectElement::cloneElementWithoutAttributesAndChildren): Virtual function not const because Element implementation is non-const.
1149         * html/HTMLMapElement.cpp:
1150         (WebCore::HTMLMapElement::imageElement): Not const, calls non-const function Document::images().
1151         * html/HTMLMapElement.h:
1152         * html/HTMLObjectElement.cpp:
1153         (WebCore::HTMLObjectElement::renderWidgetForJSBindings): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1154         * html/HTMLObjectElement.h:
1155         * html/HTMLOptionElement.cpp:
1156         (WebCore::HTMLOptionElement::selected): Not const, calls non-const function HTMLSelectElement::recalcListItemsIfNeeded().
1157         * html/HTMLOptionElement.h:
1158         * html/HTMLPlugInElement.cpp: Virtual function HTMLPlugInElement::renderWidgetForJSBindings() not const because various subclass implementations are non-const.
1159         (WebCore::HTMLPlugInElement::getInstance): Not const, calls newly non-const function HTMLPlugInElement::pluginWidget().
1160         (WebCore::HTMLPlugInElement::pluginWidget): Not const, calls newly non-const function HTMLPlugInElement::renderWidgetForJSBindings().
1161         * html/HTMLPlugInElement.h:
1162         * html/HTMLScriptElement.cpp:
1163         (WebCore::HTMLScriptElement::cloneElementWithoutAttributesAndChildren): Virtual function not const because Element implementation is non-const.
1164         * html/HTMLScriptElement.h:
1165         * html/HTMLTextAreaElement.cpp:
1166         (WebCore::HTMLTextAreaElement::shouldUseInputMethod): Virtual function not const because Node implementation is non-const.
1167         * html/HTMLTextAreaElement.h:
1168         * html/shadow/SliderThumbElement.h:
1169         (WebCore::SliderThumbElement::cloneElementWithoutAttributesAndChildren): Virtual function not const because Element implementation is non-const.
1170         * rendering/svg/SVGShadowTreeElements.cpp:
1171         (WebCore::SVGShadowTreeContainerElement::cloneElementWithoutAttributesAndChildren): Virtual function not const because Element implementation is non-const.
1172         * rendering/svg/SVGShadowTreeElements.h:
1173         * svg/SVGAnimateElement.cpp:
1174         (WebCore::SVGAnimateElement::hasValidAttributeType): Not const, calls newly non-const function SVGSMILElement::targetElement().
1175         * svg/SVGAnimateElement.h:
1176         * svg/SVGAnimateMotionElement.cpp:
1177         (WebCore::SVGAnimateMotionElement::hasValidAttributeType): Not const, calls newly non-const function SVGSMILElement::targetElement().
1178         * svg/SVGAnimateMotionElement.h:
1179         * svg/SVGAnimateTransformElement.cpp:
1180         (WebCore::SVGAnimateTransformElement::hasValidAttributeType): Not const, calls newly non-const function SVGSMILElement::targetElement().
1181         * svg/SVGAnimateTransformElement.h:
1182         * svg/SVGAnimationElement.cpp:
1183         (WebCore::SVGAnimationElement::currentValuesForValuesAnimation): Not const, calls newly non-const function SVGSMILElement::targetElement().
1184         * svg/SVGAnimationElement.h:
1185         * svg/SVGElement.cpp:
1186         (WebCore::SVGElement::accessDocumentSVGExtensions): Not const, calls non-const function Document::accessSVGExtensions().
1187         (WebCore::SVGElement::boundingBox): Not const, calls newly non-const function SVGStyledLocatableElement::getBBox().
1188         * svg/SVGElement.h:
1189         * svg/SVGLocatable.cpp:
1190         (WebCore::SVGLocatable::getBBox): Argument not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets() on argument.
1191         (WebCore::SVGLocatable::computeCTM): Argument not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets() on argument.
1192         (WebCore::SVGLocatable::getTransformToElement): Not const, calls newly non-const function SVGLocatable::getCTM().
1193         * svg/SVGLocatable.h: Virtual functions SVGLocatable::getBBox(), SVGLocatable::getCTM(), and SVGLocatable::getScreenCTM() not const because various subclass implementations are non-const.
1194         * svg/SVGScriptElement.cpp:
1195         (WebCore::SVGScriptElement::cloneElementWithoutAttributesAndChildren): Virtual function not const because Element implementation is non-const.
1196         * svg/SVGScriptElement.h:
1197         * svg/SVGStyledElement.cpp:
1198         (WebCore::SVGStyledElement::buildPendingResourcesIfNeeded): Not const, calls non-const function Document::accessSVGExtensions().
1199         * svg/SVGStyledElement.h:
1200         * svg/SVGStyledLocatableElement.cpp:
1201         (WebCore::SVGStyledLocatableElement::getBBox): Not const, calls newly non-const static function SVGLocatable::getBBox().
1202         (WebCore::SVGStyledLocatableElement::getCTM): Not const, calls newly non-const static function SVGLocatable::computeCTM().
1203         (WebCore::SVGStyledLocatableElement::getScreenCTM): Not const, calls newly non-const static function SVGLocatable::computeCTM().
1204         * svg/SVGStyledLocatableElement.h:
1205         * svg/SVGStyledTransformableElement.cpp:
1206         (WebCore::SVGStyledTransformableElement::getCTM): Not const, calls newly non-const static function SVGLocatable::computeCTM().
1207         (WebCore::SVGStyledTransformableElement::getScreenCTM): Not const, calls newly non-const static function SVGLocatable::computeCTM().
1208         (WebCore::SVGStyledTransformableElement::getBBox): Not const, calls newly non-const static function SVGLocatable::getBBox().
1209         (WebCore::SVGStyledTransformableElement::toClipPath): Virtual function not const because SVGUseElement implementation is non-const.
1210         * svg/SVGStyledTransformableElement.h:
1211         * svg/SVGTextContentElement.cpp:
1212         (WebCore::SVGTextContentElement::getNumberOfChars): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1213         (WebCore::SVGTextContentElement::getComputedTextLength): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1214         (WebCore::SVGTextContentElement::getSubStringLength): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1215         (WebCore::SVGTextContentElement::getStartPositionOfChar): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1216         (WebCore::SVGTextContentElement::getEndPositionOfChar): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1217         (WebCore::SVGTextContentElement::getExtentOfChar): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1218         (WebCore::SVGTextContentElement::getRotationOfChar): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1219         (WebCore::SVGTextContentElement::getCharNumAtPosition): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1220         (WebCore::SVGTextContentElement::selectSubString): Not const, calls newly non-const static function SVGTextContentElement::getNumberOfChars().
1221         * svg/SVGTextContentElement.h:
1222         * svg/SVGTextElement.cpp:
1223         (WebCore::SVGTextElement::getBBox): Not const, calls newly non-const static function SVGLocatable::getBBox().
1224         (WebCore::SVGTextElement::getCTM): Not const, calls newly non-const static function SVGLocatable::computeCTM().
1225         (WebCore::SVGTextElement::getScreenCTM): Not const, calls newly non-const static function SVGLocatable::computeCTM().
1226         * svg/SVGTextElement.h:
1227         * svg/SVGUseElement.cpp:
1228         (WebCore::SVGUseElement::instanceRoot): Not const, calls non-const function Document::updateLayoutIgnorePendingStylesheets().
1229         (WebCore::isDirectReference):
1230         (WebCore::SVGUseElement::toClipPath): Not const, calls non-const function Document::accessSVGExtensions().
1231         * svg/SVGUseElement.h:
1232         * svg/animation/SVGSMILElement.cpp:
1233         (WebCore::SVGSMILElement::eventBaseFor): Not const, calls newly non-const function SVGSMILElement::targetElement().
1234         (WebCore::SVGSMILElement::targetElement): Not const, calls non-const function Document::accessSVGExtensions().
1235         * svg/animation/SVGSMILElement.h: Virtual function SVGSMILElement::hasValidAttributeType() not const because various subclass implementations are non-const.
1236
1237 2011-07-20  Andy Estes  <aestes@apple.com>
1238
1239         Fix the Mac build after r91392.
1240
1241         * WebCore.xcodeproj/project.pbxproj: StyleFlexibleBoxData.h should be a
1242         private forwarding header of WebCore.
1243
1244 2011-07-20  Jeffrey Pfau  <jpfau@apple.com>
1245
1246         New Token class for XML
1247         https://bugs.webkit.org/show_bug.cgi?id=64764
1248
1249         Reviewed by Adam Barth.
1250
1251         Refactor HTMLToken into MarkupTokenBase and add new XMLToken
1252
1253         * GNUmakefile.list.am:
1254         * WebCore.gypi:
1255         * WebCore.pro:
1256         * WebCore.vcproj/WebCore.vcproj:
1257         * WebCore.xcodeproj/project.pbxproj:
1258         * html/HTMLViewSourceDocument.cpp:
1259         (WebCore::HTMLViewSourceDocument::addSource):
1260         * html/parser/HTMLConstructionSite.cpp:
1261         (WebCore::HTMLConstructionSite::insertDoctype):
1262         (WebCore::HTMLConstructionSite::insertComment):
1263         (WebCore::HTMLConstructionSite::insertCommentOnDocument):
1264         (WebCore::HTMLConstructionSite::insertCommentOnHTMLHtmlElement):
1265         (WebCore::HTMLConstructionSite::insertSelfClosingHTMLElement):
1266         (WebCore::HTMLConstructionSite::insertForeignElement):
1267         (WebCore::HTMLConstructionSite::createHTMLElementFromSavedElement):
1268         * html/parser/HTMLMetaCharsetParser.cpp:
1269         (WebCore::HTMLMetaCharsetParser::checkForMetaCharset):
1270         * html/parser/HTMLPreloadScanner.cpp:
1271         (WebCore::HTMLPreloadScanner::processToken):
1272         * html/parser/HTMLSourceTracker.cpp:
1273         (WebCore::HTMLSourceTracker::start):
1274         (WebCore::HTMLSourceTracker::sourceForToken):
1275         * html/parser/HTMLToken.h:
1276         (WebCore::HTMLTokenTypes::DoctypeData::DoctypeData):
1277         (WebCore::HTMLToken::appendToName):
1278         (WebCore::HTMLToken::name):
1279         (WebCore::HTMLToken::forceQuirks):
1280         (WebCore::HTMLToken::setForceQuirks):
1281         (WebCore::AtomicHTMLToken::AtomicHTMLToken):
1282         (WebCore::AtomicHTMLToken::type):
1283         (WebCore::AtomicHTMLToken::selfClosing):
1284         (WebCore::AtomicHTMLToken::characters):
1285         (WebCore::AtomicHTMLToken::comment):
1286         (WebCore::AtomicHTMLToken::publicIdentifier):
1287         (WebCore::AtomicHTMLToken::systemIdentifier):
1288         (WebCore::AtomicHTMLToken::forceQuirks):
1289         (WebCore::AtomicHTMLToken::usesName):
1290         (WebCore::AtomicHTMLToken::usesAttributes):
1291         * html/parser/HTMLTokenizer.cpp:
1292         (WebCore::HTMLTokenizer::saveEndTagNameIfNeeded):
1293         (WebCore::HTMLTokenizer::flushBufferedEndTag):
1294         (WebCore::HTMLTokenizer::nextToken):
1295         (WebCore::HTMLTokenizer::haveBufferedCharacterToken):
1296         * html/parser/HTMLTreeBuilder.cpp:
1297         (WebCore::HTMLTreeBuilder::constructTreeFromToken):
1298         (WebCore::HTMLTreeBuilder::processToken):
1299         (WebCore::HTMLTreeBuilder::processDoctypeToken):
1300         (WebCore::HTMLTreeBuilder::processFakeStartTag):
1301         (WebCore::HTMLTreeBuilder::processFakeEndTag):
1302         (WebCore::HTMLTreeBuilder::processFakePEndTagIfPInButtonScope):
1303         (WebCore::HTMLTreeBuilder::processIsindexStartTagForInBody):
1304         (WebCore::HTMLTreeBuilder::processStartTagForInBody):
1305         (WebCore::HTMLTreeBuilder::processStartTagForInTable):
1306         (WebCore::HTMLTreeBuilder::processStartTag):
1307         (WebCore::HTMLTreeBuilder::processBodyEndTagForInBody):
1308         (WebCore::HTMLTreeBuilder::processAnyOtherEndTagForInBody):
1309         (WebCore::HTMLTreeBuilder::processEndTagForInTableBody):
1310         (WebCore::HTMLTreeBuilder::processEndTagForInRow):
1311         (WebCore::HTMLTreeBuilder::processEndTagForInCell):
1312         (WebCore::HTMLTreeBuilder::processEndTagForInBody):
1313         (WebCore::HTMLTreeBuilder::processEndTagForInTable):
1314         (WebCore::HTMLTreeBuilder::processEndTag):
1315         (WebCore::HTMLTreeBuilder::processComment):
1316         (WebCore::HTMLTreeBuilder::processCharacter):
1317         (WebCore::HTMLTreeBuilder::processEndOfFile):
1318         (WebCore::HTMLTreeBuilder::defaultForBeforeHTML):
1319         (WebCore::HTMLTreeBuilder::defaultForBeforeHead):
1320         (WebCore::HTMLTreeBuilder::defaultForInHead):
1321         (WebCore::HTMLTreeBuilder::defaultForInHeadNoscript):
1322         (WebCore::HTMLTreeBuilder::defaultForAfterHead):
1323         (WebCore::HTMLTreeBuilder::processStartTagForInHead):
1324         (WebCore::HTMLTreeBuilder::processGenericRCDATAStartTag):
1325         (WebCore::HTMLTreeBuilder::processGenericRawTextStartTag):
1326         (WebCore::HTMLTreeBuilder::processScriptStartTag):
1327         * html/parser/HTMLViewSourceParser.cpp:
1328         (WebCore::HTMLViewSourceParser::updateTokenizerState):
1329         * html/parser/TextDocumentParser.cpp:
1330         (WebCore::TextDocumentParser::insertFakePreElement):
1331         * html/parser/XSSAuditor.cpp:
1332         (WebCore::XSSAuditor::filterTokenInitial):
1333         (WebCore::XSSAuditor::filterTokenAfterScriptStartTag):
1334         (WebCore::XSSAuditor::filterScriptToken):
1335         (WebCore::XSSAuditor::filterObjectToken):
1336         (WebCore::XSSAuditor::filterParamToken):
1337         (WebCore::XSSAuditor::filterEmbedToken):
1338         (WebCore::XSSAuditor::filterAppletToken):
1339         (WebCore::XSSAuditor::filterIframeToken):
1340         (WebCore::XSSAuditor::filterMetaToken):
1341         (WebCore::XSSAuditor::filterBaseToken):
1342         (WebCore::XSSAuditor::filterFormToken):
1343         * xml/parser/MarkupTokenBase.h: Added.
1344         (WebCore::DoctypeDataBase::DoctypeDataBase):
1345         (WebCore::MarkupTokenBase::MarkupTokenBase):
1346         (WebCore::MarkupTokenBase::~MarkupTokenBase):
1347         (WebCore::MarkupTokenBase::clear):
1348         (WebCore::MarkupTokenBase::isUninitialized):
1349         (WebCore::MarkupTokenBase::startIndex):
1350         (WebCore::MarkupTokenBase::endIndex):
1351         (WebCore::MarkupTokenBase::setBaseOffset):
1352         (WebCore::MarkupTokenBase::end):
1353         (WebCore::MarkupTokenBase::makeEndOfFile):
1354         (WebCore::MarkupTokenBase::beginStartTag):
1355         (WebCore::MarkupTokenBase::beginEndTag):
1356         (WebCore::MarkupTokenBase::ensureIsCharacterToken):
1357         (WebCore::MarkupTokenBase::beginComment):
1358         (WebCore::MarkupTokenBase::beginDOCTYPE):
1359         (WebCore::MarkupTokenBase::appendToCharacter):
1360         (WebCore::MarkupTokenBase::appendToComment):
1361         (WebCore::MarkupTokenBase::addNewAttribute):
1362         (WebCore::MarkupTokenBase::beginAttributeName):
1363         (WebCore::MarkupTokenBase::endAttributeName):
1364         (WebCore::MarkupTokenBase::beginAttributeValue):
1365         (WebCore::MarkupTokenBase::endAttributeValue):
1366         (WebCore::MarkupTokenBase::appendToAttributeName):
1367         (WebCore::MarkupTokenBase::appendToAttributeValue):
1368         (WebCore::MarkupTokenBase::type):
1369         (WebCore::MarkupTokenBase::selfClosing):
1370         (WebCore::MarkupTokenBase::setSelfClosing):
1371         (WebCore::MarkupTokenBase::attributes):
1372         (WebCore::MarkupTokenBase::eraseCharacters):
1373         (WebCore::MarkupTokenBase::eraseValueOfAttribute):
1374         (WebCore::MarkupTokenBase::characters):
1375         (WebCore::MarkupTokenBase::comment):
1376         (WebCore::MarkupTokenBase::publicIdentifier):
1377         (WebCore::MarkupTokenBase::systemIdentifier):
1378         (WebCore::MarkupTokenBase::setPublicIdentifierToEmptyString):
1379         (WebCore::MarkupTokenBase::setSystemIdentifierToEmptyString):
1380         (WebCore::MarkupTokenBase::appendToPublicIdentifier):
1381         (WebCore::MarkupTokenBase::appendToSystemIdentifier):
1382         (WebCore::MarkupTokenBase::printString):
1383         (WebCore::MarkupTokenBase::printAttrs):
1384         (WebCore::MarkupTokenBase::appendToName):
1385         (WebCore::MarkupTokenBase::name):
1386         * xml/parser/XMLToken.h: Added.
1387         (WebCore::XMLToken::XMLToken):
1388         (WebCore::XMLToken::clear):
1389         (WebCore::XMLToken::appendToName):
1390         (WebCore::XMLToken::name):
1391         (WebCore::XMLToken::beginDOCTYPE):
1392         (WebCore::XMLToken::beginXMLDeclaration):
1393         (WebCore::XMLToken::appendToXMLVersion):
1394         (WebCore::XMLToken::beginXMLEncoding):
1395         (WebCore::XMLToken::appendToXMLEncoding):
1396         (WebCore::XMLToken::setXMLStandalone):
1397         (WebCore::XMLToken::beginProcessingInstruction):
1398         (WebCore::XMLToken::appendToProcessingInstructionTarget):
1399         (WebCore::XMLToken::appendToProcessingInstructionData):
1400         (WebCore::XMLToken::beginCDATA):
1401         (WebCore::XMLToken::appendToCDATA):
1402         (WebCore::XMLToken::beginEntity):
1403         (WebCore::XMLToken::print):
1404         (WebCore::XMLToken::XMLDeclarationData::XMLDeclarationData):
1405
1406 2011-07-20  Kulanthaivel Palanichamy  <kulanthaivel@codeaurora.org>
1407
1408         WebKit crashes on selection when documentElement is removed.
1409         https://bugs.webkit.org/show_bug.cgi?id=63908
1410
1411         This patch adds NULL pointer validation for documentElement
1412         in WebCore::startOfDocument
1413
1414         Reviewed by Eric Seidel.
1415
1416         Test: editing/selection/selection-empty-documentElement.html
1417
1418         * editing/visible_units.cpp:
1419         (WebCore::startOfDocument):
1420
1421 2011-07-20  Mike Reed  <reed@google.com>
1422
1423         [skia] use nocheck version of pixel packer when caller already has premultiplied data
1424         https://bugs.webkit.org/show_bug.cgi?id=64881
1425
1426         Reviewed by Kenneth Russell.
1427
1428         No new tests. existing canvas and svg test exercise this
1429
1430         * platform/graphics/skia/ImageBufferSkia.cpp:
1431         (WebCore::putImageData):
1432
1433 2011-07-20  Tony Chang  <tony@chromium.org>
1434
1435         add new flexbox data to StyleRareNonInheritedData
1436         https://bugs.webkit.org/show_bug.cgi?id=64765
1437
1438         Reviewed by David Hyatt.
1439
1440         Add placeholders for the positive and negative flex values for the
1441         width and the height.  When we get to the other properties (flex-pack,
1442         flex-align, etc), we'll add more to the StyleFlexibleBoxData class
1443
1444         No new tests, these values aren't hooked up to anything yet.
1445
1446         * CMakeLists.txt:
1447         * GNUmakefile.list.am:
1448         * WebCore.gypi:
1449         * WebCore.pro:
1450         * WebCore.vcproj/WebCore.vcproj:
1451         * WebCore.xcodeproj/project.pbxproj:
1452         * rendering/style/RenderStyle.cpp:
1453         (WebCore::RenderStyle::RenderStyle):
1454         (WebCore::RenderStyle::diff):
1455         * rendering/style/RenderStyle.h:
1456         (WebCore::InheritedFlags::flexboxWidthPositiveFlex):
1457         (WebCore::InheritedFlags::flexboxWidthNegativeFlex):
1458         (WebCore::InheritedFlags::flexboxHeightPositiveFlex):
1459         (WebCore::InheritedFlags::flexboxHeightNegativeFlex):
1460         (WebCore::InheritedFlags::setFlexboxWidthPositiveFlex):
1461         (WebCore::InheritedFlags::setFlexboxWidthNegativeFlex):
1462         (WebCore::InheritedFlags::setFlexboxHeightPositiveFlex):
1463         (WebCore::InheritedFlags::setFlexboxHeightNegativeFlex):
1464         (WebCore::InheritedFlags::initialFlexboxWidthPositiveFlex):
1465         (WebCore::InheritedFlags::initialFlexboxWidthNegativeFlex):
1466         (WebCore::InheritedFlags::initialFlexboxHeightPositiveFlex):
1467         (WebCore::InheritedFlags::initialFlexboxHeightNegativeFlex):
1468         * rendering/style/StyleAllInOne.cpp:
1469         * rendering/style/StyleFlexibleBoxData.cpp: Added.
1470         (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData):
1471         (WebCore::StyleFlexibleBoxData::operator==):
1472         * rendering/style/StyleFlexibleBoxData.h: Added.
1473         (WebCore::StyleFlexibleBoxData::create):
1474         (WebCore::StyleFlexibleBoxData::copy):
1475         (WebCore::StyleFlexibleBoxData::operator!=):
1476         * rendering/style/StyleRareNonInheritedData.cpp:
1477         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
1478         (WebCore::StyleRareNonInheritedData::operator==):
1479         * rendering/style/StyleRareNonInheritedData.h:
1480
1481 2011-07-20  Cary Clark  <caryclark@google.com>
1482
1483         update FontSkia to match platform context convention
1484         https://bugs.webkit.org/show_bug.cgi?id=64795
1485
1486         Reviewed by James Robinson.
1487
1488         No new tests. This platform variant is not
1489         built at this time.
1490
1491         * platform/graphics/skia/FontSkia.cpp:
1492         (WebCore::Font::drawGlyphs):
1493         Call makeGrContextCurrent instead of the obsolete prepareForSoftwareDraw.
1494
1495 2011-07-20  Brian Weinstein  <bweinstein@apple.com>
1496
1497         Build fix after r91384. Add an ASSERT_UNSED for the timer.
1498
1499         * loader/cache/CachedResourceLoader.cpp:
1500         (WebCore::CachedResourceLoader::garbageCollectDocumentResourcesTimerFired):
1501
1502 2011-07-20  Tony Chang  <tony@chromium.org>
1503
1504         Stale pointer due to floats not removed (flexible box display)
1505         https://bugs.webkit.org/show_bug.cgi?id=64603
1506
1507         Reviewed by David Hyatt.
1508
1509         Flexbox items should avoid floats.
1510
1511         Test: fast/flexbox/horizontal-box-float-crash.html
1512
1513         * rendering/RenderBox.cpp:
1514         (WebCore::RenderBox::avoidsFloats):
1515         * rendering/RenderBox.h:
1516         (WebCore::RenderBox::isDeprecatedFlexItem):
1517
1518 2011-07-20  Scott Graham  <scottmg@chromium.org>
1519
1520         Reviewed by Antti Koivisto.
1521
1522         REGRESSION (r39725?): Resources removed from document can not be freed
1523         until the document is deleted
1524         https://bugs.webkit.org/show_bug.cgi?id=61006
1525
1526         Upon completing a load start a Timer to iterate through
1527         CachedResourceLoader's m_documentResources map to check for any items
1528         that have only one reference (thus being the reference in the map
1529         itself). The map should really be weak, but because the
1530         CachedResourceHandle achieves bookkeeping work in addition to
1531         reference counting, this is a simpler and more localized way to free
1532         the used memory while maintaining the other behaviour (when
1533         CachedResource is used as proxy).
1534
1535         No new layout tests, but with this patch the testcase at
1536         https://bugs.webkit.org/attachment.cgi?id=93850 should no longer
1537         consume 400MB of ram on load.
1538
1539         * loader/cache/CachedResource.h:
1540         (WebCore::CachedResource::getHandleCount):
1541         * loader/cache/CachedResourceLoader.cpp:
1542         (WebCore::CachedResourceLoader::loadDone):
1543         (WebCore::CachedResourceLoader::garbageCollectDocumentResources):
1544         * loader/cache/CachedResourceLoader.h:
1545
1546 2011-07-20  James Robinson  <jamesr@chromium.org>
1547
1548         Revert worker and WebKit2 runloops to use currentTime() for scheduling instead of the monotonic clock
1549         https://bugs.webkit.org/show_bug.cgi?id=64841
1550
1551         Reviewed by Mark Rowe.
1552
1553         http://trac.webkit.org/changeset/91206 converted most of WebKit's deferred work scheduling to using the
1554         monotonic clock instead of WTF::currentTime().  This broke many plugin tests on WebKit2 for reasons that are
1555         unclear.  This reverts everything except for WebCore::ThreadTimers back to the previous behavior.
1556
1557         * workers/WorkerRunLoop.cpp:
1558         (WebCore::WorkerSharedTimer::setFireInterval):
1559
1560 2011-07-20  James Simonsen  <simonjam@chromium.org>
1561
1562         Refuse to run scripts inside the SVG shadow DOM
1563         https://bugs.webkit.org/show_bug.cgi?id=64776
1564
1565         This is a rollback of r90970. The hack that was removed there was also protecting us from
1566         two further bugs that have been discovered. So, the hack is going back in.
1567
1568         Reviewed by Tony Gentilcore.
1569
1570         * dom/ScriptElement.cpp:
1571         (WebCore::ScriptElement::prepareScript):
1572
1573 2011-07-20  David Levin  <levin@chromium.org>
1574
1575         gtk shouldn't have global variables for timers.
1576         https://bugs.webkit.org/show_bug.cgi?id=64871
1577
1578         Reviewed by Martin Robinson.
1579
1580         No new functionality exposed so no new tests.
1581
1582         * platform/graphics/cairo/ContextShadowCairo.cpp:
1583         (WebCore::scheduleScratchBufferPurge): Changed global variable to DEFINE_STATIC_LOCAL.
1584         * platform/gtk/WidgetRenderingContext.cpp:
1585         (WebCore::scheduleScratchBufferPurge): Ditto.
1586
1587 2011-07-20  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
1588
1589         [GTK] REGRESSION(r86436): does not add newlines when return is pressed with some modifiers held
1590         https://bugs.webkit.org/show_bug.cgi?id=64867
1591
1592         Reviewed by Martin Robinson.
1593
1594         * platform/gtk/KeyBindingTranslator.cpp:
1595         (WebCore::KeyBindingTranslator::getEditorCommandsForKeyEvent):
1596         special-case enter keys so that their commands are returned
1597         whatever the modifiers state.
1598
1599 2011-07-20  Mike Reed  <reed@google.com>
1600
1601         [skia] disable lcd text when drawing on a transparent layer or canvas
1602         https://bugs.webkit.org/show_bug.cgi?id=64873
1603
1604         Reviewed by Stephen White.
1605
1606         No new tests. canvas sites illustrate the bug. DRT disables LCD
1607         so existing layouttests are not affected by this change.
1608
1609         * platform/graphics/skia/SkiaFontWin.cpp:
1610         (WebCore::isCanvasMultiLayered):
1611         (WebCore::disableTextLCD):
1612         (WebCore::setupPaintForFont):
1613         (WebCore::paintSkiaText):
1614
1615 2011-07-20  Ilya Tikhonovsky  <loislo@chromium.org>
1616
1617         Web Inspector: add keyboard shortcuts to load/save operations in Timeline panel.
1618         https://bugs.webkit.org/show_bug.cgi?id=64864
1619
1620         Export/import were renamed to save/load.
1621         Ctrl|Meta-S/Ctrl|Meta-O shortcuts were added for Save and Load operations.
1622         Ctrl|Meta-E shortcut toggles Record button;
1623         Ctrl|Meta-Shift-F shortcut toggles short records filter button;
1624         All the shortcuts were added to the shortcuts help screen.
1625         There was a problem with saving empty data.
1626
1627         Reviewed by Yury Semikhatsky.
1628
1629         * English.lproj/localizedStrings.js:
1630         * inspector/front-end/TimelinePanel.js:
1631         (WebInspector.TimelinePanel.prototype._registerShortcuts):
1632         (WebInspector.TimelinePanel.prototype._createFileSelector):
1633         (WebInspector.TimelinePanel.prototype._contextMenu):
1634         (WebInspector.TimelinePanel.prototype._saveToFile):
1635         (WebInspector.TimelinePanel.prototype._loadFromFile):
1636         (WebInspector.TimelineModel.prototype._loadNextChunk):
1637         (WebInspector.TimelineModel.prototype._loadFromFile):
1638         (WebInspector.TimelineModel.prototype._loadFromFile.onError):
1639         (WebInspector.TimelineModel.prototype._saveToFile):
1640
1641 2011-07-20  Ryosuke Niwa  <rniwa@webkit.org>
1642
1643         Speculative build fix after r91355.
1644
1645         * bridge/jni/jsc/JavaInstanceJSC.cpp:
1646         (JavaInstance::invokeMethod):
1647
1648 2011-07-20  Tommy Widenflycht  <tommyw@google.com>
1649
1650         MediaStream API: Update the tracklists to the latest spec
1651         https://bugs.webkit.org/show_bug.cgi?id=64791
1652
1653         Reviewed by Tony Gentilcore.
1654
1655         The test harness will be forthcoming very soon now, introducing tests for this.
1656
1657         * CMakeLists.txt:
1658         * CodeGenerators.pri:
1659         * DerivedSources.cpp:
1660         * DerivedSources.make:
1661         * GNUmakefile.list.am:
1662         * WebCore.gypi:
1663         * WebCore.pro:
1664         * WebCore.vcproj/WebCore.vcproj:
1665         * WebCore.xcodeproj/project.pbxproj:
1666         * bindings/js/JSEventTarget.cpp:
1667         (WebCore::toJS):
1668         * bindings/v8/V8DOMWrapper.cpp:
1669         (WebCore::V8DOMWrapper::convertEventTargetToV8Object):
1670         * dom/DOMAllInOne.cpp:
1671         * dom/EventTarget.cpp:
1672         * dom/EventTarget.h:
1673         * dom/ExclusiveTrackList.cpp: Removed.
1674         * dom/LocalMediaStream.cpp:
1675         (WebCore::LocalMediaStream::create):
1676         (WebCore::LocalMediaStream::LocalMediaStream):
1677         (WebCore::LocalMediaStream::streamEnded):
1678         (WebCore::LocalMediaStream::stop):
1679         * dom/LocalMediaStream.h:
1680         (WebCore::LocalMediaStream::isLocalMediaStream):
1681         * dom/LocalMediaStream.idl:
1682         * dom/MediaStream.cpp:
1683         (WebCore::MediaStream::create):
1684         (WebCore::MediaStream::MediaStream):
1685         * dom/MediaStream.h:
1686         (WebCore::MediaStream::tracks):
1687         * dom/MediaStream.idl:
1688         * dom/MediaStreamTrack.cpp: Copied from Source/WebCore/dom/ExclusiveTrackList.h.
1689         (WebCore::MediaStreamTrack::create):
1690         (WebCore::MediaStreamTrack::MediaStreamTrack):
1691         (WebCore::MediaStreamTrack::~MediaStreamTrack):
1692         (WebCore::MediaStreamTrack::kind):
1693         (WebCore::MediaStreamTrack::label):
1694         (WebCore::MediaStreamTrack::enabled):
1695         (WebCore::MediaStreamTrack::setEnabled):
1696         * dom/MediaStreamTrack.h: Renamed from Source/WebCore/dom/MultipleTrackList.h.
1697         * dom/MediaStreamTrack.idl: Renamed from Source/WebCore/dom/ExclusiveTrackList.idl.
1698         * dom/MediaStreamTrackList.cpp: Renamed from Source/WebCore/dom/ExclusiveTrackList.h.
1699         (WebCore::MediaStreamTrackList::create):
1700         (WebCore::MediaStreamTrackList::MediaStreamTrackList):
1701         (WebCore::MediaStreamTrackList::~MediaStreamTrackList):
1702         (WebCore::MediaStreamTrackList::length):
1703         (WebCore::MediaStreamTrackList::item):
1704         * dom/MediaStreamTrackList.h: Renamed from Source/WebCore/dom/TrackList.idl.
1705         (WebCore::MediaStreamTrackList::associateStream):
1706         * dom/MediaStreamTrackList.idl: Renamed from Source/WebCore/dom/MultipleTrackList.idl.
1707         * dom/MultipleTrackList.cpp: Removed.
1708         * dom/TrackList.cpp: Removed.
1709         * dom/TrackList.h: Removed.
1710         * page/MediaStreamClient.h:
1711         * page/MediaStreamController.cpp:
1712         (WebCore::MediaStreamController::setMediaStreamTrackEnabled):
1713         (WebCore::MediaStreamController::streamGenerated):
1714         * page/MediaStreamController.h:
1715         * page/MediaStreamFrameController.cpp:
1716         (WebCore::MediaStreamFrameController::setMediaStreamTrackEnabled):
1717         (WebCore::MediaStreamFrameController::streamGenerated):
1718         * page/MediaStreamFrameController.h:
1719
1720 2011-07-20  Andrew Wason  <rectalogic@rectalogic.com>
1721
1722         [Qt] Make OpenGL symbol resolver transparent
1723         https://bugs.webkit.org/show_bug.cgi?id=57154
1724
1725         Reviewed by Noam Rosenthal.
1726
1727         Adopting new resolver should be transparent,
1728         existing tests should apply.
1729
1730         Adopt OpenGLShims symbol resolver from cairo for Qt.
1731         Update TextureMapperGL and Qt GraphicsContext3D to use the resolver.
1732
1733         * WebCore.pro:
1734         * platform/graphics/cairo/OpenGLShims.cpp:
1735         (WebCore::getProcAddress):
1736         * platform/graphics/cairo/OpenGLShims.h:
1737         * platform/graphics/opengl/TextureMapperGL.cpp:
1738         (WebCore::TextureMapperGL::beginPainting):
1739         * platform/graphics/qt/GraphicsContext3DQt.cpp:
1740         (WebCore::GraphicsContext3DInternal::GraphicsContext3DInternal):
1741         (WebCore::GraphicsContext3DInternal::~GraphicsContext3DInternal):
1742         (WebCore::GraphicsContext3DInternal::reshape):
1743         (WebCore::GraphicsContext3DInternal::paintToTextureMapper):
1744         (WebCore::GraphicsContext3DInternal::paint):
1745         (WebCore::GraphicsContext3D::activeTexture):
1746         (WebCore::GraphicsContext3D::attachShader):
1747         (WebCore::GraphicsContext3D::getAttachedShaders):
1748         (WebCore::GraphicsContext3D::bindAttribLocation):
1749         (WebCore::GraphicsContext3D::bindBuffer):
1750         (WebCore::GraphicsContext3D::bindFramebuffer):
1751         (WebCore::GraphicsContext3D::bindRenderbuffer):
1752         (WebCore::GraphicsContext3D::blendColor):
1753         (WebCore::GraphicsContext3D::blendEquation):
1754         (WebCore::GraphicsContext3D::blendEquationSeparate):
1755         (WebCore::GraphicsContext3D::blendFuncSeparate):
1756         (WebCore::GraphicsContext3D::bufferData):
1757         (WebCore::GraphicsContext3D::bufferSubData):
1758         (WebCore::GraphicsContext3D::checkFramebufferStatus):
1759         (WebCore::GraphicsContext3D::compileShader):
1760         (WebCore::GraphicsContext3D::detachShader):
1761         (WebCore::GraphicsContext3D::disableVertexAttribArray):
1762         (WebCore::GraphicsContext3D::enableVertexAttribArray):
1763         (WebCore::GraphicsContext3D::framebufferRenderbuffer):
1764         (WebCore::GraphicsContext3D::framebufferTexture2D):
1765         (WebCore::GraphicsContext3D::generateMipmap):
1766         (WebCore::GraphicsContext3D::getActiveAttrib):
1767         (WebCore::GraphicsContext3D::getActiveUniform):
1768         (WebCore::GraphicsContext3D::getAttribLocation):
1769         (WebCore::GraphicsContext3D::isBuffer):
1770         (WebCore::GraphicsContext3D::isFramebuffer):
1771         (WebCore::GraphicsContext3D::isProgram):
1772         (WebCore::GraphicsContext3D::isRenderbuffer):
1773         (WebCore::GraphicsContext3D::isShader):
1774         (WebCore::GraphicsContext3D::linkProgram):
1775         (WebCore::GraphicsContext3D::renderbufferStorage):
1776         (WebCore::GraphicsContext3D::sampleCoverage):
1777         (WebCore::GraphicsContext3D::shaderSource):
1778         (WebCore::GraphicsContext3D::stencilFuncSeparate):
1779         (WebCore::GraphicsContext3D::stencilMaskSeparate):
1780         (WebCore::GraphicsContext3D::stencilOpSeparate):
1781         (WebCore::GraphicsContext3D::uniform1f):
1782         (WebCore::GraphicsContext3D::uniform1fv):
1783         (WebCore::GraphicsContext3D::uniform2f):
1784         (WebCore::GraphicsContext3D::uniform2fv):
1785         (WebCore::GraphicsContext3D::uniform3f):
1786         (WebCore::GraphicsContext3D::uniform3fv):
1787         (WebCore::GraphicsContext3D::uniform4f):
1788         (WebCore::GraphicsContext3D::uniform4fv):
1789         (WebCore::GraphicsContext3D::uniform1i):
1790         (WebCore::GraphicsContext3D::uniform1iv):
1791         (WebCore::GraphicsContext3D::uniform2i):
1792         (WebCore::GraphicsContext3D::uniform2iv):
1793         (WebCore::GraphicsContext3D::uniform3i):
1794         (WebCore::GraphicsContext3D::uniform3iv):
1795         (WebCore::GraphicsContext3D::uniform4i):
1796         (WebCore::GraphicsContext3D::uniform4iv):
1797         (WebCore::GraphicsContext3D::uniformMatrix2fv):
1798         (WebCore::GraphicsContext3D::uniformMatrix3fv):
1799         (WebCore::GraphicsContext3D::uniformMatrix4fv):
1800         (WebCore::GraphicsContext3D::useProgram):
1801         (WebCore::GraphicsContext3D::validateProgram):
1802         (WebCore::GraphicsContext3D::vertexAttrib1f):
1803         (WebCore::GraphicsContext3D::vertexAttrib1fv):
1804         (WebCore::GraphicsContext3D::vertexAttrib2f):
1805         (WebCore::GraphicsContext3D::vertexAttrib2fv):
1806         (WebCore::GraphicsContext3D::vertexAttrib3f):
1807         (WebCore::GraphicsContext3D::vertexAttrib3fv):
1808         (WebCore::GraphicsContext3D::vertexAttrib4f):
1809         (WebCore::GraphicsContext3D::vertexAttrib4fv):
1810         (WebCore::GraphicsContext3D::vertexAttribPointer):
1811         (WebCore::GraphicsContext3D::getBufferParameteriv):
1812         (WebCore::GraphicsContext3D::getFramebufferAttachmentParameteriv):
1813         (WebCore::GraphicsContext3D::getProgramiv):
1814         (WebCore::GraphicsContext3D::getProgramInfoLog):
1815         (WebCore::GraphicsContext3D::getRenderbufferParameteriv):
1816         (WebCore::GraphicsContext3D::getShaderiv):
1817         (WebCore::GraphicsContext3D::getShaderInfoLog):
1818         (WebCore::GraphicsContext3D::getShaderSource):
1819         (WebCore::GraphicsContext3D::getUniformfv):
1820         (WebCore::GraphicsContext3D::getUniformiv):
1821         (WebCore::GraphicsContext3D::getUniformLocation):
1822         (WebCore::GraphicsContext3D::getVertexAttribfv):
1823         (WebCore::GraphicsContext3D::getVertexAttribiv):
1824         (WebCore::GraphicsContext3D::getVertexAttribOffset):
1825         (WebCore::GraphicsContext3D::createBuffer):
1826         (WebCore::GraphicsContext3D::createFramebuffer):
1827         (WebCore::GraphicsContext3D::createProgram):
1828         (WebCore::GraphicsContext3D::createRenderbuffer):
1829         (WebCore::GraphicsContext3D::createShader):
1830         (WebCore::GraphicsContext3D::deleteBuffer):
1831         (WebCore::GraphicsContext3D::deleteFramebuffer):
1832         (WebCore::GraphicsContext3D::deleteProgram):
1833         (WebCore::GraphicsContext3D::deleteRenderbuffer):
1834         (WebCore::GraphicsContext3D::deleteShader):
1835
1836 2011-07-20  Steve Block  <steveblock@google.com>
1837
1838         [V8] JavaMethodJobject::signature() incorrectly encodes arguments of type JavaTypeString
1839         https://bugs.webkit.org/show_bug.cgi?id=62389
1840
1841         Reviewed by Tony Gentilcore.
1842
1843         Covered by existing tests.
1844
1845         * bridge/jni/JavaMethodJobject.cpp:
1846         (JavaMethodJobject::signature):
1847
1848 2011-07-20  Yury Semikhatsky  <yurys@chromium.org>
1849
1850         Web Inspector: sidebar width sometimes is not restored
1851         https://bugs.webkit.org/show_bug.cgi?id=64869
1852
1853         Make sure sidebar width is restored even if window initial size has not been set yet.
1854
1855         Reviewed by Pavel Feldman.
1856
1857         * inspector/front-end/Panel.js:
1858         (WebInspector.Panel.prototype.show):
1859         (WebInspector.Panel.prototype.updateSidebarWidth):
1860
1861 2011-07-20  Andrey Kosyakov  <caseq@chromium.org>
1862
1863         Web Inspector: remove dead code (WebInspector.drawLoadingPieChart)
1864         https://bugs.webkit.org/show_bug.cgi?id=64868
1865
1866         Reviewed by Yury Semikhatsky.
1867
1868         * inspector/front-end/inspector.js:
1869
1870 2011-07-20  Andrey Kosyakov  <caseq@chromium.org>
1871
1872         Web Inspector: move Network log view to an iframe
1873         https://bugs.webkit.org/show_bug.cgi?id=62006
1874
1875         Reviewed by Pavel Feldman.
1876
1877         * WebCore.gypi:
1878         * WebCore.vcproj/WebCore.vcproj:
1879         * inspector/front-end/ExtensionServer.js:
1880         (WebInspector.ExtensionServer.prototype._onWindowMessage):
1881         * inspector/front-end/IFrameView.js: Added.
1882         (WebInspector.IFrameView):
1883         (WebInspector.IFrameView.prototype._innerShow):
1884         (WebInspector.IFrameView.prototype._innerHide):
1885         (WebInspector.IFrameView.prototype.attach):
1886         (WebInspector.IFrameView.prototype._attachIFrameAndInitialize):
1887         (WebInspector.IFrameView.prototype.addStylesheets):
1888         (WebInspector.IFrameView.prototype._setDocumentType):
1889         (WebInspector.IFrameView.prototype._propagateBodyStyle):
1890         * inspector/front-end/NetworkPanel.js:
1891         (WebInspector.NetworkLogView):
1892         (WebInspector.NetworkLogView.prototype.initializeView):
1893         (WebInspector.NetworkLogView.prototype.elementsToRestoreScrollPositionsFor):
1894         (WebInspector.NetworkLogView.prototype._createTable):
1895         (WebInspector.NetworkLogView.prototype._updateDividersIfNeeded):
1896         (WebInspector.NetworkLogView.prototype.show):
1897         (WebInspector.NetworkLogView.prototype._reset):
1898         (WebInspector.NetworkLogView.prototype.switchToDetailedView):
1899         (WebInspector.NetworkLogView.prototype.switchToBriefView):
1900         (WebInspector.NetworkLogView.prototype.get _setLargerResources):
1901         (WebInspector.NetworkLogView.prototype._updateHighlightIfMatched):
1902         (WebInspector.NetworkLogView.prototype.performSearch):
1903         (WebInspector.NetworkLogView.prototype.searchCanceled):
1904         (WebInspector.NetworkPanel):
1905         (WebInspector.NetworkPanel.prototype._onSearchCountUpdated):
1906         (WebInspector.NetworkDataGridNode.prototype.select):
1907         * inspector/front-end/Popover.js:
1908         (WebInspector.Popover.prototype._positionElement):
1909         * inspector/front-end/View.js:
1910         (WebInspector.View.prototype._innerShow):
1911         (WebInspector.View.prototype.show):
1912         (WebInspector.View.prototype._innerHide):
1913         (WebInspector.View.prototype.hide):
1914         * inspector/front-end/WebKit.qrc:
1915         * inspector/front-end/dataGrid.css: Added.
1916         * inspector/front-end/inspectorCommon.css: Added.
1917         * inspector/front-end/networkLogView.css: Copied from Source/WebCore/inspector/front-end/networkPanel.css.
1918
1919 2011-07-20  Steve Block  <steveblock@google.com>
1920
1921         JobjectWrapper should inherit from RefCounted rather than implementing its own ref counting
1922         https://bugs.webkit.org/show_bug.cgi?id=55786
1923
1924         Also adds static create() method and cleans up use of data members.
1925
1926         Reviewed by Tony Gentilcore.
1927
1928         No new tests, refactoring only.
1929
1930         * bridge/jni/JobjectWrapper.cpp:
1931         (JobjectWrapper::JobjectWrapper):
1932         * bridge/jni/JobjectWrapper.h:
1933         (JSC::Bindings::JobjectWrapper::create):
1934         * bridge/jni/jsc/JavaArrayJSC.cpp:
1935         (JavaArray::JavaArray):
1936         * bridge/jni/jsc/JavaArrayJSC.h:
1937         (JSC::Bindings::JavaArray::javaArray):
1938         * bridge/jni/jsc/JavaFieldJSC.cpp:
1939         (JavaField::JavaField):
1940         (JavaField::dispatchValueFromInstance):
1941         (JavaField::dispatchSetValueToInstance):
1942         * bridge/jni/jsc/JavaInstanceJSC.cpp:
1943         (JavaInstance::JavaInstance):
1944         (JavaInstance::getClass):
1945         (JavaInstance::stringValue):
1946         (JavaInstance::numberValue):
1947         (JavaInstance::booleanValue):
1948         (JavaInstance::invokeMethod):
1949         * bridge/jni/jsc/JavaInstanceJSC.h:
1950         (JSC::Bindings::JavaInstance::javaInstance):
1951         * bridge/jni/v8/JavaFieldJobjectV8.cpp:
1952         (JavaFieldJobject::JavaFieldJobject):
1953         * bridge/jni/v8/JavaInstanceJobjectV8.cpp:
1954         (JavaInstanceJobject::JavaInstanceJobject):
1955         * bridge/jni/v8/JavaInstanceJobjectV8.h:
1956         (JSC::Bindings::JavaInstanceJobject::javaInstance):
1957
1958 2011-07-20  Kentaro Hara  <haraken@google.com>
1959
1960         The value of a number input form continues to increase/decrease even if we disable the input form.
1961         https://bugs.webkit.org/show_bug.cgi?id=64786
1962
1963         Reviewed by Kent Tamura.
1964
1965         The value of the number input form continues to increase/decrease in the following scenario:
1966         (1) Click the spin button of the input form.
1967         (2) Hook the 'mouseup' event and disable the input form.
1968         (3) Enable the input form after some delay (e.g. 50ms).
1969
1970         What is happening above is as follows:
1971         (1) When the 'mousedown' event happens, the repeating timer of the spin button starts.
1972         (2) If the input form is not disabled, the repeating timer stops at the 'mouseup' event.
1973         However, if the input form is disabled, the 'mouseup' event is ignored, failing to stop
1974         the repeating timer.
1975         (3) The value continues to increase/decrease, since the repeating timer is still working.
1976
1977         This patch stops the repeating timer when the input form gets disabled or readonly.
1978
1979         Test: fast/forms/spin-button-gets-disabled-or-readonly.html
1980
1981         * html/HTMLInputElement.cpp:
1982         (WebCore::HTMLInputElement::parseMappedAttribute): Calls disabledAttributeChanged() when 'disabled' attribute gets changed. Calls readonlyAttributeChanged() when 'readonly' attribute gets changed.
1983         * html/InputType.cpp:
1984         (WebCore::InputType::disabledAttributeChanged): Stops the repeating timer and releases mouse capturing.
1985         (WebCore::InputType::readonlyAttributeChanged): Ditto.
1986         * html/InputType.h:
1987         * html/TextFieldInputType.cpp:
1988         (WebCore::TextFieldInputType::disabledAttributeChanged): Ditto.
1989         (WebCore::TextFieldInputType::readonlyAttributeChanged): Ditto.
1990         * html/TextFieldInputType.h:
1991         * html/shadow/TextControlInnerElements.cpp:
1992         (WebCore::SpinButtonElement::detach): Replased the code with releaseCapture().
1993         (WebCore::SpinButtonElement::defaultEventHandler): Ditto.
1994         (WebCore::SpinButtonElement::releaseCapture): Stops the repeating timer and releases mouse capturing.
1995         * html/shadow/TextControlInnerElements.h:
1996
1997 2011-07-20  Sheriff Bot  <webkit.review.bot@gmail.com>
1998
1999         Unreviewed, rolling out r91285.
2000         http://trac.webkit.org/changeset/91285
2001         https://bugs.webkit.org/show_bug.cgi?id=64854
2002
2003         "Assertion hit in svg/custom/crash-textPath-attributes.html"
2004         (Requested by mihnea on #webkit).
2005
2006         * rendering/RenderObjectChildList.cpp:
2007         (WebCore::RenderObjectChildList::updateBeforeAfterContent):
2008
2009 2011-07-20  Yury Semikhatsky  <yurys@chromium.org>
2010
2011         Web Inspector: don't send Console.enable messages in case of workers
2012         https://bugs.webkit.org/show_bug.cgi?id=64853
2013
2014         Reviewed by Pavel Feldman.
2015
2016         * inspector/front-end/inspector.js:
2017
2018 2011-07-20  Boris Smus  <smus@chromium.org>
2019
2020         Add a resourceLink audit formatter to make it possible for devtools
2021         extensions to link to specific lines in HTML/JS/CSS resources from the
2022         audit results panel.
2023
2024         https://bugs.webkit.org/show_bug.cgi?id=64315
2025
2026         Reviewed by Yury Semikhatsky.
2027
2028         * inspector/front-end/AuditFormatters.js: resourceLink implementation
2029         * inspector/front-end/ExtensionAPI.js: registering resourceLink FormattedValue
2030
2031
2032 2011-07-20  Kent Tamura  <tkent@chromium.org>
2033
2034         input type=number doesn't render correctly in rtl.
2035         https://bugs.webkit.org/show_bug.cgi?id=59703
2036
2037         Reviewed by Ryosuke Niwa.
2038
2039         Test: fast/forms/input-appearance-number-rtl.html
2040
2041         * css/html.css:
2042         (input[type="search"]::-webkit-textfield-decoration-container):
2043         Set "direction: ltr;" only for type=search because we'd like to
2044         respect text direction except type=search.
2045         (input[x-webkit-speech][di=rtl]::-webkit-input-speech-button):
2046         Remove a workaround.
2047         * rendering/RenderTextControlSingleLine.cpp:
2048         (WebCore::RenderTextControlSingleLine::layout):
2049         Support for RTL in the spin button location adjustment.
2050
2051 2011-07-19  Steve Lacey  <sjl@chromium.org>
2052
2053         [chromium] Media player controls do not fade out.
2054         https://bugs.webkit.org/show_bug.cgi?id=64837
2055
2056         Media controls were not fading out when the mouse leaves the video
2057         due to underlying changes in webkit media controls.
2058         Fix was to copy missing code from MediaControlRootElement to
2059         MediaControlRootElementChromium.
2060
2061         Reviewed by Dimitri Glazkov.
2062
2063         * html/shadow/MediaControlRootElementChromium.cpp:
2064         (WebCore::MediaControlRootElementChromium::MediaControlRootElementChromium):
2065         (WebCore::MediaControlRootElementChromium::playbackProgressed):
2066         (WebCore::MediaControlRootElementChromium::containsRelatedTarget):
2067         (WebCore::MediaControlRootElementChromium::defaultEventHandler):
2068         * html/shadow/MediaControlRootElementChromium.h:
2069
2070 2011-07-19  Luke Macpherson   <macpherson@chromium.org>
2071
2072         Implement CSSPropertyCounterIncrement and CounterReset in CSSStyleApplyProperty.
2073         https://bugs.webkit.org/show_bug.cgi?id=64846
2074
2075         Reviewed by Dimitri Glazkov.
2076
2077         No new tests / refactoring only.
2078
2079         * css/CSSStyleApplyProperty.cpp:
2080         (WebCore::ApplyPropertyCounter
2081         Added class to handle counter properties.
2082         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
2083         Initialize counter property handlers.
2084         * css/CSSStyleSelector.cpp:
2085         (WebCore::CSSStyleSelector::applyProperty):
2086         Remove old handlers.
2087
2088 2011-07-19  Kent Tamura  <tkent@chromium.org>
2089
2090         REGRESSION(r89004): Video pauses and never resumes playing if scrubbed during playback.
2091         https://bugs.webkit.org/show_bug.cgi?id=64314
2092
2093         Reviewed by Sam Weinig.
2094
2095         No new tests because it's hard to make a non-flaky test for this behavior.
2096
2097         * html/RangeInputType.cpp:
2098         (WebCore::RangeInputType::handleMouseDownEvent):
2099         Don't call SliderThumbElement::dragFrom() for events on the thumb.
2100         * html/shadow/SliderThumbElement.cpp:
2101         (WebCore::SliderThumbElement::defaultEventHandler):
2102         Do not call setDefaultHandled() for mouse events in order to
2103         propagate them to ancestor elements.
2104
2105 2011-07-19  Matthew Delaney  <mdelaney@apple.com>
2106
2107         Add fast path for ImageBuffer::draw
2108         https://bugs.webkit.org/show_bug.cgi?id=64535
2109
2110         Reviewed by Simon Fraser.
2111
2112         No new tests. This patch doesn't change behavior; current tests are sufficient.
2113
2114         * platform/graphics/GraphicsContext.cpp:
2115         (WebCore::GraphicsContext::drawImage): Moved the main method version next to wrapper versions.
2116
2117         * platform/graphics/ImageBuffer.h:
2118         1) Added BackingStoreCopy enum for choosing to copy backing store or not in copyImage().
2119         2) Added copyNativeImage() behind USE(CG) - same as copyImage() but gives NativeImagePtr.
2120         * platform/graphics/cg/ImageBufferCG.cpp: Added new methods described above.
2121
2122         * platform/graphics/GraphicsContext.h: Adding drawNativeImage() for fast draw path.
2123         * platform/graphics/cg/GraphicsContextCG.cpp:
2124         (WebCore::GraphicsContext::drawNativeImage): Added. Draws a nativeImagePtr into context.
2125
2126         * platform/graphics/Image.h: Added imageWithColorSpace behind CG platform ifdef
2127         * platform/graphics/cg/ImageCG.cpp:
2128         (WebCore::BitmapImage::draw): Refactored out actual image drawing code into GraphicsContext,
2129         so that it can be used by more than just BitmapImage without having to copy code.
2130         (WebCore::Image::imageWithColorSpace): Made into an Image class function.
2131
2132         Updated copyImage() to for BackingStoreCopy:
2133         * platform/graphics/qt/ImageBufferQt.cpp
2134         * platform/graphics/filters/FETile.cpp
2135         * platform/graphics/cairo/ImageBufferCairo.cpp
2136         * platform/graphics/skia/ImageBufferSkia.cpp
2137         * platform/graphics/wx/ImageBufferWx.cpp
2138         * platform/graphics/wince/ImageBufferWinCE.cpp
2139         * svg/SVGFEImageElement.cpp
2140         * svg/graphics/SVGImage.cpp
2141         * html/HTMLCanvasElement.cpp
2142         * html/canvas/WebGLRenderingContext.cpp
2143         * rendering/svg/RenderSVGResourcePattern.cpp
2144
2145 2011-07-19  Leo Yang  <leoyang.webkit@gmail.com>
2146
2147         SVG: Missing implementation of <altGlyphDef>, <altGlyphItem> and <glyphRef>
2148         https://bugs.webkit.org/show_bug.cgi?id=60850
2149
2150         Reviewed by Nikolas Zimmermann.
2151
2152         SVG spec: http://www.w3.org/TR/SVG/text.html#AlternateGlyphDefinitions.
2153         This patch is to implement SVG <altGlyphDef>, <altGlyphItem> and <glyphRef>
2154         elements for alternative glyph features.
2155
2156         NOTE: x, y, dx, dy, format and glyphRef attributes on <glyphRef> are not
2157         honored yet, so neither are the reaction of dynamic change of them. They
2158         will be honored in separated patches.
2159
2160         Test: svg/W3C-SVG-1.1/text-altglyph-01-b.svg
2161         With this patch this test works as expected.
2162
2163         * CMakeLists.txt:
2164         * CodeGenerators.pri:
2165         * DerivedSources.cpp:
2166         * DerivedSources.make:
2167         * GNUmakefile.list.am:
2168         * WebCore.exp.in:
2169         * WebCore.gypi:
2170         * WebCore.pro:
2171         * WebCore.vcproj/WebCore.vcproj:
2172         * WebCore.xcodeproj/project.pbxproj:
2173         * bindings/objc/DOM.mm:
2174         (WebCore::createElementClassMap):
2175         * bindings/objc/DOMSVG.h:
2176         * page/DOMWindow.idl:
2177         * svg/SVGAllInOne.cpp:
2178         * svg/SVGAltGlyphDefElement.cpp: Added.
2179         (WebCore::SVGAltGlyphDefElement::SVGAltGlyphDefElement):
2180         (WebCore::SVGAltGlyphDefElement::create):
2181         (WebCore::SVGAltGlyphDefElement::hasValidGlyphElements):
2182         * svg/SVGAltGlyphDefElement.h: Added.
2183         * svg/SVGAltGlyphDefElement.idl: Added.
2184         * svg/SVGAltGlyphElement.cpp:
2185         (WebCore::SVGAltGlyphElement::hasValidGlyphElements):
2186         * svg/SVGAltGlyphElement.h:
2187         * svg/SVGAltGlyphItemElement.cpp: Added.
2188         (WebCore::SVGAltGlyphItemElement::SVGAltGlyphItemElement):
2189         (WebCore::SVGAltGlyphItemElement::create):
2190         (WebCore::SVGAltGlyphItemElement::hasValidGlyphElements):
2191         * svg/SVGAltGlyphItemElement.h: Added.
2192         * svg/SVGAltGlyphItemElement.idl: Added.
2193         * svg/SVGFontData.cpp:
2194         (WebCore::SVGFontData::applySVGGlyphSelection):
2195         * svg/SVGGlyphRefElement.cpp: Added.
2196         (WebCore::SVGGlyphRefElement::SVGGlyphRefElement):
2197         (WebCore::SVGGlyphRefElement::create):
2198         (WebCore::SVGGlyphRefElement::hasValidGlyphElement):
2199         (WebCore::SVGGlyphRefElement::parseMappedAttribute):
2200         (WebCore::SVGGlyphRefElement::glyphRef):
2201         (WebCore::SVGGlyphRefElement::setGlyphRef):
2202         (WebCore::SVGGlyphRefElement::setX):
2203         (WebCore::SVGGlyphRefElement::setY):
2204         (WebCore::SVGGlyphRefElement::setDx):
2205         (WebCore::SVGGlyphRefElement::setDy):
2206         * svg/SVGGlyphRefElement.h: Added.
2207         * svg/SVGGlyphRefElement.idl: Added.
2208         * svg/svgtags.in:
2209
2210 2011-07-19  Adam Roben  <aroben@apple.com>
2211
2212         Remove some unused code in FormDataStreamCFNet
2213
2214         Rubber-stamped by Steve Falkenburg.
2215
2216         * platform/network/cf/FormDataStreamCFNet.cpp:
2217
2218 2011-07-19  Simon Fraser  <simon.fraser@apple.com>
2219
2220         REGRESSION (r91136-r91146): 40 tests failing on Windows 7 Release (Tests)
2221         https://bugs.webkit.org/show_bug.cgi?id=64808
2222
2223         Reviewed by Adam Roben.
2224
2225         Initializing m_uncommittedChanges to a non-zero value
2226         caused the first call to noteLayerPropertyChanged() to
2227         not call m_client->notifySyncRequired(). This resulted in
2228         animations never getting committed on Windows, which broke
2229         a lot of tests.
2230
2231         * platform/graphics/ca/GraphicsLayerCA.cpp:
2232         (WebCore::GraphicsLayerCA::GraphicsLayerCA):
2233
2234 2011-07-19  James Robinson  <jamesr@chromium.org>
2235
2236         [chromium] LayerRendererChromium shouldn't be a friend of RenderSurfaceChromium
2237         https://bugs.webkit.org/show_bug.cgi?id=64834
2238
2239         Reviewed by Kenneth Russell.
2240
2241         Uses setters and getters to access RenderSurfaceChromium's private member variables instead of directly
2242         accessing them via a friend declaration. This cleans up a minor code smell and will be helpful for future
2243         refactoring.
2244
2245         Refactor only, no change in behavior.  Tested by compositing/ tests.
2246
2247         * platform/graphics/chromium/LayerRendererChromium.cpp:
2248         (WebCore::LayerRendererChromium::updateLayers):
2249         (WebCore::LayerRendererChromium::paintLayerContents):
2250         (WebCore::LayerRendererChromium::drawLayers):
2251         (WebCore::LayerRendererChromium::updatePropertiesAndRenderSurfaces):
2252         (WebCore::LayerRendererChromium::updateCompositorResources):
2253         (WebCore::LayerRendererChromium::getOffscreenLayerTexture):
2254         (WebCore::LayerRendererChromium::copyOffscreenTextureToDisplay):
2255         (WebCore::LayerRendererChromium::useRenderSurface):
2256         (WebCore::LayerRendererChromium::drawLayer):
2257         (WebCore::LayerRendererChromium::setScissorToRect):
2258         * platform/graphics/chromium/RenderSurfaceChromium.cpp:
2259         (WebCore::RenderSurfaceChromium::clearLayerList):
2260         * platform/graphics/chromium/RenderSurfaceChromium.h:
2261         (WebCore::RenderSurfaceChromium::layerList):
2262         (WebCore::RenderSurfaceChromium::contentRect):
2263         (WebCore::RenderSurfaceChromium::setContentRect):
2264         (WebCore::RenderSurfaceChromium::drawOpacity):
2265         (WebCore::RenderSurfaceChromium::setDrawOpacity):
2266         (WebCore::RenderSurfaceChromium::drawTransform):
2267         (WebCore::RenderSurfaceChromium::setDrawTransform):
2268         (WebCore::RenderSurfaceChromium::maskLayer):
2269         (WebCore::RenderSurfaceChromium::setMaskLayer):
2270         (WebCore::RenderSurfaceChromium::originTransform):
2271         (WebCore::RenderSurfaceChromium::setOriginTransform):
2272         (WebCore::RenderSurfaceChromium::replicaDrawTransform):
2273         (WebCore::RenderSurfaceChromium::setReplicaDrawTransform):
2274         (WebCore::RenderSurfaceChromium::scissorRect):
2275         (WebCore::RenderSurfaceChromium::setScissorRect):
2276         (WebCore::RenderSurfaceChromium::skipsDraw):
2277         (WebCore::RenderSurfaceChromium::setSkipsDraw):
2278         (WebCore::RenderSurfaceChromium::contentsTexture):
2279
2280 2011-07-19  Jessie Berlin  <jberlin@apple.com>
2281
2282         GTK + QT build fix.
2283
2284         Rubber-stamped by Daniel Bates and Alexey Proskuryakov.
2285
2286         * loader/ResourceLoader.cpp:
2287         (WebCore::ResourceLoader::willSendRequest):
2288         (WebCore::ResourceLoader::didSendData):
2289         (WebCore::ResourceLoader::didReceiveResponse):
2290         (WebCore::ResourceLoader::didReceiveData):
2291         (WebCore::ResourceLoader::didFinishLoading):
2292         (WebCore::ResourceLoader::didFail):
2293         (WebCore::ResourceLoader::wasBlocked):
2294         (WebCore::ResourceLoader::cannotShowURL):
2295         (WebCore::ResourceLoader::shouldUseCredentialStorage):
2296         (WebCore::ResourceLoader::willCacheResponse):
2297
2298 2011-07-19  Chris Rogers  <crogers@google.com>
2299
2300         Fix web audio compile on mac port
2301         https://bugs.webkit.org/show_bug.cgi?id=64836
2302
2303         Unreviewed build fix.
2304
2305         * bindings/js/JSAudioContextCustom.cpp:
2306         (WebCore::JSAudioContextConstructor::constructJSAudioContext):
2307         (WebCore::JSAudioContext::createBuffer):
2308
2309 2011-07-19  Jessie Berlin  <jberlin@apple.com>
2310
2311         Work towards determining the cause of frequent crashes due to null frame below
2312         ApplicationCacheHost::scheduleLoadFallbackResourceFromApplicationCache.
2313         https://bugs.webkit.org/show_bug.cgi?id=62764
2314
2315         Reviewed by Alexey Proskuryakov.
2316
2317         Make these unexpected cases crash in the WebKit nightlies so we can gather more
2318         information and potentially find a repro case.
2319
2320         * loader/ResourceLoader.cpp:
2321         (WebCore::ResourceLoader::willSendRequest):
2322         (WebCore::ResourceLoader::didSendData):
2323         (WebCore::ResourceLoader::didReceiveResponse):
2324         (WebCore::ResourceLoader::didReceiveData):
2325         (WebCore::ResourceLoader::didFinishLoading):
2326         (WebCore::ResourceLoader::didFail):
2327         (WebCore::ResourceLoader::wasBlocked):
2328         (WebCore::ResourceLoader::cannotShowURL):
2329         (WebCore::ResourceLoader::shouldUseCredentialStorage):
2330         (WebCore::ResourceLoader::willCacheResponse):
2331
2332 2011-07-19  Dan Bernstein  <mitz@apple.com>
2333
2334         Nothing printed when specifying a very large maximum layout width
2335         https://bugs.webkit.org/show_bug.cgi?id=64831
2336
2337         Reviewed by Beth Dakin.
2338
2339         I am not adding a test because the DumpRenderTree printing test machinery is based on PrintContext,
2340         which does not exercise the code path on which this bug lies.
2341
2342         * page/FrameView.cpp:
2343         (WebCore::FrameView::forceLayoutForPagination): Fixed an integer overflow.
2344
2345 2011-07-19  Nate Chapin  <japhet@chromium.org>
2346
2347         [V8] Wait until no v8 context is on the stack before
2348         cancelling pending indexed db transactions.
2349         https://bugs.webkit.org/show_bug.cgi?id=64552
2350
2351         Reviewed by Adam Barth.
2352
2353         Test: storage/indexeddb/transaction-abort-with-js-recursion.html
2354
2355         * bindings/v8/V8Proxy.cpp:
2356         (WebCore::V8Proxy::didLeaveScriptContext):
2357
2358 2011-07-19  MORITA Hajime  <morrita@google.com>
2359
2360         Crash in CompositeEditCommand::replaceTextInNodePreservingMarkers.
2361         https://bugs.webkit.org/show_bug.cgi?id=64738
2362
2363         Reviewed by Ryosuke Niwa.
2364
2365         Test: editing/undo/replace-text-in-node-preserving-markers-crash.html
2366
2367         * editing/CompositeEditCommand.cpp:
2368         (WebCore::copyMarkers):
2369         (WebCore::CompositeEditCommand::replaceTextInNodePreservingMarkers):
2370
2371 2011-07-19  Mike West  <mkwst@chromium.org>
2372
2373         Sending a `Ping-From` header for cross-origin pings from non-HTTPS documents.
2374         https://bugs.webkit.org/show_bug.cgi?id=64789
2375
2376         Also a drive-by cleanup of whitespace.
2377
2378         Reviewed by Nate Chapin.
2379
2380         * loader/PingLoader.cpp:
2381         (WebCore::PingLoader::loadImage):
2382         (WebCore::PingLoader::sendPing):
2383
2384 2011-07-15  Luke Zarko  <lukezarko@gmail.com>
2385
2386        Bring V8's SerializedScriptValue implementation up to date.
2387
2388         https://bugs.webkit.org/show_bug.cgi?id=63481
2389
2390         Reviewed by David Levin.
2391         
2392         The HTML5 Structured Clone algorithm (http://www.whatwg.org/specs/web-apps/current-work/multipage/urls.html#safe-passing-of-structured-data) has been updated since the V8 version of SerializedScriptValue was first implemented. This patch aims to bring this implementation up to date. It:
2393         
2394         - Introduces the new HTML5 DOM error codes for TIMEOUT_ERR, INVALID_NODE_TYPE_ERR, DATA_CLONE_ERR
2395         - Handles cyclic structures and equality of reference preservation for cloned values
2396         - Allows DataViews to be constructed on the native side using the existing wrapper techniques
2397         - Amends tests and introduces new ones to check for correctness (the bulk of the patch)
2398         - Tolerates the old version of the serialized object format
2399         
2400         The patch permits the cloning of JavaScript typed arrays. This functionality is in active use already and was supported (somewhat inefficiently) by the existing code through an artifact of implementation.
2401
2402         Tests: fast/dom/Window/window-postmessage-clone-deep-array.html
2403                fast/dom/Window/window-postmessage-clone-really-deep-array.html
2404                fast/dom/Window/window-postmessage-clone.html
2405                fast/canvas/webgl/array-message-passing.html
2406
2407         * bindings/v8/SerializedScriptValue.cpp:
2408         (WebCore::V8ObjectMap::Writer::writeVersion):
2409         (WebCore::V8ObjectMap::Writer::writeArrayBuffer):
2410         (WebCore::V8ObjectMap::Writer::writeArrayBufferView):
2411         (WebCore::V8ObjectMap::Writer::writeObjectReference):
2412         (WebCore::V8ObjectMap::Writer::writeReferenceCount):
2413         (WebCore::V8ObjectMap::Writer::writeGenerateFreshObject):
2414         (WebCore::V8ObjectMap::Writer::writeGenerateFreshArray):
2415         (WebCore::V8ObjectMap::Writer::doWriteArrayBuffer):
2416         (WebCore::V8ObjectMap::Serializer::Serializer):
2417         (WebCore::V8ObjectMap::Serializer::serialize):
2418         (WebCore::V8ObjectMap::Serializer::StateBase::execDepth):
2419         (WebCore::V8ObjectMap::Serializer::AbstractObjectState::AbstractObjectState):
2420         (WebCore::V8ObjectMap::Serializer::AbstractObjectState::advance):
2421         (WebCore::V8ObjectMap::Serializer::AbstractObjectState::execDepth):
2422         (WebCore::V8ObjectMap::Serializer::execDepth):
2423         (WebCore::V8ObjectMap::Serializer::push):
2424         (WebCore::V8ObjectMap::Serializer::pop):
2425         (WebCore::V8ObjectMap::Serializer::handleError):
2426         (WebCore::V8ObjectMap::Serializer::writeAndGreyArrayBufferView):
2427         (WebCore::V8ObjectMap::Serializer::writeArrayBuffer):
2428         (WebCore::V8ObjectMap::Serializer::greyObject):
2429         (WebCore::V8ObjectMap::Serializer::doSerialize):
2430         (WebCore::V8ObjectMap::Reader::Reader):
2431         (WebCore::V8ObjectMap::Reader::read):
2432         (WebCore::V8ObjectMap::Reader::readVersion):
2433         (WebCore::V8ObjectMap::Reader::setVersion):
2434         (WebCore::V8ObjectMap::Reader::undoReadTag):
2435         (WebCore::V8ObjectMap::Reader::readArrayBufferViewSubTag):
2436         (WebCore::V8ObjectMap::Reader::doReadArrayBuffer):
2437         (WebCore::V8ObjectMap::Reader::readArrayBuffer):
2438         (WebCore::V8ObjectMap::Reader::readArrayBufferView):
2439         (WebCore::V8ObjectMap::Deserializer::Deserializer):
2440         (WebCore::V8ObjectMap::Deserializer::deserialize):
2441         (WebCore::V8ObjectMap::Deserializer::newArray):
2442         (WebCore::V8ObjectMap::Deserializer::consumeTopOfStack):
2443         (WebCore::V8ObjectMap::Deserializer::completeArray):
2444         (WebCore::V8ObjectMap::Deserializer::newObject):
2445         (WebCore::V8ObjectMap::Deserializer::completeObject):
2446         (WebCore::V8ObjectMap::Deserializer::completeSparseArray):
2447         (WebCore::V8ObjectMap::Deserializer::pushObjectReference):
2448         (WebCore::V8ObjectMap::Deserializer::tryGetObjectFromObjectReference):
2449         (WebCore::V8ObjectMap::Deserializer::objectReferenceCount):
2450         (WebCore::V8ObjectMap::Deserializer::openComposite):
2451         (WebCore::V8ObjectMap::Deserializer::closeComposite):
2452         (WebCore::SerializedScriptValue::SerializedScriptValue):
2453         * bindings/v8/V8Binding.cpp:
2454         (WebCore::isHostObject):
2455         * bindings/v8/V8Binding.h:
2456         * bindings/v8/custom/V8DataViewCustom.cpp:
2457         (WebCore::V8DataView::constructorCallback):
2458         * dom/DOMCoreException.idl:
2459         * dom/ExceptionCode.cpp:
2460         * dom/ExceptionCode.h:
2461         * html/canvas/ArrayBuffer.cpp:
2462         (WebCore::ArrayBuffer::create):
2463         * html/canvas/ArrayBuffer.h:
2464         * html/canvas/DataView.cpp:
2465         (WebCore::DataView::create):
2466         * html/canvas/DataView.h:
2467
2468 2011-07-19  Simon Fraser  <simon.fraser@apple.com>
2469
2470         Possible recursion in GraphicsLayerCA::updateGeometry()
2471         https://bugs.webkit.org/show_bug.cgi?id=64815
2472
2473         Reviewed by Sam Weinig.
2474         
2475         It was possible to recurse via updateGeometry/swapFromOrToTiledLayer/
2476         updateContentsScale because updateGeometry() and updateContentsScale()
2477         used different sizes; updateGeometry() used the scaled size, while
2478         updateContentsScale() used the unscaled size.
2479         
2480         Always use the unscaled size; the scaled size will be at most a couple
2481         of pixels bigger, and our threshold is not close to the max texture
2482         size limit, so using the slightly smaller size is OK.
2483
2484         Test: compositing/scaling/tiled-layer-recursion.html
2485
2486         * platform/graphics/ca/GraphicsLayerCA.cpp:
2487         (WebCore::GraphicsLayerCA::updateGeometry):
2488         (WebCore::GraphicsLayerCA::updateLayerDrawsContent):
2489         (WebCore::GraphicsLayerCA::updateContentsScale):
2490         (WebCore::GraphicsLayerCA::requiresTiledLayer):
2491         * platform/graphics/ca/GraphicsLayerCA.h:
2492
2493 2011-07-19  Mihnea Ovidenie  <mihnea@adobe.com>
2494
2495         [CSSRegions]Parse -webkit-region-overflow property
2496         https://bugs.webkit.org/show_bug.cgi?id=64444
2497
2498         Reviewed by David Hyatt.
2499
2500         Test: fast/regions/webkit-region-overflow-parsing.html
2501
2502         * css/CSSComputedStyleDeclaration.cpp:
2503         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
2504         * css/CSSParser.cpp:
2505         (WebCore::CSSParser::parseValue):
2506         * css/CSSPrimitiveValueMappings.h:
2507         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
2508         (WebCore::CSSPrimitiveValue::operator RegionOverflow):
2509         * css/CSSPropertyNames.in:
2510         * css/CSSStyleSelector.cpp:
2511         (WebCore::CSSStyleSelector::applyProperty):
2512         * css/CSSValueKeywords.in:
2513         * rendering/style/RenderStyle.cpp:
2514         (WebCore::RenderStyle::diff):
2515         * rendering/style/RenderStyle.h:
2516         (WebCore::InheritedFlags::regionOverflow):
2517         (WebCore::InheritedFlags::setRegionOverflow):
2518         (WebCore::InheritedFlags::initialRegionOverflow):
2519         * rendering/style/RenderStyleConstants.h:
2520         * rendering/style/StyleRareNonInheritedData.cpp:
2521         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
2522         (WebCore::StyleRareNonInheritedData::operator==):
2523         * rendering/style/StyleRareNonInheritedData.h:
2524
2525 2011-07-19  Mihnea Ovidenie  <mihnea@adobe.com>
2526
2527         hover then un-hover makes state change
2528         https://bugs.webkit.org/show_bug.cgi?id=56401
2529
2530         When a 'before' pseudo-element is re-added, we should check whether the insertion point is an anonymous
2531         block with inline children. If it is, then we should change the insertion point to the first child of the
2532         anonymous block, otherwise the 'before' pseudo-element ends up in a different block.
2533
2534         Reviewed by David Hyatt.
2535
2536         Test: fast/dynamic/hover-before-position-after-style-change.html
2537
2538         * rendering/RenderObjectChildList.cpp:
2539         (WebCore::RenderObjectChildList::updateBeforeAfterContent):
2540
2541 2011-07-19  Luke Macpherson   <macpherson@chromium.org>
2542
2543         Implement CSSPropertyWebkitPerspectiveOrigin in CSSStyleApplyProperty.
2544         https://bugs.webkit.org/show_bug.cgi?id=64784
2545
2546         Reviewed by Simon Fraser.
2547
2548         No new tests / refactoring.
2549
2550         * css/CSSStyleApplyProperty.cpp:
2551         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
2552         * css/CSSStyleSelector.cpp:
2553         (WebCore::CSSStyleSelector::applyProperty):
2554
2555 2011-07-19  Chris Rogers  <crogers@google.com>
2556
2557         Implement WaveShaperNode for Web Audio API
2558         https://bugs.webkit.org/show_bug.cgi?id=64644
2559
2560         Reviewed by Kenneth Russell.
2561         
2562         No new tests since audio API is not yet implemented.
2563
2564         * DerivedSources.make:
2565         * WebCore.gypi:
2566         * WebCore.xcodeproj/project.pbxproj:
2567         * bindings/js/JSWaveShaperNodeCustom.cpp: Added.
2568         (WebCore::JSWaveShaperNode::setCurve):
2569         * webaudio/AudioContext.cpp:
2570         (WebCore::AudioContext::createWaveShaper):
2571         * webaudio/AudioContext.h:
2572         * webaudio/AudioContext.idl:
2573         * webaudio/AudioNode.h:
2574         * webaudio/WaveShaperDSPKernel.cpp: Added.
2575         (WebCore::WaveShaperDSPKernel::process):
2576         * webaudio/WaveShaperDSPKernel.h: Added.
2577         (WebCore::WaveShaperDSPKernel::WaveShaperDSPKernel):
2578         (WebCore::WaveShaperDSPKernel::reset):
2579         (WebCore::WaveShaperDSPKernel::waveShaperProcessor):
2580         * webaudio/WaveShaperNode.cpp: Added.
2581         (WebCore::WaveShaperNode::WaveShaperNode):
2582         (WebCore::WaveShaperNode::setCurve):
2583         (WebCore::WaveShaperNode::curve):
2584         * webaudio/WaveShaperNode.h: Added.
2585         (WebCore::WaveShaperNode::create):
2586         (WebCore::WaveShaperNode::waveShaperProcessor):
2587         * webaudio/WaveShaperNode.idl: Added.
2588         * webaudio/WaveShaperProcessor.cpp: Added.
2589         (WebCore::WaveShaperProcessor::WaveShaperProcessor):
2590         (WebCore::WaveShaperProcessor::~WaveShaperProcessor):
2591         (WebCore::WaveShaperProcessor::createKernel):
2592         (WebCore::WaveShaperProcessor::setCurve):
2593         (WebCore::WaveShaperProcessor::process):
2594         * webaudio/WaveShaperProcessor.h: Added.
2595         (WebCore::WaveShaperProcessor::curve):
2596
2597 2011-07-19  Robert Hogan  <robert@webkit.org>
2598
2599         REGRESSION: Incorrect layout at recline-online.com
2600         https://bugs.webkit.org/show_bug.cgi?id=64030
2601
2602         Reviewed by David Hyatt.
2603
2604         http://trac.webkit.org/changeset/68362 dropped the check for cases
2605         where the render box is floating or inline. When the box is left or right
2606         aligned it is considered to be floating and needs to its margins set appropriately.
2607
2608         Test: fast/table/align-right-within-left-aligned-div.html
2609               created by Dominic Cooney <dominicc@chromium.org>
2610
2611         * rendering/RenderBox.cpp:
2612         (WebCore::RenderBox::computeInlineDirectionMargins):
2613
2614 2011-07-19  Abhishek Arya  <inferno@chromium.org>
2615
2616         Crash when removing unrenderered nodes in replacement fragment.
2617         https://bugs.webkit.org/show_bug.cgi?id=64801
2618
2619         Reviewed by Ryosuke Niwa.
2620
2621         Test: editing/pasteboard/replacement-fragment-remove-unrendered-node-crash.html
2622
2623         * editing/ReplaceSelectionCommand.cpp:
2624         (WebCore::ReplacementFragment::removeUnrenderedNodes):
2625
2626 2011-07-19  Rob Buis  <rbuis@rim.com>
2627
2628         https://bugs.webkit.org/show_bug.cgi?id=64673
2629         REGRESSION (Safari 5.0.5 - ToT): crash in SVG test http://dev.w3.org/SVG/profiles/1.1F2/test/harness/htmlObjectApproved/styling-pres-02-f.html
2630
2631         Reviewed by Nikolas Zimmermann.
2632
2633         Prevent calling back to the owning SVGTRefElement upon handling DOMSubtreeModified events.
2634
2635         Test: svg/W3C-SVG-1.1-SE/styling-pres-02-f.svg
2636
2637         * svg/SVGTRefElement.cpp:
2638         (WebCore::SubtreeModificationEventListener::handleEvent):
2639
2640 2011-07-19  Tony Chang  <tony@chromium.org>
2641
2642         use more specific types in CSSFlexValue
2643         https://bugs.webkit.org/show_bug.cgi?id=64763
2644
2645         Reviewed by Ojan Vafai.
2646
2647         No new tests because no change in functionality.
2648
2649         * css/CSSFlexValue.h:
2650         (WebCore::CSSFlexValue::create):
2651         (WebCore::CSSFlexValue::isFlexValue): Make it possible to tell if
2652             we're a flex value or not.  Will be needed when we're copying
2653             values to RenderStyle.
2654         (WebCore::CSSFlexValue::positiveFlex): Use floats for positive and
2655             negative flex because in the render code, we use floats.
2656         (WebCore::CSSFlexValue::negativeFlex): Add accessors for these since
2657             we'll need it when reading the flex values.
2658         (WebCore::CSSFlexValue::preferredSize):
2659         (WebCore::CSSFlexValue::CSSFlexValue):
2660         * css/CSSParser.cpp:
2661         (WebCore::CSSParser::parseValidPrimitive): Make the type more
2662             specific.
2663         (WebCore::CSSParser::parseFlex):
2664         * css/CSSParser.h:
2665         * css/CSSValue.h:
2666         (WebCore::CSSValue::isFlexValue):
2667
2668 2011-07-19  Chris Fleizach  <cfleizach@apple.com>
2669
2670         If the control associated with a <label> is hidden, the label is also hidden (incorrectly)
2671         https://bugs.webkit.org/show_bug.cgi?id=64752
2672
2673         Reviewed by Darin Adler.
2674
2675         Test: platform/mac/accessibility/label-element-with-hidden-control.html
2676
2677         * accessibility/AccessibilityRenderObject.cpp:
2678         (WebCore::AccessibilityRenderObject::exposesTitleUIElement):
2679
2680 2011-07-19  Vsevolod Vlasov  <vsevik@chromium.org>
2681
2682         Web Inspector: Backend should provide network resource identifiers that are unique across navigation.
2683         https://bugs.webkit.org/show_bug.cgi?id=64746
2684
2685         Reviewed by Pavel Feldman.
2686
2687         * inspector/ConsoleMessage.cpp:
2688         (WebCore::ConsoleMessage::ConsoleMessage):
2689         (WebCore::ConsoleMessage::addToFrontend):
2690         * inspector/ConsoleMessage.h:
2691         * inspector/IdentifiersFactory.cpp:
2692         (WebCore::IdentifiersFactory::createIdentifier):
2693         (WebCore::IdentifiersFactory::resourceId):
2694         (WebCore::IdentifiersFactory::addProcessIdPrefixTo):
2695         * inspector/IdentifiersFactory.h:
2696         * inspector/Inspector.json:
2697         * inspector/InspectorConsoleAgent.cpp:
2698         (WebCore::InspectorConsoleAgent::didReceiveResponse):
2699         (WebCore::InspectorConsoleAgent::didFailLoading):
2700         * inspector/InspectorPageAgent.h:
2701         * inspector/InspectorResourceAgent.cpp:
2702         (WebCore::InspectorResourceAgent::willSendRequest):
2703         (WebCore::InspectorResourceAgent::markResourceAsCached):
2704         (WebCore::InspectorResourceAgent::didReceiveResponse):
2705         (WebCore::InspectorResourceAgent::didReceiveData):
2706         (WebCore::InspectorResourceAgent::didFinishLoading):
2707         (WebCore::InspectorResourceAgent::didFailLoading):
2708         (WebCore::InspectorResourceAgent::didLoadResourceFromMemoryCache):
2709         (WebCore::InspectorResourceAgent::setInitialScriptContent):
2710         (WebCore::InspectorResourceAgent::setInitialXHRContent):
2711         (WebCore::InspectorResourceAgent::didReceiveXHRResponse):
2712         (WebCore::InspectorResourceAgent::didCreateWebSocket):
2713         (WebCore::InspectorResourceAgent::willSendWebSocketHandshakeRequest):
2714         (WebCore::InspectorResourceAgent::didReceiveWebSocketHandshakeResponse):
2715         (WebCore::InspectorResourceAgent::didCloseWebSocket):
2716         (WebCore::InspectorResourceAgent::getResourceContent):
2717         * inspector/InspectorResourceAgent.h:
2718         * inspector/InspectorTimelineAgent.cpp:
2719         (WebCore::InspectorTimelineAgent::willSendResourceRequest):
2720         (WebCore::InspectorTimelineAgent::willReceiveResourceData):
2721         (WebCore::InspectorTimelineAgent::willReceiveResourceResponse):
2722         (WebCore::InspectorTimelineAgent::didFinishLoadingResource):
2723         * inspector/NetworkResourcesData.cpp:
2724         (WebCore::NetworkResourcesData::ResourceData::ResourceData):
2725         (WebCore::NetworkResourcesData::resourceCreated):
2726         (WebCore::NetworkResourcesData::responseReceived):
2727         (WebCore::NetworkResourcesData::setResourceType):
2728         (WebCore::NetworkResourcesData::resourceType):
2729         (WebCore::NetworkResourcesData::setResourceContent):
2730         (WebCore::NetworkResourcesData::maybeAddResourceData):
2731         (WebCore::NetworkResourcesData::maybeDecodeDataToContent):
2732         (WebCore::NetworkResourcesData::addCachedResource):
2733         (WebCore::NetworkResourcesData::addResourceSharedBuffer):
2734         (WebCore::NetworkResourcesData::data):
2735         (WebCore::NetworkResourcesData::clear):
2736         (WebCore::NetworkResourcesData::ensureNoDataForResourceId):
2737         (WebCore::NetworkResourcesData::ensureFreeSpace):
2738         * inspector/NetworkResourcesData.h:
2739         (WebCore::NetworkResourcesData::ResourceData::resourceId):
2740         * inspector/TimelineRecordFactory.cpp:
2741         (WebCore::TimelineRecordFactory::createResourceSendRequestData):
2742         (WebCore::TimelineRecordFactory::createResourceReceiveResponseData):
2743         (WebCore::TimelineRecordFactory::createResourceFinishData):
2744         (WebCore::TimelineRecordFactory::createReceiveResourceData):
2745         * inspector/TimelineRecordFactory.h:
2746
2747 2011-07-19  Jessie Berlin  <jberlin@apple.com>
2748
2749         Fix assertion failure seen in plugins/return-npobject.html on Windows XP Debug bots.
2750
2751         Rubber-stamped by Adam Roben.
2752
2753         * loader/ResourceLoader.cpp:
2754         (WebCore::ResourceLoader::didReceiveData):
2755         It is possible for a subclass to cancel the load from within didReceiveData, which would
2756         set m_documentLoader to 0.
2757         Remove the assertion I added that the DocumentLoader's frame is non-null.
2758
2759 2011-07-19  Steve Block  <steveblock@google.com>
2760
2761         REGRESSION (r82194): jvalueToJavaValue() does not correctly set length of String property
2762         https://bugs.webkit.org/show_bug.cgi?id=64730
2763
2764         Reviewed by Alexey Proskuryakov.
2765
2766         Covered by existing tests.
2767
2768         * bridge/jni/v8/JNIUtilityPrivate.cpp:
2769         (JSC::Bindings::jvalueToJavaValue):
2770
2771 2011-07-19  Vitaly Repeshko  <vitalyr@chromium.org>
2772
2773         [V8] Don't put CSSRuleLists in object groups.
2774         https://bugs.webkit.org/show_bug.cgi?id=64798
2775
2776         Reviewed by Pavel Feldman.
2777
2778         Retention of CSSRuleLists should be implemented using hidden
2779         references from holder objects. By putting lists in groups we
2780         artificially extend their lifetimes much more than necessary.
2781
2782         * bindings/v8/V8GCController.cpp:
2783         (WebCore::GrouperVisitor::visitDOMWrapper):
2784
2785 2011-07-19  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2786
2787         [EFL] Add ewk_network.cpp|h files.
2788         https://bugs.webkit.org/show_bug.cgi?id=63315
2789
2790         Enable setOnLine(bool) on EFL port as well as Android and Chromium.
2791
2792         Reviewed by Antonio Gomes.
2793
2794         * platform/network/NetworkStateNotifier.cpp:
2795         * platform/network/NetworkStateNotifier.h:
2796
2797 2011-07-19  Ilya Tikhonovsky  <loislo@chromium.org>
2798
2799         Web Inspector: implement import/export for timeline data.
2800         https://bugs.webkit.org/show_bug.cgi?id=64601
2801
2802         Reviewed by Yury Semikhatsky.
2803
2804         Test: inspector/timeline/timeline-load.html
2805
2806         * English.lproj/localizedStrings.js:
2807         * inspector/InspectorFrontendHost.cpp:
2808         (WebCore::FrontendMenuProvider::contextMenuItemSelected):
2809         * inspector/front-end/TimelinePanel.js:
2810         (WebInspector.TimelinePanel):
2811         (WebInspector.TimelinePanel.prototype._createFileSelector):
2812         (WebInspector.TimelinePanel.prototype._contextMenu):
2813         (WebInspector.TimelinePanel.prototype._exportToFile):
2814         (WebInspector.TimelinePanel.prototype._importFromFile):
2815         (WebInspector.TimelinePanel.prototype._addRecordToTimeline):
2816         (WebInspector.TimelinePanel.prototype._clearPanel):
2817         (WebInspector.TimelineModel):
2818         (WebInspector.TimelineModel.prototype._addRecord):
2819         (WebInspector.TimelineModel.prototype._importNextChunk):
2820         (WebInspector.TimelineModel.prototype._importFromFile):
2821         (WebInspector.TimelineModel.prototype._importFromFile.onError):
2822         (WebInspector.TimelineModel.prototype._exportToFile):
2823         (WebInspector.TimelineModel.prototype._reset):
2824         * inspector/front-end/utilities.js:
2825         ():
2826
2827 2011-07-19  Vsevolod Vlasov  <vsevik@chromium.org>
2828
2829         Web Inspector: Rename agentIdentifierPrefix to processId, move out from page agent and make static.
2830         https://bugs.webkit.org/show_bug.cgi?id=64729
2831
2832         Reviewed by Pavel Feldman.
2833
2834         * CMakeLists.txt:
2835         * GNUmakefile.list.am:
2836         * WebCore.gypi:
2837         * WebCore.pro:
2838         * WebCore.vcproj/WebCore.vcproj:
2839         * WebCore.xcodeproj/project.pbxproj:
2840         * inspector/IdentifiersFactory.cpp: Added.
2841         (WebCore::IdentifiersFactory::createIdentifier):
2842         * inspector/IdentifiersFactory.h: Added.
2843         (WebCore::IdentifiersFactory::setProcessId):
2844         * inspector/InspectorController.cpp:
2845         (WebCore::InspectorController::setProcessId):
2846         * inspector/InspectorController.h:
2847         * inspector/InspectorPageAgent.cpp:
2848         (WebCore::InspectorPageAgent::frameId):
2849         (WebCore::InspectorPageAgent::loaderId):
2850         * inspector/InspectorPageAgent.h:
2851
2852 2011-07-19  Jeremy Moskovich  <jeremy@chromium.org>
2853
2854         Fix microphone icon placement in speech input control for dir=rtl.
2855         https://bugs.webkit.org/show_bug.cgi?id=64668
2856
2857         Reviewed by Dimitri Glazkov.
2858
2859         Modify default stylesheet to propagate dir=rtl from the outer input
2860         control to the shadow DOM container.  This makes the microphone
2861         icon appear on the left for dir=rtl, which is the desired behavior.
2862
2863         Test: fast/speech/speech-bidi-rendering.html
2864
2865         * css/html.css:
2866         (input[x-webkit-speech][dir=rtl]::-webkit-textfield-decoration-container):
2867
2868 2011-07-19  Raphael Kubo da Costa  <kubo@profusion.mobi>
2869
2870         [EFL] Account for the invalid pointer case in WebCore::screenRect()
2871         https://bugs.webkit.org/show_bug.cgi?id=64543
2872
2873         Reviewed by Antonio Gomes.
2874
2875         Fix a regression introduced in r88245: it assumes the pointer passed
2876         to screenRect() is always valid.
2877         fast/frames/crash-removed-iframe.html proves this is not always true,
2878         so we need to do some sanity check on the pointer before using it.
2879         No new tests as this has been caught by the current test suite.
2880
2881         * platform/efl/PlatformScreenEfl.cpp:
2882         (WebCore::screenRect):
2883
2884 2011-07-19  Robin Qiu  <robin.qiu@torchmobile.com.cn>
2885
2886         Reviewed by Antonio Gomes.
2887
2888         ScrollBar should initialize current position in constructor.
2889         https://bugs.webkit.org/show_bug.cgi?id=39284
2890
2891         When ScrollBar is created, m_currentPos should be initialized to
2892         m_scrollableArea's current scrollPosition. Because scrollbars may
2893         be created after the content of m_scrollableArea has been scrolled.
2894
2895         Test: scrollbars/scrollbar-initial-position.html
2896
2897         * platform/Scrollbar.cpp:
2898         (WebCore::Scrollbar::Scrollbar):
2899
2900 2011-07-19  Yuta Kitamura  <yutak@chromium.org>
2901
2902         WebSocket: Implement hybi framing
2903         https://bugs.webkit.org/show_bug.cgi?id=64522
2904
2905         Reviewed by Kent Tamura.
2906
2907         Implement WebSocket framing protocol which is mainly described in
2908         <http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-10#section-4> and
2909         <http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-10#section-6>.
2910
2911         Hybi protocol introduces a new frame format which is drastically different from
2912         the old one. Notable differences are:
2913         - Binary data support.
2914         - Fragmentation support: a single message can be fragmented to multiple frames.
2915         - Ping-pong support.
2916         - Masking: frame content of a client must be masked to prevent cross-protocol attacks.
2917
2918         This patch covers the following features:
2919         - Send a pong frame when a ping frame is received.
2920         - Receive fragmented frames.
2921         - Receive masked frames. (Servers do not have to mask frames, but they may if they wish.)
2922
2923         The following features are NOT implemented yet:
2924         - Send or receive binary messages.
2925         - Send a ping message.
2926         - Send fragmented frames. (It is unclear whether this is necessary.)
2927         - Rewrite the frame content by WebSocket protocol extensions (like frame compression).
2928
2929         New tests: http/tests/websocket/tests/hybi/broken-utf8.html
2930                    http/tests/websocket/tests/hybi/fragmented-control-frame.html
2931                    http/tests/websocket/tests/hybi/fragmented-frames.html
2932                    http/tests/websocket/tests/hybi/interleaved-fragments.html
2933                    http/tests/websocket/tests/hybi/long-control-frame.html
2934                    http/tests/websocket/tests/hybi/masked-frames.html
2935                    http/tests/websocket/tests/hybi/pong.html
2936                    http/tests/websocket/tests/hybi/reserved-bits.html
2937                    http/tests/websocket/tests/hybi/reserved-opcodes.html
2938                    http/tests/websocket/tests/hybi/too-long-payload.html
2939
2940         * websockets/WebSocketChannel.cpp:
2941         (WebCore::WebSocketChannel::WebSocketChannel):
2942         (WebCore::WebSocketChannel::send):
2943         The original content of send() was moved to a private method sendFrameHixie76().
2944         (WebCore::WebSocketChannel::fail):
2945         Stop handling incoming data after the WebSocket connection is failed.
2946         It was unclear to me whether we should do the same thing for hixie-76 connection;
2947         for now, I kept the original behavior.
2948         (WebCore::WebSocketChannel::processBuffer):
2949         (WebCore::WebSocketChannel::resumeTimerFired):
2950         (WebCore::WebSocketChannel::startClosingHandshake):
2951         (WebCore::WebSocketChannel::closingTimerFired):
2952         (WebCore::WebSocketChannel::parseFrame):
2953         (WebCore::WebSocketChannel::processFrame):
2954         (WebCore::WebSocketChannel::processFrameHixie76):
2955         (WebCore::WebSocketChannel::sendFrame):
2956         (WebCore::WebSocketChannel::sendFrameHixie76):
2957         * websockets/WebSocketChannel.h:
2958         (WebCore::WebSocketChannel::isNonControlOpCode):
2959         (WebCore::WebSocketChannel::isControlOpCode):
2960         (WebCore::WebSocketChannel::isReservedOpCode):
2961
2962 2011-07-19  Nikolas Zimmermann  <nzimmermann@rim.com>
2963
2964         REGRESSION (r88913): Preview in Safari's snippet editor has a fixed height instead of filling the entire pane
2965         https://bugs.webkit.org/show_bug.cgi?id=64059
2966
2967         REGRESSION (r88913): <object> has wrong computed height
2968         https://bugs.webkit.org/show_bug.cgi?id=62769
2969
2970         Reviewed by Rob Buis.
2971
2972         Fix misinterpretation of CSS 2.1 - "10.5 Content height: the 'height' property".
2973         It says "If the height of the containing block is not specified explicitelz (i.e. it depends on the
2974         content height), and this element is not absolutely positioned, the value computes to 'auto'".
2975
2976         Checking whether the containing block height depends on the content height is not equal to checking
2977         whether the height property is set on the containing block, there are other ways to implicitly specify
2978         the height by setting top & bottom. Fix that by checking whether the containing block has a height
2979         property or top & bottom set.
2980
2981         While I was at it, make computeReplacedLogicalWidth/Height a bit more explicit to make it easier to compare
2982         the code with the spec quoatations - this doesn't change the functionality only the readability.
2983         
2984         Test: fast/css/replaced-element-implicit-size.html
2985
2986         * rendering/RenderReplaced.cpp:
2987         (WebCore::RenderReplaced::computeReplacedLogicalWidth): Cleanup comment, make code more explicit.
2988         (WebCore::RenderReplaced::logicalHeightIsAuto): Add helper method used by computeReplacedLogicalHeight.
2989         (WebCore::RenderReplaced::computeReplacedLogicalHeight): Fix height=auto detection.
2990         * rendering/RenderReplaced.h:
2991
2992 2011-07-18  Ryosuke Niwa  <rniwa@webkit.org>
2993
2994         REGRESSION(91209?): fast/css/custom-font-xheight.html is failing on Leopard
2995         https://bugs.webkit.org/show_bug.cgi?id=64767
2996
2997         Add a runtime check for font cascading optimization.
2998
2999         It's a constant value in Mac port so hopefully gcc will constant-propagate the value
3000         and eliminate the function altogether.
3001
3002         * platform/graphics/cocoa/FontPlatformDataCocoa.mm:
3003         (WebCore::canSetCascadeListForCustomFont): Added.
3004         (WebCore::FontPlatformData::ctFont):
3005
3006 2011-07-18  MORITA Hajime  <morrita@google.com>
3007
3008         [ShadowContentElement] forwarded node should be able to access its hosting content element.
3009         https://bugs.webkit.org/show_bug.cgi?id=64251
3010         
3011         Reviewed by Dimitri Glazkov.
3012
3013         - Introduced ShadowInclusionSet to manage included nodes to its includer content element.
3014           ShadowInclusionSet instance is owned by ShadowRoot.
3015         - Updated the set on inclusion list changes.
3016         - Used the set to retrieve the content element of NodeRenderingContext.
3017         
3018         There are also related refactoring and cleanup:
3019         - Renamed NodeRenderingContext::m_contentElement to m_includer
3020         - ShadowContentSelector::m_activeElement is no longer used, thus removed.
3021         
3022         Test: fast/dom/shadow/content-element-includer.html
3023
3024         * WebCore.exp.in:
3025         * dom/NodeRenderingContext.cpp:
3026         (WebCore::NodeRenderingContext::NodeRenderingContext):
3027         (WebCore::NodeRenderingContext::nextRenderer):
3028         (WebCore::NodeRenderingContext::previousRenderer):
3029         * dom/NodeRenderingContext.h:
3030         (WebCore::NodeRenderingContext::includer):
3031         * dom/ShadowContentElement.cpp:
3032         (WebCore::removeFromSet):
3033         (WebCore::addToSet):
3034         (WebCore::ShadowContentElement::attach):
3035         (WebCore::ShadowContentElement::detach):
3036         * dom/ShadowContentElement.h:
3037         (WebCore::ShadowInclusionSet::add):
3038         (WebCore::ShadowInclusionSet::remove):
3039         (WebCore::ShadowInclusionSet::isEmpty):
3040         (WebCore::ShadowInclusionSet::Translator::hash):
3041         (WebCore::ShadowInclusionSet::Translator::equal):
3042         (WebCore::ShadowInclusionSet::Hash::hash):
3043         (WebCore::ShadowInclusionSet::Hash::equal):
3044         (WebCore::ShadowInclusionSet::find):
3045         * dom/ShadowContentSelector.cpp:
3046         (WebCore::ShadowContentSelector::ShadowContentSelector):
3047         (WebCore::ShadowContentSelector::selectInclusion):
3048         * dom/ShadowContentSelector.h:
3049         * dom/ShadowRoot.cpp:
3050         (WebCore::ShadowRoot::~ShadowRoot):
3051         (WebCore::ShadowRoot::includerFor):
3052         (WebCore::ShadowRoot::inclusions):
3053         (WebCore::ShadowRoot::ensureInclusions):
3054         * dom/ShadowRoot.h:
3055         (WebCore::toShadowRoot):
3056         * testing/Internals.cpp:
3057         (WebCore::Internals::includerFor):
3058         * testing/Internals.h:
3059         * testing/Internals.idl:
3060
3061 2011-07-18  Dean Jackson  <dino@apple.com>
3062
3063         https://bugs.webkit.org/show_bug.cgi?id=64742
3064         Expose WebPreferences for media playback requiring user gestures and inline playback
3065
3066         Reviewed by Simon Fraser.
3067
3068         Media playback already tested if it should require user gestures, but
3069         no setting was ever exposed to clients. Also, some ports only allow media
3070         playback to be fullscreen, so exposing a new setting for them.
3071
3072         * html/HTMLMediaElement.cpp:
3073         (WebCore::HTMLMediaElement::HTMLMediaElement): Examine the new Setting
3074         for user gestures.
3075         * page/Settings.cpp:
3076         (WebCore::Settings::Settings):
3077         * page/Settings.h: Two new settings.
3078         (WebCore::Settings::setMediaPlaybackRequiresUserGesture):
3079         (WebCore::Settings::mediaPlaybackRequiresUserGesture):
3080         (WebCore::Settings::setMediaPlaybackAllowsInline):
3081         (WebCore::Settings::mediaPlaybackAllowsInline):
3082
3083 2011-07-18  Ryosuke Niwa  <rniwa@webkit.org>
3084
3085         Leopard build fix after r91229.
3086
3087         * platform/graphics/cocoa/FontPlatformDataCocoa.mm:
3088         (WebCore::FontPlatformData::ctFont):
3089
3090 2011-07-18  Dan Bernstein  <mitz@apple.com>
3091
3092         REGRESSION(91209?): fast/css/custom-font-xheight.html is failing on Leopard
3093         https://bugs.webkit.org/show_bug.cgi?id=64767
3094
3095         Reviewed by Sam Weinig.
3096
3097         * platform/graphics/Font.h:
3098         * platform/graphics/cocoa/FontPlatformDataCocoa.mm:
3099         (WebCore::FontPlatformData::ctFont): Undo the cascade list optimization on Leopard for custom
3100         fonts, because adding a cascade list apparently breaks the font.
3101
3102 2011-07-18  Matthew Delaney  <mdelaney@apple.com>
3103
3104         Remove drawsUsingCopy now that all ports handle the copying
3105         https://bugs.webkit.org/show_bug.cgi?id=64768
3106         
3107         Introduced in https://bugs.webkit.org/show_bug.cgi?id=43507, ImageBuffer::drawsUsingCopy
3108         was used to know whether or not an ImageBuffer should be explicitly copied before being
3109         painted into a context (as was used in HTMLCanvasElement::paint). All platforms now
3110         handle the logic of copying or not in their ImageBuffer::draw() implementations, so
3111         drawsUsingCopy() is no longer needed. This patch removes it.
3112
3113         Reviewed by Dan Bernstein.
3114
3115         No new tests; does not affect behavior.
3116
3117         * html/HTMLCanvasElement.cpp:
3118         (WebCore::HTMLCanvasElement::paint):
3119         * platform/graphics/ImageBuffer.h:
3120         (WebCore::ImageBuffer::isAccelerated):
3121         * platform/graphics/cairo/ImageBufferCairo.cpp:
3122         * platform/graphics/cg/ImageBufferCG.cpp:
3123         * platform/graphics/qt/ImageBufferQt.cpp:
3124         * platform/graphics/skia/ImageBufferSkia.cpp:
3125         * platform/graphics/wince/ImageBufferWinCE.cpp:
3126         * platform/graphics/wx/ImageBufferWx.cpp:
3127
3128 2011-07-18  Vsevolod Vlasov  <vsevik@chromium.org>
3129
3130         Web Inspector: [REGRESSION] Resource preserving fails when frameNavigated event is dispatched on NetworkPanel.
3131         https://bugs.webkit.org/show_bug.cgi?id=64748
3132
3133         Reviewed by Pavel Feldman.
3134
3135         * inspector/front-end/NetworkPanel.js:
3136         (WebInspector.NetworkLogView.prototype._frameNavigated):
3137
3138 2011-07-18  Brian Weinstein  <bweinstein@apple.com>
3139
3140         Prep work for: Crash under WebPage::platformDragEnded when dragging on Mac
3141         https://bugs.webkit.org/show_bug.cgi?id=64766
3142         <rdar://problem/9548174>
3143         
3144         Reviewed by Darin Adler.
3145
3146         Add a DragClient function that is called when a drag is ended, and call it from DragController::dragEnded.
3147         This isn't used yet, but will be used by WebKit2 on Mac.
3148         
3149         This patch also cleans up style in DragClient.h.
3150
3151         No change in behavior, no tests needed.
3152
3153         * page/DragClient.h:
3154         (WebCore::DragClient::dragEnded): Stub virtual implementation for now, this will be used by
3155             WebKit2 on Mac.
3156         * page/DragController.cpp:
3157         (WebCore::DragController::dragEnded): Call DragClient::dragEnded.
3158
3159 2011-07-18  Jon Honeycutt  <jhoneycutt@apple.com>
3160
3161         Focus and selection events are not fired when a <select>'s selection
3162         changes
3163         https://bugs.webkit.org/show_bug.cgi?id=64504
3164         <rdar://problem/9319881>
3165
3166         Reviewed by Alice Liu.
3167
3168         Test: platform/win/accessibility/option-element-selection-and-focus-events.html
3169
3170         * accessibility/chromium/AXObjectCacheChromium.cpp:
3171         (WebCore::AXObjectCache::postPlatformNotification):
3172         Add new notification type to the section of unhandled notifications.
3173
3174         * accessibility/AXObjectCache.h:
3175         Declare a new notification, AXMenuListItemSelected.
3176
3177         * accessibility/AccessibilityMenuList.cpp:
3178         (WebCore::AccessibilityMenuList::didUpdateActiveOption):
3179         Tell our child popup that the active option changed, and post a
3180         notification that our value changed.
3181
3182         * accessibility/AccessibilityMenuList.h:
3183         Declare didUpdateActiveOption().
3184
3185         * accessibility/AccessibilityMenuListPopup.cpp:
3186         (WebCore::AccessibilityMenuListPopup::didUpdateActiveOption):
3187         Get the child <option> element that is selected, and fire focus and
3188         selection events for it.
3189
3190         * accessibility/AccessibilityMenuListPopup.h:
3191         Declare didUpdateActiveOption().
3192
3193         * accessibility/win/AXObjectCacheWin.cpp:
3194         (WebCore::AXObjectCache::postPlatformNotification):
3195         Map AXMenuListItemSelected -> EVENT_OBJECT_SELECTION.
3196
3197         * dom/SelectElement.cpp:
3198         (WebCore::SelectElement::setSelectedIndex):
3199         Pass the newly-selected index.
3200
3201         * rendering/RenderMenuList.cpp:
3202         (WebCore::RenderMenuList::RenderMenuList):
3203         Update the initialization list for the renamed m_lastActiveIndex.
3204         (WebCore::RenderMenuList::setTextFromOption):
3205         A new selection has been made in the popup; call
3206         didUpdateActiveOption().
3207         (WebCore::RenderMenuList::didSetSelectedIndex):
3208         Call didUpdateActiveOption(), passing the index of the newly-selected
3209         <option>.
3210         (WebCore::RenderMenuList::didUpdateActiveOption):
3211         If accessibility is disabled, or if the active option has not changed,
3212         return early. Check whether the option index is in the range of list
3213         items, and assert that the item at that index is an <option> element.
3214         Tell the AccessibilityMenuList for this element that we updated the
3215         active option.
3216
3217         * rendering/RenderMenuList.h:
3218         Updated the declaration of didSetSelectedIndex() to take the selected
3219         index. Declared didUpdateActiveOption(). Renamed m_lastSelectedIndex to
3220         m_lastActiveIndex.
3221
3222 2011-07-18  Dan Bernstein  <mitz@apple.com>
3223
3224         Specify a cascade list consisting of the last resort font for Core Text
3225         https://bugs.webkit.org/show_bug.cgi?id=64747
3226
3227         Reviewed by Sam Weinig.
3228
3229         No new tests, because this does not affect behavior.
3230
3231         This prevents Core Text from taking its default, longer fallback list when the primary font does
3232         not include a character. This is OK to do because WebKit never uses the results of Core Text
3233         fallback anyway.
3234
3235         * platform/graphics/cocoa/FontPlatformDataCocoa.mm:
3236         (WebCore::cascadeToLastResortFontDescriptor): Added. Returns a CTFontDescriptor with a cascade
3237         list consisting of the last resort font.
3238         (WebCore::FontPlatformData::ctFont): Changed to include the cascadeToLastResortFontDescriptor
3239         in the returned font.
3240
3241 2011-07-18  James Robinson  <jamesr@chromium.org>
3242
3243         Timer scheduling should be based off the monotonic clock
3244         https://bugs.webkit.org/show_bug.cgi?id=64544
3245
3246         Reviewed by Darin Adler.
3247
3248         Changes the Timer scheduling logic from using absolute values in terms of currentTime() to using relative
3249         intervals in terms of monotonicallyIncreasingTime().  This provides better standards compliance, compatibility,
3250         and predictability when the system clock is adjusted.
3251
3252         No automated tests since there is no way to modify the system clock from DRT.
3253
3254         * platform/SharedTimer.h:
3255         (WebCore::MainThreadSharedTimer::setFireInterval):
3256         * platform/ThreadTimers.cpp:
3257         (WebCore::ThreadTimers::updateSharedTimer):
3258         (WebCore::ThreadTimers::sharedTimerFiredInternal):
3259         * platform/Timer.cpp:
3260         (WebCore::TimerBase::start):
3261         (WebCore::TimerBase::nextFireInterval):
3262         * platform/android/SharedTimerAndroid.cpp:
3263         (WebCore::setSharedTimerFireInterval):
3264         * platform/brew/SharedTimerBrew.cpp:
3265         (WebCore::setSharedTimerFireInterval):
3266         * platform/chromium/PlatformBridge.h:
3267         * platform/chromium/SharedTimerChromium.cpp:
3268         (WebCore::setSharedTimerFireInterval):
3269         * platform/efl/SharedTimerEfl.cpp:
3270         (WebCore::addNewTimer):
3271         (WebCore::setSharedTimerFireInterval):
3272         * platform/gtk/SharedTimerGtk.cpp:
3273         (WebCore::setSharedTimerFireInterval):
3274         * platform/haiku/SharedTimerHaiku.cpp:
3275         (WebCore::SharedTimerHaiku::start):
3276         (WebCore::setSharedTimerFireInterval):
3277         * platform/mac/SharedTimerMac.mm:
3278         (WebCore::setSharedTimerFireInterval):
3279         * platform/qt/SharedTimerQt.cpp:
3280         (WebCore::SharedTimerQt::start):
3281         (WebCore::setSharedTimerFireInterval):
3282         * platform/win/SharedTimerWin.cpp:
3283         (WebCore::setSharedTimerFireInterval):
3284         * platform/wince/SharedTimerWinCE.cpp:
3285         (WebCore::setSharedTimerFireInterval):
3286         * platform/wx/SharedTimerWx.cpp:
3287         (WebCore::setSharedTimerFireInterval):
3288         * workers/WorkerRunLoop.cpp:
3289         (WebCore::WorkerSharedTimer::setFireInterval):
3290
3291 2011-07-18  Pratik Solanki  <psolanki@apple.com>
3292
3293         Unreviewed. Fix Windows build. Move static function defaultSessionCookieStorage() to before
3294         its use in defaultCookieStorage().
3295
3296         * platform/network/cf/CookieStorageCFNet.cpp:
3297         (WebCore::defaultSessionCookieStorage):
3298
3299 2011-07-18  Pratik Solanki  <psolanki@apple.com>
3300
3301         Part of https://bugs.webkit.org/show_bug.cgi?id=63674
3302         Get webkit to compile with USE(CFNETWORK) enabled on Mac
3303
3304         Reviewed by David Kilzer.
3305
3306         Get coookie storage code to work with USE(CFNETWORK) enabled on Mac.
3307
3308         No new tests because no change in functionality.
3309
3310         * platform/network/cf/CookieStorageCFNet.cpp:
3311         (WebCore::defaultCookieStorage):
3312         (WebCore::defaultSessionCookieStorage):
3313         * platform/network/cf/ResourceHandleCFNet.cpp:
3314         (WebCore::ResourceHandle::createPrivateBrowsingStorageSession):
3315         * platform/network/mac/CookieStorageMac.mm:
3316
3317 2011-07-18  Pratik Solanki  <psolanki@apple.com>
3318
3319         Part of https://bugs.webkit.org/show_bug.cgi?id=63674
3320         Get webkit to compile with USE(CFNETWORK) enabled on Mac
3321
3322         Reviewed by David Kilzer.
3323
3324         * WebCore.exp.in:
3325
3326 2011-07-18  Gavin Barraclough  <barraclough@apple.com>
3327
3328         Speculative fix for Leopard assertions caused by 91095.
3329
3330         Rubber stamped by Sam Weinig.
3331
3332         * bridge/NP_jsobject.cpp:
3333         (_NPN_Invoke):
3334             - ensure we pass the window shell, not the global object.
3335
3336 2011-07-18  Mark Hahnenberg  <mhahnenberg@apple.com>
3337
3338         Refactor JSC to replace JSCell::operator new with static create method
3339         https://bugs.webkit.org/show_bug.cgi?id=64466
3340
3341         Reviewed by Oliver Hunt (oliver@apple.com) and Darin Adler (darin@apple.com).
3342
3343         First step in a longer refactoring process to remove the use of
3344         operator new overloading in order to allocate GC objects and to replace
3345         this method with static create methods for each individual type of heap-allocated
3346         JS object.  This particular patch only deals with replacing uses of
3347         operator new within JSC proper.  Future patches will remove it from the
3348         parts that interface with the DOM.  Due to the DOM's continued dependence
3349         on it, operator new has not actually been removed from JSCell.
3350
3351         * bindings/js/JSDOMBinding.cpp:
3352         (WebCore::jsDateOrNull):
3353         (WebCore::objectToStringFunctionGetter):
3354         * bindings/js/JSDOMWindowCustom.cpp:
3355         (WebCore::nonCachingStaticFunctionGetter):
3356         * bindings/js/JSHistoryCustom.cpp:
3357         (WebCore::nonCachingStaticBackFunctionGetter):
3358         (WebCore::nonCachingStaticForwardFunctionGetter):
3359         (WebCore::nonCachingStaticGoFunctionGetter):
3360         * bindings/js/JSLocationCustom.cpp:
3361         (WebCore::nonCachingStaticReplaceFunctionGetter):
3362         (WebCore::nonCachingStaticReloadFunctionGetter):
3363         (WebCore::nonCachingStaticAssignFunctionGetter):
3364         * bindings/js/SerializedScriptValue.cpp:
3365         (WebCore::CloneDeserializer::readTerminal):
3366         * bridge/qt/qt_runtime.cpp:
3367         (JSC::Bindings::convertQVariantToValue):
3368
3369 2011-07-18  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
3370
3371         [Texmap] [Qt] [WK2] Unsync in TextureMapperNode between parent and child lists cause crashes on WK2.
3372         https://bugs.webkit.org/show_bug.cgi?id=62587
3373
3374         Reviewed by Noam Rosenthal.
3375
3376         Fix unsync between m_parent and m_children list in child and parent texture mapper nodes 
3377         in syncCompositingStateSelf.
3378
3379         * platform/graphics/texmap/TextureMapperNode.cpp:
3380         (WebCore::TextureMapperNode::syncCompositingStateSelf):
3381
3382 2011-07-18  Rob Buis  <rbuis@rim.com>
3383
3384         Stroking of zero-length paths in SVG should change according to erratum
3385         https://bugs.webkit.org/show_bug.cgi?id=18356
3386
3387         Reviewed by Nikolas Zimmermann.
3388
3389         Do not rely on toolkits to correctly render zero-length path with stroke-linecap=round, render
3390         it ourselves just like for stroke-linecap=square.
3391
3392         * rendering/svg/RenderSVGPath.cpp:
3393         (WebCore::RenderSVGPath::shouldStrokeZeroLengthSubpath):
3394         (WebCore::RenderSVGPath::setupSquareCapPath):
3395
3396 2011-07-18  Mihnea Ovidenie  <mihnea@adobe.com>
3397
3398         [REGRESSION] Value 'none' breaks multiple background-image display
3399         https://bugs.webkit.org/show_bug.cgi?id=59274
3400
3401         Reviewed by Simon Fraser.
3402
3403         When taking fast path for simple color background, we should draw
3404         the background only if it is the last in the list of backgrounds.
3405         Otherwise, it will obscure the previously drawn backgrounds.
3406
3407         Test: fast/backgrounds/background-fast-path-simple-color.html
3408
3409         * rendering/RenderBoxModelObject.cpp:
3410         (WebCore::RenderBoxModelObject::paintFillLayerExtended):
3411
3412 2011-07-18  Yi Shen  <yi.4.shen@nokia.com>
3413
3414         [Qt] ASSERTION FAILED in ResourceHandle::setDefersLoading causes crash
3415         https://bugs.webkit.org/show_bug.cgi?id=62808
3416
3417         The assertion in ResourceHandle::setDefersLoading assumes asynchronous
3418         content delivery -- To resume a page, first, its main resource loader
3419         calls setDefersLoading to resume loading the main content; then all the
3420         sub-resource loaders calls setDefersLoading to resume sub-contents.
3421         However, since QNetworkReplyHandler delivers content synchronously,
3422         some new sub-resource loaders get created as soon as the main resource
3423         loader resumed, and all these new sub-resource loaders set their
3424         defersLoading flag to false. Then, the assertion fails for these new
3425         sub-resource loaders when calling setDefersLoading on them. As a fix,
3426         this path makes QNetworkReplyHandler deliver content asynchronously
3427         when its load type is set to SynchronousLoad.
3428
3429         Reviewed by Benjamin Poulain.
3430
3431         Test: loader/load-defer-resume-crash.html
3432
3433         * platform/network/qt/QNetworkReplyHandler.cpp:
3434         (WebCore::QNetworkReplyHandlerCallQueue::setDeferSignals):
3435         * platform/network/qt/QNetworkReplyHandler.h:
3436         (WebCore::QNetworkReplyHandler::setLoadingDeferred):
3437
3438 2011-07-18  Young Han Lee  <joybro@company100.net>
3439
3440         AnimationBase asserts if a test tries to pause during the delay phase
3441         https://bugs.webkit.org/show_bug.cgi?id=59475
3442
3443         Reviewed by Simon Fraser.
3444
3445         There is no more assertion failure after r90765, but the testcase still fails due to
3446         the miscalculation of the pauseTime. This patch pauses the animation at its startTime
3447         if a test tries to pause it during the delay phase.
3448
3449         Test: transitions/transition-in-delay-phase.html
3450
3451         * page/animation/AnimationBase.cpp:
3452         (WebCore::AnimationBase::freezeAtTime):
3453
3454 2011-07-18  Vsevolod Vlasov  <vsevik@chromium.org>
3455
3456         Web Inspector: Web Inspector: provide unique identifiers for loaders
3457         https://bugs.webkit.org/show_bug.cgi?id=64599
3458