1 2012-02-27 Ken Buchanan <kenrb@chromium.org>
3 Absolute positioned elements with Inline Relative Positioned Container are not layout correctly
4 https://bugs.webkit.org/show_bug.cgi?id=78713
6 Reviewed by David Hyatt.
8 Test: fast/css/positioned-in-relative-position-inline-crash.html
10 Patch originally by Robin Cao.
12 This is a regression. r104183 changes containingBlock() so that it returns the container
13 of an anonymous block for positioned objects, not the anonymous block itself. We should
14 change markContainingBlocksForLayout() to match the change in containingBlock().
16 * rendering/RenderObject.cpp:
17 (WebCore::RenderObject::markContainingBlocksForLayout):
19 2012-02-27 Pavel Feldman <pfeldman@google.com>
21 Web Inspector: move record formatting into the timeline presentation model.
22 https://bugs.webkit.org/show_bug.cgi?id=79684
24 Drive-by: fix for stop recording in reset; cpu time restored.
26 Reviewed by Vsevolod Vlasov.
28 * inspector/front-end/TimelineModel.js:
29 (WebInspector.TimelineModel.prototype.reset):
30 * inspector/front-end/TimelineOverviewPane.js:
31 (WebInspector.TimelineOverviewPane.prototype.update.updateBoundaries):
32 (WebInspector.TimelineOverviewCalculator.prototype.updateBoundaries):
33 * inspector/front-end/TimelinePanel.js:
34 (WebInspector.TimelinePanel):
35 (WebInspector.TimelinePanel.prototype._rootRecord):
36 (WebInspector.TimelinePanel.prototype._updateRecordsCounter):
37 (WebInspector.TimelinePanel.prototype._repopulateRecords):
38 (WebInspector.TimelinePanel.prototype._onTimelineEventRecorded):
39 (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
40 (WebInspector.TimelinePanel.prototype._resetPanel):
41 (WebInspector.TimelinePanel.prototype._refresh):
42 (WebInspector.TimelinePanel.prototype._updateBoundaries):
43 (WebInspector.TimelinePanel.prototype._filterRecords):
44 (WebInspector.TimelinePanel.prototype.revealRecordAt):
45 (WebInspector.TimelinePanel.prototype._showPopover):
46 (WebInspector.TimelineCalculator.prototype.computeBarGraphPercentages):
47 (WebInspector.TimelineCalculator.prototype.computeBarGraphWindowPosition):
48 (WebInspector.TimelineCalculator.prototype.updateBoundaries):
49 (WebInspector.TimelineStartAtZeroCalculator.prototype.computeBarGraphPercentages):
50 (WebInspector.TimelineRecordGraphRow):
51 (WebInspector.TimelineRecordGraphRow.prototype.update):
52 * inspector/front-end/TimelinePresentationModel.js:
53 (WebInspector.TimelinePresentationModel):
54 (WebInspector.TimelinePresentationModel.prototype.createFormattedRecord):
55 (WebInspector.TimelinePresentationModel.prototype._createRootRecord):
56 (WebInspector.TimelinePresentationModel.prototype.rootRecord):
57 (WebInspector.TimelinePresentationModel.prototype.reset):
58 (WebInspector.TimelinePresentationModel.prototype._findParentRecord):
59 (WebInspector.TimelinePresentationModel.prototype._resetWindow):
60 (WebInspector.TimelinePresentationModel.prototype._addCategory):
61 (WebInspector.TimelinePresentationModel.prototype.setCategoryVisibility):
62 (WebInspector.TimelinePresentationModel.prototype.get _recordStyles):
63 (WebInspector.TimelinePresentationModel.Record):
64 (WebInspector.TimelinePresentationModel.Record.prototype.get lastChildEndTime):
65 (WebInspector.TimelinePresentationModel.Record.prototype.set lastChildEndTime):
66 (WebInspector.TimelinePresentationModel.Record.prototype.get selfTime):
67 (WebInspector.TimelinePresentationModel.Record.prototype.set selfTime):
68 (WebInspector.TimelinePresentationModel.Record.prototype.get cpuTime):
69 (WebInspector.TimelinePresentationModel.Record.prototype.isLong):
70 (WebInspector.TimelinePresentationModel.Record.prototype.get children):
71 (WebInspector.TimelinePresentationModel.Record.prototype.containsTime):
72 (WebInspector.TimelinePresentationModel.Record.prototype._generateAggregatedInfo):
73 (WebInspector.TimelinePresentationModel.Record.prototype.generatePopupContent):
74 (WebInspector.TimelinePresentationModel.Record.prototype._refreshDetails):
75 (WebInspector.TimelinePresentationModel.Record.prototype._getRecordDetails):
76 (WebInspector.TimelinePresentationModel.Record.prototype._linkifyLocation):
77 (WebInspector.TimelinePresentationModel.Record.prototype._linkifyCallFrame):
78 (WebInspector.TimelinePresentationModel.Record.prototype._linkifyTopCallFrame):
79 (WebInspector.TimelinePresentationModel.Record.prototype._linkifyScriptLocation):
80 (WebInspector.TimelinePresentationModel.Record.prototype.calculateAggregatedStats):
81 (WebInspector.TimelinePresentationModel.Record.prototype.get aggregatedStats):
82 (WebInspector.TimelinePresentationModel.PopupContentHelper):
83 (WebInspector.TimelinePresentationModel.PopupContentHelper.prototype._createCell):
84 (WebInspector.TimelinePresentationModel.PopupContentHelper.prototype._appendTextRow):
85 (WebInspector.TimelinePresentationModel.PopupContentHelper.prototype._appendElementRow):
86 (WebInspector.TimelinePresentationModel.PopupContentHelper.prototype._appendStackTrace):
87 * inspector/front-end/timelinePanel.css:
88 (.timeline-graph-bar.cpu):
90 2012-02-27 Vsevolod Vlasov <vsevik@chromium.org>
92 Web Inspector: Scripts navigator overlay should not consume mouse actions.
93 https://bugs.webkit.org/show_bug.cgi?id=79674
95 Reviewed by Pavel Feldman.
97 * inspector/front-end/Panel.js:
98 (WebInspector.Panel.prototype.registerShortcut):
99 (WebInspector.Panel.prototype.unregisterShortcut):
100 * inspector/front-end/ScriptsPanel.js:
101 (WebInspector.ScriptsPanel.prototype._editorClosed):
102 (WebInspector.ScriptsPanel.prototype._editorSelected):
103 (WebInspector.ScriptsPanel.prototype._fileSelected):
104 (WebInspector.ScriptsPanel.prototype._escDownWhileNavigatorOverlayOpen):
105 (WebInspector.ScriptsPanel.prototype.set _showNavigatorOverlay):
106 (WebInspector.ScriptsPanel.prototype._hideNavigatorOverlay):
107 (WebInspector.ScriptsPanel.prototype._navigatorOverlayWasShown):
108 * inspector/front-end/SidebarOverlay.js:
109 (WebInspector.SidebarOverlay):
110 (WebInspector.SidebarOverlay.prototype.show):
111 (WebInspector.SidebarOverlay.prototype._containingElementFocused):
112 (WebInspector.SidebarOverlay.prototype.position):
113 (WebInspector.SidebarOverlay.prototype.hide):
114 (WebInspector.SidebarOverlay.prototype._setWidth):
115 * inspector/front-end/dialog.css:
116 (.go-to-line-dialog button:active):
117 * inspector/front-end/scriptsPanel.css:
118 (#scripts-editor-view .sidebar-overlay):
119 * inspector/front-end/splitView.css:
120 (.split-view-resizer):
122 (.sidebar-overlay-resizer):
124 2012-02-27 Philippe Normand <pnormand@igalia.com>
126 [GStreamer] 0.11 support in MediaPlayerPrivateGStreamer
127 https://bugs.webkit.org/show_bug.cgi?id=77089
129 Reviewed by Martin Robinson.
131 Basic port to GStreamer 0.11 APIs. This patch excludes the video
132 painting changes and the GStreamerGWorld changes which are handled
133 in two other patches (bugs 77087 and 77088).
135 * GNUmakefile.list.am: Add GStreamerVersioning files to the build.
136 * Source/WebCore/PlatformEfl.cmake: Ditto.
137 * Source/WebCore/Target.pri: Ditto.
138 * platform/graphics/gstreamer/GRefPtrGStreamer.cpp:
141 (WTF::GstPadTemplate):
143 * platform/graphics/gstreamer/GStreamerVersioning.cpp: Added.
144 (webkit_gst_object_ref_sink):
145 (webkit_gst_element_get_pad_caps):
146 * platform/graphics/gstreamer/GStreamerVersioning.h: Added.
147 * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
148 (WebCore::MediaPlayerPrivateGStreamer::isAvailable):
149 (WebCore::MediaPlayerPrivateGStreamer::duration):
150 (WebCore::MediaPlayerPrivateGStreamer::naturalSize):
152 2012-02-27 Philip Rogers <pdr@google.com>
154 Stop recomputing SVG path data twice during layout
155 https://bugs.webkit.org/show_bug.cgi?id=79672
157 Reviewed by Nikolas Zimmermann.
159 * rendering/svg/RenderSVGShape.cpp:
160 (WebCore::RenderSVGShape::layout):
162 2012-02-27 Timothy Hatcher <timothy@apple.com>
164 Updated for WebKit2 string changes.
166 https://webkit.org/b/79649
168 Reviewed by John Sullivan.
170 * English.lproj/Localizable.strings: Updated.
172 2012-02-27 Pavel Feldman <pfeldman@google.com>
174 Web Inspector: Ctrl+K should not zoom in
175 https://bugs.webkit.org/show_bug.cgi?id=79676
177 Reviewed by Vsevolod Vlasov.
179 * inspector/front-end/inspector.js:
180 (WebInspector.documentKeyDown):
182 2012-02-27 Pavel Feldman <pfeldman@google.com>
184 Web Inspector: extract TimelineModel and TimelinePresentationModel into their own files.
185 https://bugs.webkit.org/show_bug.cgi?id=79675
187 Reviewed by Vsevolod Vlasov.
190 * WebCore.vcproj/WebCore.vcproj:
191 * inspector/compile-front-end.sh:
192 * inspector/front-end/TimelineAgent.js: Removed.
193 * inspector/front-end/TimelineModel.js: Added.
194 (WebInspector.TimelineModel):
195 (WebInspector.TimelineModel.prototype.startRecord):
196 (WebInspector.TimelineModel.prototype.stopRecord):
197 (WebInspector.TimelineModel.prototype.get records):
198 (WebInspector.TimelineModel.prototype._onRecordAdded):
199 (WebInspector.TimelineModel.prototype._addRecord):
200 (WebInspector.TimelineModel.prototype._loadNextChunk):
201 (WebInspector.TimelineModel.prototype._loadFromFile):
202 (WebInspector.TimelineModel.prototype._loadFromFile.onError):
203 (WebInspector.TimelineModel.prototype._saveToFile):
204 (WebInspector.TimelineModel.prototype._reset):
205 * inspector/front-end/TimelinePanel.js:
206 (WebInspector.TimelinePanel.prototype.get _recordStyles):
207 (WebInspector.TimelinePanel.prototype._createEventDivider):
208 (WebInspector.TimelinePanel.prototype._findParentRecord):
209 (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
210 (WebInspector.TimelinePanel.prototype._refreshRecords):
211 (WebInspector.TimelinePanel.FormattedRecord):
212 (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
213 (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
214 * inspector/front-end/TimelinePresentationModel.js: Added.
215 (WebInspector.TimelinePresentationModel):
216 (WebInspector.TimelinePresentationModel.prototype.reset):
217 (WebInspector.TimelinePresentationModel.prototype.get categories):
218 (WebInspector.TimelinePresentationModel.prototype.addCategory):
219 (WebInspector.TimelinePresentationModel.prototype.setWindowPosition):
220 (WebInspector.TimelinePresentationModel.prototype.setWindowIndices):
221 (WebInspector.TimelinePresentationModel.prototype.setCategoryVisibility):
222 * inspector/front-end/WebKit.qrc:
223 * inspector/front-end/inspector.html:
225 2012-02-27 Alexander Pavlov <apavlov@chromium.org>
227 Web Inspector: [Styles] Allow adding CSS properties anywhere in the style declaration, not only at the end
228 https://bugs.webkit.org/show_bug.cgi?id=79662
230 Reviewed by Pavel Feldman.
232 * inspector/front-end/CSSStyleModel.js:
233 (WebInspector.CSSStyleDeclaration.prototype.newBlankProperty):
234 (WebInspector.CSSProperty.prototype.setText):
235 (WebInspector.CSSProperty.prototype.setValue):
236 * inspector/front-end/MetricsSidebarPane.js:
237 (WebInspector.MetricsSidebarPane.prototype._applyUserInput):
238 * inspector/front-end/StylesSidebarPane.js:
239 (WebInspector.StylePropertiesSection):
240 (WebInspector.StylePropertiesSection.prototype._handleSelectorContainerClick):
241 (WebInspector.StylePropertiesSection.prototype.addNewBlankProperty):
242 (WebInspector.StylePropertyTreeElement.prototype):
243 (WebInspector.StylePropertyTreeElement.prototype.element.userInput.previousContent.context.moveDirection):
244 (WebInspector.StylePropertyTreeElement.prototype.styleText.updateInterface.majorChange.isRevert):
246 2012-02-27 Pavel Feldman <pfeldman@google.com>
248 [Shadow]: Expose one ShadowRoot in the Elements panel (under experiment flag)
249 https://bugs.webkit.org/show_bug.cgi?id=78202
251 Reviewed by Yury Semikhatsky.
253 * dom/ShadowTree.cpp:
254 (WebCore::ShadowTree::pushShadowRoot):
255 (WebCore::ShadowTree::popShadowRoot):
256 * inspector/Inspector.json:
257 * inspector/InspectorDOMAgent.cpp:
258 (WebCore::InspectorDOMAgent::unbind):
259 (WebCore::InspectorDOMAgent::assertEditableNode):
260 (WebCore::InspectorDOMAgent::assertEditableElement):
261 (WebCore::InspectorDOMAgent::pushChildNodesToFrontend):
262 (WebCore::InspectorDOMAgent::setAttributeValue):
263 (WebCore::InspectorDOMAgent::setAttributesAsText):
264 (WebCore::InspectorDOMAgent::removeAttribute):
265 (WebCore::InspectorDOMAgent::removeNode):
266 (WebCore::InspectorDOMAgent::setOuterHTML):
267 (WebCore::InspectorDOMAgent::setNodeValue):
268 (WebCore::InspectorDOMAgent::moveTo):
269 (WebCore::InspectorDOMAgent::buildObjectForNode):
270 (WebCore::InspectorDOMAgent::didPushShadowRoot):
272 (WebCore::InspectorDOMAgent::willPopShadowRoot):
273 * inspector/InspectorDOMAgent.h:
276 * inspector/InspectorInstrumentation.cpp:
277 (WebCore::InspectorInstrumentation::didPushShadowRootImpl):
279 (WebCore::InspectorInstrumentation::willPopShadowRootImpl):
280 * inspector/InspectorInstrumentation.h:
282 (InspectorInstrumentation):
283 (WebCore::InspectorInstrumentation::didPushShadowRoot):
284 (WebCore::InspectorInstrumentation::willPopShadowRoot):
285 * inspector/PageConsoleAgent.cpp:
286 (WebCore::PageConsoleAgent::addInspectedNode):
287 * inspector/front-end/DOMAgent.js:
288 (WebInspector.DOMNode):
289 (WebInspector.DOMNode.prototype.hasChildNodes):
290 (WebInspector.DOMNode.prototype.isInShadowTree):
291 (WebInspector.DOMNode.prototype._insertChild):
292 (WebInspector.DOMNode.prototype._setChildrenPayload):
293 (WebInspector.DOMDocument):
294 (WebInspector.DOMAgent.prototype._setDetachedRoot):
295 (WebInspector.DOMAgent.prototype._shadowRootPopped):
296 (WebInspector.DOMDispatcher.prototype.childNodeRemoved):
297 (WebInspector.DOMDispatcher.prototype.shadowRootPushed):
298 (WebInspector.DOMDispatcher.prototype.shadowRootPopped):
299 * inspector/front-end/ElementsTreeOutline.js:
300 * inspector/front-end/MemoryStatistics.js:
301 * inspector/front-end/Settings.js:
302 (WebInspector.ExperimentsSettings):
303 * inspector/front-end/inspector.css:
304 (.webkit-html-tag.shadow, .webkit-html-fragment.shadow):
306 2012-02-27 Andrey Kosyakov <caseq@chromium.org>
308 Web Inspector: [refactoring] remove dependencies from TimelinePanel from most of FormattedRecord
309 https://bugs.webkit.org/show_bug.cgi?id=79665
311 Reviewed by Pavel Feldman.
313 * inspector/front-end/TimelinePanel.js:
314 (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
315 (WebInspector.TimelinePanel.FormattedRecord):
316 (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
317 (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
318 (WebInspector.TimelinePanel.FormattedRecord.prototype._linkifyLocation):
319 (WebInspector.TimelinePanel.FormattedRecord.prototype._linkifyCallFrame):
320 (WebInspector.TimelinePanel.FormattedRecord.prototype._linkifyTopCallFrame):
321 (WebInspector.TimelinePanel.FormattedRecord.prototype._linkifyScriptLocation):
322 (WebInspector.TimelinePanel.PopupContentHelper):
323 (WebInspector.TimelinePanel.PopupContentHelper.prototype._appendStackTrace):
325 2012-02-27 Yury Semikhatsky <yurys@chromium.org>
327 Web Inspector: reveal corresponding timeline record when user clicks on memory graph
328 https://bugs.webkit.org/show_bug.cgi?id=79669
330 When user clicks on DOM counter graph corresponding timeline record is
331 revealed in timelime grid and all its ancestors are expanded.
333 Reviewed by Pavel Feldman.
335 * inspector/front-end/MemoryStatistics.js:
336 (WebInspector.MemoryStatistics.prototype._onClick):
337 * inspector/front-end/TimelineOverviewPane.js:
338 (WebInspector.TimelineOverviewPane.prototype.update):
339 (WebInspector.HeapGraph.prototype.update):
340 (WebInspector.HeapGraph.prototype._clear):
341 * inspector/front-end/TimelinePanel.js:
342 (WebInspector.TimelinePanel.prototype.revealRecordAt.recordFinder):
343 (WebInspector.TimelinePanel.prototype.revealRecordAt):
344 (WebInspector.TimelinePanel.prototype._refreshRecords):
345 (WebInspector.TimelinePanel.forAllRecords):
346 (WebInspector.TimelinePanel.FormattedRecord.prototype.containsTime):
348 2012-02-27 Ilya Tikhonovsky <loislo@chromium.org>
350 Unreviewed single line fix for r108983.
352 * inspector/front-end/DetailedHeapshotView.js:
353 (WebInspector.DetailedHeapshotView.prototype.willHide):
355 2012-02-27 Yury Semikhatsky <yurys@chromium.org>
357 Web Inspector: repaint counter graphs when timeline splitter moves
358 https://bugs.webkit.org/show_bug.cgi?id=79644
360 Immediately refresh timeline panel on splitter move.
362 Reviewed by Pavel Feldman.
364 * inspector/front-end/TimelinePanel.js:
365 (WebInspector.TimelinePanel.prototype._splitterDragging):
367 2012-02-27 Carlos Garcia Campos <cgarcia@igalia.com>
369 Unreviewed. Fix make distcheck.
371 * GNUmakefile.am: Add missing files.
372 * GNUmakefile.list.am: Ditto.
374 2012-02-27 Patrick Gansterer <paroga@webkit.org>
376 [CMake] Build fix after r108709.
378 * CMakeLists.txt: Move DOMWindowSVG.idl to the other IDL files.
380 2012-02-27 Ilya Tikhonovsky <loislo@chromium.org>
382 Web Inspector: [chromium] Profiles - Tooltip with object/property types stays on screen when another tab selected
383 https://bugs.webkit.org/show_bug.cgi?id=79654
385 Reviewed by Yury Semikhatsky.
387 * inspector/front-end/DetailedHeapshotView.js:
388 (WebInspector.DetailedHeapshotView.prototype.willHide):
390 2012-02-27 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
392 [Qt] Remove page/PageSupplement.h from WebCore's Target.pri
394 The file itself was removed in r108958.
396 Reviewed by Kenneth Rohde Christiansen.
400 2012-02-27 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
402 [Qt] Use USE() macro instead of ENABLE() for using the Qt image decoder
404 Reviewed by Kenneth Rohde Christiansen..
408 * platform/MIMETypeRegistry.cpp:
409 (WebCore::initializeSupportedImageMIMETypes):
410 (WebCore::initializeSupportedImageMIMETypesForEncoding):
411 * platform/image-decoders/ImageDecoder.h:
412 (WebCore::ImageFrame::getAddr):
414 * platform/image-decoders/qt/ImageFrameQt.cpp:
416 (WebCore::ImageFrame::asNewNativeImage):
418 2012-02-27 MORITA Hajime <morrita@google.com>
420 Removing <ul>, <li> inside shadow DOM triggers assertion in updateListMarkerNumbers
421 https://bugs.webkit.org/show_bug.cgi?id=79630
423 Reviewed by Ryosuke Niwa.
425 This problem was caused by the inconsistent detach order of DOM tree where
426 Element::detach() called ContainerNode::detach() before shadow tree is detached.
427 This resulted the renderer of the element being destroyed even if its children,
428 each of which came from an element in the shadow tree, are alive.
429 In principle, child renderers should be destroyed before its parent.
431 This change aligns the detach order with the attach order. The shadow tree is
432 now deatched before parent's ContainerNode::detach() is called.
434 Test: fast/dom/shadow/shadow-ul-li.html
437 (WebCore::Element::detach):
439 2012-02-27 Keishi Hattori <keishi@webkit.org>
441 Color input type should be clickable through keyboard
442 https://bugs.webkit.org/show_bug.cgi?id=79629
444 Reviewed by Kent Tamura.
446 Introduced BaseClickableWithKeyInputType that represents an input type
447 that can be clicked by pressing space/return keys.
448 ColorInputType, FileInputType directly inherit it because it doesn't
449 want the other methods(like appendFormData) in BaseButtonInputType.
451 * CMakeLists.txt: Added BaseClickableWithKeyInputType.cpp
452 * GNUmakefile.list.am: Added BaseClickableWithKeyInputType.{cpp,h}
453 * Target.pri: Added BaseClickableWithKeyInputType.{cpp,h}
454 * WebCore.gypi: Added BaseClickableWithKeyInputType.{cpp,h}
455 * WebCore.vcproj/WebCore.vcproj: Added BaseClickableWithKeyInputType.{cpp,h}
456 * WebCore.xcodeproj/project.pbxproj: Added BaseClickableWithKeyInputType.{cpp,h}
457 * html/BaseButtonInputType.cpp:
458 * html/BaseButtonInputType.h:
459 (WebCore::BaseButtonInputType::BaseButtonInputType): Inherits BaseClickableWithKeyInputType now.
460 (BaseButtonInputType):
461 * html/BaseCheckableInputType.cpp: Changed comment.
462 * html/BaseClickableWithKeyInputType.cpp:
464 (WebCore::BaseClickableWithKeyInputType::handleKeydownEvent): Moved from BaseButtonInputType
465 (WebCore::BaseClickableWithKeyInputType::handleKeypressEvent): Moved from BaseButtonInputType
466 (WebCore::BaseClickableWithKeyInputType::handleKeyupEvent): Moved from BaseButtonInputType
467 (WebCore::BaseClickableWithKeyInputType::accessKeyAction): Moved from BaseButtonInputType
468 * html/BaseClickableWithKeyInputType.h:
470 (BaseClickableWithKeyInputType): Input type that can be clicked by pressing space/return keys.
471 (WebCore::BaseClickableWithKeyInputType::BaseClickableWithKeyInputType):
472 * html/ColorInputType.h:
473 (WebCore::ColorInputType::ColorInputType): Inherits BaseClickableWithKeyInputType now.
474 * html/FileInputType.cpp:
475 (WebCore::FileInputType::FileInputType):
476 * html/FileInputType.h:
477 (FileInputType): Inherits BaseClickableWithKeyInputType now.
478 * html/RangeInputType.cpp: Changed comment.
481 2012-02-27 Keishi Hattori <keishi@webkit.org>
483 Add missing include to ColorInputType.cpp
484 https://bugs.webkit.org/show_bug.cgi?id=79632
486 Reviewed by Kent Tamura.
488 * html/ColorInputType.cpp: Include ShadowTree.h
490 2012-02-27 Andrey Kosyakov <caseq@chromium.org>
492 Use built-in bind in ExtensionAPI.js
494 Web Inspector: [Extensions API] get rid of custom bind() in favor of built-in
495 https://bugs.webkit.org/show_bug.cgi?id=79570
497 Reviewed by Pavel Feldman.
499 * inspector/front-end/ExtensionAPI.js:
500 (injectedExtensionAPI.EventSinkImpl.prototype.addListener):
501 (injectedExtensionAPI):
502 (injectedExtensionAPI.Panels.prototype.create):
503 (injectedExtensionAPI.AuditResultImpl):
504 (injectedExtensionAPI.ExtensionServerClient):
506 2012-02-21 Pavel Podivilov <podivilov@chromium.org>
508 Web Inspector: get rid of RawSourceCode.sourceMapping getter.
509 https://bugs.webkit.org/show_bug.cgi?id=79461
511 Reviewed by Yury Semikhatsky.
513 * inspector/front-end/BreakpointManager.js:
514 (WebInspector.BreakpointManager.prototype.uiSourceCodeAdded):
515 (WebInspector.BreakpointManager.prototype.setBreakpoint):
516 (WebInspector.BreakpointManager.prototype._materializeBreakpoint):
517 (WebInspector.BreakpointManager.prototype._breakpointDebuggerLocationChanged):
518 * inspector/front-end/ConsoleMessage.js:
519 (WebInspector.ConsoleMessageImpl.prototype.get location):
520 * inspector/front-end/DebuggerPresentationModel.js:
521 (WebInspector.DebuggerPresentationModel.prototype.rawLocationToUILocation):
522 (WebInspector.DebuggerPresentationModel.prototype.uiSourceCodes):
523 (WebInspector.DebuggerPresentationModel.prototype._handleUISourceCodeListChanged):
524 (WebInspector.DebuggerPresentationModel.prototype._uiSourceCodeListChanged):
525 (WebInspector.DebuggerPresentationModel.prototype._restoreBreakpoints):
526 (WebInspector.DebuggerPresentationModel.prototype._restoreConsoleMessages):
527 (WebInspector.DebuggerPresentationModel.prototype._restoreExecutionLine):
528 (WebInspector.DebuggerPresentationModel.prototype._consoleMessageAdded):
529 (WebInspector.DebuggerPresentationModel.prototype.continueToLine):
530 (WebInspector.DebuggerPresentationModel.prototype.set selectedCallFrame):
531 (WebInspector.DebuggerPresentationModel.prototype._debuggerReset):
532 (WebInspector.PresentationCallFrame.prototype.uiLocation):
533 (WebInspector.DebuggerPresentationModel.CallFramePlacard):
534 (WebInspector.DebuggerPresentationModel.CallFramePlacard.prototype.discard):
535 (WebInspector.DebuggerPresentationModel.CallFramePlacard.prototype._update):
536 (WebInspector.DebuggerPresentationModelResourceBinding.prototype.canSetContent):
537 (WebInspector.DebuggerPresentationModelResourceBinding.prototype.setContent):
538 (WebInspector.DebuggerPresentationModel.DefaultLinkifierFormatter.prototype.formatRawSourceCodeAnchor):
539 (WebInspector.DebuggerPresentationModel.Linkifier.prototype.linkifyRawSourceCode):
540 (WebInspector.DebuggerPresentationModel.Linkifier.prototype.reset):
541 (WebInspector.DebuggerPresentationModel.Linkifier.prototype._updateAnchor):
542 * inspector/front-end/RawSourceCode.js:
543 (WebInspector.RawSourceCode.prototype.rawLocationToUILocation):
544 (WebInspector.RawSourceCode.prototype.uiLocationToRawLocation):
545 (WebInspector.RawSourceCode.prototype.uiSourceCodeList):
546 (WebInspector.RawSourceCode.prototype._saveSourceMapping):
547 * inspector/front-end/ScriptsPanel.js:
548 (WebInspector.ScriptsPanel.prototype._updateCallFrame):
549 * inspector/front-end/ScriptsSearchScope.js:
550 (WebInspector.ScriptsSearchResultsPane.prototype.createAnchor):
552 2012-02-27 Mihnea Ovidenie <mihnea@adobe.com>
554 [CSSRegions]Implement NamedFlow::getRegionsByContentNode
555 https://bugs.webkit.org/show_bug.cgi?id=77746
557 Reviewed by David Hyatt.
559 Tests: fast/regions/get-regions-by-content-node-horiz-bt.html
560 fast/regions/get-regions-by-content-node-horiz-tb.html
561 fast/regions/get-regions-by-content-node-vert-lr.html
562 fast/regions/get-regions-by-content-node-vert-rl.html
563 fast/regions/get-regions-by-content-node.html
564 fast/regions/get-regions-by-content-node2.html
567 * GNUmakefile.list.am:
570 * WebCore.vcproj/WebCore.vcproj:
571 * WebCore.xcodeproj/project.pbxproj:
573 (WebCore::Node::removeCachedRegionNodeList):
575 (WebCore::Node::getRegionsByContentNode):
576 (WebCore::NodeListsNodeData::invalidateCaches):
577 (WebCore::NodeListsNodeData::isEmpty):
581 * dom/NodeRareData.h:
583 * dom/RegionNodeList.cpp:
585 (WebCore::RegionNodeList::RegionNodeList):
586 (WebCore::RegionNodeList::~RegionNodeList):
587 (WebCore::RegionNodeList::nodeMatches):
588 * dom/RegionNodeList.h:
591 (WebCore::RegionNodeList::create):
592 * dom/WebKitNamedFlow.cpp:
593 (WebCore::WebKitNamedFlow::getRegionsByContentNode):
595 * dom/WebKitNamedFlow.h:
598 * dom/WebKitNamedFlow.idl:
599 * rendering/RenderFlowThread.cpp:
600 (WebCore::RenderFlowThread::regionInRange):
602 (WebCore::RenderFlowThread::objectInFlowRegion):
603 * rendering/RenderFlowThread.h:
604 * rendering/RenderRegion.h:
605 (WebCore::RenderRegion::flowThread):
607 2012-02-27 Yury Semikhatsky <yurys@chromium.org>
609 Web Inspector: counter graphs should resize after console showing
610 https://bugs.webkit.org/show_bug.cgi?id=79640
612 Invoke Panel.doResize after showing drawer.
614 Reviewed by Pavel Feldman.
616 * inspector/front-end/Drawer.js:
617 (WebInspector.Drawer.prototype.show.animationFinished):
618 (WebInspector.Drawer.prototype.show):
620 2012-02-27 Dan Beam <dbeam@chromium.org>
622 Web Inspector: Close TabbedPanes on middle click of tab handle
623 https://bugs.webkit.org/show_bug.cgi?id=79518
625 Reviewed by Pavel Feldman.
627 * inspector/front-end/TabbedPane.js:
628 (WebInspector.TabbedPaneTab.prototype._createTabElement):
629 (WebInspector.TabbedPaneTab.prototype._tabClicked):
631 2012-02-26 Yury Semikhatsky <yurys@chromium.org>
633 Web Inspector: crash in fake workers
634 https://bugs.webkit.org/show_bug.cgi?id=79637
636 Notify front-end about worker creation/destruction synchronously instead of
639 Reviewed by Pavel Feldman.
641 * inspector/InspectorAgent.cpp:
643 (WebCore::InspectorAgent::didCreateWorker):
644 (WebCore::InspectorAgent::didDestroyWorker):
645 * inspector/InspectorAgent.h:
648 2012-02-26 Adam Barth <abarth@webkit.org>
652 Fix some warnings in the build from referencing the non-existent
653 websockets directory.
655 * WebCore.gyp/WebCore.gyp:
657 2012-02-26 Shinya Kawanaka <shinyak@chromium.org>
659 Rename ShadowRootList to ShadowTree.
660 https://bugs.webkit.org/show_bug.cgi?id=79342
662 Reviewed by Hajime Morita.
664 This patch renames ShadowRootList ot ShadowTree.
666 No new tests, no change in behavior.
669 * GNUmakefile.list.am:
673 * WebCore.xcodeproj/project.pbxproj:
674 * dom/DOMAllInOne.cpp:
676 (WebCore::Document::buildAccessKeyMap):
678 (WebCore::Element::willRemove):
679 (WebCore::Element::insertedIntoDocument):
680 (WebCore::Element::removedFromDocument):
681 (WebCore::Element::insertedIntoTree):
682 (WebCore::Element::removedFromTree):
683 (WebCore::Element::attach):
684 (WebCore::Element::detach):
685 (WebCore::Element::recalcStyle):
686 (WebCore::Element::hasShadowRoot):
687 (WebCore::Element::shadowTree):
688 (WebCore::Element::setShadowRoot):
689 (WebCore::Element::ensureShadowRoot):
690 (WebCore::Element::removeShadowRoot):
691 (WebCore::Element::childrenChanged):
695 * dom/ElementRareData.h:
697 (WebCore::ElementRareData::~ElementRareData):
699 (WebCore::oldestShadowRoot):
700 * dom/NodeRenderingContext.cpp:
701 (WebCore::NodeRenderingContext::NodeRenderingContext):
702 (WebCore::NodeRenderingContext::hostChildrenChanged):
703 (WebCore::NodeRenderingContext::shouldCreateRenderer):
704 * dom/NodeRenderingContext.h:
706 * dom/ShadowRoot.cpp:
707 (WebCore::ShadowRoot::tree):
708 (WebCore::ShadowRoot::attach):
712 * dom/ShadowTree.cpp: Renamed from Source/WebCore/dom/ShadowRootList.cpp.
714 (WebCore::ShadowTree::ShadowTree):
715 (WebCore::ShadowTree::~ShadowTree):
716 (WebCore::ShadowTree::pushShadowRoot):
717 (WebCore::ShadowTree::popShadowRoot):
718 (WebCore::ShadowTree::insertedIntoDocument):
719 (WebCore::ShadowTree::removedFromDocument):
720 (WebCore::ShadowTree::insertedIntoTree):
721 (WebCore::ShadowTree::removedFromTree):
722 (WebCore::ShadowTree::willRemove):
723 (WebCore::ShadowTree::attach):
724 (WebCore::ShadowTree::detach):
725 (WebCore::ShadowTree::insertionPointFor):
726 (WebCore::ShadowTree::isSelectorActive):
727 (WebCore::ShadowTree::reattach):
728 (WebCore::ShadowTree::childNeedsStyleRecalc):
729 (WebCore::ShadowTree::needsStyleRecalc):
730 (WebCore::ShadowTree::recalcShadowTreeStyle):
731 (WebCore::ShadowTree::needsReattachHostChildrenAndShadow):
732 (WebCore::ShadowTree::hostChildrenChanged):
733 (WebCore::ShadowTree::setNeedsReattachHostChildrenAndShadow):
734 (WebCore::ShadowTree::reattachHostChildrenAndShadow):
735 (WebCore::ShadowTree::ensureSelector):
736 * dom/ShadowTree.h: Renamed from Source/WebCore/dom/ShadowRootList.h.
739 (WebCore::ShadowTree::hasShadowRoot):
740 (WebCore::ShadowTree::youngestShadowRoot):
741 (WebCore::ShadowTree::oldestShadowRoot):
742 (WebCore::ShadowTree::selector):
743 (WebCore::ShadowTree::clearNeedsReattachHostChildrenAndShadow):
744 (WebCore::ShadowTree::host):
745 * dom/TreeScopeAdopter.cpp:
746 (WebCore::shadowRootFor):
747 * html/ColorInputType.cpp:
748 (WebCore::ColorInputType::createShadowSubtree):
749 (WebCore::ColorInputType::shadowColorSwatch):
750 * html/FileInputType.cpp:
751 (WebCore::FileInputType::createShadowSubtree):
752 (WebCore::FileInputType::multipleAttributeChanged):
753 * html/HTMLDetailsElement.cpp:
754 (WebCore::HTMLDetailsElement::findMainSummary):
755 * html/HTMLKeygenElement.cpp:
756 (WebCore::HTMLKeygenElement::shadowSelect):
757 * html/HTMLMediaElement.cpp:
758 (WebCore::HTMLMediaElement::mediaControls):
759 (WebCore::HTMLMediaElement::hasMediaControls):
760 * html/HTMLSummaryElement.cpp:
761 * html/HTMLTextAreaElement.cpp:
762 (WebCore::HTMLTextAreaElement::innerTextElement):
763 (WebCore::HTMLTextAreaElement::updatePlaceholderText):
764 * html/InputType.cpp:
765 (WebCore::InputType::destroyShadowSubtree):
766 * html/RangeInputType.cpp:
767 (WebCore::RangeInputType::handleMouseDownEvent):
768 (WebCore::RangeInputType::createShadowSubtree):
769 * html/TextFieldInputType.cpp:
770 (WebCore::TextFieldInputType::createShadowSubtree):
771 (WebCore::TextFieldInputType::updatePlaceholderText):
772 * html/ValidationMessage.cpp:
773 (WebCore::ValidationMessage::deleteBubbleTree):
774 * html/shadow/HTMLContentElement.cpp:
775 (WebCore::HTMLContentElement::attach):
776 (WebCore::HTMLContentElement::detach):
777 (WebCore::HTMLContentElement::parseAttribute):
778 * html/shadow/SliderThumbElement.cpp:
779 (WebCore::sliderThumbElementOf):
780 (WebCore::RenderSliderContainer::layout):
781 (WebCore::trackLimiterElementOf):
782 * page/FocusController.cpp:
783 (WebCore::shadowRoot):
784 * rendering/RenderFileUploadControl.cpp:
785 (WebCore::RenderFileUploadControl::uploadButton):
786 * svg/SVGTRefElement.cpp:
787 (WebCore::SVGTRefElement::updateReferencedText):
788 (WebCore::SVGTRefElement::detachTarget):
789 * testing/Internals.cpp:
790 (WebCore::Internals::ensureShadowRoot):
791 (WebCore::Internals::youngestShadowRoot):
792 (WebCore::Internals::oldestShadowRoot):
794 2012-02-26 Adam Barth <abarth@webkit.org>
796 Extract Supplementable base class from Page and Navigator
797 https://bugs.webkit.org/show_bug.cgi?id=79624
799 Reviewed by Hajime Morita.
801 We'll use this pattern again soon for ScriptExecutionContext.
804 * GNUmakefile.list.am:
805 * Modules/gamepad/NavigatorGamepad.cpp:
806 (WebCore::NavigatorGamepad::from):
807 * Modules/gamepad/NavigatorGamepad.h:
808 * Modules/geolocation/NavigatorGeolocation.cpp:
809 (WebCore::NavigatorGeolocation::from):
810 * Modules/geolocation/NavigatorGeolocation.h:
811 * Modules/mediastream/NavigatorMediaStream.cpp:
812 (WebCore::NavigatorMediaStream::webkitGetUserMedia):
813 * Modules/mediastream/UserMediaController.cpp:
814 (WebCore::provideUserMediaTo):
815 * Modules/mediastream/UserMediaController.h:
816 (WebCore::UserMediaController::from):
819 * WebCore.vcproj/WebCore.vcproj:
820 * WebCore.xcodeproj/project.pbxproj:
821 * dom/DeviceMotionController.cpp:
822 (WebCore::provideDeviceMotionTo):
823 * dom/DeviceMotionController.h:
824 (WebCore::DeviceMotionController::from):
825 * dom/DeviceOrientationController.cpp:
826 (WebCore::provideDeviceOrientationTo):
827 * dom/DeviceOrientationController.h:
829 (WebCore::DeviceOrientationController::from):
830 * notifications/NotificationController.cpp:
831 (WebCore::provideNotification):
832 * notifications/NotificationController.h:
834 (WebCore::NotificationController::from):
835 * page/DOMWindow.cpp:
836 (WebCore::DOMWindow::page):
838 (WebCore::DOMWindow::addEventListener):
839 (WebCore::DOMWindow::removeEventListener):
840 (WebCore::DOMWindow::removeAllEventListeners):
844 * page/Navigator.cpp:
848 * page/NavigatorSupplement.cpp: Removed.
849 * page/NavigatorSupplement.h: Removed.
854 * page/PageSupplement.cpp: Removed.
855 * page/PageSupplement.h: Removed.
856 * page/SpeechInput.cpp:
857 (WebCore::provideSpeechInputTo):
858 * page/SpeechInput.h:
859 (WebCore::SpeechInput::from):
860 * platform/Supplementable.h: Added.
863 (WebCore::Supplement::~Supplement):
864 (WebCore::Supplement::provideTo):
865 (WebCore::Supplement::from):
867 (WebCore::Supplementable::provideSupplement):
868 (WebCore::Supplementable::requireSupplement):
870 2012-02-26 Hajime Morrita <morrita@chromium.org>
872 Move ChromeClient::showContextMenu() to ContextMenuClient
873 https://bugs.webkit.org/show_bug.cgi?id=79427
875 Reviewed by Adam Barth.
877 - Removed ChromeClient::showContextMenu(), Chrome::showContextMenu()
878 - Added ContextMenuController::showContextMenuAt(), ContextMenuClient::showContextMenu()
879 - Hided showContextMenu() behind ACCESSIBILITY_CONTEXT_MENUS
881 This change localizes context menu related code and will make it easy to
882 modularize CONTEXT_MENUS code.
884 Refactoring. No new tests.
887 * accessibility/mac/WebAccessibilityObjectWrapper.mm:
888 (-[WebAccessibilityObjectWrapper accessibilityShowContextMenu]):
889 * loader/EmptyClients.h:
890 (EmptyContextMenuClient):
891 (WebCore::EmptyContextMenuClient::showContextMenu):
892 * page/ContextMenuClient.h:
894 * page/ContextMenuController.cpp:
896 (WebCore::ContextMenuController::showContextMenuAt):
897 * page/ContextMenuController.h:
898 (ContextMenuController):
902 * page/ChromeClient.h:
905 2012-02-26 Benjamin Poulain <bpoulain@apple.com>
907 [Mac] Release localized Strings instead of AutoRelease
908 https://bugs.webkit.org/show_bug.cgi?id=79552
910 Reviewed by Sam Weinig.
912 By using the CoreFoundation API, we can release the memory as soon as
913 the WTF::String is created.
915 * WebCore.xcodeproj/project.pbxproj:
916 * platform/mac/LocalizedStringsMac.cpp: Renamed from Source/WebCore/platform/mac/LocalizedStringsMac.mm.
918 (WebCore::localizedString):
920 2012-02-26 Adam Barth <abarth@webkit.org>
922 ContextDestructionObserver should live in its own file
923 https://bugs.webkit.org/show_bug.cgi?id=79619
925 Reviewed by Hajime Morita.
927 WebKit prefers to have one class per file. (This patch is paying a
928 build system hacking debt I incurred earlier.)
931 * GNUmakefile.list.am:
934 * WebCore.vcproj/WebCore.vcproj:
935 * WebCore.xcodeproj/project.pbxproj:
936 * dom/ActiveDOMObject.cpp:
938 * dom/ActiveDOMObject.h:
940 (WebCore::ActiveDOMObject::suspendIfNeededCalled):
941 (WebCore::ActiveDOMObject::setPendingActivity):
942 (WebCore::ActiveDOMObject::unsetPendingActivity):
943 * dom/ContextDestructionObserver.cpp: Added.
945 (WebCore::ContextDestructionObserver::ContextDestructionObserver):
946 (WebCore::ContextDestructionObserver::~ContextDestructionObserver):
947 (WebCore::ContextDestructionObserver::contextDestroyed):
948 * dom/ContextDestructionObserver.h: Added.
950 (ContextDestructionObserver):
951 (WebCore::ContextDestructionObserver::scriptExecutionContext):
952 * dom/DOMAllInOne.cpp:
954 2012-02-26 Dirk Schulze <krit@webkit.org>
956 Cleanup of Adobes copyright text. The text got harmonized with copyright texts of other companies.
960 * css/CSSWrapShapes.cpp:
961 * css/CSSWrapShapes.h:
962 * css/WebKitCSSRegionRule.cpp:
963 * css/WebKitCSSRegionRule.h:
964 * css/WebKitCSSRegionRule.idl:
965 * css/WebKitCSSShaderValue.cpp:
966 * css/WebKitCSSShaderValue.h:
967 * dom/WebKitNamedFlow.cpp:
968 * dom/WebKitNamedFlow.h:
969 * dom/WebKitNamedFlow.idl:
970 * loader/cache/CachedShader.cpp:
971 * loader/cache/CachedShader.h:
972 * platform/graphics/filters/CustomFilterMesh.cpp:
973 * platform/graphics/filters/CustomFilterMesh.h:
974 * platform/graphics/filters/CustomFilterNumberParameter.h:
975 * platform/graphics/filters/CustomFilterOperation.cpp:
976 * platform/graphics/filters/CustomFilterOperation.h:
977 * platform/graphics/filters/CustomFilterParameter.h:
978 * platform/graphics/filters/CustomFilterProgram.cpp:
979 * platform/graphics/filters/CustomFilterProgram.h:
980 * platform/graphics/filters/CustomFilterProgramClient.h:
981 * platform/graphics/filters/CustomFilterShader.cpp:
982 * platform/graphics/filters/CustomFilterShader.h:
983 * platform/graphics/filters/FECustomFilter.cpp:
984 * platform/graphics/filters/FECustomFilter.h:
985 * rendering/FilterEffectObserver.h:
986 * rendering/RenderFlowThread.cpp:
987 * rendering/RenderFlowThread.h:
988 * rendering/RenderRegion.cpp:
989 * rendering/RenderRegion.h:
990 * rendering/style/StyleCachedShader.cpp:
991 * rendering/style/StyleCachedShader.h:
992 * rendering/style/StyleCustomFilterProgram.h:
993 * rendering/style/StylePendingShader.h:
994 * rendering/style/StyleShader.h:
996 2012-02-26 Hyowon Kim <hw1008.kim@samsung.com>
998 [EFL] Implementation of GraphicsContext3D for EFL port
999 https://bugs.webkit.org/show_bug.cgi?id=79452
1001 Reviewed by Noam Rosenthal.
1003 Evas_GL is used to do OpenGL rendering on Evas, in which
1004 a structure 'Evas_GL_API' contains all the OpenGL functions.
1006 GraphicsContext3D in EFL port should call OpenGL functions indirectly
1007 through the Evas_GL_API, and not use GraphicsContext3DOpenGL(Common).
1009 So, we use the GraphicsContext3DPrivate to delegate all OpenGL function calls,
1010 and it will be implemented to use Evas_GL (bug 62961).
1012 No new tests. No behavior change.
1014 * platform/graphics/efl/GraphicsContext3DEfl.cpp: Added.
1016 (WebCore::GraphicsContext3D::create):
1017 (WebCore::GraphicsContext3D::GraphicsContext3D):
1018 (WebCore::GraphicsContext3D::~GraphicsContext3D):
1019 (WebCore::GraphicsContext3D::platformGraphicsContext3D):
1020 (WebCore::GraphicsContext3D::platformLayer):
1021 (WebCore::GraphicsContext3D::makeContextCurrent):
1022 (WebCore::GraphicsContext3D::isGLES2Compliant):
1023 (WebCore::GraphicsContext3D::activeTexture):
1024 (WebCore::GraphicsContext3D::attachShader):
1025 (WebCore::GraphicsContext3D::bindAttribLocation):
1026 (WebCore::GraphicsContext3D::bindBuffer):
1027 (WebCore::GraphicsContext3D::bindFramebuffer):
1028 (WebCore::GraphicsContext3D::bindRenderbuffer):
1029 (WebCore::GraphicsContext3D::bindTexture):
1030 (WebCore::GraphicsContext3D::blendColor):
1031 (WebCore::GraphicsContext3D::blendEquation):
1032 (WebCore::GraphicsContext3D::blendEquationSeparate):
1033 (WebCore::GraphicsContext3D::blendFunc):
1034 (WebCore::GraphicsContext3D::blendFuncSeparate):
1035 (WebCore::GraphicsContext3D::bufferData):
1036 (WebCore::GraphicsContext3D::bufferSubData):
1037 (WebCore::GraphicsContext3D::checkFramebufferStatus):
1038 (WebCore::GraphicsContext3D::clear):
1039 (WebCore::GraphicsContext3D::clearColor):
1040 (WebCore::GraphicsContext3D::clearDepth):
1041 (WebCore::GraphicsContext3D::clearStencil):
1042 (WebCore::GraphicsContext3D::colorMask):
1043 (WebCore::GraphicsContext3D::compileShader):
1044 (WebCore::GraphicsContext3D::copyTexImage2D):
1045 (WebCore::GraphicsContext3D::copyTexSubImage2D):
1046 (WebCore::GraphicsContext3D::cullFace):
1047 (WebCore::GraphicsContext3D::depthFunc):
1048 (WebCore::GraphicsContext3D::depthMask):
1049 (WebCore::GraphicsContext3D::depthRange):
1050 (WebCore::GraphicsContext3D::detachShader):
1051 (WebCore::GraphicsContext3D::disable):
1052 (WebCore::GraphicsContext3D::disableVertexAttribArray):
1053 (WebCore::GraphicsContext3D::drawArrays):
1054 (WebCore::GraphicsContext3D::drawElements):
1055 (WebCore::GraphicsContext3D::enable):
1056 (WebCore::GraphicsContext3D::enableVertexAttribArray):
1057 (WebCore::GraphicsContext3D::finish):
1058 (WebCore::GraphicsContext3D::flush):
1059 (WebCore::GraphicsContext3D::framebufferRenderbuffer):
1060 (WebCore::GraphicsContext3D::framebufferTexture2D):
1061 (WebCore::GraphicsContext3D::frontFace):
1062 (WebCore::GraphicsContext3D::generateMipmap):
1063 (WebCore::GraphicsContext3D::getActiveAttrib):
1064 (WebCore::GraphicsContext3D::getActiveUniform):
1065 (WebCore::GraphicsContext3D::getAttachedShaders):
1066 (WebCore::GraphicsContext3D::getAttribLocation):
1067 (WebCore::GraphicsContext3D::getBooleanv):
1068 (WebCore::GraphicsContext3D::getBufferParameteriv):
1069 (WebCore::GraphicsContext3D::getContextAttributes):
1070 (WebCore::GraphicsContext3D::getError):
1071 (WebCore::GraphicsContext3D::getFloatv):
1072 (WebCore::GraphicsContext3D::getFramebufferAttachmentParameteriv):
1073 (WebCore::GraphicsContext3D::getIntegerv):
1074 (WebCore::GraphicsContext3D::getProgramiv):
1075 (WebCore::GraphicsContext3D::getProgramInfoLog):
1076 (WebCore::GraphicsContext3D::getRenderbufferParameteriv):
1077 (WebCore::GraphicsContext3D::getShaderiv):
1078 (WebCore::GraphicsContext3D::getShaderInfoLog):
1079 (WebCore::GraphicsContext3D::getShaderSource):
1080 (WebCore::GraphicsContext3D::getString):
1081 (WebCore::GraphicsContext3D::getTexParameterfv):
1082 (WebCore::GraphicsContext3D::getTexParameteriv):
1083 (WebCore::GraphicsContext3D::getUniformfv):
1084 (WebCore::GraphicsContext3D::getUniformiv):
1085 (WebCore::GraphicsContext3D::getUniformLocation):
1086 (WebCore::GraphicsContext3D::getVertexAttribfv):
1087 (WebCore::GraphicsContext3D::getVertexAttribiv):
1088 (WebCore::GraphicsContext3D::getVertexAttribOffset):
1089 (WebCore::GraphicsContext3D::hint):
1090 (WebCore::GraphicsContext3D::isBuffer):
1091 (WebCore::GraphicsContext3D::isEnabled):
1092 (WebCore::GraphicsContext3D::isFramebuffer):
1093 (WebCore::GraphicsContext3D::isProgram):
1094 (WebCore::GraphicsContext3D::isRenderbuffer):
1095 (WebCore::GraphicsContext3D::isShader):
1096 (WebCore::GraphicsContext3D::isTexture):
1097 (WebCore::GraphicsContext3D::lineWidth):
1098 (WebCore::GraphicsContext3D::linkProgram):
1099 (WebCore::GraphicsContext3D::pixelStorei):
1100 (WebCore::GraphicsContext3D::polygonOffset):
1101 (WebCore::GraphicsContext3D::readPixels):
1102 (WebCore::GraphicsContext3D::releaseShaderCompiler):
1103 (WebCore::GraphicsContext3D::renderbufferStorage):
1104 (WebCore::GraphicsContext3D::sampleCoverage):
1105 (WebCore::GraphicsContext3D::scissor):
1106 (WebCore::GraphicsContext3D::shaderSource):
1107 (WebCore::GraphicsContext3D::stencilFunc):
1108 (WebCore::GraphicsContext3D::stencilFuncSeparate):
1109 (WebCore::GraphicsContext3D::stencilMask):
1110 (WebCore::GraphicsContext3D::stencilMaskSeparate):
1111 (WebCore::GraphicsContext3D::stencilOp):
1112 (WebCore::GraphicsContext3D::stencilOpSeparate):
1113 (WebCore::GraphicsContext3D::texImage2D):
1114 (WebCore::GraphicsContext3D::texParameterf):
1115 (WebCore::GraphicsContext3D::texParameteri):
1116 (WebCore::GraphicsContext3D::texSubImage2D):
1117 (WebCore::GraphicsContext3D::uniform1f):
1118 (WebCore::GraphicsContext3D::uniform1fv):
1119 (WebCore::GraphicsContext3D::uniform1i):
1120 (WebCore::GraphicsContext3D::uniform1iv):
1121 (WebCore::GraphicsContext3D::uniform2f):
1122 (WebCore::GraphicsContext3D::uniform2fv):
1123 (WebCore::GraphicsContext3D::uniform2i):
1124 (WebCore::GraphicsContext3D::uniform2iv):
1125 (WebCore::GraphicsContext3D::uniform3f):
1126 (WebCore::GraphicsContext3D::uniform3fv):
1127 (WebCore::GraphicsContext3D::uniform3i):
1128 (WebCore::GraphicsContext3D::uniform3iv):
1129 (WebCore::GraphicsContext3D::uniform4f):
1130 (WebCore::GraphicsContext3D::uniform4fv):
1131 (WebCore::GraphicsContext3D::uniform4i):
1132 (WebCore::GraphicsContext3D::uniform4iv):
1133 (WebCore::GraphicsContext3D::uniformMatrix2fv):
1134 (WebCore::GraphicsContext3D::uniformMatrix3fv):
1135 (WebCore::GraphicsContext3D::uniformMatrix4fv):
1136 (WebCore::GraphicsContext3D::useProgram):
1137 (WebCore::GraphicsContext3D::validateProgram):
1138 (WebCore::GraphicsContext3D::vertexAttrib1f):
1139 (WebCore::GraphicsContext3D::vertexAttrib1fv):
1140 (WebCore::GraphicsContext3D::vertexAttrib2f):
1141 (WebCore::GraphicsContext3D::vertexAttrib2fv):
1142 (WebCore::GraphicsContext3D::vertexAttrib3f):
1143 (WebCore::GraphicsContext3D::vertexAttrib3fv):
1144 (WebCore::GraphicsContext3D::vertexAttrib4f):
1145 (WebCore::GraphicsContext3D::vertexAttrib4fv):
1146 (WebCore::GraphicsContext3D::vertexAttribPointer):
1147 (WebCore::GraphicsContext3D::viewport):
1148 (WebCore::GraphicsContext3D::reshape):
1149 (WebCore::GraphicsContext3D::markContextChanged):
1150 (WebCore::GraphicsContext3D::markLayerComposited):
1151 (WebCore::GraphicsContext3D::layerComposited):
1152 (WebCore::GraphicsContext3D::paintRenderingResultsToCanvas):
1153 (WebCore::GraphicsContext3D::paintRenderingResultsToImageData):
1154 (WebCore::GraphicsContext3D::paintCompositedResultsToCanvas):
1155 (WebCore::GraphicsContext3D::createBuffer):
1156 (WebCore::GraphicsContext3D::createFramebuffer):
1157 (WebCore::GraphicsContext3D::createProgram):
1158 (WebCore::GraphicsContext3D::createRenderbuffer):
1159 (WebCore::GraphicsContext3D::createShader):
1160 (WebCore::GraphicsContext3D::createTexture):
1161 (WebCore::GraphicsContext3D::deleteBuffer):
1162 (WebCore::GraphicsContext3D::deleteFramebuffer):
1163 (WebCore::GraphicsContext3D::deleteProgram):
1164 (WebCore::GraphicsContext3D::deleteRenderbuffer):
1165 (WebCore::GraphicsContext3D::deleteShader):
1166 (WebCore::GraphicsContext3D::deleteTexture):
1167 (WebCore::GraphicsContext3D::synthesizeGLError):
1168 (WebCore::GraphicsContext3D::getExtensions):
1169 (WebCore::GraphicsContext3D::getInternalFramebufferSize):
1170 (WebCore::GraphicsContext3D::setContextLostCallback):
1171 (WebCore::GraphicsContext3D::getImageData):
1172 (WebCore::GraphicsContext3D::validateAttributes):
1173 (WebCore::GraphicsContext3D::readRenderingResults):
1174 (WebCore::GraphicsContext3D::reshapeFBOs):
1175 (WebCore::GraphicsContext3D::resolveMultisamplingIfNecessary):
1176 (WebCore::GraphicsContext3D::isResourceSafe):
1178 2012-02-26 James Robinson <jamesr@chromium.org>
1180 [chromium] Wire up shouldUpdateScrollPositionOnMainThread and nonFastScrollableRegion to compositor
1181 https://bugs.webkit.org/show_bug.cgi?id=79155
1183 Reviewed by Adam Barth.
1185 This hooks up ScrollingCoordinator::setNonFastScrollableRegion() and
1186 ScrollingCoordinator::setShouldUpdateScrollLayerPositionOnMainThread() to the chromium compositor
1187 implementation and implements them on the impl thread.
1189 New compositor behavior is covered by unit tests in LayerChromiumTests and CCLayerTreeHostImplTests. The rest is
1192 * page/scrolling/chromium/ScrollingCoordinatorChromium.cpp:
1193 (WebCore::ScrollingCoordinator::setNonFastScrollableRegion):
1194 (WebCore::ScrollingCoordinator::setShouldUpdateScrollLayerPositionOnMainThread):
1195 * platform/graphics/chromium/LayerChromium.cpp:
1196 (WebCore::LayerChromium::LayerChromium):
1197 (WebCore::LayerChromium::setShouldScrollOnMainThread):
1199 (WebCore::LayerChromium::setNonFastScrollableRegion):
1200 (WebCore::LayerChromium::pushPropertiesTo):
1201 * platform/graphics/chromium/LayerChromium.h:
1204 * platform/graphics/chromium/cc/CCLayerImpl.cpp:
1205 (WebCore::CCLayerImpl::CCLayerImpl):
1206 * platform/graphics/chromium/cc/CCLayerImpl.h:
1207 (WebCore::CCLayerImpl::shouldScrollOnMainThread):
1208 (WebCore::CCLayerImpl::setShouldScrollOnMainThread):
1210 (WebCore::CCLayerImpl::nonFastScrollableRegion):
1211 (WebCore::CCLayerImpl::setNonFastScrollableRegion):
1212 * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
1213 (WebCore::CCLayerTreeHostImpl::scrollBegin):
1215 2012-02-26 Kentaro Hara <haraken@chromium.org>
1217 Unreviewed. Rebaselined run-bindings-tests results.
1219 * bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp:
1220 (webkit_dom_test_interface_supplemental_method4):
1222 2012-02-26 Sheriff Bot <webkit.review.bot@gmail.com>
1224 Unreviewed, rolling out r108547.
1225 http://trac.webkit.org/changeset/108547
1226 https://bugs.webkit.org/show_bug.cgi?id=79606
1228 Crashes on ClusterFuzz (Requested by inferno-sec on #webkit).
1230 * rendering/RenderBlockLineLayout.cpp:
1231 (WebCore::RenderBlock::layoutInlineChildren):
1233 2012-02-25 Adam Barth <abarth@webkit.org>
1235 Move websockets to Modules/websockets
1236 https://bugs.webkit.org/show_bug.cgi?id=79598
1238 Reviewed by Eric Seidel.
1240 Nowadays, the only ENABLE(WEB_SOCKETS) ifdef in WebCore proper is in
1241 WebCore::Settings, and that will be removed (soon?) once Apple drops
1242 support for the old WebSockets protocol.
1245 * DerivedSources.make:
1246 * DerivedSources.pri:
1248 * GNUmakefile.list.am:
1249 * Modules/websockets: Copied from Source/WebCore/websockets.
1251 * WebCore.gyp/WebCore.gyp:
1254 * WebCore.vcproj/WebCore.vcproj:
1255 * WebCore.vcproj/WebCoreCommon.vsprops:
1256 * WebCore.vcproj/copyForwardingHeaders.cmd:
1257 * WebCore.xcodeproj/project.pbxproj:
1258 * websockets: Removed.
1259 * websockets/CloseEvent.h: Removed.
1260 * websockets/CloseEvent.idl: Removed.
1261 * websockets/DOMWindowWebSocket.idl: Removed.
1262 * websockets/ThreadableWebSocketChannel.cpp: Removed.
1263 * websockets/ThreadableWebSocketChannel.h: Removed.
1264 * websockets/ThreadableWebSocketChannelClientWrapper.cpp: Removed.
1265 * websockets/ThreadableWebSocketChannelClientWrapper.h: Removed.
1266 * websockets/WebSocket.cpp: Removed.
1267 * websockets/WebSocket.h: Removed.
1268 * websockets/WebSocket.idl: Removed.
1269 * websockets/WebSocketChannel.cpp: Removed.
1270 * websockets/WebSocketChannel.h: Removed.
1271 * websockets/WebSocketChannelClient.h: Removed.
1272 * websockets/WebSocketDeflater.cpp: Removed.
1273 * websockets/WebSocketDeflater.h: Removed.
1274 * websockets/WebSocketExtensionDispatcher.cpp: Removed.
1275 * websockets/WebSocketExtensionDispatcher.h: Removed.
1276 * websockets/WebSocketExtensionProcessor.h: Removed.
1277 * websockets/WebSocketFrame.h: Removed.
1278 * websockets/WebSocketHandshake.cpp: Removed.
1279 * websockets/WebSocketHandshake.h: Removed.
1280 * websockets/WebSocketHandshakeRequest.cpp: Removed.
1281 * websockets/WebSocketHandshakeRequest.h: Removed.
1282 * websockets/WebSocketHandshakeResponse.cpp: Removed.
1283 * websockets/WebSocketHandshakeResponse.h: Removed.
1284 * websockets/WorkerThreadableWebSocketChannel.cpp: Removed.
1285 * websockets/WorkerThreadableWebSocketChannel.h: Removed.
1287 2012-02-25 Benjamin Poulain <benjamin@webkit.org>
1289 Get rid of KURL::deprecatedString()
1290 https://bugs.webkit.org/show_bug.cgi?id=79594
1292 Reviewed by Andreas Kling.
1294 The method KURL::deprecatedString() is unused, remove it from WebCore.
1296 The last reference to the method was removed in r96779.
1298 * platform/KURL.cpp:
1302 * platform/KURLGoogle.cpp:
1304 * platform/KURLWTFURL.cpp:
1307 2012-02-25 Benjamin Poulain <benjamin@webkit.org>
1309 Get rid of copyParsedQueryTo()
1310 https://bugs.webkit.org/show_bug.cgi?id=79590
1312 Reviewed by Andreas Kling.
1314 The function KURL::copyParsedQueryTo() is unused. Remove it from WebCore.
1316 The function was used by HTMLAnchorElement::getParameter() but that feature
1317 was removed in r100164.
1320 * platform/KURL.cpp:
1325 * platform/KURLGoogle.cpp:
1327 * platform/KURLWTFURL.cpp:
1330 2012-02-25 Sheriff Bot <webkit.review.bot@gmail.com>
1332 Unreviewed, rolling out r108924.
1333 http://trac.webkit.org/changeset/108924
1334 https://bugs.webkit.org/show_bug.cgi?id=79597
1336 broke 4 inspector tests (Requested by kling on #webkit).
1338 * dom/StyledElement.cpp:
1339 (WebCore::StyledElement::parseAttribute):
1341 2012-02-25 Adam Barth <abarth@webkit.org>
1343 Fix typo in comment. This #endif is for a different ENABLE macro.
1345 * page/NavigatorRegisterProtocolHandler.cpp:
1347 2012-02-25 Anders Carlsson <andersca@apple.com>
1349 Move an ASSERT to avoid it firing due to a race condition
1350 https://bugs.webkit.org/show_bug.cgi?id=79596
1352 Reviewed by Andreas Kling.
1354 ScrollingThread::isCurrentThread() can return false if called too early.
1355 Move it into ScrollingThread::initializeRunLoop where we know that the thread has
1356 been set up correctly.
1358 * page/scrolling/ScrollingThread.cpp:
1359 (WebCore::ScrollingThread::threadBody):
1360 * page/scrolling/mac/ScrollingThreadMac.mm:
1361 (WebCore::ScrollingThread::initializeRunLoop):
1363 2012-02-25 Andreas Kling <awesomekling@apple.com>
1365 Setting style="" should destroy the element's inline style.
1366 <http://webkit.org/b/79595>
1368 Reviewed by Anders Carlsson.
1370 There's no reason for an element with style="" to have an inline style object.
1371 Remove the inline style in that case, just like we do when removing the style
1372 attribute altogether.
1374 * dom/StyledElement.cpp:
1375 (WebCore::StyledElement::parseAttribute):
1377 2012-02-25 Andreas Kling <awesomekling@apple.com>
1379 Allow matched property cache for elements with additional attribute style.
1380 <http://webkit.org/b/79583>
1382 Reviewed by Antti Koivisto.
1384 There's no reason to disallow the matched style property cache for elements
1385 that return something from additionalAttributeStyle(). The only requirement
1386 for a property set to be cached is that it either doesn't mutate OR that it
1387 invalidates the document's CSSStyleSelector when doing so.
1389 This allows some more match caching for table-related elements, though we
1390 are still held back by explicitly 'inherited' properties in html.css.
1392 * css/CSSStyleSelector.cpp:
1393 (WebCore::CSSStyleSelector::collectMatchingRulesForList):
1395 2012-02-25 Julien Chaffraix <jchaffraix@webkit.org>
1397 Clean-up RenderTableSection::calcRowLogicalHeight
1398 https://bugs.webkit.org/show_bug.cgi?id=77705
1400 Reviewed by Nikolas Zimmermann.
1402 Refactoring / simplication of the code.
1404 This change removes some variables that were unneeded and were
1405 hiding what the code was really doing. Also some of the code was
1406 split and moved down to RenderTableCell.
1408 * rendering/RenderTableCell.cpp:
1409 (WebCore::RenderTableCell::logicalHeightForRowSizing):
1410 * rendering/RenderTableCell.h:
1412 Added the previous helper function to calculate the cell's
1413 adjusted logical height.
1415 * rendering/RenderTableSection.cpp:
1416 (WebCore::RenderTableSection::calcRowLogicalHeight):
1417 Removed some variables, simplified the rowspan logic to be clearer
1418 (and added a comment about how we handle rowspans).
1420 2012-02-25 Benjamin Poulain <benjamin@webkit.org>
1422 Add an empty skeleton of KURL for WTFURL
1423 https://bugs.webkit.org/show_bug.cgi?id=78990
1425 Reviewed by Adam Barth.
1427 Add an empty skeleton of KURL based on WTFURL.
1429 With WTFURL, the data of KURL is in an implicitely shared object
1430 named KURLWTFURLImpl.
1432 In KURLWTFURLImpl, KURL created with invalid URL would be stored
1433 as a String. A valid URL would be stored as a ParsedURL.
1435 * ForwardingHeaders/wtf/url/ParsedURL.h: Added.
1437 * WebCore.xcodeproj/project.pbxproj:
1438 * platform/KURL.cpp:
1442 (WebCore::KURL::KURL):
1443 (WebCore::KURL::isHashTableDeletedValue):
1445 * platform/KURLWTFURL.cpp: Added.
1447 (WebCore::KURL::KURL):
1448 (WebCore::KURL::copy):
1449 (WebCore::KURL::isNull):
1450 (WebCore::KURL::isEmpty):
1451 (WebCore::KURL::isValid):
1452 (WebCore::KURL::hasPath):
1453 (WebCore::KURL::string):
1454 (WebCore::KURL::protocol):
1455 (WebCore::KURL::host):
1456 (WebCore::KURL::port):
1457 (WebCore::KURL::hasPort):
1458 (WebCore::KURL::user):
1459 (WebCore::KURL::pass):
1460 (WebCore::KURL::path):
1461 (WebCore::KURL::lastPathComponent):
1462 (WebCore::KURL::query):
1463 (WebCore::KURL::fragmentIdentifier):
1464 (WebCore::KURL::hasFragmentIdentifier):
1465 (WebCore::KURL::copyParsedQueryTo):
1466 (WebCore::KURL::baseAsString):
1467 (WebCore::KURL::deprecatedString):
1468 (WebCore::KURL::fileSystemPath):
1469 (WebCore::KURL::protocolIs):
1470 (WebCore::KURL::protocolIsInHTTPFamily):
1471 (WebCore::KURL::setProtocol):
1472 (WebCore::KURL::setHost):
1473 (WebCore::KURL::removePort):
1474 (WebCore::KURL::setPort):
1475 (WebCore::KURL::setHostAndPort):
1476 (WebCore::KURL::setUser):
1477 (WebCore::KURL::setPass):
1478 (WebCore::KURL::setPath):
1479 (WebCore::KURL::setQuery):
1480 (WebCore::KURL::setFragmentIdentifier):
1481 (WebCore::KURL::removeFragmentIdentifier):
1482 (WebCore::KURL::hostStart):
1483 (WebCore::KURL::hostEnd):
1484 (WebCore::KURL::pathStart):
1485 (WebCore::KURL::pathEnd):
1486 (WebCore::KURL::pathAfterLastSlash):
1487 (WebCore::KURL::invalidate):
1488 (WebCore::KURL::isHierarchical):
1489 (WebCore::protocolIs):
1490 (WebCore::equalIgnoringFragmentIdentifier):
1491 (WebCore::protocolHostAndPortAreEqual):
1492 (WebCore::encodeWithURLEscapeSequences):
1493 (WebCore::decodeURLEscapeSequences):
1494 * platform/KURLWTFURLImpl.h: Copied from Source/WebCore/platform/mac/KURLMac.mm.
1497 * platform/cf/KURLCFNet.cpp:
1499 (WebCore::KURL::KURL):
1500 (WebCore::KURL::createCFURL):
1501 * platform/mac/KURLMac.mm:
1503 (WebCore::KURL::KURL):
1504 (WebCore::KURL::operator NSURL *):
1506 2012-02-25 Anders Carlsson <andersca@apple.com>
1508 Make the libc++ workaround more targeted
1509 https://bugs.webkit.org/show_bug.cgi?id=79578
1510 <rdar://problem/10933150>
1512 Reviewed by Sam Weinig.
1514 Change the std::move implementation to take a WebCore::TimerHeapReference directly so
1515 WebCore still builds with a version of libc++ that has the right std::move function template.
1521 2012-02-25 Andreas Kling <awesomekling@apple.com>
1523 Remove HTMLEmbedElement::insertedIntoDocument().
1524 <http://webkit.org/b/79576>
1526 Reviewed by Anders Carlsson.
1528 * html/HTMLEmbedElement.cpp:
1529 * html/HTMLEmbedElement.h:
1531 2012-02-25 Adrienne Walker <enne@google.com>
1533 Fix unused variable warnings in HarfBuzzShaperBase
1534 https://bugs.webkit.org/show_bug.cgi?id=79575
1536 Reviewed by Andreas Kling.
1538 In builds where asserts are not enabled, the error variable is unused.
1540 * platform/graphics/harfbuzz/HarfBuzzShaperBase.cpp:
1541 (WebCore::normalizeSpacesAndMirrorChars):
1543 2012-02-25 Andreas Kling <awesomekling@apple.com>
1545 Remove HTMLTableElement::attach().
1546 <http://webkit.org/b/79574>
1548 Reviewed by Anders Carlsson.
1550 Remove this attach() override since it was only used to assert that
1551 we're not already attached, and this is already done by Node::attach().
1553 * html/HTMLTableElement.cpp:
1554 * html/HTMLTableElement.h:
1556 2012-02-25 Andreas Kling <awesomekling@apple.com>
1558 HTMLTableElement: Avoid CSSParser in createSharedCellStyle().
1559 <http://webkit.org/b/79573>
1561 Reviewed by Anders Carlsson.
1563 * html/HTMLTableElement.cpp:
1564 (WebCore::HTMLTableElement::createSharedCellStyle):
1566 2012-02-25 Nikolas Zimmermann <nzimmermann@rim.com>
1568 Unreviewed, rolling out r108557.
1569 http://trac.webkit.org/changeset/108557
1570 https://bugs.webkit.org/show_bug.cgi?id=77705
1572 Broke svg/zoom/page/zoom-replated-intrinsic-ratio-001.htm.
1574 * rendering/RenderTableCell.cpp:
1575 * rendering/RenderTableCell.h:
1577 * rendering/RenderTableSection.cpp:
1578 (WebCore::RenderTableSection::calcRowLogicalHeight):
1580 2012-02-25 Andreas Kling <awesomekling@apple.com>
1582 HTMLParamElement: Clean up name/value attribute handling.
1583 <http://webkit.org/b/79559>
1585 Reviewed by Anders Carlsson.
1587 Out-of-line name() and value(), and move the logic from parseAttribute()
1588 into them instead. This makes the class a bit simpler and shrinks it by
1589 two AtomicStrings. Also reduced isURLAttribute() to a two-liner.
1591 * html/HTMLParamElement.cpp:
1592 (WebCore::HTMLParamElement::name):
1593 (WebCore::HTMLParamElement::value):
1594 (WebCore::HTMLParamElement::isURLAttribute):
1595 * html/HTMLParamElement.h:
1597 2012-02-24 Tien-Ren Chen <trchen@chromium.org>
1599 [chromium] Replace RefPtr with OwnPtr for CCLayerImpl tree structure
1600 https://bugs.webkit.org/show_bug.cgi?id=78404
1602 Reviewed by James Robinson.
1604 No new tests. Updated existing test to reflect changes.
1606 * platform/graphics/chromium/CanvasLayerChromium.cpp:
1607 (WebCore::CanvasLayerChromium::createCCLayerImpl):
1608 * platform/graphics/chromium/CanvasLayerChromium.h:
1609 (CanvasLayerChromium):
1610 * platform/graphics/chromium/LayerChromium.cpp:
1611 (WebCore::LayerChromium::createCCLayerImpl):
1612 * platform/graphics/chromium/LayerChromium.h:
1614 * platform/graphics/chromium/PluginLayerChromium.cpp:
1615 (WebCore::PluginLayerChromium::createCCLayerImpl):
1616 * platform/graphics/chromium/PluginLayerChromium.h:
1617 (PluginLayerChromium):
1618 * platform/graphics/chromium/SolidColorLayerChromium.cpp:
1619 (WebCore::SolidColorLayerChromium::createCCLayerImpl):
1620 * platform/graphics/chromium/SolidColorLayerChromium.h:
1621 (SolidColorLayerChromium):
1622 * platform/graphics/chromium/TiledLayerChromium.cpp:
1623 (WebCore::TiledLayerChromium::createCCLayerImpl):
1624 * platform/graphics/chromium/TiledLayerChromium.h:
1625 (TiledLayerChromium):
1626 * platform/graphics/chromium/TreeSynchronizer.cpp:
1627 (WebCore::TreeSynchronizer::synchronizeTrees):
1628 (WebCore::TreeSynchronizer::collectExistingCCLayerImplRecursive):
1630 (WebCore::TreeSynchronizer::reuseOrCreateCCLayerImpl):
1631 (WebCore::TreeSynchronizer::synchronizeTreeRecursive):
1632 * platform/graphics/chromium/TreeSynchronizer.h:
1634 * platform/graphics/chromium/VideoLayerChromium.cpp:
1635 (WebCore::VideoLayerChromium::createCCLayerImpl):
1636 * platform/graphics/chromium/VideoLayerChromium.h:
1637 (VideoLayerChromium):
1638 * platform/graphics/chromium/cc/CCCanvasLayerImpl.h:
1639 (WebCore::CCCanvasLayerImpl::create):
1640 * platform/graphics/chromium/cc/CCDamageTracker.cpp:
1641 (WebCore::CCDamageTracker::updateDamageTrackingState):
1642 (WebCore::CCDamageTracker::trackDamageFromActiveLayers):
1643 * platform/graphics/chromium/cc/CCDamageTracker.h:
1645 * platform/graphics/chromium/cc/CCLayerImpl.cpp:
1646 (WebCore::CCLayerImpl::CCLayerImpl):
1647 (WebCore::CCLayerImpl::addChild):
1648 (WebCore::sortLayers):
1649 (WebCore::CCLayerImpl::setMaskLayer):
1650 (WebCore::CCLayerImpl::setReplicaLayer):
1651 * platform/graphics/chromium/cc/CCLayerImpl.h:
1652 (WebCore::CCLayerImpl::create):
1653 (WebCore::CCLayerImpl::children):
1656 * platform/graphics/chromium/cc/CCLayerIterator.cpp:
1658 (WebCore::CCLayerIteratorActions::BackToFront::begin):
1659 (WebCore::CCLayerIteratorActions::BackToFront::end):
1660 (WebCore::CCLayerIteratorActions::BackToFront::next):
1661 (WebCore::CCLayerIteratorActions::FrontToBack::begin):
1662 (WebCore::CCLayerIteratorActions::FrontToBack::end):
1663 (WebCore::CCLayerIteratorActions::FrontToBack::next):
1664 (WebCore::CCLayerIteratorActions::FrontToBack::goToHighestInSubtree):
1665 * platform/graphics/chromium/cc/CCLayerIterator.h:
1668 (WebCore::CCLayerIterator::begin):
1669 (WebCore::CCLayerIterator::end):
1670 (WebCore::CCLayerIterator::targetRenderSurfaceLayer):
1671 (WebCore::CCLayerIterator::CCLayerIterator):
1672 (WebCore::CCLayerIterator::getRawPtr):
1673 (WebCore::CCLayerIterator::currentLayer):
1674 (WebCore::CCLayerIterator::targetRenderSurfaceChildren):
1677 * platform/graphics/chromium/cc/CCLayerSorter.cpp:
1678 (WebCore::CCLayerSorter::createGraphNodes):
1679 * platform/graphics/chromium/cc/CCLayerSorter.h:
1681 * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
1682 (WebCore::CCLayerTreeHost::finishCommitOnImplThread):
1683 (WebCore::CCLayerTreeHost::didBecomeInvisibleOnImplThread):
1684 (WebCore::CCLayerTreeHost::reserveTextures):
1685 (WebCore::CCLayerTreeHost::paintLayerContents):
1686 (WebCore::CCLayerTreeHost::updateCompositorResources):
1687 * platform/graphics/chromium/cc/CCLayerTreeHostCommon.cpp:
1689 (WebCore::calculateDrawTransformsAndVisibilityInternal):
1690 (WebCore::walkLayersAndCalculateVisibleLayerRects):
1691 (WebCore::CCLayerTreeHostCommon::calculateDrawTransformsAndVisibility):
1692 * platform/graphics/chromium/cc/CCLayerTreeHostCommon.h:
1693 (CCLayerTreeHostCommon):
1694 * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
1695 (WebCore::CCLayerTreeHostImpl::CCLayerTreeHostImpl):
1696 (WebCore::CCLayerTreeHostImpl::trackDamageForAllSurfaces):
1697 (WebCore::CCLayerTreeHostImpl::calculateRenderPasses):
1698 (WebCore::CCLayerTreeHostImpl::drawLayers):
1699 (WebCore::CCLayerTreeHostImpl::setRootLayer):
1700 * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
1701 (CCLayerTreeHostImpl):
1702 (WebCore::CCLayerTreeHostImpl::releaseRootLayer):
1703 (WebCore::CCLayerTreeHostImpl::scrollLayer):
1704 * platform/graphics/chromium/cc/CCPluginLayerImpl.h:
1705 (WebCore::CCPluginLayerImpl::create):
1706 * platform/graphics/chromium/cc/CCRenderSurface.h:
1707 (WebCore::CCRenderSurface::layerList):
1709 * platform/graphics/chromium/cc/CCSolidColorLayerImpl.h:
1710 (WebCore::CCSolidColorLayerImpl::create):
1711 * platform/graphics/chromium/cc/CCTiledLayerImpl.h:
1712 (WebCore::CCTiledLayerImpl::create):
1713 * platform/graphics/chromium/cc/CCVideoLayerImpl.h:
1714 (WebCore::CCVideoLayerImpl::create):
1716 2012-02-24 Andreas Kling <awesomekling@apple.com>
1718 Don't pass constant strings to CSSParser for presentation attributes.
1719 <http://webkit.org/b/79530>
1721 Reviewed by Anders Carlsson.
1723 "both" -> CSSValueBoth.
1724 "center" -> CSSValueCenter.
1726 * html/HTMLBRElement.cpp:
1727 (WebCore::HTMLBRElement::collectStyleForAttribute):
1728 * html/HTMLElement.cpp:
1729 (WebCore::HTMLElement::collectStyleForAttribute):
1731 2012-02-24 Yael Aharon <yael.aharon@nokia.com>
1733 [Texmap] Add const-ness to TextureMapperShaderManager
1734 https://bugs.webkit.org/show_bug.cgi?id=79545
1736 Reviewed by Noam Rosenthal.
1738 Add const to new methods.
1741 * platform/graphics/texmap/TextureMapperShaderManager.cpp:
1742 (WebCore::TextureMapperShaderProgramSimple::vertexShaderSource):
1743 (WebCore::TextureMapperShaderProgramSimple::fragmentShaderSource):
1744 (WebCore::TextureMapperShaderProgramOpacityAndMask::vertexShaderSource):
1745 (WebCore::TextureMapperShaderProgramOpacityAndMask::fragmentShaderSource):
1746 * platform/graphics/texmap/TextureMapperShaderManager.h:
1747 (WebCore::TextureMapperShaderProgram::matrixVariable):
1748 (WebCore::TextureMapperShaderProgram::sourceMatrixVariable):
1749 (WebCore::TextureMapperShaderProgram::sourceTextureVariable):
1750 (WebCore::TextureMapperShaderProgram::opacityVariable):
1751 (TextureMapperShaderProgram):
1752 (TextureMapperShaderProgramSimple):
1753 (WebCore::TextureMapperShaderProgramOpacityAndMask::maskMatrixVariable):
1754 (WebCore::TextureMapperShaderProgramOpacityAndMask::maskTextureVariable):
1755 (TextureMapperShaderProgramOpacityAndMask):
1757 2012-02-24 Tom Sepez <tsepez@chromium.org>
1759 XSS Auditor targeting legitimate frames as false positives.
1760 https://bugs.webkit.org/show_bug.cgi?id=79397
1762 Reviewed by Adam Barth.
1764 Test: http/tests/security/xssAuditor/script-tag-safe4.html
1766 * html/parser/XSSAuditor.cpp:
1767 (WebCore::XSSAuditor::filterCharacterToken):
1768 (WebCore::XSSAuditor::filterScriptToken):
1769 (WebCore::XSSAuditor::filterObjectToken):
1770 (WebCore::XSSAuditor::filterEmbedToken):
1771 (WebCore::XSSAuditor::filterAppletToken):
1772 (WebCore::XSSAuditor::filterIframeToken):
1773 (WebCore::XSSAuditor::decodedSnippetForToken):
1775 (WebCore::XSSAuditor::decodedSnippetForName):
1776 (WebCore::XSSAuditor::decodedSnippetForAttribute):
1777 (WebCore::XSSAuditor::decodedSnippetForJavascript):
1778 (WebCore::XSSAuditor::isContainedInRequest):
1779 (WebCore::XSSAuditor::isSameOriginResource):
1780 * html/parser/XSSAuditor.h:
1782 2012-02-24 Ian Vollick <vollick@chromium.org>
1784 [chromium] Plumb animation started notifications from CCLayerTreeHost to GraphicsLayerChromium
1785 https://bugs.webkit.org/show_bug.cgi?id=77646
1787 Reviewed by James Robinson.
1790 * platform/graphics/chromium/GraphicsLayerChromium.cpp:
1792 (WebCore::GraphicsLayerChromium::~GraphicsLayerChromium):
1793 (WebCore::GraphicsLayerChromium::addAnimation):
1794 (WebCore::GraphicsLayerChromium::pauseAnimation):
1795 (WebCore::GraphicsLayerChromium::removeAnimation):
1796 (WebCore::GraphicsLayerChromium::suspendAnimations):
1797 (WebCore::GraphicsLayerChromium::resumeAnimations):
1798 (WebCore::GraphicsLayerChromium::updateLayerPreserves3D):
1799 (WebCore::GraphicsLayerChromium::mapAnimationNameToId):
1801 (WebCore::GraphicsLayerChromium::notifyAnimationStarted):
1802 (WebCore::GraphicsLayerChromium::notifyAnimationFinished):
1803 * platform/graphics/chromium/GraphicsLayerChromium.h:
1804 (GraphicsLayerChromium):
1805 * platform/graphics/chromium/LayerChromium.cpp:
1806 (WebCore::LayerChromium::LayerChromium):
1807 (WebCore::LayerChromium::setAnimationEvent):
1809 * platform/graphics/chromium/LayerChromium.h:
1812 (WebCore::LayerChromium::setLayerAnimationDelegate):
1813 * platform/graphics/chromium/cc/CCAnimationEvents.cpp: Added.
1815 (WebCore::CCAnimationEvent::CCAnimationEvent):
1816 (WebCore::CCAnimationEvent::~CCAnimationEvent):
1817 (WebCore::CCAnimationEvent::toAnimationStartedEvent):
1818 (WebCore::CCAnimationEvent::toAnimationFinishedEvent):
1819 (WebCore::CCAnimationStartedEvent::create):
1820 (WebCore::CCAnimationStartedEvent::CCAnimationStartedEvent):
1821 (WebCore::CCAnimationStartedEvent::~CCAnimationStartedEvent):
1822 (WebCore::CCAnimationStartedEvent::type):
1823 (WebCore::CCAnimationFinishedEvent::create):
1824 (WebCore::CCAnimationFinishedEvent::CCAnimationFinishedEvent):
1825 (WebCore::CCAnimationFinishedEvent::~CCAnimationFinishedEvent):
1826 (WebCore::CCAnimationFinishedEvent::type):
1827 * platform/graphics/chromium/cc/CCAnimationEvents.h:
1830 (WebCore::CCAnimationEvent::layerId):
1831 (CCAnimationStartedEvent):
1832 (WebCore::CCAnimationStartedEvent::startTime):
1833 (CCAnimationFinishedEvent):
1834 (WebCore::CCAnimationFinishedEvent::animationId):
1835 * platform/graphics/chromium/cc/CCLayerAnimationControllerImpl.cpp:
1836 (WebCore::CCLayerAnimationControllerImpl::animate):
1837 (WebCore::CCLayerAnimationControllerImpl::startAnimationsWaitingForNextTick):
1838 (WebCore::CCLayerAnimationControllerImpl::startAnimationsWaitingForStartTime):
1839 (WebCore::CCLayerAnimationControllerImpl::startAnimationsWaitingForTargetAvailability):
1840 (WebCore::CCLayerAnimationControllerImpl::purgeFinishedAnimations):
1841 (WebCore::CCLayerAnimationControllerImpl::tickAnimations):
1842 * platform/graphics/chromium/cc/CCLayerAnimationControllerImpl.h:
1843 (CCLayerAnimationControllerImpl):
1844 * platform/graphics/chromium/cc/CCLayerAnimationDelegate.h: Copied from Source/WebCore/platform/graphics/chromium/cc/CCAnimationEvents.h.
1846 (CCLayerAnimationDelegate):
1847 * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
1848 (WebCore::CCLayerTreeHost::setAnimationEvents):
1849 (WebCore::CCLayerTreeHost::setAnimationEventsRecursive):
1851 * platform/graphics/chromium/cc/CCLayerTreeHost.h:
1853 2012-02-24 Abhishek Arya <inferno@chromium.org>
1855 Regression(r107477): Crash in StaticNodeList::itemWithName.
1856 https://bugs.webkit.org/show_bug.cgi?id=79532
1858 Reviewed by Andreas Kling.
1860 Make sure that node is an element node before checking its id attribute.
1862 Test: fast/mutation/mutation-callback-non-element-crash.html
1864 * dom/StaticNodeList.cpp:
1865 (WebCore::StaticNodeList::itemWithName):
1867 2012-02-24 Tony Chang <tony@chromium.org>
1869 More refactoring in RenderFlexibleBox
1870 https://bugs.webkit.org/show_bug.cgi?id=79533
1872 Reviewed by Ojan Vafai.
1874 No new tests, just refactoring.
1876 * rendering/RenderFlexibleBox.cpp:
1877 (WebCore::RenderFlexibleBox::layoutFlexItems): Move the flipping of RTL+column positions to its own method.
1878 This might be a tiny bit slower, but it's clearer since it's not related to alignment.
1879 (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): Move the logical height calculation out of the loop. We only need the final height.
1880 (WebCore::RenderFlexibleBox::alignChildren):
1881 (WebCore::RenderFlexibleBox::flipForRightToLeftColumn):
1882 * rendering/RenderFlexibleBox.h:
1883 (RenderFlexibleBox):
1885 2012-02-24 Abhishek Arya <inferno@chromium.org>
1887 Positioned objects not cleared when moving children
1888 to clone block in multi-column layout.
1889 https://bugs.webkit.org/show_bug.cgi?id=78416
1891 Reviewed by Eric Seidel.
1893 Test: fast/multicol/span/positioned-child-not-removed-crash.html
1895 * rendering/RenderBlock.cpp:
1896 (WebCore::RenderBlock::splitBlocks):
1898 2012-02-24 Michael Saboff <msaboff@apple.com>
1900 Unreviewed, Windows build fix. Changed "-1" to newly
1901 created constant JSC::Yarr::offsetNoMatch added in r108858.
1903 * platform/text/RegularExpression.cpp:
1904 (WebCore::RegularExpression::match):
1906 2012-02-24 Eric Carlson <eric.carlson@apple.com>
1908 Update TextTrackCue API
1909 https://bugs.webkit.org/show_bug.cgi?id=79368
1911 Change TextTrackCue.alignment to .align, TextTrackCue.linePosition and .textPosition to .line
1912 and .position, and TextTrackCue.direction to .vertical. Change direction values "horizontal"
1913 to "","vertical" to "rl", and "vertical-lr" to "lr".
1915 Reviewed by Eric Seidel.
1917 No new tests, updated existing tests for API changes.
1919 * html/track/TextTrackCue.cpp:
1920 (WebCore::horizontalKeyword):
1921 (WebCore::verticalGrowingLeftKeyword):
1923 (WebCore::verticalGrowingRightKeyword):
1924 (WebCore::verticalKeywordOLD):
1925 (WebCore::verticallrKeywordOLD):
1926 (WebCore::TextTrackCue::TextTrackCue):
1927 (WebCore::TextTrackCue::vertical):
1928 (WebCore::TextTrackCue::setVertical):
1929 (WebCore::TextTrackCue::setLine):
1930 (WebCore::TextTrackCue::setPosition):
1931 (WebCore::TextTrackCue::align):
1932 (WebCore::TextTrackCue::setAlign):
1933 (WebCore::TextTrackCue::parseSettings):
1934 * html/track/TextTrackCue.h:
1936 (WebCore::TextTrackCue::line):
1937 (WebCore::TextTrackCue::position):
1938 * html/track/TextTrackCue.idl:
1940 2012-02-24 Adrienne Walker <enne@google.com>
1942 Fix uninitialized variables in HarfBuzzShaperBase
1943 https://bugs.webkit.org/show_bug.cgi?id=79546
1945 Reviewed by Dirk Pranke.
1947 These were introduced in r108733.
1949 * platform/graphics/harfbuzz/HarfBuzzShaperBase.cpp:
1950 (WebCore::HarfBuzzShaperBase::HarfBuzzShaperBase):
1952 2012-02-24 Noel Gordon <noel.gordon@gmail.com>
1954 [chromium] JPEG RGB image with Adode Marker fails to turbo swizzle decode
1955 https://bugs.webkit.org/show_bug.cgi?id=79457
1957 Reviewed by Adam Barth.
1959 If a JPEG has no JFIF marker, the Adode Marker must be used to determine the image
1960 color space for decoding via that markers transform value. Transform 0 images with
1961 3 color components (RGB) fail to decode with libjpeg-turbo when a swizzle decoding
1962 is active. Detect this case and decode using JCS_RGB output color space instead.
1964 Test: fast/images/rgb-jpeg-with-abode-marker-only.html
1966 * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
1967 (WebCore::JPEGImageReader::decode):
1969 2012-02-24 Joshua Bell <jsbell@chromium.org>
1971 [V8] IndexedDB: IDBTransaction objects leak in Workers
1972 https://bugs.webkit.org/show_bug.cgi?id=79308
1974 Use a V8RecursionScope whenever Workers call into script, so that
1975 post-script side-effects can be executed.
1977 Reviewed by Tony Chang.
1979 Test: storage/indexeddb/transaction-abort-workers.html
1981 * bindings/v8/ScheduledAction.cpp:
1982 (WebCore::ScheduledAction::execute):
1983 * bindings/v8/V8WorkerContextErrorHandler.cpp:
1984 (WebCore::V8WorkerContextErrorHandler::callListenerFunction):
1985 * bindings/v8/V8WorkerContextEventListener.cpp:
1986 (WebCore::V8WorkerContextEventListener::callListenerFunction):
1987 * bindings/v8/WorkerContextExecutionProxy.cpp: Replace custom recursion tracking.
1988 (WebCore::WorkerContextExecutionProxy::WorkerContextExecutionProxy):
1989 (WebCore::WorkerContextExecutionProxy::runScript):
1990 * bindings/v8/WorkerContextExecutionProxy.h:
1991 (WorkerContextExecutionProxy):
1993 2012-02-24 Gregg Tavares <gman@google.com>
1995 Limit WebGL Errors in Console to 10 per context
1996 https://bugs.webkit.org/show_bug.cgi?id=79387
1998 Reviewed by Kenneth Russell.
2000 Some apps generated enough errors to overload
2001 the Dev Tools so limit the number of errors.
2002 For a correct app there should never be any
2003 errors so seeing the first few should be enough
2006 No new tests as no new functionality
2008 * html/canvas/WebGLRenderingContext.cpp:
2010 (WebCore::WebGLRenderingContextErrorMessageCallback::onErrorMessage):
2011 (WebCore::WebGLRenderingContext::WebGLRenderingContext):
2012 (WebCore::WebGLRenderingContext::initializeNewContext):
2013 (WebCore::WebGLRenderingContext::printGLErrorToConsole):
2014 (WebCore::WebGLRenderingContext::synthesizeGLError):
2015 * html/canvas/WebGLRenderingContext.h:
2016 (WebGLRenderingContext):
2018 2012-02-24 Michael Saboff <msaboff@apple.com>
2020 ASSERT(position < 0) in JSC::Yarr::Interpreter::InputStream::readChecked
2021 https://bugs.webkit.org/show_bug.cgi?id=73728
2023 Reviewed by Gavin Barraclough.
2025 No new tests, refactored usage of JSC::Yarr interpreter.
2026 Should be covered by existing tests.
2028 Changed WebCore callers of JSC::Yarr:Interpreter::interpret() to match the
2029 new signature with unsigned offsets.
2031 * inspector/ContentSearchUtils.cpp:
2032 (WebCore::ContentSearchUtils::findMagicComment):
2033 * platform/text/RegularExpression.cpp:
2034 (WebCore::RegularExpression::match):
2036 2012-02-24 Hans Muller <hmuller@adobe.com>
2038 onclick is not reliable for transformed SVG elements
2039 https://bugs.webkit.org/show_bug.cgi?id=34714
2041 Reviewed by Dirk Schulze.
2043 Use FloatPoints in RenderSVGRoot::nodeAtPoint() when converting the incoming
2044 point to local coordinates.
2046 Test: svg/hittest/svg-small-viewbox.xhtml
2048 * rendering/svg/RenderSVGRoot.cpp:
2049 (WebCore::RenderSVGRoot::nodeAtPoint):
2051 2012-02-24 Julien Chaffraix <jchaffraix@webkit.org>
2053 Implement limited parsing of -webkit-grid-column and -webkit-grid-row
2054 https://bugs.webkit.org/show_bug.cgi?id=79151
2056 Reviewed by Ojan Vafai.
2058 Test: fast/css-grid-layout/grid-item-column-row-get-set.html
2060 This change implements a subset of the grammar:
2062 -webkit-grid-{row|column} := <integer> | 'auto'
2065 * GNUmakefile.list.am:
2068 * WebCore.vcproj/WebCore.vcproj:
2069 * WebCore.xcodeproj/project.pbxproj:
2070 Added the new files to our build systems.
2072 * css/CSSComputedStyleDeclaration.cpp:
2073 (WebCore::valueForGridPosition): Check that we have the right translated grammar
2074 (this function will be more useful once we implement more of the grammar).
2075 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
2076 * css/CSSStyleSelector.cpp:
2077 (WebCore::CSSStyleSelector::applyProperty):
2078 Added handling for the new properties.
2080 * css/CSSParser.cpp:
2081 (WebCore::CSSParser::parseValue):
2082 Allow only 'auto' or <integer>.
2084 * css/CSSProperty.cpp:
2085 (WebCore::CSSProperty::isInheritedProperty):
2086 grid-colum and grid-row are not inherited.
2088 * css/CSSPropertyNames.in:
2089 Added the 2 new properties.
2091 * rendering/style/RenderStyle.cpp:
2092 (WebCore::RenderStyle::RenderStyle):
2093 (WebCore::RenderStyle::diff):
2094 * rendering/style/RenderStyle.h:
2095 * rendering/style/StyleGridItemData.cpp: Added.
2096 (WebCore::StyleGridItemData::StyleGridItemData):
2097 * rendering/style/StyleGridItemData.h: Added.
2098 (StyleGridItemData):
2099 (WebCore::StyleGridItemData::create):
2100 (WebCore::StyleGridItemData::copy):
2101 (WebCore::StyleGridItemData::operator==):
2102 (WebCore::StyleGridItemData::operator!=):
2103 Implemented the minimum working class.
2105 * rendering/style/StyleRareNonInheritedData.cpp:
2106 (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
2107 (WebCore::StyleRareNonInheritedData::operator==):
2108 * rendering/style/StyleRareNonInheritedData.h:
2109 (StyleRareNonInheritedData):
2110 Added StyleGridItemData to the class StyleRareNonInheritedData.
2112 2012-02-24 Joshua Bell <jsbell@chromium.org>
2114 IndexedDB: IDBObjectStore.count() and IDBIndex.count() should accept key argument
2115 https://bugs.webkit.org/show_bug.cgi?id=79422
2117 Reviewed by Tony Chang.
2119 Tests: storage/indexeddb/index-count.html
2120 storage/indexeddb/objectstore-count.html
2122 * storage/IDBIndex.cpp:
2123 (WebCore::IDBIndex::count):
2125 * storage/IDBIndex.h:
2126 (WebCore::IDBIndex::count):
2128 * storage/IDBIndex.idl:
2129 * storage/IDBObjectStore.cpp:
2130 (WebCore::IDBObjectStore::deleteFunction):
2131 (WebCore::IDBObjectStore::count):
2133 * storage/IDBObjectStore.h:
2134 (WebCore::IDBObjectStore::count):
2136 * storage/IDBObjectStore.idl:
2138 2012-02-24 Adam Barth <abarth@webkit.org>
2140 Move mediastream into Modules/mediastream
2141 https://bugs.webkit.org/show_bug.cgi?id=79517
2143 Reviewed by Eric Seidel.
2145 This patch moves the mediastream directory into Modules. mediastream
2146 is a self-contained feature and is a good candidate for being a module.
2149 * GNUmakefile.list.am:
2150 * Modules/mediastream: Copied from Source/WebCore/mediastream.
2151 * WebCore.gyp/WebCore.gyp:
2153 * mediastream: Removed.
2154 * mediastream/DOMWindowMediaStream.idl: Removed.
2155 * mediastream/LocalMediaStream.cpp: Removed.
2156 * mediastream/LocalMediaStream.h: Removed.
2157 * mediastream/LocalMediaStream.idl: Removed.
2158 * mediastream/MediaStream.cpp: Removed.
2159 * mediastream/MediaStream.h: Removed.
2160 * mediastream/MediaStream.idl: Removed.
2161 * mediastream/MediaStreamEvent.cpp: Removed.
2162 * mediastream/MediaStreamEvent.h: Removed.
2163 * mediastream/MediaStreamEvent.idl: Removed.
2164 * mediastream/MediaStreamList.cpp: Removed.
2165 * mediastream/MediaStreamList.h: Removed.
2166 * mediastream/MediaStreamList.idl: Removed.
2167 * mediastream/MediaStreamRegistry.cpp: Removed.
2168 * mediastream/MediaStreamRegistry.h: Removed.
2169 * mediastream/MediaStreamTrack.cpp: Removed.
2170 * mediastream/MediaStreamTrack.h: Removed.
2171 * mediastream/MediaStreamTrack.idl: Removed.
2172 * mediastream/MediaStreamTrackList.cpp: Removed.
2173 * mediastream/MediaStreamTrackList.h: Removed.
2174 * mediastream/MediaStreamTrackList.idl: Removed.
2175 * mediastream/NavigatorMediaStream.cpp: Removed.
2176 * mediastream/NavigatorMediaStream.h: Removed.
2177 * mediastream/NavigatorMediaStream.idl: Removed.
2178 * mediastream/NavigatorUserMediaError.h: Removed.
2179 * mediastream/NavigatorUserMediaError.idl: Removed.
2180 * mediastream/NavigatorUserMediaErrorCallback.h: Removed.
2181 * mediastream/NavigatorUserMediaErrorCallback.idl: Removed.
2182 * mediastream/NavigatorUserMediaSuccessCallback.h: Removed.
2183 * mediastream/NavigatorUserMediaSuccessCallback.idl: Removed.
2184 * mediastream/PeerConnection.cpp: Removed.
2185 * mediastream/PeerConnection.h: Removed.
2186 * mediastream/PeerConnection.idl: Removed.
2187 * mediastream/SignalingCallback.h: Removed.
2188 * mediastream/SignalingCallback.idl: Removed.
2189 * mediastream/UserMediaClient.h: Removed.
2190 * mediastream/UserMediaController.cpp: Removed.
2191 * mediastream/UserMediaController.h: Removed.
2192 * mediastream/UserMediaRequest.cpp: Removed.
2193 * mediastream/UserMediaRequest.h: Removed.
2195 2012-02-24 Abhishek Arya <inferno@chromium.org>
2197 Overhanging floats not removed from new flex box.
2198 https://bugs.webkit.org/show_bug.cgi?id=79522
2200 Reviewed by Ojan Vafai.
2204 Test: fast/flexbox/overhanging-floats-not-removed-crash.html
2206 * rendering/RenderBox.cpp:
2207 (WebCore::RenderBox::removeFloatingOrPositionedChildFromBlockLists):
2209 2012-02-24 Brent Fulgham <bfulgham@webkit.org>
2211 [WinCairo] Compute more acurate font heights.
2212 https://bugs.webkit.org/show_bug.cgi?id=79524
2214 Reviewed by Adam Roben.
2216 Adjust font handling as suggested by Lynn Neir to use the proper
2217 xHeight value for the font, rather than the fall-back guess
2218 used in the current code.
2220 css1/text_properties/line_height.html
2222 * platform/graphics/win/SimpleFontDataCairoWin.cpp:
2223 (WebCore::SimpleFontData::platformInit): Properly initialize a
2225 (WebCore::SimpleFontData::platformWidthForGlyph): Use the Cairo
2226 cairo_scaled_font_text_extents call, rather than attempting
2227 to compute the value from ::GetGlyphOutline.
2229 2012-02-24 Tim Horton <timothy_horton@apple.com>
2231 Infinite repaint loop with SVGImageCache and deferred repaint timers
2232 https://bugs.webkit.org/show_bug.cgi?id=78315
2233 <rdar://problem/10651634>
2235 Reviewed by Dean Jackson.
2237 Only defer image redraw on a timer if we're in layout. This breaks
2238 the repaint loop while still preventing us from drawing inside layout.
2240 No new tests, as the problem only occurs in a nonstandard configuration.
2242 * svg/graphics/SVGImage.cpp:
2243 (WebCore::SVGImage::draw):
2244 (WebCore::SVGImage::frameView):
2246 * svg/graphics/SVGImage.h:
2248 * svg/graphics/SVGImageCache.cpp:
2249 (WebCore::SVGImageCache::imageContentChanged):
2250 (WebCore::SVGImageCache::redraw):
2251 (WebCore::SVGImageCache::redrawTimerFired):
2253 * svg/graphics/SVGImageCache.h:
2256 2012-02-24 Tim Horton <timothy_horton@apple.com>
2258 SVG should be supported in Dashboard compatibility mode
2259 https://bugs.webkit.org/show_bug.cgi?id=78322
2260 <rdar://problem/5861278>
2262 Reviewed by Dean Jackson.
2264 Enable SVG elements inside Dashboard, more or less reverting r21418.
2266 Tests: http/tests/xmlhttprequest/svg-created-by-xhr-allowed-in-dashboard.html
2267 svg/custom/embedded-svg-allowed-in-dashboard.xml
2268 svg/custom/manually-parsed-embedded-svg-allowed-in-dashboard.html
2269 svg/custom/manually-parsed-svg-allowed-in-dashboard.html
2270 svg/custom/svg-allowed-in-dashboard-object.html
2272 * dom/DOMImplementation.cpp:
2273 (WebCore::DOMImplementation::createDocument):
2275 (WebCore::Document::importNode):
2276 * dom/make_names.pl:
2277 (printFactoryCppFile):
2279 2012-02-24 Min Qin <qinmin@google.com>
2281 Expose a setting to exempt media playback from user gesture requirement after a user gesture is initiated on loading/playing a media
2282 https://bugs.webkit.org/show_bug.cgi?id=79167
2284 Reviewed by Adam Barth.
2286 Test: media/video-play-require-user-gesture.html
2288 * html/HTMLMediaElement.cpp:
2289 (WebCore::HTMLMediaElement::load):
2290 (WebCore::HTMLMediaElement::play):
2291 (WebCore::HTMLMediaElement::removeBehaviorsRestrictionsAfterFirstUserGesture):
2293 * html/HTMLMediaElement.h:
2295 * testing/Internals.cpp:
2296 (WebCore::Internals::setMediaPlaybackRequiresUserGesture):
2298 * testing/Internals.h:
2300 * testing/Internals.idl:
2302 2012-02-24 Adam Barth <abarth@webkit.org>
2304 DOMWindow*.idl should have had the same license block as DOMWindow.idl did originally
2305 https://bugs.webkit.org/show_bug.cgi?id=79507
2307 Reviewed by Alexey Proskuryakov.
2309 In moving pieces of DOMWindow.idl into separate files, we mistakenly
2310 changed some of the license blocks. All these files should have a
2311 license block that matches the file that originally contained the code.
2313 * Modules/intents/DOMWindowIntents.idl:
2314 * fileapi/DOMWindowFileSystem.idl:
2315 * html/DOMWindowHTML.idl:
2316 * html/canvas/DOMWindowWebGL.idl:
2317 * mediastream/DOMWindowMediaStream.idl:
2318 * storage/DOMWindowSQLDatabase.idl:
2319 * svg/DOMWindowSVG.idl:
2320 * webaudio/DOMWindowWebAudio.idl:
2321 * websockets/DOMWindowWebSocket.idl:
2322 * workers/DOMWindowWorker.idl:
2323 * xml/DOMWindowXML.idl:
2325 2012-02-24 David Kilzer <ddkilzer@apple.com>
2327 Use xcrun to find compiler paths for Generate Derived Sources build phase script
2328 <http://webkit.org/b/79512>
2330 Reviewed by Mark Rowe.
2332 * WebCore.xcodeproj/project.pbxproj:
2333 (Generate Derived Sources): Use xcrun to find the path to the
2334 compiler since that works on both iOS and OS X.
2336 2012-02-24 Anders Carlsson <andersca@apple.com>
2338 Crash in TileCache::revalidateTiles
2339 https://bugs.webkit.org/show_bug.cgi?id=79510
2340 <rdar://problem/10928035>
2342 Reviewed by Sam Weinig.
2344 Handle the tile cache layer's PlatformCALayer going away before the
2345 CALayer itself has been deallocated.
2347 * platform/graphics/ca/mac/TileCache.mm:
2348 (WebCore::TileCache::revalidateTiles):
2350 2012-02-24 Adam Klein <adamk@chromium.org>
2352 Don't notify the inspector of Node insertions initiated by the parser
2353 https://bugs.webkit.org/show_bug.cgi?id=79388
2355 Reviewed by Adam Barth.
2357 This is part of a series of changes to make ContainerNode's
2358 implementation simpler and more internally consistent.
2360 I don't know of a way to break on parser-initiated insertions,
2361 and the code already doesn't notify on parser-initiated removes
2362 (in ContainerNode::parserRemoveChild).
2364 No new tests, should already be covered by
2365 inspector/debugger/dom-breakpoints.html.
2367 * dom/ContainerNode.cpp:
2368 (WebCore::ContainerNode::parserInsertBefore):
2369 (WebCore::ContainerNode::parserAddChild):
2371 2012-02-24 Daniel Bates <dbates@webkit.org>
2373 Attempt to fix the Windows and WinCE build after changeset r108809
2374 <http://trac.webkit.org/changeset/108809> (https://bugs.webkit.org/show_bug.cgi?id=38995)
2376 Substitute styleLoadEventSender() for loadEventSender() in HTMLStyleElement.cpp
2377 and substitute linkLoadEventSender() for loadEventSender() in HTMLLinkElement.cpp.
2379 * html/HTMLLinkElement.cpp:
2380 (WebCore::linkLoadEventSender):
2381 (WebCore::HTMLLinkElement::~HTMLLinkElement):
2382 (WebCore::HTMLLinkElement::dispatchPendingLoadEvents):
2383 (WebCore::HTMLLinkElement::dispatchPendingEvent):
2384 (WebCore::HTMLLinkElement::notifyLoadedSheetAndAllCriticalSubresources):
2385 * html/HTMLStyleElement.cpp:
2386 (WebCore::styleLoadEventSender):
2387 (WebCore::HTMLStyleElement::~HTMLStyleElement):
2388 (WebCore::HTMLStyleElement::dispatchPendingLoadEvents):
2389 (WebCore::HTMLStyleElement::dispatchPendingEvent):
2390 (WebCore::HTMLStyleElement::notifyLoadedSheetAndAllCriticalSubresources):
2392 2012-02-24 Peter Beverloo <peter@chromium.org>
2394 [Chromium] Fix Chromium Android build by building HarfBuzzShaperBase.cpp
2395 https://bugs.webkit.org/show_bug.cgi?id=79497
2397 Reviewed by Tony Gentilcore.
2399 The Chromium Android build was broken by revision r108733, as the
2400 HarfBuzzShaperBase.cpp file also should have been included for Android.
2401 Fix the build by including it.
2403 * WebCore.gyp/WebCore.gyp:
2405 2012-02-24 Yael Aharon <yael.aharon@nokia.com>
2407 [Texmap] Consolidate the common parts of TextureMapperGL::drawTexture
2408 https://bugs.webkit.org/show_bug.cgi?id=79143
2410 Reviewed by Noam Rosenthal.
2412 Combine the two drawTexture methods into one, and extract the part that
2413 could not be combined into its own method.
2414 No new tests. Refactoring only.
2416 * platform/graphics/texmap/TextureMapperGL.cpp:
2418 (WebCore::TextureMapperGL::drawTexture):
2419 * platform/graphics/texmap/TextureMapperGL.h:
2422 (WebCore::BitmapTextureGL::~BitmapTextureGL):
2423 (WebCore::BitmapTextureGL::id):
2424 (WebCore::BitmapTextureGL::relativeSize):
2425 (WebCore::BitmapTextureGL::setTextureMapper):
2426 (WebCore::BitmapTextureGL::BitmapTextureGL):
2427 * platform/graphics/texmap/TextureMapperShaderManager.cpp:
2428 (WebCore::TextureMapperShaderProgramOpacityAndMask::fragmentShaderSource):
2430 (WebCore::TextureMapperShaderProgramOpacityAndMask::prepare):
2431 * platform/graphics/texmap/TextureMapperShaderManager.h:
2433 (WebCore::TextureMapperShaderProgram::prepare):
2434 (WebCore::TextureMapperShaderProgram::matrixVariable):
2435 (WebCore::TextureMapperShaderProgram::sourceMatrixVariable):
2436 (WebCore::TextureMapperShaderProgram::sourceTextureVariable):
2437 (WebCore::TextureMapperShaderProgram::opacityVariable):
2438 (TextureMapperShaderProgram):
2439 (TextureMapperShaderProgramSimple):
2440 (TextureMapperShaderProgramOpacityAndMask):
2441 (WebCore::TextureMapperShaderProgramOpacityAndMask::maskMatrixVariable):
2442 (WebCore::TextureMapperShaderProgramOpacityAndMask::maskTextureVariable):
2444 2012-02-24 Daniel Bates <dbates@webkit.org>
2446 style element and link element for CSS stylesheet should emit load/error event when sheet loads/fails to load
2447 https://bugs.webkit.org/show_bug.cgi?id=38995
2449 Reviewed by Adam Barth and Nate Chapin.
2451 Tests: fast/dom/HTMLLinkElement/link-onerror-stylesheet-with-existent-and-non-existent-import.html
2452 fast/dom/HTMLLinkElement/link-onerror-stylesheet-with-non-existent-import.html
2453 fast/dom/HTMLLinkElement/link-onerror.html
2454 fast/dom/HTMLLinkElement/link-onload-before-page-load.html
2455 fast/dom/HTMLLinkElement/link-onload-stylesheet-with-import.html
2456 fast/dom/HTMLLinkElement/link-onload.html
2457 fast/dom/HTMLLinkElement/link-onload2.html
2458 fast/dom/HTMLLinkElement/programmatically-add-link-with-onerror-handler.html
2459 fast/dom/HTMLLinkElement/programmatically-add-link-with-onload-handler.html
2460 fast/dom/HTMLStyleElement/programmatically-add-style-with-onerror-handler.html
2461 fast/dom/HTMLStyleElement/programmatically-add-style-with-onload-handler.html
2462 fast/dom/HTMLStyleElement/style-onerror-with-existent-and-non-existent-import.html
2463 fast/dom/HTMLStyleElement/style-onerror.html
2464 fast/dom/HTMLStyleElement/style-onload-before-page-load.html
2465 fast/dom/HTMLStyleElement/style-onload.html
2466 fast/dom/HTMLStyleElement/style-onload2.html
2468 Implements support for firing Load and Error events at HTML Link and HTML Style elements as per
2469 the HTML5 spec. (draft 05/25/2011) section "The link element" <http://www.w3.org/TR/html5/semantics.html#the-link-element>
2470 and "The style element" <http://www.w3.org/TR/html5/semantics.html#the-style-element>, respectively.
2472 * css/CSSImportRule.cpp:
2473 (WebCore::CSSImportRule::setCSSStyleSheet): Modified to call CSSStyleSheet::notifyLoadedSheet()
2474 after the style sheet associated with the @import rule loaded.
2475 * css/CSSStyleSheet.cpp: Added instance variable m_didLoadErrorOccur to track whether a network error
2476 occurred while loading any @import style sheets.
2477 (WebCore::CSSStyleSheet::CSSStyleSheet):
2478 (WebCore::CSSStyleSheet::checkLoaded):
2480 (WebCore::CSSStyleSheet::notifyLoadedSheet): Added; update m_didLoadErrorOccur to reflect if a network
2481 error occurred while loading a style sheet associated with an @import rule.
2482 * css/CSSStyleSheet.h:
2486 (WebCore::Document::implicitClose): Call HTML{LinkElement, StyleElement}::dispatchPendingLoadEvents() to
2487 ensure that all pending Load events for link and style elements are dispatched before we fire the Load
2488 event for the window.
2490 (WebCore::Node::notifyLoadedSheetAndAllCriticalSubresources): Added; as stated in its name, this method is
2491 called once a style sheet and all its critical subresources (@imports) have loaded.
2492 * html/HTMLLinkElement.cpp:
2493 (WebCore::loadEventSender):
2495 (WebCore::HTMLLinkElement::HTMLLinkElement):
2496 (WebCore::HTMLLinkElement::~HTMLLinkElement): Modified to cancel all pending Load events on destruction.
2497 (WebCore::HTMLLinkElement::parseAttribute): Register event listeners for Load and Error events regardless of whether we
2498 built with link prefetch support.
2499 (WebCore::HTMLLinkElement::setCSSStyleSheet):
2500 (WebCore::HTMLLinkElement::dispatchPendingLoadEvents): Added; called from Document::implicitClose() to
2501 ensure that all pending Load events for link elements have been dispatched before we fire the Load event
2503 (WebCore::HTMLLinkElement::dispatchPendingEvent): Added; called by EventSender.
2504 (WebCore::HTMLLinkElement::notifyLoadedSheetAndAllCriticalSubresources): Added.
2505 * html/HTMLLinkElement.h:
2508 * html/HTMLStyleElement.cpp:
2509 (WebCore::loadEventSender):
2511 (WebCore::HTMLStyleElement::HTMLStyleElement):
2512 (WebCore::HTMLStyleElement::~HTMLStyleElement): Modified to cancel all pending Load events on destruction.
2513 (WebCore::HTMLStyleElement::parseAttribute): Register event listeners for Load and Error events.
2514 (WebCore::HTMLStyleElement::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::HTMLStyleElement::dispatchPendingEvent): Added; called by EventSender.
2518 (WebCore::HTMLStyleElement::notifyLoadedSheetAndAllCriticalSubresources): Added.
2519 * html/HTMLStyleElement.h:
2523 2012-02-24 Adam Roben <aroben@apple.com>
2525 Mac build fix after r108698
2527 * page/scrolling/mac/ScrollingCoordinatorMac.mm: Added missing #import.
2529 2012-02-24 Csaba Osztrogonác <ossy@webkit.org>
2531 Unreviewed speculative buildfix after r108785 for ENABLE(SVG) && !ENABLE(XSLT) case.
2533 * loader/cache/CachedResourceLoader.cpp:
2534 (WebCore::CachedResourceLoader::canRequest):
2536 2012-02-24 Vsevolod Vlasov <vsevik@chromium.org>
2538 Web Inspector: Do not show scripts panel navigator automatically more than once to the same user.
2539 https://bugs.webkit.org/show_bug.cgi?id=79489
2541 Reviewed by Pavel Feldman.
2543 * inspector/front-end/ScriptsPanel.js:
2545 2012-02-24 Philippe Normand <pnormand@igalia.com>
2547 Fix GTK WebAudio build for WebKitGTK 1.7.90.
2549 Patch by Priit Laes <plaes@plaes.org> on 2012-02-24
2550 Rubber-stamped by Philippe Normand.
2552 * GNUmakefile.list.am: Add AudioBufferCallback.h and
2553 DenormalDisabler.h to the list of files so they get disted in the
2556 2012-02-24 Yury Semikhatsky <yurys@chromium.org>
2558 Web Inspector: show all counters on one graph
2559 https://bugs.webkit.org/show_bug.cgi?id=79484
2561 Now it is possible to hide any counter. All graphs share the same area.
2562 Current values are displayed above that area.
2564 Reviewed by Pavel Feldman.
2566 * English.lproj/localizedStrings.js:
2567 * inspector/front-end/MemoryStatistics.js:
2568 (WebInspector.MemoryStatistics.getDocumentCount):
2569 (WebInspector.MemoryStatistics.getNodeCount):
2570 (WebInspector.MemoryStatistics.getListenerCount):
2571 (WebInspector.MemoryStatistics):
2572 (WebInspector.SwatchCheckbox):
2573 (WebInspector.SwatchCheckbox.prototype.get checked):
2574 (WebInspector.SwatchCheckbox.prototype.set checked):
2575 (WebInspector.SwatchCheckbox.prototype._toggleCheckbox):
2576 (WebInspector.CounterUI):
2577 (WebInspector.CounterUI.prototype._toggleCounterGraph):
2578 (WebInspector.CounterUI.prototype.setRange):
2579 (WebInspector.CounterUI.prototype.updateCurrentValue):
2580 (WebInspector.CounterUI.prototype.clearCurrentValueAndMarker):
2581 (WebInspector.CounterUI.prototype.get visible):
2582 (WebInspector.CounterUI.prototype.saveImageUnderMarker):
2583 (WebInspector.CounterUI.prototype.restoreImageUnderMarker):
2584 (WebInspector.CounterUI.prototype.discardImageUnderMarker):
2585 (WebInspector.MemoryStatistics.prototype._updateSize):
2586 (WebInspector.MemoryStatistics.prototype._draw):
2587 (WebInspector.MemoryStatistics.prototype._onMouseOut):
2588 (WebInspector.MemoryStatistics.prototype._refreshCurrentValues):
2589 (WebInspector.MemoryStatistics.prototype._highlightCurrentPositionOnGraphs):
2590 (WebInspector.MemoryStatistics.prototype._drawGraph):
2591 (WebInspector.MemoryStatistics.prototype._clear):
2592 * inspector/front-end/timelinePanel.css:
2593 (.memory-counter-sidebar-info):
2594 (.memory-counter-sidebar-info .swatch):
2595 (.memory-counter-sidebar-info .title):
2596 (.memory-counter-value):
2597 (#counter-values-bar):
2599 2012-02-24 Pavel Feldman <pfeldman@google.com>
2601 Web Inspector: map Ctrl/Cmd +/- to zoom in hosted mode.
2602 https://bugs.webkit.org/show_bug.cgi?id=79475
2604 (In remote front-end mode, default zoom actions are working.)
2606 Reviewed by Yury Semikhatsky.
2608 * inspector/InspectorFrontendHost.cpp:
2609 (WebCore::InspectorFrontendHost::setZoomFactor):
2611 * inspector/InspectorFrontendHost.h:
2612 (InspectorFrontendHost):
2613 * inspector/InspectorFrontendHost.idl:
2614 * inspector/front-end/InspectorFrontendHostStub.js:
2615 (.WebInspector.InspectorFrontendHostStub):
2616 (.WebInspector.InspectorFrontendHostStub.prototype.loadResourceSynchronously):
2617 (.WebInspector.InspectorFrontendHostStub.prototype.setZoomFactor):
2618 * inspector/front-end/Settings.js:
2619 (WebInspector.Settings):
2620 * inspector/front-end/inspector.js:
2621 (WebInspector._initializeCapability):
2622 (WebInspector._zoomIn):
2623 (WebInspector._zoomOut):
2624 (WebInspector._resetZoom):
2625 (WebInspector._requestZoom.set InspectorFrontendHost):
2626 (WebInspector._requestZoom):
2627 (WebInspector._doLoadedDoneWithCapabilities.get if):
2628 (WebInspector.documentKeyDown):
2630 2012-02-24 Allan Sandfeld Jensen <allan.jensen@nokia.com>
2632 Refactor EventHandler::handleGestureEvent.
2633 https://bugs.webkit.org/show_bug.cgi?id=79476
2635 Reviewed by Kenneth Rohde Christiansen.
2637 No new tests. No behavior change.
2639 * page/EventHandler.cpp:
2640 (WebCore::EventHandler::handleGestureEvent):
2641 (WebCore::EventHandler::handleGestureTap):
2642 (WebCore::EventHandler::handleGestureScrollUpdate):
2643 * page/EventHandler.h:
2645 2012-02-24 Zoltan Horvath <zoltan@webkit.org>
2647 [Qt] Allow to use WebCore imagedecoders
2648 https://bugs.webkit.org/show_bug.cgi?id=32410
2650 Add ENABLE(QT_IMAGE_DECODER) guards around Qt imagedecoders and set it to default.
2651 By passing ENABLE_QT_IMAGE_DECODER=0 define to the build system, WebKit will build
2652 with WebCore's imagedecoders.
2654 I added NO_RETURN attribute and PLATFORM(QT) conditionals to 2 functions of PNG and
2655 JPEG decoders to avoid compiler warnings because in Qt-port we treat warning as errors (-Werror).
2657 I'm continuing the refactoring of this area and try to use Qt imagedecoders only in
2658 cases when WebCore doesn't support the image format.
2660 Reviewed by Simon Hausmann.
2662 No behavior change, no need new tests.
2666 * platform/MIMETypeRegistry.cpp:
2667 (WebCore::initializeSupportedImageMIMETypes):
2668 (WebCore::initializeSupportedImageMIMETypesForEncoding):
2669 * platform/image-decoders/ImageDecoder.h:
2670 (WebCore::ImageFrame::getAddr):
2672 * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
2673 NO_RETURN has been added to a function to avoid warning message.
2674 * platform/image-decoders/png/PNGImageDecoder.cpp:
2675 NO_RETURN has been added to a function to avoid warning message.
2677 * platform/image-decoders/qt/ImageFrameQt.cpp:
2679 (WebCore::ImageFrame::asNewNativeImage):
2681 2012-02-24 Lynn Neir <lynn.neir@skype.net>
2683 [Windows, WinCairo] Handle indeterminate checkbox state
2684 https://bugs.webkit.org/show_bug.cgi?id=79288
2686 Reviewed by Adam Roben.
2688 Tested by fast/forms/indeterminate.html
2690 * rendering/RenderThemeWin.cpp: Add code to check for indeterminate
2693 2012-02-24 Simon Hausmann <simon.hausmann@nokia.com>
2695 [Qt] Font related problem with newer Qt5
2696 https://bugs.webkit.org/show_bug.cgi?id=79402
2698 Reviewed by Kenneth Rohde Christiansen.
2700 Apply the descent += 1 workaround needed to produce correct metrics only for Qt 4,
2701 because the behaviour has been corrected in Qt 5.
2703 * platform/graphics/qt/SimpleFontDataQt.cpp:
2704 (WebCore::SimpleFontData::platformInit):
2706 2012-02-24 Kentaro Hara <haraken@chromium.org>
2708 Move XML-related APIs from DOMWindow.idl to DOMWindowXML.idl
2709 https://bugs.webkit.org/show_bug.cgi?id=79434
2711 Reviewed by Adam Barth.
2713 For WebKit modularization, this patch moves XML-related APIs
2714 from DOMWindow.idl to DOMWIndowXML.idl.
2716 No tests. No change in behavior.
2718 * xml/DOMWindowXML.idl: Added.
2719 * page/DOMWindow.idl:
2721 * CMakeLists.txt: Added "DOMWindowXML.idl".
2722 * DerivedSources.make: Ditto.
2723 * DerivedSources.pri: Ditto.
2724 * GNUmakefile.list.am: Ditto.
2725 * WebCore.gypi: Ditto.
2726 * WebCore.xcodeproj/project.pbxproj: Ditto.
2728 2012-02-24 Renata Hodovan <reni@webkit.org>
2730 External <use> xlink:href references do not work
2731 https://bugs.webkit.org/show_bug.cgi?id=12499
2733 Reviewed by Nikolas Zimmermann.
2735 Support external references on <use> by introducing CachedSVGDocument.
2736 CachedSVGDocument is a CachedResource specialized for SVGDocuments.
2737 This CachedSVGDocument will be stored for every use element with external reference.
2738 This first patch only contains the new classes to test whether it works on every platform.
2739 So they aren't used anywhere and just a follow-up patch will bind them into the caching system.
2741 No new tests - no change in functionality.
2744 * GNUmakefile.list.am:
2747 * WebCore.vcproj/WebCore.vcproj:
2748 * WebCore.xcodeproj/project.pbxproj:
2749 * loader/cache/CachedResource.cpp:
2750 (WebCore::defaultPriorityForResourceType):
2751 (WebCore::cachedResourceTypeToTargetType):
2752 * loader/cache/CachedResource.h:
2753 * loader/cache/CachedResourceClient.h:
2754 (CachedResourceClient):
2755 * loader/cache/CachedResourceLoader.cpp:
2756 (WebCore::createResource):
2757 (WebCore::CachedResourceLoader::checkInsecureContent):
2758 (WebCore::CachedResourceLoader::canRequest):
2759 * loader/cache/CachedSVGDocument.cpp: Added.
2761 (WebCore::CachedSVGDocument::CachedSVGDocument):
2762 (WebCore::CachedSVGDocument::~CachedSVGDocument):
2763 (WebCore::CachedSVGDocument::setEncoding):
2764 (WebCore::CachedSVGDocument::encoding):
2765 (WebCore::CachedSVGDocument::data):
2766 * loader/cache/CachedSVGDocument.h: Added.
2768 (CachedSVGDocument):
2769 (WebCore::CachedSVGDocument::document):
2770 (WebCore::CachedSVGDocument::schedule):
2771 (CachedSVGDocumentClient):
2772 (WebCore::CachedSVGDocumentClient::~CachedSVGDocumentClient):
2773 (WebCore::CachedSVGDocumentClient::expectedType):
2774 (WebCore::CachedSVGDocumentClient::resourceClientType):
2776 2012-02-24 Alexis Menard <alexis.menard@openbossa.org>
2778 Little optimization in CSSParser::parseShorthand.
2779 https://bugs.webkit.org/show_bug.cgi?id=79356
2781 Reviewed by Tony Chang.
2783 Remove one loop by initializing array values at declaration time.
2784 Also early return when the number of properties parsed are equals
2785 with longhands count of the shorthand. It happens to be very often
2786 the case (e.g. border). Instruments shows an improvement from 19ms
2787 to 17ms on the time spent in this function for the css-parser-yui
2790 No new tests : refactor, exisiting ones should cover.
2792 * css/CSSParser.cpp:
2793 (WebCore::CSSParser::parseShorthand):
2795 2012-02-24 Kentaro Hara <haraken@chromium.org>
2797 Move HTML-related APIs from DOMWindow.idl to DOMWindowHTML.idl
2798 https://bugs.webkit.org/show_bug.cgi?id=79436
2800 Reviewed by Adam Barth.
2802 For WebKit modularization, this patch moves HTML-related APIs
2803 from DOMWindow.idl to DOMWindowHTML.idl.
2805 No tests. No change in behavior.
2807 * html/DOMWindowHTML.idl:
2808 * page/DOMWindow.idl:
2810 2012-02-24 Jochen Eisinger <jochen@chromium.org>
2812 [v8] when a named item on document goes out of scope, actually remove it
2813 https://bugs.webkit.org/show_bug.cgi?id=79409
2815 Reviewed by Adam Barth.
2817 The original change already included the code, but it led to some
2818 problems, so it was reverted in http://trac.webkit.org/changeset/63845.
2819 However, not removing the items leaks a considerable amount of memory,
2820 so I'm adding the code back. The bug that led to the revert was that
2821 the accessor was removed unconditionally. I'm now only removing it,
2822 when the last item with that name is removed.
2824 Test: fast/dom/HTMLDocument/named-item.html
2826 * bindings/v8/V8DOMWindowShell.cpp:
2827 (WebCore::V8DOMWindowShell::namedItemRemoved):
2829 2012-02-24 Kentaro Hara <haraken@chromium.org>
2831 Move Worker-related APIs from DOMWindow.idl to DOMWindowWorker.idl
2832 https://bugs.webkit.org/show_bug.cgi?id=79442
2834 Reviewed by Adam Barth.
2836 For WebKit modularization, this patch moves Worker-related APIs
2837 from DOMWindow.idl to DOMWindowWorker.idl.
2839 No tests. No change in behavior.
2841 * workers/DOMWindowWorker.idl: Added.
2842 * page/DOMWindow.idl:
2845 * DerivedSources.make:
2846 * DerivedSources.pri:
2847 * GNUmakefile.list.am:
2850 2012-02-24 Robin Cao <robin.cao@torchmobile.com.cn>
2852 [BlackBerry] Upstream helper classes for skia
2853 https://bugs.webkit.org/show_bug.cgi?id=79216
2855 Reviewed by Antonio Gomes.
2857 Initial upstreaming, no new tests.
2859 * platform/graphics/blackberry/skia/ImageBufferData.h: Added.
2862 * platform/graphics/blackberry/skia/PlatformSupport.cpp: Added.
2864 (WebCore::setFontRenderStyleDefaults):
2865 (WebCore::PlatformSupport::getRenderStyleForStrike):
2866 (WebCore::PlatformSupport::getFontFamilyForCharacters):
2867 * platform/graphics/blackberry/skia/PlatformSupport.h: Added.
2872 2012-02-24 Robin Cao <robin.cao@torchmobile.com.cn>
2874 [BlackBerry] Upstream ImageBlackBerry in platform/graphics/blackberry
2875 https://bugs.webkit.org/show_bug.cgi?id=79212
2877 Reviewed by Antonio Gomes.
2879 Initial upstreaming, no new tests.
2881 * PlatformBlackBerry.cmake:
2882 * platform/graphics/blackberry/ImageBlackBerry.cpp: Added.
2884 (WebCore::Image::loadPlatformResource):
2886 2012-02-24 Leo Yang <leo.yang@torchmobile.com.cn>
2888 [BlackBerry] Upstream the BlackBerry change to platform/graphics/IntSize.h
2889 https://bugs.webkit.org/show_bug.cgi?id=79430
2891 Reviewed by Antonio Gomes.
2893 Add conversion convenience between WebCore::IntSize and BlackBerry::Platform::IntSize.
2895 The porting can't be built yet, no new tests.
2897 * platform/graphics/IntSize.h:
2901 2012-02-24 Shinya Kawanaka <shinyak@chromium.org>
2903 SpellCheckRequest needs to know the context where the spellcheck happened.
2904 https://bugs.webkit.org/show_bug.cgi?id=79320
2906 Reviewed by Hajime Morita.
2908 WebKit clients should be able to get the context how the spellcheck happended.
2909 For example, WebKit clients may want to change the behavior by a spellcheck request is
2910 invoked in typing or in pasting.
2912 This patch added an enum in SpellCheckRequest so that WebKit clients can understand the context.
2914 * editing/Editor.cpp:
2915 (WebCore::Editor::replaceSelectionWithFragment):
2916 (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges):
2917 * editing/SpellChecker.cpp:
2918 (WebCore::SpellCheckRequest::SpellCheckRequest):
2919 (WebCore::SpellCheckRequest::create):
2920 (WebCore::SpellChecker::invokeRequest):
2921 * editing/SpellChecker.h:
2922 (SpellCheckRequest):
2923 (WebCore::SpellCheckRequest::textCheckingRequest):
2924 (WebCore::SpellCheckRequest::processType):
2925 * loader/EmptyClients.h:
2926 (WebCore::EmptyTextCheckerClient::requestCheckingOfString):
2927 * platform/text/TextCheckerClient.h:
2929 (TextCheckerClient):
2930 * platform/text/TextChecking.h:
2931 (TextCheckingRequest):
2932 (WebCore::TextCheckingRequest::TextCheckingRequest):
2933 (WebCore::TextCheckingRequest::setSequence):
2934 (WebCore::TextCheckingRequest::sequence):
2935 (WebCore::TextCheckingRequest::text):
2936 (WebCore::TextCheckingRequest::mask):
2937 (WebCore::TextCheckingRequest::processType):
2940 2012-02-24 Hayato Ito <hayato@chromium.org>
2942 Make Node::showTreeForThis (and Node::showTreeForThisAcrossFrame) dump multiple shadow roots.
2943 https://bugs.webkit.org/show_bug.cgi?id=79351
2945 Reviewed by Dimitri Glazkov.
2947 No new tests since these utility functions are only available in debug build.
2948 I manually tested in GDB session.
2951 (WebCore::oldestShadowRootFor):
2952 (WebCore::traverseTreeAndMark):
2953 (WebCore::parentOrHostOrFrameOwner):
2954 (WebCore::showSubTreeAcrossFrame):
2956 (WebCore::ShadowRoot::youngerShadowRoot):
2957 (WebCore::ShadowRoot::olderShadowRoot):
2958 (WebCore::toShadowRoot):
2961 2012-02-24 Pavel Feldman <pfeldman@chromium.org>
2963 Not reviewed: follow up to inspector's r108331, using more general condition.
2965 * inspector/front-end/JavaScriptSourceFrame.js:
2966 (WebInspector.JavaScriptSourceFrame.prototype._getPopoverAnchor):
2968 2012-02-24 Kentaro Hara <haraken@chromium.org>
2970 Move WebGL APIs from DOMWindow.idl to DOMWindowWebGL.idl
2971 https://bugs.webkit.org/show_bug.cgi?id=79432
2973 Reviewed by Adam Barth.
2975 For WebKit modularization, this patch moves WebGL-related APIs
2976 from DOMWindow.idl to DOMWindowWebGL.idl.
2978 No tests. No change in behavior.
2980 * html/canvas/DOMWindowWebGL.idl: Added.
2981 * page/DOMWindow.idl:
2983 * DerivedSources.make: Added DOMWindowWebGL.idl.
2984 * DerivedSources.pri: Ditto.
2985 * GNUmakefile.list.am: Ditto.
2986 * WebCore.gypi: Ditto.
2987 * WebCore.xcodeproj/project.pbxproj: Ditto.
2989 2012-02-24 Vsevolod Vlasov <vsevik@chromium.org>
2991 Web Inspector: [Regression] network worker tests crash on qt.
2992 https://bugs.webkit.org/show_bug.cgi?id=79263
2994 Reviewed by Pavel Feldman.
2996 * inspector/InspectorPageAgent.cpp:
2997 (WebCore::InspectorPageAgent::createDecoder):
2998 (WebCore::InspectorPageAgent::cachedResourceContent):
3000 2012-02-24 Andreas Kling <awesomekling@apple.com>
3002 Miscellaneous CSSParser dodging in presentation attribute parsing.
3003 <http://webkit.org/b/79468>
3005 Reviewed by Antti Koivisto.
3007 - Bypass CSSParser when adding constant values to attribute styles.
3008 - Added fast paths for the valid HTMLTablePartElement align values.
3010 * html/HTMLEmbedElement.cpp:
3011 (WebCore::HTMLEmbedElement::collectStyleForAttribute):
3012 * html/HTMLHRElement.cpp:
3013 (WebCore::HTMLHRElement::collectStyleForAttribute):
3014 * html/HTMLIFrameElement.cpp:
3015 (WebCore::HTMLIFrameElement::collectStyleForAttribute):
3016 * html/HTMLTableElement.cpp:
3017 (WebCore::HTMLTableElement::collectStyleForAttribute):
3018 * html/HTMLTablePartElement.cpp:
3019 (WebCore::HTMLTablePartElement::collectStyleForAttribute):
3021 2012-02-24 Dana Jansens <danakj@chromium.org>
3023 [chromium] Avoid culling work for fully-non-opaque tiles, and add tracing for draw culling
3024 https://bugs.webkit.org/show_bug.cgi?id=79183
3026 Reviewed by James Robinson.
3028 Addresses performance issues with draw culling by avoiding the work
3029 of mapRect and other function calls when the quad has no opaque area.
3030 And adds a TRACE_EVENT to watch the time spent in draw culling.
3032 * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
3033 (WebCore::CCLayerTreeHostImpl::optimizeRenderPasses):
3034 * platform/graphics/chromium/cc/CCQuadCuller.cpp:
3035 (WebCore::CCQuadCuller::cullOccludedQuads):
3037 2012-02-24 Vsevolod Vlasov <vsevik@chromium.org>
3039 Web Inspector: Scripts panel navigator overlay should be shown automatically only one time.
3040 https://bugs.webkit.org/show_bug.cgi?id=79467
3042 Reviewed by Pavel Feldman.
3044 * inspector/front-end/ScriptsPanel.js:
3045 (WebInspector.ScriptsPanel.prototype._hideNavigatorOverlay):
3046 (WebInspector.ScriptsPanel.prototype._navigatorOverlayWillHide):
3048 2012-02-23 MORITA Hajime <morrita@google.com>
3050 Adding a ShadowRoot to image-backed element causes a crash
3051 https://bugs.webkit.org/show_bug.cgi?id=78878
3053 Reviewed by Dimitri Glazkov.
3055 The crash happened because NodeRenderingContext tried to append a
3056 child to a renderer regardless one isn't capable of holding any
3057 children if it appears in the shadow attaching phase. RenderImage
3058 is one of such renderer classes which aren't capable.
3060 NodeRenderingContext decide whether the contextual node as a child
3061 can create its renderer based on RenderObject::canHaveChildren()
3062 and Node::childShouldCreateRenderer(). But the responsibility
3063 between these two methods are getting confused. which results this
3064 unfortuante crash path.
3066 This change re-aligns the responsibility:
3068 - Now canHaveChildren() purely declares the ability of the
3069 renderer. If the renderer is capable of having children, it
3070 return true regardless of HTML semantics.
3072 - On the other hand, childShouldCreateRenderer() cares about the
3073 semantics. If the element doesn't allow children to be rendered,
3076 - Note that these decision on elements are contextual. Each element
3077 needs to know which role it is playing in the tree composition
3078 algorithm of Shadow DOM. That's why the method parameter is changed
3079 from Node* to NodeRenderingContext.
3081 - Fixed updateFirstLetter() which relied on this confused assumption.
3082 This change introduces RenderDeprecatedFlexibleBox::buttonText()
3083 to refine the relying assumption.
3085 With this change, some decision points are moved from a renderer to an
3086 element. Following renderers no longer stop reject having children:
3088 - RenderButton, RenderListBox, RenderMenuList, RenderMeter,
3089 RenderProgress, RenderTextControl.
3091 Corresponding element for such a render (HTMLProgressElement of
3092 RenderProgress for exaple) now cares about that.
3094 Reviewed by Dimitri Glazkov.
3096 Tests: fast/dom/shadow/shadow-on-image-expected.html
3097 fast/dom/shadow/shadow-on-image.html
3100 (WebCore::Element::childShouldCreateRenderer):
3104 (WebCore::Node::childShouldCreateRenderer):
3105 * dom/NodeRenderingContext.cpp:
3106 (WebCore::NodeRenderingContext::shouldCreateRenderer):
3107 * dom/NodeRenderingContext.h:
3108 (NodeRenderingContext):
3109 (WebCore::NodeRenderingContext::isOnEncapsulationBoundary):
3111 * html/HTMLDetailsElement.cpp:
3112 (WebCore::HTMLDetailsElement::childShouldCreateRenderer):
3113 * html/HTMLDetailsElement.h:
3114 (HTMLDetailsElement):
3115 * html/HTMLMediaElement.cpp:
3117 (WebCore::HTMLMediaElement::childShouldCreateRenderer):
3118 * html/HTMLMediaElement.h:
3120 * html/HTMLMeterElement.cpp:
3121 (WebCore::HTMLMeterElement::childShouldCreateRenderer):
3123 * html/HTMLMeterElement.h:
3125 * html/HTMLProgressElement.cpp:
3126 (WebCore::HTMLProgressElement::childShouldCreateRenderer):
3128 * html/HTMLProgressElement.h:
3129 (HTMLProgressElement):
3130 * html/HTMLSelectElement.cpp:
3131 (WebCore::HTMLSelectElement::childShouldCreateRenderer):
3133 * html/HTMLSelectElement.h:
3134 (HTMLSelectElement):
3135 * html/HTMLSummaryElement.cpp:
3136 (WebCore::HTMLSummaryElement::childShouldCreateRenderer):
3138 * html/HTMLSummaryElement.h:
3139 (HTMLSummaryElement):
3140 * html/HTMLTextFormControlElement.cpp:
3141 (WebCore::HTMLTextFormControlElement::childShouldCreateRenderer):
3143 * html/HTMLTextFormControlElement.h:
3144 (HTMLTextFormControlElement):
3145 * rendering/RenderBlock.cpp:
3146 (WebCore::RenderBlock::updateFirstLetter):
3147 * rendering/RenderButton.cpp:
3148 * rendering/RenderButton.h:
3150 * rendering/RenderDeprecatedFlexibleBox.h:
3151 (WebCore::RenderDeprecatedFlexibleBox::buttonText):
3152 * rendering/RenderListBox.h:
3154 * rendering/RenderMedia.h:
3155 (WebCore::RenderMedia::canHaveChildren):
3156 * rendering/RenderMenuList.h:
3158 (WebCore::RenderMenuList::hasControlClip):
3159 * rendering/RenderMeter.h:
3160 * rendering/RenderProgress.h:
3161 * rendering/RenderTextControl.h:
3162 * rendering/svg/RenderSVGRoot.h:
3163 (WebCore::RenderSVGRoot::canHaveChildren):
3164 * svg/SVGAElement.cpp:
3165 (WebCore::SVGAElement::childShouldCreateRenderer):
3166 * svg/SVGAElement.h:
3168 * svg/SVGAltGlyphElement.cpp:
3169 (WebCore::SVGAltGlyphElement::childShouldCreateRenderer):
3170 * svg/SVGAltGlyphElement.h:
3171 (SVGAltGlyphElement):
3172 * svg/SVGDocument.cpp:
3173 (WebCore::SVGDocument::childShouldCreateRenderer):
3174 * svg/SVGDocument.h:
3176 * svg/SVGElement.cpp:
3177 (WebCore::SVGElement::childShouldCreateRenderer):
3180 * svg/SVGForeignObjectElement.cpp:
3181 (WebCore::SVGForeignObjectElement::childShouldCreateRenderer):
3182 * svg/SVGForeignObjectElement.h:
3183 (SVGForeignObjectElement):
3184 * svg/SVGSwitchElement.cpp:
3185 (WebCore::SVGSwitchElement::childShouldCreateRenderer):
3186 * svg/SVGSwitchElement.h:
3188 * svg/SVGTRefElement.cpp:
3189 (WebCore::SVGTRefElement::childShouldCreateRenderer):
3190 * svg/SVGTRefElement.h:
3192 * svg/SVGTSpanElement.cpp:
3193 (WebCore::SVGTSpanElement::childShouldCreateRenderer):
3194 * svg/SVGTSpanElement.h:
3196 * svg/SVGTextElement.cpp:
3197 (WebCore::SVGTextElement::childShouldCreateRenderer):
3198 * svg/SVGTextElement.h:
3200 * svg/SVGTextPathElement.cpp:
3201 (WebCore::SVGTextPathElement::childShouldCreateRenderer):
3202 * svg/SVGTextPathElement.h:
3204 2012-02-24 Kentaro Hara <haraken@chromium.org>
3206 Support [Supplemental] on static methods
3207 https://bugs.webkit.org/show_bug.cgi?id=79357
3209 Reviewed by Adam Barth.
3211 [Supplemental] on static methods does not work in CodeGeneratorJS.pm
3212 and CodeGeneratorV8.pm due to mis-ordered if-elsif statements.
3213 This patch fixes it and supports [Supplemental] on static methods.
3215 Test: bindings/scripts/test/TestSupplemental.idl
3217 * bindings/scripts/CodeGeneratorJS.pm: Modified as described above.
3218 (GenerateParametersCheck):
3219 * bindings/scripts/CodeGeneratorV8.pm: Ditto.
3220 (GenerateFunctionCallString):
3222 * bindings/scripts/test/TestSupplemental.idl: Added a test case.
3224 * bindings/scripts/test/CPP/WebDOMTestInterface.cpp: Updated run-bindings-tests results.
3225 (WebDOMTestInterface::supplementalMethod4):
3226 * bindings/scripts/test/CPP/WebDOMTestInterface.h: Ditto.
3227 * bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp: Ditto.
3228 (webkit_dom_test_interface_supplemental_method4):
3229 * bindings/scripts/test/GObject/WebKitDOMTestInterface.h: Ditto.
3230 * bindings/scripts/test/JS/JSTestInterface.cpp: Ditto.
3232 (WebCore::JSTestInterfaceConstructor::getOwnPropertySlot):
3233 (WebCore::JSTestInterfaceConstructor::getOwnPropertyDescriptor):
3234 (WebCore::jsTestInterfaceConstructorFunctionSupplementalMethod4):
3235 * bindings/scripts/test/JS/JSTestInterface.h: Ditto.
3237 * bindings/scripts/test/ObjC/DOMTestInterface.h: Ditto.
3238 * bindings/scripts/test/ObjC/DOMTestInterface.mm: Ditto.
3239 (-[DOMTestInterface supplementalMethod4]):
3240 * bindings/scripts/test/V8/V8TestInterface.cpp: Ditto.
3241 (TestInterfaceInternal):
3242 (WebCore::TestInterfaceInternal::supplementalMethod4Callback):
3243 (WebCore::ConfigureV8TestInterfaceTemplate):
3245 2012-02-24 Tony Chang <tony@chromium.org>
3247 Small refactor in RenderFlexibleBox::layoutAndPlaceChildren
3248 https://bugs.webkit.org/show_bug.cgi?id=79420
3250 Reviewed by Ojan Vafai.
3252 No new tests, just a refactor.
3254 * rendering/RenderFlexibleBox.cpp:
3255 (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): Share some of the logic
3256 in computing the cross axis length.
3258 2012-02-24 Yury Semikhatsky <yurys@chromium.org>
3260 Web Inspector: cannot drag timeline overview window when clicking inside the window
3261 https://bugs.webkit.org/show_bug.cgi?id=79453
3263 Reviewed by Pavel Feldman.
3265 * inspector/front-end/timelinePanel.css:
3266 (.timeline-overview-window-rulers):
3268 2012-02-24 Sheriff Bot <webkit.review.bot@gmail.com>
3270 Unreviewed, rolling out r108731.
3271 http://trac.webkit.org/changeset/108731
3272 https://bugs.webkit.org/show_bug.cgi?id=79464
3274 Broke Chromium Win tests (Requested by bashi on #webkit).
3277 * GNUmakefile.list.am:
3279 * WebCore.gyp/WebCore.gyp:
3281 * WebCore.vcproj/WebCore.vcproj:
3282 * WebCore.xcodeproj/project.pbxproj:
3283 * websockets/WebSocket.cpp:
3284 (WebCore::WebSocket::didConnect):
3285 * websockets/WebSocketChannel.cpp:
3286 (WebCore::WebSocketChannel::connect):
3287 (WebCore::WebSocketChannel::fail):
3288 (WebCore::WebSocketChannel::processFrame):
3289 (WebCore::WebSocketChannel::sendFrame):
3290 * websockets/WebSocketChannel.h:
3291 * websockets/WebSocketDeflateFramer.cpp: Removed.
3292 * websockets/WebSocketDeflateFramer.h: Removed.
3294 2012-02-22 Vsevolod Vlasov <vsevik@chromium.org>
3296 Web Inspector: Show scripts panel navigator overlay on the first scripts panel opening.
3297 https://bugs.webkit.org/show_bug.cgi?id=79248
3299 Reviewed by Pavel Feldman.
3301 * inspector/front-end/ScriptsPanel.js:
3302 (WebInspector.ScriptsPanel.prototype.wasShown):
3303 (WebInspector.ScriptsPanel.prototype.set _showNavigatorOverlay):
3304 (WebInspector.ScriptsPanel.prototype._hideNavigatorOverlay):
3306 2012-02-24 Mike Lawther <mikelawther@chromium.org>
3308 CSS3 calc(): handle non-negative values
3309 https://bugs.webkit.org/show_bug.cgi?id=79188
3311 Reviewed by Daniel Bates.
3313 Some CSS properties (e.g. padding) are required to be non-negative. These
3314 are now restricted to the correct range.
3316 Tests: css3/calc/negative-padding-expected.html
3317 css3/calc/negative-padding.html
3319 * css/CSSCalculationValue.cpp:
3321 (WebCore::CSSCalcValue::clampToPermittedRange): Added
3322 (WebCore::CSSCalcValue::doubleValue):
3323 (WebCore::CSSCalcValue::isNegative): Added
3324 (WebCore::CSSCalcValue::computeLengthPx):
3325 (WebCore::CSSCalcValue::create):
3326 * css/CSSCalculationValue.h:
3328 (WebCore::CSSCalcValue::CSSCalcValue):
3329 * css/CSSParser.cpp:
3330 (WebCore::CSSParser::validCalculationUnit):
3331 (WebCore::CSSParser::parseCalculation):
3333 * platform/CalculationValue.h:
3335 2012-02-22 Vsevolod Vlasov <vsevik@chromium.org>
3337 Web Inspector: [Regression] xhr tests are crashing after r108506.
3338 https://bugs.webkit.org/show_bug.cgi?id=79265
3340 Reviewed by Pavel Feldman.
3342 * inspector/InspectorResourceAgent.cpp:
3343 (WebCore::InspectorResourceAgent::setInitialScriptContent):
3344 (WebCore::InspectorResourceAgent::setInitialXHRContent):
3346 2012-02-24 Huang Dongsung <luxtella@company100.net>
3348 Rename LocalStorageThread to StorageThread and LocalStorageTask to StorageTask.
3349 https://bugs.webkit.org/show_bug.cgi?id=79358
3351 Revision 45124 commented FIXME to rename these classes.
3353 Reviewed by Kentaro Hara.
3356 * GNUmakefile.list.am:
3360 * WebCore.vcproj/WebCore.vcproj:
3361 * WebCore.xcodeproj/project.pbxproj:
3362 * storage/LocalStorageTask.h: Removed.
3363 * storage/StorageSyncManager.cpp:
3364 (WebCore::StorageSyncManager::StorageSyncManager):
3365 (WebCore::StorageSyncManager::scheduleImport):
3366 (WebCore::StorageSyncManager::scheduleSync):
3367 (WebCore::StorageSyncManager::scheduleDeleteEmptyDatabase):
3368 * storage/StorageSyncManager.h:
3370 (StorageSyncManager):
3371 * storage/StorageTask.cpp: Renamed from Source/WebCore/storage/LocalStorageTask.cpp.
3373 (WebCore::StorageTask::StorageTask):
3374 (WebCore::StorageTask::~StorageTask):
3375 (WebCore::StorageTask::performTask):
3376 * storage/StorageTask.h: Added.
3379 (WebCore::StorageTask::createImport):
3380 (WebCore::StorageTask::createSync):
3381 (WebCore::StorageTask::createDeleteEmptyDatabase):
3382 (WebCore::StorageTask::createOriginIdentifiersImport):
3383 (WebCore::StorageTask::createSetOriginDetails):
3384 (WebCore::StorageTask::createDeleteOrigin):
3385 (WebCore::StorageTask::createDeleteAllOrigins):
3386 (WebCore::StorageTask::createTerminate):
3387 * storage/StorageThread.cpp: Renamed from Source/WebCore/storage/LocalStorageThread.cpp.
3389 (WebCore::StorageThread::create):
3390 (WebCore::StorageThread::StorageThread):
3391 (WebCore::StorageThread::~StorageThread):
3392 (WebCore::StorageThread::start):
3393 (WebCore::StorageThread::threadEntryPointCallback):
3394 (WebCore::StorageThread::threadEntryPoint):
3395 (WebCore::StorageThread::scheduleTask):
3396 (WebCore::StorageThread::terminate):
3397 (WebCore::StorageThread::performTerminate):
3398 * storage/StorageThread.h: Renamed from Source/WebCore/storage/LocalStorageThread.h.
3401 * storage/StorageTracker.cpp:
3402 (WebCore::StorageTracker::StorageTracker):
3403 (WebCore::StorageTracker::importOriginIdentifiers):
3404 (WebCore::StorageTracker::setOriginDetails):
3405 (WebCore::StorageTracker::scheduleTask):
3406 (WebCore::StorageTracker::deleteAllOrigins):
3407 (WebCore::StorageTracker::deleteOrigin):
3408 * storage/StorageTracker.h:
3411 * storage/wince/StorageThreadWinCE.cpp: Renamed from Source/WebCore/storage/wince/LocalStorageThreadWinCE.cpp.
3413 (WebCore::StorageThread::StorageThread):
3414 (WebCore::StorageThread::~StorageThread):
3415 (WebCore::StorageThread::start):
3416 (WebCore::StorageThread::timerFired):
3417 (WebCore::StorageThread::scheduleImport):
3418 (WebCore::StorageThread::scheduleSync):
3419 (WebCore::StorageThread::terminate):
3420 (WebCore::StorageThread::performTerminate):
3421 * storage/wince/StorageThreadWinCE.h: Renamed from Source/WebCore/storage/wince/LocalStorageThreadWinCE.h.
3424 (WebCore::StorageThread::create):
3426 2012-02-23 Pavel Feldman <pfeldman@chromium.org>
3428 Web Inspector: prepare border images on timelines to enable zooming.
3429 https://bugs.webkit.org/show_bug.cgi?id=79360
3431 Reviewed by Yury Semikhatsky.
3433 * inspector/front-end/Images/timelineBarBlue.png:
3434 * inspector/front-end/Images/timelineBarGray.png:
3435 * inspector/front-end/Images/timelineBarGreen.png:
3436 * inspector/front-end/Images/timelineBarOrange.png:
3437 * inspector/front-end/Images/timelineBarPurple.png:
3438 * inspector/front-end/Images/timelineBarRed.png:
3439 * inspector/front-end/Images/timelineBarYellow.png:
3440 * inspector/front-end/Images/timelineHollowPillBlue.png:
3441 * inspector/front-end/Images/timelineHollowPillGray.png:
3442 * inspector/front-end/Images/timelineHollowPillGreen.png:
3443 * inspector/front-end/Images/timelineHollowPillOrange.png:
3444 * inspector/front-end/Images/timelineHollowPillPurple.png:
3445 * inspector/front-end/Images/timelineHollowPillRed.png:
3446 * inspector/front-end/Images/timelineHollowPillYellow.png:
3447 * inspector/front-end/Images/timelinePillBlue.png:
3448 * inspector/front-end/Images/timelinePillGray.png:
3449 * inspector/front-end/Images/timelinePillGreen.png:
3450 * inspector/front-end/Images/timelinePillOrange.png:
3451 * inspector/front-end/Images/timelinePillPurple.png:
3452 * inspector/front-end/Images/timelinePillRed.png:
3453 * inspector/front-end/Images/timelinePillYellow.png:
3454 * inspector/front-end/inspectorCommon.css:
3456 * inspector/front-end/networkLogView.css:
3457 (.network-graph-bar):
3458 (.resource-cached .network-graph-bar):
3459 (.network-category-documents .network-graph-bar):
3460 (.network-category-documents.resource-cached .network-graph-bar):
3461 (.network-category-stylesheets .network-graph-bar):
3462 (.network-category-stylesheets.resource-cached .network-graph-bar):
3463 (.network-category-images.resource-cached .network-graph-bar):
3464 (.network-category-fonts .network-graph-bar):
3465 (.network-category-fonts.resource-cached .network-graph-bar):
3466 (.network-category-scripts .network-graph-bar):
3467 (.network-category-scripts.resource-cached .network-graph-bar):
3468 (.network-category-xhr .network-graph-bar):
3469 (.network-category-xhr.resource-cached .network-graph-bar):
3470 (.network-category-websockets .network-graph-bar):
3471 (.network-category-websockets.resource-cached .network-graph-bar):
3473 2012-02-23 Yury Semikhatsky <yurys@chromium.org>
3475 Web Inspector: exception in front-end on selecting an element in heap snapshot
3476 https://bugs.webkit.org/show_bug.cgi?id=79447
3478 Fixed a typo in method name and added a check that selected node has
3479 corresponding heap snapshot object before adding that object to the console
3482 Reviewed by Pavel Feldman.
3484 * inspector/front-end/DetailedHeapshotView.js:
3485 (WebInspector.DetailedHeapshotView.prototype._inspectedObjectChanged):
3487 2012-02-23 Pavel Feldman <pfeldman@chromium.org>
3489 Web Inspector: hide color picker upon panel switch.
3490 https://bugs.webkit.org/show_bug.cgi?id=79355
3492 Reviewed by Vsevolod Vlasov.
3494 * inspector/front-end/ElementsPanel.js:
3495 (WebInspector.ElementsPanel.prototype.willHide):
3496 * inspector/front-end/StylesSidebarPane.js:
3497 (WebInspector.StylesSidebarPane.prototype._showUserAgentStylesSettingChanged):
3498 (WebInspector.StylesSidebarPane.prototype.willHide):
3500 2012-02-23 Pavel Feldman <pfeldman@chromium.org>
3502 Web Inspector: make color review larger in the color picker.
3503 https://bugs.webkit.org/show_bug.cgi?id=79339
3505 Reviewed by Vsevolod Vlasov.
3507 * inspector/front-end/Popover.js:
3508 (WebInspector.Popover.prototype.hide):
3509 * inspector/front-end/Spectrum.js:
3510 * inspector/front-end/elementsPanel.css:
3511 (.spectrum-container):
3513 (.spectrum-display-value):