1 2011-01-13 Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com>
3 Reviewed by Simon Hausmann.
5 [Qt] Need a way to inform the application when a Netscape plugin is created.
6 https://bugs.webkit.org/show_bug.cgi?id=30179
8 Added "c" style static method for the application to hook up for
9 receiving notifications when a plugin is created.
11 * plugins/symbian/PluginViewSymbian.cpp:
12 (qtwebkit_setPluginCreatedCallback):
13 (WebCore::PluginView::platformStart):
15 2011-01-13 Yi Shen <yi.4.shen@nokia.com>
17 Reviewed by Eric Seidel.
19 [Qt] Use a black background color for the video element on Qt Mobile
20 https://bugs.webkit.org/show_bug.cgi?id=52252
22 Use black as the background color for the video element on Qt Mobile.
24 * css/themeQtMobile.css:
27 2011-01-13 Yi Shen <yi.4.shen@nokia.com>
29 Reviewed by Eric Seidel.
31 [Qt] Use a big central media play control button for video element
32 https://bugs.webkit.org/show_bug.cgi?id=52315
34 When ChromeClient::requiresFullscreenForVideoPlayback() returns true,
35 all other control buttons for the video element are hidden, except
36 a big centralized play button.
38 No new tests because no client implements requiresFullscreenForVideoPlayback yet.
41 * css/mediaControlsQtFullscreen.css: Added.
43 (audio::-webkit-media-controls-panel):
44 (video::-webkit-media-controls-panel):
45 (video:-webkit-full-page-media::-webkit-media-controls-panel):
46 (audio::-webkit-media-controls-mute-button):
47 (video::-webkit-media-controls-mute-button):
48 (audio::-webkit-media-controls-play-button):
49 (video::-webkit-media-controls-play-button):
50 (audio::-webkit-media-controls-timeline-container):
51 (video::-webkit-media-controls-timeline-container):
52 (audio::-webkit-media-controls-current-time-display):
53 (video::-webkit-media-controls-current-time-display):
54 (audio::-webkit-media-controls-time-remaining-display, video::-webkit-media-controls-time-remaining-display):
55 (audio::-webkit-media-controls-timeline):
56 (video::-webkit-media-controls-timeline):
57 (audio::-webkit-media-controls-volume-slider-container):
58 (video::-webkit-media-controls-volume-slider-container):
59 (audio::-webkit-media-controls-volume-slider):
60 (video::-webkit-media-controls-volume-slider):
61 (audio::-webkit-media-controls-seek-back-button, video::-webkit-media-controls-seek-back-button):
62 (audio::-webkit-media-controls-seek-forward-button, video::-webkit-media-controls-seek-forward-button):
63 (audio::-webkit-media-controls-fullscreen-button):
64 (video::-webkit-media-controls-fullscreen-button):
65 (audio::-webkit-media-controls-rewind-button, video::-webkit-media-controls-rewind-button):
66 (audio::-webkit-media-controls-return-to-realtime-button, video::-webkit-media-controls-return-to-realtime-button):
67 (audio::-webkit-media-controls-toggle-closed-captions-button, video::-webkit-media-controls-toggle-closed-captions-button):
68 * platform/qt/RenderThemeQt.cpp:
69 (WebCore::RenderThemeQt::extraMediaControlsStyleSheet):
71 2011-01-13 Carlos Garcia Campos <cgarcia@igalia.com>
73 Reviewed by Xan Lopez.
75 [GTK] Paint toggle buttons inconsistent when the object state is indeterminate
76 https://bugs.webkit.org/show_bug.cgi?id=52361
78 Check whether the object state is indeterminate to set the flag
79 GTK_STATE_FLAG_INCONSISTENT before rendering check and radio
82 * platform/gtk/RenderThemeGtk3.cpp:
83 (WebCore::paintToggle):
85 2011-01-13 Yi Shen <yi.4.shen@nokia.com>
87 Reviewed by Simon Hausmann.
89 [Qt] Extend the Platform Plugin to support full screen video handler
90 https://bugs.webkit.org/show_bug.cgi?id=51249
92 Make MediaPlayerPrivateQt support a fullscreen player.
94 No new tests because LayoutTests/media/media-fullscreen-inline.html already exists.
95 However, this test failed for Qt (QtMediaPlayer) due to durationchange event getting fired twice.
96 So, still skip it for Qt.
99 * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
100 (WebCore::MediaPlayerPrivateQt::MediaPlayerPrivateQt):
101 (WebCore::MediaPlayerPrivateQt::removeVideoItem):
102 (WebCore::MediaPlayerPrivateQt::restoreVideoItem):
103 * platform/graphics/qt/MediaPlayerPrivateQt.h:
104 (WebCore::MediaPlayerPrivateQt::supportsFullscreen):
105 (WebCore::MediaPlayerPrivateQt::mediaPlayer):
107 2011-01-13 Dan Bernstein <mitz@apple.com>
109 Reviewed by Dave Hyatt.
111 <rdar://problem/8858548> Disable inheritance of text emphasis marks to ruby text
112 https://bugs.webkit.org/show_bug.cgi?id=52359
114 Test: fast/ruby/text-emphasis.html
119 2011-01-13 Csaba Osztrogonác <ossy@webkit.org>
121 Rubber-stamped by David Levin.
123 Trivial fix after r75682.
125 * loader/FrameLoader.cpp: Remove accidentally committed debug code.
126 (WebCore::FrameLoader::shouldClose):
128 2011-01-12 Ryosuke Niwa <rniwa@webkit.org>
130 Reviewed by Eric Seidel.
132 REGRESSION(r69831): focus() in onkeypress discards input (affects chaseonline.chase.com)
133 https://bugs.webkit.org/show_bug.cgi?id=52241
135 The bug was caused by RenderTextControl::selection's creating a Range with m_insertText
136 which is a shadow DOM div as both start and end containers. Fixed the bug by traversing
137 through the descendents of m_innerText and using the right start and end containers to
140 Test: fast/forms/focus-change-on-keypress.html
142 * rendering/RenderTextControl.cpp:
143 (WebCore::setContainerAndOffsetForRange): Added; a helper function.
144 (WebCore::RenderTextControl::selection): See above.
146 2011-01-12 Kenichi Ishibashi <bashi@google.com>
148 Reviewed by Kent Tamura.
150 M_formElementsWithFormAttribute not cleared when FormAssociatedElement is inserted with a null m_form and then removed.
151 https://bugs.webkit.org/show_bug.cgi?id=51905
153 Calls unregisterFormElementWithFormAttribute() when 'form' attribute
156 Tests: fast/forms/form-associated-element-crash.html
157 fast/forms/form-associated-element-crash2.html
159 * html/FormAssociatedElement.cpp:
160 (WebCore::FormAssociatedElement::formAttributeChanged):
162 2011-01-12 Kenichi Ishibashi <bashi@google.com>
164 Reviewed by Kent Tamura.
166 M_formElementsWithFormAttribute not cleared when Node is moved to another document.
167 https://bugs.webkit.org/show_bug.cgi?id=51418
169 Calls unregisterFormElementWithFormAttribute() when form associated elements
170 are moved to another document.
172 Test: fast/forms/change-form-element-document-crash.html
174 * html/FormAssociatedElement.cpp:
175 (WebCore::FormAssociatedElement::willMoveToNewOwnerDocument): Added.
176 * html/FormAssociatedElement.h: Added willMoveToNewOwnerDocument().
177 * html/HTMLFormControlElement.cpp:
178 (WebCore::HTMLFormControlElement::willMoveToNewOwnerDocument): Added.
179 * html/HTMLFormControlElement.h: Added willMoveToNewOwnerDocument().
180 * html/HTMLObjectElement.cpp:
181 (WebCore::HTMLObjectElement::willMoveToNewOwnerDocument): Added.
182 * html/HTMLObjectElement.h: Added willMoveToNewOwnerDocument().
183 * html/HTMLPlugInImageElement.h: Moves willMoveToNewOwnerDocument() to protected.
185 2011-01-12 Ryosuke Niwa <rniwa@webkit.org>
187 Reviewed by Eric Seidel.
189 Stop instantiating legacy editing positions in ApplyBlockElementCommand and ApplyStyleCommand
190 https://bugs.webkit.org/show_bug.cgi?id=52250
192 Removed instantiation of legacy editing positions.
193 Calls to Position::Position are replaced by calls to Position's convenience functions.
195 Also added firstPositionInOrBeforeNode and lastPositionInOrAfterNode,
196 which are functions that return firstPositionInNode and lastPositionInNode respectively
197 when the specified node can have children for editing purpose and return positionBeforeNode
198 and positionAfterNode respectively otherwise. They can be used to guarantee that we never
199 create a bogus position like [img, 0] or [br, 0].
201 No tests are added since this is a cleanup.
203 * editing/ApplyBlockElementCommand.cpp:
204 (WebCore::ApplyBlockElementCommand::formatSelection):
205 * editing/ApplyStyleCommand.cpp:
206 (WebCore::ApplyStyleCommand::applyBlockStyle):
207 (WebCore::ApplyStyleCommand::fixRangeAndApplyInlineStyle):
208 (WebCore::ApplyStyleCommand::highestAncestorWithConflictingInlineStyle):
209 (WebCore::ApplyStyleCommand::removeInlineStyle):
210 (WebCore::ApplyStyleCommand::nodeFullySelected):
211 (WebCore::ApplyStyleCommand::nodeFullyUnselected):
212 (WebCore::ApplyStyleCommand::splitTextAtStart):
213 (WebCore::ApplyStyleCommand::splitTextAtEnd):
214 (WebCore::ApplyStyleCommand::splitTextElementAtStart):
215 (WebCore::ApplyStyleCommand::splitTextElementAtEnd):
216 (WebCore::ApplyStyleCommand::isValidCaretPositionInTextNode):
217 (WebCore::ApplyStyleCommand::mergeStartWithPreviousIfIdentical):
218 (WebCore::ApplyStyleCommand::mergeEndWithNextIfIdentical):
219 (WebCore::ApplyStyleCommand::computedFontSize):
220 (WebCore::ApplyStyleCommand::joinChildTextNodes):
221 * editing/ApplyStyleCommand.h:
222 * editing/htmlediting.h:
223 (WebCore::firstPositionInOrBeforeNode): Added.
224 (WebCore::lastPositionInOrAfterNode): Added.
226 2011-01-12 Sam Weinig <sam@webkit.org>
230 * platform/mac/WheelEventMac.mm:
231 (WebCore::phaseForEvent):
233 2011-01-12 Sam Weinig <sam@webkit.org>
237 * platform/mac/WheelEventMac.mm:
238 (WebCore::phaseForEvent):
240 2011-01-12 Adam Barth <abarth@webkit.org>
242 Reviewed by Darin Adler.
244 Remove premature optimization from SchemeRegistry
245 https://bugs.webkit.org/show_bug.cgi?id=52283
247 As far as I can tell, this optimization isn't necessary. I'm slightly
248 unsure which benchmarks to run to demonstrate this numerically, but
249 none of the benchmarks Chromium tracks were affected by adding a
250 similar check for "display-isolated" schemes.
252 * platform/SchemeRegistry.cpp:
253 (WebCore::SchemeRegistry::shouldTreatURLSchemeAsLocal):
255 2011-01-12 Beth Dakin <bdakin@apple.com>
257 Reviewed by Anders Carlsson.
259 Add-on for https://bugs.webkit.org/show_bug.cgi?id=52309
260 Expose fixed layout through WebKit SPI
262 <rdar://problem/8844464>
264 And now with getters!
267 2011-01-12 Sam Weinig <sam@webkit.org>
269 Reviewed by Anders Carlsson.
271 https://bugs.webkit.org/show_bug.cgi?id=52337
272 PlatformWheelEvent should know about the scroll phase on the Mac
274 Add a phase parameter on Mac PlatformWheelEvents.
276 * platform/PlatformWheelEvent.h:
277 (WebCore::PlatformWheelEvent::PlatformWheelEvent):
278 (WebCore::PlatformWheelEvent::phase):
279 * platform/mac/WheelEventMac.mm:
280 (WebCore::phaseForEvent):
281 (WebCore::PlatformWheelEvent::PlatformWheelEvent):
283 2011-01-12 Chris Marrin <cmarrin@apple.com>
287 A couple of lines of the patch for https://bugs.webkit.org/show_bug.cgi?id=52321
290 * platform/graphics/ca/GraphicsLayerCA.cpp:
291 (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers):
293 2011-01-12 Chris Marrin <cmarrin@apple.com>
297 Getting rid of an assert that was causing build failures that turns out not to be needed.
299 * rendering/RenderLayer.cpp:
300 (WebCore::RenderLayer::paintsWithTransform):
302 2011-01-12 Chris Marrin <cmarrin@apple.com>
308 * rendering/RenderLayer.cpp:
309 (WebCore::RenderLayer::paintsWithTransform):
311 2011-01-12 Chris Marrin <cmarrin@apple.com>
315 Fix for Gtk and Windows builds
318 (WebCore::Frame::scalePage):
320 * platform/graphics/ca/win/PlatformCALayerWin.cpp:
321 (PlatformCALayer::contentsScale):
322 (PlatformCALayer::setContentsScale):
324 2011-01-12 Chris Marrin <cmarrin@apple.com>
328 Fix for the Windows build
330 * platform/graphics/ca/win/PlatformCALayerWin.cpp:
334 2011-01-12 Chris Marrin <cmarrin@apple.com>
340 * platform/graphics/ca/GraphicsLayerCA.cpp:
341 (WebCore::GraphicsLayerCA::clampedContentsScaleForScale):
342 * platform/graphics/ca/mac/PlatformCALayerMac.mm:
343 (PlatformCALayer::setContentsScale):
345 2011-01-11 Matthew Delaney <mdelaney@apple.com>
347 Reviewed by Simon Fraser.
349 Max area bound needed in creation of IOSurface in ImageBufferCG.cpp
350 https://bugs.webkit.org/show_bug.cgi?id=52172
352 Tests: fast/canvas/canvas-large-dimensions.html
354 * platform/graphics/cg/ImageBufferCG.cpp:
355 (WebCore::ImageBuffer::ImageBuffer):
357 2011-01-12 Daniel Bates <dbates@rim.com>
358 And Benjamin C Meyer <bmeyer@rim.com>
360 Build fix when building with Inspector disabled
361 https://bugs.webkit.org/show_bug.cgi?id=52313
363 After changeset 75604 <http://trac.webkit.org/changeset/75604> it's not
364 possible to build when the Inspector is disabled.
366 * inspector/InspectorInstrumentation.h:
367 (WebCore::InspectorInstrumentation::updateApplicationCacheStatus): Fix build breakage when building
368 with Inspector disabled and Offline Web Applications enabled by moving macro guard condition
369 ENABLE(INSPECTOR) && ENABLE(OFFLINE_WEB_APPLICATIONS) into function body. This makes us also
370 consistent with the form we use for InspectorInstrumentation::networkStateChanged() and other
371 InspectorInstrumentation functions.
372 * loader/appcache/ApplicationCacheGroup.cpp:
373 (WebCore::ApplicationCacheGroup::didReceiveData): Fix build breakage when building with Inspector
374 disabled by adding ENABLE(INSPECTOR) guard around code that references the instance variable
375 ApplicationCacheGroup::m_currentResourceIdentifier as this variable only exists when building
377 (WebCore::ApplicationCacheGroup::didFinishLoading): Ditto.
378 (WebCore::ApplicationCacheGroup::didFail): Ditto.
380 2011-01-12 Chris Marrin <cmarrin@apple.com>
384 Fix a build issue from http://trac.webkit.org/changeset/75639.
386 * platform/graphics/GraphicsLayer.h:
387 (WebCore::GraphicsLayer::contentsScale):
388 (WebCore::GraphicsLayer::setContentsScale):
390 2011-01-12 Chris Marrin <cmarrin@apple.com>
392 Reviewed by Kevin Decker.
394 Pages with accelerated layers lose subpixel-AA and become blurry when a scale factor is applied
395 rdar://problem/8824974
397 This prevents the rootLayer (with the WebKit rendered content) from going becoming
398 a tiled layer when zoomed, and when there is other layered content on the page.
399 This speeds up zooming a lot and avoids some buggy behavior in CA with a very large
402 * rendering/RenderLayer.cpp:
403 (WebCore::RenderLayer::paintsWithTransform):
404 * rendering/RenderLayer.h:
405 * rendering/RenderLayerBacking.cpp:
406 (WebCore::RenderLayerBacking::paintingGoesToWindow):
408 2011-01-12 Chris Marrin <cmarrin@apple.com>
410 Reviewed by Simon Fraser.
412 Pages with accelerated layers lose subpixel-AA and become blurry when a scale factor is applied
413 rdar://problem/8824974
415 When scaled, WebKit renders the page content at the scaled up size, so there are no
416 scaling artifacts. But content drawn into a layer's backing store does not scale up.
417 This is made worse by the fact that the root page contents become layered when there
418 are other accelerated compositing layers present (video, plugins, etc.).
420 Plumb scaling factor from Frame::scalePage() down into all layers with content. It
421 eventually calls CALayer::setContentsScale which renders to a backing store whose dimensions
422 are scaled, causing them to render larger and appear pixel perfect at the scaled
426 (WebCore::Frame::updateContentsScale):
427 (WebCore::Frame::scalePage):
429 * platform/graphics/GraphicsLayer.h:
430 * platform/graphics/ca/GraphicsLayerCA.cpp:
431 (WebCore::GraphicsLayerCA::setContentsScale):
432 (WebCore::GraphicsLayerCA::clampedContentsScaleForScale):
433 * platform/graphics/ca/GraphicsLayerCA.h:
434 (WebCore::GraphicsLayerCA::contentsScale):
435 * platform/graphics/ca/PlatformCALayer.h:
436 * platform/graphics/ca/mac/PlatformCALayerMac.mm:
437 (PlatformCALayer::contentsScale):
438 (PlatformCALayer::setContentsScale):
439 * rendering/RenderLayer.cpp:
440 (WebCore::RenderLayer::updateContentsScale):
441 * rendering/RenderLayer.h:
442 * rendering/RenderLayerBacking.cpp:
443 (WebCore::RenderLayerBacking::createGraphicsLayer):
444 (WebCore::RenderLayerBacking::updateForegroundLayer):
445 (WebCore::RenderLayerBacking::updateMaskLayer):
446 (WebCore::RenderLayerBacking::updateContentsScale):
447 * rendering/RenderLayerBacking.h:
448 * rendering/RenderLayerCompositor.cpp:
449 (WebCore::RenderLayerCompositor::updateContentsScale):
450 * rendering/RenderLayerCompositor.h:
452 2011-01-12 Stephen White <senorblanco@chromium.org>
454 Reviewed by James Robinson.
456 Fix DrawingBuffer issues for depth/stencil, extensions, etc.
457 https://bugs.webkit.org/show_bug.cgi?id=52310
459 1) GL_TEXTURE is not a valid argument to glFramebufferTexture2D()
460 (should be GL_TEXTURE_2D).
461 2) Support for the multisampling extension was being checked after
462 the DrawingBuffer constructor was called, which calls multisample()
463 to check for the extension.
464 3) If depth or stencil is set, the corresponding framebuffers must
465 be created in the DrawingBuffer constructor.
466 4) GL_DEPTH_STENCIL is not a valid framebuffer internal type in
467 GLES2. Must use GL_OES_DEPTH24_STENCIL8, and check for the
468 OES_packed_depth_stencil extension.
470 * platform/graphics/chromium/DrawingBufferChromium.cpp:
471 (WebCore::DrawingBuffer::DrawingBuffer):
472 Record the extension support in the constructor. Create all the
473 secondary drawing buffers (for multisampling, depth/stencil).
474 * platform/graphics/gpu/DrawingBuffer.cpp:
475 (WebCore::DrawingBuffer::create):
476 Check for the extensions before calling the DrawingBuffer constructor.
477 (WebCore::DrawingBuffer::createSecondaryBuffers):
478 Refactor creation of the secondary buffers from DrawingBufferMac.mm to
480 (WebCore::DrawingBuffer::reset):
481 Use DEPTH24_STENCIL8 format, not DEPTH_STENCIL. Use
482 DEPTH_COMPONENT16, not DEPTH_COMPONENT.
483 Use GL_TEXTURE_2D, not GL_TEXTURE (for glFramebufferTexture2D).
484 * platform/graphics/gpu/DrawingBuffer.h:
485 Refactor createSecondaryBuffers(). Add extension support arguments to
486 constructor. Add support for packed_depth_stencil extension.
487 * platform/graphics/gpu/mac/DrawingBufferMac.mm:
488 (WebCore::DrawingBuffer::DrawingBuffer):
489 Record extension support in constructor. Refactor out creation of
492 2011-01-12 Beth Dakin <bdakin@apple.com>
494 Reviewed by Anders Carlsson.
496 Fix for https://bugs.webkit.org/show_bug.cgi?id=52309 Expose
497 fixed layout through WebKit SPI
499 <rdar://problem/8844464>
501 Export symbols for ScrollView::setUseFixedLayout() and
502 ScrollView::setFixedLayoutSize()
505 2011-01-12 Robert Hogan <robert@webkit.org>
507 Reviewed by Kenneth Rohde Christiansen.
509 [Qt] Search input field doesn't have cancel button
511 Add a cancel button to the search field and make it customizable
512 by the client. For now, use the close dialog button associated
513 with the application's style as the default.
515 Unskip a bunch of search field related tests that pass now:
517 fast/forms/search-cancel-button-mouseup.html
518 fast/forms/search-rtl.html
519 fast/forms/search-abs-pos-cancel-button.html
520 fast/forms/search-styled.html
521 fast/forms/search-transformed.html
522 fast/forms/search-zoomed.html
523 fast/forms/search-cancel-button-style-sharing.html
524 fast/forms/search-display-none-cancel-button.html
525 fast/forms/search-placeholder-value-changed.html
526 fast/repaint/search-field-cancel.html
527 fast/forms/search-cancel-button-events.html
529 https://bugs.webkit.org/show_bug.cgi?id=42887
531 * platform/graphics/qt/ImageQt.cpp:
532 (loadResourcePixmap):
533 * platform/qt/RenderThemeQt.cpp:
534 (WebCore::RenderThemeQt::isControlStyled):
535 (WebCore::RenderThemeQt::computeSizeBasedOnStyle):
536 (WebCore::RenderThemeQt::paintSearchField):
537 (WebCore::RenderThemeQt::adjustSearchFieldStyle):
538 (WebCore::RenderThemeQt::adjustSearchFieldCancelButtonStyle):
539 (WebCore::RenderThemeQt::convertToPaintingRect):
540 (WebCore::RenderThemeQt::paintSearchFieldCancelButton):
541 * platform/qt/RenderThemeQt.h:
543 2011-01-12 Andrey Kosyakov <caseq@chromium.org>
545 Reviewed by Pavel Feldman.
547 Web Inspector: cookie table is multiplied after repeated switching to cookies tab in network item view
548 Only create cookiesTable is it hasn't been done yet.
549 https://bugs.webkit.org/show_bug.cgi?id=52303
551 * inspector/front-end/ResourceCookiesView.js:
552 (WebInspector.ResourceCookiesView.prototype.show):
554 2011-01-12 Koan-Sin Tan <koansin.tan@gmail.com>
556 Reviewed by Martin Robinson.
558 [Gtk] WebKitGtk+ doesn't build on Mac OS X 10.6
559 https://bugs.webkit.org/show_bug.cgi?id=50867
561 * config.h: Don't disallow ctype for (OS(DARWIN) && PLATFORM(GTK))
562 Many GTK+ related files include <libintl.h> or <glib/gi18n-lib.h>.
563 On Mac, <libintl.h> includes <xlocale.h>. <xclocale.h> includes
564 <xlocale/_ctype.h>, which uses isacii().
566 (WebCore::createCanonicalUUIDString): For OS(DARWIN) && !PLATFORM(CF)
567 use the Chromium Linux UUID generation.
569 2011-01-12 Simon Fraser <simon.fraser@apple.com>
571 Reviewed by Eric Seidel.
573 [CSS Gradients] One color stop should not paint anything for linear-gradient
574 https://bugs.webkit.org/show_bug.cgi?id=52259
576 Share color stop parsing code between linear and radial gradients.
577 Consider the gradient invalid if it has less than two color stops.
580 (WebCore::CSSParser::parseLinearGradient):
581 (WebCore::CSSParser::parseRadialGradient):
582 (WebCore::CSSParser::parseGradientColorStops):
585 2011-01-12 Mikhail Naganov <mnaganov@chromium.org>
587 Reviewed by Pavel Feldman.
589 Fix inconsistencies in Inspector strings found by the new check-inspector-strings script.
591 https://bugs.webkit.org/show_bug.cgi?id=52295
593 * English.lproj/localizedStrings.js:
594 * inspector/front-end/BreakpointsSidebarPane.js:
595 (WebInspector.EventListenerBreakpointsSidebarPane):
596 * inspector/front-end/ProfilesPanel.js:
597 (WebInspector.ProfilesPanel.prototype.setRecordingProfile):
598 * inspector/front-end/Resource.js:
599 (WebInspector.Resource.Type.toString):
600 * inspector/front-end/ResourcesPanel.js:
601 (WebInspector.ResourceRevisionTreeElement):
602 * inspector/front-end/utilities.js:
605 2011-01-12 Yury Semikhatsky <yurys@chromium.org>
607 Unreviewed. Fix WML compilation on Mac.
609 * wml/WMLInputElement.cpp:
610 (WebCore::WMLInputElement::setValue):
611 (WebCore::WMLInputElement::setValueForUser):
612 (WebCore::WMLInputElement::initialize):
613 (WebCore::WMLInputElement::validateInputMask):
614 * wml/WMLSelectElement.cpp:
615 (WebCore::WMLSelectElement::listBoxSelectItem):
617 2011-01-12 Justin Schuh <jschuh@chromium.org>
619 Unreviewed build fix for debug strict compiles.
621 Use fprintf for debug statements instead of fwrite, which caused compile failures
622 in debug strict mode because of failure to check the fwrite return value.
626 * rendering/CounterNode.cpp:
627 (WebCore::showTreeAndMark):
629 2010-12-29 Yury Semikhatsky <yurys@chromium.org>
631 Reviewed by Pavel Feldman.
633 inspector/timeline-network-resource.html fails when run twice
634 https://bugs.webkit.org/show_bug.cgi?id=37394
636 Send didReceiveResponse notification to the timeline agent from ResourceLoadNotifier
637 instead of ResourceLoader::didReceiveResponse to cover the cases when resources
638 are loaded from memory cache.
640 Network notifications are now sent to InspectorInstrumentation which dispatches
641 them to interested agents and InspectorController.
643 * inspector/Inspector.idl:
644 * inspector/InspectorApplicationCacheAgent.cpp:
645 (WebCore::InspectorApplicationCacheAgent::didReceiveManifestResponse):
646 * inspector/InspectorController.cpp:
647 (WebCore::InspectorController::InspectorController):
648 (WebCore::InspectorController::didCommitLoad):
649 (WebCore::InspectorController::willSendRequest):
650 (WebCore::InspectorController::didReceiveResponse):
651 (WebCore::InspectorController::didFailLoading):
652 (WebCore::InspectorController::resourceRetrievedByXMLHttpRequest):
653 * inspector/InspectorController.h:
654 * inspector/InspectorInstrumentation.cpp:
655 (WebCore::InspectorInstrumentation::identifierForInitialRequestImpl):
656 (WebCore::InspectorInstrumentation::willSendRequestImpl):
657 (WebCore::InspectorInstrumentation::markResourceAsCachedImpl):
658 (WebCore::InspectorInstrumentation::didLoadResourceFromMemoryCacheImpl):
659 (WebCore::InspectorInstrumentation::willReceiveResourceResponseImpl):
660 (WebCore::InspectorInstrumentation::didReceiveContentLengthImpl):
661 (WebCore::InspectorInstrumentation::didFinishLoadingImpl):
662 (WebCore::InspectorInstrumentation::didFailLoadingImpl):
663 (WebCore::InspectorInstrumentation::resourceRetrievedByXMLHttpRequestImpl):
664 (WebCore::InspectorInstrumentation::scriptImportedImpl):
665 (WebCore::InspectorInstrumentation::retrieveResourceAgent):
666 * inspector/InspectorInstrumentation.h:
667 (WebCore::InspectorInstrumentation::identifierForInitialRequest):
668 (WebCore::InspectorInstrumentation::willSendRequest):
669 (WebCore::InspectorInstrumentation::markResourceAsCached):
670 (WebCore::InspectorInstrumentation::didLoadResourceFromMemoryCache):
671 (WebCore::InspectorInstrumentation::willReceiveResourceResponse):
672 (WebCore::InspectorInstrumentation::didReceiveContentLength):
673 (WebCore::InspectorInstrumentation::didFinishLoading):
674 (WebCore::InspectorInstrumentation::didFailLoading):
675 (WebCore::InspectorInstrumentation::resourceRetrievedByXMLHttpRequest):
676 (WebCore::InspectorInstrumentation::scriptImported):
677 * inspector/InspectorResourceAgent.cpp:
678 (WebCore::InspectorResourceAgent::identifierForInitialRequest):
679 * inspector/InspectorResourceAgent.h:
680 * inspector/InspectorTimelineAgent.cpp:
681 (WebCore::InspectorTimelineAgent::willSendResourceRequest):
682 * inspector/InspectorTimelineAgent.h:
683 * inspector/TimelineRecordFactory.cpp:
684 (WebCore::TimelineRecordFactory::createResourceSendRequestData):
685 * inspector/TimelineRecordFactory.h:
686 * inspector/front-end/NetworkManager.js:
687 (WebInspector.NetworkManager.prototype.identifierForInitialRequest):
688 * inspector/front-end/TimelinePanel.js:
689 (WebInspector.TimelinePanel.prototype.addRecordToTimeline):
690 * loader/FrameLoader.cpp:
691 (WebCore::FrameLoader::loadedResourceFromMemoryCache):
692 * loader/ResourceLoadNotifier.cpp:
693 (WebCore::ResourceLoadNotifier::didReceiveResponse):
694 (WebCore::ResourceLoadNotifier::didFailToLoad):
695 (WebCore::ResourceLoadNotifier::assignIdentifierToInitialRequest):
696 (WebCore::ResourceLoadNotifier::dispatchWillSendRequest):
697 (WebCore::ResourceLoadNotifier::dispatchDidReceiveResponse):
698 (WebCore::ResourceLoadNotifier::dispatchDidReceiveContentLength):
699 (WebCore::ResourceLoadNotifier::dispatchDidFinishLoading):
700 (WebCore::ResourceLoadNotifier::sendRemainingDelegateMessages):
701 * loader/ResourceLoader.cpp:
702 (WebCore::ResourceLoader::didReceiveResponse):
703 * loader/appcache/ApplicationCacheGroup.cpp:
704 (WebCore::ApplicationCacheGroup::createResourceHandle):
705 (WebCore::ApplicationCacheGroup::didReceiveResponse):
706 (WebCore::ApplicationCacheGroup::didReceiveData):
707 (WebCore::ApplicationCacheGroup::didFinishLoading):
708 (WebCore::ApplicationCacheGroup::didFail):
709 * loader/appcache/ApplicationCacheGroup.h:
710 * workers/DefaultSharedWorkerRepository.cpp:
711 (WebCore::SharedWorkerScriptLoader::notifyFinished):
712 * workers/Worker.cpp:
713 (WebCore::Worker::notifyFinished):
714 * workers/WorkerContext.cpp:
715 (WebCore::WorkerContext::importScripts):
716 * xml/XMLHttpRequest.cpp:
717 (WebCore::XMLHttpRequest::didFinishLoading):
719 2011-01-12 Pavel Podivilov <podivilov@chromium.org>
721 Reviewed by Pavel Feldman.
723 Web Inspector: do not replace all tabs with spaces when editing script source
724 https://bugs.webkit.org/show_bug.cgi?id=52291
726 * inspector/front-end/SourceFrame.js:
727 (WebInspector.SourceFrame.prototype.setContent):
728 (WebInspector.SourceFrame.prototype._editLine):
730 2011-01-11 Jeremy Orlow <jorlow@chromium.org>
732 Reviewed by Nate Chapin.
734 Enforce READ_ONLY transactions in IndexedDB
735 https://bugs.webkit.org/show_bug.cgi?id=52229
737 Add READ_ONLY_ERR and return it whenever delete or put
738 are called. Note that IDBCursor's delete and update
739 are simply aliases for delete/put, which is why no
740 extra code is required to handle those cases.
742 Test: storage/indexeddb/transaction-read-only.html
744 * dom/ExceptionCode.cpp:
745 * storage/IDBCursorBackendImpl.cpp:
746 (WebCore::IDBCursorBackendImpl::deleteFunction):
747 * storage/IDBDatabase.idl:
748 * storage/IDBDatabaseException.h:
749 * storage/IDBDatabaseException.idl:
750 * storage/IDBObjectStoreBackendImpl.cpp:
751 (WebCore::IDBObjectStoreBackendImpl::put):
752 (WebCore::IDBObjectStoreBackendImpl::deleteFunction):
753 (WebCore::IDBObjectStoreBackendImpl::deleteIndex):
755 2011-01-11 Philippe Normand <pnormand@igalia.com>
757 Reviewed by Eric Seidel.
759 [GTK] minimal build breaks in RenderThemeGtk3
760 https://bugs.webkit.org/show_bug.cgi?id=52202
762 * platform/gtk/RenderThemeGtk3.cpp: Added VIDEO guards around
765 2011-01-11 Philippe Normand <pnormand@igalia.com>
767 Reviewed by Eric Carlson.
769 [GStreamer] PlatformVideoWindowMac implementation
770 https://bugs.webkit.org/show_bug.cgi?id=50770
772 This new implementation will be used on Mac OS to display the
773 fullscreen video window with the GStreamer-based media player.
775 * platform/graphics/gstreamer/GStreamerGWorld.cpp:
776 (WebCore::gstGWorldSyncMessageCallback):
777 * platform/graphics/gstreamer/PlatformVideoWindow.h:
778 (WebCore::PlatformVideoWindow::window):
779 * platform/graphics/gstreamer/PlatformVideoWindowMac.mm:
780 (PlatformVideoWindow::PlatformVideoWindow):
781 (PlatformVideoWindow::~PlatformVideoWindow):
782 (PlatformVideoWindow::prepareForOverlay):
784 2011-01-11 Simon Fraser <simon.fraser@apple.com>
786 Reviewed by Dan Bernstein.
788 Webkit crashes when a gradient is applied using the first-line pseudo element
789 https://bugs.webkit.org/show_bug.cgi?id=52225
791 When a pseudostyle references images, we fail to register/unregister
792 the relevant RenderObjects as clients of the image in the style.
793 For gradients, this caused a crash.
795 This patch fixes the crash by returning a null gradient image in this
798 Test: fast/gradients/gradient-on-pseudoelement-crash.html
800 * css/CSSGradientValue.cpp:
801 (WebCore::CSSGradientValue::image):
803 2011-01-11 Andy Estes <aestes@apple.com>
805 Reviewed by Darin Adler.
807 REGRESSION (r71562): servePendingRequests() no longer called when
808 resources are done loading.
809 https://bugs.webkit.org/show_bug.cgi?id=52264
810 <rdar://problem/8767429>
812 In r71562, servePendingRequests() is no longer called in Loader's
813 didFinishLoading(), didFail() and didReceiveResponse() methods. Since
814 r71562 was intended only as a refactoring, these calls should be
815 restored. At least one WebKit-based Mac OS X application relies on this
816 for correct behavior.
818 * loader/cache/CachedResourceLoader.cpp:
819 (WebCore::CachedResourceLoader::loadDone): Call
820 resourceLoadScheduler()->servePendingRequests().
822 2011-01-11 Patrick Gansterer <paroga@webkit.org>
824 Reviewed by Eric Seidel.
826 Add Document::setContent()
827 https://bugs.webkit.org/show_bug.cgi?id=52085
829 Add a method to Document to set the whole content at once.
830 This removes the hack of the insert method in the xml parser
831 and is a predecessor to feed the xml parser with raw data.
834 (WebCore::Document::setContent):
836 * dom/XMLDocumentParser.cpp:
837 (WebCore::XMLDocumentParser::insert): Added ASSERT_NOT_REACHED().
838 * loader/cache/CachedFont.cpp:
839 (WebCore::CachedFont::ensureSVGFontData): Use setContent.
841 (WebCore::DOMParser::parseFromString): Ditto.
842 * xml/XMLHttpRequest.cpp:
843 (WebCore::XMLHttpRequest::responseXML): Ditto.
844 * xml/XSLTProcessor.cpp:
845 (WebCore::XSLTProcessor::createDocumentFromSource): Ditto.
847 2011-01-11 Brent Fulgham <bfulgham@webkit.org>
849 Unreviewed build fix.
851 * platform/graphics/cairo/PathCairo.cpp:
852 (WebCore::Path::addArc): Switch to MathExtra's piFloat define,
853 rather than M_PI which is not always available.
855 2011-01-11 Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
857 Reviewed by Adam Barth.
859 Use plug-in DB for extensions to MIME type convertion
861 Plugins extension to MIME type conversion was not used in the
862 frameLoader. This was causing some fallback to be use which as the side
863 effect of loosing all the <OBJECT> parameters or <EMBED> attributes.
864 This patch ensure that we try to convert the extension to MIME type
865 using the plugin database beofre using this fallback.
867 Attribute lost with Flash plugin without mime type set
868 https://bugs.webkit.org/show_bug.cgi?id=50657
870 Test: plugins/no-mime-with-valid-extension.html
872 * loader/FrameLoader.cpp:
873 (WebCore::FrameLoader::defaultObjectContentType): Use PluginDatabase for MIME
875 2011-01-11 James Simonsen <simonjam@chromium.org>
877 Reviewed by Eric Seidel.
879 [Web Timing] Rename sslHandshakeStart to secureConnectionStart
880 https://bugs.webkit.org/show_bug.cgi?id=52239
882 * page/PerformanceTiming.cpp:
883 (WebCore::PerformanceTiming::secureConnectionStart):
884 * page/PerformanceTiming.h:
885 * page/PerformanceTiming.idl:
887 2011-01-11 Adam Barth <abarth@webkit.org>
889 Reviewed by Eric Seidel.
891 Introduce the notion of a "display-isolated" URL scheme for use by
893 https://bugs.webkit.org/show_bug.cgi?id=50182
895 This patch actually makes the display-isolated schemes display
896 isolated. The behavior should be the same as the previous iteration of
897 this patch, but re-organized a bit because reading the access white
900 * page/SecurityOrigin.cpp:
901 (WebCore::SecurityOrigin::isAccessToURLWhiteListed):
902 (WebCore::SecurityOrigin::canDisplay):
903 * page/SecurityOrigin.h:
904 * platform/SchemeRegistry.cpp:
905 * platform/SchemeRegistry.h:
907 2011-01-11 Mihai Parparita <mihaip@chromium.org>
909 Reviewed by Darin Fisher.
911 Scroll event should be fired asynchronously
912 https://bugs.webkit.org/show_bug.cgi?id=45631
914 Tests: fast/events/fire-scroll-event.html
915 fast/events/fire-scroll-event-element.html
916 fast/events/scroll-event-phase.html
918 Makes scroll events fire asynchronously to be in compliance with the
919 CSSOM View Module and consistent with Gecko, Opera and (to some degree)
922 Implemented via the EventQueue class added by r74062 (EventQueue now
923 has a convenience enqueueScrollEvent method).
925 * dom/EventQueue.cpp:
926 (WebCore::EventQueue::enqueueScrollEvent):
927 (WebCore::EventQueue::pendingEventTimerFired):
929 * page/EventHandler.cpp:
930 (WebCore::EventHandler::sendScrollEvent):
931 * rendering/RenderLayer.cpp:
932 (WebCore::RenderLayer::scrollToOffset):
933 * rendering/RenderListBox.cpp:
934 (WebCore::RenderListBox::valueChanged):
936 2011-01-11 Patrick Gansterer <paroga@webkit.org>
938 Unreviewed WinCE build fix for r75523.
940 * platform/wince/DragDataWinCE.cpp: Added missing include.
942 2011-01-11 Abhishek Arya <inferno@chromium.org>
944 Reviewed by Dimitri Glazkov.
946 RefPtr the FrameView to prevent scrollbar from getting deleted inside
948 https://bugs.webkit.org/show_bug.cgi?id=52238
950 Test: scrollbars/scrollable-iframe-remove-crash.html
952 * page/DOMWindow.cpp:
953 (WebCore::DOMWindow::scrollTo):
955 2011-01-08 Dimitri Glazkov <dglazkov@chromium.org>
957 Reviewed by David Hyatt.
959 Make pseudo-style resolution less hard-coded when used to select a shadow node
960 https://bugs.webkit.org/show_bug.cgi?id=46595
962 Essentially implements the plumbing for the XBL2 pseudo attribute:
963 http://dev.w3.org/2006/xbl2/#the-pseudo-attribute
965 Test: fast/css/unknown-pseudo-element-matching.html
967 * css/CSSGrammar.y: Changed to handle specifier_list structure with the
968 CSSParser::updateSpecifierWithElementName helper, added logic to
969 keep unknown pseudo-element selectors at the top of the selector chain,
970 so that we can easily check for them and grab them, and also because
971 they would either not match anything or act as a descendant selector
972 (descendant into a shadow DOM subtree that is), not a specifier.
974 (WebCore::CSSParser::updateSpecifiersWithElementName): Generalized/combined
975 the logic adding element name to selectors and added the special case
976 to handle unknown pseudo-element selectors.
977 * css/CSSParser.h: Added def.
978 * css/CSSSelector.cpp:
979 (WebCore::CSSSelector::pseudoId): Removed any mention of PseudoSliderThumb/SLIDER_THUMB.
980 (WebCore::nameToPseudoTypeMap): Ditto.
981 (WebCore::CSSSelector::extractPseudoType): Ditto.
982 * css/CSSSelector.h: Added a new ShadowDescendant relation type,
983 removed PseudoSliderThumb def.
984 (WebCore::CSSSelector::isUnknownPseudoElement): Added a helper method.
985 * css/CSSSelectorList.cpp:
986 (WebCore::SelectorHasUnknownPseudoElementFunctor::operator()): Added a functor
987 to check for an unknown pseudo-element in the list.
988 (WebCore::CSSSelectorList::hasUnknownPseudoElements): Added.
989 * css/CSSSelectorList.h: Added a def.
990 * css/CSSStyleSelector.cpp:
991 (WebCore::CSSRuleSet::getPseudoRules): Added accessor to pseudo-element hash.
992 (WebCore::CSSStyleSelector::matchRules): Added matching pseudo elements.
993 (WebCore::CSSStyleSelector::SelectorChecker::checkSelector): Added handling
994 of ShadowDescendant relation.
995 (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector): Enabled handling
996 of unknown pseudo-element selectors.
997 (WebCore::CSSRuleSet::addRule): Added populating unknown pseudo-element hash.
999 (input[type="range"]::-webkit-slider-thumb): Added previously-hard-coded
1002 (WebCore::Element::shadowPseudoId): Added new virtual method to allow
1003 elements to provide the value of pseudo-element selector they would match.
1005 (WebCore::Node::querySelector): Added checking for unknown pseudo-element selectors,
1006 so that we can throw a SYNTAX_ERR if found.
1007 (WebCore::Node::querySelectorAll): Ditto.
1008 * html/shadow/SliderThumbElement.h:
1009 (WebCore::SliderThumbElement::shadowPseudoId): Added to return "-webkit-slider-thumb";
1010 * rendering/RenderSlider.cpp:
1011 (WebCore::RenderSlider::createThumbStyle): Changed to use the new styleForElement logic.
1012 * rendering/style/RenderStyleConstants.h: Removed SLIDER_THUMB.
1014 2011-01-11 Dean Jackson <dino@apple.com>
1016 Reviewed by Simon Fraser.
1018 https://bugs.webkit.org/show_bug.cgi?id=52233
1020 WebKitCSSMatrix constructor should accept 'none'
1021 as a valid string parameter.
1023 * css/WebKitCSSMatrix.cpp:
1024 (WebCore::WebKitCSSMatrix::setMatrixValue):
1026 2011-01-11 James Robinson <jamesr@chromium.org>
1028 Reviewed by Dimitri Glazkov.
1030 Set all RenderBlocks as replaced when an inline display type is specified
1031 https://bugs.webkit.org/show_bug.cgi?id=50858
1033 When a RenderBlock is created for an element with a specified display:inline style,
1034 it should always be treated as inline-block. This situations often comes up for form
1035 controls. Previously, RenderBlock::styleWillChange set the replaced flag for display
1036 values of inline-block, inline-table, and inline-table and a number of subclasses of
1037 RenderBlock set the replaced flag in styleDidChange for a display:inline. However
1038 sometimes new subclasses would miss this step leading to bugs (such as with RenderDetails).
1039 This patch sets the replaced flag for all inline display types in RenderBlock::styleWillChange.
1041 Code cleanup only, no change in behavior so no new tests.
1043 * rendering/RenderBlock.cpp:
1044 (WebCore::RenderBlock::styleWillChange):
1045 * rendering/RenderButton.cpp:
1046 (WebCore::RenderButton::styleDidChange):
1047 * rendering/RenderFieldset.cpp:
1048 * rendering/RenderFieldset.h:
1049 * rendering/RenderFileUploadControl.cpp:
1050 (WebCore::RenderFileUploadControl::styleDidChange):
1051 * rendering/RenderListBox.cpp:
1052 * rendering/RenderListBox.h:
1053 * rendering/RenderMenuList.cpp:
1054 (WebCore::RenderMenuList::styleDidChange):
1055 * rendering/RenderSlider.cpp:
1056 (WebCore::RenderSlider::styleDidChange):
1057 * rendering/RenderTextControl.cpp:
1058 (WebCore::RenderTextControl::styleDidChange):
1060 2011-01-11 Dimitri Glazkov <dglazkov@chromium.org>
1062 Reviewed by Eric Seidel.
1064 REGRESSION(r71934) Can't type in search edit field on skin-one.com
1065 https://bugs.webkit.org/show_bug.cgi?id=52195
1067 Restored the original behavior, where the selectstart event is not
1068 dispatched when selection changes inside of the shadow DOM.
1071 (WebCore::determineDispatchBehavior): Moved EventDispatchBehavior-determining
1072 logic into a helper function, also added a check to keep selectstart
1073 events inside of the shadow DOM.
1074 (WebCore::Node::dispatchGenericEvent): Changed to use the helper function.
1076 2011-01-11 Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com>
1078 Reviewed by Eric Seidel.
1080 [Qt] Provide plugin coordinates to windowless plugins on Symbian.
1081 https://bugs.webkit.org/show_bug.cgi?id=52213
1083 * plugins/symbian/PluginViewSymbian.cpp:
1084 (WebCore::PluginView::setNPWindowIfNeeded):
1086 2011-01-10 Zhenyao Mo <zmo@google.com>
1088 Reviewed by Kenneth Russell.
1090 Need to consider UNPACK_ALIGNMENT in GraphicsContext3D::texImage2DResourceSafe
1091 https://bugs.webkit.org/show_bug.cgi?id=52068
1093 * html/canvas/WebGLRenderingContext.cpp:
1094 (WebCore::WebGLRenderingContext::copyTexImage2D): Use computeImageSizeInBytes.
1095 (WebCore::WebGLRenderingContext::copyTexSubImage2D): Ditto.
1096 (WebCore::WebGLRenderingContext::readPixels): Ditto, and fix a bug on generating the wrong error.
1097 (WebCore::WebGLRenderingContext::texImage2DBase): Ditto.
1098 (WebCore::WebGLRenderingContext::validateTexFuncData): Use computeImageSizeInBytes.
1099 * platform/graphics/GraphicsContext3D.cpp:
1100 (WebCore::GraphicsContext3D::texImage2DResourceSafe): Add a new parameter alignment.
1101 (WebCore::GraphicsContext3D::computeFormatAndTypeParameters): Add more supported format/type.
1102 (WebCore::GraphicsContext3D::computeImageSizeInBytes): Added.
1103 * platform/graphics/GraphicsContext3D.h:
1105 2011-01-10 Enrica Casucci <enrica@apple.com>
1107 Reviewed by Alexey Proskuryakov.
1109 Paste and drag and drop use different code paths to interact with the pasteboard.
1110 https://bugs.webkit.org/show_bug.cgi?id=52093
1111 The change consists in a refactoring of the code to have only one class that
1112 deals with the pasteboard on Mac.
1114 No new tests. A test is already available for this
1115 (editing/pasteboard/drag-image-to-contenteditable-in-iframe.html) but had incorrect results.
1118 * loader/EmptyClients.h: Added two Mac only methods to call into WebKit to use functionality
1119 that is in NSURLExtras.
1120 (WebCore::EmptyEditorClient::canonicalizeURL):
1121 (WebCore::EmptyEditorClient::canonicalizeURLString):
1122 * page/DragController.cpp:
1123 The following methods have been changed to pass a pointer to the Frame object
1124 to the DragData class.
1125 (WebCore::documentFragmentFromDragData):
1126 (WebCore::DragController::performDrag):
1127 (WebCore::DragController::dispatchTextInputEventFor):
1128 (WebCore::DragController::concludeEditDrag):
1129 * page/EditorClient.h: Added two Mac only methods to call into WebKit to use functionality
1130 that is in NSURLExtras.
1131 The following files have been modified to pass the Frame object to the DragData method calls.
1132 * page/chromium/DragControllerChromium.cpp:
1133 (WebCore::DragController::dragOperation):
1134 * page/gtk/DragControllerGtk.cpp:
1135 (WebCore::DragController::dragOperation):
1136 * page/mac/DragControllerMac.mm:
1137 (WebCore::DragController::dragOperation):
1138 * page/qt/DragControllerQt.cpp:
1139 (WebCore::DragController::dragOperation):
1140 * page/win/DragControllerWin.cpp:
1141 (WebCore::DragController::dragOperation):
1142 * platform/DragData.h: Removed Mac specific constructor and reference to PasteboardHelper class.
1143 * platform/Pasteboard.h: Added public constructor to create a Pasteboard object from an NSPasteboard.
1144 The following files were all modified to match the new parameters of the methods listed.
1145 * platform/android/DragDataAndroid.cpp:
1146 (WebCore::DragData::asPlainText):
1147 (WebCore::DragData::containsURL):
1148 (WebCore::DragData::asURL):
1149 (WebCore::DragData::asFragment):
1150 * platform/chromium/DragDataChromium.cpp:
1151 (WebCore::DragData::containsURL):
1152 (WebCore::DragData::asURL):
1153 (WebCore::DragData::asPlainText):
1154 (WebCore::DragData::containsCompatibleContent):
1155 (WebCore::DragData::asFragment):
1156 * platform/gtk/DragDataGtk.cpp:
1157 (WebCore::DragData::asPlainText):
1158 (WebCore::DragData::containsCompatibleContent):
1159 (WebCore::DragData::containsURL):
1160 (WebCore::DragData::asURL):
1161 (WebCore::DragData::asFragment):
1162 * platform/haiku/DragDataHaiku.cpp:
1163 (WebCore::DragData::asPlainText):
1164 (WebCore::DragData::containsURL):
1165 (WebCore::DragData::asURL):
1166 (WebCore::DragData::asFragment):
1167 * platform/mac/DragDataMac.mm:
1168 (WebCore::DragData::DragData):
1169 (WebCore::DragData::asPlainText):
1170 (WebCore::insertablePasteboardTypes):
1171 (WebCore::DragData::containsCompatibleContent):
1172 (WebCore::DragData::containsURL):
1173 (WebCore::DragData::asURL):
1174 (WebCore::DragData::asFragment):
1175 * platform/mac/PasteboardMac.mm:
1176 (WebCore::Pasteboard::getBestURL):
1177 (WebCore::Pasteboard::asURL):
1178 * platform/qt/DragDataQt.cpp:
1179 (WebCore::DragData::asPlainText):
1180 (WebCore::DragData::containsCompatibleContent):
1181 (WebCore::DragData::containsURL):
1182 (WebCore::DragData::asURL):
1183 (WebCore::DragData::asFragment):
1184 * platform/win/DragDataWin.cpp:
1185 (WebCore::DragData::containsURL):
1186 (WebCore::DragData::asURL):
1187 (WebCore::DragData::asPlainText):
1188 (WebCore::DragData::containsCompatibleContent):
1189 (WebCore::DragData::asFragment):
1190 * platform/wince/DragDataWinCE.cpp:
1191 (WebCore::DragData::containsURL):
1192 (WebCore::DragData::asURL):
1193 (WebCore::DragData::asPlainText):
1194 (WebCore::DragData::asFragment):
1195 * platform/wx/DragDataWx.cpp:
1196 (WebCore::DragData::asPlainText):
1197 (WebCore::DragData::containsURL):
1198 (WebCore::DragData::asURL):
1199 (WebCore::DragData::asFragment):
1201 2011-01-11 Abhishek Arya <inferno@chromium.org>
1203 Reviewed by Dimitri Glazkov.
1205 RefPtr text node in setOuterText since calling appendData
1206 on a text node can fire away dom event listener which might
1207 remove the text node from underneath.
1208 https://bugs.webkit.org/show_bug.cgi?id=52163
1210 Test: fast/dom/text-node-append-data-remove-crash.html
1212 * html/HTMLElement.cpp:
1213 (WebCore::HTMLElement::setOuterText):
1215 2011-01-11 Carlos Garcia Campos <cgarcia@igalia.com>
1217 Reviewed by Martin Robinson.
1219 [GTK] Add support for <meter> element
1220 https://bugs.webkit.org/show_bug.cgi?id=48713
1222 * GNUmakefile.am: Enable meter element.
1224 2011-01-11 Csaba Osztrogonác <ossy@webkit.org>
1226 Unreviewed buildfix.
1228 [Qt][V8] Add missing include for debug build.
1230 * loader/cache/CachedResourceLoader.cpp:
1232 2011-01-11 Pavel Feldman <pfeldman@chromium.org>
1234 Reviewed by Yury Semikhatsky.
1236 Web Inspector: redirects are lost from the network panel upon navigation.
1237 https://bugs.webkit.org/show_bug.cgi?id=52210
1239 * inspector/front-end/NetworkManager.js:
1240 (WebInspector.NetworkManager.prototype.didCommitLoadForFrame):
1242 2011-01-11 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
1244 Reviewed by Kenneth Rohde Christiansen.
1246 [Qt] Remove uses of QFuture since it isn't supported on all platforms.
1247 https://bugs.webkit.org/show_bug.cgi?id=51204
1249 * platform/network/qt/QtNAMThreadSafeProxy.cpp:
1250 (WebCore::QtNAMThreadSafeProxy::QtNAMThreadSafeProxy):
1251 (WebCore::QtNAMThreadSafeProxy::localCookiesForUrl):
1252 (WebCore::QtNAMThreadSafeProxy::localWillLoadFromCache):
1253 * platform/network/qt/QtNAMThreadSafeProxy.h:
1254 (WebCore::QtNAMThreadSafeProxy::cookiesForUrl):
1255 (WebCore::QtNAMThreadSafeProxy::willLoadFromCache):
1257 2011-01-11 Pavel Podivilov <podivilov@chromium.org>
1259 Reviewed by Pavel Feldman.
1261 Web Inspector: recreate script view after live edit.
1262 https://bugs.webkit.org/show_bug.cgi?id=51751
1264 * inspector/front-end/Script.js:
1265 (WebInspector.Script.prototype.set source):
1266 * inspector/front-end/ScriptView.js:
1267 (WebInspector.ScriptView):
1268 * inspector/front-end/ScriptsPanel.js:
1269 (WebInspector.ScriptsPanel.prototype.editScriptSource.mycallback):
1270 (WebInspector.ScriptsPanel.prototype.editScriptSource):
1271 (WebInspector.ScriptsPanel.prototype.viewRecreated):
1272 * inspector/front-end/SourceFrame.js:
1273 (WebInspector.SourceFrame.prototype._doEditLine):
1275 2011-01-11 Pavel Podivilov <podivilov@chromium.org>
1277 Reviewed by Pavel Feldman.
1279 Web Inspector: frameDetachedFromParent notification handler is missing in NetworkManager.
1280 https://bugs.webkit.org/show_bug.cgi?id=52205
1282 * inspector/front-end/NetworkManager.js:
1283 (WebInspector.NetworkManager.prototype.frameDetachedFromParent):
1285 2011-01-11 Alexander Pavlov <apavlov@chromium.org>
1287 Reviewed by Pavel Feldman.
1289 Web Inspector: "Audit present state" always disabled
1290 https://bugs.webkit.org/show_bug.cgi?id=52199
1292 Removed all traces of resource tracking checks, as we have it no more.
1294 * English.lproj/localizedStrings.js:
1295 * inspector/front-end/AuditLauncherView.js:
1296 (WebInspector.AuditLauncherView.prototype._createLauncherUI):
1297 * inspector/front-end/AuditsPanel.js:
1299 2011-01-11 Pavel Podivilov <podivilov@chromium.org>
1301 Reviewed by Pavel Feldman.
1303 Web Inspector: move delayed search implementation to SourceFrame.
1304 https://bugs.webkit.org/show_bug.cgi?id=51753
1306 * inspector/front-end/SourceFrame.js:
1307 (WebInspector.SourceFrame.prototype._createViewerIfNeeded):
1308 (WebInspector.SourceFrame.prototype.findSearchMatches):
1309 (WebInspector.SourceFrame.prototype.cancelFindSearchMatches):
1310 * inspector/front-end/SourceView.js:
1311 (WebInspector.SourceView.prototype.hide):
1312 (WebInspector.SourceView.prototype.searchCanceled):
1313 (WebInspector.SourceView.prototype.performSearch.didFindSearchMatches):
1314 (WebInspector.SourceView.prototype.performSearch):
1316 2011-01-11 Ilya Tikhonovsky <loislo@chromium.org>
1318 Reviewed by Pavel Feldman.
1320 Web Inspector: innerFirstChild has a side effect which should be called explicitly.
1322 If a node is a frame's owner then innerFirstChild method
1323 subscribes DOMAgent instance to the frame's doc's events.
1324 I think this should be done explicitly when we meet with
1325 the node for the first time. As I understand it happens
1326 in buildArrayForContainerChildren method.
1328 https://bugs.webkit.org/show_bug.cgi?id=52204
1330 * inspector/InspectorDOMAgent.cpp:
1331 (WebCore::InspectorDOMAgent::startListeningFrameDoc):
1332 (WebCore::InspectorDOMAgent::buildArrayForContainerChildren):
1333 (WebCore::InspectorDOMAgent::innerFirstChild):
1334 * inspector/InspectorDOMAgent.h:
1336 2011-01-11 Adam Roben <aroben@apple.com>
1338 Delete WKCACFLayer.{cpp,h}
1340 These have been unused since r75262
1342 * platform/graphics/win/WKCACFLayer.cpp: Removed.
1343 * platform/graphics/win/WKCACFLayer.h: Removed.
1345 2011-01-11 Pavel Feldman <pfeldman@chromium.org>
1347 Reviewed by Yury Semikhatsky.
1349 Web Inspector: [regression] Cookies view does not allow columns resize.
1350 https://bugs.webkit.org/show_bug.cgi?id=51877
1352 * inspector/front-end/CookieItemsView.js:
1353 (WebInspector.CookieItemsView.prototype._updateWithCookies):
1355 2011-01-11 Noel Gordon <noel.gordon@gmail.com>
1357 Reviewed by James Robinson.
1359 [chromium] canvas.toDataURL("image/jpeg") should composite onto black.
1360 https://bugs.webkit.org/show_bug.cgi?id=51237
1362 The Canvas specification requires that the canvas image is composited using
1363 the Porter-Duff operator source-over onto a black background; the resultant
1364 image should be JPEG encoded and returned as a dataURL. To composite image
1365 A and background B, for any Porter-Duff operator, produce pixels I with
1367 I = c(A)F(A) + c(B)F(B)
1369 where, F(X) is the fraction [0.0-1.0] contributed to the composite by image
1370 X, and c(X) are the premultiplied RGB color components of image X. Note by
1371 definition, c(B) = 0 since the background is black, so I = c(A)F(A). Since
1372 F(A) = 1 in Porter-Duff operator source-over, the composited pixels satisfy
1373 I = c(A). Hence, to conform to the Canvas spec, pass the premultiplied RGB
1374 color components of the canvas image to the JPEG encoder.
1376 Covered by canvas/philip/tests/toDataURL.jpeg.alpha.html
1378 * platform/image-encoders/skia/JPEGImageEncoder.cpp:
1379 (WebCore::preMultipliedBGRAtoRGB): Use Porter-Duff source-over black.
1381 2011-01-11 Pavel Feldman <pfeldman@chromium.org>
1383 Reviewed by Yury Semikhatsky.
1385 Chromium DevTools: get rid of APU-related code in WebKit/chromium.
1386 https://bugs.webkit.org/show_bug.cgi?id=52152
1388 * inspector/InspectorController.cpp:
1389 (WebCore::InspectorController::restoreInspectorStateFromCookie):
1390 (WebCore::InspectorController::setInjectedScriptSource):
1391 * inspector/InspectorState.cpp:
1392 (WebCore::InspectorState::InspectorState):
1393 * inspector/InspectorState.h:
1394 * inspector/front-end/inspector.js:
1396 2011-01-11 Pavel Feldman <pfeldman@chromium.org>
1398 Reviewed by Yury Semikhatsky.
1400 Web Inspector: [REGRESSION] Load timing is requested
1401 for all resources (not only for the main one).
1402 https://bugs.webkit.org/show_bug.cgi?id=51749
1404 * inspector/InspectorController.cpp:
1405 (WebCore::InspectorController::willSendRequest):
1406 * loader/ResourceLoadNotifier.cpp:
1407 (WebCore::ResourceLoadNotifier::dispatchWillSendRequest):
1409 2011-01-11 Carlos Garcia Campos <cgarcia@igalia.com>
1411 Reviewed by Martin Robinson.
1413 [GTK] GRefPtr should not be used with Gtk widgets
1414 https://bugs.webkit.org/show_bug.cgi?id=51241
1416 GRefPtr breaks the widget life-cycle, the main problem is
1417 that GRefPtr calls g_object_unref() when it's destroyed,
1418 which is undesirable for widgets. In gtk+ widgets are created with
1419 a floating reference and when added to a container, the container
1420 takes the ownership of the widget consuming the floating
1421 reference. So you don't usually need to call g_object_ref/unref on
1422 widgets (only for some operations like reparent a widget) and
1423 toplevel widgets are destroyed with gtk_widget_destroy().
1425 * platform/ContextMenuItem.h:
1426 * platform/gtk/ContextMenuGtk.cpp:
1427 (WebCore::ContextMenu::ContextMenu):
1428 (WebCore::ContextMenu::~ContextMenu):
1429 (WebCore::ContextMenu::setPlatformDescription):
1430 * platform/gtk/ContextMenuItemGtk.cpp:
1431 (WebCore::ContextMenuItem::ContextMenuItem):
1432 (WebCore::ContextMenuItem::releasePlatformDescription):
1433 (WebCore::ContextMenuItem::type):
1434 (WebCore::ContextMenuItem::action):
1435 (WebCore::ContextMenuItem::setAction):
1436 (WebCore::ContextMenuItem::title):
1437 (WebCore::ContextMenuItem::setTitle):
1438 (WebCore::ContextMenuItem::platformSubMenu):
1439 (WebCore::ContextMenuItem::setSubMenu):
1440 (WebCore::ContextMenuItem::setChecked):
1441 (WebCore::ContextMenuItem::setEnabled):
1443 2010-10-10 David Hyatt <hyatt@apple.com>
1445 Reviewed by Simon Fraser.
1447 https://bugs.webkit.org/show_bug.cgi?id=51119, transformed
1448 elements not responding properly to :hover after r73385.
1449 Just use the entire document area as the hit test area,
1450 since there appears to be a rounding bug/issues with relying
1451 on float math when mapping the hit test area into
1452 transformed coordinates.
1454 * rendering/RenderLayer.cpp:
1455 (WebCore::RenderLayer::hitTest):
1457 2011-01-10 Stephen White <senorblanco@chromium.org>
1459 Reviewed by James Robinson.
1461 Fix canvas->canvas draws on the GPU path.
1462 https://bugs.webkit.org/show_bug.cgi?id=52141
1464 Two problems: according to the canvas spec, both source and
1465 destination rects can have negative width or height, but this shouldn't
1466 cause the image to be flipped. So we need to normalize the rects (in
1467 the software path, this is done by BitmapImage*::draw). Secondly, in
1468 the FBO->FBO path, the image needs to be flipped vertically, since it
1469 is drawn upside down. We were doing this by flipping the destination
1470 rect, but this doesn't work if the source rect is not the entire image,
1471 since we extract the wrong part of the image. Fixed by flipping the
1472 source rect instead (and flipping it within the image buffer's height,
1473 not the source rect's height).
1475 Covered by fast/canvas/drawImage-with-negative-source-destination.html.
1478 * platform/graphics/skia/BitmapImageSingleFrameSkia.h:
1479 Put normalizeRect() in global scope.
1480 * platform/graphics/skia/ImageBufferSkia.cpp:
1481 (WebCore::ImageBuffer::draw):
1482 Fix as above: normalize both source and dest rects, and flip the
1483 source rect instead of the dest rect.
1484 * platform/graphics/skia/ImageSkia.cpp:
1485 (WebCore::normalizeRect):
1486 Put normalizeRect() in global scope.
1488 2011-01-10 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1490 Reviewed by Csaba Osztrogonác.
1492 [Qt] Baseline qt_minimal configuration
1493 https://bugs.webkit.org/show_bug.cgi?id=51313
1495 No new tests as there is no new functionality.
1497 * platform/graphics/qt/GraphicsLayerQt.cpp: Fix the location of the
1498 QT_NO_ANIMATION guard.
1500 * platform/qt/WheelEventQt.cpp:
1501 (WebCore::PlatformWheelEvent::applyDelta): Fix the location of the
1502 QT_NO_WHEELEVENT guard.
1504 2011-01-10 Joe Mason <jmason@rim.com>
1506 Reviewed by Alexey Proskuryakov.
1508 WebSockets: unbounded buffer growth when server sends bad data
1509 https://bugs.webkit.org/show_bug.cgi?id=51253
1511 Fail a websocket handshake after 1024 bytes without a newline, or if it
1512 contains a null byte before the first newline.
1514 Tests: http/tests/websocket/tests/handshake-fail-by-maxlength.html
1515 http/tests/websocket/tests/handshake-fail-by-prepended-null.html
1517 * websockets/WebSocketHandshake.cpp:
1518 (WebCore::WebSocketHandshake::readStatusLine):
1520 2011-01-10 Adam Barth <abarth@webkit.org>
1522 Reviewed by Darin Adler.
1524 Introduce the notion of a "display-isolated" URL scheme for use by
1525 Chrome-internal URLs
1526 https://bugs.webkit.org/show_bug.cgi?id=50182
1528 This patch adds the basic plumbing for display-isolated URL schemes.
1529 Originally, this patch also had the functional change, but I've split
1530 that off into a separate patch because the original patch caused a
1531 performance regression.
1533 * page/SecurityOrigin.cpp:
1534 (WebCore::SecurityOrigin::canDisplay):
1535 * platform/SchemeRegistry.cpp:
1536 (WebCore::displayIsolatedURLSchemes):
1537 (WebCore::SchemeRegistry::registerURLSchemeAsLocal):
1538 (WebCore::SchemeRegistry::removeURLSchemeRegisteredAsLocal):
1539 (WebCore::SchemeRegistry::localSchemes):
1540 (WebCore::SchemeRegistry::deprecatedShouldTreatURLAsLocal):
1541 (WebCore::SchemeRegistry::shouldTreatURLSchemeAsLocal):
1542 (WebCore::SchemeRegistry::registerURLSchemeAsDisplayIsolated):
1543 (WebCore::SchemeRegistry::shouldTreatURLSchemeAsDisplayIsolated):
1544 * platform/SchemeRegistry.h:
1546 2011-01-10 Jer Noble <jer.noble@apple.com>
1548 Reviewed by Simon Fraser.
1550 https://bugs.webkit.org/show_bug.cgi?id=52095
1551 REGRESSION (r75277): 2 test cases (<1%) had incorrect layout
1554 fullscreen/full-screen-remove-ancestor.html
1555 fullscreen/full-screen-remove.html
1557 Previously, the above tests were failing because DRT dumped the contents of their
1558 <script> tags, though all the explicit tests were passing. This was caused by
1559 the document's render tree being left in an inconsistent state when a full screen
1560 element's ancestor was removed from the DOM.
1562 In nodeWillBeRemoved(), match the code in webkitDidExitFullScreen().
1563 Don't detach the documentElement, but rather simply call recalcStyle(Force).
1566 (WebCore::Document::nodeWillBeRemoved):
1567 * rendering/RenderFullScreen.cpp:
1568 (RenderFullScreen::setAnimating): #if ENABLED -> # if USE
1569 * rendering/RenderFullScreen.h:
1570 (WebCore::RenderFullScreen::RenderFullScreen): RenderFullScreen should be an anonymous renderer.
1572 2011-01-10 Martin Robinson <mrobinson@igalia.com>
1574 Reviewed by Xan Lopez.
1576 [GTK] Remove use of deprecated GTK+ methods before the 1.3.10 release
1577 https://bugs.webkit.org/show_bug.cgi?id=52173
1579 No new tests. This is only a build fix.
1581 * platform/gtk/GRefPtrGtk.cpp: Guard the GdkCursor specialization against GTK+ 3.x.
1582 In GTK+ 3.x, GdkCursor is just a GObject.
1583 * platform/gtk/GRefPtrGtk.h: Ditto.
1585 2011-01-10 Geoffrey Garen <ggaren@apple.com>
1587 Reviewed by Oliver Hunt.
1589 Moved Collector.* => Heap.*, since the file contains a class named "Heap".
1591 * ForwardingHeaders/runtime/Collector.h: Removed.
1592 * ForwardingHeaders/runtime/Heap.h: Copied from WebCore/ForwardingHeaders/runtime/Collector.h.
1593 * WebCore.vcproj/WebCore.vcproj:
1594 * bindings/js/GCController.cpp:
1595 * bindings/js/ScriptGCEvent.cpp:
1597 2011-01-10 Leonid Ebril <leonid.ebril@nokia.com>
1599 Reviewed by Kenneth Rohde Christiansen.
1601 https://bugs.webkit.org/show_bug.cgi?id=51879
1603 Set the PluginQuirkDontSetNullWindowHandleOnDestroy for Adobe Lite
1604 plugin if Flash 10 or newer (for Symbian platform), setting a nulled
1605 window handler on destroy crashes WebKit.
1607 * plugins/symbian/PluginPackageSymbian.cpp:
1608 (WebCore::PluginPackage::fetchInfo):
1609 (WebCore::PluginPackage::determineQuirks):
1611 2011-01-10 Martin Robinson <mrobinson@igalia.com>
1613 Reviewed by Xan Lopez.
1615 [GTK] Remove unecessary RenderThemeGtk and WidgetRenderingContext code
1616 https://bugs.webkit.org/show_bug.cgi?id=52170
1618 Remove unnecessary code from RenderThemeGtk3 and RenderThemeGtk now that the
1619 GtkStyleContext port is complete. Also remove WidgetRenderingContextGtk3 and
1620 move WidgetRenderingRenderingContextGtk2 to WidgetRenderingContext and make it
1621 GTK+ 2.x only. Some methods have been moved to RenderThemeGtk2 since they are
1624 No new tests. This should not change functionality.
1626 * GNUmakefile.am: Remove WidgetRenderingContextGtk3 and gtk3drawing.c
1627 * platform/gtk/RenderThemeGtk.cpp:
1628 (WebCore::RenderThemeGtk::RenderThemeGtk):
1629 (WebCore::gtkIconState): Made this method static. It isn't used outside RenderThemeGtk.
1630 (WebCore::RenderThemeGtk::paintSearchFieldResultsDecoration): Updated to refelct gtkIconState change.
1631 (WebCore::RenderThemeGtk::paintSearchFieldCancelButton): Ditto.
1632 (WebCore::RenderThemeGtk::paintMediaButton): Ditto
1633 * platform/gtk/RenderThemeGtk.h: Move a few methods which are now GTK+ 2.x only.
1634 * platform/gtk/RenderThemeGtk2.cpp:
1635 (WebCore::RenderThemeGtk::platformInit): Added this platform initialization method
1636 that is only used for GTK+ 2.x at the moment.
1637 (WebCore::RenderThemeGtk::~RenderThemeGtk): Added.
1638 (WebCore::getGtkStateType): Made this method static.
1639 (WebCore::RenderThemeGtk::getIndicatorMetrics): Moved this here from RenderThemeGtk.
1640 (WebCore::setToggleSize): Updated to reflect changes to getGtkStateType.
1641 (WebCore::RenderThemeGtk::paintButton): Ditto.
1642 (WebCore::RenderThemeGtk::paintSliderTrack): Ditto.
1643 (WebCore::RenderThemeGtk::paintSliderThumb): Ditto.
1644 * platform/gtk/RenderThemeGtk3.cpp:
1645 (WebCore::RenderThemeGtk::gtkScrollbarStyle): Moved to the top of the file.
1646 (WebCore::RenderThemeGtk::platformInit): Added.
1647 (WebCore::RenderThemeGtk::~RenderThemeGtk): Added.
1648 (WebCore::RenderThemeGtk::initMediaColors): Changed to use the GtkStyleContext API to
1649 fetch these colors. This was the last dependency on the old API.
1650 * platform/gtk/WidgetRenderingContext.cpp: Renamed from Source/WebCore/platform/gtk/WidgetRenderingContextGtk2.cpp.
1651 * platform/gtk/WidgetRenderingContext.h: Made GTK+ 2.x only.
1652 * platform/gtk/WidgetRenderingContextGtk3.cpp: Removed.
1653 * platform/gtk/gtk3drawing.c: Removed.
1654 * platform/gtk/gtkdrawing.h: Made GTK+ 2.x only.
1656 2011-01-10 Benjamin Poulain <benjamin.poulain@nokia.com>
1658 Reviewed by Kenneth Rohde Christiansen.
1660 [Qt] Navigator.cookiesEnabled return true for Qt even if there is no cookie jar
1661 https://bugs.webkit.org/show_bug.cgi?id=52081
1663 Test for the availability of cookie jar to return if cookies are enabled or not.
1665 * platform/qt/CookieJarQt.cpp:
1666 (WebCore::cookiesEnabled):
1668 2011-01-10 W. James MacLean <wjmaclean@chromium.org>
1670 Reviewed by Kenneth Russell.
1672 [chromium] Enable reuse of RenderSurface for drawing.
1673 https://bugs.webkit.org/show_bug.cgi?id=51928
1675 Modifies RenderSurfaceChromium::prepareContentsTexture to avoid trying to 'reserve' a texture
1676 that is already reserved, should an attempt be made to re-select a previously drawn render surface
1677 in order to continue drawing to it. This use case appears when compositing into an offscreen texture.
1679 Covered by existing test (compositing/geometry/fixed-position.html) when offscreen compositing enabled.
1681 * platform/graphics/chromium/LayerTexture.h:
1682 (WebCore::LayerTexture::isReserved):
1683 * platform/graphics/chromium/RenderSurfaceChromium.cpp:
1684 (WebCore::RenderSurfaceChromium::prepareContentsTexture):
1685 * platform/graphics/chromium/TextureManager.cpp:
1686 (WebCore::TextureManager::isProtected):
1687 * platform/graphics/chromium/TextureManager.h:
1689 2011-01-10 Carlos Garcia Campos <cgarcia@igalia.com>
1691 Reviewed by Xan Lopez.
1693 [GTK] Port combo box painting to GtkStyleContext
1694 https://bugs.webkit.org/show_bug.cgi?id=51828
1696 Use GtkStyleContext API to paint combo boxes when building with
1697 GTK+ 3.x. Method paintButton() has been factored out and the new
1698 static method renderButton() is used by both paintButton() and
1701 No new tests. This should not change functionality.
1703 * platform/gtk/RenderThemeGtk3.cpp:
1704 (WebCore::RenderThemeGtk::adjustRepaintRect):
1705 (WebCore::renderButton):
1706 (WebCore::RenderThemeGtk::paintButton):
1707 (WebCore::getComboBoxMetrics):
1708 (WebCore::RenderThemeGtk::popupInternalPaddingLeft):
1709 (WebCore::RenderThemeGtk::popupInternalPaddingRight):
1710 (WebCore::RenderThemeGtk::popupInternalPaddingTop):
1711 (WebCore::RenderThemeGtk::popupInternalPaddingBottom):
1712 (WebCore::RenderThemeGtk::paintMenuList):
1714 2011-01-10 Evan Martin <evan@chromium.org>
1716 Reviewed by Tony Chang.
1718 [chromium] simplify complex glyph positioning code
1719 https://bugs.webkit.org/show_bug.cgi?id=52159
1721 Before, we had roughly same code duplicated for RTL and LTR.
1722 Now, use the same code for both directions by being careful about
1723 flipping signs where appropriate.
1725 * platform/graphics/chromium/ComplexTextControllerLinux.cpp:
1726 (WebCore::ComplexTextController::shapeGlyphs):
1727 (WebCore::ComplexTextController::setGlyphXPositions):
1729 2011-01-10 Alejandro G. Castro <alex@igalia.com>
1731 Reviewed by Xan Lopez.
1733 [GTK] Fix gtk2 compilation for master
1734 https://bugs.webkit.org/show_bug.cgi?id=51885
1736 * platform/gtk/GtkVersioning.h: Replaced the 2.24.0 check with
1737 2.23.0 to avoid using the old symbols in the 2.23 releases. Added
1738 support for gdk_pixmap_get_size before the 2.23.4.
1739 * platform/gtk/WidgetRenderingContextGtk2.cpp:
1740 (WebCore::WidgetRenderingContext::WidgetRenderingContext):
1741 Replaced the old gdk_drawable_get_size with gdk_pixmap_get_size.
1743 2011-01-10 Ryosuke Niwa <rniwa@webkit.org>
1745 Unreviewed; build fix for r75385.
1747 * rendering/mathml/RenderMathMLFraction.cpp:
1748 (WebCore::RenderMathMLFraction::paint):
1750 2011-01-10 Sheriff Bot <webkit.review.bot@gmail.com>
1752 Unreviewed, rolling out r75341.
1753 http://trac.webkit.org/changeset/75341
1754 https://bugs.webkit.org/show_bug.cgi?id=52157
1756 Regressions on several pixel tests (Requested by jorlow on
1759 * platform/graphics/cg/GraphicsContextCG.cpp:
1760 (WebCore::GraphicsContext::fillPath):
1762 2011-01-10 Carlos Garcia Campos <cgarcia@igalia.com>
1764 Reviewed by Martin Robinson.
1766 [GTK] Port check and radio button painting to GtkStyleContext
1767 https://bugs.webkit.org/show_bug.cgi?id=51815
1769 Use GtkStyleContext API to paint check and radio buttons when
1770 building with GTK+ 3.x.
1772 No new tests. This should not change functionality.
1774 * platform/gtk/RenderThemeGtk3.cpp:
1775 (WebCore::RenderThemeGtk::adjustRepaintRect):
1776 (WebCore::setToggleSize):
1777 (WebCore::paintToggle):
1778 (WebCore::RenderThemeGtk::setCheckboxSize):
1779 (WebCore::RenderThemeGtk::paintCheckbox):
1780 (WebCore::RenderThemeGtk::setRadioSize):
1781 (WebCore::RenderThemeGtk::paintRadio):
1783 2011-01-10 François Sausset <sausset@gmail.com>
1785 Reviewed by Kenneth Rohde Christiansen.
1787 MathML: vertical alignment & bar thickness adjustments of fractions.
1788 https://bugs.webkit.org/show_bug.cgi?id=50018
1790 The fraction bar thickness default value should follow the w3c MathML 3 recommendation:
1791 http://www.w3.org/TR/MathML3/chapter3.html#presm.mfrac
1792 The vertical alignment of the fraction bar should be more accurate, specially with operators (+,=,...).
1794 Test: mathml/presentation/fractions.xhtml
1796 * rendering/mathml/RenderMathMLFraction.cpp:
1797 (WebCore::RenderMathMLFraction::RenderMathMLFraction):
1798 (WebCore::RenderMathMLFraction::updateFromElement):
1799 (WebCore::RenderMathMLFraction::layout):
1800 (WebCore::RenderMathMLFraction::paint):
1801 (WebCore::RenderMathMLFraction::baselinePosition):
1802 * rendering/mathml/RenderMathMLFraction.h:
1804 2011-01-10 Antti Koivisto <antti@apple.com>
1806 Reviewed by Alexey Proskuryakov.
1808 https://bugs.webkit.org/show_bug.cgi?id=52044
1809 REGRESSION(r74807): No-store is ignored within a document
1811 Don't use cached resources with Cache-control: no-store (unless cache policy is CachePolicyHistoryBuffer).
1812 This matches a behavior that got lost in r74807.
1814 Test: http/tests/misc/script-no-store.html
1815 (by Alexey Proskuryakov)
1817 * loader/cache/CachedResourceLoader.cpp:
1818 (WebCore::CachedResourceLoader::determineRevalidationPolicy):
1820 2011-01-10 Patrick Gansterer <paroga@webkit.org>
1822 Reviewed by Laszlo Gombos.
1824 [WIN] Add ProxyServerWin.cpp
1825 https://bugs.webkit.org/show_bug.cgi?id=52031
1827 Add stub implementation to fix ENABLE_NETSCAPE_PLUGIN_API on WinCE.
1830 * CMakeListsWinCE.txt:
1831 * platform/network/win/ProxyServerWin.cpp: Added.
1832 (WebCore::proxyServersForURL):
1834 2011-01-10 Alejandro G. Castro <alex@igalia.com>
1836 Reviewed by Martin Robinson.
1838 [cairo] Rendering a lot of arcs on top of each other causes time
1840 https://bugs.webkit.org/show_bug.cgi?id=50869
1842 We avoid the situation where we have to render the same arc
1843 multiple times over itself. Now it renders just one oval and
1844 moves to the end angle.
1846 * platform/graphics/cairo/PathCairo.cpp:
1847 (WebCore::Path::addArc):
1849 2011-01-10 Carlos Garcia Campos <cgarcia@igalia.com>
1851 Reviewed by Martin Robinson.
1853 [GTK] Port text input control painting to GtkStyleContext
1854 https://bugs.webkit.org/show_bug.cgi?id=51870
1856 Use GtkStyleContext API to paint text input controls when building
1859 No new tests. This should not change functionality.
1861 * platform/gtk/RenderThemeGtk3.cpp:
1862 (WebCore::RenderThemeGtk::adjustRepaintRect):
1863 (WebCore::RenderThemeGtk::paintTextField):
1865 2011-01-09 Tony Gentilcore <tonyg@chromium.org>
1867 Reviewed by Alexey Proskuryakov.
1869 Forward declare some headers where possible
1870 https://bugs.webkit.org/show_bug.cgi?id=52133
1872 No new tests because no new functionality.
1875 * dom/BeforeLoadEvent.h:
1878 * dom/StyledElement.cpp:
1879 * dom/StyledElement.h:
1880 * loader/DocumentLoader.h:
1881 * loader/FrameLoader.h:
1883 * platform/graphics/GraphicsContext.cpp:
1884 * platform/graphics/GraphicsContext.h:
1885 * platform/graphics/filters/FEBlend.cpp:
1886 * platform/graphics/filters/FEColorMatrix.cpp:
1887 * platform/graphics/filters/FEComponentTransfer.cpp:
1888 * platform/graphics/filters/FEComposite.cpp:
1889 * platform/graphics/filters/FEConvolveMatrix.cpp:
1890 * platform/graphics/filters/FEDiffuseLighting.cpp:
1891 * platform/graphics/filters/FEDisplacementMap.cpp:
1892 * platform/graphics/filters/FEFlood.cpp:
1893 * platform/graphics/filters/FEGaussianBlur.cpp:
1894 * platform/graphics/filters/FEMerge.cpp:
1895 * platform/graphics/filters/FEMorphology.cpp:
1896 * platform/graphics/filters/FEOffset.cpp:
1897 * platform/graphics/filters/FESpecularLighting.cpp:
1898 * platform/graphics/filters/FETile.cpp:
1899 * platform/graphics/filters/FETurbulence.cpp:
1900 * platform/graphics/filters/FilterEffect.cpp:
1901 * platform/graphics/filters/FilterEffect.h:
1902 * platform/graphics/filters/SourceAlpha.cpp:
1903 * platform/graphics/filters/SourceGraphic.cpp:
1904 * svg/SVGElement.cpp:
1906 * svg/SVGFEBlendElement.cpp:
1907 * svg/SVGFEColorMatrixElement.cpp:
1908 * svg/SVGFEComponentTransferElement.cpp:
1909 * svg/SVGFECompositeElement.cpp:
1910 * svg/SVGFEConvolveMatrixElement.cpp:
1911 * svg/SVGFEConvolveMatrixElement.h:
1912 * svg/SVGFEDiffuseLightingElement.cpp:
1913 * svg/SVGFEDisplacementMapElement.cpp:
1914 * svg/SVGFEGaussianBlurElement.cpp:
1915 * svg/SVGFEImageElement.h:
1916 * svg/SVGFEMergeElement.cpp:
1917 * svg/SVGFEMorphologyElement.cpp:
1918 * svg/SVGFEOffsetElement.cpp:
1919 * svg/SVGFESpecularLightingElement.cpp:
1920 * svg/SVGFETileElement.cpp:
1921 * svg/SVGFETurbulenceElement.h:
1922 * svg/SVGFilterPrimitiveStandardAttributes.cpp:
1923 * svg/SVGFilterPrimitiveStandardAttributes.h:
1924 * svg/SVGTextContentElement.cpp:
1925 * svg/graphics/filters/SVGFEImage.cpp:
1926 * svg/graphics/filters/SVGFEImage.h:
1928 2011-01-10 Adam Roben <aroben@apple.com>
1930 Windows build fix after r75313
1932 * WebCore.vcproj/build-generated-files.sh: Updated for the change in
1935 2011-01-10 Pavel Podivilov <podivilov@chromium.org>
1937 Reviewed by Pavel Feldman.
1939 Web Inspector: make properties on Array's prototype non-enumerable.
1940 https://bugs.webkit.org/show_bug.cgi?id=51776
1942 * inspector/front-end/utilities.js:
1945 2011-01-10 Yael Aharon <yael.aharon@nokia.com>
1947 Reviewed by Simon Fraser.
1949 Specificity of negated selectors apparently miscalculated
1950 https://bugs.webkit.org/show_bug.cgi?id=41206
1952 Give negated selectors the specificity of the selector they are negating.
1953 This is the same as the behavior of other browsers.
1955 Test: fast/css/pseudo-not.html
1957 * css/CSSSelector.cpp:
1958 (WebCore::CSSSelector::specificityForOneSelector):
1960 2011-01-10 Adam Roben <aroben@apple.com>
1962 Windows build fix after r75353
1964 * WebCore.vcproj/WebCoreCommon.vsprops: Added rendering/mathml to the
1967 2011-01-10 John Knottenbelt <jknotten@chromium.org>
1969 Reviewed by Jeremy Orlow.
1971 [Chromium] Remove non-client-based Geolocation code
1972 https://bugs.webkit.org/show_bug.cgi?id=50921
1974 Code clean up, covered by existing tests.
1976 * WebCore.gyp/WebCore.gyp:
1978 * platform/chromium/ChromiumBridge.h:
1979 * platform/chromium/GeolocationServiceChromium.cpp: Removed.
1980 * platform/chromium/GeolocationServiceChromium.h: Removed.
1982 2011-01-10 Ilya Tikhonovsky <loislo@chromium.org>
1984 Reviewed by Pavel Feldman.
1986 Web Inspector: protocol related change. Rename stepIntoStatement, stepOutOfFunction, stepOverStatement.
1987 stepIntoStatement => stepInto
1988 stepOutOfFunction => stepOut
1989 stepOverStatement => stepOver
1991 https://bugs.webkit.org/show_bug.cgi?id=52142
1993 * inspector/Inspector.idl:
1994 * inspector/InspectorDebuggerAgent.cpp:
1995 (WebCore::InspectorDebuggerAgent::stepOver):
1996 (WebCore::InspectorDebuggerAgent::stepInto):
1997 (WebCore::InspectorDebuggerAgent::stepOut):
1998 * inspector/InspectorDebuggerAgent.h:
1999 * inspector/front-end/ScriptsPanel.js:
2000 (WebInspector.ScriptsPanel.prototype._stepOverClicked):
2001 (WebInspector.ScriptsPanel.prototype._stepIntoClicked):
2002 (WebInspector.ScriptsPanel.prototype._stepOutClicked):
2004 2011-01-10 Carlos Garcia Campos <cgarcia@igalia.com>
2006 Reviewed by Martin Robinson.
2008 [GTK] Port progressbar painting to GtkStyleContext
2009 https://bugs.webkit.org/show_bug.cgi?id=52054
2011 Use GtkStyleContext API to paint progressbars when building with
2012 GTK+ 3.x. Also add support for indeterminate progressbars.
2014 No new tests. This should not change functionality.
2016 * platform/gtk/RenderThemeGtk.cpp:
2017 * platform/gtk/RenderThemeGtk2.cpp:
2018 (WebCore::RenderThemeGtk::animationRepeatIntervalForProgressBar):
2019 (WebCore::RenderThemeGtk::animationDurationForProgressBar):
2020 * platform/gtk/RenderThemeGtk3.cpp:
2021 (WebCore::RenderThemeGtk::animationRepeatIntervalForProgressBar):
2022 (WebCore::RenderThemeGtk::animationDurationForProgressBar):
2023 (WebCore::RenderThemeGtk::paintProgressBar):
2025 2011-01-10 Andreas Kling <kling@webkit.org>
2027 Reviewed by Darin Adler.
2029 Remove unused class "Pen" in WebCore/platform/graphics
2030 https://bugs.webkit.org/show_bug.cgi?id=49955
2037 * WebCore.vcproj/WebCore.vcproj:
2038 * WebCore.xcodeproj/project.pbxproj:
2039 * platform/graphics/Pen.cpp: Removed.
2040 * platform/graphics/Pen.h: Removed.
2041 * platform/graphics/haiku/GraphicsContextHaiku.cpp:
2042 * platform/graphics/wx/GraphicsContextWx.cpp:
2043 * platform/graphics/wx/PenWx.cpp: Removed.
2045 2011-01-10 Xan Lopez <xlopez@igalia.com>
2047 Reviewed by Martin Robinson.
2049 [GTK] Create intermediate libWebCore library
2050 https://bugs.webkit.org/show_bug.cgi?id=52116
2052 Create intermediate libWebCore.la to avoid overflowing the linker
2053 in the final link stage.
2055 * GNUmakefile.am: define the new library.
2057 2011-01-09 Sheriff Bot <webkit.review.bot@gmail.com>
2059 Unreviewed, rolling out r75337.
2060 http://trac.webkit.org/changeset/75337
2061 https://bugs.webkit.org/show_bug.cgi?id=52137
2063 It made fast/dom/navigator-detached-no-crash.html crash
2064 (Requested by Ossy on #webkit).
2066 * platform/qt/CookieJarQt.cpp:
2067 (WebCore::cookiesEnabled):
2069 2011-01-09 Mark Rowe <mrowe@apple.com>
2073 * WebCore.xcodeproj/project.pbxproj: Copy SVGResourcesCache.h in to PrivateHeaders
2076 2011-01-09 Dan Bernstein <mitz@apple.com>
2078 Reviewed by Sam Weinig.
2080 <rdar://problem/8765555> WebKit2: Search field focus ring is missing
2082 Provide a focus ring visible rect to AppKit.
2084 * platform/mac/ThemeMac.mm:
2085 (-[WebCoreFlippedView _focusRingVisibleRect]):
2086 (-[WebCoreFlippedView _focusRingClipAncestor]):
2088 2011-01-09 Dirk Schulze <krit@webkit.org>
2090 Reviewed by Rob Buis.
2092 Move MathML renderer to rendering/mathml
2093 https://bugs.webkit.org/show_bug.cgi?id=52131
2095 Move all renderer of MathML to WebCore/rendering/mathml
2097 No change of functionality, no new tests added.
2103 * WebCore.vcproj/WebCore.vcproj:
2104 * WebCore.xcodeproj/project.pbxproj:
2105 * mathml/RenderMathMLBlock.cpp: Removed.
2106 * mathml/RenderMathMLBlock.h: Removed.
2107 * mathml/RenderMathMLFenced.cpp: Removed.
2108 * mathml/RenderMathMLFenced.h: Removed.
2109 * mathml/RenderMathMLFraction.cpp: Removed.
2110 * mathml/RenderMathMLFraction.h: Removed.
2111 * mathml/RenderMathMLMath.cpp: Removed.
2112 * mathml/RenderMathMLMath.h: Removed.
2113 * mathml/RenderMathMLOperator.cpp: Removed.
2114 * mathml/RenderMathMLOperator.h: Removed.
2115 * mathml/RenderMathMLRoot.cpp: Removed.
2116 * mathml/RenderMathMLRoot.h: Removed.
2117 * mathml/RenderMathMLRow.cpp: Removed.
2118 * mathml/RenderMathMLRow.h: Removed.
2119 * mathml/RenderMathMLSquareRoot.cpp: Removed.
2120 * mathml/RenderMathMLSquareRoot.h: Removed.
2121 * mathml/RenderMathMLSubSup.cpp: Removed.
2122 * mathml/RenderMathMLSubSup.h: Removed.
2123 * mathml/RenderMathMLUnderOver.cpp: Removed.
2124 * mathml/RenderMathMLUnderOver.h: Removed.
2125 * rendering/mathml: Added.
2126 * rendering/mathml/RenderMathMLBlock.cpp: Copied from Source/WebCore/mathml/RenderMathMLBlock.cpp.
2127 * rendering/mathml/RenderMathMLBlock.h: Copied from Source/WebCore/mathml/RenderMathMLBlock.h.
2128 * rendering/mathml/RenderMathMLFenced.cpp: Copied from Source/WebCore/mathml/RenderMathMLFenced.cpp.
2129 * rendering/mathml/RenderMathMLFenced.h: Copied from Source/WebCore/mathml/RenderMathMLFenced.h.
2130 * rendering/mathml/RenderMathMLFraction.cpp: Copied from Source/WebCore/mathml/RenderMathMLFraction.cpp.
2131 * rendering/mathml/RenderMathMLFraction.h: Copied from Source/WebCore/mathml/RenderMathMLFraction.h.
2132 * rendering/mathml/RenderMathMLMath.cpp: Copied from Source/WebCore/mathml/RenderMathMLMath.cpp.
2133 * rendering/mathml/RenderMathMLMath.h: Copied from Source/WebCore/mathml/RenderMathMLMath.h.
2134 * rendering/mathml/RenderMathMLOperator.cpp: Copied from Source/WebCore/mathml/RenderMathMLOperator.cpp.
2135 * rendering/mathml/RenderMathMLOperator.h: Copied from Source/WebCore/mathml/RenderMathMLOperator.h.
2136 * rendering/mathml/RenderMathMLRoot.cpp: Copied from Source/WebCore/mathml/RenderMathMLRoot.cpp.
2137 * rendering/mathml/RenderMathMLRoot.h: Copied from Source/WebCore/mathml/RenderMathMLRoot.h.
2138 * rendering/mathml/RenderMathMLRow.cpp: Copied from Source/WebCore/mathml/RenderMathMLRow.cpp.
2139 * rendering/mathml/RenderMathMLRow.h: Copied from Source/WebCore/mathml/RenderMathMLRow.h.
2140 * rendering/mathml/RenderMathMLSquareRoot.cpp: Copied from Source/WebCore/mathml/RenderMathMLSquareRoot.cpp.
2141 * rendering/mathml/RenderMathMLSquareRoot.h: Copied from Source/WebCore/mathml/RenderMathMLSquareRoot.h.
2142 * rendering/mathml/RenderMathMLSubSup.cpp: Copied from Source/WebCore/mathml/RenderMathMLSubSup.cpp.
2143 * rendering/mathml/RenderMathMLSubSup.h: Copied from Source/WebCore/mathml/RenderMathMLSubSup.h.
2144 * rendering/mathml/RenderMathMLUnderOver.cpp: Copied from Source/WebCore/mathml/RenderMathMLUnderOver.cpp.
2145 * rendering/mathml/RenderMathMLUnderOver.h: Copied from Source/WebCore/mathml/RenderMathMLUnderOver.h.
2147 2011-01-08 Simon Fraser <simon.fraser@apple.com>
2149 Reviewed by Alexey Proskuryakov.
2151 HTMLStyleElement.disabled doesn't work (affects jQuery)
2152 https://bugs.webkit.org/show_bug.cgi?id=25287
2154 Fix the disabled property of a HTMLStyleElement to reflect,
2155 and set the disabled state of its style sheet, as required
2158 Based on initial patch by Tarun Nainani.
2160 Test: fast/html/disable-style-element.html
2162 * dom/StyleElement.h:
2163 (WebCore::StyleElement::sheet): Make const.
2165 * html/HTMLStyleElement.h:
2166 * html/HTMLStyleElement.idl:
2167 * html/HTMLStyleElement.cpp:
2168 (WebCore::HTMLStyleElement::disabled):
2169 (WebCore::HTMLStyleElement::setDisabled): Getter and setter for disabled
2170 call through to the sheet (if any).
2172 2011-01-09 Dirk Schulze <krit@webkit.org>
2174 Reviewed by Nikolas Zimmermann.
2176 Rename RenderForeignObject to RenderSVGForeignObject
2177 https://bugs.webkit.org/show_bug.cgi?id=52129
2179 Rename RenderForeignObject to RenderSVGForeignObject to match the naming schema in render/svg.
2181 No change of functionality, no new tests.
2188 * WebCore.xcodeproj/project.pbxproj:
2189 * rendering/RenderingAllInOne.cpp:
2190 * rendering/svg/RenderForeignObject.cpp: Removed.
2191 * rendering/svg/RenderForeignObject.h: Removed.
2192 * rendering/svg/RenderSVGAllInOne.cpp:
2193 * rendering/svg/RenderSVGBlock.cpp:
2194 (WebCore::RenderSVGBlock::updateBoxModelInfoFromStyle):
2195 * rendering/svg/RenderSVGForeignObject.cpp: Copied from Source/WebCore/rendering/svg/RenderForeignObject.cpp.
2196 (WebCore::RenderSVGForeignObject::RenderSVGForeignObject):
2197 (WebCore::RenderSVGForeignObject::~RenderSVGForeignObject):
2198 (WebCore::RenderSVGForeignObject::paint):
2199 (WebCore::RenderSVGForeignObject::clippedOverflowRectForRepaint):
2200 (WebCore::RenderSVGForeignObject::computeRectForRepaint):
2201 (WebCore::RenderSVGForeignObject::localToParentTransform):
2202 (WebCore::RenderSVGForeignObject::computeLogicalWidth):
2203 (WebCore::RenderSVGForeignObject::computeLogicalHeight):
2204 (WebCore::RenderSVGForeignObject::layout):
2205 (WebCore::RenderSVGForeignObject::nodeAtFloatPoint):
2206 (WebCore::RenderSVGForeignObject::nodeAtPoint):
2207 (WebCore::RenderSVGForeignObject::mapLocalToContainer):
2208 * rendering/svg/RenderSVGForeignObject.h: Copied from Source/WebCore/rendering/svg/RenderForeignObject.h.
2209 (WebCore::RenderSVGForeignObject::renderName):
2210 * svg/SVGForeignObjectElement.cpp:
2211 (WebCore::SVGForeignObjectElement::createRenderer):
2213 2011-01-09 Dirk Schulze <krit@webkit.org>
2215 Reviewed by Nikolas Zimmermann.
2217 Move all SVG renderer to WebCore/rendering/svg
2218 https://bugs.webkit.org/show_bug.cgi?id=52087
2220 No change of functionality. Just moved all SVG renderer to WebCore/rendering/svg.
2227 * WebCore.vjproj/project.vjproj:
2228 * WebCore.xcodeproj/project.pbxproj:
2229 * rendering/RenderForeignObject.cpp: Removed.
2230 * rendering/RenderForeignObject.h: Removed.
2231 * rendering/RenderSVGAllInOne.cpp: Removed.
2232 * rendering/RenderSVGBlock.cpp: Removed.
2233 * rendering/RenderSVGBlock.h: Removed.
2234 * rendering/RenderSVGContainer.cpp: Removed.
2235 * rendering/RenderSVGContainer.h: Removed.
2236 * rendering/RenderSVGGradientStop.cpp: Removed.
2237 * rendering/RenderSVGGradientStop.h: Removed.
2238 * rendering/RenderSVGHiddenContainer.cpp: Removed.
2239 * rendering/RenderSVGHiddenContainer.h: Removed.
2240 * rendering/RenderSVGImage.cpp: Removed.
2241 * rendering/RenderSVGImage.h: Removed.
2242 * rendering/RenderSVGModelObject.cpp: Removed.
2243 * rendering/RenderSVGModelObject.h: Removed.
2244 * rendering/RenderSVGResource.cpp: Removed.
2245 * rendering/RenderSVGResource.h: Removed.
2246 * rendering/RenderSVGResourceClipper.cpp: Removed.
2247 * rendering/RenderSVGResourceClipper.h: Removed.
2248 * rendering/RenderSVGResourceContainer.cpp: Removed.
2249 * rendering/RenderSVGResourceContainer.h: Removed.
2250 * rendering/RenderSVGResourceFilter.cpp: Removed.
2251 * rendering/RenderSVGResourceFilter.h: Removed.
2252 * rendering/RenderSVGResourceFilterPrimitive.cpp: Removed.
2253 * rendering/RenderSVGResourceFilterPrimitive.h: Removed.
2254 * rendering/RenderSVGResourceGradient.cpp: Removed.
2255 * rendering/RenderSVGResourceGradient.h: Removed.
2256 * rendering/RenderSVGResourceLinearGradient.cpp: Removed.
2257 * rendering/RenderSVGResourceLinearGradient.h: Removed.
2258 * rendering/RenderSVGResourceMarker.cpp: Removed.
2259 * rendering/RenderSVGResourceMarker.h: Removed.
2260 * rendering/RenderSVGResourceMasker.cpp: Removed.
2261 * rendering/RenderSVGResourceMasker.h: Removed.
2262 * rendering/RenderSVGResourcePattern.cpp: Removed.
2263 * rendering/RenderSVGResourcePattern.h: Removed.
2264 * rendering/RenderSVGResourceRadialGradient.cpp: Removed.
2265 * rendering/RenderSVGResourceRadialGradient.h: Removed.
2266 * rendering/RenderSVGResourceSolidColor.cpp: Removed.
2267 * rendering/RenderSVGResourceSolidColor.h: Removed.
2268 * rendering/RenderSVGRoot.cpp: Removed.
2269 * rendering/RenderSVGRoot.h: Removed.
2270 * rendering/RenderSVGShadowTreeRootContainer.cpp: Removed.
2271 * rendering/RenderSVGShadowTreeRootContainer.h: Removed.
2272 * rendering/RenderSVGTransformableContainer.cpp: Removed.
2273 * rendering/RenderSVGTransformableContainer.h: Removed.
2274 * rendering/RenderSVGViewportContainer.cpp: Removed.
2275 * rendering/RenderSVGViewportContainer.h: Removed.
2276 * rendering/SVGImageBufferTools.cpp: Removed.
2277 * rendering/SVGImageBufferTools.h: Removed.
2278 * rendering/SVGMarkerData.h: Removed.
2279 * rendering/SVGMarkerLayoutInfo.cpp: Removed.
2280 * rendering/SVGMarkerLayoutInfo.h: Removed.
2281 * rendering/SVGRenderSupport.cpp: Removed.
2282 * rendering/SVGRenderSupport.h: Removed.
2283 * rendering/SVGRenderTreeAsText.cpp: Removed.
2284 * rendering/SVGRenderTreeAsText.h: Removed.
2285 * rendering/SVGResources.cpp: Removed.
2286 * rendering/SVGResources.h: Removed.
2287 * rendering/SVGResourcesCache.cpp: Removed.
2288 * rendering/SVGResourcesCache.h: Removed.
2289 * rendering/SVGResourcesCycleSolver.cpp: Removed.
2290 * rendering/SVGResourcesCycleSolver.h: Removed.
2291 * rendering/SVGShadowTreeElements.cpp: Removed.
2292 * rendering/SVGShadowTreeElements.h: Removed.
2293 * rendering/svg/RenderForeignObject.cpp: Copied from Source/WebCore/rendering/RenderForeignObject.cpp.
2294 * rendering/svg/RenderForeignObject.h: Copied from Source/WebCore/rendering/RenderForeignObject.h.
2295 * rendering/svg/RenderSVGAllInOne.cpp: Copied from Source/WebCore/rendering/RenderSVGAllInOne.cpp.
2296 * rendering/svg/RenderSVGBlock.cpp: Copied from Source/WebCore/rendering/RenderSVGBlock.cpp.
2297 * rendering/svg/RenderSVGBlock.h: Copied from Source/WebCore/rendering/RenderSVGBlock.h.
2298 * rendering/svg/RenderSVGContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGContainer.cpp.
2299 * rendering/svg/RenderSVGContainer.h: Copied from Source/WebCore/rendering/RenderSVGContainer.h.
2300 * rendering/svg/RenderSVGGradientStop.cpp: Copied from Source/WebCore/rendering/RenderSVGGradientStop.cpp.
2301 * rendering/svg/RenderSVGGradientStop.h: Copied from Source/WebCore/rendering/RenderSVGGradientStop.h.
2302 * rendering/svg/RenderSVGHiddenContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGHiddenContainer.cpp.
2303 * rendering/svg/RenderSVGHiddenContainer.h: Copied from Source/WebCore/rendering/RenderSVGHiddenContainer.h.
2304 * rendering/svg/RenderSVGImage.cpp: Copied from Source/WebCore/rendering/RenderSVGImage.cpp.
2305 * rendering/svg/RenderSVGImage.h: Copied from Source/WebCore/rendering/RenderSVGImage.h.
2306 * rendering/svg/RenderSVGModelObject.cpp: Copied from Source/WebCore/rendering/RenderSVGModelObject.cpp.
2307 * rendering/svg/RenderSVGModelObject.h: Copied from Source/WebCore/rendering/RenderSVGModelObject.h.
2308 * rendering/svg/RenderSVGResource.cpp: Copied from Source/WebCore/rendering/RenderSVGResource.cpp.
2309 * rendering/svg/RenderSVGResource.h: Copied from Source/WebCore/rendering/RenderSVGResource.h.
2310 * rendering/svg/RenderSVGResourceClipper.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceClipper.cpp.
2311 * rendering/svg/RenderSVGResourceClipper.h: Copied from Source/WebCore/rendering/RenderSVGResourceClipper.h.
2312 * rendering/svg/RenderSVGResourceContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceContainer.cpp.
2313 * rendering/svg/RenderSVGResourceContainer.h: Copied from Source/WebCore/rendering/RenderSVGResourceContainer.h.
2314 * rendering/svg/RenderSVGResourceFilter.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceFilter.cpp.
2315 * rendering/svg/RenderSVGResourceFilter.h: Copied from Source/WebCore/rendering/RenderSVGResourceFilter.h.
2316 * rendering/svg/RenderSVGResourceFilterPrimitive.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceFilterPrimitive.cpp.
2317 * rendering/svg/RenderSVGResourceFilterPrimitive.h: Copied from Source/WebCore/rendering/RenderSVGResourceFilterPrimitive.h.
2318 * rendering/svg/RenderSVGResourceGradient.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceGradient.cpp.
2319 * rendering/svg/RenderSVGResourceGradient.h: Copied from Source/WebCore/rendering/RenderSVGResourceGradient.h.
2320 * rendering/svg/RenderSVGResourceLinearGradient.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceLinearGradient.cpp.
2321 * rendering/svg/RenderSVGResourceLinearGradient.h: Copied from Source/WebCore/rendering/RenderSVGResourceLinearGradient.h.
2322 * rendering/svg/RenderSVGResourceMarker.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceMarker.cpp.
2323 * rendering/svg/RenderSVGResourceMarker.h: Copied from Source/WebCore/rendering/RenderSVGResourceMarker.h.
2324 * rendering/svg/RenderSVGResourceMasker.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceMasker.cpp.
2325 * rendering/svg/RenderSVGResourceMasker.h: Copied from Source/WebCore/rendering/RenderSVGResourceMasker.h.
2326 * rendering/svg/RenderSVGResourcePattern.cpp: Copied from Source/WebCore/rendering/RenderSVGResourcePattern.cpp.
2327 * rendering/svg/RenderSVGResourcePattern.h: Copied from Source/WebCore/rendering/RenderSVGResourcePattern.h.
2328 * rendering/svg/RenderSVGResourceRadialGradient.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceRadialGradient.cpp.
2329 * rendering/svg/RenderSVGResourceRadialGradient.h: Copied from Source/WebCore/rendering/RenderSVGResourceRadialGradient.h.
2330 * rendering/svg/RenderSVGResourceSolidColor.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceSolidColor.cpp.
2331 * rendering/svg/RenderSVGResourceSolidColor.h: Copied from Source/WebCore/rendering/RenderSVGResourceSolidColor.h.
2332 * rendering/svg/RenderSVGRoot.cpp: Copied from Source/WebCore/rendering/RenderSVGRoot.cpp.
2333 * rendering/svg/RenderSVGRoot.h: Copied from Source/WebCore/rendering/RenderSVGRoot.h.
2334 * rendering/svg/RenderSVGShadowTreeRootContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGShadowTreeRootContainer.cpp.
2335 * rendering/svg/RenderSVGShadowTreeRootContainer.h: Copied from Source/WebCore/rendering/RenderSVGShadowTreeRootContainer.h.
2336 * rendering/svg/RenderSVGTransformableContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGTransformableContainer.cpp.
2337 * rendering/svg/RenderSVGTransformableContainer.h: Copied from Source/WebCore/rendering/RenderSVGTransformableContainer.h.
2338 * rendering/svg/RenderSVGViewportContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGViewportContainer.cpp.
2339 * rendering/svg/RenderSVGViewportContainer.h: Copied from Source/WebCore/rendering/RenderSVGViewportContainer.h.
2340 * rendering/svg/SVGImageBufferTools.cpp: Copied from Source/WebCore/rendering/SVGImageBufferTools.cpp.
2341 * rendering/svg/SVGImageBufferTools.h: Copied from Source/WebCore/rendering/SVGImageBufferTools.h.
2342 * rendering/svg/SVGMarkerData.h: Copied from Source/WebCore/rendering/SVGMarkerData.h.
2343 * rendering/svg/SVGMarkerLayoutInfo.cpp: Copied from Source/WebCore/rendering/SVGMarkerLayoutInfo.cpp.
2344 * rendering/svg/SVGMarkerLayoutInfo.h: Copied from Source/WebCore/rendering/SVGMarkerLayoutInfo.h.
2345 * rendering/svg/SVGRenderSupport.cpp: Copied from Source/WebCore/rendering/SVGRenderSupport.cpp.
2346 * rendering/svg/SVGRenderSupport.h: Copied from Source/WebCore/rendering/SVGRenderSupport.h.
2347 * rendering/svg/SVGRenderTreeAsText.cpp: Copied from Source/WebCore/rendering/SVGRenderTreeAsText.cpp.
2348 * rendering/svg/SVGRenderTreeAsText.h: Copied from Source/WebCore/rendering/SVGRenderTreeAsText.h.
2349 * rendering/svg/SVGResources.cpp: Copied from Source/WebCore/rendering/SVGResources.cpp.
2350 * rendering/svg/SVGResources.h: Copied from Source/WebCore/rendering/SVGResources.h.
2351 * rendering/svg/SVGResourcesCache.cpp: Copied from Source/WebCore/rendering/SVGResourcesCache.cpp.
2352 * rendering/svg/SVGResourcesCache.h: Copied from Source/WebCore/rendering/SVGResourcesCache.h.
2353 * rendering/svg/SVGResourcesCycleSolver.cpp: Copied from Source/WebCore/rendering/SVGResourcesCycleSolver.cpp.
2354 * rendering/svg/SVGResourcesCycleSolver.h: Copied from Source/WebCore/rendering/SVGResourcesCycleSolver.h.
2355 * rendering/svg/SVGShadowTreeElements.cpp: Copied from Source/WebCore/rendering/SVGShadowTreeElements.cpp.
2356 * rendering/svg/SVGShadowTreeElements.h: Copied from Source/WebCore/rendering/SVGShadowTreeElements.h.
2358 2011-01-09 Xianzhu Wang <phnixwxz@gmail.com>
2360 Reviewed by Darin Fisher.
2362 https://bugs.webkit.org/show_bug.cgi?id=41441
2363 createWindow method should only do window-creating without URL navigation.
2364 Let client APIs know which URL a new window will start with
2366 * loader/FrameLoader.cpp:
2367 (WebCore::createWindow):
2368 * page/ContextMenuController.cpp:
2369 (WebCore::openNewWindow):
2370 * page/DOMWindow.cpp:
2371 (WebCore::DOMWindow::createWindow):
2373 2011-01-09 Dirk Schulze <krit@webkit.org>
2375 Unreviewed sort of Xcode project file.
2377 * WebCore.xcodeproj/project.pbxproj:
2379 2011-01-09 Amruth Raj <amruthraj@motorola.com> and Ravi Phaneendra Kasibhatla <ravi.kasibhatla@motorola.com>
2381 Reviewed by Martin Robinson.
2383 Changes to add Process Launcher and Thread Launcher implementation to the WebKit2 GTK port.
2384 https://bugs.webkit.org/show_bug.cgi?id=48511
2386 * platform/FileSystem.h:
2387 * platform/gtk/FileSystemGtk.cpp: Implement function to get a binary's path
2388 (WebCore::applicationDirectoryPath):
2390 2011-01-08 Martin Robinson <mrobinson@igalia.com>
2392 GTK+ Build fix. Add missing headers to the source list, fixing make dist.
2394 No new tests. This is only a build change.
2396 * GNUmakefile.am: Add missing headers to the source list.
2398 2011-01-08 Amruth Raj <amruthraj@motorola.com> and Ravi Phaneendra Kasibhatla <ravi.kasibhatla@motorola.com>
2400 Reviewed by Martin Robinson.
2402 [GTK] WebKit2 GNUmakefile is out of date from trunk
2403 https://bugs.webkit.org/show_bug.cgi?id=51883
2405 Added stubs for WebKit2 compilation.
2407 * platform/gtk/ContextMenuGtk.cpp:
2408 (WebCore::contextMenuItemVector):
2409 * platform/gtk/ContextMenuItemGtk.cpp:
2410 (WebCore::ContextMenuItem::ContextMenuItem):
2411 (WebCore::ContextMenuItem::checked):
2412 (WebCore::ContextMenuItem::enabled):
2413 * platform/network/soup/AuthenticationChallenge.h:
2414 (WebCore::AuthenticationChallenge::authenticationClient):
2416 2011-01-08 Helder Correia <helder@sencha.com>
2418 Reviewed by Simon Fraser.
2420 Shadow is not drawn when filling a path with a gradient
2421 https://bugs.webkit.org/show_bug.cgi?id=51982
2423 This happens in CG and is related to bug 51869, this time to be fixed
2424 in GraphicsContext::fillPath(const Path& path). We need to draw the
2425 gradient clipped to the path on a CGLayer first, and then draw the
2426 layer on the GraphicsContext.
2428 Test: fast/canvas/canvas-fillPath-gradient-shadow.html
2430 * platform/graphics/cg/GraphicsContextCG.cpp:
2431 (WebCore::GraphicsContext::fillPath):
2433 2011-01-08 Benjamin Poulain <benjamin.poulain@nokia.com>
2435 Reviewed by Kenneth Rohde Christiansen.
2437 [Qt] PasteboardQt.cpp has coding-style errors
2438 https://bugs.webkit.org/show_bug.cgi?id=39771
2440 Update the code to follow the coding style.
2442 * platform/qt/PasteboardQt.cpp:
2443 (WebCore::Pasteboard::writeSelection):
2444 (WebCore::Pasteboard::plainText):
2445 (WebCore::Pasteboard::writePlainText):
2446 (WebCore::Pasteboard::writeURL):
2448 2011-01-08 Tony Gentilcore <tonyg@chromium.org>
2450 Reviewed by Eric Seidel.
2452 HTML5 Conformance Test failure: approved/xhtml5/html_style_in_comment.xhtml
2453 https://bugs.webkit.org/show_bug.cgi?id=48593
2455 XHTML <style> blocks, unlike HTML <style> blocks, should respect HTML
2458 Test: fast/parser/xhtml-html-comment-in-style-block.xhtml
2460 * dom/StyleElement.cpp:
2461 (WebCore::isValidStyleChild): Remove the COMMENT_NODE check as the HTML parser doesn't add COMMENT_NODEs as children of style blocks.
2462 (WebCore::StyleElement::process): Factored out a condition that must remain in sync.
2464 2011-01-08 Benjamin Poulain <benjamin.poulain@nokia.com>
2466 Reviewed by Kenneth Rohde Christiansen.
2468 [Qt] Navigator.cookiesEnabled return true for Qt even if there is no cookie jar
2469 https://bugs.webkit.org/show_bug.cgi?id=52081
2471 Test for the availability of cookie jar to return if cookies are enabled or not. The network access
2472 manager always exist, not the cookie jar.
2474 * platform/qt/CookieJarQt.cpp:
2475 (WebCore::cookiesEnabled):
2477 2011-01-08 Charlie Reis <creis@chromium.org>
2479 Reviewed by Mihai Parparita.
2481 Canceled frame loads can corrupt back forward list
2482 https://bugs.webkit.org/show_bug.cgi?id=50254
2484 Avoids changing m_currentItem until the navigation commits.
2485 Also resets top-level history items if a subframe navigation is canceled.
2487 * WebCore/loader/FrameLoader.cpp:
2488 (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
2489 * WebCore/loader/HistoryController.cpp:
2490 * WebCore/loader/HistoryController.h:
2492 2011-01-08 Chang Shu <chang.shu@nokia.com>
2494 Reviewed by Kenneth Rohde Christiansen.
2496 Support createTouchList with Touch list for test automation.
2497 Implemented JS/V8 custom functions for createTouchList.
2498 https://bugs.webkit.org/show_bug.cgi?id=51196
2500 * bindings/js/JSDocumentCustom.cpp:
2501 (WebCore::JSDocument::createTouchList):
2502 * bindings/v8/custom/V8DocumentCustom.cpp:
2503 (WebCore::V8Document::createTouchListCallback):
2505 * dom/TouchEvent.cpp:
2506 (WebCore::TouchEvent::initTouchEvent):
2508 2011-01-08 Benjamin Poulain <benjamin.poulain@nokia.com>
2510 Reviewed by Kenneth Rohde Christiansen.
2512 [Qt] CookieJarQt.cpp has coding-style errors
2513 https://bugs.webkit.org/show_bug.cgi?id=39778
2515 Improve the coding style of CookieJarQt.cpp.
2517 * platform/qt/CookieJarQt.cpp:
2518 (WebCore::networkAccessManager):
2519 (WebCore::cookiesEnabled):
2521 2011-01-08 Jeff Miller <jeffm@apple.com>
2523 Rubber-stamped by Dan Bernstein.
2525 Fix QTMovieWin.vcproj to account for moving WebCore to Source\WebCore
2526 https://bugs.webkit.org/show_bug.cgi?id=52114
2528 * WebCore.vcproj/QTMovieWin.vcproj:
2529 Add an extra .. to some InheritedPropertySheets entries since WebCore is now one level deeper.
2531 2011-01-08 Dirk Schulze <krit@webkit.org>
2533 Reviewed by Mihai Parparita.
2535 SVG rendering clean up according to the webkit style rules 2
2536 https://bugs.webkit.org/show_bug.cgi?id=52112
2538 Modified the style of the license of all files in WebCore/rendering/svg to match the style
2539 in WebCore/svg. Cleaned up the code according to the webkit style rules.
2541 No change of functionality. No test added.
2543 * rendering/svg/RenderSVGInline.cpp:
2544 * rendering/svg/RenderSVGInline.h:
2545 * rendering/svg/RenderSVGInlineText.cpp:
2546 * rendering/svg/RenderSVGInlineText.h:
2547 * rendering/svg/RenderSVGPath.cpp:
2548 * rendering/svg/RenderSVGPath.h:
2549 * rendering/svg/RenderSVGTSpan.cpp:
2550 * rendering/svg/RenderSVGTSpan.h:
2551 * rendering/svg/RenderSVGText.cpp:
2552 * rendering/svg/RenderSVGText.h:
2553 * rendering/svg/RenderSVGTextPath.cpp:
2554 * rendering/svg/RenderSVGTextPath.h:
2555 * rendering/svg/SVGInlineFlowBox.cpp:
2556 * rendering/svg/SVGInlineFlowBox.h:
2557 * rendering/svg/SVGInlineTextBox.cpp:
2558 * rendering/svg/SVGInlineTextBox.h:
2559 * rendering/svg/SVGRootInlineBox.cpp:
2560 * rendering/svg/SVGRootInlineBox.h:
2561 * rendering/svg/SVGTextLayoutEngineBaseline.cpp: Brace was misplaced accoring to check-webkit-style.
2562 (WebCore::SVGTextLayoutEngineBaseline::calculateGlyphOrientationAngle):
2563 * rendering/svg/SVGTextQuery.cpp:
2564 * rendering/svg/SVGTextQuery.h:
2566 2011-01-08 Dirk Schulze <krit@webkit.org>
2568 Reviewed by Mihai Parparita.
2570 SVG rendering clean up according to the webkit style rules
2571 https://bugs.webkit.org/show_bug.cgi?id=52107
2573 Cleanup of the SVG rendering code according to the webbkit style rules.
2574 Changed style of licensing texts to match the style in WebCore/svg, no change
2575 of the licensing text itself.
2577 * rendering/RenderForeignObject.cpp:
2578 * rendering/RenderForeignObject.h:
2579 * rendering/RenderSVGBlock.cpp:
2580 * rendering/RenderSVGBlock.h:
2581 * rendering/RenderSVGContainer.cpp:
2582 * rendering/RenderSVGContainer.h:
2583 * rendering/RenderSVGGradientStop.cpp:
2584 * rendering/RenderSVGGradientStop.h:
2585 * rendering/RenderSVGHiddenContainer.cpp:
2586 * rendering/RenderSVGHiddenContainer.h:
2587 (WebCore::RenderSVGHiddenContainer::renderName):
2588 (WebCore::RenderSVGHiddenContainer::isSVGHiddenContainer):
2589 (WebCore::RenderSVGHiddenContainer::requiresLayer):
2590 (WebCore::RenderSVGHiddenContainer::clippedOverflowRectForRepaint):
2591 * rendering/RenderSVGImage.cpp:
2592 * rendering/RenderSVGImage.h:
2593 * rendering/RenderSVGModelObject.h:
2594 * rendering/RenderSVGResource.cpp:
2595 * rendering/RenderSVGResource.h:
2596 * rendering/RenderSVGResourceClipper.cpp:
2597 * rendering/RenderSVGResourceClipper.h:
2598 * rendering/RenderSVGResourceContainer.cpp:
2599 * rendering/RenderSVGResourceContainer.h:
2600 * rendering/RenderSVGResourceFilter.cpp:
2601 * rendering/RenderSVGResourceFilter.h:
2602 * rendering/RenderSVGResourceFilterPrimitive.cpp:
2603 * rendering/RenderSVGResourceFilterPrimitive.h:
2604 * rendering/RenderSVGResourceGradient.cpp:
2605 * rendering/RenderSVGResourceGradient.h:
2606 * rendering/RenderSVGResourceLinearGradient.cpp:
2607 * rendering/RenderSVGResourceLinearGradient.h:
2608 * rendering/RenderSVGResourceMarker.cpp:
2609 * rendering/RenderSVGResourceMarker.h:
2610 * rendering/RenderSVGResourceMasker.cpp:
2611 * rendering/RenderSVGResourceMasker.h:
2612 * rendering/RenderSVGResourcePattern.cpp:
2613 * rendering/RenderSVGResourcePattern.h:
2614 * rendering/RenderSVGResourceRadialGradient.cpp:
2615 * rendering/RenderSVGResourceRadialGradient.h:
2616 * rendering/RenderSVGResourceSolidColor.cpp:
2617 * rendering/RenderSVGResourceSolidColor.h:
2618 * rendering/RenderSVGRoot.cpp:
2619 (WebCore::RenderSVGRoot::nodeAtPoint):
2620 * rendering/RenderSVGRoot.h:
2621 * rendering/RenderSVGShadowTreeRootContainer.cpp:
2622 * rendering/RenderSVGShadowTreeRootContainer.h:
2623 * rendering/RenderSVGTransformableContainer.cpp:
2624 (WebCore::RenderSVGTransformableContainer::calculateLocalTransform):
2625 * rendering/RenderSVGTransformableContainer.h:
2626 (WebCore::RenderSVGTransformableContainer::localToParentTransform):
2627 (WebCore::RenderSVGTransformableContainer::setNeedsTransformUpdate):
2628 (WebCore::RenderSVGTransformableContainer::localTransform):
2629 * rendering/RenderSVGViewportContainer.cpp:
2630 * rendering/RenderSVGViewportContainer.h:
2631 * rendering/SVGImageBufferTools.cpp:
2632 * rendering/SVGImageBufferTools.h:
2633 * rendering/SVGMarkerData.h:
2634 * rendering/SVGMarkerLayoutInfo.cpp:
2635 * rendering/SVGMarkerLayoutInfo.h:
2636 * rendering/SVGRenderSupport.cpp:
2637 * rendering/SVGRenderSupport.h:
2638 * rendering/SVGRenderTreeAsText.cpp:
2639 (WebCore::operator<<):
2640 * rendering/SVGRenderTreeAsText.h:
2641 * rendering/SVGResources.cpp:
2642 * rendering/SVGResources.h:
2643 * rendering/SVGResourcesCache.cpp:
2644 * rendering/SVGResourcesCache.h:
2645 * rendering/SVGResourcesCycleSolver.cpp:
2646 * rendering/SVGResourcesCycleSolver.h:
2647 * rendering/SVGShadowTreeElements.cpp:
2648 * rendering/SVGShadowTreeElements.h:
2650 2011-01-07 Adam Barth <abarth@webkit.org>
2652 Rubber-stamped by Eric Seidel.
2654 Move WebCore to Source
2655 https://bugs.webkit.org/show_bug.cgi?id=52050
2657 Update project files to understand WebCore's new location. I suspect
2658 there will be some follow-up patches after we land this patch.
2660 * Android.derived.jscbindings.mk:
2661 * Android.jscbindings.mk:
2662 * Android.v8bindings.mk:
2664 * WebCore.gyp/WebCore.gyp:
2667 * WebCore.vcproj/WebCore.vcproj:
2668 * WebCore.vcproj/WebCoreGeneratedCairo.vsprops:
2669 * WebCore.vcproj/WebCoreGeneratedCommon.vsprops:
2671 2011-01-07 Justin Garcia <justin.garcia@apple.com>
2673 Reviewed by Dan Bernstein.
2675 https://bugs.webkit.org/show_bug.cgi?id=51851
2676 Implement RenderSVGInlineText::localCaretRect()
2678 * rendering/svg/RenderSVGInlineText.cpp:
2679 (WebCore::RenderSVGInlineText::localCaretRect): Implemented.
2681 2011-01-07 Ryosuke Niwa <rniwa@webkit.org>
2683 Unreviewed; Added the missing null pointer check for r75293.
2686 (WebCore::Document::adoptNode):
2688 2011-01-07 Stephanie Lewis <slewis@apple.com>
2690 Reviewed by Geoff Garen.
2692 <rdar://problem/8649617> Migrate memory tracking from Safari to WebKit
2693 https://bugs.webkit.org/show_bug.cgi?id=50799 Add Memory Sampler to WebKit
2695 Add a sampler for printing off process memory statistics.
2700 2011-01-06 Ryosuke Niwa <rniwa@webkit.org>
2702 Reviewed by Adam Barth.
2704 onbeforeunload is broken for framesets
2705 https://bugs.webkit.org/show_bug.cgi?id=19418
2707 Added beforeunload event support for sub frames. WebKit's implementation tries to match
2708 that of Internet Explorer as much as possible. beforeunload event is fired for each and
2709 every descendent of a frame that is about to navigate.
2711 When a value other than null is returned by a beforeunload handler, a confirmation dialog
2712 is shown for each handler (calls chrome's runBeforeUnloadConfirmPanel) just like it is done
2715 In addition, navigation is forbidden while beforeunload handlers are being called.
2716 Setting values to location.href, location.reload, and other means of navigations are thus
2717 ignored while beforeunload event handler is being ran, matching Internet Explorer's behavior.
2719 Because navigation needs to prevented globally, NavigationDisablerForBeforeUnload is added to
2720 NavigationScheduler.h, which is instantiated as a RAII object in FrameLoader::shouldClose.
2722 Tests: fast/events/before-unload-adopt-subframe-to-outside.html
2723 fast/events/before-unload-adopt-within-subframes.html
2724 fast/events/before-unload-forbidden-navigation.html
2725 fast/events/before-unload-in-multiple-subframes.html
2726 fast/events/before-unload-in-subframe.html
2727 fast/events/before-unload-javascript-navigation.html
2728 fast/events/before-unload-remove-and-add-subframe.html
2729 fact/events/before-unload-remove-itself.html
2730 fast/events/before-unload-with-subframes.html
2732 * loader/FrameLoader.cpp:
2733 (WebCore::FrameLoader::shouldClose): Calls fireBeforeUnloadEvent on m_frame and m_frame's
2734 descendents. Returns true only if every call to fireBeforeUnloadEvent returned true.
2735 (WebCore::FrameLoader::fireBeforeUnloadEvent): Fires a beforeunload event and calls
2736 chrome's runBeforeUnloadConfirmPanel as needed.
2737 (WebCore::FrameLoader::continueLoadAfterNavigationPolicy): Calls shouldClose for all frames.
2738 * loader/FrameLoader.h:
2739 * loader/NavigationScheduler.cpp:
2740 (WebCore::NavigationScheduler::shouldScheduleNavigation): Checks the nullity of Page and calls
2741 NavigationDisablerForBeforeUnload::isNavigationAllowed when url is not javascript scheme.
2742 (WebCore::NavigationScheduler::scheduleRedirect): Calls shouldScheduleNavigation.
2743 (WebCore::NavigationScheduler::scheduleLocationChange): Ditto.
2744 (WebCore::NavigationScheduler::scheduleRefresh): Ditto.
2745 (WebCore::NavigationScheduler::scheduleHistoryNavigation): Ditto.
2746 * loader/NavigationScheduler.h:
2747 (WebCore::NavigationDisablerForBeforeUnload::NavigationDisablerForBeforeUnload): Disables navigation.
2748 (WebCore::NavigationDisablerForBeforeUnload::~NavigationDisablerForBeforeUnload): Enables navigation
2749 when called on the last instance of NavigationDisablerForBeforeUnload.
2750 (WebCore::NavigationDisablerForBeforeUnload::isNavigationAllowed): Returns true if there are no instance
2751 of NavigationDisablerForBeforeUnload left on the stack.
2753 2011-01-07 Martin Robinson <mrobinson@igalia.com>
2757 * GNUmakefile.am: Add RenderFullScreen.cpp to the sources list.
2758 * rendering/RenderFullScreen.cpp:
2759 (RenderFullScreen::setAnimating): Guard the call to contentChanged
2760 with ENABLED(ACCELERATED_COMPOSITING).
2762 2011-01-07 Ryosuke Niwa <rniwa@webkit.org>
2764 Unreviewed; speculative fix for Windows debug build.
2766 * bindings/js/JSBindingsAllInOne.cpp:
2768 2011-01-07 Ryosuke Niwa <rniwa@webkit.org>
2770 Reviewed by Ojan Vafai.
2772 Adopting an iframe to a child frame results in stack overflow
2773 https://bugs.webkit.org/show_bug.cgi?id=52018
2775 Throws an exception when a document adopts an iframe that is an ancestor
2776 of the document in the frame hierarchy. New behavior matches that of Firefox.
2778 Test: fast/html/adopt-parent-frame.html
2781 (WebCore::Document::adoptNode):
2783 2011-01-07 Mihai Parparita <mihaip@chromium.org>
2785 Reviewed by Darin Fisher.
2787 [Chromium] Scrollbar code cleanup
2788 https://bugs.webkit.org/show_bug.cgi?id=52073
2790 Scrollbar code cleanup:
2791 - Remove ScrollbarThemeMac.{mm|h} from the mac sources list, we use
2792 ScrollbarThemeChromiumMac.{mm|h}
2793 - Remove USE_WEB_THEME_ENGINE_TO_PAINT_THUMB #define now that switch to
2794 WebThemeEngine is permanent
2795 - Fix typo in Linux scrollbar enum name
2797 No new tests (compiles).
2800 * platform/chromium/ChromiumBridge.h:
2801 * platform/chromium/ScrollbarThemeChromiumLinux.cpp:
2802 (WebCore::ScrollbarThemeChromiumLinux::paintTrackPiece):
2803 * platform/chromium/ScrollbarThemeChromiumMac.mm:
2804 (WebCore::scrollbarStateToThemeState):
2805 (WebCore::ScrollbarThemeChromiumMac::paint):
2807 2011-01-07 Jer Noble <jer.noble@apple.com>
2809 GTK Linux build fix: isDocumentRunningFullScreenAnimation should
2810 be protected both by ENABLE(FULLSCREEN_API) && USE(ACCELERATED_COMPOSITING)
2812 * page/FrameView.cpp:
2814 2011-01-07 Rafael Weinstein <rafaelw@chromium.org>
2816 Reviewed by Eric Seidel.
2818 Cleanup: Fold shadowParentNode into shadowHost
2819 https://bugs.webkit.org/show_bug.cgi?id=51059
2821 Replaces all uses of shadowParentNode.
2823 No new tests because no behavior has changed.
2825 * css/CSSStyleSelector.cpp:
2826 (WebCore::CSSStyleSelector::initForStyleResolve):
2828 (WebCore::Node::shadowHost):
2829 (WebCore::Node::shadowAncestorNode):
2830 (WebCore::eventTargetRespectingSVGTargetRules):
2831 (WebCore::Node::getEventAncestors):
2833 * editing/Editor.cpp:
2834 (WebCore::Editor::findString):
2835 * page/DragController.cpp:
2836 (WebCore::asFileInput):
2837 * page/EventHandler.cpp:
2838 (WebCore::EventHandler::handleMousePressEvent):
2839 (WebCore::instanceAssociatedWithShadowTreeElement):
2840 (WebCore::EventHandler::dispatchMouseEvent):
2841 * rendering/RenderBlock.cpp:
2842 (WebCore::RenderBlock::hasLineIfEmpty):
2843 * rendering/RenderSVGShadowTreeRootContainer.cpp:
2844 (WebCore::RenderSVGShadowTreeRootContainer::updateFromElement):
2845 * svg/SVGStyledElement.cpp:
2846 (WebCore::SVGStyledElement::title):
2848 2011-01-07 Chris Marrin <cmarrin@apple.com>
2852 I mistakenly included a Windows only file in a
2853 cross platform file.
2855 * platform/graphics/ca/GraphicsLayerCA.cpp:
2857 2011-01-07 Chris Marrin <cmarrin@apple.com>
2861 Get rid of include of <QuartzCore/QuartzCore.h>
2863 * platform/graphics/ca/GraphicsLayerCA.cpp:
2865 2011-01-07 Jer Noble <jer.noble@apple.com>
2867 Further build fixes. Add a ENABLE(FULLSCREEN_API) guard around
2868 the implementation of requiresCompositingfForFullScreen.
2870 * rendering/RenderLayerCompositor.cpp:
2871 (WebCore::RenderLayerCompositor::requiresCompositingForFullScreen):
2873 2011-01-07 Jer Noble <jer.noble@apple.com>
2875 No review, build fix only. Removed parameter who was causing
2876 a warning in Release builds.
2879 (WebCore::Document::webkitDidExitFullScreenForElement):
2881 2011-01-07 Chris Marrin <cmarrin@apple.com>
2885 Use new wkCACFLayerGetContextUserData function
2887 * platform/graphics/ca/win/PlatformCALayerWin.cpp:
2889 2011-01-07 James Robinson <jamesr@chromium.org>
2891 Fix compile bustage due to bad merge in 75276.
2893 * page/animation/AnimationController.cpp:
2894 (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime):
2896 2010-12-17 Jer Noble <jer@kokode.apple.com>
2898 Reviewed by Simon Fraser.
2900 Implement WebKit Full Screen support.
2901 https://bugs.webkit.org/show_bug.cgi?id=49481
2902 rdar://problem/8247444
2904 Mark for export all those WebCore functions needed by WebFullscreenController.
2908 2010-12-17 Jer Noble <jer@kokode.apple.com>
2910 Reviewed by Simon Fraser.
2912 Implement WebKit Full Screen support.
2913 https://bugs.webkit.org/show_bug.cgi?id=49481
2914 rdar://problem/8247444
2916 screenRect is useful for more than just HTMLMediaElements. Promote it into
2919 * dom/Element.cpp: Moved into Element from HTMLMediaElement.
2920 * dom/Element.h: Ditto.
2922 * html/HTMLMediaElement.cpp: Moved screenRect into Element.
2923 * html/HTMLMediaElement.h: Ditto.
2924 * WebCore.exp.in: Modify the exports list to reflect the new symbol name.
2926 2010-12-17 Jer Noble <jer@kokode.apple.com>
2928 Reviewed by Simon Fraser.
2930 Implement WebKit Full Screen support.
2931 https://bugs.webkit.org/show_bug.cgi?id=49481
2932 rdar://problem/8247444
2934 The RenderFullScreen is intended to be used by clients of that API to allow a DOM subtree to
2935 be rendered outside its original Frame. Because of this, there are a few areas of the
2936 rendering code which need to be special cased: RenderFullScreen layers should not be clipped
2937 to the viewport, as they will almost always be rendering outside the viewport area;
2938 RenderFullScreen graphics layers should not be reparented by the RenderLayerCompositor, as
2939 the client will likely want to reparent the platformLayer into their own fullscreen platform
2940 window; the FrameView must update the RenderFullScreen graphics layer tree separately from
2941 the root layer, as the two trees are disconnected.
2943 * page/FrameView.cpp:
2944 (WebCore::FrameView::updateCompositingLayers): Special treatment for fullscreen renderer.
2945 (WebCore::FrameView::syncCompositingStateRecursive): Ditto.
2946 (WebCore::FrameView::paintContents): Ditto.
2947 * rendering/RenderLayer.h: Add a new ContentChangeType enum entry for FullScreen.
2948 * rendering/RenderLayer.cpp:
2949 (WebCore::RenderLayer::contentChanged): Add support for above.
2950 * rendering/RenderLayerBacking.cpp:
2951 (WebCore::layerOrAncestorIsFullScreen): New function.
2952 (WebCore::RenderLayerBacking::updateCompositedBounds): Do not clip if the layerOrAncestorIsFullScreen.
2953 * rendering/RenderLayerCompositor.cpp:
2954 (WebCore::RenderLayerCompositor::rebuildCompositingLayerTree): Special treatment for fullscreen renderer.
2955 (WebCore::RenderLayerCompositor::requiresCompositingLayer): Ditto.
2956 (WebCore::RenderLayerCompositor::requiresCompositingForFullScreen): Ditto.
2957 * rendering/RenderLayerCompositor.h:
2959 2010-12-17 Jer Noble <jer@kokode.apple.com>
2961 Reviewed by Simon Fraser.
2963 Implemented non-accelerated fullscreen support. The Document will now vend a RenderFullScreen object for clients to
2964 use to relocate the fullscreen element subtree.
2966 https://bugs.webkit.org/show_bug.cgi?id=49481
2967 rdar://problem/8247444
2969 * css/CSSStyleSelector.cpp:
2970 (WebCore::loadFullScreenRulesIfNeeded): Change webkitFullScreen -> webkitIsFullScreen.
2971 (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector): Ditto.
2973 (WebCore::Document::Document): Initialize m_fullScreenRenderer.
2974 (WebCore::Document::detach): Call setFullScreenRenderer(0).
2975 (WebCore::Document::nodeWillBeRemoved): Replicate the logic in webkitWillEnterFullScreenForElement.
2976 (WebCore::Document::webkitWillEnterFullScreenForElement): Detach the fullscreen element to cause
2977 a new RenderFullScreen renderer to be created with the new fullscreen element.
2978 (WebCore::Document::webkitDidEnterFullScreenForElement): Notify clients of a fullscreen change
2979 here, rather in "willEnter", to avoid reentrancy problems when clients remove nodes in response
2980 to webkitfullscreenchange events.
2981 (WebCore::Document::webkitWillExitFullScreenForElement): Recalculate the fullscreen element's style.
2982 (WebCore::Document::webkitDidExitFullScreenForElement): Ditto.
2983 (WebCore::Document::setFullScreenRenderer): Accessor for m_fullScreenRenderer.
2984 (WebCore::Document::setFullScreenRendererSize): Set the style on the m_fullScreenRenderer with a new
2985 size; this keeps clients from having to access the renderer's style directly.
2986 (WebCore::Document::setFullScreenRendererBackgroundColor): Ditto.
2988 (WebCore::Document::webkitIsFullScreen): Change webkitFullScreen -> webkitIsFullScreen.
2989 (WebCore::Document::fullScreenRenderer): Accessor.
2992 (WebCore::Node::createRendererIfNeeded): If the document is in fullscreen mode, create a RenderFullScreen
2993 object to insert between the fullscreen element and its parent.
2994 * page/ChromeClient.h:
2995 (WebCore::ChromeClient::fullScreenRendererChanged): Added.
2996 * rendering/MediaControlElements.cpp:
2997 (WebCore::MediaControlFullscreenButtonElement::defaultEventHandler): Change webkitFullScreen -> webkitIsFullScreen.
2999 2010-12-17 Jer Noble <jer@kokode.apple.com>
3001 Reviewed by Simon Fraser.
3003 Implement WebKit Full Screen support.
3004 https://bugs.webkit.org/show_bug.cgi?id=49481
3005 rdar://problem/8247444
3007 This patch introduces a new RenderObject type: RenderFullScreen. The RenderFullScreen renderer
3008 will be used to implement new FullScreen APIs. Because the RenderFullScreen object will be the
3009 parent of the current fullscreen element, the style rules for fullscreen objects must change to
3012 * WebCore.xcodeproj/project.pbxproj:
3013 * rendering/RenderFullScreen.cpp: Added.
3014 (RenderFullScreen::setAnimating): Sets the m_isAnimating flag.
3015 (RenderFullScreen::createFullScreenStyle): Returns a new RenderStyle containing the default stye
3016 for RenderFullScreen objects.
3017 * rendering/RenderFullScreen.h: Added.
3018 (WebCore::RenderFullScreen::isRenderFullScreen): Added. Overrides the RenderObject version.
3019 * rendering/RenderObject.h:
3020 (WebCore::RenderObject::isRenderFullScreen): Added. Used for type-checking RenderFullScreen objects.
3021 * css/fullscreen.css: Modified the contained fullscreen styles.
3024 2011-01-07 James Robinson <jamesr@chromium.org>
3026 Revert "Implement mozilla's animationTime property"
3027 https://bugs.webkit.org/show_bug.cgi?id=51952
3029 This approach isn't quite right.
3037 * WebCore.vcproj/WebCore.vcproj:
3038 * WebCore.xcodeproj/project.pbxproj:
3039 * page/DOMWindow.cpp:
3041 * page/DOMWindow.idl:
3045 (WebCore::Page::Page):
3047 * page/animation/AnimationController.cpp:
3048 (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime):
3049 * page/animation/AnimationTimeController.cpp: Removed.
3050 * page/animation/AnimationTimeController.h: Removed.
3052 2011-01-07 Jan Erik Hanssen <jhanssen@sencha.com>
3054 Reviewed by Andreas Kling.
3056 [Qt] Black text on black buttons using a dark theme
3057 https://bugs.webkit.org/show_bug.cgi?id=35024
3059 Implement RenderThemeQt::systemColor to apply the correct colors from the current Qt style.
3061 * platform/qt/RenderThemeQt.cpp:
3062 (WebCore::RenderThemeQt::systemColor):
3063 * platform/qt/RenderThemeQt.h:
3065 2011-01-05 Adrienne Walker <enne@google.com>
3067 Reviewed by Kenneth Russell.
3069 Add WEBKIT_lose_context WebGL extension.
3070 https://bugs.webkit.org/show_bug.cgi?id=51492
3072 Tests: fast/canvas/webgl/context-lost-restored.html
3073 fast/canvas/webgl/context-lost.html
3076 * DerivedSources.make:
3081 * WebCore.xcodeproj/project.pbxproj:
3082 * bindings/js/JSWebGLRenderingContextCustom.cpp:
3084 (WebCore::JSWebGLRenderingContext::getSupportedExtensions):
3085 * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
3086 (WebCore::toV8Object):
3087 (WebCore::V8WebGLRenderingContext::getSupportedExtensionsCallback):
3088 * html/canvas/WebGLExtension.h:
3089 * html/canvas/WebGLRenderingContext.cpp:
3090 (WebCore::WebGLRenderingContext::WebGLRenderingContextRestoreTimer::fired):
3091 (WebCore::WebGLRenderingContext::getExtension):
3092 (WebCore::WebGLRenderingContext::getSupportedExtensions):
3093 (WebCore::WebGLRenderingContext::forceLostContext):
3094 (WebCore::WebGLRenderingContext::onLostContext):
3095 (WebCore::WebGLRenderingContext::getNumberOfExtensions):
3096 (WebCore::WebGLRenderingContext::getExtensionNumber):
3097 * html/canvas/WebGLRenderingContext.h:
3098 * html/canvas/WebKitLoseContext.cpp: Copied from WebCore/html/canvas/WebGLExtension.h.
3099 (WebCore::WebKitLoseContext::WebKitLoseContext):
3100 (WebCore::WebKitLoseContext::~WebKitLoseContext):
3101 (WebCore::WebKitLoseContext::getName):
3102 (WebCore::WebKitLoseContext::create):
3103 (WebCore::WebKitLoseContext::loseContext):
3104 * html/canvas/WebKitLoseContext.h: Copied from WebCore/html/canvas/WebGLExtension.h.
3105 * html/canvas/WebKitLoseContext.idl: Copied from WebCore/html/canvas/WebGLExtension.h.
3107 2011-01-07 Chris Marrin <cmarrin@apple.com>
3111 Build fix for Chromium. Missing include.
3113 * page/animation/AnimationBase.cpp:
3115 2011-01-07 Chris Marrin <cmarrin@apple.com>
3121 * platform/graphics/ca/win/PlatformCALayerWin.cpp:
3123 2011-01-06 Gavin Barraclough <barraclough@apple.com>
3125 Reviewed by Geoff Garen.
3127 Bug 52035 - Unregistering DOMWrapperWorlds is unsafe
3129 The method DOMWrapperWorld::unregisterWorld() effectively calls the DOMWrapperWorld's
3130 destructor early, in order to release wrappers once we know we no longer intend to use them.
3131 Whilst it is okay to have a method to throw away wrappers (assuming we know we're willing to
3132 lose any state stored on them) it is not okay to deregister the world from the JSGlobalData.
3133 A sequence of events that triggers the bug would look like this:
3135 (1) Create a DOMWrapperWorld.
3136 (2) Register a timer in the world.
3137 (3) Call unregisterWorld() on the world.
3138 (4) Timer goes off, code is executed in the world, creates a Node not attached to a Document.
3139 (5) We attempt to lookup a wrapper map for the world on the JSGlobalData, but because we've
3140 called forgetWorld() none exists.
3141 (6) Attempt to add a wrapper to a NULL map.
3143 Fix the problem by not removing the JSGlobalData's wrapper map until the world really goes away.
3146 * bindings/js/DOMWrapperWorld.cpp:
3147 (WebCore::DOMWrapperWorld::DOMWrapperWorld):
3148 (WebCore::DOMWrapperWorld::~DOMWrapperWorld):
3149 (WebCore::DOMWrapperWorld::clearWrappers):
3150 * bindings/js/DOMWrapperWorld.h:
3152 2011-01-07 Chris Marrin <cmarrin@apple.com>
3154 Rubber-stamped by Simon Fraser.
3156 Share code between Mac (CA) and Windows (CACF) GraphicsLayer implementations
3157 https://bugs.webkit.org/show_bug.cgi?id=49388
3159 Final step in unifying GraphicsLayer logic across Win and Mac. This
3160 implements the Windows side classes for PlatformCALayer and supporting
3161 classes. Also changed MediaPlayer to use new PlatformCALayerClient
3162 so it can use PlatformCALayer directly rather than a dummy GraphicsLayer.
3163 WKCACFLayerRenderer now does the task of notifying animations of their
3164 start time. Also commented out an assert in AnimationBase because
3165 AnimationController's frame time is not in sync with the new
3166 AnimationTimeController. I've opened a new bug for that issue:
3168 https://bugs.webkit.org/show_bug.cgi?id=52037
3170 This also includes the Mac side changes backed out in
3171 http://trac.webkit.org/changeset/75227.
3173 * WebCore.vcproj/WebCore.vcproj:
3174 * WebCore.vcproj/WebCoreCommon.vsprops:
3175 * WebCore.vcproj/copyForwardingHeaders.cmd:
3176 * WebCore.xcodeproj/project.pbxproj:
3178 * page/animation/AnimationBase.cpp:
3179 (WebCore::AnimationBase::freezeAtTime):
3180 (WebCore::AnimationBase::getElapsedTime):
3181 * page/animation/AnimationController.cpp:
3182 (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime):
3183 * page/animation/KeyframeAnimation.cpp:
3184 (WebCore::KeyframeAnimation::fetchIntervalEndpointsForProperty):
3185 * platform/graphics/GraphicsLayer.h:
3186 (WebCore::GraphicsLayer::layerDidDisplay):
3187 (WebCore::GraphicsLayer::showDebugBorders):
3188 (WebCore::GraphicsLayer::showRepaintCounter):
3189 * platform/graphics/ca/GraphicsLayerCA.cpp:
3190 (WebCore::GraphicsLayerCA::platformCALayerAnimationStarted):
3191 (WebCore::GraphicsLayerCA::setContentsToImage):
3192 (WebCore::GraphicsLayerCA::setContentsToMedia):
3193 (WebCore::GraphicsLayerCA::layerDidDisplay):
3194 (WebCore::GraphicsLayerCA::updateSublayerList):
3195 * platform/graphics/ca/GraphicsLayerCA.h:
3196 (WebCore::GraphicsLayerCA::platformCALayer):
3197 (WebCore::GraphicsLayerCA::platformCALayerLayoutSublayersOfLayer):
3198 (WebCore::GraphicsLayerCA::platformCALayerRespondsToLayoutChanges):
3199 (WebCore::GraphicsLayerCA::platformCALayerContentsOrientation):
3200 (WebCore::GraphicsLayerCA::platformCALayerPaintContents):
3201 (WebCore::GraphicsLayerCA::platformCALayerShowDebugBorders):
3202 (WebCore::GraphicsLayerCA::platformCALayerShowRepaintCounter):
3203 (WebCore::GraphicsLayerCA::platformCALayerIncrementRepaintCount):
3204 (WebCore::GraphicsLayerCA::platformCALayerContentsOpaque):
3205 (WebCore::GraphicsLayerCA::platformCALayerDrawsContent):
3206 (WebCore::GraphicsLayerCA::platformCALayerLayerDidDisplay):
3207 * platform/graphics/ca/PlatformCAAnimation.h:
3208 * platform/graphics/ca/PlatformCALayer.h:
3209 (WebCore::PlatformCALayer::owner):
3210 (WebCore::PlatformCALayer::animationStarted):
3211 * platform/graphics/ca/PlatformCALayerClient.h: Copied from WebCore/platform/graphics/ca/PlatformCALayerClient.h.
3212 * platform/graphics/ca/mac/PlatformCALayerMac.mm:
3213 (PlatformCALayer::setOwner):
3214 (PlatformCALayer::create):
3215 (PlatformCALayer::PlatformCALayer):
3216 (PlatformCALayer::contents):
3217 (PlatformCALayer::setContents):
3218 * platform/graphics/ca/win: Added.
3219 * platform/graphics/ca/win/PlatformCAAnimationWin.cpp: Added.
3220 * platform/graphics/ca/win/PlatformCALayerWin.cpp: Added.
3221 * platform/graphics/ca/win/PlatformCALayerWinInternal.cpp: Added.
3222 * platform/graphics/ca/win/PlatformCALayerWinInternal.h: Added.
3223 (WebCore::PlatformCALayerWinInternal::owner):
3224 * platform/graphics/mac/WebGLLayer.mm:
3225 (-[WebGLLayer display]):
3226 * platform/graphics/mac/WebLayer.h:
3227 * platform/graphics/mac/WebLayer.mm:
3228 (drawLayerContents):
3229 (setLayerNeedsDisplayInRect):
3230 (-[WebLayer setNeedsDisplay]):
3231 (-[WebLayer display]):
3232 * platform/graphics/mac/WebTiledLayer.mm:
3233 (-[WebTiledLayer setNeedsDisplay]):
3234 (-[WebTiledLayer display]):
3235 * platform/graphics/win/GraphicsContextCGWin.cpp:
3236 (WebCore::CGContextWithHDC):
3237 * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp:
3238 (WebCore::MediaPlayerPrivateFullscreenWindow::setRootChildLayer):
3239 (WebCore::MediaPlayerPrivateFullscreenWindow::wndProc):
3240 * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.h:
3241 (WebCore::MediaPlayerPrivateFullscreenWindow::rootChildLayer):
3242 * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
3243 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::~LayerClient):
3244 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerRespondsToLayoutChanges):
3245 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerAnimationStarted):
3246 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerContentsOrientation):
3247 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerPaintContents):
3248 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerShowDebugBorders):
3249 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerShowRepaintCounter):
3250 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerIncrementRepaintCount):
3251 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerContentsOpaque):
3252 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerDrawsContent):
3253 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerLayerDidDisplay):
3254 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerLayoutSublayersOfLayer):
3255 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::MediaPlayerPrivateQuickTimeVisualContext):
3256 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::platformMedia):
3257 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::retrieveCurrentImage):
3258 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::createLayerForMovie):
3259 * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:
3260 * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
3261 (WebCore::MediaPlayerPrivate::movieNewImageAvailable):
3262 (WebCore::MediaPlayerPrivate::createLayerForMovie):
3263 * platform/graphics/win/WKCACFLayerRenderer.cpp:
3264 (WebCore::WKCACFLayerRenderer::WKCACFLayerRenderer):
3265 (WebCore::WKCACFLayerRenderer::rootLayer):
3266 (WebCore::WKCACFLayerRenderer::addPendingAnimatedLayer):
3267 (WebCore::WKCACFLayerRenderer::setRootChildLayer):
3268 (WebCore::WKCACFLayerRenderer::setNeedsDisplay):
3269 (WebCore::WKCACFLayerRenderer::destroyRenderer):
3270 (WebCore::WKCACFLayerRenderer::render):
3271 * platform/graphics/win/WKCACFLayerRenderer.h:
3272 (WebCore::WKCACFLayerRendererClient::animationsStarted):
3273 (WebCore::WKCACFLayerRendererClient::syncCompositingState):
3274 * rendering/RenderLayerBacking.cpp:
3275 (WebCore::RenderLayerBacking::showDebugBorders):
3276 (WebCore::RenderLayerBacking::showRepaintCounter):
3277 * rendering/RenderLayerCompositor.cpp:
3278 (WebCore::RenderLayerCompositor::ensureRootPlatformLayer):
3279 * rendering/RenderLayerCompositor.h:
3280 (WebCore::RenderLayerCompositor::compositorShowDebugBorders):
3281 (WebCore::RenderLayerCompositor::compositorShowRepaintCounter):
3282 (WebCore::RenderLayerCompositor::notifyAnimationStarted):
3283 (WebCore::RenderLayerCompositor::notifySyncRequired):
3284 (WebCore::RenderLayerCompositor::paintContents):
3285 (WebCore::RenderLayerCompositor::showDebugBorders):
3286 (WebCore::RenderLayerCompositor::showRepaintCounter):
3288 2011-01-07 Nate Chapin <japhet@chromium.org>
3290 Reviewed by Darin Fisher.
3292 Let PingLoader send cookies if FrameLoaderClient permits it.
3293 https://bugs.webkit.org/show_bug.cgi?id=51898
3295 Test: http/tests/navigation/ping-cookie.html
3297 * loader/PingLoader.cpp:
3298 (WebCore::PingLoader::PingLoader): Set m_shouldUseCredentialStorage
3299 at load start time, since we won't be able to call
3300 FrameLoaderClient::shouldUseCredentialStorage() later.
3301 * loader/PingLoader.h:
3302 (WebCore::PingLoader::shouldUseCredentialStorage):
3304 2011-01-07 Xan Lopez <xlopez@igalia.com>
3306 Unreviewed, rolling out r75256.
3307 http://trac.webkit.org/changeset/75256
3308 https://bugs.webkit.org/show_bug.cgi?id=50869
3310 Broke GTK+ canvas tests
3312 * platform/graphics/cairo/PathCairo.cpp:
3313 (WebCore::Path::addArc):
3315 2011-01-07 Carlos Garcia Campos <cgarcia@igalia.com>
3317 Reviewed by Martin Robinson.
3319 [GTK] Port scrollbar painting to GtkStyleContext
3320 https://bugs.webkit.org/show_bug.cgi?id=52051
3322 Use GtkStyleContext API to paint scrollbars when building with
3325 No new tests. This should not change functionality.
3327 * platform/gtk/RenderThemeGtk.h:
3328 * platform/gtk/RenderThemeGtk3.cpp:
3329 (WebCore::RenderThemeGtk::gtkScrollbarStyle):
3330 * platform/gtk/ScrollbarThemeGtk.cpp:
3331 * platform/gtk/ScrollbarThemeGtk.h:
3332 * platform/gtk/ScrollbarThemeGtk2.cpp:
3333 (WebCore::gtkStyleSetCallback):
3334 (WebCore::ScrollbarThemeGtk::ScrollbarThemeGtk):
3335 * platform/gtk/ScrollbarThemeGtk3.cpp:
3336 (WebCore::gtkStyleChangedCallback):
3337 (WebCore::ScrollbarThemeGtk::ScrollbarThemeGtk):
3338 (WebCore::ScrollbarThemeGtk::updateThemeProperties):
3339 (WebCore::ScrollbarThemeGtk::paintTrackBackground):
3340 (WebCore::ScrollbarThemeGtk::paintScrollbarBackground):
3341 (WebCore::ScrollbarThemeGtk::paintThumb):
3342 (WebCore::ScrollbarThemeGtk::paintButton):
3344 2011-01-07 Dan Bernstein <mitz@apple.com>
3346 Reviewed by Darin Adler.
3348 <rdar://problem/8783318> Text emphasis marks should not appear over characters that have ruby annotations
3349 https://bugs.webkit.org/show_bug.cgi?id=51267
3351 Test: fast/text/emphasis-avoid-ruby.html
3353 * rendering/InlineFlowBox.cpp:
3354 (WebCore::InlineFlowBox::placeBoxesInBlockDirection): Use getEmphasisMarkPosition() to check if
3355 there are text emphasis marks.
3356 (WebCore::InlineFlowBox::addTextBoxVisualOverflow): Ditto.
3357 (WebCore::InlineFlowBox::computeOverAnnotationAdjustment): Ditto.
3358 * rendering/InlineTextBox.cpp:
3359 (WebCore::InlineTextBox::getEmphasisMarkPosition): Added. Returns true and sets the emphasis mark
3360 position if the text is style with emphasis marks and there isn’t a ruby annotation that should
3361 suppress them. Otherwise returns false.
3362 (WebCore::InlineTextBox::paint): Use getEmphasisMarkPosition() to check if emphasis marks should
3364 * rendering/InlineTextBox.h:
3366 2011-01-07 Alejandro G. Castro <alex@igalia.com>
3368 Reviewed by Martin Robinson.
3370 [cairo] Rendering a lot of arcs on top of each other causes time
3372 https://bugs.webkit.org/show_bug.cgi?id=50869
3374 We avoid the situation where we have to render the same arc
3375 multiple times over itself. Now it renders just one oval and
3376 moves to the end angle.
3378 * platform/graphics/cairo/PathCairo.cpp:
3379 (WebCore::Path::addArc):
3381 2011-01-07 Carlos Garcia Campos <cgarcia@igalia.com>
3383 Reviewed by Martin Robinson.
3385 [GTK] Port buttons painting to GtkStyleContext
3386 https://bugs.webkit.org/show_bug.cgi?id=51812
3388 Use GtkStyleContext API to paint buttons when building with GTK+
3391 No new tests. This should not change functionality.
3393 * platform/gtk/RenderThemeGtk3.cpp:
3394 (WebCore::adjustRectForFocus):
3395 (WebCore::RenderThemeGtk::adjustRepaintRect):
3396 (WebCore::RenderThemeGtk::paintButton):
3398 2011-01-07 Zhenyao Mo <zmo@google.com>
3400 Unreviewed, build fix.
3402 * html/canvas/WebGLRenderingContext.cpp:
3403 (WebCore::WebGLRenderingContext::copyTexSubImage2D):
3405 2011-01-06 Zhenyao Mo <zmo@google.com>
3407 Reviewed by Kenneth Russell.
3409 copyTexSubImage2D shouldn't have undefined pixels
3410 https://bugs.webkit.org/show_bug.cgi?id=51559
3412 * html/canvas/WebGLRenderingContext.cpp:
3413 (WebCore::WebGLRenderingContext::copyTexImage2D): Refactor to share some code with copyTexSubImage2D through helper function clip2D.
3414 (WebCore::WebGLRenderingContext::copyTexSubImage2D): Initialize undefined pixels to 0.
3415 (WebCore::WebGLRenderingContext::validateTexFuncLevel): Seperate the validation of level from validateTexFuncParameters.
3416 (WebCore::WebGLRenderingContext::validateTexFuncParameters): Ditto.
3417 * html/canvas/WebGLRenderingContext.h:
3418 * html/canvas/WebGLTexture.cpp:
3419 (WebCore::WebGLTexture::getType): Expose the type of a texture.
3420 * html/canvas/WebGLTexture.h:
3422 2011-01-07 Takashi Toyoshima <toyoshim@google.com>
3424 Reviewed by Kenneth Russell.
3426 cleanupAfterGraphicsCall() is never called in
3427 WebGLRenderingContext::checkFramebufferStatus()
3428 https://bugs.webkit.org/show_bug.cgi?id=51668
3430 No new tests. This is a trivial bug.
3432 * html/canvas/WebGLRenderingContext.cpp:
3433 (WebCore::WebGLRenderingContext::checkFramebufferStatus):
3435 2011-01-07 Mario Sanchez Prada <msanchez@igalia.com>
3437 Reviewed by Chris Fleizach.
3439 GTK: AX: atk tests need to be updated after recent changes
3440 https://bugs.webkit.org/show_bug.cgi?id=51932
3442 Make sure we can always get the right accesssible parent for an
3443 AtkObject when traversing the hierarchy bottom up.
3445 * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
3446 (isRootObject): New function to check whether an
3447 AccessibilityObject is the root one or not, according to the
3448 latest changes in the hierarchy.
3449 (atkParentOfRootObject): Gets the appropriate AtkObject from GTK's
3450 GAIL as the parent of the root AtkObject from WebCore.
3451 (webkit_accessible_get_parent): Use atkParentOfRootObject.
3452 (webkit_accessible_get_index_in_parent): Ditto.
3453 (atkRole): Expose AccessibilityObjects with ScrollAreaRole as
3454 AtkObject's of role ATK_ROLE_SCROLLED_PANE.
3456 2011-01-07 Zhenyao Mo <zmo@google.com>
3458 Unreviewed, Mac 32-bit build fix.
3459 Use float instead of double in GL function arguments to avoid implicit type down casting.
3461 * html/canvas/WebGLRenderingContext.cpp:
3462 (WebCore::WebGLRenderingContext::blendColor):
3463 (WebCore::WebGLRenderingContext::clearColor):
3464 (WebCore::WebGLRenderingContext::clearDepth):
3465 (WebCore::WebGLRenderingContext::depthRange):
3466 (WebCore::WebGLRenderingContext::lineWidth):
3467 (WebCore::WebGLRenderingContext::polygonOffset):
3468 (WebCore::WebGLRenderingContext::sampleCoverage):
3469 * html/canvas/WebGLRenderingContext.h:
3470 * html/canvas/WebGLRenderingContext.idl:
3472 2011-01-07 Carlos Garcia Campos <cgarcia@igalia.com> and Martin Robinson <mrobinson@igalia.com>
3474 Reviewed by Xan Lopez.
3476 [GTK] Port slider painting to GtkStyleContext
3477 https://bugs.webkit.org/show_bug.cgi?id=51874
3479 Use GtkStyleContext API to paint sliders when building with GTK+
3480 3.x. Also move the code to adjust media slider to its own method
3481 in RenderThemeGtk.cpp since it's common to both gtk 2 and 3.
3483 No new tests. This should not change functionality.
3485 * platform/gtk/RenderThemeGtk.cpp:
3486 (WebCore::RenderThemeGtk::adjustMediaSliderThumbSize):
3487 * platform/gtk/RenderThemeGtk.h:
3488 * platform/gtk/RenderThemeGtk2.cpp:
3489 (WebCore::RenderThemeGtk::adjustSliderThumbSize):
3490 * platform/gtk/RenderThemeGtk3.cpp:
3491 (WebCore::RenderThemeGtk::paintSliderTrack):
3492 (WebCore::RenderThemeGtk::paintSliderThumb):
3493 (WebCore::RenderThemeGtk::adjustSliderThumbSize):
3495 2011-01-07 Benjamin Poulain <benjamin.poulain@nokia.com>
3497 Reviewed by Andreas Kling.
3499 [Qt] [WK2] QtWebKit does not build in debug, FileReader.cpp does not compile
3500 https://bugs.webkit.org/show_bug.cgi?id=51992
3502 Add the missing header. CString is used in debug by the calls to LOG().
3504 * fileapi/FileReader.cpp:
3506 2011-01-07 Alejandro G. Castro <alex@igalia.com>
3508 Reviewed by Martin Robinson.
3510 Cairo's ContextShadow may mis-render some box shadows
3511 https://bugs.webkit.org/show_bug.cgi?id=51374
3513 The space required for the internal shadow of the corners was not
3514 correctly considered.
3516 * platform/graphics/cairo/ContextShadowCairo.cpp:
3517 (WebCore::ContextShadow::drawRectShadow):
3519 2011-01-06 Adam Barth <abarth@webkit.org>
3521 Reviewed by Darin Adler.
3523 REGRESSION (r74663): ASSERTION FAILED: m_tokenizer->lineNumber() == line.zeroBasedInt()
3524 https://bugs.webkit.org/show_bug.cgi?id=52013
3526 When excluding line numbers for composite strings, we forgot to exclude
3527 the line number for the current string!
3529 Test: fast/parser/line-number-composite-segmented-string.html
3531 * platform/text/SegmentedString.cpp:
3532 (WebCore::SegmentedString::setExcludeLineNumbers):
3534 2011-01-06 Chris Marrin <cmarrin@apple.com>
3538 Back out changes in http://trac.webkit.org/changeset/75199
3539 This breaks the Windows build. Fixing it on that side. Until
3540 then I'll back this out.
3542 2011-01-06 Jenn Braithwaite <jennb@chromium.org>
3544 Reviewed by Dmitry Titov.
3546 When a live frame is moved between pages, some plug-in DOM methods cease to function
3547 https://bugs.webkit.org/show_bug.cgi?id=45770
3549 Test: fast/frames/iframe-reparenting-plugins.html
3552 (WebCore::Frame::~Frame):
3553 (WebCore::Frame::addObserver):
3554 (WebCore::Frame::removeObserver):
3556 (WebCore::FrameDestructionObserver::~FrameDestructionObserver):
3557 Added observer to be notified when frame is destroyed.
3559 (WebCore::Page::~Page):
3560 (WebCore::Page::refreshPlugins):
3561 PluginData no longer stores page pointer.
3562 * plugins/DOMMimeType.cpp:
3563 (WebCore::DOMMimeType::DOMMimeType):
3564 (WebCore::DOMMimeType::~DOMMimeType):
3565 (WebCore::DOMMimeType::enabledPlugin):
3566 * plugins/DOMMimeType.h:
3567 (WebCore::DOMMimeType::create):
3568 (WebCore::DOMMimeType::frameDestroyed):
3569 Store frame instead of page pointer in DOMMimeType.
3570 * plugins/DOMMimeTypeArray.cpp:
3571 (WebCore::DOMMimeTypeArray::item):
3572 (WebCore::DOMMimeTypeArray::namedItem):
3573 Provide frame to create DOMMimeType.
3574 * plugins/DOMPlugin.cpp:
3575 (WebCore::DOMPlugin::DOMPlugin):
3576 (WebCore::DOMPlugin::~DOMPlugin):
3577 (WebCore::DOMPlugin::item):
3578 (WebCore::DOMPlugin::namedItem):
3579 * plugins/DOMPlugin.h:
3580 (WebCore::DOMPlugin::create):
3581 (WebCore::DOMPlugin::frameDestroyed):
3582 Store frame instead of page pointer in DOMPlugin.
3583 * plugins/DOMPluginArray.cpp:
3584 (WebCore::DOMPluginArray::item):
3585 (WebCore::DOMPluginArray::namedItem):
3586 Provide frame to create DOMPlugin.
3587 * plugins/PluginData.cpp:
3588 (WebCore::PluginData::PluginData):
3589 (WebCore::PluginData::initPlugins):
3590 * plugins/PluginData.h:
3591 No longer stores a pointer to the page.
3592 Added page parameter to initPlugins.
3593 * plugins/PluginDataNone.cpp:
3594 (WebCore::PluginData::initPlugins):
3595 * plugins/chromium/PluginDataChromium.cpp:
3596 (WebCore::PluginData::initPlugins):
3597 * plugins/gtk/PluginDataGtk.cpp:
3598 (WebCore::PluginData::initPlugins):
3599 * plugins/wx/PluginDataWx.cpp:
3600 (WebCore::PluginData::initPlugins):
3601 Updated platforms to add (unused) page parameter to initPlugins.
3603 2011-01-05 Zhenyao Mo <zmo@google.com>
3605 Reviewed by Kenneth Russell.
3607 Define GC3D types to match GL types and use them in GraphicsContext3D
3608 https://bugs.webkit.org/show_bug.cgi?id=45557
3610 * html/canvas/WebGLRenderingContext.cpp:
3611 (WebCore::WebGLRenderingContext::readPixels):
3612 (WebCore::WebGLRenderingContext::validateTexFuncData):
3613 * platform/graphics/GraphicsContext3D.cpp:
3614 (WebCore::GraphicsContext3D::texImage2DResourceSafe):
3615 (WebCore::GraphicsContext3D::computeFormatAndTypeParameters):
3616 (WebCore::GraphicsContext3D::extractImageData):
3617 (WebCore::GraphicsContext3D::extractTextureData):
3618 * platform/graphics/GraphicsContext3D.h:
3619 * platform/graphics/cg/GraphicsContext3DCG.cpp:
3620 (WebCore::GraphicsContext3D::getImageData):
3621 * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
3622 (WebCore::SharedGraphicsContext3D::enable):
3623 (WebCore::SharedGraphicsContext3D::disable):
3624 (WebCore::SharedGraphicsContext3D::clear):
3625 (WebCore::SharedGraphicsContext3D::drawArrays):
3626 (WebCore::SharedGraphicsContext3D::getError):
3627 (WebCore::SharedGraphicsContext3D::getIntegerv):
3628 (WebCore::SharedGraphicsContext3D::createFramebuffer):
3629 (WebCore::SharedGraphicsContext3D::createTexture):
3630 (WebCore::SharedGraphicsContext3D::deleteFramebuffer):
3631 (WebCore::SharedGraphicsContext3D::deleteTexture):
3632 (WebCore::SharedGraphicsContext3D::framebufferTexture2D):
3633 (WebCore::SharedGraphicsContext3D::texParameteri):
3634 (WebCore::SharedGraphicsContext3D::texImage2D):
3635 (WebCore::SharedGraphicsContext3D::texSubImage2D):
3636 (WebCore::SharedGraphicsContext3D::readPixels):
3637 (WebCore::SharedGraphicsContext3D::setActiveTexture):
3638 (WebCore::SharedGraphicsContext3D::bindTexture):
3639 (WebCore::SharedGraphicsContext3D::bindFramebuffer):
3640 * platform/graphics/gpu/SharedGraphicsContext3D.h:
3641 * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
3642 (WebCore::GraphicsContext3D::activeTexture):
3643 (WebCore::GraphicsContext3D::attachShader):
3644 (WebCore::GraphicsContext3D::bindAttribLocation):
3645 (WebCore::GraphicsContext3D::bindBuffer):
3646 (WebCore::GraphicsContext3D::bindFramebuffer):
3647 (WebCore::GraphicsContext3D::bindRenderbuffer):
3648 (WebCore::GraphicsContext3D::bindTexture):
3649 (WebCore::GraphicsContext3D::blendColor):
3650 (WebCore::GraphicsContext3D::blendEquation):
3651 (WebCore::GraphicsContext3D::blendEquationSeparate):
3652 (WebCore::GraphicsContext3D::blendFunc):
3653 (WebCore::GraphicsContext3D::blendFuncSeparate):
3654 (WebCore::GraphicsContext3D::bufferData):
3655 (WebCore::GraphicsContext3D::bufferSubData):
3656 (WebCore::GraphicsContext3D::checkFramebufferStatus):
3657 (WebCore::GraphicsContext3D::clearColor):
3658 (WebCore::GraphicsContext3D::clear):
3659 (WebCore::GraphicsContext3D::clearDepth):
3660 (WebCore::GraphicsContext3D::clearStencil):
3661 (WebCore::GraphicsContext3D::colorMask):
3662 (WebCore::GraphicsContext3D::compileShader):
3663 (WebCore::GraphicsContext3D::copyTexImage2D):
3664 (WebCore::GraphicsContext3D::copyTexSubImage2D):
3665 (WebCore::GraphicsContext3D::cullFace):
3666 (WebCore::GraphicsContext3D::depthFunc):
3667 (WebCore::GraphicsContext3D::depthMask):
3668 (WebCore::GraphicsContext3D::depthRange):
3669 (WebCore::GraphicsContext3D::detachShader):
3670 (WebCore::GraphicsContext3D::disable):
3671 (WebCore::GraphicsContext3D::disableVertexAttribArray):
3672 (WebCore::GraphicsContext3D::drawArrays):
3673 (WebCore::GraphicsContext3D::drawElements):
3674 (WebCore::GraphicsContext3D::enable):
3675 (WebCore::GraphicsContext3D::enableVertexAttribArray):
3676 (WebCore::GraphicsContext3D::framebufferRenderbuffer):
3677 (WebCore::GraphicsContext3D::framebufferTexture2D):
3678 (WebCore::GraphicsContext3D::frontFace):
3679 (WebCore::GraphicsContext3D::generateMipmap):
3680 (WebCore::GraphicsContext3D::getActiveAttrib):
3681 (WebCore::GraphicsContext3D::getActiveUniform):
3682 (WebCore::GraphicsContext3D::getAttachedShaders):
3683 (WebCore::GraphicsContext3D::getAttribLocation):
3684 (WebCore::GraphicsContext3D::getError):
3685 (WebCore::GraphicsContext3D::getString):
3686 (WebCore::GraphicsContext3D::hint):
3687 (WebCore::GraphicsContext3D::isBuffer):
3688 (WebCore::GraphicsContext3D::isEnabled):
3689 (WebCore::GraphicsContext3D::isFramebuffer):
3690 (WebCore::GraphicsContext3D::isProgram):
3691 (WebCore::GraphicsContext3D::isRenderbuffer):
3692 (WebCore::GraphicsContext3D::isShader):
3693 (WebCore::GraphicsContext3D::isTexture):
3694 (WebCore::GraphicsContext3D::lineWidth):
3695 (WebCore::GraphicsContext3D::linkProgram):
3696 (WebCore::GraphicsContext3D::pixelStorei):
3697 (WebCore::GraphicsContext3D::polygonOffset):
3698 (WebCore::GraphicsContext3D::readPixels):
3699 (WebCore::GraphicsContext3D::renderbufferStorage):
3700 (WebCore::GraphicsContext3D::sampleCoverage):
3701 (WebCore::GraphicsContext3D::scissor):
3702 (WebCore::GraphicsContext3D::stencilFunc):
3703 (WebCore::GraphicsContext3D::stencilFuncSeparate):
3704 (WebCore::GraphicsContext3D::stencilMask):
3705 (WebCore::GraphicsContext3D::stencilMaskSeparate):
3706 (WebCore::GraphicsContext3D::stencilOp):
3707 (WebCore::GraphicsContext3D::stencilOpSeparate):
3708 (WebCore::GraphicsContext3D::texParameterf):
3709 (WebCore::GraphicsContext3D::texParameteri):
3710 (WebCore::GraphicsContext3D::uniform1f):
3711 (WebCore::GraphicsContext3D::uniform1fv):
3712 (WebCore::GraphicsContext3D::uniform2f):
3713 (WebCore::GraphicsContext3D::uniform2fv):
3714 (WebCore::GraphicsContext3D::uniform3f):
3715 (WebCore::GraphicsContext3D::uniform3fv):
3716 (WebCore::GraphicsContext3D::uniform4f):
3717 (WebCore::GraphicsContext3D::uniform4fv):
3718 (WebCore::GraphicsContext3D::uniform1i):
3719 (WebCore::GraphicsContext3D::uniform1iv):
3720 (WebCore::GraphicsContext3D::uniform2i):
3721 (WebCore::GraphicsContext3D::uniform2iv):
3722 (WebCore::GraphicsContext3D::uniform3i):
3723 (WebCore::GraphicsContext3D::uniform3iv):
3724 (WebCore::GraphicsContext3D::uniform4i):
3725 (WebCore::GraphicsContext3D::uniform4iv):
3726 (WebCore::GraphicsContext3D::uniformMatrix2fv):
3727 (WebCore::GraphicsContext3D::uniformMatrix3fv):
3728 (WebCore::GraphicsContext3D::uniformMatrix4fv):
3729 (WebCore::GraphicsContext3D::useProgram):
3730 (WebCore::GraphicsContext3D::validateProgram):
3731 (WebCore::GraphicsContext3D::vertexAttrib1f):
3732 (WebCore::GraphicsContext3D::vertexAttrib1fv):
3733 (WebCore::GraphicsContext3D::vertexAttrib2f):
3734 (WebCore::GraphicsContext3D::vertexAttrib2fv):
3735 (WebCore::GraphicsContext3D::vertexAttrib3f):
3736 (WebCore::GraphicsContext3D::vertexAttrib3fv):
3737 (WebCore::GraphicsContext3D::vertexAttrib4f):
3738 (WebCore::GraphicsContext3D::vertexAttrib4fv):
3739 (WebCore::GraphicsContext3D::vertexAttribPointer):
3740 (WebCore::GraphicsContext3D::viewport):
3741 (WebCore::GraphicsContext3D::getBooleanv):
3742 (WebCore::GraphicsContext3D::getBufferParameteriv):
3743 (WebCore::GraphicsContext3D::getFloatv):
3744 (WebCore::GraphicsContext3D::getFramebufferAttachmentParameteriv):
3745 (WebCore::GraphicsContext3D::getIntegerv):
3746 (WebCore::GraphicsContext3D::getProgramiv):
3747 (WebCore::GraphicsContext3D::getProgramInfoLog):
3748 (WebCore::GraphicsContext3D::getRenderbufferParameteriv):
3749 (WebCore::GraphicsContext3D::getShaderiv):
3750 (WebCore::GraphicsContext3D::getShaderInfoLog):
3751 (WebCore::GraphicsContext3D::getTexParameterfv):
3752 (WebCore::GraphicsContext3D::getTexParameteriv):
3753 (WebCore::GraphicsContext3D::getUniformfv):
3754 (WebCore::GraphicsContext3D::getUniformiv):
3755 (WebCore::GraphicsContext3D::getUniformLocation):
3756 (WebCore::GraphicsContext3D::getVertexAttribfv):
3757 (WebCore::GraphicsContext3D::getVertexAttribiv):
3758 (WebCore::GraphicsContext3D::getVertexAttribOffset):
3759 (WebCore::GraphicsContext3D::texImage2D):
3760 (WebCore::GraphicsContext3D::texSubImage2D):
3761 (WebCore::GraphicsContext3D::createBuffer):
3762 (WebCore::GraphicsContext3D::createFramebuffer):
3763 (WebCore::GraphicsContext3D::createProgram):
3764 (WebCore::GraphicsContext3D::createRenderbuffer):
3765 (WebCore::GraphicsContext3D::createShader):
3766 (WebCore::GraphicsContext3D::createTexture):
3767 (WebCore::GraphicsContext3D::deleteBuffer):
3768 (WebCore::GraphicsContext3D::deleteFramebuffer):
3769 (WebCore::GraphicsContext3D::deleteProgram):
3770 (WebCore::GraphicsContext3D::deleteRenderbuffer):
3771 (WebCore::GraphicsContext3D::deleteShader):
3772 (WebCore::GraphicsContext3D::deleteTexture):
3773 (WebCore::GraphicsContext3D::sizeInBytes):
3774 (WebCore::GraphicsContext3D::synthesizeGLError):
3775 * platform/graphics/qt/GraphicsContext3DQt.cpp:
3776 (WebCore::GraphicsContext3D::activeTexture):
3777 (WebCore::GraphicsContext3D::attachShader):
3778 (WebCore::GraphicsContext3D::getAttachedShaders):
3779 (WebCore::GraphicsContext3D::bindAttribLocation):
3780 (WebCore::GraphicsContext3D::bindBuffer):
3781 (WebCore::GraphicsContext3D::bindFramebuffer):
3782 (WebCore::GraphicsContext3D::bindRenderbuffer):
3783 (WebCore::GraphicsContext3D::bindTexture):
3784 (WebCore::GraphicsContext3D::blendColor):
3785 (WebCore::GraphicsContext3D::blendEquation):
3786 (WebCore::GraphicsContext3D::blendEquationSeparate):
3787 (WebCore::GraphicsContext3D::blendFunc):
3788 (WebCore::GraphicsContext3D::blendFuncSeparate):
3789 (WebCore::GraphicsContext3D::bufferData):
3790 (WebCore::GraphicsContext3D::bufferSubData):
3791 (WebCore::GraphicsContext3D::checkFramebufferStatus):
3792 (WebCore::GraphicsContext3D::clearColor):
3793 (WebCore::GraphicsContext3D::clear):
3794 (WebCore::GraphicsContext3D::clearDepth):
3795 (WebCore::GraphicsContext3D::clearStencil):
3796 (WebCore::GraphicsContext3D::colorMask):
3797 (WebCore::GraphicsContext3D::compileShader):
3798 (WebCore::GraphicsContext3D::copyTexImage2D):
3799 (WebCore::GraphicsContext3D::copyTexSubImage2D):
3800 (WebCore::GraphicsContext3D::cullFace):
3801 (WebCore::GraphicsContext3D::depthFunc):
3802 (WebCore::GraphicsContext3D::depthMask):
3803 (WebCore::GraphicsContext3D::depthRange):
3804 (WebCore::GraphicsContext3D::detachShader):
3805 (WebCore::GraphicsContext3D::disable):
3806 (WebCore::GraphicsContext3D::disableVertexAttribArray):
3807 (WebCore::GraphicsContext3D::drawArrays):
3808 (WebCore::GraphicsContext3D::drawElements):
3809 (WebCore::GraphicsContext3D::enable):
3810 (WebCore::GraphicsContext3D::enableVertexAttribArray):
3811 (WebCore::GraphicsContext3D::framebufferRenderbuffer):
3812 (WebCore::GraphicsContext3D::framebufferTexture2D):
3813 (WebCore::GraphicsContext3D::frontFace):
3814 (WebCore::GraphicsContext3D::generateMipmap):
3815 (WebCore::GraphicsContext3D::getActiveAttrib):
3816 (WebCore::GraphicsContext3D::getActiveUniform):
3817 (WebCore::GraphicsContext3D::getAttribLocation):
3818 (WebCore::GraphicsContext3D::getError):
3819 (WebCore::GraphicsContext3D::getString):
3820 (WebCore::GraphicsContext3D::hint):
3821 (WebCore::GraphicsContext3D::isBuffer):
3822 (WebCore::GraphicsContext3D::isEnabled):
3823 (WebCore::GraphicsContext3D::isFramebuffer):
3824 (WebCore::GraphicsContext3D::isProgram):
3825 (WebCore::GraphicsContext3D::isRenderbuffer):
3826 (WebCore::GraphicsContext3D::isShader):
3827 (WebCore::GraphicsContext3D::isTexture):
3828 (WebCore::GraphicsContext3D::linkProgram):
3829 (WebCore::GraphicsContext3D::pixelStorei):
3830 (WebCore::GraphicsContext3D::polygonOffset):
3831 (WebCore::GraphicsContext3D::readPixels):
3832 (WebCore::GraphicsContext3D::renderbufferStorage):
3833 (WebCore::GraphicsContext3D::sampleCoverage):
3834 (WebCore::GraphicsContext3D::scissor):
3835 (WebCore::GraphicsContext3D::stencilFunc):
3836 (WebCore::GraphicsContext3D::stencilFuncSeparate):
3837 (WebCore::GraphicsContext3D::stencilMask):
3838 (WebCore::GraphicsContext3D::stencilMaskSeparate):
3839 (WebCore::GraphicsContext3D::stencilOp):
3840 (WebCore::GraphicsContext3D::stencilOpSeparate):
3841 (WebCore::GraphicsContext3D::texParameterf):
3842 (WebCore::GraphicsContext3D::texParameteri):
3843 (WebCore::GraphicsContext3D::uniform1f):
3844 (WebCore::GraphicsContext3D::uniform1fv):
3845 (WebCore::GraphicsContext3D::uniform2f):
3846 (WebCore::GraphicsContext3D::uniform2fv):
3847 (WebCore::GraphicsContext3D::uniform3f):
3848 (WebCore::GraphicsContext3D::uniform3fv):
3849 (WebCore::GraphicsContext3D::uniform4f):
3850 (WebCore::GraphicsContext3D::uniform4fv):
3851 (WebCore::GraphicsContext3D::uniform1i):
3852 (WebCore::GraphicsContext3D::uniform1iv):
3853 (WebCore::GraphicsContext3D::uniform2i):
3854 (WebCore::GraphicsContext3D::uniform2iv):
3855 (WebCore::GraphicsContext3D::uniform3i):
3856 (WebCore::GraphicsContext3D::uniform3iv):
3857 (WebCore::GraphicsContext3D::uniform4i):
3858 (WebCore::GraphicsContext3D::uniform4iv):
3859 (WebCore::GraphicsContext3D::uniformMatrix2fv):
3860 (WebCore::GraphicsContext3D::uniformMatrix3fv):
3861 (WebCore::GraphicsContext3D::uniformMatrix4fv):
3862 (WebCore::GraphicsContext3D::useProgram):
3863 (WebCore::GraphicsContext3D::validateProgram):
3864 (WebCore::GraphicsContext3D::vertexAttrib1f):
3865 (WebCore::GraphicsContext3D::vertexAttrib1fv):
3866 (WebCore::GraphicsContext3D::vertexAttrib2f):
3867 (WebCore::GraphicsContext3D::vertexAttrib2fv):
3868 (WebCore::GraphicsContext3D::vertexAttrib3f):
3869 (WebCore::GraphicsContext3D::vertexAttrib3fv):
3870 (WebCore::GraphicsContext3D::vertexAttrib4f):
3871 (WebCore::GraphicsContext3D::vertexAttrib4fv):
3872 (WebCore::GraphicsContext3D::vertexAttribPointer):
3873 (WebCore::GraphicsContext3D::viewport):
3874 (WebCore::GraphicsContext3D::getBooleanv):
3875 (WebCore::GraphicsContext3D::getBufferParameteriv):
3876 (WebCore::GraphicsContext3D::getFloatv):
3877 (WebCore::GraphicsContext3D::getFramebufferAttachmentParameteriv):
3878 (WebCore::GraphicsContext3D::getIntegerv):
3879 (WebCore::GraphicsContext3D::getProgramiv):
3880 (WebCore::GraphicsContext3D::getProgramInfoLog):
3881 (WebCore::GraphicsContext3D::getRenderbufferParameteriv):
3882 (WebCore::GraphicsContext3D::getShaderiv):
3883 (WebCore::GraphicsContext3D::getShaderInfoLog):
3884 (WebCore::GraphicsContext3D::getShaderSource):
3885 (WebCore::GraphicsContext3D::getTexParameterfv):
3886 (WebCore::GraphicsContext3D::getTexParameteriv):
3887 (WebCore::GraphicsContext3D::getUniformfv):
3888 (WebCore::GraphicsContext3D::getUniformiv):
3889 (WebCore::GraphicsContext3D::getUniformLocation):
3890 (WebCore::GraphicsContext3D::getVertexAttribfv):
3891 (WebCore::GraphicsContext3D::getVertexAttribiv):
3892 (WebCore::GraphicsContext3D::getVertexAttribOffset):
3893 (WebCore::GraphicsContext3D::texImage2D):
3894 (WebCore::GraphicsContext3D::texSubImage2D):
3895 (WebCore::GraphicsContext3D::createBuffer):
3896 (WebCore::GraphicsContext3D::createFramebuffer):
3897 (WebCore::GraphicsContext3D::createProgram):
3898 (WebCore::GraphicsContext3D::createRenderbuffer):
3899 (WebCore::GraphicsContext3D::createShader):
3900 (WebCore::GraphicsContext3D::createTexture):
3901 (WebCore::GraphicsContext3D::deleteBuffer):
3902 (WebCore::GraphicsContext3D::deleteFramebuffer):
3903 (WebCore::GraphicsContext3D::deleteProgram):
3904 (WebCore::GraphicsContext3D::deleteRenderbuffer):
3905 (WebCore::GraphicsContext3D::deleteShader):
3906 (WebCore::GraphicsContext3D::deleteTexture):
3907 (WebCore::GraphicsContext3D::sizeInBytes):
3908 (WebCore::GraphicsContext3D::synthesizeGLError):
3909 (WebCore::GraphicsContext3D::getImageData):
3910 * platform/graphics/skia/GraphicsContext3DSkia.cpp:
3911 (WebCore::GraphicsContext3D::getImageData):
3913 2011-01-06 Martin Robinson <mrobinson@igalia.com>
3915 Reviewed by Eric Seidel.
3917 [GTK] Initial build support for WebGL
3918 https://bugs.webkit.org/show_bug.cgi?id=51716
3920 Add initial build support for WebGL and insert bits of implementation
3921 necessary for clean compilation into GraphicsContext3D.
3923 No new tests. This is just a build change.
3925 * GNUmakefile.am: Add missing files to the source lists.
3926 * platform/graphics/GraphicsContext3D.h: Include IntSize.h as it's used below.
3927 Include typedefs necessary for WebGL on GTK+ and consolidate typdefs which are the
3928 same across different platforms. X11 headers define the VERSION symbol, so it's
3929 necessary to undefine it, since it's used as an enum value.
3931 2011-01-06 Helder Correia <helder@sencha.com>
3933 Reviewed by Kenneth Rohde Christiansen.
3935 [Qt] GraphicsContext::drawConvexPolygon() has unnecessary code for shadow
3936 https://bugs.webkit.org/show_bug.cgi?id=52014
3938 The function is only used by RenderObject to draw box sides.
3939 The shadow branch is never used and thus can be removed.
3941 No new tests are necessary.
3943 * platform/graphics/qt/GraphicsContextQt.cpp:
3944 (WebCore::GraphicsContext::drawConvexPolygon):
3946 2011-01-06 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3948 Reviewed by Kenneth Rohde Christiansen.
3950 [Qt] Make sure touch is disabled in the minimal configuration
3951 https://bugs.webkit.org/show_bug.cgi?id=51316
3953 No new tests as there is no new functionality.
3957 2011-01-06 Martin Robinson <mrobinson@igalia.com>
3959 Reviewed by Eric Seidel.
3961 [GTK] Freetype backend does not support WOFF
3962 https://bugs.webkit.org/show_bug.cgi?id=51904
3964 * CMakeListsEfl.txt: Add WOFF support to the sources list.
3965 * GNUmakefile.am: Add WOFF support to the sources list.
3966 * platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp:
3967 (WebCore::createFontCustomPlatformData): Call the WOFF decoder when appropriate.
3968 (WebCore::FontCustomPlatformData::supportsFormat): Advertise support for WOFF.
3970 2011-01-06 James Simonsen <simonjam@chromium.org>
3972 Reviewed by Darin Fisher.
3974 [Web Timing] Remove vendor prefix
3975 https://bugs.webkit.org/show_bug.cgi?id=48922
3977 * page/DOMWindow.cpp:
3978 (WebCore::DOMWindow::performance): Rename to performance.
3980 * page/DOMWindow.idl: Rename to performance and make replaceable.
3982 2011-01-06 Chris Marrin <cmarrin@apple.com>
3984 Reviewed by Simon Fraser.
3986 Share code between Mac (CA) and Windows (CACF) GraphicsLayer implementations
3987 https://bugs.webkit.org/show_bug.cgi?id=49388
3989 Changed PlatformCALayer API. Added PlatformCALayerClient abstract class which is
3990 used to communicate from PlatformCALayer to the owner. This replaces passing
3991 GraphicsLayerCA pointer when creating PlatformCALayer. It also includes the
3992 API that used to be in PlatformCALayerLayout. GraphicsLayerCA now implements
3993 the PlatformCALayerClient API.
3995 This change has little impact on the Mac side but makes the Windows
3996 interface simpler, especially when handling video layers on Windows.
3998 * WebCore.xcodeproj/project.pbxproj:
4000 * platform/graphics/GraphicsLayer.h:
4001 (WebCore::GraphicsLayer::layerDidDisplay):
4002 (WebCore::GraphicsLayer::showDebugBorders):
4003 (WebCore::GraphicsLayer::showRepaintCounter):
4004 * platform/graphics/ca/GraphicsLayerCA.cpp:
4005 (WebCore::GraphicsLayerCA::platformCALayerAnimationStarted):
4006 (WebCore::GraphicsLayerCA::setContentsToImage):
4007 (WebCore::GraphicsLayerCA::setContentsToMedia):
4008 (WebCore::GraphicsLayerCA::layerDidDisplay):
4009 (WebCore::GraphicsLayerCA::updateSublayerList):
4010 * platform/graphics/ca/GraphicsLayerCA.h:
4011 (WebCore::GraphicsLayerCA::platformCALayerLayoutSublayersOfLayer):
4012 (WebCore::GraphicsLayerCA::platformCALayerRespondsToLayoutChanges):
4013 (WebCore::GraphicsLayerCA::platformCALayerContentsOrientation):
4014 (WebCore::GraphicsLayerCA::platformCALayerPaintContents):
4015 (WebCore::GraphicsLayerCA::platformCALayerShowDebugBorders):
4016 (WebCore::GraphicsLayerCA::platformCALayerShowRepaintCounter):
4017 (WebCore::GraphicsLayerCA::platformCALayerIncrementRepaintCount):
4018 (WebCore::GraphicsLayerCA::platformCALayerContentsOpaque):
4019 (WebCore::GraphicsLayerCA::platformCALayerDrawsContent):
4020 (WebCore::GraphicsLayerCA::platformCALayerLayerDidDisplay):
4021 (WebCore::GraphicsLayerCA::platformCALayer):
4022 * platform/graphics/ca/PlatformCALayer.h:
4023 (WebCore::PlatformCALayer::owner):
4024 (WebCore::PlatformCALayer::animationStarted):
4025 * platform/graphics/ca/PlatformCALayerClient.h: Added.
4026 (WebCore::PlatformCALayerClient::~PlatformCALayerClient):
4027 * platform/graphics/ca/mac/PlatformCALayerMac.mm:
4028 (PlatformCALayer::setOwner):
4029 (PlatformCALayer::create):
4030 (PlatformCALayer::PlatformCALayer):
4031 (PlatformCALayer::contents):
4032 (PlatformCALayer::setContents):
4033 * platform/graphics/mac/WebGLLayer.mm:
4034 (-[WebGLLayer display]):
4035 * platform/graphics/mac/WebLayer.h:
4036 * platform/graphics/mac/WebLayer.mm:
4037 (drawLayerContents):
4038 (setLayerNeedsDisplayInRect):
4039 (-[WebLayer setNeedsDisplay]):
4040 (-[WebLayer display]):
4041 * platform/graphics/mac/WebTiledLayer.mm:
4042 (-[WebTiledLayer setNeedsDisplay]):
4043 (-[WebTiledLayer display]):
4044 * rendering/RenderLayerBacking.cpp:
4045 (WebCore::RenderLayerBacking::showDebugBorders):
4046 (WebCore::RenderLayerBacking::showRepaintCounter):
4047 * rendering/RenderLayerCompositor.cpp:
4048 (WebCore::RenderLayerCompositor::ensureRootPlatformLayer):
4049 * rendering/RenderLayerCompositor.h:
4050 (WebCore::RenderLayerCompositor::compositorShowDebugBorders):
4051 (WebCore::RenderLayerCompositor::compositorShowRepaintCounter):
4052 (WebCore::RenderLayerCompositor::notifyAnimationStarted):
4053 (WebCore::RenderLayerCompositor::notifySyncRequired):
4054 (WebCore::RenderLayerCompositor::paintContents):
4055 (WebCore::RenderLayerCompositor::showDebugBorders):
4056 (WebCore::RenderLayerCompositor::showRepaintCounter):
4058 2011-01-06 Tony Gentilcore <tonyg@chromium.org>
4060 Reviewed by Eric Seidel.
4062 Allow framesets after hidden inputs
4063 https://bugs.webkit.org/show_bug.cgi?id=51998
4065 This implements the HTML5 spec update in response to:
4066 http://www.w3.org/Bugs/Public/show_bug.cgi?id=11156
4068 * html/parser/HTMLTreeBuilder.cpp:
4069 (WebCore::HTMLTreeBuilder::processStartTagForInBody):
4071 2010-12-29 Zhenyao Mo <zmo@google.com>
4073 Reviewed by Kenneth Russell.