1 2012-02-27 Kentaro Hara <haraken@chromium.org>
3 [JSC] Add [ConstructorParameters=] to all custom constructors
4 https://bugs.webkit.org/show_bug.cgi?id=78221
6 Reviewed by Adam Barth.
8 This patch adds [ConstructorParameters=X] to IDL files that have
9 custom constructors, where X is the maximum number of arguments
10 of the constructor. [ConstructorParameters=X] is needed for custom
11 constructors, because custom constructors do not have a signature
12 in IDL files and thus CodeGeneratorJS.pm cannot know the number of
13 constructor arguments.
15 Test: fast/js/constructor-length.html
17 * dom/WebKitMutationObserver.idl:
18 * html/DOMFormData.idl:
19 * html/canvas/ArrayBuffer.idl:
20 * html/canvas/DataView.idl:
21 * html/canvas/Float32Array.idl:
22 * html/canvas/Float64Array.idl:
23 * html/canvas/Int16Array.idl:
24 * html/canvas/Int32Array.idl:
25 * html/canvas/Int8Array.idl:
26 * html/canvas/Uint16Array.idl:
27 * html/canvas/Uint32Array.idl:
28 * html/canvas/Uint8Array.idl:
29 * html/canvas/Uint8ClampedArray.idl:
30 * webaudio/AudioContext.idl:
32 * bindings/scripts/test/TestTypedArray.idl:
34 * bindings/scripts/test/JS/JSFloat64Array.cpp: Updated run-bindings-tests results.
35 (WebCore::JSFloat64ArrayConstructor::finishCreation):
37 2012-02-23 Raphael Kubo da Costa <kubo@profusion.mobi>
39 [BlackBerry][EFL] Provide dummy RunLoop implementations.
40 https://bugs.webkit.org/show_bug.cgi?id=79398
42 Reviewed by Antonio Gomes.
44 r108067 fixed the EFL build by not building RunLoop.cpp on EFL and
45 BlackBerry, as both platforms lack an implementation that provides the
46 missing methods for the RunLoop class.
48 However, RunLoop.cpp is a generic file which should not be included
49 directly in PlatformWinCE.cmake (plus it helps in converting the
50 AppleWin port to CMake).
52 Fix this by providing a dummy implementation of the missing RunLoop
53 methods for both EFL and BlackBerry.
56 * PlatformBlackBerry.cmake:
58 * PlatformWinCE.cmake:
59 * platform/blackberry/RunLoopBlackBerry.cpp: Added.
61 (WebCore::RunLoop::RunLoop):
62 (WebCore::RunLoop::~RunLoop):
63 (WebCore::RunLoop::wakeUp):
64 * platform/efl/RunLoopEfl.cpp: Added.
66 (WebCore::RunLoop::RunLoop):
67 (WebCore::RunLoop::~RunLoop):
68 (WebCore::RunLoop::wakeUp):
70 2012-02-27 John Sullivan <sullivan@apple.com>
72 Build fix (on Lion at least).
75 (WebCore::Attr::childrenChanged):
76 Removed names of unused parameters.
78 * dom/ContainerNode.cpp:
79 (WebCore::ContainerNode::childrenChanged):
82 2012-02-27 Kentaro Hara <haraken@chromium.org>
84 Remove [ConstructorParameters] from IDL files that have [Constructor]
85 https://bugs.webkit.org/show_bug.cgi?id=79643
87 Reviewed by Adam Barth.
89 This patch removes [ConstructorParameters] from IDL files that have [Constructor],
90 since CodeGeneratorJS.pm can automatically detect the number of constructor
91 arguments by the [Constructor(...)] signature.
93 Test: fast/js/constructor-length.html
95 * Modules/mediastream/PeerConnection.idl:
96 * bindings/scripts/CodeGeneratorJS.pm:
97 (GenerateConstructorDefinition):
98 * css/WebKitCSSMatrix.idl:
99 * page/EventSource.idl:
100 * workers/SharedWorker.idl:
101 * workers/Worker.idl:
103 2012-02-27 Julien Chaffraix <jchaffraix@webkit.org>
105 Avoid doing 2 hash lookups if we override RenderBox's logical width / height
106 https://bugs.webkit.org/show_bug.cgi?id=79591
108 Reviewed by Antonio Gomes.
112 * rendering/RenderBox.cpp:
113 (WebCore::RenderBox::clearOverrideSize):
114 Instead of doing one hash lookup as part of hasOverride{Height|Width}, let's
115 just directly call HashMap::remove that will do the lookup instead.
117 2012-02-27 Adam Klein <adamk@chromium.org>
119 Move WebCore-internal DOM notification methods from Node to ContainerNode where appropriate
120 https://bugs.webkit.org/show_bug.cgi?id=79697
122 Reviewed by Ryosuke Niwa.
124 insertedIntoTree/removedFromTree are only used by subclasses of
125 ContainerNode. Moreover, attempting to make use of these notifications
126 in a non-container Node would currently not work, because
127 Node::removedFromDocument/insertedIntoDocument do not dispatch to these methods.
128 Rather than adding useless calls to an always-empty virtual method,
129 this patch moves these methods to ContainerNode.
131 Meanwhile, childrenChanged moves to ContainerNode for an obvious reason:
132 non-container Nodes have no children to change.
134 No new tests, refactoring only.
137 (WebCore::Attr::childrenChanged): Remove call to now-nonexistent Node::childrenChanged.
138 * dom/ContainerNode.cpp:
139 (WebCore::ContainerNode::removeChild): Check that the removed child is a container node before notifying it of removal.
140 (WebCore::ContainerNode::parserRemoveChild): ditto.
141 (WebCore::ContainerNode::insertedIntoTree): Remove call to now-nonexistent Node::insertedIntoTree.
142 (WebCore::ContainerNode::removedFromTree): Remove call to now-nonexistent Node::removedFromTree.
143 (WebCore::ContainerNode::childrenChanged): Remove call to now-nonexistent Node::childrenChanged.
144 (WebCore::notifyChildInserted): Check that the inserted child is a container node before notifying it of insertion.
145 * dom/ContainerNode.h:
146 (ContainerNode): Migrate comments from Node.h, point back at it for more notification methods.
148 (Node): Move methods, update comments to point at ContainerNode.h.
150 2012-02-27 Chris Rogers <crogers@google.com>
152 Implement static compression curve parameters for DynamicsCompressorNode
153 https://bugs.webkit.org/show_bug.cgi?id=78937
155 Reviewed by Kenneth Russell.
157 Test: webaudio/dynamicscompressor-basic.html
159 * platform/audio/DynamicsCompressor.cpp:
160 (WebCore::DynamicsCompressor::setParameterValue):
162 (WebCore::DynamicsCompressor::initializeParameters):
163 (WebCore::DynamicsCompressor::process):
164 * platform/audio/DynamicsCompressor.h:
165 * platform/audio/DynamicsCompressorKernel.cpp:
167 (WebCore::DynamicsCompressorKernel::DynamicsCompressorKernel):
168 (WebCore::DynamicsCompressorKernel::setPreDelayTime):
169 (WebCore::DynamicsCompressorKernel::kneeCurve):
170 (WebCore::DynamicsCompressorKernel::saturate):
171 (WebCore::DynamicsCompressorKernel::slopeAt):
172 (WebCore::DynamicsCompressorKernel::kAtSlope):
173 (WebCore::DynamicsCompressorKernel::updateStaticCurveParameters):
174 (WebCore::DynamicsCompressorKernel::process):
175 * platform/audio/DynamicsCompressorKernel.h:
176 (DynamicsCompressorKernel):
177 (WebCore::DynamicsCompressorKernel::meteringGain):
178 * webaudio/DynamicsCompressorNode.cpp:
179 (WebCore::DynamicsCompressorNode::DynamicsCompressorNode):
180 (WebCore::DynamicsCompressorNode::process):
181 * webaudio/DynamicsCompressorNode.h:
183 (WebCore::DynamicsCompressorNode::create):
184 (DynamicsCompressorNode):
185 (WebCore::DynamicsCompressorNode::threshold):
186 (WebCore::DynamicsCompressorNode::knee):
187 (WebCore::DynamicsCompressorNode::ratio):
188 (WebCore::DynamicsCompressorNode::reduction):
189 * webaudio/DynamicsCompressorNode.idl:
191 2012-02-27 Enrica Casucci <enrica@apple.com>
193 WebKit2: implement platform strategy to access Pasteboard in the UI process.
194 https://bugs.webkit.org/show_bug.cgi?id=79253
195 <rdar://problem/9971876>
197 Reviewed by Alexey Proskuryakov.
199 No new tests. No behavior change.
201 * platform/mac/PlatformPasteboardMac.mm:
202 (WebCore::PlatformPasteboard::bufferForType): There is no need
203 to create a SharedBuffer object if there is no NSData in the pasteboard
204 for the given pasteboard type.
206 2012-02-27 Adrienne Walker <enne@google.com>
208 [chromium] Unreviewed speculative Chromium win build fix.
210 mdelaney's http://trac.webkit.org/changeset/109016 changed the
211 interface on ImageBuffer, but didn't update TransparencyWin.
213 * platform/graphics/chromium/TransparencyWin.cpp:
214 (WebCore::TransparencyWin::OwnedBuffers::canHandleSize):
216 2012-02-27 Matthew Delaney <mdelaney@apple.com>
218 Add ImageBuffer support for having a hi-res backing store. This allows
219 ImageBuffer clients to specify a scale factor upon creation so that they
220 don't have to maintain that info themselves as they use/pass around the ImageBuffer.
221 https://bugs.webkit.org/show_bug.cgi?id=79395
223 Reviewed by Dan Bernstein.
225 No new tests. This patch doesn't change behavior.
227 * platform/graphics/ImageBuffer.h:
228 (WebCore::ImageBuffer::create): Scale the backing store by the resolution scale.
229 (WebCore::ImageBuffer::logicalSize): Differentiate the logical size from the backing store's size.
230 (WebCore::ImageBuffer::internalSize): The backing store's size.
232 * platform/graphics/cg/ImageBufferCG.cpp: Prefer the explicit use of logicalSize and internalSize.
234 Explicitly state a 1x scale for all ImageBuffer creation sites
235 since this is what they currently assume.
236 * html/HTMLCanvasElement.cpp:
237 * html/canvas/CanvasRenderingContext2D.cpp:
238 * html/canvas/WebGLRenderingContext.cpp:
240 * platform/graphics/CrossfadeGeneratedImage.cpp:
241 * platform/graphics/ShadowBlur.cpp:
242 * platform/graphics/filters/FEColorMatrix.cpp:
243 * platform/graphics/filters/FEDropShadow.cpp:
244 * platform/graphics/filters/FilterEffect.cpp:
245 * platform/mac/ScrollbarThemeMac.mm:
246 * rendering/FilterEffectRenderer.cpp:
247 * rendering/RenderThemeMac.mm:
248 * rendering/svg/SVGImageBufferTools.cpp:
249 * svg/graphics/SVGImage.cpp:
250 * svg/graphics/SVGImageCache.cpp:
252 Update ImageBuffer::size() calls to new versions.
253 * platform/graphics/GraphicsContext.cpp:
254 * platform/graphics/ImageBuffer.cpp:
255 * platform/graphics/skia/PlatformContextSkia.cpp:
257 2012-02-27 Mihnea Ovidenie <mihnea@adobe.com>
259 [CSSRegions]-webkit-flow-into initial value should be none instead of auto
260 https://bugs.webkit.org/show_bug.cgi?id=79670
262 Reviewed by Simon Fraser.
264 No new tests, modified expectations for existing tests.
266 * css/CSSComputedStyleDeclaration.cpp:
267 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
269 (WebCore::CSSParser::parseFlowThread):
270 * css/CSSStyleApplyProperty.cpp:
271 (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
273 2012-02-27 Ojan Vafai <ojan@chromium.org>
275 implement display: -webkit-inline-flexbox
276 https://bugs.webkit.org/show_bug.cgi?id=77772
278 Reviewed by David Hyatt.
280 Tests: css3/flexbox/inline-flexbox-expected.html
281 css3/flexbox/inline-flexbox.html
283 * rendering/style/RenderStyle.h:
284 -Add INLINE_FLEXBOX to the list of replaced display types.
285 -Restructure the isDisplayInline methods to avoid code duplication.
287 2012-02-27 Ken Buchanan <kenrb@chromium.org>
289 Absolute positioned elements with Inline Relative Positioned Container are not layout correctly
290 https://bugs.webkit.org/show_bug.cgi?id=78713
292 Reviewed by David Hyatt.
294 Test: fast/css/positioned-in-relative-position-inline-crash.html
296 Patch originally by Robin Cao.
298 This is a regression. r104183 changes containingBlock() so that it returns the container
299 of an anonymous block for positioned objects, not the anonymous block itself. We should
300 change markContainingBlocksForLayout() to match the change in containingBlock().
302 * rendering/RenderObject.cpp:
303 (WebCore::RenderObject::markContainingBlocksForLayout):
305 2012-02-27 Pavel Feldman <pfeldman@google.com>
307 Web Inspector: move record formatting into the timeline presentation model.
308 https://bugs.webkit.org/show_bug.cgi?id=79684
310 Drive-by: fix for stop recording in reset; cpu time restored.
312 Reviewed by Vsevolod Vlasov.
314 * inspector/front-end/TimelineModel.js:
315 (WebInspector.TimelineModel.prototype.reset):
316 * inspector/front-end/TimelineOverviewPane.js:
317 (WebInspector.TimelineOverviewPane.prototype.update.updateBoundaries):
318 (WebInspector.TimelineOverviewCalculator.prototype.updateBoundaries):
319 * inspector/front-end/TimelinePanel.js:
320 (WebInspector.TimelinePanel):
321 (WebInspector.TimelinePanel.prototype._rootRecord):
322 (WebInspector.TimelinePanel.prototype._updateRecordsCounter):
323 (WebInspector.TimelinePanel.prototype._repopulateRecords):
324 (WebInspector.TimelinePanel.prototype._onTimelineEventRecorded):
325 (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
326 (WebInspector.TimelinePanel.prototype._resetPanel):
327 (WebInspector.TimelinePanel.prototype._refresh):
328 (WebInspector.TimelinePanel.prototype._updateBoundaries):
329 (WebInspector.TimelinePanel.prototype._filterRecords):
330 (WebInspector.TimelinePanel.prototype.revealRecordAt):
331 (WebInspector.TimelinePanel.prototype._showPopover):
332 (WebInspector.TimelineCalculator.prototype.computeBarGraphPercentages):
333 (WebInspector.TimelineCalculator.prototype.computeBarGraphWindowPosition):
334 (WebInspector.TimelineCalculator.prototype.updateBoundaries):
335 (WebInspector.TimelineStartAtZeroCalculator.prototype.computeBarGraphPercentages):
336 (WebInspector.TimelineRecordGraphRow):
337 (WebInspector.TimelineRecordGraphRow.prototype.update):
338 * inspector/front-end/TimelinePresentationModel.js:
339 (WebInspector.TimelinePresentationModel):
340 (WebInspector.TimelinePresentationModel.prototype.createFormattedRecord):
341 (WebInspector.TimelinePresentationModel.prototype._createRootRecord):
342 (WebInspector.TimelinePresentationModel.prototype.rootRecord):
343 (WebInspector.TimelinePresentationModel.prototype.reset):
344 (WebInspector.TimelinePresentationModel.prototype._findParentRecord):
345 (WebInspector.TimelinePresentationModel.prototype._resetWindow):
346 (WebInspector.TimelinePresentationModel.prototype._addCategory):
347 (WebInspector.TimelinePresentationModel.prototype.setCategoryVisibility):
348 (WebInspector.TimelinePresentationModel.prototype.get _recordStyles):
349 (WebInspector.TimelinePresentationModel.Record):
350 (WebInspector.TimelinePresentationModel.Record.prototype.get lastChildEndTime):
351 (WebInspector.TimelinePresentationModel.Record.prototype.set lastChildEndTime):
352 (WebInspector.TimelinePresentationModel.Record.prototype.get selfTime):
353 (WebInspector.TimelinePresentationModel.Record.prototype.set selfTime):
354 (WebInspector.TimelinePresentationModel.Record.prototype.get cpuTime):
355 (WebInspector.TimelinePresentationModel.Record.prototype.isLong):
356 (WebInspector.TimelinePresentationModel.Record.prototype.get children):
357 (WebInspector.TimelinePresentationModel.Record.prototype.containsTime):
358 (WebInspector.TimelinePresentationModel.Record.prototype._generateAggregatedInfo):
359 (WebInspector.TimelinePresentationModel.Record.prototype.generatePopupContent):
360 (WebInspector.TimelinePresentationModel.Record.prototype._refreshDetails):
361 (WebInspector.TimelinePresentationModel.Record.prototype._getRecordDetails):
362 (WebInspector.TimelinePresentationModel.Record.prototype._linkifyLocation):
363 (WebInspector.TimelinePresentationModel.Record.prototype._linkifyCallFrame):
364 (WebInspector.TimelinePresentationModel.Record.prototype._linkifyTopCallFrame):
365 (WebInspector.TimelinePresentationModel.Record.prototype._linkifyScriptLocation):
366 (WebInspector.TimelinePresentationModel.Record.prototype.calculateAggregatedStats):
367 (WebInspector.TimelinePresentationModel.Record.prototype.get aggregatedStats):
368 (WebInspector.TimelinePresentationModel.PopupContentHelper):
369 (WebInspector.TimelinePresentationModel.PopupContentHelper.prototype._createCell):
370 (WebInspector.TimelinePresentationModel.PopupContentHelper.prototype._appendTextRow):
371 (WebInspector.TimelinePresentationModel.PopupContentHelper.prototype._appendElementRow):
372 (WebInspector.TimelinePresentationModel.PopupContentHelper.prototype._appendStackTrace):
373 * inspector/front-end/timelinePanel.css:
374 (.timeline-graph-bar.cpu):
376 2012-02-27 Vsevolod Vlasov <vsevik@chromium.org>
378 Web Inspector: Scripts navigator overlay should not consume mouse actions.
379 https://bugs.webkit.org/show_bug.cgi?id=79674
381 Reviewed by Pavel Feldman.
383 * inspector/front-end/Panel.js:
384 (WebInspector.Panel.prototype.registerShortcut):
385 (WebInspector.Panel.prototype.unregisterShortcut):
386 * inspector/front-end/ScriptsPanel.js:
387 (WebInspector.ScriptsPanel.prototype._editorClosed):
388 (WebInspector.ScriptsPanel.prototype._editorSelected):
389 (WebInspector.ScriptsPanel.prototype._fileSelected):
390 (WebInspector.ScriptsPanel.prototype._escDownWhileNavigatorOverlayOpen):
391 (WebInspector.ScriptsPanel.prototype.set _showNavigatorOverlay):
392 (WebInspector.ScriptsPanel.prototype._hideNavigatorOverlay):
393 (WebInspector.ScriptsPanel.prototype._navigatorOverlayWasShown):
394 * inspector/front-end/SidebarOverlay.js:
395 (WebInspector.SidebarOverlay):
396 (WebInspector.SidebarOverlay.prototype.show):
397 (WebInspector.SidebarOverlay.prototype._containingElementFocused):
398 (WebInspector.SidebarOverlay.prototype.position):
399 (WebInspector.SidebarOverlay.prototype.hide):
400 (WebInspector.SidebarOverlay.prototype._setWidth):
401 * inspector/front-end/dialog.css:
402 (.go-to-line-dialog button:active):
403 * inspector/front-end/scriptsPanel.css:
404 (#scripts-editor-view .sidebar-overlay):
405 * inspector/front-end/splitView.css:
406 (.split-view-resizer):
408 (.sidebar-overlay-resizer):
410 2012-02-27 Philippe Normand <pnormand@igalia.com>
412 [GStreamer] 0.11 support in MediaPlayerPrivateGStreamer
413 https://bugs.webkit.org/show_bug.cgi?id=77089
415 Reviewed by Martin Robinson.
417 Basic port to GStreamer 0.11 APIs. This patch excludes the video
418 painting changes and the GStreamerGWorld changes which are handled
419 in two other patches (bugs 77087 and 77088).
421 * GNUmakefile.list.am: Add GStreamerVersioning files to the build.
422 * Source/WebCore/PlatformEfl.cmake: Ditto.
423 * Source/WebCore/Target.pri: Ditto.
424 * platform/graphics/gstreamer/GRefPtrGStreamer.cpp:
427 (WTF::GstPadTemplate):
429 * platform/graphics/gstreamer/GStreamerVersioning.cpp: Added.
430 (webkit_gst_object_ref_sink):
431 (webkit_gst_element_get_pad_caps):
432 * platform/graphics/gstreamer/GStreamerVersioning.h: Added.
433 * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
434 (WebCore::MediaPlayerPrivateGStreamer::isAvailable):
435 (WebCore::MediaPlayerPrivateGStreamer::duration):
436 (WebCore::MediaPlayerPrivateGStreamer::naturalSize):
438 2012-02-27 Philip Rogers <pdr@google.com>
440 Stop recomputing SVG path data twice during layout
441 https://bugs.webkit.org/show_bug.cgi?id=79672
443 Reviewed by Nikolas Zimmermann.
445 * rendering/svg/RenderSVGShape.cpp:
446 (WebCore::RenderSVGShape::layout):
448 2012-02-27 Timothy Hatcher <timothy@apple.com>
450 Updated for WebKit2 string changes.
452 https://webkit.org/b/79649
454 Reviewed by John Sullivan.
456 * English.lproj/Localizable.strings: Updated.
458 2012-02-27 Pavel Feldman <pfeldman@google.com>
460 Web Inspector: Ctrl+K should not zoom in
461 https://bugs.webkit.org/show_bug.cgi?id=79676
463 Reviewed by Vsevolod Vlasov.
465 * inspector/front-end/inspector.js:
466 (WebInspector.documentKeyDown):
468 2012-02-27 Pavel Feldman <pfeldman@google.com>
470 Web Inspector: extract TimelineModel and TimelinePresentationModel into their own files.
471 https://bugs.webkit.org/show_bug.cgi?id=79675
473 Reviewed by Vsevolod Vlasov.
476 * WebCore.vcproj/WebCore.vcproj:
477 * inspector/compile-front-end.sh:
478 * inspector/front-end/TimelineAgent.js: Removed.
479 * inspector/front-end/TimelineModel.js: Added.
480 (WebInspector.TimelineModel):
481 (WebInspector.TimelineModel.prototype.startRecord):
482 (WebInspector.TimelineModel.prototype.stopRecord):
483 (WebInspector.TimelineModel.prototype.get records):
484 (WebInspector.TimelineModel.prototype._onRecordAdded):
485 (WebInspector.TimelineModel.prototype._addRecord):
486 (WebInspector.TimelineModel.prototype._loadNextChunk):
487 (WebInspector.TimelineModel.prototype._loadFromFile):
488 (WebInspector.TimelineModel.prototype._loadFromFile.onError):
489 (WebInspector.TimelineModel.prototype._saveToFile):
490 (WebInspector.TimelineModel.prototype._reset):
491 * inspector/front-end/TimelinePanel.js:
492 (WebInspector.TimelinePanel.prototype.get _recordStyles):
493 (WebInspector.TimelinePanel.prototype._createEventDivider):
494 (WebInspector.TimelinePanel.prototype._findParentRecord):
495 (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
496 (WebInspector.TimelinePanel.prototype._refreshRecords):
497 (WebInspector.TimelinePanel.FormattedRecord):
498 (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
499 (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
500 * inspector/front-end/TimelinePresentationModel.js: Added.
501 (WebInspector.TimelinePresentationModel):
502 (WebInspector.TimelinePresentationModel.prototype.reset):
503 (WebInspector.TimelinePresentationModel.prototype.get categories):
504 (WebInspector.TimelinePresentationModel.prototype.addCategory):
505 (WebInspector.TimelinePresentationModel.prototype.setWindowPosition):
506 (WebInspector.TimelinePresentationModel.prototype.setWindowIndices):
507 (WebInspector.TimelinePresentationModel.prototype.setCategoryVisibility):
508 * inspector/front-end/WebKit.qrc:
509 * inspector/front-end/inspector.html:
511 2012-02-27 Alexander Pavlov <apavlov@chromium.org>
513 Web Inspector: [Styles] Allow adding CSS properties anywhere in the style declaration, not only at the end
514 https://bugs.webkit.org/show_bug.cgi?id=79662
516 Reviewed by Pavel Feldman.
518 * inspector/front-end/CSSStyleModel.js:
519 (WebInspector.CSSStyleDeclaration.prototype.newBlankProperty):
520 (WebInspector.CSSProperty.prototype.setText):
521 (WebInspector.CSSProperty.prototype.setValue):
522 * inspector/front-end/MetricsSidebarPane.js:
523 (WebInspector.MetricsSidebarPane.prototype._applyUserInput):
524 * inspector/front-end/StylesSidebarPane.js:
525 (WebInspector.StylePropertiesSection):
526 (WebInspector.StylePropertiesSection.prototype._handleSelectorContainerClick):
527 (WebInspector.StylePropertiesSection.prototype.addNewBlankProperty):
528 (WebInspector.StylePropertyTreeElement.prototype):
529 (WebInspector.StylePropertyTreeElement.prototype.element.userInput.previousContent.context.moveDirection):
530 (WebInspector.StylePropertyTreeElement.prototype.styleText.updateInterface.majorChange.isRevert):
532 2012-02-27 Pavel Feldman <pfeldman@google.com>
534 [Shadow]: Expose one ShadowRoot in the Elements panel (under experiment flag)
535 https://bugs.webkit.org/show_bug.cgi?id=78202
537 Reviewed by Yury Semikhatsky.
539 * dom/ShadowTree.cpp:
540 (WebCore::ShadowTree::pushShadowRoot):
541 (WebCore::ShadowTree::popShadowRoot):
542 * inspector/Inspector.json:
543 * inspector/InspectorDOMAgent.cpp:
544 (WebCore::InspectorDOMAgent::unbind):
545 (WebCore::InspectorDOMAgent::assertEditableNode):
546 (WebCore::InspectorDOMAgent::assertEditableElement):
547 (WebCore::InspectorDOMAgent::pushChildNodesToFrontend):
548 (WebCore::InspectorDOMAgent::setAttributeValue):
549 (WebCore::InspectorDOMAgent::setAttributesAsText):
550 (WebCore::InspectorDOMAgent::removeAttribute):
551 (WebCore::InspectorDOMAgent::removeNode):
552 (WebCore::InspectorDOMAgent::setOuterHTML):
553 (WebCore::InspectorDOMAgent::setNodeValue):
554 (WebCore::InspectorDOMAgent::moveTo):
555 (WebCore::InspectorDOMAgent::buildObjectForNode):
556 (WebCore::InspectorDOMAgent::didPushShadowRoot):
558 (WebCore::InspectorDOMAgent::willPopShadowRoot):
559 * inspector/InspectorDOMAgent.h:
562 * inspector/InspectorInstrumentation.cpp:
563 (WebCore::InspectorInstrumentation::didPushShadowRootImpl):
565 (WebCore::InspectorInstrumentation::willPopShadowRootImpl):
566 * inspector/InspectorInstrumentation.h:
568 (InspectorInstrumentation):
569 (WebCore::InspectorInstrumentation::didPushShadowRoot):
570 (WebCore::InspectorInstrumentation::willPopShadowRoot):
571 * inspector/PageConsoleAgent.cpp:
572 (WebCore::PageConsoleAgent::addInspectedNode):
573 * inspector/front-end/DOMAgent.js:
574 (WebInspector.DOMNode):
575 (WebInspector.DOMNode.prototype.hasChildNodes):
576 (WebInspector.DOMNode.prototype.isInShadowTree):
577 (WebInspector.DOMNode.prototype._insertChild):
578 (WebInspector.DOMNode.prototype._setChildrenPayload):
579 (WebInspector.DOMDocument):
580 (WebInspector.DOMAgent.prototype._setDetachedRoot):
581 (WebInspector.DOMAgent.prototype._shadowRootPopped):
582 (WebInspector.DOMDispatcher.prototype.childNodeRemoved):
583 (WebInspector.DOMDispatcher.prototype.shadowRootPushed):
584 (WebInspector.DOMDispatcher.prototype.shadowRootPopped):
585 * inspector/front-end/ElementsTreeOutline.js:
586 * inspector/front-end/MemoryStatistics.js:
587 * inspector/front-end/Settings.js:
588 (WebInspector.ExperimentsSettings):
589 * inspector/front-end/inspector.css:
590 (.webkit-html-tag.shadow, .webkit-html-fragment.shadow):
592 2012-02-27 Andrey Kosyakov <caseq@chromium.org>
594 Web Inspector: [refactoring] remove dependencies from TimelinePanel from most of FormattedRecord
595 https://bugs.webkit.org/show_bug.cgi?id=79665
597 Reviewed by Pavel Feldman.
599 * inspector/front-end/TimelinePanel.js:
600 (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
601 (WebInspector.TimelinePanel.FormattedRecord):
602 (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
603 (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
604 (WebInspector.TimelinePanel.FormattedRecord.prototype._linkifyLocation):
605 (WebInspector.TimelinePanel.FormattedRecord.prototype._linkifyCallFrame):
606 (WebInspector.TimelinePanel.FormattedRecord.prototype._linkifyTopCallFrame):
607 (WebInspector.TimelinePanel.FormattedRecord.prototype._linkifyScriptLocation):
608 (WebInspector.TimelinePanel.PopupContentHelper):
609 (WebInspector.TimelinePanel.PopupContentHelper.prototype._appendStackTrace):
611 2012-02-27 Yury Semikhatsky <yurys@chromium.org>
613 Web Inspector: reveal corresponding timeline record when user clicks on memory graph
614 https://bugs.webkit.org/show_bug.cgi?id=79669
616 When user clicks on DOM counter graph corresponding timeline record is
617 revealed in timelime grid and all its ancestors are expanded.
619 Reviewed by Pavel Feldman.
621 * inspector/front-end/MemoryStatistics.js:
622 (WebInspector.MemoryStatistics.prototype._onClick):
623 * inspector/front-end/TimelineOverviewPane.js:
624 (WebInspector.TimelineOverviewPane.prototype.update):
625 (WebInspector.HeapGraph.prototype.update):
626 (WebInspector.HeapGraph.prototype._clear):
627 * inspector/front-end/TimelinePanel.js:
628 (WebInspector.TimelinePanel.prototype.revealRecordAt.recordFinder):
629 (WebInspector.TimelinePanel.prototype.revealRecordAt):
630 (WebInspector.TimelinePanel.prototype._refreshRecords):
631 (WebInspector.TimelinePanel.forAllRecords):
632 (WebInspector.TimelinePanel.FormattedRecord.prototype.containsTime):
634 2012-02-27 Ilya Tikhonovsky <loislo@chromium.org>
636 Unreviewed single line fix for r108983.
638 * inspector/front-end/DetailedHeapshotView.js:
639 (WebInspector.DetailedHeapshotView.prototype.willHide):
641 2012-02-27 Yury Semikhatsky <yurys@chromium.org>
643 Web Inspector: repaint counter graphs when timeline splitter moves
644 https://bugs.webkit.org/show_bug.cgi?id=79644
646 Immediately refresh timeline panel on splitter move.
648 Reviewed by Pavel Feldman.
650 * inspector/front-end/TimelinePanel.js:
651 (WebInspector.TimelinePanel.prototype._splitterDragging):
653 2012-02-27 Carlos Garcia Campos <cgarcia@igalia.com>
655 Unreviewed. Fix make distcheck.
657 * GNUmakefile.am: Add missing files.
658 * GNUmakefile.list.am: Ditto.
660 2012-02-27 Patrick Gansterer <paroga@webkit.org>
662 [CMake] Build fix after r108709.
664 * CMakeLists.txt: Move DOMWindowSVG.idl to the other IDL files.
666 2012-02-27 Ilya Tikhonovsky <loislo@chromium.org>
668 Web Inspector: [chromium] Profiles - Tooltip with object/property types stays on screen when another tab selected
669 https://bugs.webkit.org/show_bug.cgi?id=79654
671 Reviewed by Yury Semikhatsky.
673 * inspector/front-end/DetailedHeapshotView.js:
674 (WebInspector.DetailedHeapshotView.prototype.willHide):
676 2012-02-27 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
678 [Qt] Remove page/PageSupplement.h from WebCore's Target.pri
680 The file itself was removed in r108958.
682 Reviewed by Kenneth Rohde Christiansen.
686 2012-02-27 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
688 [Qt] Use USE() macro instead of ENABLE() for using the Qt image decoder
690 Reviewed by Kenneth Rohde Christiansen..
694 * platform/MIMETypeRegistry.cpp:
695 (WebCore::initializeSupportedImageMIMETypes):
696 (WebCore::initializeSupportedImageMIMETypesForEncoding):
697 * platform/image-decoders/ImageDecoder.h:
698 (WebCore::ImageFrame::getAddr):
700 * platform/image-decoders/qt/ImageFrameQt.cpp:
702 (WebCore::ImageFrame::asNewNativeImage):
704 2012-02-27 MORITA Hajime <morrita@google.com>
706 Removing <ul>, <li> inside shadow DOM triggers assertion in updateListMarkerNumbers
707 https://bugs.webkit.org/show_bug.cgi?id=79630
709 Reviewed by Ryosuke Niwa.
711 This problem was caused by the inconsistent detach order of DOM tree where
712 Element::detach() called ContainerNode::detach() before shadow tree is detached.
713 This resulted the renderer of the element being destroyed even if its children,
714 each of which came from an element in the shadow tree, are alive.
715 In principle, child renderers should be destroyed before its parent.
717 This change aligns the detach order with the attach order. The shadow tree is
718 now deatched before parent's ContainerNode::detach() is called.
720 Test: fast/dom/shadow/shadow-ul-li.html
723 (WebCore::Element::detach):
725 2012-02-27 Keishi Hattori <keishi@webkit.org>
727 Color input type should be clickable through keyboard
728 https://bugs.webkit.org/show_bug.cgi?id=79629
730 Reviewed by Kent Tamura.
732 Introduced BaseClickableWithKeyInputType that represents an input type
733 that can be clicked by pressing space/return keys.
734 ColorInputType, FileInputType directly inherit it because it doesn't
735 want the other methods(like appendFormData) in BaseButtonInputType.
737 * CMakeLists.txt: Added BaseClickableWithKeyInputType.cpp
738 * GNUmakefile.list.am: Added BaseClickableWithKeyInputType.{cpp,h}
739 * Target.pri: Added BaseClickableWithKeyInputType.{cpp,h}
740 * WebCore.gypi: Added BaseClickableWithKeyInputType.{cpp,h}
741 * WebCore.vcproj/WebCore.vcproj: Added BaseClickableWithKeyInputType.{cpp,h}
742 * WebCore.xcodeproj/project.pbxproj: Added BaseClickableWithKeyInputType.{cpp,h}
743 * html/BaseButtonInputType.cpp:
744 * html/BaseButtonInputType.h:
745 (WebCore::BaseButtonInputType::BaseButtonInputType): Inherits BaseClickableWithKeyInputType now.
746 (BaseButtonInputType):
747 * html/BaseCheckableInputType.cpp: Changed comment.
748 * html/BaseClickableWithKeyInputType.cpp:
750 (WebCore::BaseClickableWithKeyInputType::handleKeydownEvent): Moved from BaseButtonInputType
751 (WebCore::BaseClickableWithKeyInputType::handleKeypressEvent): Moved from BaseButtonInputType
752 (WebCore::BaseClickableWithKeyInputType::handleKeyupEvent): Moved from BaseButtonInputType
753 (WebCore::BaseClickableWithKeyInputType::accessKeyAction): Moved from BaseButtonInputType
754 * html/BaseClickableWithKeyInputType.h:
756 (BaseClickableWithKeyInputType): Input type that can be clicked by pressing space/return keys.
757 (WebCore::BaseClickableWithKeyInputType::BaseClickableWithKeyInputType):
758 * html/ColorInputType.h:
759 (WebCore::ColorInputType::ColorInputType): Inherits BaseClickableWithKeyInputType now.
760 * html/FileInputType.cpp:
761 (WebCore::FileInputType::FileInputType):
762 * html/FileInputType.h:
763 (FileInputType): Inherits BaseClickableWithKeyInputType now.
764 * html/RangeInputType.cpp: Changed comment.
767 2012-02-27 Keishi Hattori <keishi@webkit.org>
769 Add missing include to ColorInputType.cpp
770 https://bugs.webkit.org/show_bug.cgi?id=79632
772 Reviewed by Kent Tamura.
774 * html/ColorInputType.cpp: Include ShadowTree.h
776 2012-02-27 Andrey Kosyakov <caseq@chromium.org>
778 Use built-in bind in ExtensionAPI.js
780 Web Inspector: [Extensions API] get rid of custom bind() in favor of built-in
781 https://bugs.webkit.org/show_bug.cgi?id=79570
783 Reviewed by Pavel Feldman.
785 * inspector/front-end/ExtensionAPI.js:
786 (injectedExtensionAPI.EventSinkImpl.prototype.addListener):
787 (injectedExtensionAPI):
788 (injectedExtensionAPI.Panels.prototype.create):
789 (injectedExtensionAPI.AuditResultImpl):
790 (injectedExtensionAPI.ExtensionServerClient):
792 2012-02-21 Pavel Podivilov <podivilov@chromium.org>
794 Web Inspector: get rid of RawSourceCode.sourceMapping getter.
795 https://bugs.webkit.org/show_bug.cgi?id=79461
797 Reviewed by Yury Semikhatsky.
799 * inspector/front-end/BreakpointManager.js:
800 (WebInspector.BreakpointManager.prototype.uiSourceCodeAdded):
801 (WebInspector.BreakpointManager.prototype.setBreakpoint):
802 (WebInspector.BreakpointManager.prototype._materializeBreakpoint):
803 (WebInspector.BreakpointManager.prototype._breakpointDebuggerLocationChanged):
804 * inspector/front-end/ConsoleMessage.js:
805 (WebInspector.ConsoleMessageImpl.prototype.get location):
806 * inspector/front-end/DebuggerPresentationModel.js:
807 (WebInspector.DebuggerPresentationModel.prototype.rawLocationToUILocation):
808 (WebInspector.DebuggerPresentationModel.prototype.uiSourceCodes):
809 (WebInspector.DebuggerPresentationModel.prototype._handleUISourceCodeListChanged):
810 (WebInspector.DebuggerPresentationModel.prototype._uiSourceCodeListChanged):
811 (WebInspector.DebuggerPresentationModel.prototype._restoreBreakpoints):
812 (WebInspector.DebuggerPresentationModel.prototype._restoreConsoleMessages):
813 (WebInspector.DebuggerPresentationModel.prototype._restoreExecutionLine):
814 (WebInspector.DebuggerPresentationModel.prototype._consoleMessageAdded):
815 (WebInspector.DebuggerPresentationModel.prototype.continueToLine):
816 (WebInspector.DebuggerPresentationModel.prototype.set selectedCallFrame):
817 (WebInspector.DebuggerPresentationModel.prototype._debuggerReset):
818 (WebInspector.PresentationCallFrame.prototype.uiLocation):
819 (WebInspector.DebuggerPresentationModel.CallFramePlacard):
820 (WebInspector.DebuggerPresentationModel.CallFramePlacard.prototype.discard):
821 (WebInspector.DebuggerPresentationModel.CallFramePlacard.prototype._update):
822 (WebInspector.DebuggerPresentationModelResourceBinding.prototype.canSetContent):
823 (WebInspector.DebuggerPresentationModelResourceBinding.prototype.setContent):
824 (WebInspector.DebuggerPresentationModel.DefaultLinkifierFormatter.prototype.formatRawSourceCodeAnchor):
825 (WebInspector.DebuggerPresentationModel.Linkifier.prototype.linkifyRawSourceCode):
826 (WebInspector.DebuggerPresentationModel.Linkifier.prototype.reset):
827 (WebInspector.DebuggerPresentationModel.Linkifier.prototype._updateAnchor):
828 * inspector/front-end/RawSourceCode.js:
829 (WebInspector.RawSourceCode.prototype.rawLocationToUILocation):
830 (WebInspector.RawSourceCode.prototype.uiLocationToRawLocation):
831 (WebInspector.RawSourceCode.prototype.uiSourceCodeList):
832 (WebInspector.RawSourceCode.prototype._saveSourceMapping):
833 * inspector/front-end/ScriptsPanel.js:
834 (WebInspector.ScriptsPanel.prototype._updateCallFrame):
835 * inspector/front-end/ScriptsSearchScope.js:
836 (WebInspector.ScriptsSearchResultsPane.prototype.createAnchor):
838 2012-02-27 Mihnea Ovidenie <mihnea@adobe.com>
840 [CSSRegions]Implement NamedFlow::getRegionsByContentNode
841 https://bugs.webkit.org/show_bug.cgi?id=77746
843 Reviewed by David Hyatt.
845 Tests: fast/regions/get-regions-by-content-node-horiz-bt.html
846 fast/regions/get-regions-by-content-node-horiz-tb.html
847 fast/regions/get-regions-by-content-node-vert-lr.html
848 fast/regions/get-regions-by-content-node-vert-rl.html
849 fast/regions/get-regions-by-content-node.html
850 fast/regions/get-regions-by-content-node2.html
853 * GNUmakefile.list.am:
856 * WebCore.vcproj/WebCore.vcproj:
857 * WebCore.xcodeproj/project.pbxproj:
859 (WebCore::Node::removeCachedRegionNodeList):
861 (WebCore::Node::getRegionsByContentNode):
862 (WebCore::NodeListsNodeData::invalidateCaches):
863 (WebCore::NodeListsNodeData::isEmpty):
867 * dom/NodeRareData.h:
869 * dom/RegionNodeList.cpp:
871 (WebCore::RegionNodeList::RegionNodeList):
872 (WebCore::RegionNodeList::~RegionNodeList):
873 (WebCore::RegionNodeList::nodeMatches):
874 * dom/RegionNodeList.h:
877 (WebCore::RegionNodeList::create):
878 * dom/WebKitNamedFlow.cpp:
879 (WebCore::WebKitNamedFlow::getRegionsByContentNode):
881 * dom/WebKitNamedFlow.h:
884 * dom/WebKitNamedFlow.idl:
885 * rendering/RenderFlowThread.cpp:
886 (WebCore::RenderFlowThread::regionInRange):
888 (WebCore::RenderFlowThread::objectInFlowRegion):
889 * rendering/RenderFlowThread.h:
890 * rendering/RenderRegion.h:
891 (WebCore::RenderRegion::flowThread):
893 2012-02-27 Yury Semikhatsky <yurys@chromium.org>
895 Web Inspector: counter graphs should resize after console showing
896 https://bugs.webkit.org/show_bug.cgi?id=79640
898 Invoke Panel.doResize after showing drawer.
900 Reviewed by Pavel Feldman.
902 * inspector/front-end/Drawer.js:
903 (WebInspector.Drawer.prototype.show.animationFinished):
904 (WebInspector.Drawer.prototype.show):
906 2012-02-27 Dan Beam <dbeam@chromium.org>
908 Web Inspector: Close TabbedPanes on middle click of tab handle
909 https://bugs.webkit.org/show_bug.cgi?id=79518
911 Reviewed by Pavel Feldman.
913 * inspector/front-end/TabbedPane.js:
914 (WebInspector.TabbedPaneTab.prototype._createTabElement):
915 (WebInspector.TabbedPaneTab.prototype._tabClicked):
917 2012-02-26 Yury Semikhatsky <yurys@chromium.org>
919 Web Inspector: crash in fake workers
920 https://bugs.webkit.org/show_bug.cgi?id=79637
922 Notify front-end about worker creation/destruction synchronously instead of
925 Reviewed by Pavel Feldman.
927 * inspector/InspectorAgent.cpp:
929 (WebCore::InspectorAgent::didCreateWorker):
930 (WebCore::InspectorAgent::didDestroyWorker):
931 * inspector/InspectorAgent.h:
934 2012-02-26 Adam Barth <abarth@webkit.org>
938 Fix some warnings in the build from referencing the non-existent
939 websockets directory.
941 * WebCore.gyp/WebCore.gyp:
943 2012-02-26 Shinya Kawanaka <shinyak@chromium.org>
945 Rename ShadowRootList to ShadowTree.
946 https://bugs.webkit.org/show_bug.cgi?id=79342
948 Reviewed by Hajime Morita.
950 This patch renames ShadowRootList ot ShadowTree.
952 No new tests, no change in behavior.
955 * GNUmakefile.list.am:
959 * WebCore.xcodeproj/project.pbxproj:
960 * dom/DOMAllInOne.cpp:
962 (WebCore::Document::buildAccessKeyMap):
964 (WebCore::Element::willRemove):
965 (WebCore::Element::insertedIntoDocument):
966 (WebCore::Element::removedFromDocument):
967 (WebCore::Element::insertedIntoTree):
968 (WebCore::Element::removedFromTree):
969 (WebCore::Element::attach):
970 (WebCore::Element::detach):
971 (WebCore::Element::recalcStyle):
972 (WebCore::Element::hasShadowRoot):
973 (WebCore::Element::shadowTree):
974 (WebCore::Element::setShadowRoot):
975 (WebCore::Element::ensureShadowRoot):
976 (WebCore::Element::removeShadowRoot):
977 (WebCore::Element::childrenChanged):
981 * dom/ElementRareData.h:
983 (WebCore::ElementRareData::~ElementRareData):
985 (WebCore::oldestShadowRoot):
986 * dom/NodeRenderingContext.cpp:
987 (WebCore::NodeRenderingContext::NodeRenderingContext):
988 (WebCore::NodeRenderingContext::hostChildrenChanged):
989 (WebCore::NodeRenderingContext::shouldCreateRenderer):
990 * dom/NodeRenderingContext.h:
992 * dom/ShadowRoot.cpp:
993 (WebCore::ShadowRoot::tree):
994 (WebCore::ShadowRoot::attach):
998 * dom/ShadowTree.cpp: Renamed from Source/WebCore/dom/ShadowRootList.cpp.
1000 (WebCore::ShadowTree::ShadowTree):
1001 (WebCore::ShadowTree::~ShadowTree):
1002 (WebCore::ShadowTree::pushShadowRoot):
1003 (WebCore::ShadowTree::popShadowRoot):
1004 (WebCore::ShadowTree::insertedIntoDocument):
1005 (WebCore::ShadowTree::removedFromDocument):
1006 (WebCore::ShadowTree::insertedIntoTree):
1007 (WebCore::ShadowTree::removedFromTree):
1008 (WebCore::ShadowTree::willRemove):
1009 (WebCore::ShadowTree::attach):
1010 (WebCore::ShadowTree::detach):
1011 (WebCore::ShadowTree::insertionPointFor):
1012 (WebCore::ShadowTree::isSelectorActive):
1013 (WebCore::ShadowTree::reattach):
1014 (WebCore::ShadowTree::childNeedsStyleRecalc):
1015 (WebCore::ShadowTree::needsStyleRecalc):
1016 (WebCore::ShadowTree::recalcShadowTreeStyle):
1017 (WebCore::ShadowTree::needsReattachHostChildrenAndShadow):
1018 (WebCore::ShadowTree::hostChildrenChanged):
1019 (WebCore::ShadowTree::setNeedsReattachHostChildrenAndShadow):
1020 (WebCore::ShadowTree::reattachHostChildrenAndShadow):
1021 (WebCore::ShadowTree::ensureSelector):
1022 * dom/ShadowTree.h: Renamed from Source/WebCore/dom/ShadowRootList.h.
1025 (WebCore::ShadowTree::hasShadowRoot):
1026 (WebCore::ShadowTree::youngestShadowRoot):
1027 (WebCore::ShadowTree::oldestShadowRoot):
1028 (WebCore::ShadowTree::selector):
1029 (WebCore::ShadowTree::clearNeedsReattachHostChildrenAndShadow):
1030 (WebCore::ShadowTree::host):
1031 * dom/TreeScopeAdopter.cpp:
1032 (WebCore::shadowRootFor):
1033 * html/ColorInputType.cpp:
1034 (WebCore::ColorInputType::createShadowSubtree):
1035 (WebCore::ColorInputType::shadowColorSwatch):
1036 * html/FileInputType.cpp:
1037 (WebCore::FileInputType::createShadowSubtree):
1038 (WebCore::FileInputType::multipleAttributeChanged):
1039 * html/HTMLDetailsElement.cpp:
1040 (WebCore::HTMLDetailsElement::findMainSummary):
1041 * html/HTMLKeygenElement.cpp:
1042 (WebCore::HTMLKeygenElement::shadowSelect):
1043 * html/HTMLMediaElement.cpp:
1044 (WebCore::HTMLMediaElement::mediaControls):
1045 (WebCore::HTMLMediaElement::hasMediaControls):
1046 * html/HTMLSummaryElement.cpp:
1047 * html/HTMLTextAreaElement.cpp:
1048 (WebCore::HTMLTextAreaElement::innerTextElement):
1049 (WebCore::HTMLTextAreaElement::updatePlaceholderText):
1050 * html/InputType.cpp:
1051 (WebCore::InputType::destroyShadowSubtree):
1052 * html/RangeInputType.cpp:
1053 (WebCore::RangeInputType::handleMouseDownEvent):
1054 (WebCore::RangeInputType::createShadowSubtree):
1055 * html/TextFieldInputType.cpp:
1056 (WebCore::TextFieldInputType::createShadowSubtree):
1057 (WebCore::TextFieldInputType::updatePlaceholderText):
1058 * html/ValidationMessage.cpp:
1059 (WebCore::ValidationMessage::deleteBubbleTree):
1060 * html/shadow/HTMLContentElement.cpp:
1061 (WebCore::HTMLContentElement::attach):
1062 (WebCore::HTMLContentElement::detach):
1063 (WebCore::HTMLContentElement::parseAttribute):
1064 * html/shadow/SliderThumbElement.cpp:
1065 (WebCore::sliderThumbElementOf):
1066 (WebCore::RenderSliderContainer::layout):
1067 (WebCore::trackLimiterElementOf):
1068 * page/FocusController.cpp:
1069 (WebCore::shadowRoot):
1070 * rendering/RenderFileUploadControl.cpp:
1071 (WebCore::RenderFileUploadControl::uploadButton):
1072 * svg/SVGTRefElement.cpp:
1073 (WebCore::SVGTRefElement::updateReferencedText):
1074 (WebCore::SVGTRefElement::detachTarget):
1075 * testing/Internals.cpp:
1076 (WebCore::Internals::ensureShadowRoot):
1077 (WebCore::Internals::youngestShadowRoot):
1078 (WebCore::Internals::oldestShadowRoot):
1080 2012-02-26 Adam Barth <abarth@webkit.org>
1082 Extract Supplementable base class from Page and Navigator
1083 https://bugs.webkit.org/show_bug.cgi?id=79624
1085 Reviewed by Hajime Morita.
1087 We'll use this pattern again soon for ScriptExecutionContext.
1090 * GNUmakefile.list.am:
1091 * Modules/gamepad/NavigatorGamepad.cpp:
1092 (WebCore::NavigatorGamepad::from):
1093 * Modules/gamepad/NavigatorGamepad.h:
1094 * Modules/geolocation/NavigatorGeolocation.cpp:
1095 (WebCore::NavigatorGeolocation::from):
1096 * Modules/geolocation/NavigatorGeolocation.h:
1097 * Modules/mediastream/NavigatorMediaStream.cpp:
1098 (WebCore::NavigatorMediaStream::webkitGetUserMedia):
1099 * Modules/mediastream/UserMediaController.cpp:
1100 (WebCore::provideUserMediaTo):
1101 * Modules/mediastream/UserMediaController.h:
1102 (WebCore::UserMediaController::from):
1105 * WebCore.vcproj/WebCore.vcproj:
1106 * WebCore.xcodeproj/project.pbxproj:
1107 * dom/DeviceMotionController.cpp:
1108 (WebCore::provideDeviceMotionTo):
1109 * dom/DeviceMotionController.h:
1110 (WebCore::DeviceMotionController::from):
1111 * dom/DeviceOrientationController.cpp:
1112 (WebCore::provideDeviceOrientationTo):
1113 * dom/DeviceOrientationController.h:
1115 (WebCore::DeviceOrientationController::from):
1116 * notifications/NotificationController.cpp:
1117 (WebCore::provideNotification):
1118 * notifications/NotificationController.h:
1120 (WebCore::NotificationController::from):
1121 * page/DOMWindow.cpp:
1122 (WebCore::DOMWindow::page):
1124 (WebCore::DOMWindow::addEventListener):
1125 (WebCore::DOMWindow::removeEventListener):
1126 (WebCore::DOMWindow::removeAllEventListeners):
1130 * page/Navigator.cpp:
1134 * page/NavigatorSupplement.cpp: Removed.
1135 * page/NavigatorSupplement.h: Removed.
1140 * page/PageSupplement.cpp: Removed.
1141 * page/PageSupplement.h: Removed.
1142 * page/SpeechInput.cpp:
1143 (WebCore::provideSpeechInputTo):
1144 * page/SpeechInput.h:
1145 (WebCore::SpeechInput::from):
1146 * platform/Supplementable.h: Added.
1149 (WebCore::Supplement::~Supplement):
1150 (WebCore::Supplement::provideTo):
1151 (WebCore::Supplement::from):
1153 (WebCore::Supplementable::provideSupplement):
1154 (WebCore::Supplementable::requireSupplement):
1156 2012-02-26 Hajime Morrita <morrita@chromium.org>
1158 Move ChromeClient::showContextMenu() to ContextMenuClient
1159 https://bugs.webkit.org/show_bug.cgi?id=79427
1161 Reviewed by Adam Barth.
1163 - Removed ChromeClient::showContextMenu(), Chrome::showContextMenu()
1164 - Added ContextMenuController::showContextMenuAt(), ContextMenuClient::showContextMenu()
1165 - Hided showContextMenu() behind ACCESSIBILITY_CONTEXT_MENUS
1167 This change localizes context menu related code and will make it easy to
1168 modularize CONTEXT_MENUS code.
1170 Refactoring. No new tests.
1173 * accessibility/mac/WebAccessibilityObjectWrapper.mm:
1174 (-[WebAccessibilityObjectWrapper accessibilityShowContextMenu]):
1175 * loader/EmptyClients.h:
1176 (EmptyContextMenuClient):
1177 (WebCore::EmptyContextMenuClient::showContextMenu):
1178 * page/ContextMenuClient.h:
1179 (ContextMenuClient):
1180 * page/ContextMenuController.cpp:
1182 (WebCore::ContextMenuController::showContextMenuAt):
1183 * page/ContextMenuController.h:
1184 (ContextMenuController):
1188 * page/ChromeClient.h:
1191 2012-02-26 Benjamin Poulain <bpoulain@apple.com>
1193 [Mac] Release localized Strings instead of AutoRelease
1194 https://bugs.webkit.org/show_bug.cgi?id=79552
1196 Reviewed by Sam Weinig.
1198 By using the CoreFoundation API, we can release the memory as soon as
1199 the WTF::String is created.
1201 * WebCore.xcodeproj/project.pbxproj:
1202 * platform/mac/LocalizedStringsMac.cpp: Renamed from Source/WebCore/platform/mac/LocalizedStringsMac.mm.
1204 (WebCore::localizedString):
1206 2012-02-26 Adam Barth <abarth@webkit.org>
1208 ContextDestructionObserver should live in its own file
1209 https://bugs.webkit.org/show_bug.cgi?id=79619
1211 Reviewed by Hajime Morita.
1213 WebKit prefers to have one class per file. (This patch is paying a
1214 build system hacking debt I incurred earlier.)
1217 * GNUmakefile.list.am:
1220 * WebCore.vcproj/WebCore.vcproj:
1221 * WebCore.xcodeproj/project.pbxproj:
1222 * dom/ActiveDOMObject.cpp:
1224 * dom/ActiveDOMObject.h:
1226 (WebCore::ActiveDOMObject::suspendIfNeededCalled):
1227 (WebCore::ActiveDOMObject::setPendingActivity):
1228 (WebCore::ActiveDOMObject::unsetPendingActivity):
1229 * dom/ContextDestructionObserver.cpp: Added.
1231 (WebCore::ContextDestructionObserver::ContextDestructionObserver):
1232 (WebCore::ContextDestructionObserver::~ContextDestructionObserver):
1233 (WebCore::ContextDestructionObserver::contextDestroyed):
1234 * dom/ContextDestructionObserver.h: Added.
1236 (ContextDestructionObserver):
1237 (WebCore::ContextDestructionObserver::scriptExecutionContext):
1238 * dom/DOMAllInOne.cpp:
1240 2012-02-26 Dirk Schulze <krit@webkit.org>
1242 Cleanup of Adobes copyright text. The text got harmonized with copyright texts of other companies.
1246 * css/CSSWrapShapes.cpp:
1247 * css/CSSWrapShapes.h:
1248 * css/WebKitCSSRegionRule.cpp:
1249 * css/WebKitCSSRegionRule.h:
1250 * css/WebKitCSSRegionRule.idl:
1251 * css/WebKitCSSShaderValue.cpp:
1252 * css/WebKitCSSShaderValue.h:
1253 * dom/WebKitNamedFlow.cpp:
1254 * dom/WebKitNamedFlow.h:
1255 * dom/WebKitNamedFlow.idl:
1256 * loader/cache/CachedShader.cpp:
1257 * loader/cache/CachedShader.h:
1258 * platform/graphics/filters/CustomFilterMesh.cpp:
1259 * platform/graphics/filters/CustomFilterMesh.h:
1260 * platform/graphics/filters/CustomFilterNumberParameter.h:
1261 * platform/graphics/filters/CustomFilterOperation.cpp:
1262 * platform/graphics/filters/CustomFilterOperation.h:
1263 * platform/graphics/filters/CustomFilterParameter.h:
1264 * platform/graphics/filters/CustomFilterProgram.cpp:
1265 * platform/graphics/filters/CustomFilterProgram.h:
1266 * platform/graphics/filters/CustomFilterProgramClient.h:
1267 * platform/graphics/filters/CustomFilterShader.cpp:
1268 * platform/graphics/filters/CustomFilterShader.h:
1269 * platform/graphics/filters/FECustomFilter.cpp:
1270 * platform/graphics/filters/FECustomFilter.h:
1271 * rendering/FilterEffectObserver.h:
1272 * rendering/RenderFlowThread.cpp:
1273 * rendering/RenderFlowThread.h:
1274 * rendering/RenderRegion.cpp:
1275 * rendering/RenderRegion.h:
1276 * rendering/style/StyleCachedShader.cpp:
1277 * rendering/style/StyleCachedShader.h:
1278 * rendering/style/StyleCustomFilterProgram.h:
1279 * rendering/style/StylePendingShader.h:
1280 * rendering/style/StyleShader.h:
1282 2012-02-26 Hyowon Kim <hw1008.kim@samsung.com>
1284 [EFL] Implementation of GraphicsContext3D for EFL port
1285 https://bugs.webkit.org/show_bug.cgi?id=79452
1287 Reviewed by Noam Rosenthal.
1289 Evas_GL is used to do OpenGL rendering on Evas, in which
1290 a structure 'Evas_GL_API' contains all the OpenGL functions.
1292 GraphicsContext3D in EFL port should call OpenGL functions indirectly
1293 through the Evas_GL_API, and not use GraphicsContext3DOpenGL(Common).
1295 So, we use the GraphicsContext3DPrivate to delegate all OpenGL function calls,
1296 and it will be implemented to use Evas_GL (bug 62961).
1298 No new tests. No behavior change.
1300 * platform/graphics/efl/GraphicsContext3DEfl.cpp: Added.
1302 (WebCore::GraphicsContext3D::create):
1303 (WebCore::GraphicsContext3D::GraphicsContext3D):
1304 (WebCore::GraphicsContext3D::~GraphicsContext3D):
1305 (WebCore::GraphicsContext3D::platformGraphicsContext3D):
1306 (WebCore::GraphicsContext3D::platformLayer):
1307 (WebCore::GraphicsContext3D::makeContextCurrent):
1308 (WebCore::GraphicsContext3D::isGLES2Compliant):
1309 (WebCore::GraphicsContext3D::activeTexture):
1310 (WebCore::GraphicsContext3D::attachShader):
1311 (WebCore::GraphicsContext3D::bindAttribLocation):
1312 (WebCore::GraphicsContext3D::bindBuffer):
1313 (WebCore::GraphicsContext3D::bindFramebuffer):
1314 (WebCore::GraphicsContext3D::bindRenderbuffer):
1315 (WebCore::GraphicsContext3D::bindTexture):
1316 (WebCore::GraphicsContext3D::blendColor):
1317 (WebCore::GraphicsContext3D::blendEquation):
1318 (WebCore::GraphicsContext3D::blendEquationSeparate):
1319 (WebCore::GraphicsContext3D::blendFunc):
1320 (WebCore::GraphicsContext3D::blendFuncSeparate):
1321 (WebCore::GraphicsContext3D::bufferData):
1322 (WebCore::GraphicsContext3D::bufferSubData):
1323 (WebCore::GraphicsContext3D::checkFramebufferStatus):
1324 (WebCore::GraphicsContext3D::clear):
1325 (WebCore::GraphicsContext3D::clearColor):
1326 (WebCore::GraphicsContext3D::clearDepth):
1327 (WebCore::GraphicsContext3D::clearStencil):
1328 (WebCore::GraphicsContext3D::colorMask):
1329 (WebCore::GraphicsContext3D::compileShader):
1330 (WebCore::GraphicsContext3D::copyTexImage2D):
1331 (WebCore::GraphicsContext3D::copyTexSubImage2D):
1332 (WebCore::GraphicsContext3D::cullFace):
1333 (WebCore::GraphicsContext3D::depthFunc):
1334 (WebCore::GraphicsContext3D::depthMask):
1335 (WebCore::GraphicsContext3D::depthRange):
1336 (WebCore::GraphicsContext3D::detachShader):
1337 (WebCore::GraphicsContext3D::disable):
1338 (WebCore::GraphicsContext3D::disableVertexAttribArray):
1339 (WebCore::GraphicsContext3D::drawArrays):
1340 (WebCore::GraphicsContext3D::drawElements):
1341 (WebCore::GraphicsContext3D::enable):
1342 (WebCore::GraphicsContext3D::enableVertexAttribArray):
1343 (WebCore::GraphicsContext3D::finish):
1344 (WebCore::GraphicsContext3D::flush):
1345 (WebCore::GraphicsContext3D::framebufferRenderbuffer):
1346 (WebCore::GraphicsContext3D::framebufferTexture2D):
1347 (WebCore::GraphicsContext3D::frontFace):
1348 (WebCore::GraphicsContext3D::generateMipmap):
1349 (WebCore::GraphicsContext3D::getActiveAttrib):
1350 (WebCore::GraphicsContext3D::getActiveUniform):
1351 (WebCore::GraphicsContext3D::getAttachedShaders):
1352 (WebCore::GraphicsContext3D::getAttribLocation):
1353 (WebCore::GraphicsContext3D::getBooleanv):
1354 (WebCore::GraphicsContext3D::getBufferParameteriv):
1355 (WebCore::GraphicsContext3D::getContextAttributes):
1356 (WebCore::GraphicsContext3D::getError):
1357 (WebCore::GraphicsContext3D::getFloatv):
1358 (WebCore::GraphicsContext3D::getFramebufferAttachmentParameteriv):
1359 (WebCore::GraphicsContext3D::getIntegerv):
1360 (WebCore::GraphicsContext3D::getProgramiv):
1361 (WebCore::GraphicsContext3D::getProgramInfoLog):
1362 (WebCore::GraphicsContext3D::getRenderbufferParameteriv):
1363 (WebCore::GraphicsContext3D::getShaderiv):
1364 (WebCore::GraphicsContext3D::getShaderInfoLog):
1365 (WebCore::GraphicsContext3D::getShaderSource):
1366 (WebCore::GraphicsContext3D::getString):
1367 (WebCore::GraphicsContext3D::getTexParameterfv):
1368 (WebCore::GraphicsContext3D::getTexParameteriv):
1369 (WebCore::GraphicsContext3D::getUniformfv):
1370 (WebCore::GraphicsContext3D::getUniformiv):
1371 (WebCore::GraphicsContext3D::getUniformLocation):
1372 (WebCore::GraphicsContext3D::getVertexAttribfv):
1373 (WebCore::GraphicsContext3D::getVertexAttribiv):
1374 (WebCore::GraphicsContext3D::getVertexAttribOffset):
1375 (WebCore::GraphicsContext3D::hint):
1376 (WebCore::GraphicsContext3D::isBuffer):
1377 (WebCore::GraphicsContext3D::isEnabled):
1378 (WebCore::GraphicsContext3D::isFramebuffer):
1379 (WebCore::GraphicsContext3D::isProgram):
1380 (WebCore::GraphicsContext3D::isRenderbuffer):
1381 (WebCore::GraphicsContext3D::isShader):
1382 (WebCore::GraphicsContext3D::isTexture):
1383 (WebCore::GraphicsContext3D::lineWidth):
1384 (WebCore::GraphicsContext3D::linkProgram):
1385 (WebCore::GraphicsContext3D::pixelStorei):
1386 (WebCore::GraphicsContext3D::polygonOffset):
1387 (WebCore::GraphicsContext3D::readPixels):
1388 (WebCore::GraphicsContext3D::releaseShaderCompiler):
1389 (WebCore::GraphicsContext3D::renderbufferStorage):
1390 (WebCore::GraphicsContext3D::sampleCoverage):
1391 (WebCore::GraphicsContext3D::scissor):
1392 (WebCore::GraphicsContext3D::shaderSource):
1393 (WebCore::GraphicsContext3D::stencilFunc):
1394 (WebCore::GraphicsContext3D::stencilFuncSeparate):
1395 (WebCore::GraphicsContext3D::stencilMask):
1396 (WebCore::GraphicsContext3D::stencilMaskSeparate):
1397 (WebCore::GraphicsContext3D::stencilOp):
1398 (WebCore::GraphicsContext3D::stencilOpSeparate):
1399 (WebCore::GraphicsContext3D::texImage2D):
1400 (WebCore::GraphicsContext3D::texParameterf):
1401 (WebCore::GraphicsContext3D::texParameteri):
1402 (WebCore::GraphicsContext3D::texSubImage2D):
1403 (WebCore::GraphicsContext3D::uniform1f):
1404 (WebCore::GraphicsContext3D::uniform1fv):
1405 (WebCore::GraphicsContext3D::uniform1i):
1406 (WebCore::GraphicsContext3D::uniform1iv):
1407 (WebCore::GraphicsContext3D::uniform2f):
1408 (WebCore::GraphicsContext3D::uniform2fv):
1409 (WebCore::GraphicsContext3D::uniform2i):
1410 (WebCore::GraphicsContext3D::uniform2iv):
1411 (WebCore::GraphicsContext3D::uniform3f):
1412 (WebCore::GraphicsContext3D::uniform3fv):
1413 (WebCore::GraphicsContext3D::uniform3i):
1414 (WebCore::GraphicsContext3D::uniform3iv):
1415 (WebCore::GraphicsContext3D::uniform4f):
1416 (WebCore::GraphicsContext3D::uniform4fv):
1417 (WebCore::GraphicsContext3D::uniform4i):
1418 (WebCore::GraphicsContext3D::uniform4iv):
1419 (WebCore::GraphicsContext3D::uniformMatrix2fv):
1420 (WebCore::GraphicsContext3D::uniformMatrix3fv):
1421 (WebCore::GraphicsContext3D::uniformMatrix4fv):
1422 (WebCore::GraphicsContext3D::useProgram):
1423 (WebCore::GraphicsContext3D::validateProgram):
1424 (WebCore::GraphicsContext3D::vertexAttrib1f):
1425 (WebCore::GraphicsContext3D::vertexAttrib1fv):
1426 (WebCore::GraphicsContext3D::vertexAttrib2f):
1427 (WebCore::GraphicsContext3D::vertexAttrib2fv):
1428 (WebCore::GraphicsContext3D::vertexAttrib3f):
1429 (WebCore::GraphicsContext3D::vertexAttrib3fv):
1430 (WebCore::GraphicsContext3D::vertexAttrib4f):
1431 (WebCore::GraphicsContext3D::vertexAttrib4fv):
1432 (WebCore::GraphicsContext3D::vertexAttribPointer):
1433 (WebCore::GraphicsContext3D::viewport):
1434 (WebCore::GraphicsContext3D::reshape):
1435 (WebCore::GraphicsContext3D::markContextChanged):
1436 (WebCore::GraphicsContext3D::markLayerComposited):
1437 (WebCore::GraphicsContext3D::layerComposited):
1438 (WebCore::GraphicsContext3D::paintRenderingResultsToCanvas):
1439 (WebCore::GraphicsContext3D::paintRenderingResultsToImageData):
1440 (WebCore::GraphicsContext3D::paintCompositedResultsToCanvas):
1441 (WebCore::GraphicsContext3D::createBuffer):
1442 (WebCore::GraphicsContext3D::createFramebuffer):
1443 (WebCore::GraphicsContext3D::createProgram):
1444 (WebCore::GraphicsContext3D::createRenderbuffer):
1445 (WebCore::GraphicsContext3D::createShader):
1446 (WebCore::GraphicsContext3D::createTexture):
1447 (WebCore::GraphicsContext3D::deleteBuffer):
1448 (WebCore::GraphicsContext3D::deleteFramebuffer):
1449 (WebCore::GraphicsContext3D::deleteProgram):
1450 (WebCore::GraphicsContext3D::deleteRenderbuffer):
1451 (WebCore::GraphicsContext3D::deleteShader):
1452 (WebCore::GraphicsContext3D::deleteTexture):
1453 (WebCore::GraphicsContext3D::synthesizeGLError):
1454 (WebCore::GraphicsContext3D::getExtensions):
1455 (WebCore::GraphicsContext3D::getInternalFramebufferSize):
1456 (WebCore::GraphicsContext3D::setContextLostCallback):
1457 (WebCore::GraphicsContext3D::getImageData):
1458 (WebCore::GraphicsContext3D::validateAttributes):
1459 (WebCore::GraphicsContext3D::readRenderingResults):
1460 (WebCore::GraphicsContext3D::reshapeFBOs):
1461 (WebCore::GraphicsContext3D::resolveMultisamplingIfNecessary):
1462 (WebCore::GraphicsContext3D::isResourceSafe):
1464 2012-02-26 James Robinson <jamesr@chromium.org>
1466 [chromium] Wire up shouldUpdateScrollPositionOnMainThread and nonFastScrollableRegion to compositor
1467 https://bugs.webkit.org/show_bug.cgi?id=79155
1469 Reviewed by Adam Barth.
1471 This hooks up ScrollingCoordinator::setNonFastScrollableRegion() and
1472 ScrollingCoordinator::setShouldUpdateScrollLayerPositionOnMainThread() to the chromium compositor
1473 implementation and implements them on the impl thread.
1475 New compositor behavior is covered by unit tests in LayerChromiumTests and CCLayerTreeHostImplTests. The rest is
1478 * page/scrolling/chromium/ScrollingCoordinatorChromium.cpp:
1479 (WebCore::ScrollingCoordinator::setNonFastScrollableRegion):
1480 (WebCore::ScrollingCoordinator::setShouldUpdateScrollLayerPositionOnMainThread):
1481 * platform/graphics/chromium/LayerChromium.cpp:
1482 (WebCore::LayerChromium::LayerChromium):
1483 (WebCore::LayerChromium::setShouldScrollOnMainThread):
1485 (WebCore::LayerChromium::setNonFastScrollableRegion):
1486 (WebCore::LayerChromium::pushPropertiesTo):
1487 * platform/graphics/chromium/LayerChromium.h:
1490 * platform/graphics/chromium/cc/CCLayerImpl.cpp:
1491 (WebCore::CCLayerImpl::CCLayerImpl):
1492 * platform/graphics/chromium/cc/CCLayerImpl.h:
1493 (WebCore::CCLayerImpl::shouldScrollOnMainThread):
1494 (WebCore::CCLayerImpl::setShouldScrollOnMainThread):
1496 (WebCore::CCLayerImpl::nonFastScrollableRegion):
1497 (WebCore::CCLayerImpl::setNonFastScrollableRegion):
1498 * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
1499 (WebCore::CCLayerTreeHostImpl::scrollBegin):
1501 2012-02-26 Kentaro Hara <haraken@chromium.org>
1503 Unreviewed. Rebaselined run-bindings-tests results.
1505 * bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp:
1506 (webkit_dom_test_interface_supplemental_method4):
1508 2012-02-26 Sheriff Bot <webkit.review.bot@gmail.com>
1510 Unreviewed, rolling out r108547.
1511 http://trac.webkit.org/changeset/108547
1512 https://bugs.webkit.org/show_bug.cgi?id=79606
1514 Crashes on ClusterFuzz (Requested by inferno-sec on #webkit).
1516 * rendering/RenderBlockLineLayout.cpp:
1517 (WebCore::RenderBlock::layoutInlineChildren):
1519 2012-02-25 Adam Barth <abarth@webkit.org>
1521 Move websockets to Modules/websockets
1522 https://bugs.webkit.org/show_bug.cgi?id=79598
1524 Reviewed by Eric Seidel.
1526 Nowadays, the only ENABLE(WEB_SOCKETS) ifdef in WebCore proper is in
1527 WebCore::Settings, and that will be removed (soon?) once Apple drops
1528 support for the old WebSockets protocol.
1531 * DerivedSources.make:
1532 * DerivedSources.pri:
1534 * GNUmakefile.list.am:
1535 * Modules/websockets: Copied from Source/WebCore/websockets.
1537 * WebCore.gyp/WebCore.gyp:
1540 * WebCore.vcproj/WebCore.vcproj:
1541 * WebCore.vcproj/WebCoreCommon.vsprops:
1542 * WebCore.vcproj/copyForwardingHeaders.cmd:
1543 * WebCore.xcodeproj/project.pbxproj:
1544 * websockets: Removed.
1545 * websockets/CloseEvent.h: Removed.
1546 * websockets/CloseEvent.idl: Removed.
1547 * websockets/DOMWindowWebSocket.idl: Removed.
1548 * websockets/ThreadableWebSocketChannel.cpp: Removed.
1549 * websockets/ThreadableWebSocketChannel.h: Removed.
1550 * websockets/ThreadableWebSocketChannelClientWrapper.cpp: Removed.
1551 * websockets/ThreadableWebSocketChannelClientWrapper.h: Removed.
1552 * websockets/WebSocket.cpp: Removed.
1553 * websockets/WebSocket.h: Removed.
1554 * websockets/WebSocket.idl: Removed.
1555 * websockets/WebSocketChannel.cpp: Removed.
1556 * websockets/WebSocketChannel.h: Removed.
1557 * websockets/WebSocketChannelClient.h: Removed.
1558 * websockets/WebSocketDeflater.cpp: Removed.
1559 * websockets/WebSocketDeflater.h: Removed.
1560 * websockets/WebSocketExtensionDispatcher.cpp: Removed.
1561 * websockets/WebSocketExtensionDispatcher.h: Removed.
1562 * websockets/WebSocketExtensionProcessor.h: Removed.
1563 * websockets/WebSocketFrame.h: Removed.
1564 * websockets/WebSocketHandshake.cpp: Removed.
1565 * websockets/WebSocketHandshake.h: Removed.
1566 * websockets/WebSocketHandshakeRequest.cpp: Removed.
1567 * websockets/WebSocketHandshakeRequest.h: Removed.
1568 * websockets/WebSocketHandshakeResponse.cpp: Removed.
1569 * websockets/WebSocketHandshakeResponse.h: Removed.
1570 * websockets/WorkerThreadableWebSocketChannel.cpp: Removed.
1571 * websockets/WorkerThreadableWebSocketChannel.h: Removed.
1573 2012-02-25 Benjamin Poulain <benjamin@webkit.org>
1575 Get rid of KURL::deprecatedString()
1576 https://bugs.webkit.org/show_bug.cgi?id=79594
1578 Reviewed by Andreas Kling.
1580 The method KURL::deprecatedString() is unused, remove it from WebCore.
1582 The last reference to the method was removed in r96779.
1584 * platform/KURL.cpp:
1588 * platform/KURLGoogle.cpp:
1590 * platform/KURLWTFURL.cpp:
1593 2012-02-25 Benjamin Poulain <benjamin@webkit.org>
1595 Get rid of copyParsedQueryTo()
1596 https://bugs.webkit.org/show_bug.cgi?id=79590
1598 Reviewed by Andreas Kling.
1600 The function KURL::copyParsedQueryTo() is unused. Remove it from WebCore.
1602 The function was used by HTMLAnchorElement::getParameter() but that feature
1603 was removed in r100164.
1606 * platform/KURL.cpp:
1611 * platform/KURLGoogle.cpp:
1613 * platform/KURLWTFURL.cpp:
1616 2012-02-25 Sheriff Bot <webkit.review.bot@gmail.com>
1618 Unreviewed, rolling out r108924.
1619 http://trac.webkit.org/changeset/108924
1620 https://bugs.webkit.org/show_bug.cgi?id=79597
1622 broke 4 inspector tests (Requested by kling on #webkit).
1624 * dom/StyledElement.cpp:
1625 (WebCore::StyledElement::parseAttribute):
1627 2012-02-25 Adam Barth <abarth@webkit.org>
1629 Fix typo in comment. This #endif is for a different ENABLE macro.
1631 * page/NavigatorRegisterProtocolHandler.cpp:
1633 2012-02-25 Anders Carlsson <andersca@apple.com>
1635 Move an ASSERT to avoid it firing due to a race condition
1636 https://bugs.webkit.org/show_bug.cgi?id=79596
1638 Reviewed by Andreas Kling.
1640 ScrollingThread::isCurrentThread() can return false if called too early.
1641 Move it into ScrollingThread::initializeRunLoop where we know that the thread has
1642 been set up correctly.
1644 * page/scrolling/ScrollingThread.cpp:
1645 (WebCore::ScrollingThread::threadBody):
1646 * page/scrolling/mac/ScrollingThreadMac.mm:
1647 (WebCore::ScrollingThread::initializeRunLoop):
1649 2012-02-25 Andreas Kling <awesomekling@apple.com>
1651 Setting style="" should destroy the element's inline style.
1652 <http://webkit.org/b/79595>
1654 Reviewed by Anders Carlsson.
1656 There's no reason for an element with style="" to have an inline style object.
1657 Remove the inline style in that case, just like we do when removing the style
1658 attribute altogether.
1660 * dom/StyledElement.cpp:
1661 (WebCore::StyledElement::parseAttribute):
1663 2012-02-25 Andreas Kling <awesomekling@apple.com>
1665 Allow matched property cache for elements with additional attribute style.
1666 <http://webkit.org/b/79583>
1668 Reviewed by Antti Koivisto.
1670 There's no reason to disallow the matched style property cache for elements
1671 that return something from additionalAttributeStyle(). The only requirement
1672 for a property set to be cached is that it either doesn't mutate OR that it
1673 invalidates the document's CSSStyleSelector when doing so.
1675 This allows some more match caching for table-related elements, though we
1676 are still held back by explicitly 'inherited' properties in html.css.
1678 * css/CSSStyleSelector.cpp:
1679 (WebCore::CSSStyleSelector::collectMatchingRulesForList):
1681 2012-02-25 Julien Chaffraix <jchaffraix@webkit.org>
1683 Clean-up RenderTableSection::calcRowLogicalHeight
1684 https://bugs.webkit.org/show_bug.cgi?id=77705
1686 Reviewed by Nikolas Zimmermann.
1688 Refactoring / simplication of the code.
1690 This change removes some variables that were unneeded and were
1691 hiding what the code was really doing. Also some of the code was
1692 split and moved down to RenderTableCell.
1694 * rendering/RenderTableCell.cpp:
1695 (WebCore::RenderTableCell::logicalHeightForRowSizing):
1696 * rendering/RenderTableCell.h:
1698 Added the previous helper function to calculate the cell's
1699 adjusted logical height.
1701 * rendering/RenderTableSection.cpp:
1702 (WebCore::RenderTableSection::calcRowLogicalHeight):
1703 Removed some variables, simplified the rowspan logic to be clearer
1704 (and added a comment about how we handle rowspans).
1706 2012-02-25 Benjamin Poulain <benjamin@webkit.org>
1708 Add an empty skeleton of KURL for WTFURL
1709 https://bugs.webkit.org/show_bug.cgi?id=78990
1711 Reviewed by Adam Barth.
1713 Add an empty skeleton of KURL based on WTFURL.
1715 With WTFURL, the data of KURL is in an implicitely shared object
1716 named KURLWTFURLImpl.
1718 In KURLWTFURLImpl, KURL created with invalid URL would be stored
1719 as a String. A valid URL would be stored as a ParsedURL.
1721 * ForwardingHeaders/wtf/url/ParsedURL.h: Added.
1723 * WebCore.xcodeproj/project.pbxproj:
1724 * platform/KURL.cpp:
1728 (WebCore::KURL::KURL):
1729 (WebCore::KURL::isHashTableDeletedValue):
1731 * platform/KURLWTFURL.cpp: Added.
1733 (WebCore::KURL::KURL):
1734 (WebCore::KURL::copy):
1735 (WebCore::KURL::isNull):
1736 (WebCore::KURL::isEmpty):
1737 (WebCore::KURL::isValid):
1738 (WebCore::KURL::hasPath):
1739 (WebCore::KURL::string):
1740 (WebCore::KURL::protocol):
1741 (WebCore::KURL::host):
1742 (WebCore::KURL::port):
1743 (WebCore::KURL::hasPort):
1744 (WebCore::KURL::user):
1745 (WebCore::KURL::pass):
1746 (WebCore::KURL::path):
1747 (WebCore::KURL::lastPathComponent):
1748 (WebCore::KURL::query):
1749 (WebCore::KURL::fragmentIdentifier):
1750 (WebCore::KURL::hasFragmentIdentifier):
1751 (WebCore::KURL::copyParsedQueryTo):
1752 (WebCore::KURL::baseAsString):
1753 (WebCore::KURL::deprecatedString):
1754 (WebCore::KURL::fileSystemPath):
1755 (WebCore::KURL::protocolIs):
1756 (WebCore::KURL::protocolIsInHTTPFamily):
1757 (WebCore::KURL::setProtocol):
1758 (WebCore::KURL::setHost):
1759 (WebCore::KURL::removePort):
1760 (WebCore::KURL::setPort):
1761 (WebCore::KURL::setHostAndPort):
1762 (WebCore::KURL::setUser):
1763 (WebCore::KURL::setPass):
1764 (WebCore::KURL::setPath):
1765 (WebCore::KURL::setQuery):
1766 (WebCore::KURL::setFragmentIdentifier):
1767 (WebCore::KURL::removeFragmentIdentifier):
1768 (WebCore::KURL::hostStart):
1769 (WebCore::KURL::hostEnd):
1770 (WebCore::KURL::pathStart):
1771 (WebCore::KURL::pathEnd):
1772 (WebCore::KURL::pathAfterLastSlash):
1773 (WebCore::KURL::invalidate):
1774 (WebCore::KURL::isHierarchical):
1775 (WebCore::protocolIs):
1776 (WebCore::equalIgnoringFragmentIdentifier):
1777 (WebCore::protocolHostAndPortAreEqual):
1778 (WebCore::encodeWithURLEscapeSequences):
1779 (WebCore::decodeURLEscapeSequences):
1780 * platform/KURLWTFURLImpl.h: Copied from Source/WebCore/platform/mac/KURLMac.mm.
1783 * platform/cf/KURLCFNet.cpp:
1785 (WebCore::KURL::KURL):
1786 (WebCore::KURL::createCFURL):
1787 * platform/mac/KURLMac.mm:
1789 (WebCore::KURL::KURL):
1790 (WebCore::KURL::operator NSURL *):
1792 2012-02-25 Anders Carlsson <andersca@apple.com>
1794 Make the libc++ workaround more targeted
1795 https://bugs.webkit.org/show_bug.cgi?id=79578
1796 <rdar://problem/10933150>
1798 Reviewed by Sam Weinig.
1800 Change the std::move implementation to take a WebCore::TimerHeapReference directly so
1801 WebCore still builds with a version of libc++ that has the right std::move function template.
1807 2012-02-25 Andreas Kling <awesomekling@apple.com>
1809 Remove HTMLEmbedElement::insertedIntoDocument().
1810 <http://webkit.org/b/79576>
1812 Reviewed by Anders Carlsson.
1814 * html/HTMLEmbedElement.cpp:
1815 * html/HTMLEmbedElement.h:
1817 2012-02-25 Adrienne Walker <enne@google.com>
1819 Fix unused variable warnings in HarfBuzzShaperBase
1820 https://bugs.webkit.org/show_bug.cgi?id=79575
1822 Reviewed by Andreas Kling.
1824 In builds where asserts are not enabled, the error variable is unused.
1826 * platform/graphics/harfbuzz/HarfBuzzShaperBase.cpp:
1827 (WebCore::normalizeSpacesAndMirrorChars):
1829 2012-02-25 Andreas Kling <awesomekling@apple.com>
1831 Remove HTMLTableElement::attach().
1832 <http://webkit.org/b/79574>
1834 Reviewed by Anders Carlsson.
1836 Remove this attach() override since it was only used to assert that
1837 we're not already attached, and this is already done by Node::attach().
1839 * html/HTMLTableElement.cpp:
1840 * html/HTMLTableElement.h:
1842 2012-02-25 Andreas Kling <awesomekling@apple.com>
1844 HTMLTableElement: Avoid CSSParser in createSharedCellStyle().
1845 <http://webkit.org/b/79573>
1847 Reviewed by Anders Carlsson.
1849 * html/HTMLTableElement.cpp:
1850 (WebCore::HTMLTableElement::createSharedCellStyle):
1852 2012-02-25 Nikolas Zimmermann <nzimmermann@rim.com>
1854 Unreviewed, rolling out r108557.
1855 http://trac.webkit.org/changeset/108557
1856 https://bugs.webkit.org/show_bug.cgi?id=77705
1858 Broke svg/zoom/page/zoom-replated-intrinsic-ratio-001.htm.
1860 * rendering/RenderTableCell.cpp:
1861 * rendering/RenderTableCell.h:
1863 * rendering/RenderTableSection.cpp:
1864 (WebCore::RenderTableSection::calcRowLogicalHeight):
1866 2012-02-25 Andreas Kling <awesomekling@apple.com>
1868 HTMLParamElement: Clean up name/value attribute handling.
1869 <http://webkit.org/b/79559>
1871 Reviewed by Anders Carlsson.
1873 Out-of-line name() and value(), and move the logic from parseAttribute()
1874 into them instead. This makes the class a bit simpler and shrinks it by
1875 two AtomicStrings. Also reduced isURLAttribute() to a two-liner.
1877 * html/HTMLParamElement.cpp:
1878 (WebCore::HTMLParamElement::name):
1879 (WebCore::HTMLParamElement::value):
1880 (WebCore::HTMLParamElement::isURLAttribute):
1881 * html/HTMLParamElement.h:
1883 2012-02-24 Tien-Ren Chen <trchen@chromium.org>
1885 [chromium] Replace RefPtr with OwnPtr for CCLayerImpl tree structure
1886 https://bugs.webkit.org/show_bug.cgi?id=78404
1888 Reviewed by James Robinson.
1890 No new tests. Updated existing test to reflect changes.
1892 * platform/graphics/chromium/CanvasLayerChromium.cpp:
1893 (WebCore::CanvasLayerChromium::createCCLayerImpl):
1894 * platform/graphics/chromium/CanvasLayerChromium.h:
1895 (CanvasLayerChromium):
1896 * platform/graphics/chromium/LayerChromium.cpp:
1897 (WebCore::LayerChromium::createCCLayerImpl):
1898 * platform/graphics/chromium/LayerChromium.h:
1900 * platform/graphics/chromium/PluginLayerChromium.cpp:
1901 (WebCore::PluginLayerChromium::createCCLayerImpl):
1902 * platform/graphics/chromium/PluginLayerChromium.h:
1903 (PluginLayerChromium):
1904 * platform/graphics/chromium/SolidColorLayerChromium.cpp:
1905 (WebCore::SolidColorLayerChromium::createCCLayerImpl):
1906 * platform/graphics/chromium/SolidColorLayerChromium.h:
1907 (SolidColorLayerChromium):
1908 * platform/graphics/chromium/TiledLayerChromium.cpp:
1909 (WebCore::TiledLayerChromium::createCCLayerImpl):
1910 * platform/graphics/chromium/TiledLayerChromium.h:
1911 (TiledLayerChromium):
1912 * platform/graphics/chromium/TreeSynchronizer.cpp:
1913 (WebCore::TreeSynchronizer::synchronizeTrees):
1914 (WebCore::TreeSynchronizer::collectExistingCCLayerImplRecursive):
1916 (WebCore::TreeSynchronizer::reuseOrCreateCCLayerImpl):
1917 (WebCore::TreeSynchronizer::synchronizeTreeRecursive):
1918 * platform/graphics/chromium/TreeSynchronizer.h:
1920 * platform/graphics/chromium/VideoLayerChromium.cpp:
1921 (WebCore::VideoLayerChromium::createCCLayerImpl):
1922 * platform/graphics/chromium/VideoLayerChromium.h:
1923 (VideoLayerChromium):
1924 * platform/graphics/chromium/cc/CCCanvasLayerImpl.h:
1925 (WebCore::CCCanvasLayerImpl::create):
1926 * platform/graphics/chromium/cc/CCDamageTracker.cpp:
1927 (WebCore::CCDamageTracker::updateDamageTrackingState):
1928 (WebCore::CCDamageTracker::trackDamageFromActiveLayers):
1929 * platform/graphics/chromium/cc/CCDamageTracker.h:
1931 * platform/graphics/chromium/cc/CCLayerImpl.cpp:
1932 (WebCore::CCLayerImpl::CCLayerImpl):
1933 (WebCore::CCLayerImpl::addChild):
1934 (WebCore::sortLayers):
1935 (WebCore::CCLayerImpl::setMaskLayer):
1936 (WebCore::CCLayerImpl::setReplicaLayer):
1937 * platform/graphics/chromium/cc/CCLayerImpl.h:
1938 (WebCore::CCLayerImpl::create):
1939 (WebCore::CCLayerImpl::children):
1942 * platform/graphics/chromium/cc/CCLayerIterator.cpp:
1944 (WebCore::CCLayerIteratorActions::BackToFront::begin):
1945 (WebCore::CCLayerIteratorActions::BackToFront::end):
1946 (WebCore::CCLayerIteratorActions::BackToFront::next):
1947 (WebCore::CCLayerIteratorActions::FrontToBack::begin):
1948 (WebCore::CCLayerIteratorActions::FrontToBack::end):
1949 (WebCore::CCLayerIteratorActions::FrontToBack::next):
1950 (WebCore::CCLayerIteratorActions::FrontToBack::goToHighestInSubtree):
1951 * platform/graphics/chromium/cc/CCLayerIterator.h:
1954 (WebCore::CCLayerIterator::begin):
1955 (WebCore::CCLayerIterator::end):
1956 (WebCore::CCLayerIterator::targetRenderSurfaceLayer):
1957 (WebCore::CCLayerIterator::CCLayerIterator):
1958 (WebCore::CCLayerIterator::getRawPtr):
1959 (WebCore::CCLayerIterator::currentLayer):
1960 (WebCore::CCLayerIterator::targetRenderSurfaceChildren):
1963 * platform/graphics/chromium/cc/CCLayerSorter.cpp:
1964 (WebCore::CCLayerSorter::createGraphNodes):
1965 * platform/graphics/chromium/cc/CCLayerSorter.h:
1967 * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
1968 (WebCore::CCLayerTreeHost::finishCommitOnImplThread):
1969 (WebCore::CCLayerTreeHost::didBecomeInvisibleOnImplThread):
1970 (WebCore::CCLayerTreeHost::reserveTextures):
1971 (WebCore::CCLayerTreeHost::paintLayerContents):
1972 (WebCore::CCLayerTreeHost::updateCompositorResources):
1973 * platform/graphics/chromium/cc/CCLayerTreeHostCommon.cpp:
1975 (WebCore::calculateDrawTransformsAndVisibilityInternal):
1976 (WebCore::walkLayersAndCalculateVisibleLayerRects):
1977 (WebCore::CCLayerTreeHostCommon::calculateDrawTransformsAndVisibility):
1978 * platform/graphics/chromium/cc/CCLayerTreeHostCommon.h:
1979 (CCLayerTreeHostCommon):
1980 * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
1981 (WebCore::CCLayerTreeHostImpl::CCLayerTreeHostImpl):
1982 (WebCore::CCLayerTreeHostImpl::trackDamageForAllSurfaces):
1983 (WebCore::CCLayerTreeHostImpl::calculateRenderPasses):
1984 (WebCore::CCLayerTreeHostImpl::drawLayers):
1985 (WebCore::CCLayerTreeHostImpl::setRootLayer):
1986 * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
1987 (CCLayerTreeHostImpl):
1988 (WebCore::CCLayerTreeHostImpl::releaseRootLayer):
1989 (WebCore::CCLayerTreeHostImpl::scrollLayer):
1990 * platform/graphics/chromium/cc/CCPluginLayerImpl.h:
1991 (WebCore::CCPluginLayerImpl::create):
1992 * platform/graphics/chromium/cc/CCRenderSurface.h:
1993 (WebCore::CCRenderSurface::layerList):
1995 * platform/graphics/chromium/cc/CCSolidColorLayerImpl.h:
1996 (WebCore::CCSolidColorLayerImpl::create):
1997 * platform/graphics/chromium/cc/CCTiledLayerImpl.h:
1998 (WebCore::CCTiledLayerImpl::create):
1999 * platform/graphics/chromium/cc/CCVideoLayerImpl.h:
2000 (WebCore::CCVideoLayerImpl::create):
2002 2012-02-24 Andreas Kling <awesomekling@apple.com>
2004 Don't pass constant strings to CSSParser for presentation attributes.
2005 <http://webkit.org/b/79530>
2007 Reviewed by Anders Carlsson.
2009 "both" -> CSSValueBoth.
2010 "center" -> CSSValueCenter.
2012 * html/HTMLBRElement.cpp:
2013 (WebCore::HTMLBRElement::collectStyleForAttribute):
2014 * html/HTMLElement.cpp:
2015 (WebCore::HTMLElement::collectStyleForAttribute):
2017 2012-02-24 Yael Aharon <yael.aharon@nokia.com>
2019 [Texmap] Add const-ness to TextureMapperShaderManager
2020 https://bugs.webkit.org/show_bug.cgi?id=79545
2022 Reviewed by Noam Rosenthal.
2024 Add const to new methods.
2027 * platform/graphics/texmap/TextureMapperShaderManager.cpp:
2028 (WebCore::TextureMapperShaderProgramSimple::vertexShaderSource):
2029 (WebCore::TextureMapperShaderProgramSimple::fragmentShaderSource):
2030 (WebCore::TextureMapperShaderProgramOpacityAndMask::vertexShaderSource):
2031 (WebCore::TextureMapperShaderProgramOpacityAndMask::fragmentShaderSource):
2032 * platform/graphics/texmap/TextureMapperShaderManager.h:
2033 (WebCore::TextureMapperShaderProgram::matrixVariable):
2034 (WebCore::TextureMapperShaderProgram::sourceMatrixVariable):
2035 (WebCore::TextureMapperShaderProgram::sourceTextureVariable):
2036 (WebCore::TextureMapperShaderProgram::opacityVariable):
2037 (TextureMapperShaderProgram):
2038 (TextureMapperShaderProgramSimple):
2039 (WebCore::TextureMapperShaderProgramOpacityAndMask::maskMatrixVariable):
2040 (WebCore::TextureMapperShaderProgramOpacityAndMask::maskTextureVariable):
2041 (TextureMapperShaderProgramOpacityAndMask):
2043 2012-02-24 Tom Sepez <tsepez@chromium.org>
2045 XSS Auditor targeting legitimate frames as false positives.
2046 https://bugs.webkit.org/show_bug.cgi?id=79397
2048 Reviewed by Adam Barth.
2050 Test: http/tests/security/xssAuditor/script-tag-safe4.html
2052 * html/parser/XSSAuditor.cpp:
2053 (WebCore::XSSAuditor::filterCharacterToken):
2054 (WebCore::XSSAuditor::filterScriptToken):
2055 (WebCore::XSSAuditor::filterObjectToken):
2056 (WebCore::XSSAuditor::filterEmbedToken):
2057 (WebCore::XSSAuditor::filterAppletToken):
2058 (WebCore::XSSAuditor::filterIframeToken):
2059 (WebCore::XSSAuditor::decodedSnippetForToken):
2061 (WebCore::XSSAuditor::decodedSnippetForName):
2062 (WebCore::XSSAuditor::decodedSnippetForAttribute):
2063 (WebCore::XSSAuditor::decodedSnippetForJavascript):
2064 (WebCore::XSSAuditor::isContainedInRequest):
2065 (WebCore::XSSAuditor::isSameOriginResource):
2066 * html/parser/XSSAuditor.h:
2068 2012-02-24 Ian Vollick <vollick@chromium.org>
2070 [chromium] Plumb animation started notifications from CCLayerTreeHost to GraphicsLayerChromium
2071 https://bugs.webkit.org/show_bug.cgi?id=77646
2073 Reviewed by James Robinson.
2076 * platform/graphics/chromium/GraphicsLayerChromium.cpp:
2078 (WebCore::GraphicsLayerChromium::~GraphicsLayerChromium):
2079 (WebCore::GraphicsLayerChromium::addAnimation):
2080 (WebCore::GraphicsLayerChromium::pauseAnimation):
2081 (WebCore::GraphicsLayerChromium::removeAnimation):
2082 (WebCore::GraphicsLayerChromium::suspendAnimations):
2083 (WebCore::GraphicsLayerChromium::resumeAnimations):
2084 (WebCore::GraphicsLayerChromium::updateLayerPreserves3D):
2085 (WebCore::GraphicsLayerChromium::mapAnimationNameToId):
2087 (WebCore::GraphicsLayerChromium::notifyAnimationStarted):
2088 (WebCore::GraphicsLayerChromium::notifyAnimationFinished):
2089 * platform/graphics/chromium/GraphicsLayerChromium.h:
2090 (GraphicsLayerChromium):
2091 * platform/graphics/chromium/LayerChromium.cpp:
2092 (WebCore::LayerChromium::LayerChromium):
2093 (WebCore::LayerChromium::setAnimationEvent):
2095 * platform/graphics/chromium/LayerChromium.h:
2098 (WebCore::LayerChromium::setLayerAnimationDelegate):
2099 * platform/graphics/chromium/cc/CCAnimationEvents.cpp: Added.
2101 (WebCore::CCAnimationEvent::CCAnimationEvent):
2102 (WebCore::CCAnimationEvent::~CCAnimationEvent):
2103 (WebCore::CCAnimationEvent::toAnimationStartedEvent):
2104 (WebCore::CCAnimationEvent::toAnimationFinishedEvent):
2105 (WebCore::CCAnimationStartedEvent::create):
2106 (WebCore::CCAnimationStartedEvent::CCAnimationStartedEvent):
2107 (WebCore::CCAnimationStartedEvent::~CCAnimationStartedEvent):
2108 (WebCore::CCAnimationStartedEvent::type):
2109 (WebCore::CCAnimationFinishedEvent::create):
2110 (WebCore::CCAnimationFinishedEvent::CCAnimationFinishedEvent):
2111 (WebCore::CCAnimationFinishedEvent::~CCAnimationFinishedEvent):
2112 (WebCore::CCAnimationFinishedEvent::type):
2113 * platform/graphics/chromium/cc/CCAnimationEvents.h:
2116 (WebCore::CCAnimationEvent::layerId):
2117 (CCAnimationStartedEvent):
2118 (WebCore::CCAnimationStartedEvent::startTime):
2119 (CCAnimationFinishedEvent):
2120 (WebCore::CCAnimationFinishedEvent::animationId):
2121 * platform/graphics/chromium/cc/CCLayerAnimationControllerImpl.cpp:
2122 (WebCore::CCLayerAnimationControllerImpl::animate):
2123 (WebCore::CCLayerAnimationControllerImpl::startAnimationsWaitingForNextTick):
2124 (WebCore::CCLayerAnimationControllerImpl::startAnimationsWaitingForStartTime):
2125 (WebCore::CCLayerAnimationControllerImpl::startAnimationsWaitingForTargetAvailability):
2126 (WebCore::CCLayerAnimationControllerImpl::purgeFinishedAnimations):
2127 (WebCore::CCLayerAnimationControllerImpl::tickAnimations):
2128 * platform/graphics/chromium/cc/CCLayerAnimationControllerImpl.h:
2129 (CCLayerAnimationControllerImpl):
2130 * platform/graphics/chromium/cc/CCLayerAnimationDelegate.h: Copied from Source/WebCore/platform/graphics/chromium/cc/CCAnimationEvents.h.
2132 (CCLayerAnimationDelegate):
2133 * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
2134 (WebCore::CCLayerTreeHost::setAnimationEvents):
2135 (WebCore::CCLayerTreeHost::setAnimationEventsRecursive):
2137 * platform/graphics/chromium/cc/CCLayerTreeHost.h:
2139 2012-02-24 Abhishek Arya <inferno@chromium.org>
2141 Regression(r107477): Crash in StaticNodeList::itemWithName.
2142 https://bugs.webkit.org/show_bug.cgi?id=79532
2144 Reviewed by Andreas Kling.
2146 Make sure that node is an element node before checking its id attribute.
2148 Test: fast/mutation/mutation-callback-non-element-crash.html
2150 * dom/StaticNodeList.cpp:
2151 (WebCore::StaticNodeList::itemWithName):
2153 2012-02-24 Tony Chang <tony@chromium.org>
2155 More refactoring in RenderFlexibleBox
2156 https://bugs.webkit.org/show_bug.cgi?id=79533
2158 Reviewed by Ojan Vafai.
2160 No new tests, just refactoring.
2162 * rendering/RenderFlexibleBox.cpp:
2163 (WebCore::RenderFlexibleBox::layoutFlexItems): Move the flipping of RTL+column positions to its own method.
2164 This might be a tiny bit slower, but it's clearer since it's not related to alignment.
2165 (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): Move the logical height calculation out of the loop. We only need the final height.
2166 (WebCore::RenderFlexibleBox::alignChildren):
2167 (WebCore::RenderFlexibleBox::flipForRightToLeftColumn):
2168 * rendering/RenderFlexibleBox.h:
2169 (RenderFlexibleBox):
2171 2012-02-24 Abhishek Arya <inferno@chromium.org>
2173 Positioned objects not cleared when moving children
2174 to clone block in multi-column layout.
2175 https://bugs.webkit.org/show_bug.cgi?id=78416
2177 Reviewed by Eric Seidel.
2179 Test: fast/multicol/span/positioned-child-not-removed-crash.html
2181 * rendering/RenderBlock.cpp:
2182 (WebCore::RenderBlock::splitBlocks):
2184 2012-02-24 Michael Saboff <msaboff@apple.com>
2186 Unreviewed, Windows build fix. Changed "-1" to newly
2187 created constant JSC::Yarr::offsetNoMatch added in r108858.
2189 * platform/text/RegularExpression.cpp:
2190 (WebCore::RegularExpression::match):
2192 2012-02-24 Eric Carlson <eric.carlson@apple.com>
2194 Update TextTrackCue API
2195 https://bugs.webkit.org/show_bug.cgi?id=79368
2197 Change TextTrackCue.alignment to .align, TextTrackCue.linePosition and .textPosition to .line
2198 and .position, and TextTrackCue.direction to .vertical. Change direction values "horizontal"
2199 to "","vertical" to "rl", and "vertical-lr" to "lr".
2201 Reviewed by Eric Seidel.
2203 No new tests, updated existing tests for API changes.
2205 * html/track/TextTrackCue.cpp:
2206 (WebCore::horizontalKeyword):
2207 (WebCore::verticalGrowingLeftKeyword):
2209 (WebCore::verticalGrowingRightKeyword):
2210 (WebCore::verticalKeywordOLD):
2211 (WebCore::verticallrKeywordOLD):
2212 (WebCore::TextTrackCue::TextTrackCue):
2213 (WebCore::TextTrackCue::vertical):
2214 (WebCore::TextTrackCue::setVertical):
2215 (WebCore::TextTrackCue::setLine):
2216 (WebCore::TextTrackCue::setPosition):
2217 (WebCore::TextTrackCue::align):
2218 (WebCore::TextTrackCue::setAlign):
2219 (WebCore::TextTrackCue::parseSettings):
2220 * html/track/TextTrackCue.h:
2222 (WebCore::TextTrackCue::line):
2223 (WebCore::TextTrackCue::position):
2224 * html/track/TextTrackCue.idl:
2226 2012-02-24 Adrienne Walker <enne@google.com>
2228 Fix uninitialized variables in HarfBuzzShaperBase
2229 https://bugs.webkit.org/show_bug.cgi?id=79546
2231 Reviewed by Dirk Pranke.
2233 These were introduced in r108733.
2235 * platform/graphics/harfbuzz/HarfBuzzShaperBase.cpp:
2236 (WebCore::HarfBuzzShaperBase::HarfBuzzShaperBase):
2238 2012-02-24 Noel Gordon <noel.gordon@gmail.com>
2240 [chromium] JPEG RGB image with Adode Marker fails to turbo swizzle decode
2241 https://bugs.webkit.org/show_bug.cgi?id=79457
2243 Reviewed by Adam Barth.
2245 If a JPEG has no JFIF marker, the Adode Marker must be used to determine the image
2246 color space for decoding via that markers transform value. Transform 0 images with
2247 3 color components (RGB) fail to decode with libjpeg-turbo when a swizzle decoding
2248 is active. Detect this case and decode using JCS_RGB output color space instead.
2250 Test: fast/images/rgb-jpeg-with-abode-marker-only.html
2252 * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
2253 (WebCore::JPEGImageReader::decode):
2255 2012-02-24 Joshua Bell <jsbell@chromium.org>
2257 [V8] IndexedDB: IDBTransaction objects leak in Workers
2258 https://bugs.webkit.org/show_bug.cgi?id=79308
2260 Use a V8RecursionScope whenever Workers call into script, so that
2261 post-script side-effects can be executed.
2263 Reviewed by Tony Chang.
2265 Test: storage/indexeddb/transaction-abort-workers.html
2267 * bindings/v8/ScheduledAction.cpp:
2268 (WebCore::ScheduledAction::execute):
2269 * bindings/v8/V8WorkerContextErrorHandler.cpp:
2270 (WebCore::V8WorkerContextErrorHandler::callListenerFunction):
2271 * bindings/v8/V8WorkerContextEventListener.cpp:
2272 (WebCore::V8WorkerContextEventListener::callListenerFunction):
2273 * bindings/v8/WorkerContextExecutionProxy.cpp: Replace custom recursion tracking.
2274 (WebCore::WorkerContextExecutionProxy::WorkerContextExecutionProxy):
2275 (WebCore::WorkerContextExecutionProxy::runScript):
2276 * bindings/v8/WorkerContextExecutionProxy.h:
2277 (WorkerContextExecutionProxy):
2279 2012-02-24 Gregg Tavares <gman@google.com>
2281 Limit WebGL Errors in Console to 10 per context
2282 https://bugs.webkit.org/show_bug.cgi?id=79387
2284 Reviewed by Kenneth Russell.
2286 Some apps generated enough errors to overload
2287 the Dev Tools so limit the number of errors.
2288 For a correct app there should never be any
2289 errors so seeing the first few should be enough
2292 No new tests as no new functionality
2294 * html/canvas/WebGLRenderingContext.cpp:
2296 (WebCore::WebGLRenderingContextErrorMessageCallback::onErrorMessage):
2297 (WebCore::WebGLRenderingContext::WebGLRenderingContext):
2298 (WebCore::WebGLRenderingContext::initializeNewContext):
2299 (WebCore::WebGLRenderingContext::printGLErrorToConsole):
2300 (WebCore::WebGLRenderingContext::synthesizeGLError):
2301 * html/canvas/WebGLRenderingContext.h:
2302 (WebGLRenderingContext):
2304 2012-02-24 Michael Saboff <msaboff@apple.com>
2306 ASSERT(position < 0) in JSC::Yarr::Interpreter::InputStream::readChecked
2307 https://bugs.webkit.org/show_bug.cgi?id=73728
2309 Reviewed by Gavin Barraclough.
2311 No new tests, refactored usage of JSC::Yarr interpreter.
2312 Should be covered by existing tests.
2314 Changed WebCore callers of JSC::Yarr:Interpreter::interpret() to match the
2315 new signature with unsigned offsets.
2317 * inspector/ContentSearchUtils.cpp:
2318 (WebCore::ContentSearchUtils::findMagicComment):
2319 * platform/text/RegularExpression.cpp:
2320 (WebCore::RegularExpression::match):
2322 2012-02-24 Hans Muller <hmuller@adobe.com>
2324 onclick is not reliable for transformed SVG elements
2325 https://bugs.webkit.org/show_bug.cgi?id=34714
2327 Reviewed by Dirk Schulze.
2329 Use FloatPoints in RenderSVGRoot::nodeAtPoint() when converting the incoming
2330 point to local coordinates.
2332 Test: svg/hittest/svg-small-viewbox.xhtml
2334 * rendering/svg/RenderSVGRoot.cpp:
2335 (WebCore::RenderSVGRoot::nodeAtPoint):
2337 2012-02-24 Julien Chaffraix <jchaffraix@webkit.org>
2339 Implement limited parsing of -webkit-grid-column and -webkit-grid-row
2340 https://bugs.webkit.org/show_bug.cgi?id=79151
2342 Reviewed by Ojan Vafai.
2344 Test: fast/css-grid-layout/grid-item-column-row-get-set.html
2346 This change implements a subset of the grammar:
2348 -webkit-grid-{row|column} := <integer> | 'auto'
2351 * GNUmakefile.list.am:
2354 * WebCore.vcproj/WebCore.vcproj:
2355 * WebCore.xcodeproj/project.pbxproj:
2356 Added the new files to our build systems.
2358 * css/CSSComputedStyleDeclaration.cpp:
2359 (WebCore::valueForGridPosition): Check that we have the right translated grammar
2360 (this function will be more useful once we implement more of the grammar).
2361 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
2362 * css/CSSStyleSelector.cpp:
2363 (WebCore::CSSStyleSelector::applyProperty):
2364 Added handling for the new properties.
2366 * css/CSSParser.cpp:
2367 (WebCore::CSSParser::parseValue):
2368 Allow only 'auto' or <integer>.
2370 * css/CSSProperty.cpp:
2371 (WebCore::CSSProperty::isInheritedProperty):
2372 grid-colum and grid-row are not inherited.
2374 * css/CSSPropertyNames.in:
2375 Added the 2 new properties.
2377 * rendering/style/RenderStyle.cpp:
2378 (WebCore::RenderStyle::RenderStyle):
2379 (WebCore::RenderStyle::diff):
2380 * rendering/style/RenderStyle.h:
2381 * rendering/style/StyleGridItemData.cpp: Added.
2382 (WebCore::StyleGridItemData::StyleGridItemData):
2383 * rendering/style/StyleGridItemData.h: Added.
2384 (StyleGridItemData):
2385 (WebCore::StyleGridItemData::create):
2386 (WebCore::StyleGridItemData::copy):
2387 (WebCore::StyleGridItemData::operator==):
2388 (WebCore::StyleGridItemData::operator!=):
2389 Implemented the minimum working class.
2391 * rendering/style/StyleRareNonInheritedData.cpp:
2392 (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
2393 (WebCore::StyleRareNonInheritedData::operator==):
2394 * rendering/style/StyleRareNonInheritedData.h:
2395 (StyleRareNonInheritedData):
2396 Added StyleGridItemData to the class StyleRareNonInheritedData.
2398 2012-02-24 Joshua Bell <jsbell@chromium.org>
2400 IndexedDB: IDBObjectStore.count() and IDBIndex.count() should accept key argument
2401 https://bugs.webkit.org/show_bug.cgi?id=79422
2403 Reviewed by Tony Chang.
2405 Tests: storage/indexeddb/index-count.html
2406 storage/indexeddb/objectstore-count.html
2408 * storage/IDBIndex.cpp:
2409 (WebCore::IDBIndex::count):
2411 * storage/IDBIndex.h:
2412 (WebCore::IDBIndex::count):
2414 * storage/IDBIndex.idl:
2415 * storage/IDBObjectStore.cpp:
2416 (WebCore::IDBObjectStore::deleteFunction):
2417 (WebCore::IDBObjectStore::count):
2419 * storage/IDBObjectStore.h:
2420 (WebCore::IDBObjectStore::count):
2422 * storage/IDBObjectStore.idl:
2424 2012-02-24 Adam Barth <abarth@webkit.org>
2426 Move mediastream into Modules/mediastream
2427 https://bugs.webkit.org/show_bug.cgi?id=79517
2429 Reviewed by Eric Seidel.
2431 This patch moves the mediastream directory into Modules. mediastream
2432 is a self-contained feature and is a good candidate for being a module.
2435 * GNUmakefile.list.am:
2436 * Modules/mediastream: Copied from Source/WebCore/mediastream.
2437 * WebCore.gyp/WebCore.gyp:
2439 * mediastream: Removed.
2440 * mediastream/DOMWindowMediaStream.idl: Removed.
2441 * mediastream/LocalMediaStream.cpp: Removed.
2442 * mediastream/LocalMediaStream.h: Removed.
2443 * mediastream/LocalMediaStream.idl: Removed.
2444 * mediastream/MediaStream.cpp: Removed.
2445 * mediastream/MediaStream.h: Removed.
2446 * mediastream/MediaStream.idl: Removed.
2447 * mediastream/MediaStreamEvent.cpp: Removed.
2448 * mediastream/MediaStreamEvent.h: Removed.
2449 * mediastream/MediaStreamEvent.idl: Removed.
2450 * mediastream/MediaStreamList.cpp: Removed.
2451 * mediastream/MediaStreamList.h: Removed.
2452 * mediastream/MediaStreamList.idl: Removed.
2453 * mediastream/MediaStreamRegistry.cpp: Removed.
2454 * mediastream/MediaStreamRegistry.h: Removed.
2455 * mediastream/MediaStreamTrack.cpp: Removed.
2456 * mediastream/MediaStreamTrack.h: Removed.
2457 * mediastream/MediaStreamTrack.idl: Removed.
2458 * mediastream/MediaStreamTrackList.cpp: Removed.
2459 * mediastream/MediaStreamTrackList.h: Removed.
2460 * mediastream/MediaStreamTrackList.idl: Removed.
2461 * mediastream/NavigatorMediaStream.cpp: Removed.
2462 * mediastream/NavigatorMediaStream.h: Removed.
2463 * mediastream/NavigatorMediaStream.idl: Removed.
2464 * mediastream/NavigatorUserMediaError.h: Removed.
2465 * mediastream/NavigatorUserMediaError.idl: Removed.
2466 * mediastream/NavigatorUserMediaErrorCallback.h: Removed.
2467 * mediastream/NavigatorUserMediaErrorCallback.idl: Removed.
2468 * mediastream/NavigatorUserMediaSuccessCallback.h: Removed.
2469 * mediastream/NavigatorUserMediaSuccessCallback.idl: Removed.
2470 * mediastream/PeerConnection.cpp: Removed.
2471 * mediastream/PeerConnection.h: Removed.
2472 * mediastream/PeerConnection.idl: Removed.
2473 * mediastream/SignalingCallback.h: Removed.
2474 * mediastream/SignalingCallback.idl: Removed.
2475 * mediastream/UserMediaClient.h: Removed.
2476 * mediastream/UserMediaController.cpp: Removed.
2477 * mediastream/UserMediaController.h: Removed.
2478 * mediastream/UserMediaRequest.cpp: Removed.
2479 * mediastream/UserMediaRequest.h: Removed.
2481 2012-02-24 Abhishek Arya <inferno@chromium.org>
2483 Overhanging floats not removed from new flex box.
2484 https://bugs.webkit.org/show_bug.cgi?id=79522
2486 Reviewed by Ojan Vafai.
2490 Test: fast/flexbox/overhanging-floats-not-removed-crash.html
2492 * rendering/RenderBox.cpp:
2493 (WebCore::RenderBox::removeFloatingOrPositionedChildFromBlockLists):
2495 2012-02-24 Brent Fulgham <bfulgham@webkit.org>
2497 [WinCairo] Compute more acurate font heights.
2498 https://bugs.webkit.org/show_bug.cgi?id=79524
2500 Reviewed by Adam Roben.
2502 Adjust font handling as suggested by Lynn Neir to use the proper
2503 xHeight value for the font, rather than the fall-back guess
2504 used in the current code.
2506 css1/text_properties/line_height.html
2508 * platform/graphics/win/SimpleFontDataCairoWin.cpp:
2509 (WebCore::SimpleFontData::platformInit): Properly initialize a
2511 (WebCore::SimpleFontData::platformWidthForGlyph): Use the Cairo
2512 cairo_scaled_font_text_extents call, rather than attempting
2513 to compute the value from ::GetGlyphOutline.
2515 2012-02-24 Tim Horton <timothy_horton@apple.com>
2517 Infinite repaint loop with SVGImageCache and deferred repaint timers
2518 https://bugs.webkit.org/show_bug.cgi?id=78315
2519 <rdar://problem/10651634>
2521 Reviewed by Dean Jackson.
2523 Only defer image redraw on a timer if we're in layout. This breaks
2524 the repaint loop while still preventing us from drawing inside layout.
2526 No new tests, as the problem only occurs in a nonstandard configuration.
2528 * svg/graphics/SVGImage.cpp:
2529 (WebCore::SVGImage::draw):
2530 (WebCore::SVGImage::frameView):
2532 * svg/graphics/SVGImage.h:
2534 * svg/graphics/SVGImageCache.cpp:
2535 (WebCore::SVGImageCache::imageContentChanged):
2536 (WebCore::SVGImageCache::redraw):
2537 (WebCore::SVGImageCache::redrawTimerFired):
2539 * svg/graphics/SVGImageCache.h:
2542 2012-02-24 Tim Horton <timothy_horton@apple.com>
2544 SVG should be supported in Dashboard compatibility mode
2545 https://bugs.webkit.org/show_bug.cgi?id=78322
2546 <rdar://problem/5861278>
2548 Reviewed by Dean Jackson.
2550 Enable SVG elements inside Dashboard, more or less reverting r21418.
2552 Tests: http/tests/xmlhttprequest/svg-created-by-xhr-allowed-in-dashboard.html
2553 svg/custom/embedded-svg-allowed-in-dashboard.xml
2554 svg/custom/manually-parsed-embedded-svg-allowed-in-dashboard.html
2555 svg/custom/manually-parsed-svg-allowed-in-dashboard.html
2556 svg/custom/svg-allowed-in-dashboard-object.html
2558 * dom/DOMImplementation.cpp:
2559 (WebCore::DOMImplementation::createDocument):
2561 (WebCore::Document::importNode):
2562 * dom/make_names.pl:
2563 (printFactoryCppFile):
2565 2012-02-24 Min Qin <qinmin@google.com>
2567 Expose a setting to exempt media playback from user gesture requirement after a user gesture is initiated on loading/playing a media
2568 https://bugs.webkit.org/show_bug.cgi?id=79167
2570 Reviewed by Adam Barth.
2572 Test: media/video-play-require-user-gesture.html
2574 * html/HTMLMediaElement.cpp:
2575 (WebCore::HTMLMediaElement::load):
2576 (WebCore::HTMLMediaElement::play):
2577 (WebCore::HTMLMediaElement::removeBehaviorsRestrictionsAfterFirstUserGesture):
2579 * html/HTMLMediaElement.h:
2581 * testing/Internals.cpp:
2582 (WebCore::Internals::setMediaPlaybackRequiresUserGesture):
2584 * testing/Internals.h:
2586 * testing/Internals.idl:
2588 2012-02-24 Adam Barth <abarth@webkit.org>
2590 DOMWindow*.idl should have had the same license block as DOMWindow.idl did originally
2591 https://bugs.webkit.org/show_bug.cgi?id=79507
2593 Reviewed by Alexey Proskuryakov.
2595 In moving pieces of DOMWindow.idl into separate files, we mistakenly
2596 changed some of the license blocks. All these files should have a
2597 license block that matches the file that originally contained the code.
2599 * Modules/intents/DOMWindowIntents.idl:
2600 * fileapi/DOMWindowFileSystem.idl:
2601 * html/DOMWindowHTML.idl:
2602 * html/canvas/DOMWindowWebGL.idl:
2603 * mediastream/DOMWindowMediaStream.idl:
2604 * storage/DOMWindowSQLDatabase.idl:
2605 * svg/DOMWindowSVG.idl:
2606 * webaudio/DOMWindowWebAudio.idl:
2607 * websockets/DOMWindowWebSocket.idl:
2608 * workers/DOMWindowWorker.idl:
2609 * xml/DOMWindowXML.idl:
2611 2012-02-24 David Kilzer <ddkilzer@apple.com>
2613 Use xcrun to find compiler paths for Generate Derived Sources build phase script
2614 <http://webkit.org/b/79512>
2616 Reviewed by Mark Rowe.
2618 * WebCore.xcodeproj/project.pbxproj:
2619 (Generate Derived Sources): Use xcrun to find the path to the
2620 compiler since that works on both iOS and OS X.
2622 2012-02-24 Anders Carlsson <andersca@apple.com>
2624 Crash in TileCache::revalidateTiles
2625 https://bugs.webkit.org/show_bug.cgi?id=79510
2626 <rdar://problem/10928035>
2628 Reviewed by Sam Weinig.
2630 Handle the tile cache layer's PlatformCALayer going away before the
2631 CALayer itself has been deallocated.
2633 * platform/graphics/ca/mac/TileCache.mm:
2634 (WebCore::TileCache::revalidateTiles):
2636 2012-02-24 Adam Klein <adamk@chromium.org>
2638 Don't notify the inspector of Node insertions initiated by the parser
2639 https://bugs.webkit.org/show_bug.cgi?id=79388
2641 Reviewed by Adam Barth.
2643 This is part of a series of changes to make ContainerNode's
2644 implementation simpler and more internally consistent.
2646 I don't know of a way to break on parser-initiated insertions,
2647 and the code already doesn't notify on parser-initiated removes
2648 (in ContainerNode::parserRemoveChild).
2650 No new tests, should already be covered by
2651 inspector/debugger/dom-breakpoints.html.
2653 * dom/ContainerNode.cpp:
2654 (WebCore::ContainerNode::parserInsertBefore):
2655 (WebCore::ContainerNode::parserAddChild):
2657 2012-02-24 Daniel Bates <dbates@webkit.org>
2659 Attempt to fix the Windows and WinCE build after changeset r108809
2660 <http://trac.webkit.org/changeset/108809> (https://bugs.webkit.org/show_bug.cgi?id=38995)
2662 Substitute styleLoadEventSender() for loadEventSender() in HTMLStyleElement.cpp
2663 and substitute linkLoadEventSender() for loadEventSender() in HTMLLinkElement.cpp.
2665 * html/HTMLLinkElement.cpp:
2666 (WebCore::linkLoadEventSender):
2667 (WebCore::HTMLLinkElement::~HTMLLinkElement):
2668 (WebCore::HTMLLinkElement::dispatchPendingLoadEvents):
2669 (WebCore::HTMLLinkElement::dispatchPendingEvent):
2670 (WebCore::HTMLLinkElement::notifyLoadedSheetAndAllCriticalSubresources):
2671 * html/HTMLStyleElement.cpp:
2672 (WebCore::styleLoadEventSender):
2673 (WebCore::HTMLStyleElement::~HTMLStyleElement):
2674 (WebCore::HTMLStyleElement::dispatchPendingLoadEvents):
2675 (WebCore::HTMLStyleElement::dispatchPendingEvent):
2676 (WebCore::HTMLStyleElement::notifyLoadedSheetAndAllCriticalSubresources):
2678 2012-02-24 Peter Beverloo <peter@chromium.org>
2680 [Chromium] Fix Chromium Android build by building HarfBuzzShaperBase.cpp
2681 https://bugs.webkit.org/show_bug.cgi?id=79497
2683 Reviewed by Tony Gentilcore.
2685 The Chromium Android build was broken by revision r108733, as the
2686 HarfBuzzShaperBase.cpp file also should have been included for Android.
2687 Fix the build by including it.
2689 * WebCore.gyp/WebCore.gyp:
2691 2012-02-24 Yael Aharon <yael.aharon@nokia.com>
2693 [Texmap] Consolidate the common parts of TextureMapperGL::drawTexture
2694 https://bugs.webkit.org/show_bug.cgi?id=79143
2696 Reviewed by Noam Rosenthal.
2698 Combine the two drawTexture methods into one, and extract the part that
2699 could not be combined into its own method.
2700 No new tests. Refactoring only.
2702 * platform/graphics/texmap/TextureMapperGL.cpp:
2704 (WebCore::TextureMapperGL::drawTexture):
2705 * platform/graphics/texmap/TextureMapperGL.h:
2708 (WebCore::BitmapTextureGL::~BitmapTextureGL):
2709 (WebCore::BitmapTextureGL::id):
2710 (WebCore::BitmapTextureGL::relativeSize):
2711 (WebCore::BitmapTextureGL::setTextureMapper):
2712 (WebCore::BitmapTextureGL::BitmapTextureGL):
2713 * platform/graphics/texmap/TextureMapperShaderManager.cpp:
2714 (WebCore::TextureMapperShaderProgramOpacityAndMask::fragmentShaderSource):
2716 (WebCore::TextureMapperShaderProgramOpacityAndMask::prepare):
2717 * platform/graphics/texmap/TextureMapperShaderManager.h:
2719 (WebCore::TextureMapperShaderProgram::prepare):
2720 (WebCore::TextureMapperShaderProgram::matrixVariable):
2721 (WebCore::TextureMapperShaderProgram::sourceMatrixVariable):
2722 (WebCore::TextureMapperShaderProgram::sourceTextureVariable):
2723 (WebCore::TextureMapperShaderProgram::opacityVariable):
2724 (TextureMapperShaderProgram):
2725 (TextureMapperShaderProgramSimple):
2726 (TextureMapperShaderProgramOpacityAndMask):
2727 (WebCore::TextureMapperShaderProgramOpacityAndMask::maskMatrixVariable):
2728 (WebCore::TextureMapperShaderProgramOpacityAndMask::maskTextureVariable):
2730 2012-02-24 Daniel Bates <dbates@webkit.org>
2732 style element and link element for CSS stylesheet should emit load/error event when sheet loads/fails to load
2733 https://bugs.webkit.org/show_bug.cgi?id=38995
2735 Reviewed by Adam Barth and Nate Chapin.
2737 Tests: fast/dom/HTMLLinkElement/link-onerror-stylesheet-with-existent-and-non-existent-import.html
2738 fast/dom/HTMLLinkElement/link-onerror-stylesheet-with-non-existent-import.html
2739 fast/dom/HTMLLinkElement/link-onerror.html
2740 fast/dom/HTMLLinkElement/link-onload-before-page-load.html
2741 fast/dom/HTMLLinkElement/link-onload-stylesheet-with-import.html
2742 fast/dom/HTMLLinkElement/link-onload.html
2743 fast/dom/HTMLLinkElement/link-onload2.html
2744 fast/dom/HTMLLinkElement/programmatically-add-link-with-onerror-handler.html
2745 fast/dom/HTMLLinkElement/programmatically-add-link-with-onload-handler.html
2746 fast/dom/HTMLStyleElement/programmatically-add-style-with-onerror-handler.html
2747 fast/dom/HTMLStyleElement/programmatically-add-style-with-onload-handler.html
2748 fast/dom/HTMLStyleElement/style-onerror-with-existent-and-non-existent-import.html
2749 fast/dom/HTMLStyleElement/style-onerror.html
2750 fast/dom/HTMLStyleElement/style-onload-before-page-load.html
2751 fast/dom/HTMLStyleElement/style-onload.html
2752 fast/dom/HTMLStyleElement/style-onload2.html
2754 Implements support for firing Load and Error events at HTML Link and HTML Style elements as per
2755 the HTML5 spec. (draft 05/25/2011) section "The link element" <http://www.w3.org/TR/html5/semantics.html#the-link-element>
2756 and "The style element" <http://www.w3.org/TR/html5/semantics.html#the-style-element>, respectively.
2758 * css/CSSImportRule.cpp:
2759 (WebCore::CSSImportRule::setCSSStyleSheet): Modified to call CSSStyleSheet::notifyLoadedSheet()
2760 after the style sheet associated with the @import rule loaded.
2761 * css/CSSStyleSheet.cpp: Added instance variable m_didLoadErrorOccur to track whether a network error
2762 occurred while loading any @import style sheets.
2763 (WebCore::CSSStyleSheet::CSSStyleSheet):
2764 (WebCore::CSSStyleSheet::checkLoaded):
2766 (WebCore::CSSStyleSheet::notifyLoadedSheet): Added; update m_didLoadErrorOccur to reflect if a network
2767 error occurred while loading a style sheet associated with an @import rule.
2768 * css/CSSStyleSheet.h:
2772 (WebCore::Document::implicitClose): Call HTML{LinkElement, StyleElement}::dispatchPendingLoadEvents() to
2773 ensure that all pending Load events for link and style elements are dispatched before we fire the Load
2774 event for the window.
2776 (WebCore::Node::notifyLoadedSheetAndAllCriticalSubresources): Added; as stated in its name, this method is
2777 called once a style sheet and all its critical subresources (@imports) have loaded.
2778 * html/HTMLLinkElement.cpp:
2779 (WebCore::loadEventSender):
2781 (WebCore::HTMLLinkElement::HTMLLinkElement):
2782 (WebCore::HTMLLinkElement::~HTMLLinkElement): Modified to cancel all pending Load events on destruction.
2783 (WebCore::HTMLLinkElement::parseAttribute): Register event listeners for Load and Error events regardless of whether we
2784 built with link prefetch support.
2785 (WebCore::HTMLLinkElement::setCSSStyleSheet):
2786 (WebCore::HTMLLinkElement::dispatchPendingLoadEvents): Added; called from Document::implicitClose() to
2787 ensure that all pending Load events for link elements have been dispatched before we fire the Load event
2789 (WebCore::HTMLLinkElement::dispatchPendingEvent): Added; called by EventSender.
2790 (WebCore::HTMLLinkElement::notifyLoadedSheetAndAllCriticalSubresources): Added.
2791 * html/HTMLLinkElement.h:
2794 * html/HTMLStyleElement.cpp:
2795 (WebCore::loadEventSender):
2797 (WebCore::HTMLStyleElement::HTMLStyleElement):
2798 (WebCore::HTMLStyleElement::~HTMLStyleElement): Modified to cancel all pending Load events on destruction.
2799 (WebCore::HTMLStyleElement::parseAttribute): Register event listeners for Load and Error events.
2800 (WebCore::HTMLStyleElement::dispatchPendingLoadEvents): Added; called from Document::implicitClose() to
2801 ensure that all pending Load events for link elements have been dispatched before we fire the Load event
2803 (WebCore::HTMLStyleElement::dispatchPendingEvent): Added; called by EventSender.
2804 (WebCore::HTMLStyleElement::notifyLoadedSheetAndAllCriticalSubresources): Added.
2805 * html/HTMLStyleElement.h:
2809 2012-02-24 Adam Roben <aroben@apple.com>
2811 Mac build fix after r108698
2813 * page/scrolling/mac/ScrollingCoordinatorMac.mm: Added missing #import.
2815 2012-02-24 Csaba Osztrogonác <ossy@webkit.org>
2817 Unreviewed speculative buildfix after r108785 for ENABLE(SVG) && !ENABLE(XSLT) case.
2819 * loader/cache/CachedResourceLoader.cpp:
2820 (WebCore::CachedResourceLoader::canRequest):
2822 2012-02-24 Vsevolod Vlasov <vsevik@chromium.org>
2824 Web Inspector: Do not show scripts panel navigator automatically more than once to the same user.
2825 https://bugs.webkit.org/show_bug.cgi?id=79489
2827 Reviewed by Pavel Feldman.
2829 * inspector/front-end/ScriptsPanel.js:
2831 2012-02-24 Philippe Normand <pnormand@igalia.com>
2833 Fix GTK WebAudio build for WebKitGTK 1.7.90.
2835 Patch by Priit Laes <plaes@plaes.org> on 2012-02-24
2836 Rubber-stamped by Philippe Normand.
2838 * GNUmakefile.list.am: Add AudioBufferCallback.h and
2839 DenormalDisabler.h to the list of files so they get disted in the
2842 2012-02-24 Yury Semikhatsky <yurys@chromium.org>
2844 Web Inspector: show all counters on one graph
2845 https://bugs.webkit.org/show_bug.cgi?id=79484
2847 Now it is possible to hide any counter. All graphs share the same area.
2848 Current values are displayed above that area.
2850 Reviewed by Pavel Feldman.
2852 * English.lproj/localizedStrings.js:
2853 * inspector/front-end/MemoryStatistics.js:
2854 (WebInspector.MemoryStatistics.getDocumentCount):
2855 (WebInspector.MemoryStatistics.getNodeCount):
2856 (WebInspector.MemoryStatistics.getListenerCount):
2857 (WebInspector.MemoryStatistics):
2858 (WebInspector.SwatchCheckbox):
2859 (WebInspector.SwatchCheckbox.prototype.get checked):
2860 (WebInspector.SwatchCheckbox.prototype.set checked):
2861 (WebInspector.SwatchCheckbox.prototype._toggleCheckbox):
2862 (WebInspector.CounterUI):
2863 (WebInspector.CounterUI.prototype._toggleCounterGraph):
2864 (WebInspector.CounterUI.prototype.setRange):
2865 (WebInspector.CounterUI.prototype.updateCurrentValue):
2866 (WebInspector.CounterUI.prototype.clearCurrentValueAndMarker):
2867 (WebInspector.CounterUI.prototype.get visible):
2868 (WebInspector.CounterUI.prototype.saveImageUnderMarker):
2869 (WebInspector.CounterUI.prototype.restoreImageUnderMarker):
2870 (WebInspector.CounterUI.prototype.discardImageUnderMarker):
2871 (WebInspector.MemoryStatistics.prototype._updateSize):
2872 (WebInspector.MemoryStatistics.prototype._draw):
2873 (WebInspector.MemoryStatistics.prototype._onMouseOut):
2874 (WebInspector.MemoryStatistics.prototype._refreshCurrentValues):
2875 (WebInspector.MemoryStatistics.prototype._highlightCurrentPositionOnGraphs):
2876 (WebInspector.MemoryStatistics.prototype._drawGraph):
2877 (WebInspector.MemoryStatistics.prototype._clear):
2878 * inspector/front-end/timelinePanel.css:
2879 (.memory-counter-sidebar-info):
2880 (.memory-counter-sidebar-info .swatch):
2881 (.memory-counter-sidebar-info .title):
2882 (.memory-counter-value):
2883 (#counter-values-bar):
2885 2012-02-24 Pavel Feldman <pfeldman@google.com>
2887 Web Inspector: map Ctrl/Cmd +/- to zoom in hosted mode.
2888 https://bugs.webkit.org/show_bug.cgi?id=79475
2890 (In remote front-end mode, default zoom actions are working.)
2892 Reviewed by Yury Semikhatsky.
2894 * inspector/InspectorFrontendHost.cpp:
2895 (WebCore::InspectorFrontendHost::setZoomFactor):
2897 * inspector/InspectorFrontendHost.h:
2898 (InspectorFrontendHost):
2899 * inspector/InspectorFrontendHost.idl:
2900 * inspector/front-end/InspectorFrontendHostStub.js:
2901 (.WebInspector.InspectorFrontendHostStub):
2902 (.WebInspector.InspectorFrontendHostStub.prototype.loadResourceSynchronously):
2903 (.WebInspector.InspectorFrontendHostStub.prototype.setZoomFactor):
2904 * inspector/front-end/Settings.js:
2905 (WebInspector.Settings):
2906 * inspector/front-end/inspector.js:
2907 (WebInspector._initializeCapability):
2908 (WebInspector._zoomIn):
2909 (WebInspector._zoomOut):
2910 (WebInspector._resetZoom):
2911 (WebInspector._requestZoom.set InspectorFrontendHost):
2912 (WebInspector._requestZoom):
2913 (WebInspector._doLoadedDoneWithCapabilities.get if):
2914 (WebInspector.documentKeyDown):
2916 2012-02-24 Allan Sandfeld Jensen <allan.jensen@nokia.com>
2918 Refactor EventHandler::handleGestureEvent.
2919 https://bugs.webkit.org/show_bug.cgi?id=79476
2921 Reviewed by Kenneth Rohde Christiansen.
2923 No new tests. No behavior change.
2925 * page/EventHandler.cpp:
2926 (WebCore::EventHandler::handleGestureEvent):
2927 (WebCore::EventHandler::handleGestureTap):
2928 (WebCore::EventHandler::handleGestureScrollUpdate):
2929 * page/EventHandler.h:
2931 2012-02-24 Zoltan Horvath <zoltan@webkit.org>
2933 [Qt] Allow to use WebCore imagedecoders
2934 https://bugs.webkit.org/show_bug.cgi?id=32410
2936 Add ENABLE(QT_IMAGE_DECODER) guards around Qt imagedecoders and set it to default.
2937 By passing ENABLE_QT_IMAGE_DECODER=0 define to the build system, WebKit will build
2938 with WebCore's imagedecoders.
2940 I added NO_RETURN attribute and PLATFORM(QT) conditionals to 2 functions of PNG and
2941 JPEG decoders to avoid compiler warnings because in Qt-port we treat warning as errors (-Werror).
2943 I'm continuing the refactoring of this area and try to use Qt imagedecoders only in
2944 cases when WebCore doesn't support the image format.
2946 Reviewed by Simon Hausmann.
2948 No behavior change, no need new tests.
2952 * platform/MIMETypeRegistry.cpp:
2953 (WebCore::initializeSupportedImageMIMETypes):
2954 (WebCore::initializeSupportedImageMIMETypesForEncoding):
2955 * platform/image-decoders/ImageDecoder.h:
2956 (WebCore::ImageFrame::getAddr):
2958 * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
2959 NO_RETURN has been added to a function to avoid warning message.
2960 * platform/image-decoders/png/PNGImageDecoder.cpp:
2961 NO_RETURN has been added to a function to avoid warning message.
2963 * platform/image-decoders/qt/ImageFrameQt.cpp:
2965 (WebCore::ImageFrame::asNewNativeImage):
2967 2012-02-24 Lynn Neir <lynn.neir@skype.net>
2969 [Windows, WinCairo] Handle indeterminate checkbox state
2970 https://bugs.webkit.org/show_bug.cgi?id=79288
2972 Reviewed by Adam Roben.
2974 Tested by fast/forms/indeterminate.html
2976 * rendering/RenderThemeWin.cpp: Add code to check for indeterminate
2979 2012-02-24 Simon Hausmann <simon.hausmann@nokia.com>
2981 [Qt] Font related problem with newer Qt5
2982 https://bugs.webkit.org/show_bug.cgi?id=79402
2984 Reviewed by Kenneth Rohde Christiansen.
2986 Apply the descent += 1 workaround needed to produce correct metrics only for Qt 4,
2987 because the behaviour has been corrected in Qt 5.
2989 * platform/graphics/qt/SimpleFontDataQt.cpp:
2990 (WebCore::SimpleFontData::platformInit):
2992 2012-02-24 Kentaro Hara <haraken@chromium.org>
2994 Move XML-related APIs from DOMWindow.idl to DOMWindowXML.idl
2995 https://bugs.webkit.org/show_bug.cgi?id=79434
2997 Reviewed by Adam Barth.
2999 For WebKit modularization, this patch moves XML-related APIs
3000 from DOMWindow.idl to DOMWIndowXML.idl.
3002 No tests. No change in behavior.
3004 * xml/DOMWindowXML.idl: Added.
3005 * page/DOMWindow.idl:
3007 * CMakeLists.txt: Added "DOMWindowXML.idl".
3008 * DerivedSources.make: Ditto.
3009 * DerivedSources.pri: Ditto.
3010 * GNUmakefile.list.am: Ditto.
3011 * WebCore.gypi: Ditto.
3012 * WebCore.xcodeproj/project.pbxproj: Ditto.
3014 2012-02-24 Renata Hodovan <reni@webkit.org>
3016 External <use> xlink:href references do not work
3017 https://bugs.webkit.org/show_bug.cgi?id=12499
3019 Reviewed by Nikolas Zimmermann.
3021 Support external references on <use> by introducing CachedSVGDocument.
3022 CachedSVGDocument is a CachedResource specialized for SVGDocuments.
3023 This CachedSVGDocument will be stored for every use element with external reference.
3024 This first patch only contains the new classes to test whether it works on every platform.
3025 So they aren't used anywhere and just a follow-up patch will bind them into the caching system.
3027 No new tests - no change in functionality.
3030 * GNUmakefile.list.am:
3033 * WebCore.vcproj/WebCore.vcproj:
3034 * WebCore.xcodeproj/project.pbxproj:
3035 * loader/cache/CachedResource.cpp:
3036 (WebCore::defaultPriorityForResourceType):
3037 (WebCore::cachedResourceTypeToTargetType):
3038 * loader/cache/CachedResource.h:
3039 * loader/cache/CachedResourceClient.h:
3040 (CachedResourceClient):
3041 * loader/cache/CachedResourceLoader.cpp:
3042 (WebCore::createResource):
3043 (WebCore::CachedResourceLoader::checkInsecureContent):
3044 (WebCore::CachedResourceLoader::canRequest):
3045 * loader/cache/CachedSVGDocument.cpp: Added.
3047 (WebCore::CachedSVGDocument::CachedSVGDocument):
3048 (WebCore::CachedSVGDocument::~CachedSVGDocument):
3049 (WebCore::CachedSVGDocument::setEncoding):
3050 (WebCore::CachedSVGDocument::encoding):
3051 (WebCore::CachedSVGDocument::data):
3052 * loader/cache/CachedSVGDocument.h: Added.
3054 (CachedSVGDocument):
3055 (WebCore::CachedSVGDocument::document):
3056 (WebCore::CachedSVGDocument::schedule):
3057 (CachedSVGDocumentClient):
3058 (WebCore::CachedSVGDocumentClient::~CachedSVGDocumentClient):
3059 (WebCore::CachedSVGDocumentClient::expectedType):
3060 (WebCore::CachedSVGDocumentClient::resourceClientType):
3062 2012-02-24 Alexis Menard <alexis.menard@openbossa.org>
3064 Little optimization in CSSParser::parseShorthand.
3065 https://bugs.webkit.org/show_bug.cgi?id=79356
3067 Reviewed by Tony Chang.
3069 Remove one loop by initializing array values at declaration time.
3070 Also early return when the number of properties parsed are equals
3071 with longhands count of the shorthand. It happens to be very often
3072 the case (e.g. border). Instruments shows an improvement from 19ms
3073 to 17ms on the time spent in this function for the css-parser-yui
3076 No new tests : refactor, exisiting ones should cover.
3078 * css/CSSParser.cpp:
3079 (WebCore::CSSParser::parseShorthand):
3081 2012-02-24 Kentaro Hara <haraken@chromium.org>
3083 Move HTML-related APIs from DOMWindow.idl to DOMWindowHTML.idl
3084 https://bugs.webkit.org/show_bug.cgi?id=79436
3086 Reviewed by Adam Barth.
3088 For WebKit modularization, this patch moves HTML-related APIs
3089 from DOMWindow.idl to DOMWindowHTML.idl.
3091 No tests. No change in behavior.
3093 * html/DOMWindowHTML.idl:
3094 * page/DOMWindow.idl:
3096 2012-02-24 Jochen Eisinger <jochen@chromium.org>
3098 [v8] when a named item on document goes out of scope, actually remove it
3099 https://bugs.webkit.org/show_bug.cgi?id=79409
3101 Reviewed by Adam Barth.
3103 The original change already included the code, but it led to some
3104 problems, so it was reverted in http://trac.webkit.org/changeset/63845.
3105 However, not removing the items leaks a considerable amount of memory,
3106 so I'm adding the code back. The bug that led to the revert was that
3107 the accessor was removed unconditionally. I'm now only removing it,
3108 when the last item with that name is removed.
3110 Test: fast/dom/HTMLDocument/named-item.html
3112 * bindings/v8/V8DOMWindowShell.cpp:
3113 (WebCore::V8DOMWindowShell::namedItemRemoved):
3115 2012-02-24 Kentaro Hara <haraken@chromium.org>
3117 Move Worker-related APIs from DOMWindow.idl to DOMWindowWorker.idl
3118 https://bugs.webkit.org/show_bug.cgi?id=79442
3120 Reviewed by Adam Barth.
3122 For WebKit modularization, this patch moves Worker-related APIs
3123 from DOMWindow.idl to DOMWindowWorker.idl.
3125 No tests. No change in behavior.
3127 * workers/DOMWindowWorker.idl: Added.
3128 * page/DOMWindow.idl:
3131 * DerivedSources.make:
3132 * DerivedSources.pri:
3133 * GNUmakefile.list.am:
3136 2012-02-24 Robin Cao <robin.cao@torchmobile.com.cn>
3138 [BlackBerry] Upstream helper classes for skia
3139 https://bugs.webkit.org/show_bug.cgi?id=79216
3141 Reviewed by Antonio Gomes.
3143 Initial upstreaming, no new tests.
3145 * platform/graphics/blackberry/skia/ImageBufferData.h: Added.
3148 * platform/graphics/blackberry/skia/PlatformSupport.cpp: Added.
3150 (WebCore::setFontRenderStyleDefaults):
3151 (WebCore::PlatformSupport::getRenderStyleForStrike):
3152 (WebCore::PlatformSupport::getFontFamilyForCharacters):
3153 * platform/graphics/blackberry/skia/PlatformSupport.h: Added.
3158 2012-02-24 Robin Cao <robin.cao@torchmobile.com.cn>
3160 [BlackBerry] Upstream ImageBlackBerry in platform/graphics/blackberry
3161 https://bugs.webkit.org/show_bug.cgi?id=79212
3163 Reviewed by Antonio Gomes.
3165 Initial upstreaming, no new tests.
3167 * PlatformBlackBerry.cmake:
3168 * platform/graphics/blackberry/ImageBlackBerry.cpp: Added.
3170 (WebCore::Image::loadPlatformResource):
3172 2012-02-24 Leo Yang <leo.yang@torchmobile.com.cn>
3174 [BlackBerry] Upstream the BlackBerry change to platform/graphics/IntSize.h
3175 https://bugs.webkit.org/show_bug.cgi?id=79430
3177 Reviewed by Antonio Gomes.
3179 Add conversion convenience between WebCore::IntSize and BlackBerry::Platform::IntSize.
3181 The porting can't be built yet, no new tests.
3183 * platform/graphics/IntSize.h:
3187 2012-02-24 Shinya Kawanaka <shinyak@chromium.org>
3189 SpellCheckRequest needs to know the context where the spellcheck happened.
3190 https://bugs.webkit.org/show_bug.cgi?id=79320
3192 Reviewed by Hajime Morita.
3194 WebKit clients should be able to get the context how the spellcheck happended.
3195 For example, WebKit clients may want to change the behavior by a spellcheck request is
3196 invoked in typing or in pasting.
3198 This patch added an enum in SpellCheckRequest so that WebKit clients can understand the context.
3200 * editing/Editor.cpp:
3201 (WebCore::Editor::replaceSelectionWithFragment):
3202 (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges):
3203 * editing/SpellChecker.cpp:
3204 (WebCore::SpellCheckRequest::SpellCheckRequest):
3205 (WebCore::SpellCheckRequest::create):
3206 (WebCore::SpellChecker::invokeRequest):
3207 * editing/SpellChecker.h:
3208 (SpellCheckRequest):
3209 (WebCore::SpellCheckRequest::textCheckingRequest):
3210 (WebCore::SpellCheckRequest::processType):
3211 * loader/EmptyClients.h:
3212 (WebCore::EmptyTextCheckerClient::requestCheckingOfString):
3213 * platform/text/TextCheckerClient.h:
3215 (TextCheckerClient):
3216 * platform/text/TextChecking.h:
3217 (TextCheckingRequest):
3218 (WebCore::TextCheckingRequest::TextCheckingRequest):
3219 (WebCore::TextCheckingRequest::setSequence):
3220 (WebCore::TextCheckingRequest::sequence):
3221 (WebCore::TextCheckingRequest::text):
3222 (WebCore::TextCheckingRequest::mask):
3223 (WebCore::TextCheckingRequest::processType):
3226 2012-02-24 Hayato Ito <hayato@chromium.org>
3228 Make Node::showTreeForThis (and Node::showTreeForThisAcrossFrame) dump multiple shadow roots.
3229 https://bugs.webkit.org/show_bug.cgi?id=79351
3231 Reviewed by Dimitri Glazkov.
3233 No new tests since these utility functions are only available in debug build.
3234 I manually tested in GDB session.
3237 (WebCore::oldestShadowRootFor):
3238 (WebCore::traverseTreeAndMark):
3239 (WebCore::parentOrHostOrFrameOwner):
3240 (WebCore::showSubTreeAcrossFrame):
3242 (WebCore::ShadowRoot::youngerShadowRoot):
3243 (WebCore::ShadowRoot::olderShadowRoot):
3244 (WebCore::toShadowRoot):
3247 2012-02-24 Pavel Feldman <pfeldman@chromium.org>
3249 Not reviewed: follow up to inspector's r108331, using more general condition.
3251 * inspector/front-end/JavaScriptSourceFrame.js:
3252 (WebInspector.JavaScriptSourceFrame.prototype._getPopoverAnchor):
3254 2012-02-24 Kentaro Hara <haraken@chromium.org>
3256 Move WebGL APIs from DOMWindow.idl to DOMWindowWebGL.idl
3257 https://bugs.webkit.org/show_bug.cgi?id=79432
3259 Reviewed by Adam Barth.
3261 For WebKit modularization, this patch moves WebGL-related APIs
3262 from DOMWindow.idl to DOMWindowWebGL.idl.
3264 No tests. No change in behavior.
3266 * html/canvas/DOMWindowWebGL.idl: Added.
3267 * page/DOMWindow.idl:
3269 * DerivedSources.make: Added DOMWindowWebGL.idl.
3270 * DerivedSources.pri: Ditto.
3271 * GNUmakefile.list.am: Ditto.
3272 * WebCore.gypi: Ditto.
3273 * WebCore.xcodeproj/project.pbxproj: Ditto.
3275 2012-02-24 Vsevolod Vlasov <vsevik@chromium.org>
3277 Web Inspector: [Regression] network worker tests crash on qt.
3278 https://bugs.webkit.org/show_bug.cgi?id=79263
3280 Reviewed by Pavel Feldman.
3282 * inspector/InspectorPageAgent.cpp:
3283 (WebCore::InspectorPageAgent::createDecoder):
3284 (WebCore::InspectorPageAgent::cachedResourceContent):
3286 2012-02-24 Andreas Kling <awesomekling@apple.com>
3288 Miscellaneous CSSParser dodging in presentation attribute parsing.
3289 <http://webkit.org/b/79468>
3291 Reviewed by Antti Koivisto.
3293 - Bypass CSSParser when adding constant values to attribute styles.
3294 - Added fast paths for the valid HTMLTablePartElement align values.
3296 * html/HTMLEmbedElement.cpp:
3297 (WebCore::HTMLEmbedElement::collectStyleForAttribute):
3298 * html/HTMLHRElement.cpp:
3299 (WebCore::HTMLHRElement::collectStyleForAttribute):
3300 * html/HTMLIFrameElement.cpp:
3301 (WebCore::HTMLIFrameElement::collectStyleForAttribute):
3302 * html/HTMLTableElement.cpp:
3303 (WebCore::HTMLTableElement::collectStyleForAttribute):
3304 * html/HTMLTablePartElement.cpp:
3305 (WebCore::HTMLTablePartElement::collectStyleForAttribute):
3307 2012-02-24 Dana Jansens <danakj@chromium.org>
3309 [chromium] Avoid culling work for fully-non-opaque tiles, and add tracing for draw culling
3310 https://bugs.webkit.org/show_bug.cgi?id=79183
3312 Reviewed by James Robinson.
3314 Addresses performance issues with draw culling by avoiding the work
3315 of mapRect and other function calls when the quad has no opaque area.
3316 And adds a TRACE_EVENT to watch the time spent in draw culling.
3318 * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
3319 (WebCore::CCLayerTreeHostImpl::optimizeRenderPasses):
3320 * platform/graphics/chromium/cc/CCQuadCuller.cpp:
3321 (WebCore::CCQuadCuller::cullOccludedQuads):
3323 2012-02-24 Vsevolod Vlasov <vsevik@chromium.org>
3325 Web Inspector: Scripts panel navigator overlay should be shown automatically only one time.
3326 https://bugs.webkit.org/show_bug.cgi?id=79467
3328 Reviewed by Pavel Feldman.
3330 * inspector/front-end/ScriptsPanel.js:
3331 (WebInspector.ScriptsPanel.prototype._hideNavigatorOverlay):
3332 (WebInspector.ScriptsPanel.prototype._navigatorOverlayWillHide):
3334 2012-02-23 MORITA Hajime <morrita@google.com>
3336 Adding a ShadowRoot to image-backed element causes a crash
3337 https://bugs.webkit.org/show_bug.cgi?id=78878
3339 Reviewed by Dimitri Glazkov.
3341 The crash happened because NodeRenderingContext tried to append a
3342 child to a renderer regardless one isn't capable of holding any
3343 children if it appears in the shadow attaching phase. RenderImage
3344 is one of such renderer classes which aren't capable.
3346 NodeRenderingContext decide whether the contextual node as a child
3347 can create its renderer based on RenderObject::canHaveChildren()
3348 and Node::childShouldCreateRenderer(). But the responsibility
3349 between these two methods are getting confused. which results this
3350 unfortuante crash path.
3352 This change re-aligns the responsibility:
3354 - Now canHaveChildren() purely declares the ability of the
3355 renderer. If the renderer is capable of having children, it
3356 return true regardless of HTML semantics.
3358 - On the other hand, childShouldCreateRenderer() cares about the
3359 semantics. If the element doesn't allow children to be rendered,
3362 - Note that these decision on elements are contextual. Each element
3363 needs to know which role it is playing in the tree composition
3364 algorithm of Shadow DOM. That's why the method parameter is changed
3365 from Node* to NodeRenderingContext.
3367 - Fixed updateFirstLetter() which relied on this confused assumption.
3368 This change introduces RenderDeprecatedFlexibleBox::buttonText()
3369 to refine the relying assumption.
3371 With this change, some decision points are moved from a renderer to an
3372 element. Following renderers no longer stop reject having children:
3374 - RenderButton, RenderListBox, RenderMenuList, RenderMeter,
3375 RenderProgress, RenderTextControl.
3377 Corresponding element for such a render (HTMLProgressElement of
3378 RenderProgress for exaple) now cares about that.
3380 Reviewed by Dimitri Glazkov.
3382 Tests: fast/dom/shadow/shadow-on-image-expected.html
3383 fast/dom/shadow/shadow-on-image.html
3386 (WebCore::Element::childShouldCreateRenderer):
3390 (WebCore::Node::childShouldCreateRenderer):
3391 * dom/NodeRenderingContext.cpp:
3392 (WebCore::NodeRenderingContext::shouldCreateRenderer):
3393 * dom/NodeRenderingContext.h:
3394 (NodeRenderingContext):
3395 (WebCore::NodeRenderingContext::isOnEncapsulationBoundary):
3397 * html/HTMLDetailsElement.cpp:
3398 (WebCore::HTMLDetailsElement::childShouldCreateRenderer):
3399 * html/HTMLDetailsElement.h:
3400 (HTMLDetailsElement):
3401 * html/HTMLMediaElement.cpp:
3403 (WebCore::HTMLMediaElement::childShouldCreateRenderer):
3404 * html/HTMLMediaElement.h:
3406 * html/HTMLMeterElement.cpp:
3407 (WebCore::HTMLMeterElement::childShouldCreateRenderer):
3409 * html/HTMLMeterElement.h:
3411 * html/HTMLProgressElement.cpp:
3412 (WebCore::HTMLProgressElement::childShouldCreateRenderer):
3414 * html/HTMLProgressElement.h:
3415 (HTMLProgressElement):
3416 * html/HTMLSelectElement.cpp:
3417 (WebCore::HTMLSelectElement::childShouldCreateRenderer):
3419 * html/HTMLSelectElement.h:
3420 (HTMLSelectElement):
3421 * html/HTMLSummaryElement.cpp:
3422 (WebCore::HTMLSummaryElement::childShouldCreateRenderer):
3424 * html/HTMLSummaryElement.h:
3425 (HTMLSummaryElement):
3426 * html/HTMLTextFormControlElement.cpp:
3427 (WebCore::HTMLTextFormControlElement::childShouldCreateRenderer):
3429 * html/HTMLTextFormControlElement.h:
3430 (HTMLTextFormControlElement):
3431 * rendering/RenderBlock.cpp:
3432 (WebCore::RenderBlock::updateFirstLetter):
3433 * rendering/RenderButton.cpp:
3434 * rendering/RenderButton.h:
3436 * rendering/RenderDeprecatedFlexibleBox.h:
3437 (WebCore::RenderDeprecatedFlexibleBox::buttonText):
3438 * rendering/RenderListBox.h:
3440 * rendering/RenderMedia.h:
3441 (WebCore::RenderMedia::canHaveChildren):
3442 * rendering/RenderMenuList.h:
3444 (WebCore::RenderMenuList::hasControlClip):
3445 * rendering/RenderMeter.h:
3446 * rendering/RenderProgress.h:
3447 * rendering/RenderTextControl.h:
3448 * rendering/svg/RenderSVGRoot.h:
3449 (WebCore::RenderSVGRoot::canHaveChildren):
3450 * svg/SVGAElement.cpp:
3451 (WebCore::SVGAElement::childShouldCreateRenderer):
3452 * svg/SVGAElement.h:
3454 * svg/SVGAltGlyphElement.cpp:
3455 (WebCore::SVGAltGlyphElement::childShouldCreateRenderer):
3456 * svg/SVGAltGlyphElement.h:
3457 (SVGAltGlyphElement):
3458 * svg/SVGDocument.cpp:
3459 (WebCore::SVGDocument::childShouldCreateRenderer):
3460 * svg/SVGDocument.h:
3462 * svg/SVGElement.cpp:
3463 (WebCore::SVGElement::childShouldCreateRenderer):
3466 * svg/SVGForeignObjectElement.cpp:
3467 (WebCore::SVGForeignObjectElement::childShouldCreateRenderer):
3468 * svg/SVGForeignObjectElement.h:
3469 (SVGForeignObjectElement):
3470 * svg/SVGSwitchElement.cpp:
3471 (WebCore::SVGSwitchElement::childShouldCreateRenderer):
3472 * svg/SVGSwitchElement.h:
3474 * svg/SVGTRefElement.cpp:
3475 (WebCore::SVGTRefElement::childShouldCreateRenderer):
3476 * svg/SVGTRefElement.h:
3478 * svg/SVGTSpanElement.cpp:
3479 (WebCore::SVGTSpanElement::childShouldCreateRenderer):
3480 * svg/SVGTSpanElement.h:
3482 * svg/SVGTextElement.cpp:
3483 (WebCore::SVGTextElement::childShouldCreateRenderer):
3484 * svg/SVGTextElement.h:
3486 * svg/SVGTextPathElement.cpp:
3487 (WebCore::SVGTextPathElement::childShouldCreateRenderer):
3488 * svg/SVGTextPathElement.h:
3490 2012-02-24 Kentaro Hara <haraken@chromium.org>
3492 Support [Supplemental] on static methods
3493 https://bugs.webkit.org/show_bug.cgi?id=79357
3495 Reviewed by Adam Barth.
3497 [Supplemental] on static methods does not work in CodeGeneratorJS.pm
3498 and CodeGeneratorV8.pm due to mis-ordered if-elsif statements.
3499 This patch fixes it and supports [Supplemental] on static methods.
3501 Test: bindings/scripts/test/TestSupplemental.idl
3503 * bindings/scripts/CodeGeneratorJS.pm: Modified as described above.
3504 (GenerateParametersCheck):
3505 * bindings/scripts/CodeGeneratorV8.pm: Ditto.
3506 (GenerateFunctionCallString):
3508 * bindings/scripts/test/TestSupplemental.idl: Added a test case.
3510 * bindings/scripts/test/CPP/WebDOMTestInterface.cpp: Updated run-bindings-tests results.
3511 (WebDOMTestInterface::supplementalMethod4):
3512 * bindings/scripts/test/CPP/WebDOMTestInterface.h: Ditto.
3513 * bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp: Ditto.
3514 (webkit_dom_test_interface_supplemental_method4):
3515 * bindings/scripts/test/GObject/WebKitDOMTestInterface.h: Ditto.
3516 * bindings/scripts/test/JS/JSTestInterface.cpp: Ditto.
3518 (WebCore::JSTestInterfaceConstructor::getOwnPropertySlot):
3519 (WebCore::JSTestInterfaceConstructor::getOwnPropertyDescriptor):
3520 (WebCore::jsTestInterfaceConstructorFunctionSupplementalMethod4):
3521 * bindings/scripts/test/JS/JSTestInterface.h: Ditto.
3523 * bindings/scripts/test/ObjC/DOMTestInterface.h: Ditto.
3524 * bindings/scripts/test/ObjC/DOMTestInterface.mm: Ditto.
3525 (-[DOMTestInterface supplementalMethod4]):
3526 * bindings/scripts/test/V8/V8TestInterface.cpp: Ditto.
3527 (TestInterfaceInternal):
3528 (WebCore::TestInterfaceInternal::supplementalMethod4Callback):
3529 (WebCore::ConfigureV8TestInterfaceTemplate):
3531 2012-02-24 Tony Chang <tony@chromium.org>
3533 Small refactor in RenderFlexibleBox::layoutAndPlaceChildren
3534 https://bugs.webkit.org/show_bug.cgi?id=79420
3536 Reviewed by Ojan Vafai.
3538 No new tests, just a refactor.
3540 * rendering/RenderFlexibleBox.cpp:
3541 (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): Share some of the logic
3542 in computing the cross axis length.
3544 2012-02-24 Yury Semikhatsky <yurys@chromium.org>
3546 Web Inspector: cannot drag timeline overview window when clicking inside the window
3547 https://bugs.webkit.org/show_bug.cgi?id=79453
3549 Reviewed by Pavel Feldman.
3551 * inspector/front-end/timelinePanel.css:
3552 (.timeline-overview-window-rulers):
3554 2012-02-24 Sheriff Bot <webkit.review.bot@gmail.com>
3556 Unreviewed, rolling out r108731.
3557 http://trac.webkit.org/changeset/108731
3558 https://bugs.webkit.org/show_bug.cgi?id=79464
3560 Broke Chromium Win tests (Requested by bashi on #webkit).
3563 * GNUmakefile.list.am:
3565 * WebCore.gyp/WebCore.gyp:
3567 * WebCore.vcproj/WebCore.vcproj:
3568 * WebCore.xcodeproj/project.pbxproj:
3569 * websockets/WebSocket.cpp:
3570 (WebCore::WebSocket::didConnect):
3571 * websockets/WebSocketChannel.cpp:
3572 (WebCore::WebSocketChannel::connect):
3573 (WebCore::WebSocketChannel::fail):
3574 (WebCore::WebSocketChannel::processFrame):
3575 (WebCore::WebSocketChannel::sendFrame):
3576 * websockets/WebSocketChannel.h:
3577 * websockets/WebSocketDeflateFramer.cpp: Removed.
3578 * websockets/WebSocketDeflateFramer.h: Removed.
3580 2012-02-22 Vsevolod Vlasov <vsevik@chromium.org>
3582 Web Inspector: Show scripts panel navigator overlay on the first scripts panel opening.
3583 https://bugs.webkit.org/show_bug.cgi?id=79248
3585 Reviewed by Pavel Feldman.
3587 * inspector/front-end/ScriptsPanel.js:
3588 (WebInspector.ScriptsPanel.prototype.wasShown):
3589 (WebInspector.ScriptsPanel.prototype.set _showNavigatorOverlay):
3590 (WebInspector.ScriptsPanel.prototype._hideNavigatorOverlay):
3592 2012-02-24 Mike Lawther <mikelawther@chromium.org>
3594 CSS3 calc(): handle non-negative values
3595 https://bugs.webkit.org/show_bug.cgi?id=79188
3597 Reviewed by Daniel Bates.
3599 Some CSS properties (e.g. padding) are required to be non-negative. These
3600 are now restricted to the correct range.
3602 Tests: css3/calc/negative-padding-expected.html
3603 css3/calc/negative-padding.html
3605 * css/CSSCalculationValue.cpp:
3607 (WebCore::CSSCalcValue::clampToPermittedRange): Added
3608 (WebCore::CSSCalcValue::doubleValue):
3609 (WebCore::CSSCalcValue::isNegative): Added
3610 (WebCore::CSSCalcValue::computeLengthPx):
3611 (WebCore::CSSCalcValue::create):
3612 * css/CSSCalculationValue.h:
3614 (WebCore::CSSCalcValue::CSSCalcValue):
3615 * css/CSSParser.cpp:
3616 (WebCore::CSSParser::validCalculationUnit):
3617 (WebCore::CSSParser::parseCalculation):
3619 * platform/CalculationValue.h:
3621 2012-02-22 Vsevolod Vlasov <vsevik@chromium.org>
3623 Web Inspector: [Regression] xhr tests are crashing after r108506.
3624 https://bugs.webkit.org/show_bug.cgi?id=79265
3626 Reviewed by Pavel Feldman.
3628 * inspector/InspectorResourceAgent.cpp:
3629 (WebCore::InspectorResourceAgent::setInitialScriptContent):
3630 (WebCore::InspectorResourceAgent::setInitialXHRContent):
3632 2012-02-24 Huang Dongsung <luxtella@company100.net>
3634 Rename LocalStorageThread to StorageThread and LocalStorageTask to StorageTask.
3635 https://bugs.webkit.org/show_bug.cgi?id=79358
3637 Revision 45124 commented FIXME to rename these classes.
3639 Reviewed by Kentaro Hara.
3642 * GNUmakefile.list.am:
3646 * WebCore.vcproj/WebCore.vcproj:
3647 * WebCore.xcodeproj/project.pbxproj:
3648 * storage/LocalStorageTask.h: Removed.
3649 * storage/StorageSyncManager.cpp:
3650 (WebCore::StorageSyncManager::StorageSyncManager):
3651 (WebCore::StorageSyncManager::scheduleImport):
3652 (WebCore::StorageSyncManager::scheduleSync):
3653 (WebCore::StorageSyncManager::scheduleDeleteEmptyDatabase):
3654 * storage/StorageSyncManager.h:
3656 (StorageSyncManager):
3657 * storage/StorageTask.cpp: Renamed from Source/WebCore/storage/LocalStorageTask.cpp.
3659 (WebCore::StorageTask::StorageTask):
3660 (WebCore::StorageTask::~StorageTask):
3661 (WebCore::StorageTask::performTask):
3662 * storage/StorageTask.h: Added.
3665 (WebCore::StorageTask::createImport):
3666 (WebCore::StorageTask::createSync):
3667 (WebCore::StorageTask::createDeleteEmptyDatabase):
3668 (WebCore::StorageTask::createOriginIdentifiersImport):
3669 (WebCore::StorageTask::createSetOriginDetails):
3670 (WebCore::StorageTask::createDeleteOrigin):
3671 (WebCore::StorageTask::createDeleteAllOrigins):
3672 (WebCore::StorageTask::createTerminate):
3673 * storage/StorageThread.cpp: Renamed from Source/WebCore/storage/LocalStorageThread.cpp.
3675 (WebCore::StorageThread::create):
3676 (WebCore::StorageThread::StorageThread):
3677 (WebCore::StorageThread::~StorageThread):
3678 (WebCore::StorageThread::start):
3679 (WebCore::StorageThread::threadEntryPointCallback):
3680 (WebCore::StorageThread::threadEntryPoint):
3681 (WebCore::StorageThread::scheduleTask):
3682 (WebCore::StorageThread::terminate):
3683 (WebCore::StorageThread::performTerminate):
3684 * storage/StorageThread.h: Renamed from Source/WebCore/storage/LocalStorageThread.h.
3687 * storage/StorageTracker.cpp:
3688 (WebCore::StorageTracker::StorageTracker):
3689 (WebCore::StorageTracker::importOriginIdentifiers):
3690 (WebCore::StorageTracker::setOriginDetails):
3691 (WebCore::StorageTracker::scheduleTask):
3692 (WebCore::StorageTracker::deleteAllOrigins):
3693 (WebCore::StorageTracker::deleteOrigin):
3694 * storage/StorageTracker.h:
3697 * storage/wince/StorageThreadWinCE.cpp: Renamed from Source/WebCore/storage/wince/LocalStorageThreadWinCE.cpp.
3699 (WebCore::StorageThread::StorageThread):
3700 (WebCore::StorageThread::~StorageThread):
3701 (WebCore::StorageThread::start):
3702 (WebCore::StorageThread::timerFired):
3703 (WebCore::StorageThread::scheduleImport):
3704 (WebCore::StorageThread::scheduleSync):
3705 (WebCore::StorageThread::terminate):
3706 (WebCore::StorageThread::performTerminate):
3707 * storage/wince/StorageThreadWinCE.h: Renamed from Source/WebCore/storage/wince/LocalStorageThreadWinCE.h.
3710 (WebCore::StorageThread::create):
3712 2012-02-23 Pavel Feldman <pfeldman@chromium.org>
3714 Web Inspector: prepare border images on timelines to enable zooming.
3715 https://bugs.webkit.org/show_bug.cgi?id=79360
3717 Reviewed by Yury Semikhatsky.
3719 * inspector/front-end/Images/timelineBarBlue.png:
3720 * inspector/front-end/Images/timelineBarGray.png:
3721 * inspector/front-end/Images/timelineBarGreen.png:
3722 * inspector/front-end/Images/timelineBarOrange.png:
3723 * inspector/front-end/Images/timelineBarPurple.png:
3724 * inspector/front-end/Images/timelineBarRed.png:
3725 * inspector/front-end/Images/timelineBarYellow.png:
3726 * inspector/front-end/Images/timelineHollowPillBlue.png:
3727 * inspector/front-end/Images/timelineHollowPillGray.png:
3728 * inspector/front-end/Images/timelineHollowPillGreen.png:
3729 * inspector/front-end/Images/timelineHollowPillOrange.png:
3730 * inspector/front-end/Images/timelineHollowPillPurple.png:
3731 * inspector/front-end/Images/timelineHollowPillRed.png:
3732 * inspector/front-end/Images/timelineHollowPillYellow.png:
3733 * inspector/front-end/Images/timelinePillBlue.png:
3734 * inspector/front-end/Images/timelinePillGray.png:
3735 * inspector/front-end/Images/timelinePillGreen.png:
3736 * inspector/front-end/Images/timelinePillOrange.png:
3737 * inspector/front-end/Images/timelinePillPurple.png:
3738 * inspector/front-end/Images/timelinePillRed.png:
3739 * inspector/front-end/Images/timelinePillYellow.png:
3740 * inspector/front-end/inspectorCommon.css:
3742 * inspector/front-end/networkLogView.css:
3743 (.network-graph-bar):
3744 (.resource-cached .network-graph-bar):
3745 (.network-category-documents .network-graph-bar):
3746 (.network-category-documents.resource-cached .network-graph-bar):
3747 (.network-category-stylesheets .network-graph-bar):
3748 (.network-category-stylesheets.resource-cached .network-graph-bar):
3749 (.network-category-images.resource-cached .network-graph-bar):
3750 (.network-category-fonts .network-graph-bar):
3751 (.network-category-fonts.resource-cached .network-graph-bar):
3752 (.network-category-scripts .network-graph-bar):
3753 (.network-category-scripts.resource-cached .network-graph-bar):
3754 (.network-category-xhr .network-graph-bar):
3755 (.network-category-xhr.resource-cached .network-graph-bar):
3756 (.network-category-websockets .network-graph-bar):
3757 (.network-category-websockets.resource-cached .network-graph-bar):
3759 2012-02-23 Yury Semikhatsky <yurys@chromium.org>
3761 Web Inspector: exception in front-end on selecting an element in heap snapshot
3762 https://bugs.webkit.org/show_bug.cgi?id=79447
3764 Fixed a typo in method name and added a check that selected node has
3765 corresponding heap snapshot object before adding that object to the console
3768 Reviewed by Pavel Feldman.
3770 * inspector/front-end/DetailedHeapshotView.js:
3771 (WebInspector.DetailedHeapshotView.prototype._inspectedObjectChanged):
3773 2012-02-23 Pavel Feldman <pfeldman@chromium.org>
3775 Web Inspector: hide color picker upon panel switch.
3776 https://bugs.webkit.org/show_bug.cgi?id=79355
3778 Reviewed by Vsevolod Vlasov.
3780 * inspector/front-end/ElementsPanel.js:
3781 (WebInspector.ElementsPanel.prototype.willHide):
3782 * inspector/front-end/StylesSidebarPane.js:
3783 (WebInspector.StylesSidebarPane.prototype._showUserAgentStylesSettingChanged):
3784 (WebInspector.StylesSidebarPane.prototype.willHide):
3786 2012-02-23 Pavel Feldman <pfeldman@chromium.org>
3788 Web Inspector: make color review larger in the color picker.
3789 https://bugs.webkit.org/show_bug.cgi?id=79339
3791 Reviewed by Vsevolod Vlasov.
3793 * inspector/front-end/Popover.js:
3794 (WebInspector.Popover.prototype.hide):
3795 * inspector/front-end/Spectrum.js:
3796 * inspector/front-end/elementsPanel.css:
3797 (.spectrum-container):
3799 (.spectrum-display-value):
3802 (.spectrum-range-container label):
3803 (.spectrum-range-container input):
3805 (.spectrum-container .swatch):
3806 * inspector/front-end/inspector.css:
3809 2012-02-23 Kenichi Ishibashi <bashi@chromium.org>
3811 [Chromium] Add HarfBuzzShaperBase class
3812 https://bugs.webkit.org/show_bug.cgi?id=79336
3814 Extract a part of ComplexTextControllerHarfBuzz class as
3815 HarfBuzzShaperBase class. This patch intends to share the code between
3816 old HarfBuzz and HarfBuzz-ng.
3818 Reviewed by Tony Chang.
3820 No new tests. No behavior change. Existing tests in fast/text should pass.
3822 * PlatformBlackBerry.cmake: Added HarfBuzzShaperBase.cpp.
3823 * WebCore.gyp/WebCore.gyp: Added HarfBuzzShaperBase.(cpp|h).
3824 * WebCore.gypi: Ditto.
3825 * platform/graphics/harfbuzz/ComplexTextControllerHarfBuzz.cpp:
3826 (WebCore::ComplexTextController::ComplexTextController): Removed redundant arguments.
3827 (WebCore::ComplexTextController::nextScriptRun): Use m_normalizedBuffer and m_normalizedBufferLength instead of m_run.
3828 (WebCore::ComplexTextController::setupFontForScriptRun): Ditto.
3829 (WebCore::ComplexTextController::setGlyphPositions): Ditto.
3830 * platform/graphics/harfbuzz/ComplexTextControllerHarfBuzz.h:
3831 (ComplexTextController):
3832 * platform/graphics/harfbuzz/FontHarfBuzz.cpp:
3833 (WebCore::Font::drawComplexText): Removed redundant arguments of ComplexTextController constructor.
3834 (WebCore::Font::floatWidthForComplexText): Ditto.
3835 (WebCore::Font::offsetForPositionForComplexText): Ditto.
3836 (WebCore::Font::selectionRectForComplexText): Ditto.
3837 * platform/graphics/harfbuzz/HarfBuzzShaperBase.cpp: Added.
3839 (WebCore::HarfBuzzShaperBase::HarfBuzzShaperBase):
3840 (WebCore::normalizeSpacesAndMirrorChars):
3841 (WebCore::HarfBuzzShaperBase::setNormalizedBuffer):
3842 (WebCore::HarfBuzzShaperBase::isWordEnd):
3843 (WebCore::HarfBuzzShaperBase::determineWordBreakSpacing):
3844 (WebCore::HarfBuzzShaperBase::setPadding):
3845 * platform/graphics/harfbuzz/HarfBuzzShaperBase.h: Added.
3847 (HarfBuzzShaperBase):
3848 (WebCore::HarfBuzzShaperBase::~HarfBuzzShaperBase):
3849 (WebCore::HarfBuzzShaperBase::isCodepointSpace):
3851 2012-02-23 Kenichi Ishibashi <bashi@chromium.org>
3853 Adding WebSocket per-frame DEFLATE extension
3854 https://bugs.webkit.org/show_bug.cgi?id=77522
3856 Add WebSocketDeflateFramer class which handles deflate-frame extension.
3857 This class encapsulates WebSocketDeflater and WebSocketInflater classes,
3858 which depend on zlib, so that WebSocketChannel is not necessary to aware
3861 This is the second patch to land. The previous patch broke Chromium Win
3862 release build. r108600 should fix the build failure. I also added
3863 zlib entry to |export_dependent_settings| of |webcore_prerequisites|
3866 Reviewed by Kent Tamura.
3868 Tests: http/tests/websocket/tests/hybi/compressed-control-frame.html
3869 http/tests/websocket/tests/hybi/deflate-frame-comp-bit-onoff.html
3870 http/tests/websocket/tests/hybi/deflate-frame-invalid-parameter.html
3871 http/tests/websocket/tests/hybi/deflate-frame-parameter.html
3873 * CMakeLists.txt: Added WebSocketDeflateFramer.(cpp|h)
3874 * GNUmakefile.list.am: Ditto.
3875 * Target.pri: Ditto.
3876 * WebCore.gypi: Ditto.
3877 * WebCore.gyp/WebCore.gyp: Added zlib dependency.
3878 * WebCore.vcproj/WebCore.vcproj: Added WebSocketDeflateFramer.(cpp|h)
3879 * WebCore.xcodeproj/project.pbxproj: Ditto.
3880 * websockets/WebSocket.cpp:
3881 (WebCore::WebSocket::didConnect): Set m_extensions.
3882 * websockets/WebSocketChannel.cpp:
3883 (WebCore::WebSocketChannel::connect): Add deflate-frame extension processor to WebSocketHanshake if deflate can use.
3884 (WebCore::WebSocketChannel::fail): Call m_deflateFramer.didFail().
3885 (WebCore::WebSocketChannel::processFrame): Decompress frames if needed.
3886 (WebCore::WebSocketChannel::sendFrame): Compress frames if possible.
3887 * websockets/WebSocketChannel.h:
3888 * websockets/WebSocketDeflateFramer.cpp: Added.
3890 (WebSocketExtensionDeflateFrame):
3891 (WebCore::WebSocketExtensionDeflateFrame::create):
3892 (WebCore::WebSocketExtensionDeflateFrame::~WebSocketExtensionDeflateFrame):
3893 (WebCore::WebSocketExtensionDeflateFrame::WebSocketExtensionDeflateFrame):
3894 (WebCore::WebSocketExtensionDeflateFrame::handshakeString):
3895 (WebCore::WebSocketExtensionDeflateFrame::processResponse):
3896 (WebCore::DeflateResultHolder::DeflateResultHolder):
3897 (WebCore::DeflateResultHolder::~DeflateResultHolder):
3898 (WebCore::DeflateResultHolder::fail):
3899 (WebCore::InflateResultHolder::InflateResultHolder):
3900 (WebCore::InflateResultHolder::~InflateResultHolder):
3901 (WebCore::InflateResultHolder::fail):
3902 (WebCore::WebSocketDeflateFramer::WebSocketDeflateFramer):
3903 (WebCore::WebSocketDeflateFramer::createExtensionProcessor):
3904 (WebCore::WebSocketDeflateFramer::canDeflate):
3905 (WebCore::WebSocketDeflateFramer::enableDeflate):
3906 (WebCore::WebSocketDeflateFramer::deflate):
3907 (WebCore::WebSocketDeflateFramer::resetDeflateContext):
3908 (WebCore::WebSocketDeflateFramer::inflate):
3909 (WebCore::WebSocketDeflateFramer::resetInflateContext):
3910 (WebCore::WebSocketDeflateFramer::didFail):
3911 * websockets/WebSocketDeflateFramer.h: Added.
3913 (DeflateResultHolder):
3914 (WebCore::DeflateResultHolder::succeeded):
3915 (WebCore::DeflateResultHolder::failureReason):
3916 (InflateResultHolder):
3917 (WebCore::InflateResultHolder::succeeded):
3918 (WebCore::InflateResultHolder::failureReason):
3919 (WebSocketDeflateFramer):
3920 (WebCore::WebSocketDeflateFramer::enabled):
3922 2012-02-23 Andy Estes <aestes@apple.com>
3924 Rename [setS|s]uppressIncrementalRendering to [setS|s]uppressesIncrementalRendering and make it WebPreferences API.
3925 https://bugs.webkit.org/show_bug.cgi?id=79433
3927 Reviewed by Dan Bernstein.
3930 (WebCore::Document::implicitClose):
3931 (WebCore::Document::visualUpdatesAllowed):
3932 * page/Settings.cpp:
3933 (WebCore::Settings::Settings):
3935 (WebCore::Settings::setSuppressesIncrementalRendering):
3936 (WebCore::Settings::suppressesIncrementalRendering):
3939 2012-02-23 Erik Arvidsson <arv@chromium.org>
3941 Rename DOMWindow to Window in the bindings
3942 https://bugs.webkit.org/show_bug.cgi?id=78721
3944 Reviewed by Adam Barth.
3946 Covered by existing tests.
3948 * inspector/front-end/DetailedHeapshotGridNodes.js:
3949 (WebInspector.HeapSnapshotGenericObjectNode):
3950 (WebInspector.HeapSnapshotGenericObjectNode.prototype.isWindow):
3951 * inspector/front-end/HeapSnapshot.js:
3952 (WebInspector.HeapSnapshotNode.prototype.get isWindow):
3953 (WebInspector.HeapSnapshot.prototype._calculateObjectToWindowDistance):
3954 (WebInspector.HeapSnapshot.prototype._markQueriableHeapObjects):
3955 * page/DOMWindow.idl:
3957 2012-02-23 Shinya Kawanaka <shinyak@chromium.org>
3959 NodeRenderingContext should have ShadowRootList instead of ShadowRoot.
3960 https://bugs.webkit.org/show_bug.cgi?id=79079
3962 Reviewed by Dimitri Glazkov.
3964 Apparently NodeRenderingContext should have ShadowRootList instead of ShadowRoot.
3965 This patch changes it.
3967 No new tests. Simple refactoring.
3969 * dom/NodeRenderingContext.cpp:
3970 (WebCore::NodeRenderingContext::NodeRenderingContext):
3971 (WebCore::NodeRenderingContext::hostChildrenChanged):
3972 (WebCore::NodeRenderingContext::shouldCreateRenderer):
3973 * dom/NodeRenderingContext.h:
3976 2012-02-23 Ian Vollick <vollick@chromium.org>
3978 [chromium] Implement keyframed animations for the cc thread.
3979 https://bugs.webkit.org/show_bug.cgi?id=77229
3981 Reviewed by James Robinson.
3984 * platform/graphics/chromium/LayerChromium.cpp:
3985 (WebCore::LayerChromium::hasActiveAnimation):
3987 * platform/graphics/chromium/LayerChromium.h:
3989 * platform/graphics/chromium/cc/CCActiveAnimation.cpp:
3990 (WebCore::CCActiveAnimation::CCActiveAnimation):
3991 (WebCore::CCActiveAnimation::isFinishedAt):
3992 (WebCore::CCActiveAnimation::trimTimeToCurrentIteration):
3993 (WebCore::CCActiveAnimation::cloneForImplThread):
3994 * platform/graphics/chromium/cc/CCActiveAnimation.h:
3995 (WebCore::CCActiveAnimation::curve):
3996 (CCActiveAnimation):
3997 * platform/graphics/chromium/cc/CCKeyframedAnimationCurve.cpp: Added.
3998 (WebCore::CCKeyframedFloatAnimationCurve::create):
4000 (WebCore::CCKeyframedFloatAnimationCurve::CCKeyframedFloatAnimationCurve):
4001 (WebCore::CCKeyframedFloatAnimationCurve::~CCKeyframedFloatAnimationCurve):
4002 (WebCore::CCKeyframedFloatAnimationCurve::duration):
4003 (WebCore::CCKeyframedFloatAnimationCurve::clone):
4004 (WebCore::CCKeyframedFloatAnimationCurve::getValue):
4005 (WebCore::CCKeyframedTransformAnimationCurve::create):
4006 (WebCore::CCKeyframedTransformAnimationCurve::CCKeyframedTransformAnimationCurve):
4007 (WebCore::CCKeyframedTransformAnimationCurve::~CCKeyframedTransformAnimationCurve):
4008 (WebCore::CCKeyframedTransformAnimationCurve::duration):
4009 (WebCore::CCKeyframedTransformAnimationCurve::clone):
4010 (WebCore::CCKeyframedTransformAnimationCurve::getValue):
4011 * platform/graphics/chromium/cc/CCKeyframedAnimationCurve.h: Added.
4013 (WebCore::CCFloatKeyframe::CCFloatKeyframe):
4015 (WebCore::CCTransformKeyframe::CCTransformKeyframe):
4016 (CCTransformKeyframe):
4017 (CCKeyframedFloatAnimationCurve):
4018 (CCKeyframedTransformAnimationCurve):
4019 * platform/graphics/chromium/cc/CCLayerAnimationController.cpp:
4020 (WebCore::CCLayerAnimationController::addAnimation):
4021 * platform/graphics/chromium/cc/CCLayerAnimationController.h:
4022 (WebCore::CCLayerAnimationController::hasActiveAnimation):
4023 (CCLayerAnimationController):
4024 * platform/graphics/chromium/cc/CCLayerAnimationControllerImpl.cpp:
4025 (WebCore::CCLayerAnimationControllerImpl::tickAnimations):
4027 2012-02-23 Raymond Toy <rtoy@google.com>
4029 Use MathExtras round() in timeToSampleFrame
4030 https://bugs.webkit.org/show_bug.cgi?id=79281
4032 Reviewed by Chris Rogers.
4034 No new tests. Existing tests cover this change.
4036 * platform/audio/AudioUtilities.cpp:
4037 (WebCore::AudioUtilities::timeToSampleFrame): Use round().
4039 2012-02-23 Greg Billock <gbillock@google.com>
4041 Don't clear IntentRequest callback pointers on stop()
4043 This causes re-entry into ScriptExecutionContext when
4044 the ActiveDOMCallback objects get deleted, which crashes.
4045 Instead, just de-activate the object and wait for
4046 context destruction to clean up.
4048 Test crashes consistently without fix and passes with fix.
4049 Added some test infrastructure to support this test.
4050 https://bugs.webkit.org/show_bug.cgi?id=78638
4052 Reviewed by Adam Barth.
4054 * Modules/intents/IntentRequest.cpp:
4055 (WebCore::IntentRequest::IntentRequest):
4056 (WebCore::IntentRequest::stop):
4057 (WebCore::IntentRequest::postResult):
4058 (WebCore::IntentRequest::postFailure):
4059 * Modules/intents/IntentRequest.h:
4062 2012-02-23 Konrad Piascik <kpiascik@rim.com>
4064 Upstream BlackBerry Cookie Management Classes
4065 https://bugs.webkit.org/show_bug.cgi?id=73654
4067 Reviewed by Rob Buis.
4069 Added ManualTests/cookieSpeedTest.html as well as tested functionality
4070 on the BlackBerry port with http://testsuites.opera.com/cookies/
4071 Passes all non Cookie 2 tests since Cookie 2 is not implemented/supported at this time.
4072 Error handling and extended tests do not all pass and will be updated with future bugs/patches.
4074 * platform/blackberry/CookieDatabaseBackingStore/CookieDatabaseBackingStore.cpp: Added.
4075 * platform/blackberry/CookieDatabaseBackingStore/CookieDatabaseBackingStore.h: Added.
4076 * platform/blackberry/CookieJarBlackBerry.cpp: Added.
4077 * platform/blackberry/CookieManager.cpp: Added.
4078 * platform/blackberry/CookieManager.h: Added.
4079 * platform/blackberry/CookieMap.cpp: Added.
4080 * platform/blackberry/CookieMap.h: Added.
4081 * platform/blackberry/CookieParser.cpp: Added.
4082 * platform/blackberry/CookieParser.h: Added.
4083 * platform/blackberry/ParsedCookie.cpp: Added.
4084 * platform/blackberry/ParsedCookie.h: Added.
4086 2012-02-23 Levi Weintraub <leviw@chromium.org>
4088 Switch drawLineForBoxSide to use integers
4089 https://bugs.webkit.org/show_bug.cgi?id=78647
4091 Reviewed by Eric Seidel.
4093 drawLineForBoxSide handles painting lines for boxes which must be done on pixel boundaries.
4094 Its interface doesn't make it possible to pixel snap properly within the function itself --
4095 it draws one side of the box at a time, and the logical right and bottom lines can only be
4096 properly determined using the logical top and left positions -- so it needs to be treated
4097 like a graphics context function, whereby the caller handles the proper pixel snapping before
4098 passing the values in.
4100 No new tests. No change in behavior.
4102 * rendering/LayoutTypes.h:
4103 (WebCore::pixelSnappedIntRectFromEdges): convenience function for returning a pixel snapped
4104 int rect from four LayoutUnits that are its edges (as opposed to position and size).
4105 * rendering/RenderBlock.cpp:
4106 (WebCore::RenderBlock::paintColumnRules): Pixel snapping the column rule rect.
4107 * rendering/RenderBoxModelObject.cpp:
4108 (WebCore::RenderBoxModelObject::paintOneBorderSide): Side rects are now IntRects by the time
4109 they get to paintOneBorderSide.
4110 (WebCore::calculateSideRect): Properly use RoundedRect as IntRects instead of LayoutRects.
4111 (WebCore::RenderBoxModelObject::paintBorderSides): Ditto.
4112 (WebCore::RenderBoxModelObject::paintBorder): Ditto.
4113 (WebCore::calculateSideRectIncludingInner): Ditto.
4114 * rendering/RenderBoxModelObject.h:
4115 (RenderBoxModelObject):
4116 * rendering/RenderInline.cpp:
4117 (WebCore::RenderInline::paintOutlineForLine): Outline widths are related to borders and stored
4118 as ints. Removing an unnecessary conversion to LayoutUnits. Pixel snapping the edges of the box.
4119 * rendering/RenderObject.cpp:
4120 (WebCore::RenderObject::drawLineForBo