/src/3rdparty/webkit/Source/WebCore/ChangeLog-2010-12-06

https://bitbucket.org/ultra_iter/qt-vtl · #! · 135224 lines · 106205 code · 29019 blank · 0 comment · 0 complexity · a0d7ed33d6e365ed2bfd95cf82eb6724 MD5 · raw file

Large files are truncated click here to view the full file

  1. 2010-12-06 Yael Aharon <yael.aharon@nokia.com>
  2. Reviewed by Andreas Kling.
  3. [Qt] Support focus ring outline color for links.
  4. https://bugs.webkit.org/show_bug.cgi?id=50428
  5. Take width and offset into account when drawing focus ring.
  6. Tests: fast/css/focus-ring-outline-color.html
  7. fast/css/focus-ring-outline-offset.html
  8. fast/css/focus-ring-outline-width.html
  9. * platform/graphics/qt/GraphicsContextQt.cpp:
  10. (WebCore::GraphicsContext::drawFocusRing):
  11. 2010-12-06 Yael Aharon <yael.aharon@nokia.com>
  12. Reviewed by Andreas Kling.
  13. [Qt] Fix focus ring outline color support
  14. https://bugs.webkit.org/show_bug.cgi?id=50325
  15. * platform/graphics/qt/GraphicsContextQt.cpp:
  16. (WebCore::GraphicsContext::drawFocusRing):
  17. Take the outline width into account when drawing the focus ring of image map.
  18. Change the outline-style from dotted to solid. The default outline-width is
  19. 5 pixels, and dotted lines just don't make sense anymore.
  20. Give the focus ring alpha of 50%, following what other ports do.
  21. Save and restore the pen when drawing a focus ring.
  22. 2010-12-06 Andras Becsi <abecsi@webkit.org>
  23. Reviewed by Csaba Osztrogonác.
  24. [Qt][V8] Build fix after r73283.
  25. No new tests needed.
  26. * WebCore.pri: Add missing webaudio directory
  27. to IDL generator includes.
  28. 2010-12-06 Philippe Normand <pnormand@igalia.com>
  29. Reviewed by Martin Robinson.
  30. [soup] implement ResourceHandle::platformSetDefersLoading
  31. https://bugs.webkit.org/show_bug.cgi?id=44158
  32. * platform/network/soup/ResourceHandleSoup.cpp:
  33. (WebCore::ResourceHandle::platformSetDefersLoading): Implemented
  34. using the soup_session_{,un}pause_message APIs.
  35. 2010-12-06 Sergio Villar Senin <svillar@igalia.com>
  36. Reviewed by Martin Robinson.
  37. [GTK] Leak in webkit_soup_cache_load if file contents load fails
  38. https://bugs.webkit.org/show_bug.cgi?id=50558
  39. g_file_get_contents() could return an error after allocating a
  40. buffer for file contents. We must free that memory before
  41. returning.
  42. * platform/network/soup/cache/webkit/soup-cache.c:
  43. (webkit_soup_cache_load): Added a missing g_free().
  44. 2010-12-06 Sheriff Bot <webkit.review.bot@gmail.com>
  45. Unreviewed, rolling out r73351.
  46. http://trac.webkit.org/changeset/73351
  47. https://bugs.webkit.org/show_bug.cgi?id=50560
  48. "The change broke plugin tests in Chromium" (Requested by
  49. yurys on #webkit).
  50. * bindings/js/ScriptCallStackFactory.cpp:
  51. (WebCore::ScriptCallStack::stackTrace):
  52. * bindings/js/ScriptCallStackFactory.h:
  53. * bindings/v8/ScriptCallStackFactory.cpp:
  54. (WebCore::toScriptCallFrame):
  55. (WebCore::toScriptCallFramesVector):
  56. (WebCore::createScriptCallStack):
  57. (WebCore::ScriptCallStack::stackTrace):
  58. * bindings/v8/ScriptCallStackFactory.h:
  59. * bindings/v8/V8ConsoleMessage.cpp:
  60. (WebCore::V8ConsoleMessage::handler):
  61. * inspector/ScriptCallFrame.cpp:
  62. (WebCore::ScriptCallFrame::ScriptCallFrame):
  63. (WebCore::ScriptCallFrame::isEqual):
  64. (WebCore::ScriptCallFrame::buildInspectorObject):
  65. * inspector/ScriptCallFrame.h:
  66. (WebCore::ScriptCallFrame::sourceURL):
  67. * inspector/ScriptCallStack.h:
  68. * inspector/TimelineRecordFactory.cpp:
  69. (WebCore::TimelineRecordFactory::createGenericRecord):
  70. * inspector/front-end/ConsoleView.js:
  71. (WebInspector.ConsoleMessage.prototype._populateStackTraceTreeElement):
  72. 2010-12-06 Robert Hogan <robert@webkit.org>
  73. Reviewed by Kenneth Rohde Christiansen.
  74. [Qt] Report zero width for zero size fonts
  75. Report zero width when font size is zero.
  76. Fixes fast/text/font-size-zero.html
  77. https://bugs.webkit.org/show_bug.cgi?id=50539
  78. * platform/graphics/qt/FontQt.cpp:
  79. (WebCore::Font::floatWidthForSimpleText):
  80. (WebCore::Font::floatWidthForComplexText):
  81. 2010-12-03 Yury Semikhatsky <yurys@chromium.org>
  82. Reviewed by Pavel Feldman.
  83. [v8] Web Inspector: remove duplicate code for capturing stack trace
  84. https://bugs.webkit.org/show_bug.cgi?id=50461
  85. No new tests. Covered with existing inspector tests.
  86. * bindings/js/ScriptCallStackFactory.cpp:
  87. (WebCore::createScriptCallStack):
  88. * bindings/js/ScriptCallStackFactory.h:
  89. * bindings/v8/ScriptCallStackFactory.cpp:
  90. (WebCore::toScriptCallFrame):
  91. (WebCore::toScriptCallFramesVector):
  92. (WebCore::createScriptCallStack):
  93. * bindings/v8/ScriptCallStackFactory.h:
  94. * bindings/v8/V8ConsoleMessage.cpp:
  95. (WebCore::V8ConsoleMessage::handler):
  96. * inspector/ScriptCallFrame.cpp:
  97. (WebCore::ScriptCallFrame::ScriptCallFrame):
  98. (WebCore::ScriptCallFrame::isEqual):
  99. (WebCore::ScriptCallFrame::buildInspectorObject):
  100. * inspector/ScriptCallFrame.h:
  101. (WebCore::ScriptCallFrame::sourceURL):
  102. * inspector/ScriptCallStack.h:
  103. * inspector/TimelineRecordFactory.cpp:
  104. (WebCore::TimelineRecordFactory::createGenericRecord):
  105. * inspector/front-end/ConsoleView.js:
  106. (WebInspector.ConsoleMessage.prototype._populateStackTraceTreeElement):
  107. 2010-12-06 Sergio Villar Senin <svillar@igalia.com>
  108. Reviewed by Martin Robinson.
  109. [GTK] webkit_soup_cache_clear() does not delete all entries in the cache
  110. https://bugs.webkit.org/show_bug.cgi?id=50462
  111. Do not use g_hash_table_foreach to remove entries from the cache
  112. entries hashtable. Iterate over a list of entries to remove them
  113. from the hash table.
  114. * platform/network/soup/ResourceHandleSoup.cpp:
  115. * platform/network/soup/cache/webkit/soup-cache.c:
  116. (remove_cache_item):
  117. (webkit_soup_cache_finalize):
  118. (clear_cache_item):
  119. (webkit_soup_cache_clear):
  120. 2010-12-05 Kent Tamura <tkent@chromium.org>
  121. Unreviewed. Run sort-Xcode-project-file.
  122. * WebCore.xcodeproj/project.pbxproj:
  123. 2010-11-30 Luiz Agostini <luiz.agostini@openbossa.org>
  124. Reviewed by Darin Adler.
  125. HTML5 <details> and <summary> initial implementation
  126. https://bugs.webkit.org/show_bug.cgi?id=50309
  127. HTML5 <details> and <summary> elements initial implementation. The main objective is
  128. to add the files for html element and renderers, and to get rid of build system issues
  129. in future patches.
  130. See: http://www.w3.org/TR/html5/interactive-elements.html#the-details-element
  131. http://www.w3.org/TR/html5/interactive-elements.html#the-summary-element
  132. build systems
  133. * CMakeLists.txt:
  134. * DerivedSources.cpp:
  135. * DerivedSources.make:
  136. * GNUmakefile.am:
  137. * WebCore.gypi:
  138. * WebCore.pri:
  139. * WebCore.pro:
  140. * WebCore.vcproj/WebCore.vcproj:
  141. * WebCore.xcodeproj/project.pbxproj:
  142. * bindings/gobject/GNUmakefile.am:
  143. Some css properties to the new html elements.
  144. * css/html.css:
  145. (details):
  146. (summary):
  147. New html element associated with the corresponding tag.
  148. * html/HTMLAttributeNames.in:
  149. * html/HTMLTagNames.in:
  150. 1 html element and 3 renderers were added.
  151. * html/HTMLDetailsElement.cpp: Added.
  152. * html/HTMLDetailsElement.h: Added.
  153. * html/HTMLDetailsElement.idl: Added.
  154. * html/HTMLElementsAllInOne.cpp:
  155. * rendering/RenderDetails.cpp: Added.
  156. * rendering/RenderDetails.h: Added.
  157. * rendering/RenderDetailsMarker.cpp: Added.
  158. * rendering/RenderDetailsMarker.h: Added.
  159. * rendering/RenderSummary.cpp: Added.
  160. * rendering/RenderSummary.h: Added.
  161. * rendering/RenderingAllInOne.cpp:
  162. New renderer type checkers.
  163. * rendering/RenderObject.h:
  164. (WebCore::RenderObject::isDetails):
  165. (WebCore::RenderObject::isDetailsMarker):
  166. (WebCore::RenderObject::isSummary):
  167. 2010-12-05 Rob Buis <rwlbuis@gmail.com>
  168. Reviewed by Nikolas Zimmermann.
  169. createSVGTransformFromMatrix(undefined) => NULL ptr
  170. https://bugs.webkit.org/show_bug.cgi?id=49564
  171. Throw TYPE_MISMATCH_ERR when using undefined or null as value for matrix parameter.
  172. * svg/SVGTransformList.idl:
  173. * svg/properties/SVGTransformListPropertyTearOff.h:
  174. (WebCore::SVGTransformListPropertyTearOff::createSVGTransformFromMatrix):
  175. 2010-12-05 Alejandro G. Castro <alex@igalia.com>
  176. Reviewed by Xan Lopez.
  177. [GTK] Fix compilation warnings reported by clang
  178. https://bugs.webkit.org/show_bug.cgi?id=50252
  179. * platform/graphics/Path.h: CairoPath is now a class, not a
  180. struct.
  181. * platform/network/soup/ResourceHandleSoup.cpp:
  182. (WebCore::sendRequestCallback): Cast the status_code to int.
  183. 2010-12-05 Alejandro G. Castro <alex@igalia.com>
  184. Reviewed by Martin Robinson.
  185. [GTK] Remove setColor functions it was replicated in
  186. CairoUtilities: setSourceRGBAFromColor.
  187. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  188. (WebCore::setPlatformFill):
  189. (WebCore::setPlatformStroke):
  190. (WebCore::fillRectSourceOver):
  191. (WebCore::GraphicsContext::drawRect):
  192. (WebCore::GraphicsContext::drawLine):
  193. (WebCore::GraphicsContext::drawEllipse):
  194. (WebCore::GraphicsContext::strokeArc):
  195. (WebCore::GraphicsContext::drawConvexPolygon):
  196. (WebCore::GraphicsContext::drawFocusRing):
  197. (WebCore::GraphicsContext::fillRoundedRect):
  198. 2010-12-05 Adam Roben <aroben@apple.com>
  199. Windows production build fix
  200. Put spaces after trailing backslashes when setting
  201. %WebKitVSPropsRedirectionDir%. According to MSDN
  202. <http://msdn.microsoft.com/en-us/library/2kzfk8c7(v=VS.80).aspx>:
  203. A backslash ( \ ) followed by a newline character is interpreted as
  204. a space in the command; use a backslash at the end of a line to
  205. continue a command onto the next line. NMAKE interprets the
  206. backslash literally if any other character, including a space or
  207. tab, follows the backslash.
  208. * WebCore.vcproj/WebCore.make:
  209. 2010-12-05 Robert Hogan <robert@webkit.org>
  210. Reviewed by Andreas Kling.
  211. [Qt] Zero-sized font does not yet work
  212. Fix fast/text/font-size-zero.html
  213. Copy other ports by setting minimumFontSize to 0 for DRT runs,
  214. copy a fix to SimpleFontData from chromium/safari, and set font
  215. size in FontPlatformData to zero if size zero is requested
  216. and QFont::pixelSize otherwise. (Note that QFont doesn't accept
  217. a pixel size of zero).
  218. Also fix QFont::setPixelSize in FontPlatformData to use
  219. description.computedPixelSize rather than computedSize and
  220. pixelSize() rather than pointSizeF - since the latter gets
  221. set to -1 if pixelSize is set at all.
  222. https://bugs.webkit.org/show_bug.cgi?id=49759
  223. * platform/graphics/qt/FontPlatformData.h:
  224. (WebCore::FontPlatformDataPrivate::FontPlatformDataPrivate):
  225. (WebCore::FontPlatformData::pixelSize):
  226. * platform/graphics/qt/FontPlatformDataQt.cpp:
  227. (WebCore::FontPlatformData::FontPlatformData):
  228. * platform/graphics/qt/FontQt.cpp:
  229. (WebCore::drawTextCommon):
  230. * platform/graphics/qt/SimpleFontDataQt.cpp:
  231. (WebCore::SimpleFontData::platformInit):
  232. (WebCore::SimpleFontData::platformGlyphInit):
  233. (WebCore::SimpleFontData::platformCharWidthInit):
  234. 2010-12-04 Daniel Bates <dbates@rim.com>
  235. Reviewed by Darin Adler.
  236. Add support for lower-armenian and upper-armenian
  237. https://bugs.webkit.org/show_bug.cgi?id=49641
  238. Implement support for list-style-types lower-armenian and upper-armenian
  239. for lowercase Armenian and uppercase Armenian numerals, respectively.
  240. Tests: fast/lists/w3-css3-lower-armenian.html
  241. fast/lists/w3-css3-upper-armenian.html
  242. * css/CSSPrimitiveValueMappings.h:
  243. (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): Added enum values LowerArmenian
  244. and UpperArmenian.
  245. * css/CSSValueKeywords.in: Added "upper-armenian" and "lower-armenian".
  246. * inspector/front-end/SourceCSSTokenizer.re2js: Ditto.
  247. * rendering/RenderListMarker.cpp:
  248. (WebCore::effectiveListMarkerType): Added enum values LowerArmenian
  249. and UpperArmenian.
  250. (WebCore::listMarkerSuffix): Ditto.
  251. (WebCore::listMarkerText): Ditto.
  252. (WebCore::RenderListMarker::paint): Ditto.
  253. (WebCore::RenderListMarker::computePreferredLogicalWidths): Ditto.
  254. (WebCore::RenderListMarker::getRelativeMarkerRect): Ditto.
  255. * rendering/style/RenderStyleConstants.h: Ditto.
  256. 2010-12-04 Dan Bernstein <mitz@apple.com>
  257. Reviewed by Sam Weinig.
  258. WebCore part of <rdar://problem/8145955> Add text search API for counting/marking/highlighting matches in a range
  259. https://bugs.webkit.org/show_bug.cgi?id=50530
  260. * WebCore.exp.in: Export Range version of countMatchesForText().
  261. * editing/Editor.cpp:
  262. (WebCore::isFrameInRange): Added this helper method.
  263. (WebCore::Editor::countMatchesForText): Added a Range parameter and restricted the result to
  264. matches that occur in the range.
  265. * editing/Editor.h:
  266. 2010-12-04 Gavin Peters <gavinp@chromium.org>
  267. Reviewed by Adam Barth.
  268. Implement onload events for <link rel=prefetch>
  269. https://bugs.webkit.org/show_bug.cgi?id=50187
  270. Tests: fast/dom/HTMLLinkElement/link-and-subresource-test.html
  271. fast/dom/HTMLLinkElement/prefetch-onload.html
  272. * html/HTMLLinkElement.cpp:
  273. (WebCore::HTMLLinkElement::HTMLLinkElement):
  274. (WebCore::HTMLLinkElement::~HTMLLinkElement):
  275. (WebCore::HTMLLinkElement::parseMappedAttribute):
  276. (WebCore::HTMLLinkElement::process):
  277. (WebCore::HTMLLinkElement::onloadTimerFired):
  278. (WebCore::HTMLLinkElement::notifyFinished):
  279. * html/HTMLLinkElement.h:
  280. * loader/cache/CachedResource.cpp:
  281. (WebCore::CachedResource::data):
  282. 2010-12-04 Xan Lopez <xlopez@igalia.com>
  283. Reviewed by Martin Robinson.
  284. [GTK] Drop GdkDrawable usage, it's deprecated in GTK+3.x and we can use GdkWindow
  285. https://bugs.webkit.org/show_bug.cgi?id=50451
  286. GdkDrawable has been removed in GTK+3.x. To cope with this we can
  287. actually stop using it altogether, since GdkWindow is just a
  288. typedef for it and that seems to be good enough for us.
  289. * platform/graphics/GraphicsContext.h: s/GdkDrawable/GdkWindow/.
  290. * platform/graphics/cairo/GraphicsContextCairo.cpp:
  291. (WebCore::GraphicsContext::gdkWindow): ditto.
  292. * platform/gtk/GtkVersioning.h: declare GDK_WINDOW_XWINDOW for GTK 3.x builds.
  293. * platform/gtk/PlatformScreenGtk.cpp:
  294. (WebCore::screenAvailableRect): s/GdkDrawable/GdkWindow/.
  295. * platform/gtk/WidgetGtk.cpp:
  296. (WebCore::gdkWindow): ditto.
  297. (WebCore::Widget::setCursor): ditto.
  298. * platform/gtk/WidgetRenderingContextGtk2.cpp: ditto.
  299. 2010-12-03 Dimitri Glazkov <dglazkov@chromium.org>
  300. Reviewed by Darin Adler.
  301. REGRESSION(r71934): input event fires twice when editing text inside a text input.
  302. https://bugs.webkit.org/show_bug.cgi?id=50477
  303. Now that events escape the shadow DOM boundary, the input event is fired twice
  304. for each input, once triggered by editing, once triggered by value change.
  305. Test: fast/forms/text-input-event.html
  306. * dom/InputElement.cpp:
  307. (WebCore::InputElement::setValueFromRenderer): Added a check to ensure editable fields
  308. don't fire an extra input event.
  309. 2010-12-03 Sheriff Bot <webkit.review.bot@gmail.com>
  310. Unreviewed, rolling out r73302.
  311. http://trac.webkit.org/changeset/73302
  312. https://bugs.webkit.org/show_bug.cgi?id=50499
  313. Causes crashes in debug LayoutTests (Requested by xan_ on
  314. #webkit).
  315. * accessibility/AccessibilityRenderObject.cpp:
  316. (WebCore::AccessibilityRenderObject::renderParentObject):
  317. (WebCore::AccessibilityRenderObject::addChildren):
  318. * accessibility/AccessibilityRenderObject.h:
  319. * accessibility/chromium/AccessibilityObjectChromium.cpp:
  320. (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
  321. 2010-12-01 Ilya Tikhonovsky <loislo@chromium.org>
  322. Reviewed by Pavel Feldman.
  323. Web Inspector: Inspector protocol cleanup task.
  324. The patch has just small renames and adjustments for the protocol things.
  325. 'handler' keyword in idl file was replaced with 'domain'.
  326. 'domain' property was assigned for the each backend to frontend messages.
  327. At the next step WebInspector wrapper functions will be removed and 'agents' will be called directly.
  328. https://bugs.webkit.org/show_bug.cgi?id=50337
  329. * inspector/CodeGeneratorInspector.pm:
  330. * inspector/Inspector.idl:
  331. * inspector/front-end/inspector.js:
  332. (WebInspector_syncDispatch):
  333. 2010-12-03 Alexander Pavlov <apavlov@chromium.org>
  334. Reviewed by Yury Semikhatsky.
  335. Web Inspector: Duplicate "!important" for !important properties displayed in the Styles pane
  336. https://bugs.webkit.org/show_bug.cgi?id=50460
  337. * inspector/front-end/StylesSidebarPane.js:
  338. * inspector/front-end/inspector.css:
  339. 2010-12-03 Xan Lopez <xlopez@igalia.com>
  340. Unreviewed build fix.
  341. The JS code generator includes headers unconditionally, so we need
  342. to generate them unconditionally and disable the feature. The
  343. WebAudio files hadn't been added to our sources list.
  344. * GNUmakefile.am:
  345. 2010-12-03 Patrick Gansterer <paroga@webkit.org>
  346. Unreviewed build fix.
  347. Try to fix EFL build after r73273.
  348. * CMakeLists.txt:
  349. 2010-12-03 Chris Guillory <chris.guillory@google.com>
  350. Reviewed by Chris Fleizach.
  351. Include the FrameView widget of a RenderWidget in the accessibility tree.
  352. https://bugs.webkit.org/show_bug.cgi?id=49106
  353. Include render widget children in the accessibility tree for not mac webkit ports.
  354. * accessibility/AccessibilityRenderObject.cpp:
  355. (WebCore::AccessibilityRenderObject::renderParentObject):
  356. (WebCore::AccessibilityRenderObject::addChildren):
  357. (WebCore::AccessibilityRenderObject::addRenderWidgetChildren):
  358. * accessibility/AccessibilityRenderObject.h:
  359. * accessibility/chromium/AccessibilityObjectChromium.cpp:
  360. (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
  361. 2010-11-30 Abhishek Arya <inferno@chromium.org>
  362. Reviewed by Dave Hyatt.
  363. Don't clone an anonymous block, instead create a new one in splitBlocks. Also,
  364. when beforeChild is not in one of our children, then do the processing first
  365. to get its anonymous container before calling splitBlocks.
  366. https://bugs.webkit.org/show_bug.cgi?id=49928
  367. Tests: fast/multicol/span/anonymous-before-child-parent-crash.html
  368. fast/multicol/span/anonymous-split-block-crash.html
  369. * rendering/RenderBlock.cpp:
  370. (WebCore::RenderBlock::splitBlocks):
  371. (WebCore::RenderBlock::addChildIgnoringAnonymousColumnBlocks):
  372. 2010-12-03 Mark Rowe <mrowe@apple.com>
  373. Reviewed by Eric Seidel.
  374. Animated GIF animates much more slowly in Safari than Firefox
  375. <rdar://problem/7689300> / <http://webkit.org/b/26455>
  376. Adopt Firefox's behavior for frame duration clamping. Images that specify a frame duration
  377. of <= 10ms are treated as having a frame duration of 100ms, while all other images use the
  378. frame duration that they specify.
  379. ImageIO currently implements its own clamping of frame durations (<rdar://problem/7689297>)
  380. which will result in this change having no observable effect on platforms where it is used
  381. until an updated version of ImageIO becomes available.
  382. * platform/graphics/ImageSource.cpp:
  383. (WebCore::ImageSource::frameDurationAtIndex): Update the formatting of the comment and style
  384. of the code to match that in ImageSourceCG.
  385. * platform/graphics/cg/ImageSourceCG.cpp:
  386. (WebCore::ImageSource::frameDurationAtIndex):
  387. 2010-12-03 Chris Rogers <crogers@google.com>
  388. Unreviewed build fix.
  389. Fix M_E compile error on Chromium Win
  390. https://bugs.webkit.org/show_bug.cgi?id=50479
  391. * platform/audio/AudioUtilities.cpp:
  392. (WebCore::AudioUtilities::discreteTimeConstantForSampleRate):
  393. 2010-12-03 Chris Rogers <crogers@google.com>
  394. Unreviewed build fix.
  395. Try to fix GTK build due to recent web audio makefile changes (disable ENABLE_WEB_AUDIO explicitly)
  396. https://bugs.webkit.org/show_bug.cgi?id=50478
  397. * GNUmakefile.am:
  398. 2010-12-03 Simon Fraser <simon.fraser@apple.com>
  399. Reviewed by Dirk Schulze.
  400. Clean up some text-related code on GraphicsContext
  401. https://bugs.webkit.org/show_bug.cgi?id=50464
  402. Save 8 bytes in GraphicsContextState by rearranging the
  403. data members to reduce padding.
  404. * platform/graphics/GraphicsContextPrivate.h:
  405. (WebCore::GraphicsContextState::GraphicsContextState):
  406. 2010-12-03 Simon Fraser <simon.fraser@apple.com>
  407. Another Chromium build fix.
  408. * platform/graphics/skia/GraphicsContextSkia.cpp:
  409. (WebCore::GraphicsContext::setPlatformTextDrawingMode):
  410. 2010-12-03 Simon Fraser <simon.fraser@apple.com>
  411. Fix Chromium build.
  412. * platform/graphics/skia/PlatformContextSkia.h:
  413. 2010-12-03 Patrick Gansterer <paroga@webkit.org>
  414. Reviewed by Andreas Kling.
  415. [CMake] Remove WebCore_IDL_PURE_FILES
  416. https://bugs.webkit.org/show_bug.cgi?id=50445
  417. * CMakeLists.txt:
  418. 2010-12-03 Jia Pu <jpu@apple.com>
  419. Reviewed by Darin Adler.
  420. Need to move all code that applies correction into correction panel callback.
  421. https://bugs.webkit.org/show_bug.cgi?id=50426
  422. <rdar://problem/8720832>
  423. No new test, since there's no behavioral change.
  424. This patch is to prepare WebKit to work with upcoming AppKit changes. The main changes are:
  425. 1. Moved all calls to applyCorrectionPanelInfo() into handleCorrectionPanelResult().
  426. 2. Added more user dictionary learning code.
  427. 3. Removed m_ prefix in all member variables of CorrectionPanelInfo.
  428. * editing/CorrectionPanelInfo.h: Remove m_ prefix on member variables. Added ReasonForDismissingCorrectionPanel enum type.
  429. * editing/Editor.cpp: Moved all calls to applyCorrectionPanelInfo() into handleCorrectionPanelResult().
  430. Adopted new member variable naming in class CorrectionPanelInfo.
  431. (WebCore::Editor::respondToChangedSelection):
  432. (WebCore::Editor::~Editor):
  433. (WebCore::Editor::markMisspellingsAfterTypingToWord):
  434. (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges):
  435. (WebCore::Editor::correctionPanelTimerFired):
  436. (WebCore::Editor::handleCorrectionPanelResult):
  437. (WebCore::Editor::startCorrectionPanelTimer):
  438. (WebCore::Editor::stopCorrectionPanelTimer):
  439. (WebCore::Editor::handleCancelOperation):
  440. (WebCore::Editor::dismissCorrectionPanel):
  441. (WebCore::Editor::applyCorrectionPanelInfo):
  442. * editing/Editor.h: Changed signature of dismissCorrectionPanel to use ReasonForDismissingCorrectionPanel.
  443. * loader/EmptyClients.h: Ditto.
  444. (WebCore::EmptyEditorClient::dismissCorrectionPanel):
  445. * page/EditorClient.h: Ditto.
  446. 2010-12-03 Pavel Feldman <pfeldman@chromium.org>
  447. Reviewed by Yury Semikhatsky.
  448. Web Inspector: reveal in elements panel does not switch the panel itself.
  449. https://bugs.webkit.org/show_bug.cgi?id=50408
  450. * inspector/front-end/ElementsTreeOutline.js:
  451. (WebInspector.ElementsTreeOutline.prototype._contextMenuEventFired.focusElement):
  452. (WebInspector.ElementsTreeOutline.prototype._contextMenuEventFired):
  453. * inspector/front-end/ObjectPropertiesSection.js:
  454. (WebInspector.ObjectPropertyTreeElement.prototype._contextMenuEventFired):
  455. 2010-12-03 Simon Fraser <simon.fraser@apple.com>
  456. Reviewed by Nikolas Zimmermann.
  457. Clean up some text-related code on GraphicsContext
  458. https://bugs.webkit.org/show_bug.cgi?id=50464
  459. Use defined types for textDrawingMode and it's associated flags.
  460. * html/canvas/CanvasRenderingContext2D.cpp:
  461. (WebCore::CanvasRenderingContext2D::drawTextInternal):
  462. * platform/graphics/GraphicsContext.cpp:
  463. (WebCore::GraphicsContext::textDrawingMode):
  464. (WebCore::GraphicsContext::setTextDrawingMode):
  465. (WebCore::GraphicsContext::setPlatformTextDrawingMode):
  466. * platform/graphics/GraphicsContext.h:
  467. * platform/graphics/GraphicsContextPrivate.h:
  468. (WebCore::GraphicsContextState::GraphicsContextState):
  469. * platform/graphics/cairo/FontCairo.cpp:
  470. (WebCore::drawGlyphsShadow):
  471. (WebCore::Font::drawGlyphs):
  472. * platform/graphics/cg/GraphicsContextCG.cpp:
  473. (WebCore::GraphicsContext::setPlatformTextDrawingMode):
  474. * platform/graphics/chromium/FontLinux.cpp:
  475. (WebCore::Font::drawGlyphs):
  476. (WebCore::Font::drawComplexText):
  477. * platform/graphics/gtk/FontGtk.cpp:
  478. (WebCore::drawGlyphsShadow):
  479. (WebCore::Font::drawComplexText):
  480. * platform/graphics/mac/FontMac.mm:
  481. (WebCore::Font::drawGlyphs):
  482. * platform/graphics/openvg/PainterOpenVG.cpp:
  483. (WebCore::PlatformPainterState::PlatformPainterState):
  484. (WebCore::PainterOpenVG::textDrawingMode):
  485. (WebCore::PainterOpenVG::setTextDrawingMode):
  486. (WebCore::PainterOpenVG::drawText):
  487. * platform/graphics/qt/FontQt.cpp:
  488. (WebCore::drawTextCommon):
  489. * platform/graphics/skia/PlatformContextSkia.cpp:
  490. (WebCore::PlatformContextSkia::State::State):
  491. (WebCore::PlatformContextSkia::getTextDrawingMode):
  492. (WebCore::PlatformContextSkia::setTextDrawingMode):
  493. * platform/graphics/skia/SkiaFontWin.cpp:
  494. (WebCore::windowsCanHandleTextDrawing):
  495. (WebCore::paintSkiaText):
  496. * platform/graphics/texmap/TextureMapper.h:
  497. (WebCore::TextureMapper::setTextDrawingMode):
  498. (WebCore::TextureMapper::textDrawingMode):
  499. (WebCore::TextureMapper::TextureMapper):
  500. * platform/graphics/win/FontCGWin.cpp:
  501. (WebCore::drawGDIGlyphs):
  502. (WebCore::Font::drawGlyphs):
  503. * platform/graphics/wince/GraphicsContextWinCE.cpp:
  504. (WebCore::GraphicsContext::drawText):
  505. * rendering/InlineTextBox.cpp:
  506. (WebCore::updateGraphicsContext):
  507. * rendering/RenderSVGResourceGradient.cpp:
  508. (WebCore::RenderSVGResourceGradient::applyResource):
  509. * rendering/RenderSVGResourcePattern.cpp:
  510. (WebCore::RenderSVGResourcePattern::applyResource):
  511. * rendering/RenderSVGResourceSolidColor.cpp:
  512. (WebCore::RenderSVGResourceSolidColor::applyResource):
  513. * svg/SVGFont.cpp:
  514. (WebCore::Font::drawTextUsingSVGFont):
  515. 2010-12-03 Chris Rogers <crogers@google.com>
  516. Reviewed by Kenneth Russell.
  517. First steps to adding web audio files to build systems
  518. https://bugs.webkit.org/show_bug.cgi?id=49952
  519. No new tests since audio API is not yet implemented.
  520. * CMakeLists.txt:
  521. * DerivedSources.make:
  522. * ForwardingHeaders/wtf/Complex.h: Added.
  523. * GNUmakefile.am:
  524. * WebCore.gyp/WebCore.gyp:
  525. * WebCore.gypi:
  526. * WebCore.pri:
  527. * WebCore.pro:
  528. * bindings/js/JSDOMWindowCustom.cpp:
  529. (WebCore::JSDOMWindow::audioContext):
  530. * features.pri:
  531. * page/DOMWindow.idl:
  532. * platform/audio/HRTFElevation.cpp:
  533. 2010-12-03 Patrick Gansterer <paroga@webkit.org>
  534. Reviewed by David Levin.
  535. Use String::adopt in TextCodecWinCE::decode
  536. https://bugs.webkit.org/show_bug.cgi?id=50319
  537. * platform/text/wince/TextCodecWinCE.cpp:
  538. (WebCore::TextCodecWinCE::decode):
  539. 2010-12-03 Brady Eidson <beidson@apple.com>
  540. Reviewed by Anders Carlsson.
  541. Groundwork for <rdar://problem/7660733> and https://bugs.webkit.org/show_bug.cgi?id=50191
  542. WebKit2 Authentication Support
  543. * WebCore.exp.in:
  544. Expose the AuthenticationClient for WK2 platforms (Windows already does this):
  545. * platform/network/mac/AuthenticationChallenge.h:
  546. * platform/network/mac/AuthenticationMac.mm:
  547. (-[WebCoreAuthenticationClientAsChallengeSender client]):
  548. (WebCore::AuthenticationChallenge::authenticationClient):
  549. * platform/network/qt/AuthenticationChallenge.h:
  550. (WebCore::AuthenticationChallenge::authenticationClient):
  551. 2010-12-03 Ryosuke Niwa <rniwa@webkit.org>
  552. Reviewed by Darin Adler.
  553. REGRESSION: Crash when deleting text after textarea's value is modified on input event
  554. https://bugs.webkit.org/show_bug.cgi?id=49962
  555. The crash was caused by TypingCommand::deleteKeyPressed's reusing a typing command for
  556. textarea's shadow DOM after its input event handler rewrote the value set by the typing command.
  557. Because the reused typing command's ending selection was pointing at a shadow node
  558. that has been detached from the document when the event handler set the new value,
  559. rootEditableElement of the ending selection was null and caused the crash.
  560. Fixed the bug by updating the ending selection of the last typing command when it differsfrom
  561. that of the current selection held by the SelectionController in TypingCommand::deleteKeyPressed.
  562. Also fixed similar bugs in forwardDeleteKeyPressed and insertText, and insertTextRunWithoutNewlines.
  563. Tests: editing/input/set-value-on-input-and-delete.html
  564. editing/input/set-value-on-input-and-forward-delete.html
  565. editing/input/set-value-on-input-and-type-input.html
  566. editing/input/set-value-on-input-and-type-textarea.html
  567. * editing/InsertTextCommand.h: Added TypingCommand as a friend because it needs to update selection.
  568. * editing/TypingCommand.cpp:
  569. (WebCore::TypingCommand::deleteKeyPressed): Updates the last typing command's selection as needed.
  570. (WebCore::TypingCommand::forwardDeleteKeyPressed): Ditto.
  571. (WebCore::TypingCommand::insertText): Ditto.
  572. (WebCore::TypingCommand::updateSelectionIfDifferentFromCurrentSelection): Added.
  573. (WebCore::TypingCommand::insertTextRunWithoutNewlines): Updates InsertTextCommand's selection as needed.
  574. * editing/TypingCommand.h:
  575. 2010-12-03 Daniel Cheng <dcheng@chromium.org>
  576. Reviewed by Tony Chang.
  577. Dragging and dropping into an empty document crashes WebKit.
  578. https://bugs.webkit.org/show_bug.cgi?id=48793
  579. Remove the assert and update callers to check for a null return value.
  580. Test: manual-tests/drop-in-empty-doc.html
  581. * manual-tests/drop-in-empty-doc.html: Added.
  582. * manual-tests/resources/drop-in-empty-doc.xhtml: Added.
  583. * page/DragController.cpp:
  584. (WebCore::elementUnderMouse):
  585. (WebCore::DragController::tryDocumentDrag):
  586. (WebCore::DragController::concludeEditDrag):
  587. 2010-12-03 Patrick Gansterer <paroga@webkit.org>
  588. Reviewed by Andreas Kling.
  589. Move Inspector generator logic into main CMakeLists.txt file
  590. https://bugs.webkit.org/show_bug.cgi?id=50445
  591. * CMakeLists.txt:
  592. 2010-12-03 Patrick Gansterer <paroga@webkit.org>
  593. Reviewed by Andreas Kling.
  594. Move StringWx.cpp into wtf directory
  595. https://bugs.webkit.org/show_bug.cgi?id=50060
  596. * WebCore.gypi:
  597. * platform/text/wx/StringWx.cpp: Removed.
  598. 2010-12-03 Dimitri Glazkov <dglazkov@chromium.org>
  599. Reviewed by Darin Adler.
  600. REGRESSION(r72783): DOMActivate fires multiple times from input type=file
  601. https://bugs.webkit.org/show_bug.cgi?id=50396
  602. Test: fast/events/shadow-boundary-crossing-2.html
  603. * dom/EventContext.cpp: Reverted changes made in r72783.
  604. * dom/EventContext.h: Ditto.
  605. * dom/Node.cpp:
  606. (WebCore::Node::containsIncludingShadowDOM): Added.
  607. (WebCore::Node::dispatchGenericEvent): Reverted changes made in r72783.
  608. * dom/Node.h: Added decl.
  609. * html/HTMLLabelElement.cpp:
  610. (WebCore::HTMLLabelElement::defaultEventHandler): Reverted changes made in r72783.
  611. 2010-12-03 Patrick Gansterer <paroga@webkit.org>
  612. Reviewed by Andreas Kling.
  613. Move StringBrew.cpp into wtf directory
  614. https://bugs.webkit.org/show_bug.cgi?id=50058
  615. * platform/text/brew/StringBrew.cpp: Removed.
  616. 2010-12-03 Patrick Gansterer <paroga@webkit.org>
  617. Reviewed by Andreas Kling.
  618. Move StringHaiku.cpp into wtf directory
  619. https://bugs.webkit.org/show_bug.cgi?id=50057
  620. * platform/text/haiku/StringHaiku.cpp: Removed.
  621. 2010-12-03 Jessie Berlin <jberlin@apple.com>
  622. Reviewed by Sam Weinig.
  623. Need a WebKit2 Equivalent of WebSecurityOrigin
  624. https://bugs.webkit.org/show_bug.cgi?id=50170
  625. * WebCore.exp.in:
  626. Export the symbol for SecurityOrigin::createFromDatabaseIdentifier.
  627. 2010-12-03 Andras Becsi <abecsi@inf.u-szeged.hu>
  628. Unreviewed build fix after r73254.
  629. [Qt][V8] Add missing headers to $headerIncludes rather than $implIncludes
  630. because headers are needed by the generated .h files.
  631. No new tests needed.
  632. * bindings/scripts/CodeGeneratorV8.pm:
  633. 2010-12-03 Nikolas Zimmermann <nzimmermann@rim.com>
  634. Reviewed by Dirk Schulze.
  635. 1336 files in WebCore rebuild when you touch SVGNames
  636. https://bugs.webkit.org/show_bug.cgi?id=42025
  637. Remove global SVGNames.h dependency, as SVGAnimatedPropertyMacros.h included it.
  638. This requires to add the SVGNames.h include to lots of cpp files.
  639. No functional changes, thus no new tests.
  640. * css/CSSCursorImageValue.cpp:
  641. * css/CSSFontFaceSource.cpp:
  642. * dom/Node.cpp:
  643. * loader/cache/CachedFont.cpp:
  644. * rendering/RenderSVGResourceClipper.cpp:
  645. * rendering/RenderSVGResourceFilter.cpp:
  646. * rendering/RenderSVGTransformableContainer.cpp:
  647. * rendering/RenderSVGViewportContainer.cpp:
  648. * rendering/SVGRenderTreeAsText.cpp:
  649. * rendering/SVGResources.cpp:
  650. * rendering/svg/RenderSVGTextPath.cpp:
  651. * rendering/svg/SVGRootInlineBox.cpp:
  652. * svg/SVGAnimateElement.cpp:
  653. * svg/SVGAnimateMotionElement.cpp:
  654. * svg/SVGAnimateTransformElement.cpp:
  655. * svg/SVGDefsElement.cpp:
  656. * svg/SVGFEBlendElement.cpp:
  657. * svg/SVGFEDisplacementMapElement.cpp:
  658. * svg/SVGFEMergeElement.cpp:
  659. * svg/SVGFEMergeNodeElement.cpp:
  660. * svg/SVGFEOffsetElement.cpp:
  661. * svg/SVGFETileElement.cpp:
  662. * svg/SVGFETurbulenceElement.cpp:
  663. * svg/SVGFont.cpp:
  664. * svg/SVGGElement.cpp:
  665. * svg/SVGImageElement.cpp:
  666. * svg/SVGLength.cpp:
  667. * svg/SVGMPathElement.cpp:
  668. * svg/SVGPathElement.cpp:
  669. * svg/SVGPathSegList.cpp:
  670. * svg/SVGStyledTransformableElement.cpp:
  671. * svg/SVGSymbolElement.cpp:
  672. * svg/SVGTextContentElement.cpp:
  673. * svg/SVGTextElement.cpp:
  674. * svg/SVGTextPathElement.cpp:
  675. * svg/SVGUseElement.cpp:
  676. * svg/SVGViewSpec.cpp:
  677. * svg/animation/SMILTimeContainer.cpp:
  678. * svg/properties/SVGAnimatedPropertyMacros.h:
  679. * svg/properties/SVGPathSegListPropertyTearOff.cpp:
  680. 2010-12-02 Philippe Normand <pnormand@igalia.com>
  681. Reviewed by Martin Robinson.
  682. [GStreamer] hasVideo/Audio return false until the pipeline reaches PAUSED
  683. https://bugs.webkit.org/show_bug.cgi?id=50382
  684. Go to PAUSED even if preload is deactivated. In that case don't
  685. process the GStreamer state changes until commitLoad() has been
  686. called. This patch also fixes hasVideo and hasAudio methods,
  687. making them reactive to the playbin2 audio/video tags-changed
  688. signals.
  689. Test: media/controls-without-preload.html
  690. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
  691. (WebCore::mediaPlayerPrivateMessageCallback):
  692. (WebCore::mediaPlayerPrivateVideoTagsChangedCallback):
  693. (WebCore::mediaPlayerPrivateAudioTagsChangedCallback):
  694. (WebCore::mediaPlayerPrivateAudioTagsChangeTimeoutCallback):
  695. (WebCore::mediaPlayerPrivateVideoTagsChangeTimeoutCallback):
  696. (WebCore::MediaPlayerPrivateGStreamer::MediaPlayerPrivateGStreamer):
  697. (WebCore::MediaPlayerPrivateGStreamer::~MediaPlayerPrivateGStreamer):
  698. (WebCore::MediaPlayerPrivateGStreamer::load):
  699. (WebCore::MediaPlayerPrivateGStreamer::commitLoad):
  700. (WebCore::MediaPlayerPrivateGStreamer::videoTagsChanged):
  701. (WebCore::MediaPlayerPrivateGStreamer::notifyPlayerOfVideoTags):
  702. (WebCore::MediaPlayerPrivateGStreamer::audioTagsChanged):
  703. (WebCore::MediaPlayerPrivateGStreamer::notifyPlayerOfAudioTags):
  704. (WebCore::MediaPlayerPrivateGStreamer::createGSTPlayBin):
  705. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
  706. (WebCore::MediaPlayerPrivateGStreamer::hasVideo):
  707. (WebCore::MediaPlayerPrivateGStreamer::hasAudio):
  708. (WebCore::MediaPlayerPrivateGStreamer::loadDelayed):
  709. 2010-12-03 Nikolas Zimmermann <nzimmermann@rim.com>
  710. Reviewed by Dirk Schulze.
  711. Finish splitting DECLARE_ANIMATED_PROPERTY* in DECLARE/DEFINE parts for the remaining SVGAnimated* types
  712. https://bugs.webkit.org/show_bug.cgi?id=50440
  713. Continuing the work on bug 42025: Introduce (DECLARE|DEFINE)_ANIMATED_(ANGLE|BOOLEAN|INTEGER|PRESERVEASPECTRATIO|RECT).
  714. The animated property declaration lives in the header, the definition in the cpp file, to avoid the dependency on SVGNames.h in all headers.
  715. No functional changes, thus no new tests.
  716. * svg/SVGAElement.cpp:
  717. * svg/SVGAElement.h:
  718. * svg/SVGAnimatedAngle.h:
  719. * svg/SVGAnimatedBoolean.h:
  720. * svg/SVGAnimatedInteger.h:
  721. * svg/SVGAnimatedPreserveAspectRatio.h:
  722. * svg/SVGAnimatedRect.h:
  723. * svg/SVGAnimationElement.cpp:
  724. * svg/SVGAnimationElement.h:
  725. (WebCore::SVGAnimationElement::calculateDistance):
  726. (WebCore::SVGAnimationElement::animationPath):
  727. * svg/SVGCircleElement.cpp:
  728. * svg/SVGCircleElement.h:
  729. * svg/SVGClipPathElement.cpp:
  730. * svg/SVGClipPathElement.h:
  731. * svg/SVGCursorElement.cpp:
  732. * svg/SVGCursorElement.h:
  733. * svg/SVGDefsElement.cpp:
  734. * svg/SVGDefsElement.h:
  735. * svg/SVGEllipseElement.cpp:
  736. * svg/SVGEllipseElement.h:
  737. * svg/SVGFEConvolveMatrixElement.cpp:
  738. * svg/SVGFEConvolveMatrixElement.h:
  739. * svg/SVGFEImageElement.cpp:
  740. * svg/SVGFEImageElement.h:
  741. * svg/SVGFETurbulenceElement.cpp:
  742. * svg/SVGFETurbulenceElement.h:
  743. * svg/SVGFilterElement.cpp:
  744. * svg/SVGFilterElement.h:
  745. * svg/SVGFilterPrimitiveStandardAttributes.h:
  746. * svg/SVGFontElement.cpp:
  747. (WebCore::SVGFontElement::firstMissingGlyphElement):
  748. (WebCore::SVGFontElement::ensureGlyphCache):
  749. * svg/SVGFontElement.h:
  750. * svg/SVGForeignObjectElement.cpp:
  751. * svg/SVGForeignObjectElement.h:
  752. * svg/SVGGElement.cpp:
  753. * svg/SVGGElement.h:
  754. (WebCore::SVGGElement::isShadowTreeContainerElement):
  755. (WebCore::SVGGElement::isValid):
  756. * svg/SVGGradientElement.cpp:
  757. * svg/SVGGradientElement.h:
  758. * svg/SVGImageElement.cpp:
  759. * svg/SVGImageElement.h:
  760. * svg/SVGLineElement.cpp:
  761. * svg/SVGLineElement.h:
  762. * svg/SVGLinearGradientElement.h:
  763. * svg/SVGMPathElement.cpp:
  764. * svg/SVGMPathElement.h:
  765. * svg/SVGMarkerElement.cpp:
  766. * svg/SVGMarkerElement.h:
  767. * svg/SVGMaskElement.cpp:
  768. * svg/SVGMaskElement.h:
  769. * svg/SVGPathElement.cpp:
  770. * svg/SVGPathElement.h:
  771. * svg/SVGPatternElement.cpp:
  772. * svg/SVGPatternElement.h:
  773. * svg/SVGPolyElement.cpp:
  774. * svg/SVGPolyElement.h:
  775. * svg/SVGRadialGradientElement.h:
  776. * svg/SVGRectElement.cpp:
  777. * svg/SVGRectElement.h:
  778. * svg/SVGSVGElement.cpp:
  779. (WebCore::SVGSVGElement::contentScriptType):
  780. (WebCore::SVGSVGElement::contentStyleType):
  781. (WebCore::SVGSVGElement::parseMappedAttribute):
  782. * svg/SVGSVGElement.h:
  783. * svg/SVGScriptElement.cpp:
  784. * svg/SVGScriptElement.h:
  785. * svg/SVGSwitchElement.cpp:
  786. * svg/SVGSwitchElement.h:
  787. (WebCore::SVGSwitchElement::isValid):
  788. * svg/SVGSymbolElement.cpp:
  789. * svg/SVGSymbolElement.h:
  790. (WebCore::SVGSymbolElement::rendererIsNeeded):
  791. * svg/SVGTextContentElement.cpp:
  792. * svg/SVGTextContentElement.h:
  793. * svg/SVGUseElement.cpp:
  794. * svg/SVGUseElement.h:
  795. * svg/SVGViewElement.cpp:
  796. * svg/SVGViewElement.h:
  797. (WebCore::SVGViewElement::viewTarget):
  798. (WebCore::SVGViewElement::rendererIsNeeded):
  799. * svg/SVGViewSpec.cpp:
  800. * svg/SVGViewSpec.h:
  801. (WebCore::SVGViewSpec::transform):
  802. (WebCore::SVGViewSpec::viewTargetString):
  803. (WebCore::SVGViewSpec::contextElement):
  804. * svg/properties/SVGAnimatedPropertyMacros.h:
  805. 2010-12-03 Noel Gordon <noel.gordon@gmail.com>
  806. Reviewed by Darin Fisher.
  807. [chromium] PNG encoder leaks memory on png_write_row errors.
  808. https://bugs.webkit.org/show_bug.cgi?id=50439
  809. Move the creation of needed C++ objects before the setjmp() point so
  810. those objects have their destructors called if libpng errors invoke
  811. the setjmp() return path.
  812. Other minor cleanup: use the skia bitmap locker class, and remove the
  813. PNGDestroyer class - instead directly call png_destroy_write_struct()
  814. at each of the encodeImpl() return points.
  815. No change in behaviour, so no new tests.
  816. * platform/image-encoders/skia/PNGImageEncoder.cpp:
  817. (WebCore::encodeImpl):
  818. (WebCore::PNGImageEncoder::encode):
  819. 2010-12-02 Philippe Normand <pnormand@igalia.com>
  820. Reviewed by Eric Carlson.
  821. Theme not updated when MediaPlayer m_private engine changes
  822. https://bugs.webkit.org/show_bug.cgi?id=50228
  823. Trigger a new rendering of the media element when the private
  824. media-player backend is updated.
  825. * html/HTMLMediaElement.cpp:
  826. (WebCore::HTMLMediaElement::mediaPlayerEngineUpdated):
  827. * html/HTMLMediaElement.h:
  828. * platform/graphics/MediaPlayer.cpp:
  829. (WebCore::MediaPlayer::MediaPlayer):
  830. (WebCore::MediaPlayer::load):
  831. * platform/graphics/MediaPlayer.h:
  832. (WebCore::MediaPlayerClient::mediaPlayerEngineUpdated):
  833. 2010-12-03 Yonathan Randolph <yonathan@gmail.com>
  834. Reviewed by Alexey Proskuryakov.
  835. XPath lexer misinterprets expression starting with "div".
  836. https://bugs.webkit.org/show_bug.cgi?id=50366
  837. * xml/XPathParser.cpp:
  838. * xml/XPathParser.h:
  839. (WebCore::XPath::Parser::isOperatorContext): removed (renamed)
  840. (WebCore::XPath::Parser::isBinaryOperatorContext): added
  841. 2010-12-02 Rob Buis <rwlbuis@gmail.com>
  842. Reviewed by Alexey Proskuryakov.
  843. CSS 2.1 failure: at-import-*
  844. https://bugs.webkit.org/show_bug.cgi?id=47153
  845. Fix at-import-010.htm by only setting m_allowImportRules
  846. to false when creating valid style or page rules.
  847. Test: css2.1/t040105-import-10-b.html
  848. * css/CSSParser.cpp:
  849. (WebCore::CSSParser::createStyleRule):
  850. 2010-12-02 Aaron Boodman <aa@chromium.org>
  851. Reviewed by David Hyatt.
  852. Reduce the number of cases where we end up with a stale value for
  853. minimumPreferredLogicalWidth(). This isn't a complete fix, but fixes a
  854. large number of cases.
  855. RenderObject::minimumPreferredLogicalWidth() sometimes reports wrong value.
  856. https://bugs.webkit.org/show_bug.cgi?id=50119
  857. * rendering/RenderBox.cpp:
  858. (WebCore::RenderBox::styleDidChange):
  859. 2010-12-02 Gregg Tavares <gman@google.com>
  860. Reviewed by David Levin.
  861. Need to initialize destination variables before calling GL
  862. https://bugs.webkit.org/show_bug.cgi?id=50048
  863. No new tests because no change in functionality.
  864. * html/canvas/WebGLFramebuffer.cpp:
  865. (WebCore::WebGLFramebuffer::initializeRenderbuffers):
  866. * html/canvas/WebGLProgram.cpp:
  867. (WebCore::WebGLProgram::cacheActiveAttribLocations):
  868. * html/canvas/WebGLRenderingContext.cpp:
  869. (WebCore::WebGLRenderingContext::getAttachedShaders):
  870. (WebCore::WebGLRenderingContext::getBufferParameter):
  871. (WebCore::WebGLRenderingContext::getFramebufferAttachmentParameter):
  872. (WebCore::WebGLRenderingContext::getBooleanParameter):
  873. (WebCore::WebGLRenderingContext::getFloatParameter):
  874. (WebCore::WebGLRenderingContext::getLongParameter):
  875. (WebCore::WebGLRenderingContext::getUnsignedLongParameter):
  876. * platform/graphics/chromium/LayerChromium.cpp:
  877. (WebCore::loadShader):
  878. (WebCore::LayerChromium::createShaderProgram):
  879. * platform/graphics/chromium/LayerRendererChromium.cpp:
  880. (WebCore::LayerRendererChromium::initializeSharedObjects):
  881. * platform/graphics/gpu/DrawingBuffer.cpp:
  882. (WebCore::DrawingBuffer::reset):
  883. * platform/graphics/gpu/Shader.cpp:
  884. (WebCore::Shader::loadProgram):
  885. 2010-12-02 Laszlo Gombos <laszlo.1.gombos@nokia.com>
  886. Reviewed by Andreas Kling.
  887. [Qt] Enable Web Timing for Qt
  888. https://bugs.webkit.org/show_bug.cgi?id=42433
  889. * features.pri: Enable Web Timing for trunk (but not yet for
  890. production)
  891. 2010-12-02 Andy Estes <aestes@apple.com>
  892. Rubber-stamped by Mark Rowe.
  893. Update bindings test results with new GObject results.
  894. * bindings/scripts/test/GObject/WebKitDOMTestCallback.cpp:
  895. (WebKit::kit):
  896. * bindings/scripts/test/GObject/WebKitDOMTestCallbackPrivate.h:
  897. * bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp:
  898. (WebKit::kit):
  899. * bindings/scripts/test/GObject/WebKitDOMTestInterfacePrivate.h:
  900. * bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListener.cpp:
  901. (WebKit::kit):
  902. * bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListenerPrivate.h:
  903. * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
  904. (WebKit::kit):
  905. (webkit_dom_test_obj_obj_method):
  906. (webkit_dom_test_obj_obj_method_with_args):
  907. (webkit_dom_test_obj_method_that_requires_all_args):
  908. (webkit_dom_test_obj_method_that_requires_all_args_and_throws):
  909. (webkit_dom_test_obj_with_script_state_obj):
  910. (webkit_dom_test_obj_with_script_state_obj_exception):
  911. (webkit_dom_test_obj_get_read_only_test_obj_attr):
  912. (webkit_dom_test_obj_get_test_obj_attr):
  913. (webkit_dom_test_obj_get_xml_obj_attr):
  914. * bindings/scripts/test/GObject/WebKitDOMTestObjPrivate.h:
  915. 2010-12-02 Simon Fraser <simon.fraser@apple.com>
  916. Revert r73217 and r73227 because of continued bustage.
  917. * WebCore.xcodeproj/project.pbxproj:
  918. * platform/graphics/GraphicsLayer.h:
  919. (WebCore::GraphicsLayer::nativeLayer):
  920. * platform/graphics/ca/PlatformCAAnimation.h: Removed.
  921. * platform/graphics/ca/PlatformCALayer.h: Removed.
  922. * platform/graphics/ca/mac/PlatformCAAnimationMac.mm: Removed.
  923. * platform/graphics/ca/mac/PlatformCALayerMac.mm: Removed.
  924. * platform/graphics/chromium/GraphicsLayerChromium.cpp:
  925. (WebCore::GraphicsLayerChromium::nativeLayer):
  926. * platform/graphics/chromium/GraphicsLayerChromium.h:
  927. * platform/graphics/mac/GraphicsLayerMac.h: Renamed from WebCore/platform/graphics/ca/GraphicsLayerCA.h.
  928. (WebCore::GraphicsLayerMac::hasContentsLayer):
  929. (WebCore::GraphicsLayerMac::primaryLayer):
  930. (WebCore::GraphicsLayerMac::isReplicatedRootClone):
  931. (WebCore::GraphicsLayerMac::primaryLayerClones):
  932. (WebCore::GraphicsLayerMac::animationIsRunning):
  933. (WebCore::GraphicsLayerMac::contentsLayer):
  934. (WebCore::GraphicsLayerMac::ReplicaState::ReplicaState):
  935. (WebCore::GraphicsLayerMac::ReplicaState::push):
  936. (WebCore::GraphicsLayerMac::ReplicaState::setBranchType):
  937. (WebCore::GraphicsLayerMac::ReplicaState::pop):
  938. (WebCore::GraphicsLayerMac::ReplicaState::depth):
  939. (WebCore::GraphicsLayerMac::ReplicaState::replicaDepth):
  940. (WebCore::GraphicsLayerMac::hasCloneLayers):
  941. (WebCore::GraphicsLayerMac::LayerPropertyAnimation::LayerPropertyAnimation):
  942. (WebCore::GraphicsLayerMac::AnimationProcessingAction::AnimationProcessingAction):
  943. * platform/graphics/mac/GraphicsLayerMac.mm: Renamed from WebCore/platform/graphics/ca/GraphicsLayerCA.cpp.
  944. (WebCore::currentTimeToMediaTime):
  945. (WebCore::mediaTimeToCurrentTime):
  946. (-[WebAnimationDelegate animationDidStart:]):
  947. (-[WebAnimationDelegate WebCore::]):
  948. (-[WebAnimationDelegate setLayer:WebCore::]):
  949. (WebCore::