1 2012-02-27 Ojan Vafai <ojan@chromium.org>
3 implement display: -webkit-inline-flexbox
4 https://bugs.webkit.org/show_bug.cgi?id=77772
6 Reviewed by David Hyatt.
8 Tests: css3/flexbox/inline-flexbox-expected.html
9 css3/flexbox/inline-flexbox.html
11 * rendering/style/RenderStyle.h:
12 -Add INLINE_FLEXBOX to the list of replaced display types.
13 -Restructure the isDisplayInline methods to avoid code duplication.
15 2012-02-27 Ken Buchanan <kenrb@chromium.org>
17 Absolute positioned elements with Inline Relative Positioned Container are not layout correctly
18 https://bugs.webkit.org/show_bug.cgi?id=78713
20 Reviewed by David Hyatt.
22 Test: fast/css/positioned-in-relative-position-inline-crash.html
24 Patch originally by Robin Cao.
26 This is a regression. r104183 changes containingBlock() so that it returns the container
27 of an anonymous block for positioned objects, not the anonymous block itself. We should
28 change markContainingBlocksForLayout() to match the change in containingBlock().
30 * rendering/RenderObject.cpp:
31 (WebCore::RenderObject::markContainingBlocksForLayout):
33 2012-02-27 Pavel Feldman <pfeldman@google.com>
35 Web Inspector: move record formatting into the timeline presentation model.
36 https://bugs.webkit.org/show_bug.cgi?id=79684
38 Drive-by: fix for stop recording in reset; cpu time restored.
40 Reviewed by Vsevolod Vlasov.
42 * inspector/front-end/TimelineModel.js:
43 (WebInspector.TimelineModel.prototype.reset):
44 * inspector/front-end/TimelineOverviewPane.js:
45 (WebInspector.TimelineOverviewPane.prototype.update.updateBoundaries):
46 (WebInspector.TimelineOverviewCalculator.prototype.updateBoundaries):
47 * inspector/front-end/TimelinePanel.js:
48 (WebInspector.TimelinePanel):
49 (WebInspector.TimelinePanel.prototype._rootRecord):
50 (WebInspector.TimelinePanel.prototype._updateRecordsCounter):
51 (WebInspector.TimelinePanel.prototype._repopulateRecords):
52 (WebInspector.TimelinePanel.prototype._onTimelineEventRecorded):
53 (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
54 (WebInspector.TimelinePanel.prototype._resetPanel):
55 (WebInspector.TimelinePanel.prototype._refresh):
56 (WebInspector.TimelinePanel.prototype._updateBoundaries):
57 (WebInspector.TimelinePanel.prototype._filterRecords):
58 (WebInspector.TimelinePanel.prototype.revealRecordAt):
59 (WebInspector.TimelinePanel.prototype._showPopover):
60 (WebInspector.TimelineCalculator.prototype.computeBarGraphPercentages):
61 (WebInspector.TimelineCalculator.prototype.computeBarGraphWindowPosition):
62 (WebInspector.TimelineCalculator.prototype.updateBoundaries):
63 (WebInspector.TimelineStartAtZeroCalculator.prototype.computeBarGraphPercentages):
64 (WebInspector.TimelineRecordGraphRow):
65 (WebInspector.TimelineRecordGraphRow.prototype.update):
66 * inspector/front-end/TimelinePresentationModel.js:
67 (WebInspector.TimelinePresentationModel):
68 (WebInspector.TimelinePresentationModel.prototype.createFormattedRecord):
69 (WebInspector.TimelinePresentationModel.prototype._createRootRecord):
70 (WebInspector.TimelinePresentationModel.prototype.rootRecord):
71 (WebInspector.TimelinePresentationModel.prototype.reset):
72 (WebInspector.TimelinePresentationModel.prototype._findParentRecord):
73 (WebInspector.TimelinePresentationModel.prototype._resetWindow):
74 (WebInspector.TimelinePresentationModel.prototype._addCategory):
75 (WebInspector.TimelinePresentationModel.prototype.setCategoryVisibility):
76 (WebInspector.TimelinePresentationModel.prototype.get _recordStyles):
77 (WebInspector.TimelinePresentationModel.Record):
78 (WebInspector.TimelinePresentationModel.Record.prototype.get lastChildEndTime):
79 (WebInspector.TimelinePresentationModel.Record.prototype.set lastChildEndTime):
80 (WebInspector.TimelinePresentationModel.Record.prototype.get selfTime):
81 (WebInspector.TimelinePresentationModel.Record.prototype.set selfTime):
82 (WebInspector.TimelinePresentationModel.Record.prototype.get cpuTime):
83 (WebInspector.TimelinePresentationModel.Record.prototype.isLong):
84 (WebInspector.TimelinePresentationModel.Record.prototype.get children):
85 (WebInspector.TimelinePresentationModel.Record.prototype.containsTime):
86 (WebInspector.TimelinePresentationModel.Record.prototype._generateAggregatedInfo):
87 (WebInspector.TimelinePresentationModel.Record.prototype.generatePopupContent):
88 (WebInspector.TimelinePresentationModel.Record.prototype._refreshDetails):
89 (WebInspector.TimelinePresentationModel.Record.prototype._getRecordDetails):
90 (WebInspector.TimelinePresentationModel.Record.prototype._linkifyLocation):
91 (WebInspector.TimelinePresentationModel.Record.prototype._linkifyCallFrame):
92 (WebInspector.TimelinePresentationModel.Record.prototype._linkifyTopCallFrame):
93 (WebInspector.TimelinePresentationModel.Record.prototype._linkifyScriptLocation):
94 (WebInspector.TimelinePresentationModel.Record.prototype.calculateAggregatedStats):
95 (WebInspector.TimelinePresentationModel.Record.prototype.get aggregatedStats):
96 (WebInspector.TimelinePresentationModel.PopupContentHelper):
97 (WebInspector.TimelinePresentationModel.PopupContentHelper.prototype._createCell):
98 (WebInspector.TimelinePresentationModel.PopupContentHelper.prototype._appendTextRow):
99 (WebInspector.TimelinePresentationModel.PopupContentHelper.prototype._appendElementRow):
100 (WebInspector.TimelinePresentationModel.PopupContentHelper.prototype._appendStackTrace):
101 * inspector/front-end/timelinePanel.css:
102 (.timeline-graph-bar.cpu):
104 2012-02-27 Vsevolod Vlasov <vsevik@chromium.org>
106 Web Inspector: Scripts navigator overlay should not consume mouse actions.
107 https://bugs.webkit.org/show_bug.cgi?id=79674
109 Reviewed by Pavel Feldman.
111 * inspector/front-end/Panel.js:
112 (WebInspector.Panel.prototype.registerShortcut):
113 (WebInspector.Panel.prototype.unregisterShortcut):
114 * inspector/front-end/ScriptsPanel.js:
115 (WebInspector.ScriptsPanel.prototype._editorClosed):
116 (WebInspector.ScriptsPanel.prototype._editorSelected):
117 (WebInspector.ScriptsPanel.prototype._fileSelected):
118 (WebInspector.ScriptsPanel.prototype._escDownWhileNavigatorOverlayOpen):
119 (WebInspector.ScriptsPanel.prototype.set _showNavigatorOverlay):
120 (WebInspector.ScriptsPanel.prototype._hideNavigatorOverlay):
121 (WebInspector.ScriptsPanel.prototype._navigatorOverlayWasShown):
122 * inspector/front-end/SidebarOverlay.js:
123 (WebInspector.SidebarOverlay):
124 (WebInspector.SidebarOverlay.prototype.show):
125 (WebInspector.SidebarOverlay.prototype._containingElementFocused):
126 (WebInspector.SidebarOverlay.prototype.position):
127 (WebInspector.SidebarOverlay.prototype.hide):
128 (WebInspector.SidebarOverlay.prototype._setWidth):
129 * inspector/front-end/dialog.css:
130 (.go-to-line-dialog button:active):
131 * inspector/front-end/scriptsPanel.css:
132 (#scripts-editor-view .sidebar-overlay):
133 * inspector/front-end/splitView.css:
134 (.split-view-resizer):
136 (.sidebar-overlay-resizer):
138 2012-02-27 Philippe Normand <pnormand@igalia.com>
140 [GStreamer] 0.11 support in MediaPlayerPrivateGStreamer
141 https://bugs.webkit.org/show_bug.cgi?id=77089
143 Reviewed by Martin Robinson.
145 Basic port to GStreamer 0.11 APIs. This patch excludes the video
146 painting changes and the GStreamerGWorld changes which are handled
147 in two other patches (bugs 77087 and 77088).
149 * GNUmakefile.list.am: Add GStreamerVersioning files to the build.
150 * Source/WebCore/PlatformEfl.cmake: Ditto.
151 * Source/WebCore/Target.pri: Ditto.
152 * platform/graphics/gstreamer/GRefPtrGStreamer.cpp:
155 (WTF::GstPadTemplate):
157 * platform/graphics/gstreamer/GStreamerVersioning.cpp: Added.
158 (webkit_gst_object_ref_sink):
159 (webkit_gst_element_get_pad_caps):
160 * platform/graphics/gstreamer/GStreamerVersioning.h: Added.
161 * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
162 (WebCore::MediaPlayerPrivateGStreamer::isAvailable):
163 (WebCore::MediaPlayerPrivateGStreamer::duration):
164 (WebCore::MediaPlayerPrivateGStreamer::naturalSize):
166 2012-02-27 Philip Rogers <pdr@google.com>
168 Stop recomputing SVG path data twice during layout
169 https://bugs.webkit.org/show_bug.cgi?id=79672
171 Reviewed by Nikolas Zimmermann.
173 * rendering/svg/RenderSVGShape.cpp:
174 (WebCore::RenderSVGShape::layout):
176 2012-02-27 Timothy Hatcher <timothy@apple.com>
178 Updated for WebKit2 string changes.
180 https://webkit.org/b/79649
182 Reviewed by John Sullivan.
184 * English.lproj/Localizable.strings: Updated.
186 2012-02-27 Pavel Feldman <pfeldman@google.com>
188 Web Inspector: Ctrl+K should not zoom in
189 https://bugs.webkit.org/show_bug.cgi?id=79676
191 Reviewed by Vsevolod Vlasov.
193 * inspector/front-end/inspector.js:
194 (WebInspector.documentKeyDown):
196 2012-02-27 Pavel Feldman <pfeldman@google.com>
198 Web Inspector: extract TimelineModel and TimelinePresentationModel into their own files.
199 https://bugs.webkit.org/show_bug.cgi?id=79675
201 Reviewed by Vsevolod Vlasov.
204 * WebCore.vcproj/WebCore.vcproj:
205 * inspector/compile-front-end.sh:
206 * inspector/front-end/TimelineAgent.js: Removed.
207 * inspector/front-end/TimelineModel.js: Added.
208 (WebInspector.TimelineModel):
209 (WebInspector.TimelineModel.prototype.startRecord):
210 (WebInspector.TimelineModel.prototype.stopRecord):
211 (WebInspector.TimelineModel.prototype.get records):
212 (WebInspector.TimelineModel.prototype._onRecordAdded):
213 (WebInspector.TimelineModel.prototype._addRecord):
214 (WebInspector.TimelineModel.prototype._loadNextChunk):
215 (WebInspector.TimelineModel.prototype._loadFromFile):
216 (WebInspector.TimelineModel.prototype._loadFromFile.onError):
217 (WebInspector.TimelineModel.prototype._saveToFile):
218 (WebInspector.TimelineModel.prototype._reset):
219 * inspector/front-end/TimelinePanel.js:
220 (WebInspector.TimelinePanel.prototype.get _recordStyles):
221 (WebInspector.TimelinePanel.prototype._createEventDivider):
222 (WebInspector.TimelinePanel.prototype._findParentRecord):
223 (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
224 (WebInspector.TimelinePanel.prototype._refreshRecords):
225 (WebInspector.TimelinePanel.FormattedRecord):
226 (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
227 (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
228 * inspector/front-end/TimelinePresentationModel.js: Added.
229 (WebInspector.TimelinePresentationModel):
230 (WebInspector.TimelinePresentationModel.prototype.reset):
231 (WebInspector.TimelinePresentationModel.prototype.get categories):
232 (WebInspector.TimelinePresentationModel.prototype.addCategory):
233 (WebInspector.TimelinePresentationModel.prototype.setWindowPosition):
234 (WebInspector.TimelinePresentationModel.prototype.setWindowIndices):
235 (WebInspector.TimelinePresentationModel.prototype.setCategoryVisibility):
236 * inspector/front-end/WebKit.qrc:
237 * inspector/front-end/inspector.html:
239 2012-02-27 Alexander Pavlov <apavlov@chromium.org>
241 Web Inspector: [Styles] Allow adding CSS properties anywhere in the style declaration, not only at the end
242 https://bugs.webkit.org/show_bug.cgi?id=79662
244 Reviewed by Pavel Feldman.
246 * inspector/front-end/CSSStyleModel.js:
247 (WebInspector.CSSStyleDeclaration.prototype.newBlankProperty):
248 (WebInspector.CSSProperty.prototype.setText):
249 (WebInspector.CSSProperty.prototype.setValue):
250 * inspector/front-end/MetricsSidebarPane.js:
251 (WebInspector.MetricsSidebarPane.prototype._applyUserInput):
252 * inspector/front-end/StylesSidebarPane.js:
253 (WebInspector.StylePropertiesSection):
254 (WebInspector.StylePropertiesSection.prototype._handleSelectorContainerClick):
255 (WebInspector.StylePropertiesSection.prototype.addNewBlankProperty):
256 (WebInspector.StylePropertyTreeElement.prototype):
257 (WebInspector.StylePropertyTreeElement.prototype.element.userInput.previousContent.context.moveDirection):
258 (WebInspector.StylePropertyTreeElement.prototype.styleText.updateInterface.majorChange.isRevert):
260 2012-02-27 Pavel Feldman <pfeldman@google.com>
262 [Shadow]: Expose one ShadowRoot in the Elements panel (under experiment flag)
263 https://bugs.webkit.org/show_bug.cgi?id=78202
265 Reviewed by Yury Semikhatsky.
267 * dom/ShadowTree.cpp:
268 (WebCore::ShadowTree::pushShadowRoot):
269 (WebCore::ShadowTree::popShadowRoot):
270 * inspector/Inspector.json:
271 * inspector/InspectorDOMAgent.cpp:
272 (WebCore::InspectorDOMAgent::unbind):
273 (WebCore::InspectorDOMAgent::assertEditableNode):
274 (WebCore::InspectorDOMAgent::assertEditableElement):
275 (WebCore::InspectorDOMAgent::pushChildNodesToFrontend):
276 (WebCore::InspectorDOMAgent::setAttributeValue):
277 (WebCore::InspectorDOMAgent::setAttributesAsText):
278 (WebCore::InspectorDOMAgent::removeAttribute):
279 (WebCore::InspectorDOMAgent::removeNode):
280 (WebCore::InspectorDOMAgent::setOuterHTML):
281 (WebCore::InspectorDOMAgent::setNodeValue):
282 (WebCore::InspectorDOMAgent::moveTo):
283 (WebCore::InspectorDOMAgent::buildObjectForNode):
284 (WebCore::InspectorDOMAgent::didPushShadowRoot):
286 (WebCore::InspectorDOMAgent::willPopShadowRoot):
287 * inspector/InspectorDOMAgent.h:
290 * inspector/InspectorInstrumentation.cpp:
291 (WebCore::InspectorInstrumentation::didPushShadowRootImpl):
293 (WebCore::InspectorInstrumentation::willPopShadowRootImpl):
294 * inspector/InspectorInstrumentation.h:
296 (InspectorInstrumentation):
297 (WebCore::InspectorInstrumentation::didPushShadowRoot):
298 (WebCore::InspectorInstrumentation::willPopShadowRoot):
299 * inspector/PageConsoleAgent.cpp:
300 (WebCore::PageConsoleAgent::addInspectedNode):
301 * inspector/front-end/DOMAgent.js:
302 (WebInspector.DOMNode):
303 (WebInspector.DOMNode.prototype.hasChildNodes):
304 (WebInspector.DOMNode.prototype.isInShadowTree):
305 (WebInspector.DOMNode.prototype._insertChild):
306 (WebInspector.DOMNode.prototype._setChildrenPayload):
307 (WebInspector.DOMDocument):
308 (WebInspector.DOMAgent.prototype._setDetachedRoot):
309 (WebInspector.DOMAgent.prototype._shadowRootPopped):
310 (WebInspector.DOMDispatcher.prototype.childNodeRemoved):
311 (WebInspector.DOMDispatcher.prototype.shadowRootPushed):
312 (WebInspector.DOMDispatcher.prototype.shadowRootPopped):
313 * inspector/front-end/ElementsTreeOutline.js:
314 * inspector/front-end/MemoryStatistics.js:
315 * inspector/front-end/Settings.js:
316 (WebInspector.ExperimentsSettings):
317 * inspector/front-end/inspector.css:
318 (.webkit-html-tag.shadow, .webkit-html-fragment.shadow):
320 2012-02-27 Andrey Kosyakov <caseq@chromium.org>
322 Web Inspector: [refactoring] remove dependencies from TimelinePanel from most of FormattedRecord
323 https://bugs.webkit.org/show_bug.cgi?id=79665
325 Reviewed by Pavel Feldman.
327 * inspector/front-end/TimelinePanel.js:
328 (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
329 (WebInspector.TimelinePanel.FormattedRecord):
330 (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
331 (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
332 (WebInspector.TimelinePanel.FormattedRecord.prototype._linkifyLocation):
333 (WebInspector.TimelinePanel.FormattedRecord.prototype._linkifyCallFrame):
334 (WebInspector.TimelinePanel.FormattedRecord.prototype._linkifyTopCallFrame):
335 (WebInspector.TimelinePanel.FormattedRecord.prototype._linkifyScriptLocation):
336 (WebInspector.TimelinePanel.PopupContentHelper):
337 (WebInspector.TimelinePanel.PopupContentHelper.prototype._appendStackTrace):
339 2012-02-27 Yury Semikhatsky <yurys@chromium.org>
341 Web Inspector: reveal corresponding timeline record when user clicks on memory graph
342 https://bugs.webkit.org/show_bug.cgi?id=79669
344 When user clicks on DOM counter graph corresponding timeline record is
345 revealed in timelime grid and all its ancestors are expanded.
347 Reviewed by Pavel Feldman.
349 * inspector/front-end/MemoryStatistics.js:
350 (WebInspector.MemoryStatistics.prototype._onClick):
351 * inspector/front-end/TimelineOverviewPane.js:
352 (WebInspector.TimelineOverviewPane.prototype.update):
353 (WebInspector.HeapGraph.prototype.update):
354 (WebInspector.HeapGraph.prototype._clear):
355 * inspector/front-end/TimelinePanel.js:
356 (WebInspector.TimelinePanel.prototype.revealRecordAt.recordFinder):
357 (WebInspector.TimelinePanel.prototype.revealRecordAt):
358 (WebInspector.TimelinePanel.prototype._refreshRecords):
359 (WebInspector.TimelinePanel.forAllRecords):
360 (WebInspector.TimelinePanel.FormattedRecord.prototype.containsTime):
362 2012-02-27 Ilya Tikhonovsky <loislo@chromium.org>
364 Unreviewed single line fix for r108983.
366 * inspector/front-end/DetailedHeapshotView.js:
367 (WebInspector.DetailedHeapshotView.prototype.willHide):
369 2012-02-27 Yury Semikhatsky <yurys@chromium.org>
371 Web Inspector: repaint counter graphs when timeline splitter moves
372 https://bugs.webkit.org/show_bug.cgi?id=79644
374 Immediately refresh timeline panel on splitter move.
376 Reviewed by Pavel Feldman.
378 * inspector/front-end/TimelinePanel.js:
379 (WebInspector.TimelinePanel.prototype._splitterDragging):
381 2012-02-27 Carlos Garcia Campos <cgarcia@igalia.com>
383 Unreviewed. Fix make distcheck.
385 * GNUmakefile.am: Add missing files.
386 * GNUmakefile.list.am: Ditto.
388 2012-02-27 Patrick Gansterer <paroga@webkit.org>
390 [CMake] Build fix after r108709.
392 * CMakeLists.txt: Move DOMWindowSVG.idl to the other IDL files.
394 2012-02-27 Ilya Tikhonovsky <loislo@chromium.org>
396 Web Inspector: [chromium] Profiles - Tooltip with object/property types stays on screen when another tab selected
397 https://bugs.webkit.org/show_bug.cgi?id=79654
399 Reviewed by Yury Semikhatsky.
401 * inspector/front-end/DetailedHeapshotView.js:
402 (WebInspector.DetailedHeapshotView.prototype.willHide):
404 2012-02-27 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
406 [Qt] Remove page/PageSupplement.h from WebCore's Target.pri
408 The file itself was removed in r108958.
410 Reviewed by Kenneth Rohde Christiansen.
414 2012-02-27 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
416 [Qt] Use USE() macro instead of ENABLE() for using the Qt image decoder
418 Reviewed by Kenneth Rohde Christiansen..
422 * platform/MIMETypeRegistry.cpp:
423 (WebCore::initializeSupportedImageMIMETypes):
424 (WebCore::initializeSupportedImageMIMETypesForEncoding):
425 * platform/image-decoders/ImageDecoder.h:
426 (WebCore::ImageFrame::getAddr):
428 * platform/image-decoders/qt/ImageFrameQt.cpp:
430 (WebCore::ImageFrame::asNewNativeImage):
432 2012-02-27 MORITA Hajime <morrita@google.com>
434 Removing <ul>, <li> inside shadow DOM triggers assertion in updateListMarkerNumbers
435 https://bugs.webkit.org/show_bug.cgi?id=79630
437 Reviewed by Ryosuke Niwa.
439 This problem was caused by the inconsistent detach order of DOM tree where
440 Element::detach() called ContainerNode::detach() before shadow tree is detached.
441 This resulted the renderer of the element being destroyed even if its children,
442 each of which came from an element in the shadow tree, are alive.
443 In principle, child renderers should be destroyed before its parent.
445 This change aligns the detach order with the attach order. The shadow tree is
446 now deatched before parent's ContainerNode::detach() is called.
448 Test: fast/dom/shadow/shadow-ul-li.html
451 (WebCore::Element::detach):
453 2012-02-27 Keishi Hattori <keishi@webkit.org>
455 Color input type should be clickable through keyboard
456 https://bugs.webkit.org/show_bug.cgi?id=79629
458 Reviewed by Kent Tamura.
460 Introduced BaseClickableWithKeyInputType that represents an input type
461 that can be clicked by pressing space/return keys.
462 ColorInputType, FileInputType directly inherit it because it doesn't
463 want the other methods(like appendFormData) in BaseButtonInputType.
465 * CMakeLists.txt: Added BaseClickableWithKeyInputType.cpp
466 * GNUmakefile.list.am: Added BaseClickableWithKeyInputType.{cpp,h}
467 * Target.pri: Added BaseClickableWithKeyInputType.{cpp,h}
468 * WebCore.gypi: Added BaseClickableWithKeyInputType.{cpp,h}
469 * WebCore.vcproj/WebCore.vcproj: Added BaseClickableWithKeyInputType.{cpp,h}
470 * WebCore.xcodeproj/project.pbxproj: Added BaseClickableWithKeyInputType.{cpp,h}
471 * html/BaseButtonInputType.cpp:
472 * html/BaseButtonInputType.h:
473 (WebCore::BaseButtonInputType::BaseButtonInputType): Inherits BaseClickableWithKeyInputType now.
474 (BaseButtonInputType):
475 * html/BaseCheckableInputType.cpp: Changed comment.
476 * html/BaseClickableWithKeyInputType.cpp:
478 (WebCore::BaseClickableWithKeyInputType::handleKeydownEvent): Moved from BaseButtonInputType
479 (WebCore::BaseClickableWithKeyInputType::handleKeypressEvent): Moved from BaseButtonInputType
480 (WebCore::BaseClickableWithKeyInputType::handleKeyupEvent): Moved from BaseButtonInputType
481 (WebCore::BaseClickableWithKeyInputType::accessKeyAction): Moved from BaseButtonInputType
482 * html/BaseClickableWithKeyInputType.h:
484 (BaseClickableWithKeyInputType): Input type that can be clicked by pressing space/return keys.
485 (WebCore::BaseClickableWithKeyInputType::BaseClickableWithKeyInputType):
486 * html/ColorInputType.h:
487 (WebCore::ColorInputType::ColorInputType): Inherits BaseClickableWithKeyInputType now.
488 * html/FileInputType.cpp:
489 (WebCore::FileInputType::FileInputType):
490 * html/FileInputType.h:
491 (FileInputType): Inherits BaseClickableWithKeyInputType now.
492 * html/RangeInputType.cpp: Changed comment.
495 2012-02-27 Keishi Hattori <keishi@webkit.org>
497 Add missing include to ColorInputType.cpp
498 https://bugs.webkit.org/show_bug.cgi?id=79632
500 Reviewed by Kent Tamura.
502 * html/ColorInputType.cpp: Include ShadowTree.h
504 2012-02-27 Andrey Kosyakov <caseq@chromium.org>
506 Use built-in bind in ExtensionAPI.js
508 Web Inspector: [Extensions API] get rid of custom bind() in favor of built-in
509 https://bugs.webkit.org/show_bug.cgi?id=79570
511 Reviewed by Pavel Feldman.
513 * inspector/front-end/ExtensionAPI.js:
514 (injectedExtensionAPI.EventSinkImpl.prototype.addListener):
515 (injectedExtensionAPI):
516 (injectedExtensionAPI.Panels.prototype.create):
517 (injectedExtensionAPI.AuditResultImpl):
518 (injectedExtensionAPI.ExtensionServerClient):
520 2012-02-21 Pavel Podivilov <podivilov@chromium.org>
522 Web Inspector: get rid of RawSourceCode.sourceMapping getter.
523 https://bugs.webkit.org/show_bug.cgi?id=79461
525 Reviewed by Yury Semikhatsky.
527 * inspector/front-end/BreakpointManager.js:
528 (WebInspector.BreakpointManager.prototype.uiSourceCodeAdded):
529 (WebInspector.BreakpointManager.prototype.setBreakpoint):
530 (WebInspector.BreakpointManager.prototype._materializeBreakpoint):
531 (WebInspector.BreakpointManager.prototype._breakpointDebuggerLocationChanged):
532 * inspector/front-end/ConsoleMessage.js:
533 (WebInspector.ConsoleMessageImpl.prototype.get location):
534 * inspector/front-end/DebuggerPresentationModel.js:
535 (WebInspector.DebuggerPresentationModel.prototype.rawLocationToUILocation):
536 (WebInspector.DebuggerPresentationModel.prototype.uiSourceCodes):
537 (WebInspector.DebuggerPresentationModel.prototype._handleUISourceCodeListChanged):
538 (WebInspector.DebuggerPresentationModel.prototype._uiSourceCodeListChanged):
539 (WebInspector.DebuggerPresentationModel.prototype._restoreBreakpoints):
540 (WebInspector.DebuggerPresentationModel.prototype._restoreConsoleMessages):
541 (WebInspector.DebuggerPresentationModel.prototype._restoreExecutionLine):
542 (WebInspector.DebuggerPresentationModel.prototype._consoleMessageAdded):
543 (WebInspector.DebuggerPresentationModel.prototype.continueToLine):
544 (WebInspector.DebuggerPresentationModel.prototype.set selectedCallFrame):
545 (WebInspector.DebuggerPresentationModel.prototype._debuggerReset):
546 (WebInspector.PresentationCallFrame.prototype.uiLocation):
547 (WebInspector.DebuggerPresentationModel.CallFramePlacard):
548 (WebInspector.DebuggerPresentationModel.CallFramePlacard.prototype.discard):
549 (WebInspector.DebuggerPresentationModel.CallFramePlacard.prototype._update):
550 (WebInspector.DebuggerPresentationModelResourceBinding.prototype.canSetContent):
551 (WebInspector.DebuggerPresentationModelResourceBinding.prototype.setContent):
552 (WebInspector.DebuggerPresentationModel.DefaultLinkifierFormatter.prototype.formatRawSourceCodeAnchor):
553 (WebInspector.DebuggerPresentationModel.Linkifier.prototype.linkifyRawSourceCode):
554 (WebInspector.DebuggerPresentationModel.Linkifier.prototype.reset):
555 (WebInspector.DebuggerPresentationModel.Linkifier.prototype._updateAnchor):
556 * inspector/front-end/RawSourceCode.js:
557 (WebInspector.RawSourceCode.prototype.rawLocationToUILocation):
558 (WebInspector.RawSourceCode.prototype.uiLocationToRawLocation):
559 (WebInspector.RawSourceCode.prototype.uiSourceCodeList):
560 (WebInspector.RawSourceCode.prototype._saveSourceMapping):
561 * inspector/front-end/ScriptsPanel.js:
562 (WebInspector.ScriptsPanel.prototype._updateCallFrame):
563 * inspector/front-end/ScriptsSearchScope.js:
564 (WebInspector.ScriptsSearchResultsPane.prototype.createAnchor):
566 2012-02-27 Mihnea Ovidenie <mihnea@adobe.com>
568 [CSSRegions]Implement NamedFlow::getRegionsByContentNode
569 https://bugs.webkit.org/show_bug.cgi?id=77746
571 Reviewed by David Hyatt.
573 Tests: fast/regions/get-regions-by-content-node-horiz-bt.html
574 fast/regions/get-regions-by-content-node-horiz-tb.html
575 fast/regions/get-regions-by-content-node-vert-lr.html
576 fast/regions/get-regions-by-content-node-vert-rl.html
577 fast/regions/get-regions-by-content-node.html
578 fast/regions/get-regions-by-content-node2.html
581 * GNUmakefile.list.am:
584 * WebCore.vcproj/WebCore.vcproj:
585 * WebCore.xcodeproj/project.pbxproj:
587 (WebCore::Node::removeCachedRegionNodeList):
589 (WebCore::Node::getRegionsByContentNode):
590 (WebCore::NodeListsNodeData::invalidateCaches):
591 (WebCore::NodeListsNodeData::isEmpty):
595 * dom/NodeRareData.h:
597 * dom/RegionNodeList.cpp:
599 (WebCore::RegionNodeList::RegionNodeList):
600 (WebCore::RegionNodeList::~RegionNodeList):
601 (WebCore::RegionNodeList::nodeMatches):
602 * dom/RegionNodeList.h:
605 (WebCore::RegionNodeList::create):
606 * dom/WebKitNamedFlow.cpp:
607 (WebCore::WebKitNamedFlow::getRegionsByContentNode):
609 * dom/WebKitNamedFlow.h:
612 * dom/WebKitNamedFlow.idl:
613 * rendering/RenderFlowThread.cpp:
614 (WebCore::RenderFlowThread::regionInRange):
616 (WebCore::RenderFlowThread::objectInFlowRegion):
617 * rendering/RenderFlowThread.h:
618 * rendering/RenderRegion.h:
619 (WebCore::RenderRegion::flowThread):
621 2012-02-27 Yury Semikhatsky <yurys@chromium.org>
623 Web Inspector: counter graphs should resize after console showing
624 https://bugs.webkit.org/show_bug.cgi?id=79640
626 Invoke Panel.doResize after showing drawer.
628 Reviewed by Pavel Feldman.
630 * inspector/front-end/Drawer.js:
631 (WebInspector.Drawer.prototype.show.animationFinished):
632 (WebInspector.Drawer.prototype.show):
634 2012-02-27 Dan Beam <dbeam@chromium.org>
636 Web Inspector: Close TabbedPanes on middle click of tab handle
637 https://bugs.webkit.org/show_bug.cgi?id=79518
639 Reviewed by Pavel Feldman.
641 * inspector/front-end/TabbedPane.js:
642 (WebInspector.TabbedPaneTab.prototype._createTabElement):
643 (WebInspector.TabbedPaneTab.prototype._tabClicked):
645 2012-02-26 Yury Semikhatsky <yurys@chromium.org>
647 Web Inspector: crash in fake workers
648 https://bugs.webkit.org/show_bug.cgi?id=79637
650 Notify front-end about worker creation/destruction synchronously instead of
653 Reviewed by Pavel Feldman.
655 * inspector/InspectorAgent.cpp:
657 (WebCore::InspectorAgent::didCreateWorker):
658 (WebCore::InspectorAgent::didDestroyWorker):
659 * inspector/InspectorAgent.h:
662 2012-02-26 Adam Barth <abarth@webkit.org>
666 Fix some warnings in the build from referencing the non-existent
667 websockets directory.
669 * WebCore.gyp/WebCore.gyp:
671 2012-02-26 Shinya Kawanaka <shinyak@chromium.org>
673 Rename ShadowRootList to ShadowTree.
674 https://bugs.webkit.org/show_bug.cgi?id=79342
676 Reviewed by Hajime Morita.
678 This patch renames ShadowRootList ot ShadowTree.
680 No new tests, no change in behavior.
683 * GNUmakefile.list.am:
687 * WebCore.xcodeproj/project.pbxproj:
688 * dom/DOMAllInOne.cpp:
690 (WebCore::Document::buildAccessKeyMap):
692 (WebCore::Element::willRemove):
693 (WebCore::Element::insertedIntoDocument):
694 (WebCore::Element::removedFromDocument):
695 (WebCore::Element::insertedIntoTree):
696 (WebCore::Element::removedFromTree):
697 (WebCore::Element::attach):
698 (WebCore::Element::detach):
699 (WebCore::Element::recalcStyle):
700 (WebCore::Element::hasShadowRoot):
701 (WebCore::Element::shadowTree):
702 (WebCore::Element::setShadowRoot):
703 (WebCore::Element::ensureShadowRoot):
704 (WebCore::Element::removeShadowRoot):
705 (WebCore::Element::childrenChanged):
709 * dom/ElementRareData.h:
711 (WebCore::ElementRareData::~ElementRareData):
713 (WebCore::oldestShadowRoot):
714 * dom/NodeRenderingContext.cpp:
715 (WebCore::NodeRenderingContext::NodeRenderingContext):
716 (WebCore::NodeRenderingContext::hostChildrenChanged):
717 (WebCore::NodeRenderingContext::shouldCreateRenderer):
718 * dom/NodeRenderingContext.h:
720 * dom/ShadowRoot.cpp:
721 (WebCore::ShadowRoot::tree):
722 (WebCore::ShadowRoot::attach):
726 * dom/ShadowTree.cpp: Renamed from Source/WebCore/dom/ShadowRootList.cpp.
728 (WebCore::ShadowTree::ShadowTree):
729 (WebCore::ShadowTree::~ShadowTree):
730 (WebCore::ShadowTree::pushShadowRoot):
731 (WebCore::ShadowTree::popShadowRoot):
732 (WebCore::ShadowTree::insertedIntoDocument):
733 (WebCore::ShadowTree::removedFromDocument):
734 (WebCore::ShadowTree::insertedIntoTree):
735 (WebCore::ShadowTree::removedFromTree):
736 (WebCore::ShadowTree::willRemove):
737 (WebCore::ShadowTree::attach):
738 (WebCore::ShadowTree::detach):
739 (WebCore::ShadowTree::insertionPointFor):
740 (WebCore::ShadowTree::isSelectorActive):
741 (WebCore::ShadowTree::reattach):
742 (WebCore::ShadowTree::childNeedsStyleRecalc):
743 (WebCore::ShadowTree::needsStyleRecalc):
744 (WebCore::ShadowTree::recalcShadowTreeStyle):
745 (WebCore::ShadowTree::needsReattachHostChildrenAndShadow):
746 (WebCore::ShadowTree::hostChildrenChanged):
747 (WebCore::ShadowTree::setNeedsReattachHostChildrenAndShadow):
748 (WebCore::ShadowTree::reattachHostChildrenAndShadow):
749 (WebCore::ShadowTree::ensureSelector):
750 * dom/ShadowTree.h: Renamed from Source/WebCore/dom/ShadowRootList.h.
753 (WebCore::ShadowTree::hasShadowRoot):
754 (WebCore::ShadowTree::youngestShadowRoot):
755 (WebCore::ShadowTree::oldestShadowRoot):
756 (WebCore::ShadowTree::selector):
757 (WebCore::ShadowTree::clearNeedsReattachHostChildrenAndShadow):
758 (WebCore::ShadowTree::host):
759 * dom/TreeScopeAdopter.cpp:
760 (WebCore::shadowRootFor):
761 * html/ColorInputType.cpp:
762 (WebCore::ColorInputType::createShadowSubtree):
763 (WebCore::ColorInputType::shadowColorSwatch):
764 * html/FileInputType.cpp:
765 (WebCore::FileInputType::createShadowSubtree):
766 (WebCore::FileInputType::multipleAttributeChanged):
767 * html/HTMLDetailsElement.cpp:
768 (WebCore::HTMLDetailsElement::findMainSummary):
769 * html/HTMLKeygenElement.cpp:
770 (WebCore::HTMLKeygenElement::shadowSelect):
771 * html/HTMLMediaElement.cpp:
772 (WebCore::HTMLMediaElement::mediaControls):
773 (WebCore::HTMLMediaElement::hasMediaControls):
774 * html/HTMLSummaryElement.cpp:
775 * html/HTMLTextAreaElement.cpp:
776 (WebCore::HTMLTextAreaElement::innerTextElement):
777 (WebCore::HTMLTextAreaElement::updatePlaceholderText):
778 * html/InputType.cpp:
779 (WebCore::InputType::destroyShadowSubtree):
780 * html/RangeInputType.cpp:
781 (WebCore::RangeInputType::handleMouseDownEvent):
782 (WebCore::RangeInputType::createShadowSubtree):
783 * html/TextFieldInputType.cpp:
784 (WebCore::TextFieldInputType::createShadowSubtree):
785 (WebCore::TextFieldInputType::updatePlaceholderText):
786 * html/ValidationMessage.cpp:
787 (WebCore::ValidationMessage::deleteBubbleTree):
788 * html/shadow/HTMLContentElement.cpp:
789 (WebCore::HTMLContentElement::attach):
790 (WebCore::HTMLContentElement::detach):
791 (WebCore::HTMLContentElement::parseAttribute):
792 * html/shadow/SliderThumbElement.cpp:
793 (WebCore::sliderThumbElementOf):
794 (WebCore::RenderSliderContainer::layout):
795 (WebCore::trackLimiterElementOf):
796 * page/FocusController.cpp:
797 (WebCore::shadowRoot):
798 * rendering/RenderFileUploadControl.cpp:
799 (WebCore::RenderFileUploadControl::uploadButton):
800 * svg/SVGTRefElement.cpp:
801 (WebCore::SVGTRefElement::updateReferencedText):
802 (WebCore::SVGTRefElement::detachTarget):
803 * testing/Internals.cpp:
804 (WebCore::Internals::ensureShadowRoot):
805 (WebCore::Internals::youngestShadowRoot):
806 (WebCore::Internals::oldestShadowRoot):
808 2012-02-26 Adam Barth <abarth@webkit.org>
810 Extract Supplementable base class from Page and Navigator
811 https://bugs.webkit.org/show_bug.cgi?id=79624
813 Reviewed by Hajime Morita.
815 We'll use this pattern again soon for ScriptExecutionContext.
818 * GNUmakefile.list.am:
819 * Modules/gamepad/NavigatorGamepad.cpp:
820 (WebCore::NavigatorGamepad::from):
821 * Modules/gamepad/NavigatorGamepad.h:
822 * Modules/geolocation/NavigatorGeolocation.cpp:
823 (WebCore::NavigatorGeolocation::from):
824 * Modules/geolocation/NavigatorGeolocation.h:
825 * Modules/mediastream/NavigatorMediaStream.cpp:
826 (WebCore::NavigatorMediaStream::webkitGetUserMedia):
827 * Modules/mediastream/UserMediaController.cpp:
828 (WebCore::provideUserMediaTo):
829 * Modules/mediastream/UserMediaController.h:
830 (WebCore::UserMediaController::from):
833 * WebCore.vcproj/WebCore.vcproj:
834 * WebCore.xcodeproj/project.pbxproj:
835 * dom/DeviceMotionController.cpp:
836 (WebCore::provideDeviceMotionTo):
837 * dom/DeviceMotionController.h:
838 (WebCore::DeviceMotionController::from):
839 * dom/DeviceOrientationController.cpp:
840 (WebCore::provideDeviceOrientationTo):
841 * dom/DeviceOrientationController.h:
843 (WebCore::DeviceOrientationController::from):
844 * notifications/NotificationController.cpp:
845 (WebCore::provideNotification):
846 * notifications/NotificationController.h:
848 (WebCore::NotificationController::from):
849 * page/DOMWindow.cpp:
850 (WebCore::DOMWindow::page):
852 (WebCore::DOMWindow::addEventListener):
853 (WebCore::DOMWindow::removeEventListener):
854 (WebCore::DOMWindow::removeAllEventListeners):
858 * page/Navigator.cpp:
862 * page/NavigatorSupplement.cpp: Removed.
863 * page/NavigatorSupplement.h: Removed.
868 * page/PageSupplement.cpp: Removed.
869 * page/PageSupplement.h: Removed.
870 * page/SpeechInput.cpp:
871 (WebCore::provideSpeechInputTo):
872 * page/SpeechInput.h:
873 (WebCore::SpeechInput::from):
874 * platform/Supplementable.h: Added.
877 (WebCore::Supplement::~Supplement):
878 (WebCore::Supplement::provideTo):
879 (WebCore::Supplement::from):
881 (WebCore::Supplementable::provideSupplement):
882 (WebCore::Supplementable::requireSupplement):
884 2012-02-26 Hajime Morrita <morrita@chromium.org>
886 Move ChromeClient::showContextMenu() to ContextMenuClient
887 https://bugs.webkit.org/show_bug.cgi?id=79427
889 Reviewed by Adam Barth.
891 - Removed ChromeClient::showContextMenu(), Chrome::showContextMenu()
892 - Added ContextMenuController::showContextMenuAt(), ContextMenuClient::showContextMenu()
893 - Hided showContextMenu() behind ACCESSIBILITY_CONTEXT_MENUS
895 This change localizes context menu related code and will make it easy to
896 modularize CONTEXT_MENUS code.
898 Refactoring. No new tests.
901 * accessibility/mac/WebAccessibilityObjectWrapper.mm:
902 (-[WebAccessibilityObjectWrapper accessibilityShowContextMenu]):
903 * loader/EmptyClients.h:
904 (EmptyContextMenuClient):
905 (WebCore::EmptyContextMenuClient::showContextMenu):
906 * page/ContextMenuClient.h:
908 * page/ContextMenuController.cpp:
910 (WebCore::ContextMenuController::showContextMenuAt):
911 * page/ContextMenuController.h:
912 (ContextMenuController):
916 * page/ChromeClient.h:
919 2012-02-26 Benjamin Poulain <bpoulain@apple.com>
921 [Mac] Release localized Strings instead of AutoRelease
922 https://bugs.webkit.org/show_bug.cgi?id=79552
924 Reviewed by Sam Weinig.
926 By using the CoreFoundation API, we can release the memory as soon as
927 the WTF::String is created.
929 * WebCore.xcodeproj/project.pbxproj:
930 * platform/mac/LocalizedStringsMac.cpp: Renamed from Source/WebCore/platform/mac/LocalizedStringsMac.mm.
932 (WebCore::localizedString):
934 2012-02-26 Adam Barth <abarth@webkit.org>
936 ContextDestructionObserver should live in its own file
937 https://bugs.webkit.org/show_bug.cgi?id=79619
939 Reviewed by Hajime Morita.
941 WebKit prefers to have one class per file. (This patch is paying a
942 build system hacking debt I incurred earlier.)
945 * GNUmakefile.list.am:
948 * WebCore.vcproj/WebCore.vcproj:
949 * WebCore.xcodeproj/project.pbxproj:
950 * dom/ActiveDOMObject.cpp:
952 * dom/ActiveDOMObject.h:
954 (WebCore::ActiveDOMObject::suspendIfNeededCalled):
955 (WebCore::ActiveDOMObject::setPendingActivity):
956 (WebCore::ActiveDOMObject::unsetPendingActivity):
957 * dom/ContextDestructionObserver.cpp: Added.
959 (WebCore::ContextDestructionObserver::ContextDestructionObserver):
960 (WebCore::ContextDestructionObserver::~ContextDestructionObserver):
961 (WebCore::ContextDestructionObserver::contextDestroyed):
962 * dom/ContextDestructionObserver.h: Added.
964 (ContextDestructionObserver):
965 (WebCore::ContextDestructionObserver::scriptExecutionContext):
966 * dom/DOMAllInOne.cpp:
968 2012-02-26 Dirk Schulze <krit@webkit.org>
970 Cleanup of Adobes copyright text. The text got harmonized with copyright texts of other companies.
974 * css/CSSWrapShapes.cpp:
975 * css/CSSWrapShapes.h:
976 * css/WebKitCSSRegionRule.cpp:
977 * css/WebKitCSSRegionRule.h:
978 * css/WebKitCSSRegionRule.idl:
979 * css/WebKitCSSShaderValue.cpp:
980 * css/WebKitCSSShaderValue.h:
981 * dom/WebKitNamedFlow.cpp:
982 * dom/WebKitNamedFlow.h:
983 * dom/WebKitNamedFlow.idl:
984 * loader/cache/CachedShader.cpp:
985 * loader/cache/CachedShader.h:
986 * platform/graphics/filters/CustomFilterMesh.cpp:
987 * platform/graphics/filters/CustomFilterMesh.h:
988 * platform/graphics/filters/CustomFilterNumberParameter.h:
989 * platform/graphics/filters/CustomFilterOperation.cpp:
990 * platform/graphics/filters/CustomFilterOperation.h:
991 * platform/graphics/filters/CustomFilterParameter.h:
992 * platform/graphics/filters/CustomFilterProgram.cpp:
993 * platform/graphics/filters/CustomFilterProgram.h:
994 * platform/graphics/filters/CustomFilterProgramClient.h:
995 * platform/graphics/filters/CustomFilterShader.cpp:
996 * platform/graphics/filters/CustomFilterShader.h:
997 * platform/graphics/filters/FECustomFilter.cpp:
998 * platform/graphics/filters/FECustomFilter.h:
999 * rendering/FilterEffectObserver.h:
1000 * rendering/RenderFlowThread.cpp:
1001 * rendering/RenderFlowThread.h:
1002 * rendering/RenderRegion.cpp:
1003 * rendering/RenderRegion.h:
1004 * rendering/style/StyleCachedShader.cpp:
1005 * rendering/style/StyleCachedShader.h:
1006 * rendering/style/StyleCustomFilterProgram.h:
1007 * rendering/style/StylePendingShader.h:
1008 * rendering/style/StyleShader.h:
1010 2012-02-26 Hyowon Kim <hw1008.kim@samsung.com>
1012 [EFL] Implementation of GraphicsContext3D for EFL port
1013 https://bugs.webkit.org/show_bug.cgi?id=79452
1015 Reviewed by Noam Rosenthal.
1017 Evas_GL is used to do OpenGL rendering on Evas, in which
1018 a structure 'Evas_GL_API' contains all the OpenGL functions.
1020 GraphicsContext3D in EFL port should call OpenGL functions indirectly
1021 through the Evas_GL_API, and not use GraphicsContext3DOpenGL(Common).
1023 So, we use the GraphicsContext3DPrivate to delegate all OpenGL function calls,
1024 and it will be implemented to use Evas_GL (bug 62961).
1026 No new tests. No behavior change.
1028 * platform/graphics/efl/GraphicsContext3DEfl.cpp: Added.
1030 (WebCore::GraphicsContext3D::create):
1031 (WebCore::GraphicsContext3D::GraphicsContext3D):
1032 (WebCore::GraphicsContext3D::~GraphicsContext3D):
1033 (WebCore::GraphicsContext3D::platformGraphicsContext3D):
1034 (WebCore::GraphicsContext3D::platformLayer):
1035 (WebCore::GraphicsContext3D::makeContextCurrent):
1036 (WebCore::GraphicsContext3D::isGLES2Compliant):
1037 (WebCore::GraphicsContext3D::activeTexture):
1038 (WebCore::GraphicsContext3D::attachShader):
1039 (WebCore::GraphicsContext3D::bindAttribLocation):
1040 (WebCore::GraphicsContext3D::bindBuffer):
1041 (WebCore::GraphicsContext3D::bindFramebuffer):
1042 (WebCore::GraphicsContext3D::bindRenderbuffer):
1043 (WebCore::GraphicsContext3D::bindTexture):
1044 (WebCore::GraphicsContext3D::blendColor):
1045 (WebCore::GraphicsContext3D::blendEquation):
1046 (WebCore::GraphicsContext3D::blendEquationSeparate):
1047 (WebCore::GraphicsContext3D::blendFunc):
1048 (WebCore::GraphicsContext3D::blendFuncSeparate):
1049 (WebCore::GraphicsContext3D::bufferData):
1050 (WebCore::GraphicsContext3D::bufferSubData):
1051 (WebCore::GraphicsContext3D::checkFramebufferStatus):
1052 (WebCore::GraphicsContext3D::clear):
1053 (WebCore::GraphicsContext3D::clearColor):
1054 (WebCore::GraphicsContext3D::clearDepth):
1055 (WebCore::GraphicsContext3D::clearStencil):
1056 (WebCore::GraphicsContext3D::colorMask):
1057 (WebCore::GraphicsContext3D::compileShader):
1058 (WebCore::GraphicsContext3D::copyTexImage2D):
1059 (WebCore::GraphicsContext3D::copyTexSubImage2D):
1060 (WebCore::GraphicsContext3D::cullFace):
1061 (WebCore::GraphicsContext3D::depthFunc):
1062 (WebCore::GraphicsContext3D::depthMask):
1063 (WebCore::GraphicsContext3D::depthRange):
1064 (WebCore::GraphicsContext3D::detachShader):
1065 (WebCore::GraphicsContext3D::disable):
1066 (WebCore::GraphicsContext3D::disableVertexAttribArray):
1067 (WebCore::GraphicsContext3D::drawArrays):
1068 (WebCore::GraphicsContext3D::drawElements):
1069 (WebCore::GraphicsContext3D::enable):
1070 (WebCore::GraphicsContext3D::enableVertexAttribArray):
1071 (WebCore::GraphicsContext3D::finish):
1072 (WebCore::GraphicsContext3D::flush):
1073 (WebCore::GraphicsContext3D::framebufferRenderbuffer):
1074 (WebCore::GraphicsContext3D::framebufferTexture2D):
1075 (WebCore::GraphicsContext3D::frontFace):
1076 (WebCore::GraphicsContext3D::generateMipmap):
1077 (WebCore::GraphicsContext3D::getActiveAttrib):
1078 (WebCore::GraphicsContext3D::getActiveUniform):
1079 (WebCore::GraphicsContext3D::getAttachedShaders):
1080 (WebCore::GraphicsContext3D::getAttribLocation):
1081 (WebCore::GraphicsContext3D::getBooleanv):
1082 (WebCore::GraphicsContext3D::getBufferParameteriv):
1083 (WebCore::GraphicsContext3D::getContextAttributes):
1084 (WebCore::GraphicsContext3D::getError):
1085 (WebCore::GraphicsContext3D::getFloatv):
1086 (WebCore::GraphicsContext3D::getFramebufferAttachmentParameteriv):
1087 (WebCore::GraphicsContext3D::getIntegerv):
1088 (WebCore::GraphicsContext3D::getProgramiv):
1089 (WebCore::GraphicsContext3D::getProgramInfoLog):
1090 (WebCore::GraphicsContext3D::getRenderbufferParameteriv):
1091 (WebCore::GraphicsContext3D::getShaderiv):
1092 (WebCore::GraphicsContext3D::getShaderInfoLog):
1093 (WebCore::GraphicsContext3D::getShaderSource):
1094 (WebCore::GraphicsContext3D::getString):
1095 (WebCore::GraphicsContext3D::getTexParameterfv):
1096 (WebCore::GraphicsContext3D::getTexParameteriv):
1097 (WebCore::GraphicsContext3D::getUniformfv):
1098 (WebCore::GraphicsContext3D::getUniformiv):
1099 (WebCore::GraphicsContext3D::getUniformLocation):
1100 (WebCore::GraphicsContext3D::getVertexAttribfv):
1101 (WebCore::GraphicsContext3D::getVertexAttribiv):
1102 (WebCore::GraphicsContext3D::getVertexAttribOffset):
1103 (WebCore::GraphicsContext3D::hint):
1104 (WebCore::GraphicsContext3D::isBuffer):
1105 (WebCore::GraphicsContext3D::isEnabled):
1106 (WebCore::GraphicsContext3D::isFramebuffer):
1107 (WebCore::GraphicsContext3D::isProgram):
1108 (WebCore::GraphicsContext3D::isRenderbuffer):
1109 (WebCore::GraphicsContext3D::isShader):
1110 (WebCore::GraphicsContext3D::isTexture):
1111 (WebCore::GraphicsContext3D::lineWidth):
1112 (WebCore::GraphicsContext3D::linkProgram):
1113 (WebCore::GraphicsContext3D::pixelStorei):
1114 (WebCore::GraphicsContext3D::polygonOffset):
1115 (WebCore::GraphicsContext3D::readPixels):
1116 (WebCore::GraphicsContext3D::releaseShaderCompiler):
1117 (WebCore::GraphicsContext3D::renderbufferStorage):
1118 (WebCore::GraphicsContext3D::sampleCoverage):
1119 (WebCore::GraphicsContext3D::scissor):
1120 (WebCore::GraphicsContext3D::shaderSource):
1121 (WebCore::GraphicsContext3D::stencilFunc):
1122 (WebCore::GraphicsContext3D::stencilFuncSeparate):
1123 (WebCore::GraphicsContext3D::stencilMask):
1124 (WebCore::GraphicsContext3D::stencilMaskSeparate):
1125 (WebCore::GraphicsContext3D::stencilOp):
1126 (WebCore::GraphicsContext3D::stencilOpSeparate):
1127 (WebCore::GraphicsContext3D::texImage2D):
1128 (WebCore::GraphicsContext3D::texParameterf):
1129 (WebCore::GraphicsContext3D::texParameteri):
1130 (WebCore::GraphicsContext3D::texSubImage2D):
1131 (WebCore::GraphicsContext3D::uniform1f):
1132 (WebCore::GraphicsContext3D::uniform1fv):
1133 (WebCore::GraphicsContext3D::uniform1i):
1134 (WebCore::GraphicsContext3D::uniform1iv):
1135 (WebCore::GraphicsContext3D::uniform2f):
1136 (WebCore::GraphicsContext3D::uniform2fv):
1137 (WebCore::GraphicsContext3D::uniform2i):
1138 (WebCore::GraphicsContext3D::uniform2iv):
1139 (WebCore::GraphicsContext3D::uniform3f):
1140 (WebCore::GraphicsContext3D::uniform3fv):
1141 (WebCore::GraphicsContext3D::uniform3i):
1142 (WebCore::GraphicsContext3D::uniform3iv):
1143 (WebCore::GraphicsContext3D::uniform4f):
1144 (WebCore::GraphicsContext3D::uniform4fv):
1145 (WebCore::GraphicsContext3D::uniform4i):
1146 (WebCore::GraphicsContext3D::uniform4iv):
1147 (WebCore::GraphicsContext3D::uniformMatrix2fv):
1148 (WebCore::GraphicsContext3D::uniformMatrix3fv):
1149 (WebCore::GraphicsContext3D::uniformMatrix4fv):
1150 (WebCore::GraphicsContext3D::useProgram):
1151 (WebCore::GraphicsContext3D::validateProgram):
1152 (WebCore::GraphicsContext3D::vertexAttrib1f):
1153 (WebCore::GraphicsContext3D::vertexAttrib1fv):
1154 (WebCore::GraphicsContext3D::vertexAttrib2f):
1155 (WebCore::GraphicsContext3D::vertexAttrib2fv):
1156 (WebCore::GraphicsContext3D::vertexAttrib3f):
1157 (WebCore::GraphicsContext3D::vertexAttrib3fv):
1158 (WebCore::GraphicsContext3D::vertexAttrib4f):
1159 (WebCore::GraphicsContext3D::vertexAttrib4fv):
1160 (WebCore::GraphicsContext3D::vertexAttribPointer):
1161 (WebCore::GraphicsContext3D::viewport):
1162 (WebCore::GraphicsContext3D::reshape):
1163 (WebCore::GraphicsContext3D::markContextChanged):
1164 (WebCore::GraphicsContext3D::markLayerComposited):
1165 (WebCore::GraphicsContext3D::layerComposited):
1166 (WebCore::GraphicsContext3D::paintRenderingResultsToCanvas):
1167 (WebCore::GraphicsContext3D::paintRenderingResultsToImageData):
1168 (WebCore::GraphicsContext3D::paintCompositedResultsToCanvas):
1169 (WebCore::GraphicsContext3D::createBuffer):
1170 (WebCore::GraphicsContext3D::createFramebuffer):
1171 (WebCore::GraphicsContext3D::createProgram):
1172 (WebCore::GraphicsContext3D::createRenderbuffer):
1173 (WebCore::GraphicsContext3D::createShader):
1174 (WebCore::GraphicsContext3D::createTexture):
1175 (WebCore::GraphicsContext3D::deleteBuffer):
1176 (WebCore::GraphicsContext3D::deleteFramebuffer):
1177 (WebCore::GraphicsContext3D::deleteProgram):
1178 (WebCore::GraphicsContext3D::deleteRenderbuffer):
1179 (WebCore::GraphicsContext3D::deleteShader):
1180 (WebCore::GraphicsContext3D::deleteTexture):
1181 (WebCore::GraphicsContext3D::synthesizeGLError):
1182 (WebCore::GraphicsContext3D::getExtensions):
1183 (WebCore::GraphicsContext3D::getInternalFramebufferSize):
1184 (WebCore::GraphicsContext3D::setContextLostCallback):
1185 (WebCore::GraphicsContext3D::getImageData):
1186 (WebCore::GraphicsContext3D::validateAttributes):
1187 (WebCore::GraphicsContext3D::readRenderingResults):
1188 (WebCore::GraphicsContext3D::reshapeFBOs):
1189 (WebCore::GraphicsContext3D::resolveMultisamplingIfNecessary):
1190 (WebCore::GraphicsContext3D::isResourceSafe):
1192 2012-02-26 James Robinson <jamesr@chromium.org>
1194 [chromium] Wire up shouldUpdateScrollPositionOnMainThread and nonFastScrollableRegion to compositor
1195 https://bugs.webkit.org/show_bug.cgi?id=79155
1197 Reviewed by Adam Barth.
1199 This hooks up ScrollingCoordinator::setNonFastScrollableRegion() and
1200 ScrollingCoordinator::setShouldUpdateScrollLayerPositionOnMainThread() to the chromium compositor
1201 implementation and implements them on the impl thread.
1203 New compositor behavior is covered by unit tests in LayerChromiumTests and CCLayerTreeHostImplTests. The rest is
1206 * page/scrolling/chromium/ScrollingCoordinatorChromium.cpp:
1207 (WebCore::ScrollingCoordinator::setNonFastScrollableRegion):
1208 (WebCore::ScrollingCoordinator::setShouldUpdateScrollLayerPositionOnMainThread):
1209 * platform/graphics/chromium/LayerChromium.cpp:
1210 (WebCore::LayerChromium::LayerChromium):
1211 (WebCore::LayerChromium::setShouldScrollOnMainThread):
1213 (WebCore::LayerChromium::setNonFastScrollableRegion):
1214 (WebCore::LayerChromium::pushPropertiesTo):
1215 * platform/graphics/chromium/LayerChromium.h:
1218 * platform/graphics/chromium/cc/CCLayerImpl.cpp:
1219 (WebCore::CCLayerImpl::CCLayerImpl):
1220 * platform/graphics/chromium/cc/CCLayerImpl.h:
1221 (WebCore::CCLayerImpl::shouldScrollOnMainThread):
1222 (WebCore::CCLayerImpl::setShouldScrollOnMainThread):
1224 (WebCore::CCLayerImpl::nonFastScrollableRegion):
1225 (WebCore::CCLayerImpl::setNonFastScrollableRegion):
1226 * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
1227 (WebCore::CCLayerTreeHostImpl::scrollBegin):
1229 2012-02-26 Kentaro Hara <haraken@chromium.org>
1231 Unreviewed. Rebaselined run-bindings-tests results.
1233 * bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp:
1234 (webkit_dom_test_interface_supplemental_method4):
1236 2012-02-26 Sheriff Bot <webkit.review.bot@gmail.com>
1238 Unreviewed, rolling out r108547.
1239 http://trac.webkit.org/changeset/108547
1240 https://bugs.webkit.org/show_bug.cgi?id=79606
1242 Crashes on ClusterFuzz (Requested by inferno-sec on #webkit).
1244 * rendering/RenderBlockLineLayout.cpp:
1245 (WebCore::RenderBlock::layoutInlineChildren):
1247 2012-02-25 Adam Barth <abarth@webkit.org>
1249 Move websockets to Modules/websockets
1250 https://bugs.webkit.org/show_bug.cgi?id=79598
1252 Reviewed by Eric Seidel.
1254 Nowadays, the only ENABLE(WEB_SOCKETS) ifdef in WebCore proper is in
1255 WebCore::Settings, and that will be removed (soon?) once Apple drops
1256 support for the old WebSockets protocol.
1259 * DerivedSources.make:
1260 * DerivedSources.pri:
1262 * GNUmakefile.list.am:
1263 * Modules/websockets: Copied from Source/WebCore/websockets.
1265 * WebCore.gyp/WebCore.gyp:
1268 * WebCore.vcproj/WebCore.vcproj:
1269 * WebCore.vcproj/WebCoreCommon.vsprops:
1270 * WebCore.vcproj/copyForwardingHeaders.cmd:
1271 * WebCore.xcodeproj/project.pbxproj:
1272 * websockets: Removed.
1273 * websockets/CloseEvent.h: Removed.
1274 * websockets/CloseEvent.idl: Removed.
1275 * websockets/DOMWindowWebSocket.idl: Removed.
1276 * websockets/ThreadableWebSocketChannel.cpp: Removed.
1277 * websockets/ThreadableWebSocketChannel.h: Removed.
1278 * websockets/ThreadableWebSocketChannelClientWrapper.cpp: Removed.
1279 * websockets/ThreadableWebSocketChannelClientWrapper.h: Removed.
1280 * websockets/WebSocket.cpp: Removed.
1281 * websockets/WebSocket.h: Removed.
1282 * websockets/WebSocket.idl: Removed.
1283 * websockets/WebSocketChannel.cpp: Removed.
1284 * websockets/WebSocketChannel.h: Removed.
1285 * websockets/WebSocketChannelClient.h: Removed.
1286 * websockets/WebSocketDeflater.cpp: Removed.
1287 * websockets/WebSocketDeflater.h: Removed.
1288 * websockets/WebSocketExtensionDispatcher.cpp: Removed.
1289 * websockets/WebSocketExtensionDispatcher.h: Removed.
1290 * websockets/WebSocketExtensionProcessor.h: Removed.
1291 * websockets/WebSocketFrame.h: Removed.
1292 * websockets/WebSocketHandshake.cpp: Removed.
1293 * websockets/WebSocketHandshake.h: Removed.
1294 * websockets/WebSocketHandshakeRequest.cpp: Removed.
1295 * websockets/WebSocketHandshakeRequest.h: Removed.
1296 * websockets/WebSocketHandshakeResponse.cpp: Removed.
1297 * websockets/WebSocketHandshakeResponse.h: Removed.
1298 * websockets/WorkerThreadableWebSocketChannel.cpp: Removed.
1299 * websockets/WorkerThreadableWebSocketChannel.h: Removed.
1301 2012-02-25 Benjamin Poulain <benjamin@webkit.org>
1303 Get rid of KURL::deprecatedString()
1304 https://bugs.webkit.org/show_bug.cgi?id=79594
1306 Reviewed by Andreas Kling.
1308 The method KURL::deprecatedString() is unused, remove it from WebCore.
1310 The last reference to the method was removed in r96779.
1312 * platform/KURL.cpp:
1316 * platform/KURLGoogle.cpp:
1318 * platform/KURLWTFURL.cpp:
1321 2012-02-25 Benjamin Poulain <benjamin@webkit.org>
1323 Get rid of copyParsedQueryTo()
1324 https://bugs.webkit.org/show_bug.cgi?id=79590
1326 Reviewed by Andreas Kling.
1328 The function KURL::copyParsedQueryTo() is unused. Remove it from WebCore.
1330 The function was used by HTMLAnchorElement::getParameter() but that feature
1331 was removed in r100164.
1334 * platform/KURL.cpp:
1339 * platform/KURLGoogle.cpp:
1341 * platform/KURLWTFURL.cpp:
1344 2012-02-25 Sheriff Bot <webkit.review.bot@gmail.com>
1346 Unreviewed, rolling out r108924.
1347 http://trac.webkit.org/changeset/108924
1348 https://bugs.webkit.org/show_bug.cgi?id=79597
1350 broke 4 inspector tests (Requested by kling on #webkit).
1352 * dom/StyledElement.cpp:
1353 (WebCore::StyledElement::parseAttribute):
1355 2012-02-25 Adam Barth <abarth@webkit.org>
1357 Fix typo in comment. This #endif is for a different ENABLE macro.
1359 * page/NavigatorRegisterProtocolHandler.cpp:
1361 2012-02-25 Anders Carlsson <andersca@apple.com>
1363 Move an ASSERT to avoid it firing due to a race condition
1364 https://bugs.webkit.org/show_bug.cgi?id=79596
1366 Reviewed by Andreas Kling.
1368 ScrollingThread::isCurrentThread() can return false if called too early.
1369 Move it into ScrollingThread::initializeRunLoop where we know that the thread has
1370 been set up correctly.
1372 * page/scrolling/ScrollingThread.cpp:
1373 (WebCore::ScrollingThread::threadBody):
1374 * page/scrolling/mac/ScrollingThreadMac.mm:
1375 (WebCore::ScrollingThread::initializeRunLoop):
1377 2012-02-25 Andreas Kling <awesomekling@apple.com>
1379 Setting style="" should destroy the element's inline style.
1380 <http://webkit.org/b/79595>
1382 Reviewed by Anders Carlsson.
1384 There's no reason for an element with style="" to have an inline style object.
1385 Remove the inline style in that case, just like we do when removing the style
1386 attribute altogether.
1388 * dom/StyledElement.cpp:
1389 (WebCore::StyledElement::parseAttribute):
1391 2012-02-25 Andreas Kling <awesomekling@apple.com>
1393 Allow matched property cache for elements with additional attribute style.
1394 <http://webkit.org/b/79583>
1396 Reviewed by Antti Koivisto.
1398 There's no reason to disallow the matched style property cache for elements
1399 that return something from additionalAttributeStyle(). The only requirement
1400 for a property set to be cached is that it either doesn't mutate OR that it
1401 invalidates the document's CSSStyleSelector when doing so.
1403 This allows some more match caching for table-related elements, though we
1404 are still held back by explicitly 'inherited' properties in html.css.
1406 * css/CSSStyleSelector.cpp:
1407 (WebCore::CSSStyleSelector::collectMatchingRulesForList):
1409 2012-02-25 Julien Chaffraix <jchaffraix@webkit.org>
1411 Clean-up RenderTableSection::calcRowLogicalHeight
1412 https://bugs.webkit.org/show_bug.cgi?id=77705
1414 Reviewed by Nikolas Zimmermann.
1416 Refactoring / simplication of the code.
1418 This change removes some variables that were unneeded and were
1419 hiding what the code was really doing. Also some of the code was
1420 split and moved down to RenderTableCell.
1422 * rendering/RenderTableCell.cpp:
1423 (WebCore::RenderTableCell::logicalHeightForRowSizing):
1424 * rendering/RenderTableCell.h:
1426 Added the previous helper function to calculate the cell's
1427 adjusted logical height.
1429 * rendering/RenderTableSection.cpp:
1430 (WebCore::RenderTableSection::calcRowLogicalHeight):
1431 Removed some variables, simplified the rowspan logic to be clearer
1432 (and added a comment about how we handle rowspans).
1434 2012-02-25 Benjamin Poulain <benjamin@webkit.org>
1436 Add an empty skeleton of KURL for WTFURL
1437 https://bugs.webkit.org/show_bug.cgi?id=78990
1439 Reviewed by Adam Barth.
1441 Add an empty skeleton of KURL based on WTFURL.
1443 With WTFURL, the data of KURL is in an implicitely shared object
1444 named KURLWTFURLImpl.
1446 In KURLWTFURLImpl, KURL created with invalid URL would be stored
1447 as a String. A valid URL would be stored as a ParsedURL.
1449 * ForwardingHeaders/wtf/url/ParsedURL.h: Added.
1451 * WebCore.xcodeproj/project.pbxproj:
1452 * platform/KURL.cpp:
1456 (WebCore::KURL::KURL):
1457 (WebCore::KURL::isHashTableDeletedValue):
1459 * platform/KURLWTFURL.cpp: Added.
1461 (WebCore::KURL::KURL):
1462 (WebCore::KURL::copy):
1463 (WebCore::KURL::isNull):
1464 (WebCore::KURL::isEmpty):
1465 (WebCore::KURL::isValid):
1466 (WebCore::KURL::hasPath):
1467 (WebCore::KURL::string):
1468 (WebCore::KURL::protocol):
1469 (WebCore::KURL::host):
1470 (WebCore::KURL::port):
1471 (WebCore::KURL::hasPort):
1472 (WebCore::KURL::user):
1473 (WebCore::KURL::pass):
1474 (WebCore::KURL::path):
1475 (WebCore::KURL::lastPathComponent):
1476 (WebCore::KURL::query):
1477 (WebCore::KURL::fragmentIdentifier):
1478 (WebCore::KURL::hasFragmentIdentifier):
1479 (WebCore::KURL::copyParsedQueryTo):
1480 (WebCore::KURL::baseAsString):
1481 (WebCore::KURL::deprecatedString):
1482 (WebCore::KURL::fileSystemPath):
1483 (WebCore::KURL::protocolIs):
1484 (WebCore::KURL::protocolIsInHTTPFamily):
1485 (WebCore::KURL::setProtocol):
1486 (WebCore::KURL::setHost):
1487 (WebCore::KURL::removePort):
1488 (WebCore::KURL::setPort):
1489 (WebCore::KURL::setHostAndPort):
1490 (WebCore::KURL::setUser):
1491 (WebCore::KURL::setPass):
1492 (WebCore::KURL::setPath):
1493 (WebCore::KURL::setQuery):
1494 (WebCore::KURL::setFragmentIdentifier):
1495 (WebCore::KURL::removeFragmentIdentifier):
1496 (WebCore::KURL::hostStart):
1497 (WebCore::KURL::hostEnd):
1498 (WebCore::KURL::pathStart):
1499 (WebCore::KURL::pathEnd):
1500 (WebCore::KURL::pathAfterLastSlash):
1501 (WebCore::KURL::invalidate):
1502 (WebCore::KURL::isHierarchical):
1503 (WebCore::protocolIs):
1504 (WebCore::equalIgnoringFragmentIdentifier):
1505 (WebCore::protocolHostAndPortAreEqual):
1506 (WebCore::encodeWithURLEscapeSequences):
1507 (WebCore::decodeURLEscapeSequences):
1508 * platform/KURLWTFURLImpl.h: Copied from Source/WebCore/platform/mac/KURLMac.mm.
1511 * platform/cf/KURLCFNet.cpp:
1513 (WebCore::KURL::KURL):
1514 (WebCore::KURL::createCFURL):
1515 * platform/mac/KURLMac.mm:
1517 (WebCore::KURL::KURL):
1518 (WebCore::KURL::operator NSURL *):
1520 2012-02-25 Anders Carlsson <andersca@apple.com>
1522 Make the libc++ workaround more targeted
1523 https://bugs.webkit.org/show_bug.cgi?id=79578
1524 <rdar://problem/10933150>
1526 Reviewed by Sam Weinig.
1528 Change the std::move implementation to take a WebCore::TimerHeapReference directly so
1529 WebCore still builds with a version of libc++ that has the right std::move function template.
1535 2012-02-25 Andreas Kling <awesomekling@apple.com>
1537 Remove HTMLEmbedElement::insertedIntoDocument().
1538 <http://webkit.org/b/79576>
1540 Reviewed by Anders Carlsson.
1542 * html/HTMLEmbedElement.cpp:
1543 * html/HTMLEmbedElement.h:
1545 2012-02-25 Adrienne Walker <enne@google.com>
1547 Fix unused variable warnings in HarfBuzzShaperBase
1548 https://bugs.webkit.org/show_bug.cgi?id=79575
1550 Reviewed by Andreas Kling.
1552 In builds where asserts are not enabled, the error variable is unused.
1554 * platform/graphics/harfbuzz/HarfBuzzShaperBase.cpp:
1555 (WebCore::normalizeSpacesAndMirrorChars):
1557 2012-02-25 Andreas Kling <awesomekling@apple.com>
1559 Remove HTMLTableElement::attach().
1560 <http://webkit.org/b/79574>
1562 Reviewed by Anders Carlsson.
1564 Remove this attach() override since it was only used to assert that
1565 we're not already attached, and this is already done by Node::attach().
1567 * html/HTMLTableElement.cpp:
1568 * html/HTMLTableElement.h:
1570 2012-02-25 Andreas Kling <awesomekling@apple.com>
1572 HTMLTableElement: Avoid CSSParser in createSharedCellStyle().
1573 <http://webkit.org/b/79573>
1575 Reviewed by Anders Carlsson.
1577 * html/HTMLTableElement.cpp:
1578 (WebCore::HTMLTableElement::createSharedCellStyle):
1580 2012-02-25 Nikolas Zimmermann <nzimmermann@rim.com>
1582 Unreviewed, rolling out r108557.
1583 http://trac.webkit.org/changeset/108557
1584 https://bugs.webkit.org/show_bug.cgi?id=77705
1586 Broke svg/zoom/page/zoom-replated-intrinsic-ratio-001.htm.
1588 * rendering/RenderTableCell.cpp:
1589 * rendering/RenderTableCell.h:
1591 * rendering/RenderTableSection.cpp:
1592 (WebCore::RenderTableSection::calcRowLogicalHeight):
1594 2012-02-25 Andreas Kling <awesomekling@apple.com>
1596 HTMLParamElement: Clean up name/value attribute handling.
1597 <http://webkit.org/b/79559>
1599 Reviewed by Anders Carlsson.
1601 Out-of-line name() and value(), and move the logic from parseAttribute()
1602 into them instead. This makes the class a bit simpler and shrinks it by
1603 two AtomicStrings. Also reduced isURLAttribute() to a two-liner.
1605 * html/HTMLParamElement.cpp:
1606 (WebCore::HTMLParamElement::name):
1607 (WebCore::HTMLParamElement::value):
1608 (WebCore::HTMLParamElement::isURLAttribute):
1609 * html/HTMLParamElement.h:
1611 2012-02-24 Tien-Ren Chen <trchen@chromium.org>
1613 [chromium] Replace RefPtr with OwnPtr for CCLayerImpl tree structure
1614 https://bugs.webkit.org/show_bug.cgi?id=78404
1616 Reviewed by James Robinson.
1618 No new tests. Updated existing test to reflect changes.
1620 * platform/graphics/chromium/CanvasLayerChromium.cpp:
1621 (WebCore::CanvasLayerChromium::createCCLayerImpl):
1622 * platform/graphics/chromium/CanvasLayerChromium.h:
1623 (CanvasLayerChromium):
1624 * platform/graphics/chromium/LayerChromium.cpp:
1625 (WebCore::LayerChromium::createCCLayerImpl):
1626 * platform/graphics/chromium/LayerChromium.h:
1628 * platform/graphics/chromium/PluginLayerChromium.cpp:
1629 (WebCore::PluginLayerChromium::createCCLayerImpl):
1630 * platform/graphics/chromium/PluginLayerChromium.h:
1631 (PluginLayerChromium):
1632 * platform/graphics/chromium/SolidColorLayerChromium.cpp:
1633 (WebCore::SolidColorLayerChromium::createCCLayerImpl):
1634 * platform/graphics/chromium/SolidColorLayerChromium.h:
1635 (SolidColorLayerChromium):
1636 * platform/graphics/chromium/TiledLayerChromium.cpp:
1637 (WebCore::TiledLayerChromium::createCCLayerImpl):
1638 * platform/graphics/chromium/TiledLayerChromium.h:
1639 (TiledLayerChromium):
1640 * platform/graphics/chromium/TreeSynchronizer.cpp:
1641 (WebCore::TreeSynchronizer::synchronizeTrees):
1642 (WebCore::TreeSynchronizer::collectExistingCCLayerImplRecursive):
1644 (WebCore::TreeSynchronizer::reuseOrCreateCCLayerImpl):
1645 (WebCore::TreeSynchronizer::synchronizeTreeRecursive):
1646 * platform/graphics/chromium/TreeSynchronizer.h:
1648 * platform/graphics/chromium/VideoLayerChromium.cpp:
1649 (WebCore::VideoLayerChromium::createCCLayerImpl):
1650 * platform/graphics/chromium/VideoLayerChromium.h:
1651 (VideoLayerChromium):
1652 * platform/graphics/chromium/cc/CCCanvasLayerImpl.h:
1653 (WebCore::CCCanvasLayerImpl::create):
1654 * platform/graphics/chromium/cc/CCDamageTracker.cpp:
1655 (WebCore::CCDamageTracker::updateDamageTrackingState):
1656 (WebCore::CCDamageTracker::trackDamageFromActiveLayers):
1657 * platform/graphics/chromium/cc/CCDamageTracker.h:
1659 * platform/graphics/chromium/cc/CCLayerImpl.cpp:
1660 (WebCore::CCLayerImpl::CCLayerImpl):
1661 (WebCore::CCLayerImpl::addChild):
1662 (WebCore::sortLayers):
1663 (WebCore::CCLayerImpl::setMaskLayer):
1664 (WebCore::CCLayerImpl::setReplicaLayer):
1665 * platform/graphics/chromium/cc/CCLayerImpl.h:
1666 (WebCore::CCLayerImpl::create):
1667 (WebCore::CCLayerImpl::children):
1670 * platform/graphics/chromium/cc/CCLayerIterator.cpp:
1672 (WebCore::CCLayerIteratorActions::BackToFront::begin):
1673 (WebCore::CCLayerIteratorActions::BackToFront::end):
1674 (WebCore::CCLayerIteratorActions::BackToFront::next):
1675 (WebCore::CCLayerIteratorActions::FrontToBack::begin):
1676 (WebCore::CCLayerIteratorActions::FrontToBack::end):
1677 (WebCore::CCLayerIteratorActions::FrontToBack::next):
1678 (WebCore::CCLayerIteratorActions::FrontToBack::goToHighestInSubtree):
1679 * platform/graphics/chromium/cc/CCLayerIterator.h:
1682 (WebCore::CCLayerIterator::begin):
1683 (WebCore::CCLayerIterator::end):
1684 (WebCore::CCLayerIterator::targetRenderSurfaceLayer):
1685 (WebCore::CCLayerIterator::CCLayerIterator):
1686 (WebCore::CCLayerIterator::getRawPtr):
1687 (WebCore::CCLayerIterator::currentLayer):
1688 (WebCore::CCLayerIterator::targetRenderSurfaceChildren):
1691 * platform/graphics/chromium/cc/CCLayerSorter.cpp:
1692 (WebCore::CCLayerSorter::createGraphNodes):
1693 * platform/graphics/chromium/cc/CCLayerSorter.h:
1695 * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
1696 (WebCore::CCLayerTreeHost::finishCommitOnImplThread):
1697 (WebCore::CCLayerTreeHost::didBecomeInvisibleOnImplThread):
1698 (WebCore::CCLayerTreeHost::reserveTextures):
1699 (WebCore::CCLayerTreeHost::paintLayerContents):
1700 (WebCore::CCLayerTreeHost::updateCompositorResources):
1701 * platform/graphics/chromium/cc/CCLayerTreeHostCommon.cpp:
1703 (WebCore::calculateDrawTransformsAndVisibilityInternal):
1704 (WebCore::walkLayersAndCalculateVisibleLayerRects):
1705 (WebCore::CCLayerTreeHostCommon::calculateDrawTransformsAndVisibility):
1706 * platform/graphics/chromium/cc/CCLayerTreeHostCommon.h:
1707 (CCLayerTreeHostCommon):
1708 * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
1709 (WebCore::CCLayerTreeHostImpl::CCLayerTreeHostImpl):
1710 (WebCore::CCLayerTreeHostImpl::trackDamageForAllSurfaces):
1711 (WebCore::CCLayerTreeHostImpl::calculateRenderPasses):
1712 (WebCore::CCLayerTreeHostImpl::drawLayers):
1713 (WebCore::CCLayerTreeHostImpl::setRootLayer):
1714 * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
1715 (CCLayerTreeHostImpl):
1716 (WebCore::CCLayerTreeHostImpl::releaseRootLayer):
1717 (WebCore::CCLayerTreeHostImpl::scrollLayer):
1718 * platform/graphics/chromium/cc/CCPluginLayerImpl.h:
1719 (WebCore::CCPluginLayerImpl::create):
1720 * platform/graphics/chromium/cc/CCRenderSurface.h:
1721 (WebCore::CCRenderSurface::layerList):
1723 * platform/graphics/chromium/cc/CCSolidColorLayerImpl.h:
1724 (WebCore::CCSolidColorLayerImpl::create):
1725 * platform/graphics/chromium/cc/CCTiledLayerImpl.h:
1726 (WebCore::CCTiledLayerImpl::create):
1727 * platform/graphics/chromium/cc/CCVideoLayerImpl.h:
1728 (WebCore::CCVideoLayerImpl::create):
1730 2012-02-24 Andreas Kling <awesomekling@apple.com>
1732 Don't pass constant strings to CSSParser for presentation attributes.
1733 <http://webkit.org/b/79530>
1735 Reviewed by Anders Carlsson.
1737 "both" -> CSSValueBoth.
1738 "center" -> CSSValueCenter.
1740 * html/HTMLBRElement.cpp:
1741 (WebCore::HTMLBRElement::collectStyleForAttribute):
1742 * html/HTMLElement.cpp:
1743 (WebCore::HTMLElement::collectStyleForAttribute):
1745 2012-02-24 Yael Aharon <yael.aharon@nokia.com>
1747 [Texmap] Add const-ness to TextureMapperShaderManager
1748 https://bugs.webkit.org/show_bug.cgi?id=79545
1750 Reviewed by Noam Rosenthal.
1752 Add const to new methods.
1755 * platform/graphics/texmap/TextureMapperShaderManager.cpp:
1756 (WebCore::TextureMapperShaderProgramSimple::vertexShaderSource):
1757 (WebCore::TextureMapperShaderProgramSimple::fragmentShaderSource):
1758 (WebCore::TextureMapperShaderProgramOpacityAndMask::vertexShaderSource):
1759 (WebCore::TextureMapperShaderProgramOpacityAndMask::fragmentShaderSource):
1760 * platform/graphics/texmap/TextureMapperShaderManager.h:
1761 (WebCore::TextureMapperShaderProgram::matrixVariable):
1762 (WebCore::TextureMapperShaderProgram::sourceMatrixVariable):
1763 (WebCore::TextureMapperShaderProgram::sourceTextureVariable):
1764 (WebCore::TextureMapperShaderProgram::opacityVariable):
1765 (TextureMapperShaderProgram):
1766 (TextureMapperShaderProgramSimple):
1767 (WebCore::TextureMapperShaderProgramOpacityAndMask::maskMatrixVariable):
1768 (WebCore::TextureMapperShaderProgramOpacityAndMask::maskTextureVariable):
1769 (TextureMapperShaderProgramOpacityAndMask):
1771 2012-02-24 Tom Sepez <tsepez@chromium.org>
1773 XSS Auditor targeting legitimate frames as false positives.
1774 https://bugs.webkit.org/show_bug.cgi?id=79397
1776 Reviewed by Adam Barth.
1778 Test: http/tests/security/xssAuditor/script-tag-safe4.html
1780 * html/parser/XSSAuditor.cpp:
1781 (WebCore::XSSAuditor::filterCharacterToken):
1782 (WebCore::XSSAuditor::filterScriptToken):
1783 (WebCore::XSSAuditor::filterObjectToken):
1784 (WebCore::XSSAuditor::filterEmbedToken):
1785 (WebCore::XSSAuditor::filterAppletToken):
1786 (WebCore::XSSAuditor::filterIframeToken):
1787 (WebCore::XSSAuditor::decodedSnippetForToken):
1789 (WebCore::XSSAuditor::decodedSnippetForName):
1790 (WebCore::XSSAuditor::decodedSnippetForAttribute):
1791 (WebCore::XSSAuditor::decodedSnippetForJavascript):
1792 (WebCore::XSSAuditor::isContainedInRequest):
1793 (WebCore::XSSAuditor::isSameOriginResource):
1794 * html/parser/XSSAuditor.h:
1796 2012-02-24 Ian Vollick <vollick@chromium.org>
1798 [chromium] Plumb animation started notifications from CCLayerTreeHost to GraphicsLayerChromium
1799 https://bugs.webkit.org/show_bug.cgi?id=77646
1801 Reviewed by James Robinson.
1804 * platform/graphics/chromium/GraphicsLayerChromium.cpp:
1806 (WebCore::GraphicsLayerChromium::~GraphicsLayerChromium):
1807 (WebCore::GraphicsLayerChromium::addAnimation):
1808 (WebCore::GraphicsLayerChromium::pauseAnimation):
1809 (WebCore::GraphicsLayerChromium::removeAnimation):
1810 (WebCore::GraphicsLayerChromium::suspendAnimations):
1811 (WebCore::GraphicsLayerChromium::resumeAnimations):
1812 (WebCore::GraphicsLayerChromium::updateLayerPreserves3D):
1813 (WebCore::GraphicsLayerChromium::mapAnimationNameToId):
1815 (WebCore::GraphicsLayerChromium::notifyAnimationStarted):
1816 (WebCore::GraphicsLayerChromium::notifyAnimationFinished):
1817 * platform/graphics/chromium/GraphicsLayerChromium.h:
1818 (GraphicsLayerChromium):
1819 * platform/graphics/chromium/LayerChromium.cpp:
1820 (WebCore::LayerChromium::LayerChromium):
1821 (WebCore::LayerChromium::setAnimationEvent):
1823 * platform/graphics/chromium/LayerChromium.h:
1826 (WebCore::LayerChromium::setLayerAnimationDelegate):
1827 * platform/graphics/chromium/cc/CCAnimationEvents.cpp: Added.
1829 (WebCore::CCAnimationEvent::CCAnimationEvent):
1830 (WebCore::CCAnimationEvent::~CCAnimationEvent):
1831 (WebCore::CCAnimationEvent::toAnimationStartedEvent):
1832 (WebCore::CCAnimationEvent::toAnimationFinishedEvent):
1833 (WebCore::CCAnimationStartedEvent::create):
1834 (WebCore::CCAnimationStartedEvent::CCAnimationStartedEvent):
1835 (WebCore::CCAnimationStartedEvent::~CCAnimationStartedEvent):
1836 (WebCore::CCAnimationStartedEvent::type):
1837 (WebCore::CCAnimationFinishedEvent::create):
1838 (WebCore::CCAnimationFinishedEvent::CCAnimationFinishedEvent):
1839 (WebCore::CCAnimationFinishedEvent::~CCAnimationFinishedEvent):
1840 (WebCore::CCAnimationFinishedEvent::type):
1841 * platform/graphics/chromium/cc/CCAnimationEvents.h:
1844 (WebCore::CCAnimationEvent::layerId):
1845 (CCAnimationStartedEvent):
1846 (WebCore::CCAnimationStartedEvent::startTime):
1847 (CCAnimationFinishedEvent):
1848 (WebCore::CCAnimationFinishedEvent::animationId):
1849 * platform/graphics/chromium/cc/CCLayerAnimationControllerImpl.cpp:
1850 (WebCore::CCLayerAnimationControllerImpl::animate):
1851 (WebCore::CCLayerAnimationControllerImpl::startAnimationsWaitingForNextTick):
1852 (WebCore::CCLayerAnimationControllerImpl::startAnimationsWaitingForStartTime):
1853 (WebCore::CCLayerAnimationControllerImpl::startAnimationsWaitingForTargetAvailability):
1854 (WebCore::CCLayerAnimationControllerImpl::purgeFinishedAnimations):
1855 (WebCore::CCLayerAnimationControllerImpl::tickAnimations):
1856 * platform/graphics/chromium/cc/CCLayerAnimationControllerImpl.h:
1857 (CCLayerAnimationControllerImpl):
1858 * platform/graphics/chromium/cc/CCLayerAnimationDelegate.h: Copied from Source/WebCore/platform/graphics/chromium/cc/CCAnimationEvents.h.
1860 (CCLayerAnimationDelegate):
1861 * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
1862 (WebCore::CCLayerTreeHost::setAnimationEvents):
1863 (WebCore::CCLayerTreeHost::setAnimationEventsRecursive):
1865 * platform/graphics/chromium/cc/CCLayerTreeHost.h:
1867 2012-02-24 Abhishek Arya <inferno@chromium.org>
1869 Regression(r107477): Crash in StaticNodeList::itemWithName.
1870 https://bugs.webkit.org/show_bug.cgi?id=79532
1872 Reviewed by Andreas Kling.
1874 Make sure that node is an element node before checking its id attribute.
1876 Test: fast/mutation/mutation-callback-non-element-crash.html
1878 * dom/StaticNodeList.cpp:
1879 (WebCore::StaticNodeList::itemWithName):
1881 2012-02-24 Tony Chang <tony@chromium.org>
1883 More refactoring in RenderFlexibleBox
1884 https://bugs.webkit.org/show_bug.cgi?id=79533
1886 Reviewed by Ojan Vafai.
1888 No new tests, just refactoring.
1890 * rendering/RenderFlexibleBox.cpp:
1891 (WebCore::RenderFlexibleBox::layoutFlexItems): Move the flipping of RTL+column positions to its own method.
1892 This might be a tiny bit slower, but it's clearer since it's not related to alignment.
1893 (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): Move the logical height calculation out of the loop. We only need the final height.
1894 (WebCore::RenderFlexibleBox::alignChildren):
1895 (WebCore::RenderFlexibleBox::flipForRightToLeftColumn):
1896 * rendering/RenderFlexibleBox.h:
1897 (RenderFlexibleBox):
1899 2012-02-24 Abhishek Arya <inferno@chromium.org>
1901 Positioned objects not cleared when moving children
1902 to clone block in multi-column layout.
1903 https://bugs.webkit.org/show_bug.cgi?id=78416
1905 Reviewed by Eric Seidel.
1907 Test: fast/multicol/span/positioned-child-not-removed-crash.html
1909 * rendering/RenderBlock.cpp:
1910 (WebCore::RenderBlock::splitBlocks):
1912 2012-02-24 Michael Saboff <msaboff@apple.com>
1914 Unreviewed, Windows build fix. Changed "-1" to newly
1915 created constant JSC::Yarr::offsetNoMatch added in r108858.
1917 * platform/text/RegularExpression.cpp:
1918 (WebCore::RegularExpression::match):
1920 2012-02-24 Eric Carlson <eric.carlson@apple.com>
1922 Update TextTrackCue API
1923 https://bugs.webkit.org/show_bug.cgi?id=79368
1925 Change TextTrackCue.alignment to .align, TextTrackCue.linePosition and .textPosition to .line
1926 and .position, and TextTrackCue.direction to .vertical. Change direction values "horizontal"
1927 to "","vertical" to "rl", and "vertical-lr" to "lr".
1929 Reviewed by Eric Seidel.
1931 No new tests, updated existing tests for API changes.
1933 * html/track/TextTrackCue.cpp:
1934 (WebCore::horizontalKeyword):
1935 (WebCore::verticalGrowingLeftKeyword):
1937 (WebCore::verticalGrowingRightKeyword):
1938 (WebCore::verticalKeywordOLD):
1939 (WebCore::verticallrKeywordOLD):
1940 (WebCore::TextTrackCue::TextTrackCue):
1941 (WebCore::TextTrackCue::vertical):
1942 (WebCore::TextTrackCue::setVertical):
1943 (WebCore::TextTrackCue::setLine):
1944 (WebCore::TextTrackCue::setPosition):
1945 (WebCore::TextTrackCue::align):
1946 (WebCore::TextTrackCue::setAlign):
1947 (WebCore::TextTrackCue::parseSettings):
1948 * html/track/TextTrackCue.h:
1950 (WebCore::TextTrackCue::line):
1951 (WebCore::TextTrackCue::position):
1952 * html/track/TextTrackCue.idl:
1954 2012-02-24 Adrienne Walker <enne@google.com>
1956 Fix uninitialized variables in HarfBuzzShaperBase
1957 https://bugs.webkit.org/show_bug.cgi?id=79546
1959 Reviewed by Dirk Pranke.
1961 These were introduced in r108733.
1963 * platform/graphics/harfbuzz/HarfBuzzShaperBase.cpp:
1964 (WebCore::HarfBuzzShaperBase::HarfBuzzShaperBase):
1966 2012-02-24 Noel Gordon <noel.gordon@gmail.com>
1968 [chromium] JPEG RGB image with Adode Marker fails to turbo swizzle decode
1969 https://bugs.webkit.org/show_bug.cgi?id=79457
1971 Reviewed by Adam Barth.
1973 If a JPEG has no JFIF marker, the Adode Marker must be used to determine the image
1974 color space for decoding via that markers transform value. Transform 0 images with
1975 3 color components (RGB) fail to decode with libjpeg-turbo when a swizzle decoding
1976 is active. Detect this case and decode using JCS_RGB output color space instead.
1978 Test: fast/images/rgb-jpeg-with-abode-marker-only.html
1980 * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
1981 (WebCore::JPEGImageReader::decode):
1983 2012-02-24 Joshua Bell <jsbell@chromium.org>
1985 [V8] IndexedDB: IDBTransaction objects leak in Workers
1986 https://bugs.webkit.org/show_bug.cgi?id=79308
1988 Use a V8RecursionScope whenever Workers call into script, so that
1989 post-script side-effects can be executed.
1991 Reviewed by Tony Chang.
1993 Test: storage/indexeddb/transaction-abort-workers.html
1995 * bindings/v8/ScheduledAction.cpp:
1996 (WebCore::ScheduledAction::execute):
1997 * bindings/v8/V8WorkerContextErrorHandler.cpp:
1998 (WebCore::V8WorkerContextErrorHandler::callListenerFunction):
1999 * bindings/v8/V8WorkerContextEventListener.cpp:
2000 (WebCore::V8WorkerContextEventListener::callListenerFunction):
2001 * bindings/v8/WorkerContextExecutionProxy.cpp: Replace custom recursion tracking.
2002 (WebCore::WorkerContextExecutionProxy::WorkerContextExecutionProxy):
2003 (WebCore::WorkerContextExecutionProxy::runScript):
2004 * bindings/v8/WorkerContextExecutionProxy.h:
2005 (WorkerContextExecutionProxy):
2007 2012-02-24 Gregg Tavares <gman@google.com>
2009 Limit WebGL Errors in Console to 10 per context
2010 https://bugs.webkit.org/show_bug.cgi?id=79387
2012 Reviewed by Kenneth Russell.
2014 Some apps generated enough errors to overload
2015 the Dev Tools so limit the number of errors.
2016 For a correct app there should never be any
2017 errors so seeing the first few should be enough
2020 No new tests as no new functionality
2022 * html/canvas/WebGLRenderingContext.cpp:
2024 (WebCore::WebGLRenderingContextErrorMessageCallback::onErrorMessage):
2025 (WebCore::WebGLRenderingContext::WebGLRenderingContext):
2026 (WebCore::WebGLRenderingContext::initializeNewContext):
2027 (WebCore::WebGLRenderingContext::printGLErrorToConsole):
2028 (WebCore::WebGLRenderingContext::synthesizeGLError):
2029 * html/canvas/WebGLRenderingContext.h:
2030 (WebGLRenderingContext):
2032 2012-02-24 Michael Saboff <msaboff@apple.com>
2034 ASSERT(position < 0) in JSC::Yarr::Interpreter::InputStream::readChecked
2035 https://bugs.webkit.org/show_bug.cgi?id=73728
2037 Reviewed by Gavin Barraclough.
2039 No new tests, refactored usage of JSC::Yarr interpreter.
2040 Should be covered by existing tests.
2042 Changed WebCore callers of JSC::Yarr:Interpreter::interpret() to match the
2043 new signature with unsigned offsets.
2045 * inspector/ContentSearchUtils.cpp:
2046 (WebCore::ContentSearchUtils::findMagicComment):
2047 * platform/text/RegularExpression.cpp:
2048 (WebCore::RegularExpression::match):
2050 2012-02-24 Hans Muller <hmuller@adobe.com>
2052 onclick is not reliable for transformed SVG elements
2053 https://bugs.webkit.org/show_bug.cgi?id=34714
2055 Reviewed by Dirk Schulze.
2057 Use FloatPoints in RenderSVGRoot::nodeAtPoint() when converting the incoming
2058 point to local coordinates.
2060 Test: svg/hittest/svg-small-viewbox.xhtml
2062 * rendering/svg/RenderSVGRoot.cpp:
2063 (WebCore::RenderSVGRoot::nodeAtPoint):
2065 2012-02-24 Julien Chaffraix <jchaffraix@webkit.org>
2067 Implement limited parsing of -webkit-grid-column and -webkit-grid-row
2068 https://bugs.webkit.org/show_bug.cgi?id=79151
2070 Reviewed by Ojan Vafai.
2072 Test: fast/css-grid-layout/grid-item-column-row-get-set.html
2074 This change implements a subset of the grammar:
2076 -webkit-grid-{row|column} := <integer> | 'auto'
2079 * GNUmakefile.list.am:
2082 * WebCore.vcproj/WebCore.vcproj:
2083 * WebCore.xcodeproj/project.pbxproj:
2084 Added the new files to our build systems.
2086 * css/CSSComputedStyleDeclaration.cpp:
2087 (WebCore::valueForGridPosition): Check that we have the right translated grammar
2088 (this function will be more useful once we implement more of the grammar).
2089 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
2090 * css/CSSStyleSelector.cpp:
2091 (WebCore::CSSStyleSelector::applyProperty):
2092 Added handling for the new properties.
2094 * css/CSSParser.cpp:
2095 (WebCore::CSSParser::parseValue):
2096 Allow only 'auto' or <integer>.
2098 * css/CSSProperty.cpp:
2099 (WebCore::CSSProperty::isInheritedProperty):
2100 grid-colum and grid-row are not inherited.
2102 * css/CSSPropertyNames.in:
2103 Added the 2 new properties.
2105 * rendering/style/RenderStyle.cpp:
2106 (WebCore::RenderStyle::RenderStyle):
2107 (WebCore::RenderStyle::diff):
2108 * rendering/style/RenderStyle.h:
2109 * rendering/style/StyleGridItemData.cpp: Added.
2110 (WebCore::StyleGridItemData::StyleGridItemData):
2111 * rendering/style/StyleGridItemData.h: Added.
2112 (StyleGridItemData):
2113 (WebCore::StyleGridItemData::create):
2114 (WebCore::StyleGridItemData::copy):
2115 (WebCore::StyleGridItemData::operator==):
2116 (WebCore::StyleGridItemData::operator!=):
2117 Implemented the minimum working class.
2119 * rendering/style/StyleRareNonInheritedData.cpp:
2120 (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
2121 (WebCore::StyleRareNonInheritedData::operator==):
2122 * rendering/style/StyleRareNonInheritedData.h:
2123 (StyleRareNonInheritedData):
2124 Added StyleGridItemData to the class StyleRareNonInheritedData.
2126 2012-02-24 Joshua Bell <jsbell@chromium.org>
2128 IndexedDB: IDBObjectStore.count() and IDBIndex.count() should accept key argument
2129 https://bugs.webkit.org/show_bug.cgi?id=79422
2131 Reviewed by Tony Chang.
2133 Tests: storage/indexeddb/index-count.html
2134 storage/indexeddb/objectstore-count.html
2136 * storage/IDBIndex.cpp:
2137 (WebCore::IDBIndex::count):
2139 * storage/IDBIndex.h:
2140 (WebCore::IDBIndex::count):
2142 * storage/IDBIndex.idl:
2143 * storage/IDBObjectStore.cpp:
2144 (WebCore::IDBObjectStore::deleteFunction):
2145 (WebCore::IDBObjectStore::count):
2147 * storage/IDBObjectStore.h:
2148 (WebCore::IDBObjectStore::count):
2150 * storage/IDBObjectStore.idl:
2152 2012-02-24 Adam Barth <abarth@webkit.org>
2154 Move mediastream into Modules/mediastream
2155 https://bugs.webkit.org/show_bug.cgi?id=79517
2157 Reviewed by Eric Seidel.
2159 This patch moves the mediastream directory into Modules. mediastream
2160 is a self-contained feature and is a good candidate for being a module.
2163 * GNUmakefile.list.am:
2164 * Modules/mediastream: Copied from Source/WebCore/mediastream.
2165 * WebCore.gyp/WebCore.gyp:
2167 * mediastream: Removed.
2168 * mediastream/DOMWindowMediaStream.idl: Removed.
2169 * mediastream/LocalMediaStream.cpp: Removed.
2170 * mediastream/LocalMediaStream.h: Removed.
2171 * mediastream/LocalMediaStream.idl: Removed.
2172 * mediastream/MediaStream.cpp: Removed.
2173 * mediastream/MediaStream.h: Removed.
2174 * mediastream/MediaStream.idl: Removed.
2175 * mediastream/MediaStreamEvent.cpp: Removed.
2176 * mediastream/MediaStreamEvent.h: Removed.
2177 * mediastream/MediaStreamEvent.idl: Removed.
2178 * mediastream/MediaStreamList.cpp: Removed.
2179 * mediastream/MediaStreamList.h: Removed.
2180 * mediastream/MediaStreamList.idl: Removed.
2181 * mediastream/MediaStreamRegistry.cpp: Removed.
2182 * mediastream/MediaStreamRegistry.h: Removed.
2183 * mediastream/MediaStreamTrack.cpp: Removed.
2184 * mediastream/MediaStreamTrack.h: Removed.
2185 * mediastream/MediaStreamTrack.idl: Removed.
2186 * mediastream/MediaStreamTrackList.cpp: Removed.
2187 * mediastream/MediaStreamTrackList.h: Removed.
2188 * mediastream/MediaStreamTrackList.idl: Removed.
2189 * mediastream/NavigatorMediaStream.cpp: Removed.
2190 * mediastream/NavigatorMediaStream.h: Removed.
2191 * mediastream/NavigatorMediaStream.idl: Removed.
2192 * mediastream/NavigatorUserMediaError.h: Removed.
2193 * mediastream/NavigatorUserMediaError.idl: Removed.
2194 * mediastream/NavigatorUserMediaErrorCallback.h: Removed.
2195 * mediastream/NavigatorUserMediaErrorCallback.idl: Removed.
2196 * mediastream/NavigatorUserMediaSuccessCallback.h: Removed.
2197 * mediastream/NavigatorUserMediaSuccessCallback.idl: Removed.
2198 * mediastream/PeerConnection.cpp: Removed.
2199 * mediastream/PeerConnection.h: Removed.
2200 * mediastream/PeerConnection.idl: Removed.
2201 * mediastream/SignalingCallback.h: Removed.
2202 * mediastream/SignalingCallback.idl: Removed.
2203 * mediastream/UserMediaClient.h: Removed.
2204 * mediastream/UserMediaController.cpp: Removed.
2205 * mediastream/UserMediaController.h: Removed.
2206 * mediastream/UserMediaRequest.cpp: Removed.
2207 * mediastream/UserMediaRequest.h: Removed.
2209 2012-02-24 Abhishek Arya <inferno@chromium.org>
2211 Overhanging floats not removed from new flex box.
2212 https://bugs.webkit.org/show_bug.cgi?id=79522
2214 Reviewed by Ojan Vafai.
2218 Test: fast/flexbox/overhanging-floats-not-removed-crash.html
2220 * rendering/RenderBox.cpp:
2221 (WebCore::RenderBox::removeFloatingOrPositionedChildFromBlockLists):
2223 2012-02-24 Brent Fulgham <bfulgham@webkit.org>
2225 [WinCairo] Compute more acurate font heights.
2226 https://bugs.webkit.org/show_bug.cgi?id=79524
2228 Reviewed by Adam Roben.
2230 Adjust font handling as suggested by Lynn Neir to use the proper
2231 xHeight value for the font, rather than the fall-back guess
2232 used in the current code.
2234 css1/text_properties/line_height.html
2236 * platform/graphics/win/SimpleFontDataCairoWin.cpp:
2237 (WebCore::SimpleFontData::platformInit): Properly initialize a
2239 (WebCore::SimpleFontData::platformWidthForGlyph): Use the Cairo
2240 cairo_scaled_font_text_extents call, rather than attempting
2241 to compute the value from ::GetGlyphOutline.
2243 2012-02-24 Tim Horton <timothy_horton@apple.com>
2245 Infinite repaint loop with SVGImageCache and deferred repaint timers
2246 https://bugs.webkit.org/show_bug.cgi?id=78315
2247 <rdar://problem/10651634>
2249 Reviewed by Dean Jackson.
2251 Only defer image redraw on a timer if we're in layout. This breaks
2252 the repaint loop while still preventing us from drawing inside layout.
2254 No new tests, as the problem only occurs in a nonstandard configuration.
2256 * svg/graphics/SVGImage.cpp:
2257 (WebCore::SVGImage::draw):
2258 (WebCore::SVGImage::frameView):
2260 * svg/graphics/SVGImage.h:
2262 * svg/graphics/SVGImageCache.cpp:
2263 (WebCore::SVGImageCache::imageContentChanged):
2264 (WebCore::SVGImageCache::redraw):
2265 (WebCore::SVGImageCache::redrawTimerFired):
2267 * svg/graphics/SVGImageCache.h:
2270 2012-02-24 Tim Horton <timothy_horton@apple.com>
2272 SVG should be supported in Dashboard compatibility mode
2273 https://bugs.webkit.org/show_bug.cgi?id=78322
2274 <rdar://problem/5861278>
2276 Reviewed by Dean Jackson.
2278 Enable SVG elements inside Dashboard, more or less reverting r21418.
2280 Tests: http/tests/xmlhttprequest/svg-created-by-xhr-allowed-in-dashboard.html
2281 svg/custom/embedded-svg-allowed-in-dashboard.xml
2282 svg/custom/manually-parsed-embedded-svg-allowed-in-dashboard.html
2283 svg/custom/manually-parsed-svg-allowed-in-dashboard.html
2284 svg/custom/svg-allowed-in-dashboard-object.html
2286 * dom/DOMImplementation.cpp:
2287 (WebCore::DOMImplementation::createDocument):
2289 (WebCore::Document::importNode):
2290 * dom/make_names.pl:
2291 (printFactoryCppFile):
2293 2012-02-24 Min Qin <qinmin@google.com>
2295 Expose a setting to exempt media playback from user gesture requirement after a user gesture is initiated on loading/playing a media
2296 https://bugs.webkit.org/show_bug.cgi?id=79167
2298 Reviewed by Adam Barth.
2300 Test: media/video-play-require-user-gesture.html
2302 * html/HTMLMediaElement.cpp:
2303 (WebCore::HTMLMediaElement::load):
2304 (WebCore::HTMLMediaElement::play):
2305 (WebCore::HTMLMediaElement::removeBehaviorsRestrictionsAfterFirstUserGesture):
2307 * html/HTMLMediaElement.h:
2309 * testing/Internals.cpp:
2310 (WebCore::Internals::setMediaPlaybackRequiresUserGesture):
2312 * testing/Internals.h:
2314 * testing/Internals.idl:
2316 2012-02-24 Adam Barth <abarth@webkit.org>
2318 DOMWindow*.idl should have had the same license block as DOMWindow.idl did originally
2319 https://bugs.webkit.org/show_bug.cgi?id=79507
2321 Reviewed by Alexey Proskuryakov.
2323 In moving pieces of DOMWindow.idl into separate files, we mistakenly
2324 changed some of the license blocks. All these files should have a
2325 license block that matches the file that originally contained the code.
2327 * Modules/intents/DOMWindowIntents.idl:
2328 * fileapi/DOMWindowFileSystem.idl:
2329 * html/DOMWindowHTML.idl:
2330 * html/canvas/DOMWindowWebGL.idl:
2331 * mediastream/DOMWindowMediaStream.idl:
2332 * storage/DOMWindowSQLDatabase.idl:
2333 * svg/DOMWindowSVG.idl:
2334 * webaudio/DOMWindowWebAudio.idl:
2335 * websockets/DOMWindowWebSocket.idl:
2336 * workers/DOMWindowWorker.idl:
2337 * xml/DOMWindowXML.idl:
2339 2012-02-24 David Kilzer <ddkilzer@apple.com>
2341 Use xcrun to find compiler paths for Generate Derived Sources build phase script
2342 <http://webkit.org/b/79512>
2344 Reviewed by Mark Rowe.
2346 * WebCore.xcodeproj/project.pbxproj:
2347 (Generate Derived Sources): Use xcrun to find the path to the
2348 compiler since that works on both iOS and OS X.
2350 2012-02-24 Anders Carlsson <andersca@apple.com>
2352 Crash in TileCache::revalidateTiles
2353 https://bugs.webkit.org/show_bug.cgi?id=79510
2354 <rdar://problem/10928035>
2356 Reviewed by Sam Weinig.
2358 Handle the tile cache layer's PlatformCALayer going away before the
2359 CALayer itself has been deallocated.
2361 * platform/graphics/ca/mac/TileCache.mm:
2362 (WebCore::TileCache::revalidateTiles):
2364 2012-02-24 Adam Klein <adamk@chromium.org>
2366 Don't notify the inspector of Node insertions initiated by the parser
2367 https://bugs.webkit.org/show_bug.cgi?id=79388
2369 Reviewed by Adam Barth.
2371 This is part of a series of changes to make ContainerNode's
2372 implementation simpler and more internally consistent.
2374 I don't know of a way to break on parser-initiated insertions,
2375 and the code already doesn't notify on parser-initiated removes
2376 (in ContainerNode::parserRemoveChild).
2378 No new tests, should already be covered by
2379 inspector/debugger/dom-breakpoints.html.
2381 * dom/ContainerNode.cpp:
2382 (WebCore::ContainerNode::parserInsertBefore):
2383 (WebCore::ContainerNode::parserAddChild):
2385 2012-02-24 Daniel Bates <dbates@webkit.org>
2387 Attempt to fix the Windows and WinCE build after changeset r108809
2388 <http://trac.webkit.org/changeset/108809> (https://bugs.webkit.org/show_bug.cgi?id=38995)
2390 Substitute styleLoadEventSender() for loadEventSender() in HTMLStyleElement.cpp
2391 and substitute linkLoadEventSender() for loadEventSender() in HTMLLinkElement.cpp.
2393 * html/HTMLLinkElement.cpp:
2394 (WebCore::linkLoadEventSender):
2395 (WebCore::HTMLLinkElement::~HTMLLinkElement):
2396 (WebCore::HTMLLinkElement::dispatchPendingLoadEvents):
2397 (WebCore::HTMLLinkElement::dispatchPendingEvent):
2398 (WebCore::HTMLLinkElement::notifyLoadedSheetAndAllCriticalSubresources):
2399 * html/HTMLStyleElement.cpp:
2400 (WebCore::styleLoadEventSender):
2401 (WebCore::HTMLStyleElement::~HTMLStyleElement):
2402 (WebCore::HTMLStyleElement::dispatchPendingLoadEvents):
2403 (WebCore::HTMLStyleElement::dispatchPendingEvent):
2404 (WebCore::HTMLStyleElement::notifyLoadedSheetAndAllCriticalSubresources):
2406 2012-02-24 Peter Beverloo <peter@chromium.org>
2408 [Chromium] Fix Chromium Android build by building HarfBuzzShaperBase.cpp
2409 https://bugs.webkit.org/show_bug.cgi?id=79497
2411 Reviewed by Tony Gentilcore.
2413 The Chromium Android build was broken by revision r108733, as the
2414 HarfBuzzShaperBase.cpp file also should have been included for Android.
2415 Fix the build by including it.
2417 * WebCore.gyp/WebCore.gyp:
2419 2012-02-24 Yael Aharon <yael.aharon@nokia.com>
2421 [Texmap] Consolidate the common parts of TextureMapperGL::drawTexture
2422 https://bugs.webkit.org/show_bug.cgi?id=79143
2424 Reviewed by Noam Rosenthal.
2426 Combine the two drawTexture methods into one, and extract the part that
2427 could not be combined into its own method.
2428 No new tests. Refactoring only.
2430 * platform/graphics/texmap/TextureMapperGL.cpp:
2432 (WebCore::TextureMapperGL::drawTexture):
2433 * platform/graphics/texmap/TextureMapperGL.h:
2436 (WebCore::BitmapTextureGL::~BitmapTextureGL):
2437 (WebCore::BitmapTextureGL::id):
2438 (WebCore::BitmapTextureGL::relativeSize):
2439 (WebCore::BitmapTextureGL::setTextureMapper):
2440 (WebCore::BitmapTextureGL::BitmapTextureGL):
2441 * platform/graphics/texmap/TextureMapperShaderManager.cpp:
2442 (WebCore::TextureMapperShaderProgramOpacityAndMask::fragmentShaderSource):
2444 (WebCore::TextureMapperShaderProgramOpacityAndMask::prepare):
2445 * platform/graphics/texmap/TextureMapperShaderManager.h:
2447 (WebCore::TextureMapperShaderProgram::prepare):
2448 (WebCore::TextureMapperShaderProgram::matrixVariable):
2449 (WebCore::TextureMapperShaderProgram::sourceMatrixVariable):
2450 (WebCore::TextureMapperShaderProgram::sourceTextureVariable):
2451 (WebCore::TextureMapperShaderProgram::opacityVariable):
2452 (TextureMapperShaderProgram):
2453 (TextureMapperShaderProgramSimple):
2454 (TextureMapperShaderProgramOpacityAndMask):
2455 (WebCore::TextureMapperShaderProgramOpacityAndMask::maskMatrixVariable):
2456 (WebCore::TextureMapperShaderProgramOpacityAndMask::maskTextureVariable):
2458 2012-02-24 Daniel Bates <dbates@webkit.org>
2460 style element and link element for CSS stylesheet should emit load/error event when sheet loads/fails to load
2461 https://bugs.webkit.org/show_bug.cgi?id=38995
2463 Reviewed by Adam Barth and Nate Chapin.
2465 Tests: fast/dom/HTMLLinkElement/link-onerror-stylesheet-with-existent-and-non-existent-import.html
2466 fast/dom/HTMLLinkElement/link-onerror-stylesheet-with-non-existent-import.html
2467 fast/dom/HTMLLinkElement/link-onerror.html
2468 fast/dom/HTMLLinkElement/link-onload-before-page-load.html
2469 fast/dom/HTMLLinkElement/link-onload-stylesheet-with-import.html
2470 fast/dom/HTMLLinkElement/link-onload.html
2471 fast/dom/HTMLLinkElement/link-onload2.html
2472 fast/dom/HTMLLinkElement/programmatically-add-link-with-onerror-handler.html
2473 fast/dom/HTMLLinkElement/programmatically-add-link-with-onload-handler.html
2474 fast/dom/HTMLStyleElement/programmatically-add-style-with-onerror-handler.html
2475 fast/dom/HTMLStyleElement/programmatically-add-style-with-onload-handler.html
2476 fast/dom/HTMLStyleElement/style-onerror-with-existent-and-non-existent-import.html
2477 fast/dom/HTMLStyleElement/style-onerror.html
2478 fast/dom/HTMLStyleElement/style-onload-before-page-load.html
2479 fast/dom/HTMLStyleElement/style-onload.html
2480 fast/dom/HTMLStyleElement/style-onload2.html
2482 Implements support for firing Load and Error events at HTML Link and HTML Style elements as per
2483 the HTML5 spec. (draft 05/25/2011) section "The link element" <http://www.w3.org/TR/html5/semantics.html#the-link-element>
2484 and "The style element" <http://www.w3.org/TR/html5/semantics.html#the-style-element>, respectively.
2486 * css/CSSImportRule.cpp:
2487 (WebCore::CSSImportRule::setCSSStyleSheet): Modified to call CSSStyleSheet::notifyLoadedSheet()
2488 after the style sheet associated with the @import rule loaded.
2489 * css/CSSStyleSheet.cpp: Added instance variable m_didLoadErrorOccur to track whether a network error
2490 occurred while loading any @import style sheets.
2491 (WebCore::CSSStyleSheet::CSSStyleSheet):
2492 (WebCore::CSSStyleSheet::checkLoaded):
2494 (WebCore::CSSStyleSheet::notifyLoadedSheet): Added; update m_didLoadErrorOccur to reflect if a network
2495 error occurred while loading a style sheet associated with an @import rule.
2496 * css/CSSStyleSheet.h:
2500 (WebCore::Document::implicitClose): Call HTML{LinkElement, StyleElement}::dispatchPendingLoadEvents() to
2501 ensure that all pending Load events for link and style elements are dispatched before we fire the Load
2502 event for the window.
2504 (WebCore::Node::notifyLoadedSheetAndAllCriticalSubresources): Added; as stated in its name, this method is
2505 called once a style sheet and all its critical subresources (@imports) have loaded.
2506 * html/HTMLLinkElement.cpp:
2507 (WebCore::loadEventSender):
2509 (WebCore::HTMLLinkElement::HTMLLinkElement):
2510 (WebCore::HTMLLinkElement::~HTMLLinkElement): Modified to cancel all pending Load events on destruction.
2511 (WebCore::HTMLLinkElement::parseAttribute): Register event listeners for Load and Error events regardless of whether we
2512 built with link prefetch support.
2513 (WebCore::HTMLLinkElement::setCSSStyleSheet):
2514 (WebCore::HTMLLinkElement::dispatchPendingLoadEvents): Added; called from Document::implicitClose() to
2515 ensure that all pending Load events for link elements have been dispatched before we fire the Load event
2517 (WebCore::HTMLLinkElement::dispatchPendingEvent): Added; called by EventSender.
2518 (WebCore::HTMLLinkElement::notifyLoadedSheetAndAllCriticalSubresources): Added.
2519 * html/HTMLLinkElement.h:
2522 * html/HTMLStyleElement.cpp:
2523 (WebCore::loadEventSender):
2525 (WebCore::HTMLStyleElement::HTMLStyleElement):
2526 (WebCore::HTMLStyleElement::~HTMLStyleElement): Modified to cancel all pending Load events on destruction.
2527 (WebCore::HTMLStyleElement::parseAttribute): Register event listeners for Load and Error events.
2528 (WebCore::HTMLStyleElement::dispatchPendingLoadEvents): Added; called from Document::implicitClose() to
2529 ensure that all pending Load events for link elements have been dispatched before we fire the Load event
2531 (WebCore::HTMLStyleElement::dispatchPendingEvent): Added; called by EventSender.
2532 (WebCore::HTMLStyleElement::notifyLoadedSheetAndAllCriticalSubresources): Added.
2533 * html/HTMLStyleElement.h:
2537 2012-02-24 Adam Roben <aroben@apple.com>
2539 Mac build fix after r108698
2541 * page/scrolling/mac/ScrollingCoordinatorMac.mm: Added missing #import.
2543 2012-02-24 Csaba Osztrogonác <ossy@webkit.org>
2545 Unreviewed speculative buildfix after r108785 for ENABLE(SVG) && !ENABLE(XSLT) case.
2547 * loader/cache/CachedResourceLoader.cpp:
2548 (WebCore::CachedResourceLoader::canRequest):
2550 2012-02-24 Vsevolod Vlasov <vsevik@chromium.org>
2552 Web Inspector: Do not show scripts panel navigator automatically more than once to the same user.
2553 https://bugs.webkit.org/show_bug.cgi?id=79489
2555 Reviewed by Pavel Feldman.
2557 * inspector/front-end/ScriptsPanel.js:
2559 2012-02-24 Philippe Normand <pnormand@igalia.com>
2561 Fix GTK WebAudio build for WebKitGTK 1.7.90.
2563 Patch by Priit Laes <plaes@plaes.org> on 2012-02-24
2564 Rubber-stamped by Philippe Normand.
2566 * GNUmakefile.list.am: Add AudioBufferCallback.h and
2567 DenormalDisabler.h to the list of files so they get disted in the
2570 2012-02-24 Yury Semikhatsky <yurys@chromium.org>
2572 Web Inspector: show all counters on one graph
2573 https://bugs.webkit.org/show_bug.cgi?id=79484
2575 Now it is possible to hide any counter. All graphs share the same area.
2576 Current values are displayed above that area.
2578 Reviewed by Pavel Feldman.
2580 * English.lproj/localizedStrings.js:
2581 * inspector/front-end/MemoryStatistics.js:
2582 (WebInspector.MemoryStatistics.getDocumentCount):
2583 (WebInspector.MemoryStatistics.getNodeCount):
2584 (WebInspector.MemoryStatistics.getListenerCount):
2585 (WebInspector.MemoryStatistics):
2586 (WebInspector.SwatchCheckbox):
2587 (WebInspector.SwatchCheckbox.prototype.get checked):
2588 (WebInspector.SwatchCheckbox.prototype.set checked):
2589 (WebInspector.SwatchCheckbox.prototype._toggleCheckbox):
2590 (WebInspector.CounterUI):
2591 (WebInspector.CounterUI.prototype._toggleCounterGraph):
2592 (WebInspector.CounterUI.prototype.setRange):
2593 (WebInspector.CounterUI.prototype.updateCurrentValue):
2594 (WebInspector.CounterUI.prototype.clearCurrentValueAndMarker):
2595 (WebInspector.CounterUI.prototype.get visible):
2596 (WebInspector.CounterUI.prototype.saveImageUnderMarker):
2597 (WebInspector.CounterUI.prototype.restoreImageUnderMarker):
2598 (WebInspector.CounterUI.prototype.discardImageUnderMarker):
2599 (WebInspector.MemoryStatistics.prototype._updateSize):
2600 (WebInspector.MemoryStatistics.prototype._draw):
2601 (WebInspector.MemoryStatistics.prototype._onMouseOut):
2602 (WebInspector.MemoryStatistics.prototype._refreshCurrentValues):
2603 (WebInspector.MemoryStatistics.prototype._highlightCurrentPositionOnGraphs):
2604 (WebInspector.MemoryStatistics.prototype._drawGraph):
2605 (WebInspector.MemoryStatistics.prototype._clear):
2606 * inspector/front-end/timelinePanel.css:
2607 (.memory-counter-sidebar-info):
2608 (.memory-counter-sidebar-info .swatch):
2609 (.memory-counter-sidebar-info .title):
2610 (.memory-counter-value):
2611 (#counter-values-bar):
2613 2012-02-24 Pavel Feldman <pfeldman@google.com>
2615 Web Inspector: map Ctrl/Cmd +/- to zoom in hosted mode.
2616 https://bugs.webkit.org/show_bug.cgi?id=79475
2618 (In remote front-end mode, default zoom actions are working.)
2620 Reviewed by Yury Semikhatsky.
2622 * inspector/InspectorFrontendHost.cpp:
2623 (WebCore::InspectorFrontendHost::setZoomFactor):
2625 * inspector/InspectorFrontendHost.h:
2626 (InspectorFrontendHost):
2627 * inspector/InspectorFrontendHost.idl:
2628 * inspector/front-end/InspectorFrontendHostStub.js:
2629 (.WebInspector.InspectorFrontendHostStub):
2630 (.WebInspector.InspectorFrontendHostStub.prototype.loadResourceSynchronously):
2631 (.WebInspector.InspectorFrontendHostStub.prototype.setZoomFactor):
2632 * inspector/front-end/Settings.js:
2633 (WebInspector.Settings):
2634 * inspector/front-end/inspector.js:
2635 (WebInspector._initializeCapability):
2636 (WebInspector._zoomIn):
2637 (WebInspector._zoomOut):
2638 (WebInspector._resetZoom):
2639 (WebInspector._requestZoom.set InspectorFrontendHost):
2640 (WebInspector._requestZoom):
2641 (WebInspector._doLoadedDoneWithCapabilities.get if):
2642 (WebInspector.documentKeyDown):
2644 2012-02-24 Allan Sandfeld Jensen <allan.jensen@nokia.com>
2646 Refactor EventHandler::handleGestureEvent.
2647 https://bugs.webkit.org/show_bug.cgi?id=79476
2649 Reviewed by Kenneth Rohde Christiansen.
2651 No new tests. No behavior change.
2653 * page/EventHandler.cpp:
2654 (WebCore::EventHandler::handleGestureEvent):
2655 (WebCore::EventHandler::handleGestureTap):
2656 (WebCore::EventHandler::handleGestureScrollUpdate):
2657 * page/EventHandler.h:
2659 2012-02-24 Zoltan Horvath <zoltan@webkit.org>
2661 [Qt] Allow to use WebCore imagedecoders
2662 https://bugs.webkit.org/show_bug.cgi?id=32410
2664 Add ENABLE(QT_IMAGE_DECODER) guards around Qt imagedecoders and set it to default.
2665 By passing ENABLE_QT_IMAGE_DECODER=0 define to the build system, WebKit will build
2666 with WebCore's imagedecoders.
2668 I added NO_RETURN attribute and PLATFORM(QT) conditionals to 2 functions of PNG and
2669 JPEG decoders to avoid compiler warnings because in Qt-port we treat warning as errors (-Werror).
2671 I'm continuing the refactoring of this area and try to use Qt imagedecoders only in
2672 cases when WebCore doesn't support the image format.
2674 Reviewed by Simon Hausmann.
2676 No behavior change, no need new tests.
2680 * platform/MIMETypeRegistry.cpp:
2681 (WebCore::initializeSupportedImageMIMETypes):
2682 (WebCore::initializeSupportedImageMIMETypesForEncoding):
2683 * platform/image-decoders/ImageDecoder.h:
2684 (WebCore::ImageFrame::getAddr):
2686 * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
2687 NO_RETURN has been added to a function to avoid warning message.
2688 * platform/image-decoders/png/PNGImageDecoder.cpp:
2689 NO_RETURN has been added to a function to avoid warning message.
2691 * platform/image-decoders/qt/ImageFrameQt.cpp:
2693 (WebCore::ImageFrame::asNewNativeImage):
2695 2012-02-24 Lynn Neir <lynn.neir@skype.net>
2697 [Windows, WinCairo] Handle indeterminate checkbox state
2698 https://bugs.webkit.org/show_bug.cgi?id=79288
2700 Reviewed by Adam Roben.
2702 Tested by fast/forms/indeterminate.html
2704 * rendering/RenderThemeWin.cpp: Add code to check for indeterminate
2707 2012-02-24 Simon Hausmann <simon.hausmann@nokia.com>
2709 [Qt] Font related problem with newer Qt5
2710 https://bugs.webkit.org/show_bug.cgi?id=79402
2712 Reviewed by Kenneth Rohde Christiansen.
2714 Apply the descent += 1 workaround needed to produce correct metrics only for Qt 4,
2715 because the behaviour has been corrected in Qt 5.
2717 * platform/graphics/qt/SimpleFontDataQt.cpp:
2718 (WebCore::SimpleFontData::platformInit):
2720 2012-02-24 Kentaro Hara <haraken@chromium.org>
2722 Move XML-related APIs from DOMWindow.idl to DOMWindowXML.idl
2723 https://bugs.webkit.org/show_bug.cgi?id=79434
2725 Reviewed by Adam Barth.
2727 For WebKit modularization, this patch moves XML-related APIs
2728 from DOMWindow.idl to DOMWIndowXML.idl.
2730 No tests. No change in behavior.
2732 * xml/DOMWindowXML.idl: Added.
2733 * page/DOMWindow.idl:
2735 * CMakeLists.txt: Added "DOMWindowXML.idl".
2736 * DerivedSources.make: Ditto.
2737 * DerivedSources.pri: Ditto.
2738 * GNUmakefile.list.am: Ditto.
2739 * WebCore.gypi: Ditto.
2740 * WebCore.xcodeproj/project.pbxproj: Ditto.
2742 2012-02-24 Renata Hodovan <reni@webkit.org>
2744 External <use> xlink:href references do not work
2745 https://bugs.webkit.org/show_bug.cgi?id=12499
2747 Reviewed by Nikolas Zimmermann.
2749 Support external references on <use> by introducing CachedSVGDocument.
2750 CachedSVGDocument is a CachedResource specialized for SVGDocuments.
2751 This CachedSVGDocument will be stored for every use element with external reference.
2752 This first patch only contains the new classes to test whether it works on every platform.
2753 So they aren't used anywhere and just a follow-up patch will bind them into the caching system.
2755 No new tests - no change in functionality.
2758 * GNUmakefile.list.am:
2761 * WebCore.vcproj/WebCore.vcproj:
2762 * WebCore.xcodeproj/project.pbxproj:
2763 * loader/cache/CachedResource.cpp:
2764 (WebCore::defaultPriorityForResourceType):
2765 (WebCore::cachedResourceTypeToTargetType):
2766 * loader/cache/CachedResource.h:
2767 * loader/cache/CachedResourceClient.h:
2768 (CachedResourceClient):
2769 * loader/cache/CachedResourceLoader.cpp:
2770 (WebCore::createResource):
2771 (WebCore::CachedResourceLoader::checkInsecureContent):
2772 (WebCore::CachedResourceLoader::canRequest):
2773 * loader/cache/CachedSVGDocument.cpp: Added.
2775 (WebCore::CachedSVGDocument::CachedSVGDocument):
2776 (WebCore::CachedSVGDocument::~CachedSVGDocument):
2777 (WebCore::CachedSVGDocument::setEncoding):
2778 (WebCore::CachedSVGDocument::encoding):
2779 (WebCore::CachedSVGDocument::data):
2780 * loader/cache/CachedSVGDocument.h: Added.
2782 (CachedSVGDocument):
2783 (WebCore::CachedSVGDocument::document):
2784 (WebCore::CachedSVGDocument::schedule):
2785 (CachedSVGDocumentClient):
2786 (WebCore::CachedSVGDocumentClient::~CachedSVGDocumentClient):
2787 (WebCore::CachedSVGDocumentClient::expectedType):
2788 (WebCore::CachedSVGDocumentClient::resourceClientType):
2790 2012-02-24 Alexis Menard <alexis.menard@openbossa.org>
2792 Little optimization in CSSParser::parseShorthand.
2793 https://bugs.webkit.org/show_bug.cgi?id=79356
2795 Reviewed by Tony Chang.
2797 Remove one loop by initializing array values at declaration time.
2798 Also early return when the number of properties parsed are equals
2799 with longhands count of the shorthand. It happens to be very often
2800 the case (e.g. border). Instruments shows an improvement from 19ms
2801 to 17ms on the time spent in this function for the css-parser-yui
2804 No new tests : refactor, exisiting ones should cover.
2806 * css/CSSParser.cpp:
2807 (WebCore::CSSParser::parseShorthand):
2809 2012-02-24 Kentaro Hara <haraken@chromium.org>
2811 Move HTML-related APIs from DOMWindow.idl to DOMWindowHTML.idl
2812 https://bugs.webkit.org/show_bug.cgi?id=79436
2814 Reviewed by Adam Barth.
2816 For WebKit modularization, this patch moves HTML-related APIs
2817 from DOMWindow.idl to DOMWindowHTML.idl.
2819 No tests. No change in behavior.
2821 * html/DOMWindowHTML.idl:
2822 * page/DOMWindow.idl:
2824 2012-02-24 Jochen Eisinger <jochen@chromium.org>
2826 [v8] when a named item on document goes out of scope, actually remove it
2827 https://bugs.webkit.org/show_bug.cgi?id=79409
2829 Reviewed by Adam Barth.
2831 The original change already included the code, but it led to some
2832 problems, so it was reverted in http://trac.webkit.org/changeset/63845.
2833 However, not removing the items leaks a considerable amount of memory,
2834 so I'm adding the code back. The bug that led to the revert was that
2835 the accessor was removed unconditionally. I'm now only removing it,
2836 when the last item with that name is removed.
2838 Test: fast/dom/HTMLDocument/named-item.html
2840 * bindings/v8/V8DOMWindowShell.cpp:
2841 (WebCore::V8DOMWindowShell::namedItemRemoved):
2843 2012-02-24 Kentaro Hara <haraken@chromium.org>
2845 Move Worker-related APIs from DOMWindow.idl to DOMWindowWorker.idl
2846 https://bugs.webkit.org/show_bug.cgi?id=79442
2848 Reviewed by Adam Barth.
2850 For WebKit modularization, this patch moves Worker-related APIs
2851 from DOMWindow.idl to DOMWindowWorker.idl.
2853 No tests. No change in behavior.
2855 * workers/DOMWindowWorker.idl: Added.
2856 * page/DOMWindow.idl:
2859 * DerivedSources.make:
2860 * DerivedSources.pri:
2861 * GNUmakefile.list.am:
2864 2012-02-24 Robin Cao <robin.cao@torchmobile.com.cn>
2866 [BlackBerry] Upstream helper classes for skia
2867 https://bugs.webkit.org/show_bug.cgi?id=79216
2869 Reviewed by Antonio Gomes.
2871 Initial upstreaming, no new tests.
2873 * platform/graphics/blackberry/skia/ImageBufferData.h: Added.
2876 * platform/graphics/blackberry/skia/PlatformSupport.cpp: Added.
2878 (WebCore::setFontRenderStyleDefaults):
2879 (WebCore::PlatformSupport::getRenderStyleForStrike):
2880 (WebCore::PlatformSupport::getFontFamilyForCharacters):
2881 * platform/graphics/blackberry/skia/PlatformSupport.h: Added.
2886 2012-02-24 Robin Cao <robin.cao@torchmobile.com.cn>
2888 [BlackBerry] Upstream ImageBlackBerry in platform/graphics/blackberry
2889 https://bugs.webkit.org/show_bug.cgi?id=79212
2891 Reviewed by Antonio Gomes.
2893 Initial upstreaming, no new tests.
2895 * PlatformBlackBerry.cmake:
2896 * platform/graphics/blackberry/ImageBlackBerry.cpp: Added.
2898 (WebCore::Image::loadPlatformResource):
2900 2012-02-24 Leo Yang <leo.yang@torchmobile.com.cn>
2902 [BlackBerry] Upstream the BlackBerry change to platform/graphics/IntSize.h
2903 https://bugs.webkit.org/show_bug.cgi?id=79430
2905 Reviewed by Antonio Gomes.
2907 Add conversion convenience between WebCore::IntSize and BlackBerry::Platform::IntSize.
2909 The porting can't be built yet, no new tests.
2911 * platform/graphics/IntSize.h:
2915 2012-02-24 Shinya Kawanaka <shinyak@chromium.org>
2917 SpellCheckRequest needs to know the context where the spellcheck happened.
2918 https://bugs.webkit.org/show_bug.cgi?id=79320
2920 Reviewed by Hajime Morita.
2922 WebKit clients should be able to get the context how the spellcheck happended.
2923 For example, WebKit clients may want to change the behavior by a spellcheck request is
2924 invoked in typing or in pasting.
2926 This patch added an enum in SpellCheckRequest so that WebKit clients can understand the context.
2928 * editing/Editor.cpp:
2929 (WebCore::Editor::replaceSelectionWithFragment):
2930 (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges):
2931 * editing/SpellChecker.cpp:
2932 (WebCore::SpellCheckRequest::SpellCheckRequest):
2933 (WebCore::SpellCheckRequest::create):
2934 (WebCore::SpellChecker::invokeRequest):
2935 * editing/SpellChecker.h:
2936 (SpellCheckRequest):
2937 (WebCore::SpellCheckRequest::textCheckingRequest):
2938 (WebCore::SpellCheckRequest::processType):
2939 * loader/EmptyClients.h:
2940 (WebCore::EmptyTextCheckerClient::requestCheckingOfString):
2941 * platform/text/TextCheckerClient.h:
2943 (TextCheckerClient):
2944 * platform/text/TextChecking.h:
2945 (TextCheckingRequest):
2946 (WebCore::TextCheckingRequest::TextCheckingRequest):
2947 (WebCore::TextCheckingRequest::setSequence):
2948 (WebCore::TextCheckingRequest::sequence):
2949 (WebCore::TextCheckingRequest::text):
2950 (WebCore::TextCheckingRequest::mask):
2951 (WebCore::TextCheckingRequest::processType):
2954 2012-02-24 Hayato Ito <hayato@chromium.org>
2956 Make Node::showTreeForThis (and Node::showTreeForThisAcrossFrame) dump multiple shadow roots.
2957 https://bugs.webkit.org/show_bug.cgi?id=79351
2959 Reviewed by Dimitri Glazkov.
2961 No new tests since these utility functions are only available in debug build.
2962 I manually tested in GDB session.
2965 (WebCore::oldestShadowRootFor):
2966 (WebCore::traverseTreeAndMark):
2967 (WebCore::parentOrHostOrFrameOwner):
2968 (WebCore::showSubTreeAcrossFrame):
2970 (WebCore::ShadowRoot::youngerShadowRoot):
2971 (WebCore::ShadowRoot::olderShadowRoot):
2972 (WebCore::toShadowRoot):
2975 2012-02-24 Pavel Feldman <pfeldman@chromium.org>
2977 Not reviewed: follow up to inspector's r108331, using more general condition.
2979 * inspector/front-end/JavaScriptSourceFrame.js:
2980 (WebInspector.JavaScriptSourceFrame.prototype._getPopoverAnchor):
2982 2012-02-24 Kentaro Hara <haraken@chromium.org>
2984 Move WebGL APIs from DOMWindow.idl to DOMWindowWebGL.idl
2985 https://bugs.webkit.org/show_bug.cgi?id=79432
2987 Reviewed by Adam Barth.
2989 For WebKit modularization, this patch moves WebGL-related APIs
2990 from DOMWindow.idl to DOMWindowWebGL.idl.
2992 No tests. No change in behavior.
2994 * html/canvas/DOMWindowWebGL.idl: Added.
2995 * page/DOMWindow.idl:
2997 * DerivedSources.make: Added DOMWindowWebGL.idl.
2998 * DerivedSources.pri: Ditto.
2999 * GNUmakefile.list.am: Ditto.
3000 * WebCore.gypi: Ditto.
3001 * WebCore.xcodeproj/project.pbxproj: Ditto.
3003 2012-02-24 Vsevolod Vlasov <vsevik@chromium.org>
3005 Web Inspector: [Regression] network worker tests crash on qt.
3006 https://bugs.webkit.org/show_bug.cgi?id=79263
3008 Reviewed by Pavel Feldman.
3010 * inspector/InspectorPageAgent.cpp:
3011 (WebCore::InspectorPageAgent::createDecoder):
3012 (WebCore::InspectorPageAgent::cachedResourceContent):
3014 2012-02-24 Andreas Kling <awesomekling@apple.com>
3016 Miscellaneous CSSParser dodging in presentation attribute parsing.
3017 <http://webkit.org/b/79468>
3019 Reviewed by Antti Koivisto.
3021 - Bypass CSSParser when adding constant values to attribute styles.
3022 - Added fast paths for the valid HTMLTablePartElement align values.
3024 * html/HTMLEmbedElement.cpp:
3025 (WebCore::HTMLEmbedElement::collectStyleForAttribute):
3026 * html/HTMLHRElement.cpp:
3027 (WebCore::HTMLHRElement::collectStyleForAttribute):
3028 * html/HTMLIFrameElement.cpp:
3029 (WebCore::HTMLIFrameElement::collectStyleForAttribute):
3030 * html/HTMLTableElement.cpp:
3031 (WebCore::HTMLTableElement::collectStyleForAttribute):
3032 * html/HTMLTablePartElement.cpp:
3033 (WebCore::HTMLTablePartElement::collectStyleForAttribute):
3035 2012-02-24 Dana Jansens <danakj@chromium.org>
3037 [chromium] Avoid culling work for fully-non-opaque tiles, and add tracing for draw culling
3038 https://bugs.webkit.org/show_bug.cgi?id=79183
3040 Reviewed by James Robinson.
3042 Addresses performance issues with draw culling by avoiding the work
3043 of mapRect and other function calls when the quad has no opaque area.
3044 And adds a TRACE_EVENT to watch the time spent in draw culling.
3046 * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
3047 (WebCore::CCLayerTreeHostImpl::optimizeRenderPasses):
3048 * platform/graphics/chromium/cc/CCQuadCuller.cpp:
3049 (WebCore::CCQuadCuller::cullOccludedQuads):
3051 2012-02-24 Vsevolod Vlasov <vsevik@chromium.org>
3053 Web Inspector: Scripts panel navigator overlay should be shown automatically only one time.
3054 https://bugs.webkit.org/show_bug.cgi?id=79467
3056 Reviewed by Pavel Feldman.
3058 * inspector/front-end/ScriptsPanel.js:
3059 (WebInspector.ScriptsPanel.prototype._hideNavigatorOverlay):
3060 (WebInspector.ScriptsPanel.prototype._navigatorOverlayWillHide):
3062 2012-02-23 MORITA Hajime <morrita@google.com>
3064 Adding a ShadowRoot to image-backed element causes a crash
3065 https://bugs.webkit.org/show_bug.cgi?id=78878
3067 Reviewed by Dimitri Glazkov.
3069 The crash happened because NodeRenderingContext tried to append a
3070 child to a renderer regardless one isn't capable of holding any
3071 children if it appears in the shadow attaching phase. RenderImage
3072 is one of such renderer classes which aren't capable.
3074 NodeRenderingContext decide whether the contextual node as a child
3075 can create its renderer based on RenderObject::canHaveChildren()
3076 and Node::childShouldCreateRenderer(). But the responsibility
3077 between these two methods are getting confused. which results this
3078 unfortuante crash path.
3080 This change re-aligns the responsibility:
3082 - Now canHaveChildren() purely declares the ability of the
3083 renderer. If the renderer is capable of having children, it
3084 return true regardless of HTML semantics.
3086 - On the other hand, childShouldCreateRenderer() cares about the
3087 semantics. If the element doesn't allow children to be rendered,
3090 - Note that these decision on elements are contextual. Each element
3091 needs to know which role it is playing in the tree composition
3092 algorithm of Shadow DOM. That's why the method parameter is changed
3093 from Node* to NodeRenderingContext.
3095 - Fixed updateFirstLetter() which relied on this confused assumption.
3096 This change introduces RenderDeprecatedFlexibleBox::buttonText()
3097 to refine the relying assumption.
3099 With this change, some decision points are moved from a renderer to an
3100 element. Following renderers no longer stop reject having children:
3102 - RenderButton, RenderListBox, RenderMenuList, RenderMeter,
3103 RenderProgress, RenderTextControl.
3105 Corresponding element for such a render (HTMLProgressElement of
3106 RenderProgress for exaple) now cares about that.
3108 Reviewed by Dimitri Glazkov.
3110 Tests: fast/dom/shadow/shadow-on-image-expected.html
3111 fast/dom/shadow/shadow-on-image.html
3114 (WebCore::Element::childShouldCreateRenderer):
3118 (WebCore::Node::childShouldCreateRenderer):
3119 * dom/NodeRenderingContext.cpp:
3120 (WebCore::NodeRenderingContext::shouldCreateRenderer):
3121 * dom/NodeRenderingContext.h:
3122 (NodeRenderingContext):
3123 (WebCore::NodeRenderingContext::isOnEncapsulationBoundary):
3125 * html/HTMLDetailsElement.cpp:
3126 (WebCore::HTMLDetailsElement::childShouldCreateRenderer):
3127 * html/HTMLDetailsElement.h:
3128 (HTMLDetailsElement):
3129 * html/HTMLMediaElement.cpp:
3131 (WebCore::HTMLMediaElement::childShouldCreateRenderer):
3132 * html/HTMLMediaElement.h:
3134 * html/HTMLMeterElement.cpp:
3135 (WebCore::HTMLMeterElement::childShouldCreateRenderer):
3137 * html/HTMLMeterElement.h:
3139 * html/HTMLProgressElement.cpp:
3140 (WebCore::HTMLProgressElement::childShouldCreateRenderer):
3142 * html/HTMLProgressElement.h:
3143 (HTMLProgressElement):
3144 * html/HTMLSelectElement.cpp:
3145 (WebCore::HTMLSelectElement::childShouldCreateRenderer):
3147 * html/HTMLSelectElement.h:
3148 (HTMLSelectElement):
3149 * html/HTMLSummaryElement.cpp:
3150 (WebCore::HTMLSummaryElement::childShouldCreateRenderer):
3152 * html/HTMLSummaryElement.h:
3153 (HTMLSummaryElement):
3154 * html/HTMLTextFormControlElement.cpp:
3155 (WebCore::HTMLTextFormControlElement::childShouldCreateRenderer):
3157 * html/HTMLTextFormControlElement.h:
3158 (HTMLTextFormControlElement):
3159 * rendering/RenderBlock.cpp:
3160 (WebCore::RenderBlock::updateFirstLetter):
3161 * rendering/RenderButton.cpp:
3162 * rendering/RenderButton.h:
3164 * rendering/RenderDeprecatedFlexibleBox.h:
3165 (WebCore::RenderDeprecatedFlexibleBox::buttonText):
3166 * rendering/RenderListBox.h:
3168 * rendering/RenderMedia.h:
3169 (WebCore::RenderMedia::canHaveChildren):
3170 * rendering/RenderMenuList.h:
3172 (WebCore::RenderMenuList::hasControlClip):
3173 * rendering/RenderMeter.h:
3174 * rendering/RenderProgress.h:
3175 * rendering/RenderTextControl.h:
3176 * rendering/svg/RenderSVGRoot.h:
3177 (WebCore::RenderSVGRoot::canHaveChildren):
3178 * svg/SVGAElement.cpp:
3179 (WebCore::SVGAElement::childShouldCreateRenderer):
3180 * svg/SVGAElement.h:
3182 * svg/SVGAltGlyphElement.cpp:
3183 (WebCore::SVGAltGlyphElement::childShouldCreateRenderer):
3184 * svg/SVGAltGlyphElement.h:
3185 (SVGAltGlyphElement):
3186 * svg/SVGDocument.cpp:
3187 (WebCore::SVGDocument::childShouldCreateRenderer):
3188 * svg/SVGDocument.h:
3190 * svg/SVGElement.cpp:
3191 (WebCore::SVGElement::childShouldCreateRenderer):
3194 * svg/SVGForeignObjectElement.cpp:
3195 (WebCore::SVGForeignObjectElement::childShouldCreateRenderer):
3196 * svg/SVGForeignObjectElement.h:
3197 (SVGForeignObjectElement):
3198 * svg/SVGSwitchElement.cpp:
3199 (WebCore::SVGSwitchElement::childShouldCreateRenderer):
3200 * svg/SVGSwitchElement.h:
3202 * svg/SVGTRefElement.cpp:
3203 (WebCore::SVGTRefElement::childShouldCreateRenderer):
3204 * svg/SVGTRefElement.h:
3206 * svg/SVGTSpanElement.cpp:
3207 (WebCore::SVGTSpanElement::childShouldCreateRenderer):
3208 * svg/SVGTSpanElement.h:
3210 * svg/SVGTextElement.cpp:
3211 (WebCore::SVGTextElement::childShouldCreateRenderer):
3212 * svg/SVGTextElement.h:
3214 * svg/SVGTextPathElement.cpp:
3215 (WebCore::SVGTextPathElement::childShouldCreateRenderer):
3216 * svg/SVGTextPathElement.h:
3218 2012-02-24 Kentaro Hara <haraken@chromium.org>
3220 Support [Supplemental] on static methods
3221 https://bugs.webkit.org/show_bug.cgi?id=79357
3223 Reviewed by Adam Barth.
3225 [Supplemental] on static methods does not work in CodeGeneratorJS.pm
3226 and CodeGeneratorV8.pm due to mis-ordered if-elsif statements.
3227 This patch fixes it and supports [Supplemental] on static methods.
3229 Test: bindings/scripts/test/TestSupplemental.idl
3231 * bindings/scripts/CodeGeneratorJS.pm: Modified as described above.
3232 (GenerateParametersCheck):
3233 * bindings/scripts/CodeGeneratorV8.pm: Ditto.
3234 (GenerateFunctionCallString):
3236 * bindings/scripts/test/TestSupplemental.idl: Added a test case.
3238 * bindings/scripts/test/CPP/WebDOMTestInterface.cpp: Updated run-bindings-tests results.
3239 (WebDOMTestInterface::supplementalMethod4):
3240 * bindings/scripts/test/CPP/WebDOMTestInterface.h: Ditto.
3241 * bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp: Ditto.
3242 (webkit_dom_test_interface_supplemental_method4):
3243 * bindings/scripts/test/GObject/WebKitDOMTestInterface.h: Ditto.
3244 * bindings/scripts/test/JS/JSTestInterface.cpp: Ditto.
3246 (WebCore::JSTestInterfaceConstructor::getOwnPropertySlot):
3247 (WebCore::JSTestInterfaceConstructor::getOwnPropertyDescriptor):
3248 (WebCore::jsTestInterfaceConstructorFunctionSupplementalMethod4):
3249 * bindings/scripts/test/JS/JSTestInterface.h: Ditto.
3251 * bindings/scripts/test/ObjC/DOMTestInterface.h: Ditto.
3252 * bindings/scripts/test/ObjC/DOMTestInterface.mm: Ditto.
3253 (-[DOMTestInterface supplementalMethod4]):
3254 * bindings/scripts/test/V8/V8TestInterface.cpp: Ditto.
3255 (TestInterfaceInternal):
3256 (WebCore::TestInterfaceInternal::supplementalMethod4Callback):
3257 (WebCore::ConfigureV8TestInterfaceTemplate):
3259 2012-02-24 Tony Chang <tony@chromium.org>
3261 Small refactor in RenderFlexibleBox::layoutAndPlaceChildren
3262 https://bugs.webkit.org/show_bug.cgi?id=79420
3264 Reviewed by Ojan Vafai.
3266 No new tests, just a refactor.
3268 * rendering/RenderFlexibleBox.cpp:
3269 (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): Share some of the logic
3270 in computing the cross axis length.
3272 2012-02-24 Yury Semikhatsky <yurys@chromium.org>
3274 Web Inspector: cannot drag timeline overview window when clicking inside the window
3275 https://bugs.webkit.org/show_bug.cgi?id=79453
3277 Reviewed by Pavel Feldman.
3279 * inspector/front-end/timelinePanel.css:
3280 (.timeline-overview-window-rulers):
3282 2012-02-24 Sheriff Bot <webkit.review.bot@gmail.com>
3284 Unreviewed, rolling out r108731.
3285 http://trac.webkit.org/changeset/108731
3286 https://bugs.webkit.org/show_bug.cgi?id=79464
3288 Broke Chromium Win tests (Requested by bashi on #webkit).
3291 * GNUmakefile.list.am:
3293 * WebCore.gyp/WebCore.gyp:
3295 * WebCore.vcproj/WebCore.vcproj:
3296 * WebCore.xcodeproj/project.pbxproj:
3297 * websockets/WebSocket.cpp:
3298 (WebCore::WebSocket::didConnect):
3299 * websockets/WebSocketChannel.cpp:
3300 (WebCore::WebSocketChannel::connect):
3301 (WebCore::WebSocketChannel::fail):
3302 (WebCore::WebSocketChannel::processFrame):
3303 (WebCore::WebSocketChannel::sendFrame):
3304 * websockets/WebSocketChannel.h:
3305 * websockets/WebSocketDeflateFramer.cpp: Removed.
3306 * websockets/WebSocketDeflateFramer.h: Removed.
3308 2012-02-22 Vsevolod Vlasov <vsevik@chromium.org>
3310 Web Inspector: Show scripts panel navigator overlay on the first scripts panel opening.
3311 https://bugs.webkit.org/show_bug.cgi?id=79248
3313 Reviewed by Pavel Feldman.
3315 * inspector/front-end/ScriptsPanel.js:
3316 (WebInspector.ScriptsPanel.prototype.wasShown):
3317 (WebInspector.ScriptsPanel.prototype.set _showNavigatorOverlay):
3318 (WebInspector.ScriptsPanel.prototype._hideNavigatorOverlay):
3320 2012-02-24 Mike Lawther <mikelawther@chromium.org>
3322 CSS3 calc(): handle non-negative values
3323 https://bugs.webkit.org/show_bug.cgi?id=79188
3325 Reviewed by Daniel Bates.
3327 Some CSS properties (e.g. padding) are required to be non-negative. These
3328 are now restricted to the correct range.
3330 Tests: css3/calc/negative-padding-expected.html
3331 css3/calc/negative-padding.html
3333 * css/CSSCalculationValue.cpp:
3335 (WebCore::CSSCalcValue::clampToPermittedRange): Added
3336 (WebCore::CSSCalcValue::doubleValue):
3337 (WebCore::CSSCalcValue::isNegative): Added
3338 (WebCore::CSSCalcValue::computeLengthPx):
3339 (WebCore::CSSCalcValue::create):
3340 * css/CSSCalculationValue.h:
3342 (WebCore::CSSCalcValue::CSSCalcValue):
3343 * css/CSSParser.cpp:
3344 (WebCore::CSSParser::validCalculationUnit):
3345 (WebCore::CSSParser::parseCalculation):
3347 * platform/CalculationValue.h:
3349 2012-02-22 Vsevolod Vlasov <vsevik@chromium.org>
3351 Web Inspector: [Regression] xhr tests are crashing after r108506.
3352 https://bugs.webkit.org/show_bug.cgi?id=79265
3354 Reviewed by Pavel Feldman.
3356 * inspector/InspectorResourceAgent.cpp:
3357 (WebCore::InspectorResourceAgent::setInitialScriptContent):
3358 (WebCore::InspectorResourceAgent::setInitialXHRContent):
3360 2012-02-24 Huang Dongsung <luxtella@company100.net>
3362 Rename LocalStorageThread to StorageThread and LocalStorageTask to StorageTask.
3363 https://bugs.webkit.org/show_bug.cgi?id=79358
3365 Revision 45124 commented FIXME to rename these classes.
3367 Reviewed by Kentaro Hara.
3370 * GNUmakefile.list.am:
3374 * WebCore.vcproj/WebCore.vcproj:
3375 * WebCore.xcodeproj/project.pbxproj:
3376 * storage/LocalStorageTask.h: Removed.
3377 * storage/StorageSyncManager.cpp:
3378 (WebCore::StorageSyncManager::StorageSyncManager):
3379 (WebCore::StorageSyncManager::scheduleImport):
3380 (WebCore::StorageSyncManager::scheduleSync):
3381 (WebCore::StorageSyncManager::scheduleDeleteEmptyDatabase):
3382 * storage/StorageSyncManager.h:
3384 (StorageSyncManager):
3385 * storage/StorageTask.cpp: Renamed from Source/WebCore/storage/LocalStorageTask.cpp.
3387 (WebCore::StorageTask::StorageTask):
3388 (WebCore::StorageTask::~StorageTask):
3389 (WebCore::StorageTask::performTask):
3390 * storage/StorageTask.h: Added.
3393 (WebCore::StorageTask::createImport):
3394 (WebCore::StorageTask::createSync):
3395 (WebCore::StorageTask::createDeleteEmptyDatabase):
3396 (WebCore::StorageTask::createOriginIdentifiersImport):
3397 (WebCore::StorageTask::createSetOriginDetails):
3398 (WebCore::StorageTask::createDeleteOrigin):
3399 (WebCore::StorageTask::createDeleteAllOrigins):
3400 (WebCore::StorageTask::createTerminate):
3401 * storage/StorageThread.cpp: Renamed from Source/WebCore/storage/LocalStorageThread.cpp.
3403 (WebCore::StorageThread::create):
3404 (WebCore::StorageThread::StorageThread):
3405 (WebCore::StorageThread::~StorageThread):
3406 (WebCore::StorageThread::start):
3407 (WebCore::StorageThread::threadEntryPointCallback):
3408 (WebCore::StorageThread::threadEntryPoint):
3409 (WebCore::StorageThread::scheduleTask):
3410 (WebCore::StorageThread::terminate):
3411 (WebCore::StorageThread::performTerminate):
3412 * storage/StorageThread.h: Renamed from Source/WebCore/storage/LocalStorageThread.h.
3415 * storage/StorageTracker.cpp:
3416 (WebCore::StorageTracker::StorageTracker):
3417 (WebCore::StorageTracker::importOriginIdentifiers):
3418 (WebCore::StorageTracker::setOriginDetails):
3419 (WebCore::StorageTracker::scheduleTask):
3420 (WebCore::StorageTracker::deleteAllOrigins):
3421 (WebCore::StorageTracker::deleteOrigin):
3422 * storage/StorageTracker.h:
3425 * storage/wince/StorageThreadWinCE.cpp: Renamed from Source/WebCore/storage/wince/LocalStorageThreadWinCE.cpp.
3427 (WebCore::StorageThread::StorageThread):
3428 (WebCore::StorageThread::~StorageThread):
3429 (WebCore::StorageThread::start):
3430 (WebCore::StorageThread::timerFired):
3431 (WebCore::StorageThread::scheduleImport):
3432 (WebCore::StorageThread::scheduleSync):
3433 (WebCore::StorageThread::terminate):
3434 (WebCore::StorageThread::performTerminate):
3435 * storage/wince/StorageThreadWinCE.h: Renamed from Source/WebCore/storage/wince/LocalStorageThreadWinCE.h.
3438 (WebCore::StorageThread::create):
3440 2012-02-23 Pavel Feldman <pfeldman@chromium.org>
3442 Web Inspector: prepare border images on timelines to enable zooming.
3443 https://bugs.webkit.org/show_bug.cgi?id=79360
3445 Reviewed by Yury Semikhatsky.
3447 * inspector/front-end/Images/timelineBarBlue.png:
3448 * inspector/front-end/Images/timelineBarGray.png:
3449 * inspector/front-end/Images/timelineBarGreen.png:
3450 * inspector/front-end/Images/timelineBarOrange.png:
3451 * inspector/front-end/Images/timelineBarPurple.png:
3452 * inspector/front-end/Images/timelineBarRed.png:
3453 * inspector/front-end/Images/timelineBarYellow.png:
3454 * inspector/front-end/Images/timelineHollowPillBlue.png:
3455 * inspector/front-end/Images/timelineHollowPillGray.png:
3456 * inspector/front-end/Images/timelineHollowPillGreen.png:
3457 * inspector/front-end/Images/timelineHollowPillOrange.png:
3458 * inspector/front-end/Images/timelineHollowPillPurple.png:
3459 * inspector/front-end/Images/timelineHollowPillRed.png:
3460 * inspector/front-end/Images/timelineHollowPillYellow.png:
3461 * inspector/front-end/Images/timelinePillBlue.png:
3462 * inspector/front-end/Images/timelinePillGray.png:
3463 * inspector/front-end/Images/timelinePillGreen.png:
3464 * inspector/front-end/Images/timelinePillOrange.png:
3465 * inspector/front-end/Images/timelinePillPurple.png:
3466 * inspector/front-end/Images/timelinePillRed.png:
3467 * inspector/front-end/Images/timelinePillYellow.png:
3468 * inspector/front-end/inspectorCommon.css:
3470 * inspector/front-end/networkLogView.css:
3471 (.network-graph-bar):
3472 (.resource-cached .network-graph-bar):
3473 (.network-category-documents .network-graph-bar):
3474 (.network-category-documents.resource-cached .network-graph-bar):
3475 (.network-category-stylesheets .network-graph-bar):
3476 (.network-category-stylesheets.resource-cached .network-graph-bar):
3477 (.network-category-images.resource-cached .network-graph-bar):
3478 (.network-category-fonts .network-graph-bar):
3479 (.network-category-fonts.resource-cached .network-graph-bar):
3480 (.network-category-scripts .network-graph-bar):
3481 (.network-category-scripts.resource-cached .network-graph-bar):
3482 (.network-category-xhr .network-graph-bar):
3483 (.network-category-xhr.resource-cached .network-graph-bar):
3484 (.network-category-websockets .network-graph-bar):
3485 (.network-category-websockets.resource-cached .network-graph-bar):
3487 2012-02-23 Yury Semikhatsky <yurys@chromium.org>
3489 Web Inspector: exception in front-end on selecting an element in heap snapshot
3490 https://bugs.webkit.org/show_bug.cgi?id=79447
3492 Fixed a typo in method name and added a check that selected node has
3493 corresponding heap snapshot object before adding that object to the console
3496 Reviewed by Pavel Feldman.
3498 * inspector/front-end/DetailedHeapshotView.js:
3499 (WebInspector.DetailedHeapshotView.prototype._inspectedObjectChanged):
3501 2012-02-23 Pavel Feldman <pfeldman@chromium.org>
3503 Web Inspector: hide color picker upon panel switch.
3504 https://bugs.webkit.org/show_bug.cgi?id=79355
3506 Reviewed by Vsevolod Vlasov.
3508 * inspector/front-end/ElementsPanel.js:
3509 (WebInspector.ElementsPanel.prototype.willHide):
3510 * inspector/front-end/StylesSidebarPane.js:
3511 (WebInspector.StylesSidebarPane.prototype._showUserAgentStylesSettingChanged):
3512 (WebInspector.StylesSidebarPane.prototype.willHide):
3514 2012-02-23 Pavel Feldman <pfeldman@chromium.org>
3516 Web Inspector: make color review larger in the color picker.